From 2ddc7efcc430c73e490b673f587fb04282ff9bd3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 02:25:18 +0000 Subject: [PATCH 1/2] chore(deps): lock file maintenance --- package-lock.json | 307 +++++++++++++++---------------------------- wptest/composer.lock | 102 +++++++++----- 2 files changed, 178 insertions(+), 231 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5758c41a..51b81c33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,9 +29,9 @@ } }, "node_modules/@actions/cache": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.3.tgz", - "integrity": "sha512-SvrqFtYJ7I48A/uXNkoJrnukx5weQv1fGquhs3+4nkByZThBH109KTIqj5x/cGV7JGNvb8dLPVywUOqX1fjiXg==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.5.tgz", + "integrity": "sha512-RjLz1/vvntOfp3FpkY3wB0MjVRbLq7bfQEuQG9UUTKwdtcYmFrKVmuD+9B6ADbzbkSfHM+dM4sMjdr3R4XIkFg==", "dev": true, "license": "MIT", "dependencies": { @@ -43,7 +43,7 @@ "@azure/abort-controller": "^1.1.0", "@azure/ms-rest-js": "^2.6.0", "@azure/storage-blob": "^12.13.0", - "@protobuf-ts/plugin": "^2.9.4", + "@protobuf-ts/runtime-rpc": "^2.11.1", "semver": "^6.3.1" } }, @@ -472,39 +472,6 @@ "node": ">=18.0.0" } }, - "node_modules/@bufbuild/protobuf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.6.2.tgz", - "integrity": "sha512-vLu7SRY84CV/Dd+NUdgtidn2hS5hSMUC1vDBY0VcviTdgRYkU43vIz3vIFbmx14cX1r+mM7WjzE5Fl1fGEM0RQ==", - "dev": true, - "license": "(Apache-2.0 AND BSD-3-Clause)" - }, - "node_modules/@bufbuild/protoplugin": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-2.6.2.tgz", - "integrity": "sha512-EYVPnRXOkWuqBDqRYhLsquOnk5SGU2Ce3lAOBDEZyntHwu0xcjcIZeTI+as+HnArtcJwrXK0u6x3Rtmt2IcHlA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@bufbuild/protobuf": "2.6.2", - "@typescript/vfs": "^1.5.2", - "typescript": "5.4.5" - } - }, - "node_modules/@bufbuild/protoplugin/node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", @@ -601,9 +568,9 @@ } }, "node_modules/@eslint/config-helpers": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz", - "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==", + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz", + "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==", "dev": true, "license": "Apache-2.0", "peer": true, @@ -612,9 +579,9 @@ } }, "node_modules/@eslint/core": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz", - "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz", + "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==", "dev": true, "license": "Apache-2.0", "peer": true, @@ -676,9 +643,9 @@ } }, "node_modules/@eslint/js": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz", - "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz", + "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==", "dev": true, "license": "MIT", "peer": true, @@ -701,14 +668,14 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz", - "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz", + "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==", "dev": true, "license": "Apache-2.0", "peer": true, "dependencies": { - "@eslint/core": "^0.15.1", + "@eslint/core": "^0.15.2", "levn": "^0.4.1" }, "engines": { @@ -923,49 +890,6 @@ "url": "https://opencollective.com/pkgr" } }, - "node_modules/@protobuf-ts/plugin": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/@protobuf-ts/plugin/-/plugin-2.11.1.tgz", - "integrity": "sha512-HyuprDcw0bEEJqkOWe1rnXUP0gwYLij8YhPuZyZk6cJbIgc/Q0IFgoHQxOXNIXAcXM4Sbehh6kjVnCzasElw1A==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@bufbuild/protobuf": "^2.4.0", - "@bufbuild/protoplugin": "^2.4.0", - "@protobuf-ts/protoc": "^2.11.1", - "@protobuf-ts/runtime": "^2.11.1", - "@protobuf-ts/runtime-rpc": "^2.11.1", - "typescript": "^3.9" - }, - "bin": { - "protoc-gen-dump": "bin/protoc-gen-dump", - "protoc-gen-ts": "bin/protoc-gen-ts" - } - }, - "node_modules/@protobuf-ts/plugin/node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/@protobuf-ts/protoc": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.11.1.tgz", - "integrity": "sha512-mUZJaV0daGO6HUX90o/atzQ6A7bbN2RSuHtdwo8SSF2Qoe3zHwa4IHyCN1evftTeHfLmdz+45qo47sL+5P8nyg==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "protoc": "protoc.js" - } - }, "node_modules/@protobuf-ts/runtime": { "version": "2.11.1", "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime/-/runtime-2.11.1.tgz", @@ -1066,13 +990,13 @@ "peer": true }, "node_modules/@types/node": { - "version": "24.1.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz", - "integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==", + "version": "24.2.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz", + "integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.8.0" + "undici-types": "~7.10.0" } }, "node_modules/@types/semver": { @@ -1083,17 +1007,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.38.0.tgz", - "integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.0.tgz", + "integrity": "sha512-bhEz6OZeUR+O/6yx9Jk6ohX6H9JSFTaiY0v9/PuKT3oGK0rn0jNplLmyFUGV+a9gfYnVNwGDwS/UkLIuXNb2Rw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/type-utils": "8.38.0", - "@typescript-eslint/utils": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/type-utils": "8.39.0", + "@typescript-eslint/utils": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "graphemer": "^1.4.0", "ignore": "^7.0.0", "natural-compare": "^1.4.0", @@ -1107,22 +1031,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.38.0", + "@typescript-eslint/parser": "^8.39.0", "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.38.0.tgz", - "integrity": "sha512-Zhy8HCvBUEfBECzIl1PKqF4p11+d0aUJS1GeUiuqK9WmOug8YCmC4h4bjyBvMyAMI9sbRczmrYL5lKg/YMbrcQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.0.tgz", + "integrity": "sha512-g3WpVQHngx0aLXn6kfIYCZxM6rRJlWzEkVpqEFLT3SgEDsp9cpCbxxgwnE504q4H+ruSDh/VGS6nqZIDynP+vg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "debug": "^4.3.4" }, "engines": { @@ -1134,18 +1058,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.38.0.tgz", - "integrity": "sha512-dbK7Jvqcb8c9QfH01YB6pORpqX1mn5gDZc9n63Ak/+jD67oWXn3Gs0M6vddAN+eDXBCS5EmNWzbSxsn9SzFWWg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.0.tgz", + "integrity": "sha512-CTzJqaSq30V/Z2Og9jogzZt8lJRR5TKlAdXmWgdu4hgcC9Kww5flQ+xFvMxIBWVNdxJO7OifgdOK4PokMIWPew==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.38.0", - "@typescript-eslint/types": "^8.38.0", + "@typescript-eslint/tsconfig-utils": "^8.39.0", + "@typescript-eslint/types": "^8.39.0", "debug": "^4.3.4" }, "engines": { @@ -1156,18 +1080,18 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.38.0.tgz", - "integrity": "sha512-WJw3AVlFFcdT9Ri1xs/lg8LwDqgekWXWhH3iAF+1ZM+QPd7oxQ6jvtW/JPwzAScxitILUIFs0/AnQ/UWHzbATQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.0.tgz", + "integrity": "sha512-8QOzff9UKxOh6npZQ/4FQu4mjdOCGSdO3p44ww0hk8Vu+IGbg0tB/H1LcTARRDzGCC8pDGbh2rissBuuoPgH8A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0" + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1178,9 +1102,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.38.0.tgz", - "integrity": "sha512-Lum9RtSE3EroKk/bYns+sPOodqb2Fv50XOl/gMviMKNvanETUuUcC9ObRbzrJ4VSd2JalPqgSAavwrPiPvnAiQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.0.tgz", + "integrity": "sha512-Fd3/QjmFV2sKmvv3Mrj8r6N8CryYiCS8Wdb/6/rgOXAWGcFuc+VkQuG28uk/4kVNVZBQuuDHEDUpo/pQ32zsIQ==", "dev": true, "license": "MIT", "engines": { @@ -1191,19 +1115,19 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.38.0.tgz", - "integrity": "sha512-c7jAvGEZVf0ao2z+nnz8BUaHZD09Agbh+DY7qvBQqLiz8uJzRgVPj5YvOh8I8uEiH8oIUGIfHzMwUcGVco/SJg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.0.tgz", + "integrity": "sha512-6B3z0c1DXVT2vYA9+z9axjtc09rqKUPRmijD5m9iv8iQpHBRYRMBcgxSiKTZKm6FwWw1/cI4v6em35OsKCiN5Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/utils": "8.38.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/utils": "8.39.0", "debug": "^4.3.4", "ts-api-utils": "^2.1.0" }, @@ -1216,13 +1140,13 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.38.0.tgz", - "integrity": "sha512-wzkUfX3plUqij4YwWaJyqhiPE5UCRVlFpKn1oCRn2O1bJ592XxWJj8ROQ3JD5MYXLORW84063z3tZTb/cs4Tyw==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.0.tgz", + "integrity": "sha512-ArDdaOllnCj3yn/lzKn9s0pBQYmmyme/v1HbGIGB0GB/knFI3fWMHloC+oYTJW46tVbYnGKTMDK4ah1sC2v0Kg==", "dev": true, "license": "MIT", "engines": { @@ -1234,16 +1158,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.38.0.tgz", - "integrity": "sha512-fooELKcAKzxux6fA6pxOflpNS0jc+nOQEEOipXFNjSlBS6fqrJOVY/whSn70SScHrcJ2LDsxWrneFoWYSVfqhQ==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.0.tgz", + "integrity": "sha512-ndWdiflRMvfIgQRpckQQLiB5qAKQ7w++V4LlCHwp62eym1HLB/kw7D9f2e8ytONls/jt89TEasgvb+VwnRprsw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.38.0", - "@typescript-eslint/tsconfig-utils": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/visitor-keys": "8.38.0", + "@typescript-eslint/project-service": "8.39.0", + "@typescript-eslint/tsconfig-utils": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/visitor-keys": "8.39.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -1259,7 +1183,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { @@ -1289,16 +1213,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.38.0.tgz", - "integrity": "sha512-hHcMA86Hgt+ijJlrD8fX0j1j8w4C92zue/8LOPAFioIno+W0+L7KqE8QZKCcPGc/92Vs9x36w/4MPTJhqXdyvg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.0.tgz", + "integrity": "sha512-4GVSvNA0Vx1Ktwvf4sFE+exxJ3QGUorQG1/A5mRfRNZtkBT2xrA/BCO2H0eALx/PnvCS6/vmYwRdDA41EoffkQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.7.0", - "@typescript-eslint/scope-manager": "8.38.0", - "@typescript-eslint/types": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0" + "@typescript-eslint/scope-manager": "8.39.0", + "@typescript-eslint/types": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1309,17 +1233,17 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.38.0.tgz", - "integrity": "sha512-pWrTcoFNWuwHlA9CvlfSsGWs14JxfN1TH25zM5L7o0pRLhsoZkDnTsXfQRJBEWJoV5DL0jf+Z+sxiud+K0mq1g==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.0.tgz", + "integrity": "sha512-ldgiJ+VAhQCfIjeOgu8Kj5nSxds0ktPOSO9p4+0VDH2R2pLvQraaM5Oen2d7NxzMCm+Sn/vJT+mv2H5u6b/3fA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.38.0", + "@typescript-eslint/types": "8.39.0", "eslint-visitor-keys": "^4.2.1" }, "engines": { @@ -1343,19 +1267,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@typescript/vfs": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.6.1.tgz", - "integrity": "sha512-JwoxboBh7Oz1v38tPbkrZ62ZXNHAk9bJ7c9x0eI5zBfBnBYGhURdbnh7Z4smN/MV48Y5OCcZb58n972UtbazsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.1.1" - }, - "peerDependencies": { - "typescript": "*" - } - }, "node_modules/@typespec/ts-http-runtime": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.0.tgz", @@ -2488,9 +2399,9 @@ } }, "node_modules/eslint": { - "version": "9.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz", - "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==", + "version": "9.33.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.33.0.tgz", + "integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==", "dev": true, "license": "MIT", "peer": true, @@ -2498,11 +2409,11 @@ "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.0", - "@eslint/config-helpers": "^0.3.0", - "@eslint/core": "^0.15.0", + "@eslint/config-helpers": "^0.3.1", + "@eslint/core": "^0.15.2", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.32.0", - "@eslint/plugin-kit": "^0.3.4", + "@eslint/js": "9.33.0", + "@eslint/plugin-kit": "^0.3.5", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -2710,9 +2621,9 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.3.tgz", - "integrity": "sha512-NAdMYww51ehKfDyDhv59/eIItUVzU0Io9H2E8nHNGKEeeqlnci+1gCvrHib6EmZdf6GxF+LCV5K7UC65Ezvw7w==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.4.tgz", + "integrity": "sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==", "dev": true, "license": "MIT", "peer": true, @@ -4245,9 +4156,9 @@ } }, "node_modules/napi-postinstall": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.2.tgz", - "integrity": "sha512-tWVJxJHmBWLy69PvO96TZMZDrzmw5KeiZBz3RHmiM2XZ9grBJ2WgMAFVVg25nqp3ZjTFUs2Ftw1JhscL3Teliw==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.3.tgz", + "integrity": "sha512-uTp172LLXSxuSYHv/kou+f6KW3SMppU9ivthaVTXian9sOt3XM/zHYHpRZiLgQoxeWfYUnslNWQHF1+G71xcow==", "dev": true, "license": "MIT", "peer": true, @@ -5493,9 +5404,9 @@ } }, "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "dev": true, "license": "Apache-2.0", "bin": { @@ -5507,16 +5418,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.38.0.tgz", - "integrity": "sha512-FsZlrYK6bPDGoLeZRuvx2v6qrM03I0U0SnfCLPs/XCCPCFD80xU9Pg09H/K+XFa68uJuZo7l/Xhs+eDRg2l3hg==", + "version": "8.39.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.0.tgz", + "integrity": "sha512-lH8FvtdtzcHJCkMOKnN73LIn6SLTpoojgJqDAxPm1jCR14eWSGPX8ul/gggBdPMk/d5+u9V854vTYQ8T5jF/1Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.38.0", - "@typescript-eslint/parser": "8.38.0", - "@typescript-eslint/typescript-estree": "8.38.0", - "@typescript-eslint/utils": "8.38.0" + "@typescript-eslint/eslint-plugin": "8.39.0", + "@typescript-eslint/parser": "8.39.0", + "@typescript-eslint/typescript-estree": "8.39.0", + "@typescript-eslint/utils": "8.39.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5527,7 +5438,7 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.9.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/unbox-primitive": { @@ -5564,9 +5475,9 @@ } }, "node_modules/undici-types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", - "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", "dev": true, "license": "MIT" }, diff --git a/wptest/composer.lock b/wptest/composer.lock index 5664abfe..960f78e4 100644 --- a/wptest/composer.lock +++ b/wptest/composer.lock @@ -79,16 +79,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.13.3", + "version": "1.13.4", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "faed855a7b5f4d4637717c2b3863e277116beb36" + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/faed855a7b5f4d4637717c2b3863e277116beb36", - "reference": "faed855a7b5f4d4637717c2b3863e277116beb36", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", "shasum": "" }, "require": { @@ -127,7 +127,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.3" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { @@ -135,7 +135,7 @@ "type": "tidelift" } ], - "time": "2025-07-05T12:25:42+00:00" + "time": "2025-08-01T08:46:24+00:00" }, { "name": "nikic/php-parser", @@ -634,16 +634,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.23", + "version": "9.6.24", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95" + "reference": "ea49afa29aeea25ea7bf9de9fdd7cab163cc0701" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", - "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ea49afa29aeea25ea7bf9de9fdd7cab163cc0701", + "reference": "ea49afa29aeea25ea7bf9de9fdd7cab163cc0701", "shasum": "" }, "require": { @@ -654,7 +654,7 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.13.1", + "myclabs/deep-copy": "^1.13.4", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=7.3", @@ -665,11 +665,11 @@ "phpunit/php-timer": "^5.0.3", "sebastian/cli-parser": "^1.0.2", "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.8", + "sebastian/comparator": "^4.0.9", "sebastian/diff": "^4.0.6", "sebastian/environment": "^5.1.5", "sebastian/exporter": "^4.0.6", - "sebastian/global-state": "^5.0.7", + "sebastian/global-state": "^5.0.8", "sebastian/object-enumerator": "^4.0.4", "sebastian/resource-operations": "^3.0.4", "sebastian/type": "^3.2.1", @@ -717,7 +717,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.23" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.24" }, "funding": [ { @@ -741,7 +741,7 @@ "type": "tidelift" } ], - "time": "2025-05-02T06:40:34+00:00" + "time": "2025-08-10T08:32:42+00:00" }, { "name": "sebastian/cli-parser", @@ -912,16 +912,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.8", + "version": "4.0.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5", "shasum": "" }, "require": { @@ -974,15 +974,27 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2025-08-10T06:51:50+00:00" }, { "name": "sebastian/complexity", @@ -1249,16 +1261,16 @@ }, { "name": "sebastian/global-state", - "version": "5.0.7", + "version": "5.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b6781316bdcd28260904e7cc18ec983d0d2ef4f6", + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6", "shasum": "" }, "require": { @@ -1301,15 +1313,27 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.8" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" } ], - "time": "2024-03-02T06:35:11+00:00" + "time": "2025-08-10T07:10:35+00:00" }, { "name": "sebastian/lines-of-code", @@ -1482,16 +1506,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0", + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0", "shasum": "" }, "require": { @@ -1533,15 +1557,27 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" } ], - "time": "2023-02-03T06:07:39+00:00" + "time": "2025-08-10T06:57:39+00:00" }, { "name": "sebastian/resource-operations", From f92769148d13abe09361875ed46562297d3623be Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 11 Aug 2025 02:25:55 +0000 Subject: [PATCH 2/2] chore: regenerate dist --- dist/post/index.js | 4 ++-- dist/setup/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/post/index.js b/dist/post/index.js index a474b47a..5e56b639 100644 --- a/dist/post/index.js +++ b/dist/post/index.js @@ -1,3 +1,3 @@ -(()=>{var e={5116:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const f=d(n(37484));const y=d(n(16928));const v=d(n(98299));const D=d(n(73171));const M=d(n(96819));const U=n(17606);const V=n(95321);const j=n(58287);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,n,o,i=false){return p(this,void 0,void 0,(function*(){const d=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${d}`);checkPaths(e);switch(d){case"v2":return yield restoreCacheV2(e,t,n,o,i);case"v1":default:return yield restoreCacheV1(e,t,n,o,i)}}))}t.restoreCache=restoreCache;function restoreCacheV1(e,t,n,o,i=false){return p(this,void 0,void 0,(function*(){n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}const p=yield v.getCompressionMethod();let M="";try{const t=yield D.getCacheEntry(d,e,{compressionMethod:p,enableCrossOsArchive:i});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(o===null||o===void 0?void 0:o.lookupOnly){f.info("Lookup only - skipping download");return t.cacheKey}M=y.join(yield v.createTempDirectory(),v.getCacheFileName(p));f.debug(`Archive Path: ${M}`);yield D.downloadCache(t.archiveLocation,M,o);if(f.isDebug()){yield(0,V.listTar)(M,p)}const n=v.getArchiveFileSizeInBytes(M);f.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);yield(0,V.extractTar)(M,p);f.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{f.warning(`Failed to restore: ${e.message}`)}}finally{try{yield v.unlinkFile(M)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,n,o,i=false){return p(this,void 0,void 0,(function*(){o=Object.assign(Object.assign({},o),{useAzureSdk:true});n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}let p="";try{const U=M.internalCacheTwirpClient();const j=yield v.getCompressionMethod();const K={key:t,restoreKeys:n,version:v.getCacheVersion(e,j,i)};const ee=yield U.GetCacheEntryDownloadURL(K);if(!ee.ok){f.debug(`Cache not found for version ${K.version} of keys: ${d.join(", ")}`);return undefined}f.info(`Cache hit for: ${K.key}`);if(o===null||o===void 0?void 0:o.lookupOnly){f.info("Lookup only - skipping download");return ee.matchedKey}p=y.join(yield v.createTempDirectory(),v.getCacheFileName(j));f.debug(`Archive path: ${p}`);f.debug(`Starting download of archive to: ${p}`);yield D.downloadCache(ee.signedDownloadUrl,p,o);const te=v.getArchiveFileSizeInBytes(p);f.info(`Cache Size: ~${Math.round(te/(1024*1024))} MB (${te} B)`);if(f.isDebug()){yield(0,V.listTar)(p,j)}yield(0,V.extractTar)(p,j);f.info("Cache restored successfully");return ee.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{f.warning(`Failed to restore: ${e.message}`)}}finally{try{if(p){yield v.unlinkFile(p)}}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function saveCache(e,t,n,o=false){return p(this,void 0,void 0,(function*(){const i=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${i}`);checkPaths(e);checkKey(t);switch(i){case"v2":return yield saveCacheV2(e,t,n,o);case"v1":default:return yield saveCacheV1(e,t,n,o)}}))}t.saveCache=saveCache;function saveCacheV1(e,t,n,o=false){var i,d,M,j,K;return p(this,void 0,void 0,(function*(){const p=yield v.getCompressionMethod();let ee=-1;const te=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(te)}`);if(te.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const re=yield v.createTempDirectory();const ne=y.join(re,v.getCacheFileName(p));f.debug(`Archive Path: ${ne}`);try{yield(0,V.createTar)(re,te,p);if(f.isDebug()){yield(0,V.listTar)(ne,p)}const y=10*1024*1024*1024;const oe=v.getArchiveFileSizeInBytes(ne);f.debug(`File Size: ${oe}`);if(oe>y&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(oe/(1024*1024))} MB (${oe} B) is over the 10GB limit, not saving cache.`)}f.debug("Reserving Cache");const ie=yield D.reserveCache(t,e,{compressionMethod:p,enableCrossOsArchive:o,cacheSize:oe});if((i=ie===null||ie===void 0?void 0:ie.result)===null||i===void 0?void 0:i.cacheId){ee=(d=ie===null||ie===void 0?void 0:ie.result)===null||d===void 0?void 0:d.cacheId}else if((ie===null||ie===void 0?void 0:ie.statusCode)===400){throw new Error((j=(M=ie===null||ie===void 0?void 0:ie.error)===null||M===void 0?void 0:M.message)!==null&&j!==void 0?j:`Cache size of ~${Math.round(oe/(1024*1024))} MB (${oe} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(K=ie===null||ie===void 0?void 0:ie.error)===null||K===void 0?void 0:K.message}`)}f.debug(`Saving Cache (ID: ${ee})`);yield D.saveCache(ee,ne,"",n)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}finally{try{yield v.unlinkFile(ne)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return ee}))}function saveCacheV2(e,t,n,o=false){return p(this,void 0,void 0,(function*(){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const i=yield v.getCompressionMethod();const d=M.internalCacheTwirpClient();let p=-1;const K=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(K)}`);if(K.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const ee=yield v.createTempDirectory();const te=y.join(ee,v.getCacheFileName(i));f.debug(`Archive Path: ${te}`);try{yield(0,V.createTar)(ee,K,i);if(f.isDebug()){yield(0,V.listTar)(te,i)}const y=v.getArchiveFileSizeInBytes(te);f.debug(`File Size: ${y}`);if(y>j.CacheFileSizeLimit&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`)}n.archiveSizeBytes=y;f.debug("Reserving Cache");const M=v.getCacheVersion(e,i,o);const re={key:t,version:M};let ne;try{const e=yield d.CreateCacheEntry(re);if(!e.ok){throw new Error("Response was not ok")}ne=e.signedUploadUrl}catch(e){f.debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}f.debug(`Attempting to upload cache located at: ${te}`);yield D.saveCache(p,te,ne,n);const oe={key:t,version:M,sizeBytes:`${y}`};const ie=yield d.FinalizeCacheEntryUpload(oe);f.debug(`FinalizeCacheEntryUploadResponse: ${ie.ok}`);if(!ie.ok){throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}p=parseInt(ie.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}finally{try{yield v.unlinkFile(te)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return p}))}},93156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheService=t.GetCacheEntryDownloadURLResponse=t.GetCacheEntryDownloadURLRequest=t.FinalizeCacheEntryUploadResponse=t.FinalizeCacheEntryUploadRequest=t.CreateCacheEntryResponse=t.CreateCacheEntryRequest=void 0;const o=n(44420);const i=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(68886);const v=n(89444);class CreateCacheEntryRequest$Type extends y.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>v.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheServiceClientProtobuf=t.CacheServiceClientJSON=void 0;const o=n(93156);class CacheServiceClientJSON{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=o.CreateCacheEntryRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",t);return n.then((e=>o.CreateCacheEntryResponse.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=o.FinalizeCacheEntryUploadRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return n.then((e=>o.FinalizeCacheEntryUploadResponse.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=o.GetCacheEntryDownloadURLRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return n.then((e=>o.GetCacheEntryDownloadURLResponse.fromJson(e,{ignoreUnknownFields:true})))}}t.CacheServiceClientJSON=CacheServiceClientJSON;class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=o.CreateCacheEntryRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return n.then((e=>o.CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=o.FinalizeCacheEntryUploadRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return n.then((e=>o.FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=o.GetCacheEntryDownloadURLRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return n.then((e=>o.GetCacheEntryDownloadURLResponse.fromBinary(e)))}}t.CacheServiceClientProtobuf=CacheServiceClientProtobuf},89444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheMetadata=void 0;const o=n(68886);const i=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(29425);class CacheMetadata$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>y.CacheScope}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let d=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheScope=void 0;const o=n(68886);const i=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);class CacheScope$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let d=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.posp(this,void 0,void 0,(function*(){return o.getJson(getCacheApiUrl(d))}))));if(y.statusCode===204){if(f.isDebug()){yield printCachesListForDiagnostics(e[0],o,i)}return null}if(!(0,ee.isSuccessStatusCode)(y.statusCode)){throw new Error(`Cache service responded with ${y.statusCode}`)}const v=y.result;const D=v===null||v===void 0?void 0:v.archiveLocation;if(!D){throw new Error("Cache not found.")}f.setSecret(D);f.debug(`Cache Result:`);f.debug(JSON.stringify(v));return v}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,n){return p(this,void 0,void 0,(function*(){const o=`caches?key=${encodeURIComponent(e)}`;const i=yield(0,ee.retryTypedResponse)("listCache",(()=>p(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(o))}))));if(i.statusCode===200){const t=i.result;const o=t===null||t===void 0?void 0:t.totalCount;if(o&&o>0){f.debug(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){f.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,n){return p(this,void 0,void 0,(function*(){const o=new M.URL(e);const i=(0,K.getDownloadOptions)(n);if(o.hostname.endsWith(".blob.core.windows.net")){if(i.useAzureSdk){yield(0,j.downloadCacheStorageSDK)(e,t,i)}else if(i.concurrentBlobDownloads){yield(0,j.downloadCacheHttpClientConcurrent)(e,t,i)}else{yield(0,j.downloadCacheHttpClient)(e,t)}}else{yield(0,j.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,n){return p(this,void 0,void 0,(function*(){const o=createHttpClient();const i=U.getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const d={key:e,version:i,cacheSize:n===null||n===void 0?void 0:n.cacheSize};const f=yield(0,ee.retryTypedResponse)("reserveCache",(()=>p(this,void 0,void 0,(function*(){return o.postJson(getCacheApiUrl("caches"),d)}))));return f}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,n,o,i){return p(this,void 0,void 0,(function*(){f.debug(`Uploading chunk of size ${i-o+1} bytes at offset ${o} with content range: ${getContentRange(o,i)}`);const d={"Content-Type":"application/octet-stream","Content-Range":getContentRange(o,i)};const y=yield(0,ee.retryHttpClientResponse)(`uploadChunk (start: ${o}, end: ${i})`,(()=>p(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,n(),d)}))));if(!(0,ee.isSuccessStatusCode)(y.message.statusCode)){throw new Error(`Cache service responded with ${y.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=U.getArchiveFileSizeInBytes(n);const d=getCacheApiUrl(`caches/${t.toString()}`);const y=D.openSync(n,"r");const v=(0,K.getUploadOptions)(o);const M=U.assertDefined("uploadConcurrency",v.uploadConcurrency);const V=U.assertDefined("uploadChunkSize",v.uploadChunkSize);const j=[...new Array(M).keys()];f.debug("Awaiting all uploads");let ee=0;try{yield Promise.all(j.map((()=>p(this,void 0,void 0,(function*(){while(eeD.createReadStream(n,{fd:y,start:o,end:p,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),o,p)}})))))}finally{D.closeSync(y)}return}))}function commitCache(e,t,n){return p(this,void 0,void 0,(function*(){const o={size:n};return yield(0,ee.retryTypedResponse)("commitCache",(()=>p(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),o)}))))}))}function saveCache(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=(0,K.getUploadOptions)(o);if(i.useAzureSdk){if(!n){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield(0,V.uploadCacheArchiveSDK)(n,t,o)}else{const n=createHttpClient();f.debug("Upload cache");yield uploadFile(n,e,t,o);f.debug("Commiting cache");const i=U.getArchiveFileSizeInBytes(t);f.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);const d=yield commitCache(n,e,i);if(!(0,ee.isSuccessStatusCode)(d.statusCode)){throw new Error(`Cache service responded with ${d.statusCode} during commit cache.`)}f.info("Cache saved successfully")}}))}t.saveCache=saveCache},98299:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeToken=t.getCacheVersion=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const y=d(n(37484));const v=d(n(95236));const D=d(n(47206));const M=d(n(94994));const U=d(n(76982));const V=d(n(79896));const j=d(n(16928));const K=d(n(53272));const ee=d(n(39023));const te=n(58287);const re="1.0";function createTempDirectory(){return p(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let n;if(e){n=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){n="/Users"}else{n="/home"}}t=j.join(n,"actions","temp")}const n=j.join(t,U.randomUUID());yield M.mkdirP(n);return n}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return V.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,n,o,i;var d;return p(this,void 0,void 0,(function*(){const p=[];const v=(d=process.env["GITHUB_WORKSPACE"])!==null&&d!==void 0?d:process.cwd();const M=yield D.create(e.join("\n"),{implicitDescendants:false});try{for(var U=true,V=f(M.globGenerator()),K;K=yield V.next(),t=K.done,!t;U=true){i=K.value;U=false;const e=i;const t=j.relative(v,e).replace(new RegExp(`\\${j.sep}`,"g"),"/");y.debug(`Matched: ${t}`);if(t===""){p.push(".")}else{p.push(`${t}`)}}}catch(e){n={error:e}}finally{try{if(!U&&!t&&(o=V.return))yield o.call(V)}finally{if(n)throw n.error}}return p}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return p(this,void 0,void 0,(function*(){return ee.promisify(V.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return p(this,void 0,void 0,(function*(){let n="";t.push("--version");y.debug(`Checking ${e} ${t.join(" ")}`);try{yield v.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){y.debug(e.message)}n=n.trim();y.debug(n);return n}))}function getCompressionMethod(){return p(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=K.clean(e);y.debug(`zstd version: ${t}`);if(e===""){return te.CompressionMethod.Gzip}else{return te.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===te.CompressionMethod.Gzip?te.CacheFilename.Gzip:te.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return p(this,void 0,void 0,(function*(){if(V.existsSync(te.GnuTarPathOnWindows)){return te.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?M.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function getCacheVersion(e,t,n=false){const o=e.slice();if(t){o.push(t)}if(process.platform==="win32"&&!n){o.push("windows-only")}o.push(re);return U.createHash("sha256").update(o.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken},17606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCacheServiceURL=t.getCacheServiceVersion=t.isGhes=void 0;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const o=t.endsWith(".GHE.COM");const i=t.endsWith(".LOCALHOST");return!n&&!o&&!i}t.isGhes=isGhes;function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}t.getCacheServiceVersion=getCacheServiceVersion;function getCacheServiceURL(){const e=getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}t.getCacheServiceURL=getCacheServiceURL},58287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheFileSizeLimit=t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var n;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(n||(t.CacheFilename=n={}));var o;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(o||(t.CompressionMethod=o={}));var i;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(i||(t.ArchiveToolType=i={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt";t.CacheFileSizeLimit=10*Math.pow(1024,3)},75067:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClientConcurrent=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const f=d(n(37484));const y=n(54844);const v=n(71400);const D=d(n(20181));const M=d(n(79896));const U=d(n(2203));const V=d(n(39023));const j=d(n(98299));const K=n(58287);const ee=n(32846);const te=n(68110);function pipeResponseToStream(e,t){return p(this,void 0,void 0,(function*(){const n=V.promisify(U.pipeline);yield n(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;f.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Received ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return p(this,void 0,void 0,(function*(){const n=M.createWriteStream(t);const o=new y.HttpClient("actions/cache");const i=yield(0,ee.retryHttpClientResponse)("downloadCache",(()=>p(this,void 0,void 0,(function*(){return o.get(e)}))));i.message.socket.setTimeout(K.SocketTimeout,(()=>{i.message.destroy();f.debug(`Aborting download, socket timed out after ${K.SocketTimeout} ms`)}));yield pipeResponseToStream(i,n);const d=i.message.headers["content-length"];if(d){const e=parseInt(d);const n=j.getArchiveFileSizeInBytes(t);if(n!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}}else{f.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(e,t,n){var o;return p(this,void 0,void 0,(function*(){const i=yield M.promises.open(t,"w");const d=new y.HttpClient("actions/cache",undefined,{socketTimeout:n.timeoutInMs,keepAlive:true});try{const t=yield(0,ee.retryHttpClientResponse)("downloadCacheMetadata",(()=>p(this,void 0,void 0,(function*(){return yield d.request("HEAD",e,null,{})}))));const f=t.message.headers["content-length"];if(f===undefined||f===null){throw new Error("Content-Length not found on blob response")}const y=parseInt(f);if(Number.isNaN(y)){throw new Error(`Could not interpret Content-Length: ${y}`)}const v=[];const D=4*1024*1024;for(let t=0;tp(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(d,e,t,n)}))})}v.reverse();let M=0;let U=0;const V=new DownloadProgress(y);V.startDisplayTimer();const j=V.onProgress();const K=[];let te;const waitAndWrite=()=>p(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(K));yield i.write(e.buffer,0,e.count,e.offset);M--;delete K[e.offset];U+=e.count;j({loadedBytes:U})}));while(te=v.pop()){K[te.offset]=te.promiseGetter();M++;if(M>=((o=n.downloadConcurrency)!==null&&o!==void 0?o:10)){yield waitAndWrite()}}while(M>0){yield waitAndWrite()}}finally{d.dispose();yield i.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=5;let d=0;while(true){try{const i=3e4;const d=yield promiseWithTimeout(i,downloadSegment(e,t,n,o));if(typeof d==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return d}catch(e){if(d>=i){throw e}d++}}}))}function downloadSegment(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=yield(0,ee.retryHttpClientResponse)("downloadCachePart",(()=>p(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${n}-${n+o-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:n,count:o,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,n){var o;return p(this,void 0,void 0,(function*(){const i=new v.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}});const d=yield i.getProperties();const p=(o=d.contentLength)!==null&&o!==void 0?o:-1;if(p<0){f.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,D.constants.MAX_LENGTH);const o=new DownloadProgress(p);const d=M.openSync(t,"w");try{o.startDisplayTimer();const t=new te.AbortController;const f=t.signal;while(!o.isDone()){const y=o.segmentOffset+o.segmentSize;const v=Math.min(e,p-y);o.nextSegment(v);const D=yield promiseWithTimeout(n.segmentTimeoutInMs||36e5,i.downloadToBuffer(y,v,{abortSignal:f,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(D==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(D)){M.writeFileSync(d,D)}}}finally{o.stopDisplayTimer();M.closeSync(d)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>p(void 0,void 0,void 0,(function*(){let n;const o=new Promise((t=>{n=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,o]).then((e=>{clearTimeout(n);return e}))}))},32846:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const f=d(n(37484));const y=n(54844);const v=n(58287);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[y.HttpCodes.BadGateway,y.HttpCodes.ServiceUnavailable,y.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return p(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,n,o=v.DefaultRetryAttempts,i=v.DefaultRetryDelay,d=undefined){return p(this,void 0,void 0,(function*(){let p="";let y=1;while(y<=o){let v=undefined;let D=undefined;let M=false;try{v=yield t()}catch(e){if(d){v=d(e)}M=true;p=e.message}if(v){D=n(v);if(!isServerErrorStatusCode(D)){return v}}if(D){M=isRetryableStatusCode(D);p=`Cache service responded with ${D}`}f.debug(`${e} - Attempt ${y} of ${o} failed with error: ${p}`);if(!M){f.debug(`${e} - Error is not retryable`);break}yield sleep(i);y++}throw Error(`${e} failed: ${p}`)}))}t.retry=retry;function retryTypedResponse(e,t,n=v.DefaultRetryAttempts,o=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),n,o,(e=>{if(e instanceof y.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,n=v.DefaultRetryAttempts,o=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),n,o)}))}t.retryHttpClientResponse=retryHttpClientResponse},96819:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.internalCacheTwirpClient=void 0;const i=n(37484);const d=n(41899);const p=n(50263);const f=n(17606);const y=n(98299);const v=n(44552);const D=n(54844);const M=n(11486);const U=n(27564);class CacheServiceClient{constructor(e,t,n,o){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const i=(0,y.getRuntimeToken)();this.baseUrl=(0,f.getCacheServiceURL)();if(t){this.maxAttempts=t}if(n){this.baseRetryIntervalMilliseconds=n}if(o){this.retryMultiplier=o}this.httpClient=new D.HttpClient(e,[new v.BearerCredentialHandler(i)])}request(e,t,n,d){return o(this,void 0,void 0,(function*(){const p=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,i.debug)(`[Request] ${t} ${p}`);const f={"Content-Type":n};try{const{body:e}=yield this.retryableRequest((()=>o(this,void 0,void 0,(function*(){return this.httpClient.post(p,JSON.stringify(d),f)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return o(this,void 0,void 0,(function*(){let t=0;let n="";let o="";while(t=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[D.HttpCodes.BadGateway,D.HttpCodes.GatewayTimeout,D.HttpCodes.InternalServerError,D.HttpCodes.ServiceUnavailable,D.HttpCodes.TooManyRequests];return t.includes(e)}sleep(e){return o(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient((0,d.getUserAgentString)(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new M.CacheServiceClientJSON(t)}t.internalCacheTwirpClient=internalCacheTwirpClient},50263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UsageError=t.NetworkError=t.GHESNotSupportedError=t.CacheNotFoundError=t.InvalidResponseError=t.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}t.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}t.InvalidResponseError=InvalidResponseError;class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}t.CacheNotFoundError=CacheNotFoundError;class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}t.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t);this.code=e;this.name="NetworkError"}}t.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e);this.name="UsageError"}}t.UsageError=UsageError;UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")}},41899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentString=void 0;const o=n(64012);function getUserAgentString(){return`@actions/cache-${o.version}`}t.getUserAgentString=getUserAgentString},27564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.maskSecretUrls=t.maskSigUrl=void 0;const o=n(37484);function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const n=t.searchParams.get("sig");if(n){(0,o.setSecret)(n);(0,o.setSecret)(encodeURIComponent(n))}}catch(t){(0,o.debug)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}t.maskSigUrl=maskSigUrl;function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,o.debug)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}t.maskSecretUrls=maskSecretUrls},95321:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const f=n(95236);const y=d(n(94994));const v=n(79896);const D=d(n(16928));const M=d(n(98299));const U=n(58287);const V=process.platform==="win32";function getTarPath(){return p(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield M.getGnuTarPathOnWindows();const t=U.SystemTarPathOnWindows;if(e){return{path:e,type:U.ArchiveToolType.GNU}}else if((0,v.existsSync)(t)){return{path:t,type:U.ArchiveToolType.BSD}}break}case"darwin":{const e=yield y.which("gtar",false);if(e){return{path:e,type:U.ArchiveToolType.GNU}}else{return{path:yield y.which("tar",true),type:U.ArchiveToolType.BSD}}}default:break}return{path:yield y.which("tar",true),type:U.ArchiveToolType.GNU}}))}function getTarArgs(e,t,n,o=""){return p(this,void 0,void 0,(function*(){const i=[`"${e.path}"`];const d=M.getCacheFileName(t);const p="cache.tar";const f=getWorkingDirectory();const y=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(n){case"create":i.push("--posix","-cf",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--exclude",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--files-from",U.ManifestFilename);break;case"extract":i.push("-xf",y?p:o.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"));break;case"list":i.push("-tf",y?p:o.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P");break}if(e.type===U.ArchiveToolType.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t,n=""){return p(this,void 0,void 0,(function*(){let o;const i=yield getTarPath();const d=yield getTarArgs(i,e,t,n);const p=t!=="create"?yield getDecompressionProgram(i,e,n):yield getCompressionProgram(i,e);const f=i.type===U.ArchiveToolType.BSD&&e!==U.CompressionMethod.Gzip&&V;if(f&&t!=="create"){o=[[...p].join(" "),[...d].join(" ")]}else{o=[[...d].join(" "),[...p].join(" ")]}if(f){return o}return[o.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,n){return p(this,void 0,void 0,(function*(){const o=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return o?["zstd -d --long=30 --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d --long=30"':"unzstd --long=30"];case U.CompressionMethod.ZstdWithoutLong:return o?["zstd -d --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return p(this,void 0,void 0,(function*(){const n=M.getCacheFileName(t);const o=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return o?["zstd -T0 --long=30 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0 --long=30"':"zstdmt --long=30"];case U.CompressionMethod.ZstdWithoutLong:return o?["zstd -T0 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return p(this,void 0,void 0,(function*(){for(const n of e){try{yield(0,f.exec)(n,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${n.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return p(this,void 0,void 0,(function*(){const n=yield getCommands(t,"list",e);yield execCommands(n)}))}t.listTar=listTar;function extractTar(e,t){return p(this,void 0,void 0,(function*(){const n=getWorkingDirectory();yield y.mkdirP(n);const o=yield getCommands(t,"extract",e);yield execCommands(o)}))}t.extractTar=extractTar;function createTar(e,t,n){return p(this,void 0,void 0,(function*(){(0,v.writeFileSync)(D.join(e,U.ManifestFilename),t.join("\n"));const o=yield getCommands(n,"create");yield execCommands(o,e)}))}t.createTar=createTar},35268:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.uploadCacheArchiveSDK=t.UploadProgress=void 0;const f=d(n(37484));const y=n(71400);const v=n(50263);class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Sent ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.UploadProgress=UploadProgress;function uploadCacheArchiveSDK(e,t,n){var o;return p(this,void 0,void 0,(function*(){const i=new y.BlobClient(e);const d=i.getBlockBlobClient();const p=new UploadProgress((o=n===null||n===void 0?void 0:n.archiveSizeBytes)!==null&&o!==void 0?o:0);const D={blockSize:n===null||n===void 0?void 0:n.uploadChunkSize,concurrency:n===null||n===void 0?void 0:n.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:p.onProgress()};try{p.startDisplayTimer();f.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);const e=yield d.uploadFile(t,D);if(e._response.status>=400){throw new v.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){f.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{p.stopDisplayTimer()}}))}t.uploadCacheArchiveSDK=uploadCacheArchiveSDK},98356:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const p=d(n(37484));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Upload concurrency: ${t.uploadConcurrency}`);p.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const n=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(n&&!isNaN(Number(n))&&isFinite(Number(n))){t.segmentTimeoutInMs=Number(n)*60*1e3}p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Download concurrency: ${t.downloadConcurrency}`);p.debug(`Request timeout (ms): ${t.timeoutInMs}`);p.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);p.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);p.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},53272:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var o=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var d=16;var p=o-6;var f=t.re=[];var y=t.safeRe=[];var v=t.src=[];var D=t.tokens={};var M=0;function tok(e){D[e]=M++}var U="[a-zA-Z0-9-]";var V=[["\\s",1],["\\d",o],[U,p]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");v[D.XRANGEIDENTIFIERLOOSE]=v[D.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");v[D.XRANGEIDENTIFIER]=v[D.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");v[D.XRANGEPLAIN]="[v=\\s]*("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:"+v[D.PRERELEASE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");v[D.XRANGEPLAINLOOSE]="[v=\\s]*("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+v[D.PRERELEASELOOSE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGE");v[D.XRANGE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAIN]+"$";tok("XRANGELOOSE");v[D.XRANGELOOSE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAINLOOSE]+"$";tok("COERCE");v[D.COERCE]="(^|[^\\d])"+"(\\d{1,"+d+"})"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");f[D.COERCERTL]=new RegExp(v[D.COERCE],"g");y[D.COERCERTL]=new RegExp(makeSafeRe(v[D.COERCE]),"g");tok("LONETILDE");v[D.LONETILDE]="(?:~>?)";tok("TILDETRIM");v[D.TILDETRIM]="(\\s*)"+v[D.LONETILDE]+"\\s+";f[D.TILDETRIM]=new RegExp(v[D.TILDETRIM],"g");y[D.TILDETRIM]=new RegExp(makeSafeRe(v[D.TILDETRIM]),"g");var j="$1~";tok("TILDE");v[D.TILDE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAIN]+"$";tok("TILDELOOSE");v[D.TILDELOOSE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAINLOOSE]+"$";tok("LONECARET");v[D.LONECARET]="(?:\\^)";tok("CARETTRIM");v[D.CARETTRIM]="(\\s*)"+v[D.LONECARET]+"\\s+";f[D.CARETTRIM]=new RegExp(v[D.CARETTRIM],"g");y[D.CARETTRIM]=new RegExp(makeSafeRe(v[D.CARETTRIM]),"g");var K="$1^";tok("CARET");v[D.CARET]="^"+v[D.LONECARET]+v[D.XRANGEPLAIN]+"$";tok("CARETLOOSE");v[D.CARETLOOSE]="^"+v[D.LONECARET]+v[D.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");v[D.COMPARATORLOOSE]="^"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");v[D.COMPARATOR]="^"+v[D.GTLT]+"\\s*("+v[D.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");v[D.COMPARATORTRIM]="(\\s*)"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+"|"+v[D.XRANGEPLAIN]+")";f[D.COMPARATORTRIM]=new RegExp(v[D.COMPARATORTRIM],"g");y[D.COMPARATORTRIM]=new RegExp(makeSafeRe(v[D.COMPARATORTRIM]),"g");var ee="$1$2$3";tok("HYPHENRANGE");v[D.HYPHENRANGE]="^\\s*("+v[D.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");v[D.HYPHENRANGELOOSE]="^\\s*("+v[D.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");v[D.STAR]="(<|>)?=?\\s*\\*";for(var te=0;teo){return null}var n=t.loose?y[D.LOOSE]:y[D.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>o){throw new TypeError("version is longer than "+o+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var d=e.trim().match(t.loose?y[D.LOOSE]:y[D.FULL]);if(!d){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+d[1];this.minor=+d[2];this.patch=+d[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!d[4]){this.prerelease=[]}else{this.prerelease=d[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,o){if(typeof n==="string"){o=n;n=undefined}try{return new SemVer(e,n).inc(t,o).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var o=parse(t);var i="";if(n.prerelease.length||o.prerelease.length){i="pre";var d="prerelease"}for(var p in n){if(p==="major"||p==="minor"||p==="patch"){if(n[p]!==o[p]){return i+p}}}return d}}t.compareIdentifiers=compareIdentifiers;var re=/^[0-9]+$/;function compareIdentifiers(e,t){var n=re.test(e);var o=re.test(t);if(n&&o){e=+e;t=+t}return e===t?0:n&&!o?-1:o&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,o){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,o);case"!=":return neq(e,n,o);case">":return gt(e,n,o);case">=":return gte(e,n,o);case"<":return lt(e,n,o);case"<=":return lte(e,n,o);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ne){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var ne={};Comparator.prototype.parse=function(e){var t=this.options.loose?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=ne}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===ne||e===ne){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var o=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var d=this.semver.version===e.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var y=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return o||i||d&&p||f||y};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var o=t?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];e=e.replace(o,hyphenReplace);n("hyphen replace",e);e=e.replace(y[D.COMPARATORTRIM],ee);n("comparator trim",e,y[D.COMPARATORTRIM]);e=e.replace(y[D.TILDETRIM],j);e=e.replace(y[D.CARETTRIM],K);e=e.split(/\s+/).join(" ");var i=t?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var d=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){d=d.filter((function(e){return!!e.match(i)}))}d=d.map((function(e){return new Comparator(e,this.options)}),this);return d};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var o=e.slice();var i=o.pop();while(n&&o.length){n=o.every((function(e){return i.intersects(e,t)}));i=o.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var o=t.loose?y[D.TILDELOOSE]:y[D.TILDE];return e.replace(o,(function(t,o,i,d,p){n("tilde",e,t,o,i,d,p);var f;if(isX(o)){f=""}else if(isX(i)){f=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(isX(d)){f=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"}else if(p){n("replaceTilde pr",p);f=">="+o+"."+i+"."+d+"-"+p+" <"+o+"."+(+i+1)+".0"}else{f=">="+o+"."+i+"."+d+" <"+o+"."+(+i+1)+".0"}n("tilde return",f);return f}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var o=t.loose?y[D.CARETLOOSE]:y[D.CARET];return e.replace(o,(function(t,o,i,d,p){n("caret",e,t,o,i,d,p);var f;if(isX(o)){f=""}else if(isX(i)){f=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(isX(d)){if(o==="0"){f=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"}else{f=">="+o+"."+i+".0 <"+(+o+1)+".0.0"}}else if(p){n("replaceCaret pr",p);if(o==="0"){if(i==="0"){f=">="+o+"."+i+"."+d+"-"+p+" <"+o+"."+i+"."+(+d+1)}else{f=">="+o+"."+i+"."+d+"-"+p+" <"+o+"."+(+i+1)+".0"}}else{f=">="+o+"."+i+"."+d+"-"+p+" <"+(+o+1)+".0.0"}}else{n("no pr");if(o==="0"){if(i==="0"){f=">="+o+"."+i+"."+d+" <"+o+"."+i+"."+(+d+1)}else{f=">="+o+"."+i+"."+d+" <"+o+"."+(+i+1)+".0"}}else{f=">="+o+"."+i+"."+d+" <"+(+o+1)+".0.0"}}n("caret return",f);return f}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var o=t.loose?y[D.XRANGELOOSE]:y[D.XRANGE];return e.replace(o,(function(o,i,d,p,f,y){n("xRange",e,o,i,d,p,f,y);var v=isX(d);var D=v||isX(p);var M=D||isX(f);var U=M;if(i==="="&&U){i=""}y=t.includePrerelease?"-0":"";if(v){if(i===">"||i==="<"){o="<0.0.0-0"}else{o="*"}}else if(i&&U){if(D){p=0}f=0;if(i===">"){i=">=";if(D){d=+d+1;p=0;f=0}else{p=+p+1;f=0}}else if(i==="<="){i="<";if(D){d=+d+1}else{p=+p+1}}o=i+d+"."+p+"."+f+y}else if(D){o=">="+d+".0.0"+y+" <"+(+d+1)+".0.0"+y}else if(M){o=">="+d+"."+p+".0"+y+" <"+d+"."+(+p+1)+".0"+y}n("xRange return",o);return o}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(y[D.STAR],"")}function hyphenReplace(e,t,n,o,i,d,p,f,y,v,D,M,U){if(isX(n)){t=""}else if(isX(o)){t=">="+n+".0.0"}else if(isX(i)){t=">="+n+"."+o+".0"}else{t=">="+t}if(isX(y)){f=""}else if(isX(v)){f="<"+(+y+1)+".0.0"}else if(isX(D)){f="<"+y+"."+(+v+1)+".0"}else if(M){f="<="+y+"."+v+"."+D+"-"+M}else{f="<="+f}return(t+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var d=e[i].semver;if(d.major===t.major&&d.minor===t.minor&&d.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var o=null;var i=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!o||i.compare(e)===-1){o=e;i=new SemVer(o,n)}}}));return o}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var o=null;var i=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!o||i.compare(e)===1){o=e;i=new SemVer(o,n)}}}));return o}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var o=0;o":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,o){e=new SemVer(e,o);t=new Range(t,o);var i,d,p,f,y;switch(n){case">":i=gt;d=lte;p=lt;f=">";y=">=";break;case"<":i=lt;d=gte;p=gt;f="<";y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,o)){return false}for(var v=0;v=0.0.0")}M=M||e;U=U||e;if(i(e.semver,M.semver,o)){M=e}else if(p(e.semver,U.semver,o)){U=e}}));if(M.operator===f||M.operator===y){return false}if((!U.operator||U.operator===f)&&d(e,U.semver)){return false}else if(U.operator===y&&p(e,U.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(y[D.COERCE])}else{var o;while((o=y[D.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||o.index+o[0].length!==n.index+n[0].length){n=o}y[D.COERCERTL].lastIndex=o.index+o[1].length+o[2].length}y[D.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},44914:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const p=d(n(70857));const f=n(30302);function issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+p.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const y="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=y+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const o=this.properties[n];if(o){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(o)}`}}}}e+=`${y}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const f=n(44914);const y=n(24753);const v=n(30302);const D=d(n(70857));const M=d(n(16928));const U=n(35306);var V;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(V||(t.ExitCode=V={}));function exportVariable(e,t){const n=(0,v.toCommandValue)(t);process.env[e]=n;const o=process.env["GITHUB_ENV"]||"";if(o){return(0,y.issueFileCommand)("ENV",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){(0,f.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,y.issueFileCommand)("PATH",e)}else{(0,f.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${M.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const o=["false","False","FALSE"];const i=getInput(e,t);if(n.includes(i))return true;if(o.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return(0,y.issueFileCommand)("OUTPUT",(0,y.prepareKeyValueMessage)(e,t))}process.stdout.write(D.EOL);(0,f.issueCommand)("set-output",{name:e},(0,v.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,f.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=V.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,f.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,f.issueCommand)("error",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,f.issueCommand)("warning",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,f.issueCommand)("notice",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+D.EOL)}t.info=info;function startGroup(e){(0,f.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,f.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return p(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return(0,y.issueFileCommand)("STATE",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("save-state",{name:e},(0,v.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return p(this,void 0,void 0,(function*(){return yield U.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var j=n(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return j.summary}});var K=n(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return K.markdownSummary}});var ee=n(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return ee.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return ee.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return ee.toPlatformPath}});t.platform=d(n(18968))},24753:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const p=d(n(76982));const f=d(n(79896));const y=d(n(70857));const v=n(30302);function issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!f.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}f.appendFileSync(n,`${(0,v.toCommandValue)(t)}${y.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${p.randomUUID()}`;const o=(0,v.toCommandValue)(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(o.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${y.EOL}${o}${y.EOL}${n}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=n(54844);const d=n(44552);const p=n(37484);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new d.BearerCredentialHandler(OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return o(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const o=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const i=(t=o.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return o(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}(0,p.debug)(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);(0,p.setSecret)(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const p=d(n(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,p.sep)}t.toPlatformPath=toPlatformPath},18968:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const y=f(n(70857));const v=d(n(95236));const getWindowsInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>p(void 0,void 0,void 0,(function*(){var e,t,n,o;const{stdout:i}=yield v.getExecOutput("sw_vers",undefined,{silent:true});const d=(t=(e=i.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const p=(o=(n=i.match(/ProductName:\s*(.+)/))===null||n===void 0?void 0:n[1])!==null&&o!==void 0?o:"";return{name:p,version:d}}));const getLinuxInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,n]=e.trim().split("\n");return{name:t,version:n}}));t.platform=y.default.platform();t.arch=y.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return p(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},71847:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=n(70857);const d=n(79896);const{access:p,appendFile:f,writeFile:y}=d.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 o(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield p(e,d.constants.R_OK|d.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const o=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${o}>`}return`<${e}${o}>${t}`}write(e){return o(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const o=t?y:f;yield o(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return o(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(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const o=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(n,o);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:o,rowspan:i}=e;const d=t?"th":"td";const p=Object.assign(Object.assign({},o&&{colspan:o}),i&&{rowspan:i});return this.wrap(d,n,p)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:o,height:i}=n||{};const d=Object.assign(Object.assign({},o&&{width:o}),i&&{height:i});const p=this.wrap("img",null,Object.assign({src:e,alt:t},d));return this.addRaw(p).addEOL()}addHeading(e,t){const n=`h${t}`;const o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const i=this.wrap(o,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const v=new Summary;t.markdownSummary=v;t.summary=v},30302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},95236:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const f=n(13193);const y=d(n(6665));function exec(e,t,n){return p(this,void 0,void 0,(function*(){const o=y.argStringToArray(e);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=o[0];t=o.slice(1).concat(t||[]);const d=new y.ToolRunner(i,t,n);return d.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var o,i;return p(this,void 0,void 0,(function*(){let d="";let p="";const y=new f.StringDecoder("utf8");const v=new f.StringDecoder("utf8");const D=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stdout;const M=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{p+=v.write(e);if(M){M(e)}};const stdOutListener=e=>{d+=y.write(e);if(D){D(e)}};const U=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const V=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:U}));d+=y.end();p+=v.end();return{exitCode:V,stdout:d,stderr:p}}))}t.getExecOutput=getExecOutput},6665:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const f=d(n(70857));const y=d(n(24434));const v=d(n(35317));const D=d(n(16928));const M=d(n(94994));const U=d(n(75207));const V=n(53557);const j=process.platform==="win32";class ToolRunner extends y.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const o=this._getSpawnArgs(e);let i=t?"":"[command]";if(j){if(this._isCmdFile()){i+=n;for(const e of o){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of o){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(n);for(const e of o){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=n;for(const e of o){i+=` ${e}`}}return i}_processLineBuffer(e,t,n){try{let o=t+e.toString();let i=o.indexOf(f.EOL);while(i>-1){const e=o.substring(0,i);n(e);o=o.substring(i+f.EOL.length);i=o.indexOf(f.EOL)}return o}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(j){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(j){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const o of e){if(t.some((e=>e===o))){n=true;break}}if(!n){return e}let o='"';let i=true;for(let t=e.length;t>0;t--){o+=e[t-1];if(i&&e[t-1]==="\\"){o+="\\"}else if(e[t-1]==='"'){i=true;o+='"'}else{i=false}}o+='"';return o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let o=e.length;o>0;o--){t+=e[o-1];if(n&&e[o-1]==="\\"){t+="\\"}else if(e[o-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return p(this,void 0,void 0,(function*(){if(!U.isRooted(this.toolPath)&&(this.toolPath.includes("/")||j&&this.toolPath.includes("\\"))){this.toolPath=D.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield M.which(this.toolPath,true);return new Promise(((e,t)=>p(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+f.EOL)}const o=new ExecState(n,this.toolPath);o.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield U.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const d=v.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let p="";if(d.stdout){d.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let y="";if(d.stderr){d.stderr.on("data",(e=>{o.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}y=this._processLineBuffer(e,y,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}d.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));d.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));d.on("close",(e=>{o.processExitCode=e;o.processExited=true;o.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);o.CheckComplete()}));o.on("done",((n,o)=>{if(p.length>0){this.emit("stdline",p)}if(y.length>0){this.emit("errline",y)}d.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let o=false;let i="";function append(e){if(o&&e!=='"'){i+="\\"}i+=e;o=false}for(let d=0;d0){t.push(i);i=""}continue}append(p)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends y.EventEmitter{constructor(e,t){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(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=V.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=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){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=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",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},47206:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const i=n(10103);function create(e,t){return o(this,void 0,void 0,(function*(){return yield i.DefaultGlobber.create(e,t)}))}t.create=create},18164:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const p=d(n(37484));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;p.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;p.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;p.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},10103:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};var y=this&&this.__await||function(e){return this instanceof y?(this.v=e,this):new y(e)};var v=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,d=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(e){if(o[e])i[e]=function(t){return new Promise((function(n,o){d.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof y?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const D=d(n(37484));const M=d(n(79896));const U=d(n(18164));const V=d(n(16928));const j=d(n(98891));const K=n(62644);const ee=n(25370);const te=n(79890);const re=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=U.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return p(this,void 0,void 0,(function*(){const n=[];try{for(var o=f(this.globGenerator()),i;i=yield o.next(),!i.done;){const e=i.value;n.push(e)}}catch(t){e={error:t}}finally{try{if(i&&!i.done&&(t=o.return))yield t.call(o)}finally{if(e)throw e.error}}return n}))}globGenerator(){return v(this,arguments,(function*globGenerator_1(){const e=U.getOptions(this.options);const t=[];for(const n of this.patterns){t.push(n);if(e.implicitDescendants&&(n.trailingSeparator||n.segments[n.segments.length-1]!=="**")){t.push(new ee.Pattern(n.negate,true,n.segments.concat("**")))}}const n=[];for(const e of j.getSearchPaths(t)){D.debug(`Search path '${e}'`);try{yield y(M.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}n.unshift(new te.SearchState(e,1))}const o=[];while(n.length){const i=n.pop();const d=j.match(t,i.path);const p=!!d||j.partialMatch(t,i.path);if(!d&&!p){continue}const f=yield y(DefaultGlobber.stat(i,e,o));if(!f){continue}if(f.isDirectory()){if(d&K.MatchKind.Directory){yield yield y(i.path)}else if(!p){continue}const e=i.level+1;const t=(yield y(M.promises.readdir(i.path))).map((t=>new te.SearchState(V.join(i.path,t),e)));n.push(...t.reverse())}else if(d&K.MatchKind.File){yield yield y(i.path)}}}))}static create(e,t){return p(this,void 0,void 0,(function*(){const n=new DefaultGlobber(t);if(re){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const o=e.split("\n").map((e=>e.trim()));for(const e of o){if(!e||e.startsWith("#")){continue}else{n.patterns.push(new ee.Pattern(e))}}n.searchPaths.push(...j.getSearchPaths(n.patterns));return n}))}static stat(e,t,n){return p(this,void 0,void 0,(function*(){let o;if(t.followSymbolicLinks){try{o=yield M.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){D.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}}else{o=yield M.promises.lstat(e.path)}if(o.isDirectory()&&t.followSymbolicLinks){const t=yield M.promises.realpath(e.path);while(n.length>=e.level){n.pop()}if(n.some((e=>e===t))){D.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}n.push(t)}return o}))}}t.DefaultGlobber=DefaultGlobber},62644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var n;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(n=t.MatchKind||(t.MatchKind={}))},84138:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const f=d(n(16928));const y=p(n(42613));const v=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(v&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=f.dirname(e);if(v&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){y.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);y.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(v){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}y.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||v&&e.endsWith("\\")){}else{e+=f.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){y.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){y.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(v){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(f.sep)){return e}if(e===f.sep){return e}if(v&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},76617:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const f=d(n(16928));const y=d(n(84138));const v=p(n(42613));const D=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){v.default(e,`Parameter 'itemPath' must not be empty`);e=y.safeTrimTrailingSeparator(e);if(!y.hasRoot(e)){this.segments=e.split(f.sep)}else{let t=e;let n=y.dirname(t);while(n!==t){const e=f.basename(t);this.segments.unshift(e);t=n;n=y.dirname(t)}this.segments.unshift(t)}}else{v.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const n of e){const e=y?n.searchPath.toUpperCase():n.searchPath;t[e]="candidate"}const n=[];for(const o of e){const e=y?o.searchPath.toUpperCase():o.searchPath;if(t[e]==="included"){continue}let i=false;let d=e;let f=p.dirname(d);while(f!==d){if(t[f]){i=true;break}d=f;f=p.dirname(d)}if(!i){n.push(o.searchPath);t[e]="included"}}return n}t.getSearchPaths=getSearchPaths;function match(e,t){let n=f.MatchKind.None;for(const o of e){if(o.negate){n&=~o.match(t)}else{n|=o.match(t)}}return n}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},25370:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const f=d(n(70857));const y=d(n(16928));const v=d(n(84138));const D=p(n(42613));const M=n(43772);const U=n(62644);const V=n(76617);const j=process.platform==="win32";class Pattern{constructor(e,t=false,n,o){this.negate=false;let i;if(typeof e==="string"){i=e.trim()}else{n=n||[];D.default(n.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(n[0]);D.default(t&&v.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);i=new V.Path(n).toString().trim();if(e){i=`!${i}`}}while(i.startsWith("!")){this.negate=!this.negate;i=i.substr(1).trim()}i=Pattern.fixupPattern(i,o);this.segments=new V.Path(i).segments;this.trailingSeparator=v.normalizeSeparators(i).endsWith(y.sep);i=v.safeTrimTrailingSeparator(i);let d=false;const p=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!d&&!(d=e==="")));this.searchPath=new V.Path(p).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(p[0]),j?"i":"");this.isImplicitPattern=t;const f={dot:true,nobrace:true,nocase:j,nocomment:true,noext:true,nonegate:true};i=j?i.replace(/\\/g,"/"):i;this.minimatch=new M.Minimatch(i,f)}match(e){if(this.segments[this.segments.length-1]==="**"){e=v.normalizeSeparators(e);if(!e.endsWith(y.sep)&&this.isImplicitPattern===false){e=`${e}${y.sep}`}}else{e=v.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?U.MatchKind.Directory:U.MatchKind.All}return U.MatchKind.None}partialMatch(e){e=v.safeTrimTrailingSeparator(e);if(v.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(j?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(j?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){D.default(e,"pattern cannot be empty");const n=new V.Path(e).segments.map((e=>Pattern.getLiteral(e)));D.default(n.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);D.default(!v.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=v.normalizeSeparators(e);if(e==="."||e.startsWith(`.${y.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${y.sep}`)){t=t||f.homedir();D.default(t,"Unable to determine HOME directory");D.default(v.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(j&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=v.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(j&&(e==="\\"||e.match(/^\\[^\\]/))){let t=v.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=v.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return v.normalizeSeparators(e)}static getLiteral(e){let t="";for(let n=0;n=0){if(o.length>1){return""}if(o){t+=o;n=i;continue}}}t+=o}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},79890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},44552:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const f=d(n(58611));const y=d(n(65692));const v=d(n(54988));const D=d(n(20770));const M=n(46752);var U;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(U||(t.HttpCodes=U={}));var V;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(V||(t.Headers=V={}));var j;(function(e){e["ApplicationJson"]="application/json"})(j||(t.MediaTypes=j={}));function getProxyUrl(e){const t=v.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const K=[U.MovedPermanently,U.ResourceMoved,U.SeeOther,U.TemporaryRedirect,U.PermanentRedirect];const ee=[U.BadGateway,U.ServiceUnavailable,U.GatewayTimeout];const te=["OPTIONS","GET","DELETE","HEAD"];const re=10;const ne=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){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=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return p(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return p(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return p(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return p(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e,t={}){return p(this,void 0,void 0,(function*(){t[V.Accept]=this._getExistingOrDefaultHeader(t,V.Accept,j.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let d=this._prepareRequest(e,i,o);const p=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let f=0;let y;do{y=yield this.requestRaw(d,n);if(y&&y.message&&y.message.statusCode===U.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,d,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&K.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const p=y.message.headers["location"];if(!p){break}const f=new URL(p);if(i.protocol==="https:"&&i.protocol!==f.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 y.readBody();if(f.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}d=this._prepareRequest(e,f,o);y=yield this.requestRaw(d,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}f+=1;if(f{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let d;i.on("socket",(e=>{d=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=v.getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?y:f;const d=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):d;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){o=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||o||n}_getAgent(e){let t;const n=v.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let d=100;if(this.requestOptions){d=this.requestOptions.maxSockets||f.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:d,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const p=n.protocol==="https:";if(i){o=p?D.httpsOverHttps:D.httpsOverHttp}else{o=p?D.httpOverHttps:D.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=i?new y.Agent(e):new f.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new M.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_performExponentialBackoff(e){return p(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return p(this,void 0,void 0,(function*(){return new Promise(((n,o)=>p(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const d={statusCode:i,result:null,headers:{}};if(i===U.NotFound){n(d)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let p;let f;try{f=yield e.readBody();if(f&&f.length>0){if(t&&t.deserializeDates){p=JSON.parse(f,dateTimeDeserializer)}else{p=JSON.parse(f)}d.result=p}d.headers=e.message.headers}catch(e){}if(i>299){let e;if(p&&p.message){e=p.message}else if(f&&f.length>0){e=f}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=d.result;o(t)}else{n(d)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},54988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75207:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const y=d(n(79896));const v=d(n(16928));f=y.promises,t.chmod=f.chmod,t.copyFile=f.copyFile,t.lstat=f.lstat,t.mkdir=f.mkdir,t.open=f.open,t.readdir=f.readdir,t.readlink=f.readlink,t.rename=f.rename,t.rm=f.rm,t.rmdir=f.rmdir,t.stat=f.stat,t.symlink=f.symlink,t.unlink=f.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=y.constants.O_RDONLY;function exists(e){return p(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,n=false){return p(this,void 0,void 0,(function*(){const o=n?yield t.stat(e):yield t.lstat(e);return o.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,n){return p(this,void 0,void 0,(function*(){let o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){const t=v.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(o)){return e}}}const i=e;for(const d of n){e=i+d;o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const n=v.dirname(e);const o=v.basename(e).toUpperCase();for(const i of yield t.readdir(n)){if(o===i.toUpperCase()){e=v.join(n,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(o)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},94994:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const f=n(42613);const y=d(n(16928));const v=d(n(75207));function cp(e,t,n={}){return p(this,void 0,void 0,(function*(){const{force:o,recursive:i,copySourceDirectory:d}=readCopyOptions(n);const p=(yield v.exists(t))?yield v.stat(t):null;if(p&&p.isFile()&&!o){return}const f=p&&p.isDirectory()&&d?y.join(t,y.basename(e)):t;if(!(yield v.exists(e))){throw new Error(`no such file or directory: ${e}`)}const D=yield v.stat(e);if(D.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,f,0,o)}}else{if(y.relative(e,f)===""){throw new Error(`'${f}' and '${e}' are the same file`)}yield copyFile(e,f,o)}}))}t.cp=cp;function mv(e,t,n={}){return p(this,void 0,void 0,(function*(){if(yield v.exists(t)){let o=true;if(yield v.isDirectory(t)){t=y.join(t,y.basename(e));o=yield v.exists(t)}if(o){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(y.dirname(t));yield v.rename(e,t)}))}t.mv=mv;function rmRF(e){return p(this,void 0,void 0,(function*(){if(v.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield v.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return p(this,void 0,void 0,(function*(){f.ok(e,"a path argument must be provided");yield v.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(v.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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: ${e}. 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 t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(v.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(y.delimiter)){if(e){t.push(e)}}}if(v.isRooted(e)){const n=yield v.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(y.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(y.delimiter)){if(e){n.push(e)}}}const o=[];for(const i of n){const n=yield v.tryGetExecutablePath(y.join(i,e),t);if(n){o.push(n)}}return o}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const o=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:o}}function cpDirRecursive(e,t,n,o){return p(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const i=yield v.readdir(e);for(const d of i){const i=`${e}/${d}`;const p=`${t}/${d}`;const f=yield v.lstat(i);if(f.isDirectory()){yield cpDirRecursive(i,p,n,o)}else{yield copyFile(i,p,o)}}yield v.chmod(t,(yield v.stat(e)).mode)}))}function copyFile(e,t,n){return p(this,void 0,void 0,(function*(){if((yield v.lstat(e)).isSymbolicLink()){try{yield v.lstat(t);yield v.unlink(t)}catch(e){if(e.code==="EPERM"){yield v.chmod(t,"0666");yield v.unlink(t)}}const n=yield v.readlink(e);yield v.symlink(n,t,v.IS_WINDOWS?"junction":null)}else if(!(yield v.exists(t))||n){yield v.copyFile(e,t)}}))}},68110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const o=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);o.set(this,false)}get aborted(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);o.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);const i=o.indexOf(t);if(i>-1){o.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}o.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},37889:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},71409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},36826:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},44420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var o=n(56892);Object.defineProperty(t,"ServiceType",{enumerable:true,get:function(){return o.ServiceType}});var i=n(62496);Object.defineProperty(t,"readMethodOptions",{enumerable:true,get:function(){return i.readMethodOptions}});Object.defineProperty(t,"readMethodOption",{enumerable:true,get:function(){return i.readMethodOption}});Object.defineProperty(t,"readServiceOption",{enumerable:true,get:function(){return i.readServiceOption}});var d=n(78636);Object.defineProperty(t,"RpcError",{enumerable:true,get:function(){return d.RpcError}});var p=n(28576);Object.defineProperty(t,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var f=n(72726);Object.defineProperty(t,"RpcOutputStreamController",{enumerable:true,get:function(){return f.RpcOutputStreamController}});var y=n(79122);Object.defineProperty(t,"TestTransport",{enumerable:true,get:function(){return y.TestTransport}});var v=n(71409);Object.defineProperty(t,"Deferred",{enumerable:true,get:function(){return v.Deferred}});Object.defineProperty(t,"DeferredState",{enumerable:true,get:function(){return v.DeferredState}});var D=n(36826);Object.defineProperty(t,"DuplexStreamingCall",{enumerable:true,get:function(){return D.DuplexStreamingCall}});var M=n(37889);Object.defineProperty(t,"ClientStreamingCall",{enumerable:true,get:function(){return M.ClientStreamingCall}});var U=n(46173);Object.defineProperty(t,"ServerStreamingCall",{enumerable:true,get:function(){return U.ServerStreamingCall}});var V=n(29288);Object.defineProperty(t,"UnaryCall",{enumerable:true,get:function(){return V.UnaryCall}});var j=n(52849);Object.defineProperty(t,"stackIntercept",{enumerable:true,get:function(){return j.stackIntercept}});Object.defineProperty(t,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return j.stackDuplexStreamingInterceptors}});Object.defineProperty(t,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return j.stackClientStreamingInterceptors}});Object.defineProperty(t,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return j.stackServerStreamingInterceptors}});Object.defineProperty(t,"stackUnaryInterceptors",{enumerable:true,get:function(){return j.stackUnaryInterceptors}});var K=n(43352);Object.defineProperty(t,"ServerCallContextController",{enumerable:true,get:function(){return K.ServerCallContextController}})},62496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const o=n(68886);function normalizeMethodInfo(e,t){var n,i,d;let p=e;p.service=t;p.localName=(n=p.localName)!==null&&n!==void 0?n:o.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(i=p.options)!==null&&i!==void 0?i:{};p.idempotency=(d=p.idempotency)!==null&&d!==void 0?d:undefined;return p}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,o){var i;const d=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;return d&&d[n]?o.fromJson(d[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,o){var i;const d=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return o?o.fromJson(p):p}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const o=e.options;if(!o){return undefined}const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readServiceOption=readServiceOption},78636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,o]of t){e.push(` ${n}: ${o}`)}}return e.join("\n")}}t.RpcError=RpcError},52849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const o=n(68886);function stackIntercept(e,t,n,i,d){var p,f,y,v;if(e=="unary"){let tail=(e,n,o)=>t.unary(e,n,o);for(const e of((p=i.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptUnary(t,n,o,i)}return tail(n,d,i)}if(e=="serverStreaming"){let tail=(e,n,o)=>t.serverStreaming(e,n,o);for(const e of((f=i.interceptors)!==null&&f!==void 0?f:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptServerStreaming(t,n,o,i)}return tail(n,d,i)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=i.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,o)=>e.interceptClientStreaming(t,n,o)}return tail(n,i)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((v=i.interceptors)!==null&&v!==void 0?v:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,o)=>e.interceptDuplex(t,n,o)}return tail(n,i)}o.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,o){return stackIntercept("unary",e,t,o,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,o){return stackIntercept("serverStreaming",e,t,o,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},28576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const o=n(68886);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let i of Object.keys(t)){let d=t[i];switch(i){case"jsonOptions":n.jsonOptions=o.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=o.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(d):d.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,o]of Object.entries(e)){if(o instanceof Date)n[t]=new Date(o.getTime());else if(Array.isArray(o))n[t]=o.concat();else n[t]=o}}},72726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const o=n(71409);const i=n(68886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){i.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){i.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){i.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){i.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;i.assert(e,"bad state");i.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new o.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;i.assert(n.state==o.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},43352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,o,i={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=o;this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},46173:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},56892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const o=n(62496);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>o.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},79122:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const i=n(78636);const d=n(68886);const p=n(72726);const f=n(28576);const y=n(29288);const v=n(46173);const D=n(37889);const M=n(36826);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof i.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){d.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}d.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return o(this,void 0,void 0,(function*(){const o=[];if(this.data.response===undefined){o.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){d.assert(e.O.is(t));o.push(t)}}else if(!(this.data.response instanceof i.RpcError)){d.assert(e.O.is(this.data.response));o.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof i.RpcError){t.notifyError(this.data.response);return}for(let e of o){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof i.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof i.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return f.mergeRpcOptions({},e)}unary(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=d.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),f=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),v=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(f,v);this.lastInput={single:t};return new y.UnaryCall(e,i,t,d,p,f,v)}serverStreaming(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),f=new p.RpcOutputStreamController,y=d.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,f,n.abort))).then(delay(this.afterResponseDelay,n.abort)),D=y.then((()=>this.promiseStatus())),M=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(D,M);this.lastInput={single:t};return new v.ServerStreamingCall(e,i,t,d,f,D,M)}clientStreaming(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=i.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),f=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,t.abort);return new D.ClientStreamingCall(e,o,this.lastInput,i,d,p,f)}duplex(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=new p.RpcOutputStreamController,f=i.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,d,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=f.then((()=>this.promiseStatus())),v=f.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,v);this.lastInput=new TestInputStream(this.data,t.abort);return new M.DuplexStreamingCall(e,o,this.lastInput,i,d,y,v)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((o,d)=>{if(t===null||t===void 0?void 0:t.aborted){d(new i.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>o(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(p);d(new i.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof i.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof i.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},29288:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:o}}))}}t.UnaryCall=UnaryCall},8602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,o=-34028234663852886e22,i=4294967295,d=2147483647,p=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>d||ei||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let o=[];for(let e=0;e>4;f=p;d=2;break;case 2:n[i++]=(f&15)<<4|(p&60)>>2;f=p;d=3;break;case 3:n[i++]=(f&3)<<6|p;d=0;break}}if(d==1)throw Error(`invalid base64 string.`);return n.subarray(0,i)}t.base64decode=base64decode;function base64encode(e){let t="",o=0,i,d=0;for(let p=0;p>2];d=(i&3)<<4;o=1;break;case 1:t+=n[d|i>>4];d=(i&15)<<2;o=2;break;case 2:t+=n[d|i>>6];t+=n[i&63];o=0;break}}if(o){t+=n[d];t+="=";if(o==1)t+="="}return t}t.base64encode=base64encode},54816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,o,i,d)=>{let p=is(n)?n[e.symbol]:n[e.symbol]=[];p.push({no:o,wireType:i,data:d})};e.onWrite=(t,n,o)=>{for(let{no:t,wireType:i,data:d}of e.list(n))o.tag(t,i).raw(d)};e.list=(t,n)=>{if(is(t)){let o=t[e.symbol];return n?o.filter((e=>e.no==n)):o}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var o;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(o=t.WireType||(t.WireType={}))},92889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const o=n(54816);const i=n(61753);const d=n(93223);const p={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=d.varint64read;this.uint32=d.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case o.WireType.Varint:while(this.buf[this.pos++]&128){}break;case o.WireType.Bit64:this.pos+=4;case o.WireType.Bit32:this.pos+=4;break;case o.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case o.WireType.StartGroup:let n;while((n=this.tag()[1])!==o.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new i.PbLong(...this.varint64())}uint64(){return new i.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new i.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new i.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new i.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},23957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const o=n(61753);const i=n(93223);const d=n(8602);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){d.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){d.assertInt32(e);i.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){d.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){d.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){d.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){d.assertInt32(e);e=(e<<1^e>>31)>>>0;i.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbLong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbULong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}int64(e){let t=o.PbLong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=o.PbLong.from(e),n=t.hi>>31,d=t.lo<<1^n,p=(t.hi<<1|t.lo>>>31)^n;i.varint64write(d,p,this.buf);return this}uint64(e){let t=o.PbULong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},70257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,o]of Object.entries(e))if(typeof o=="number")t.push({name:n,number:o});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},93223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];e|=(o&127)<>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];t|=(o&127)<>>o;const d=!(i>>>7==0&&t==0);const p=(d?i|128:i)&255;n.push(p);if(!d){return}}const o=e>>>28&15|(t&7)<<4;const i=!(t>>3==0);n.push((i?o|128:o)&255);if(!i){return}for(let e=3;e<31;e=e+7){const o=t>>>e;const i=!(o>>>7==0);const d=(i?o|128:o)&255;n.push(d);if(!i){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const o=1e6;let i=0;let d=0;function add1e6digit(t,p){const f=Number(e.slice(t,p));d*=o;i=i*o+f;if(i>=n){d=d+(i/n|0);i=i%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,i,d]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let o=e&16777215;let i=(e>>>24|t<<8)>>>0&16777215;let d=t>>16&65535;let p=o+i*6777216+d*6710656;let f=i+d*8147497;let y=d*2;let v=1e7;if(p>=v){f+=Math.floor(p/v);p%=v}if(f>=v){y+=Math.floor(f/v);f%=v}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(f,y)+decimalFrom1e7(p,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},68886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var o=n(49999);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return o.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return o.isJsonObject}});var i=n(26335);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return i.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return i.base64encode}});var d=n(58950);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return d.utf8read}});var p=n(54816);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var f=n(92889);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return f.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return f.binaryReadOptions}});var y=n(23957);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var v=n(61753);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return v.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return v.PbULong}});var D=n(29367);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return D.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return D.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return D.mergeJsonOptions}});var M=n(43785);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return M.MESSAGE_TYPE}});var U=n(15106);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return U.MessageType}});var V=n(67910);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return V.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return V.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return V.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return V.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return V.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return V.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return V.readMessageOption}});var j=n(25167);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return j.ReflectionTypeCheck}});var K=n(75726);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return K.reflectionCreate}});var ee=n(19526);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(98044);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(4827);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(89611);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var oe=n(66907);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return oe.ReflectionBinaryWriter}});var ie=n(46790);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return ie.ReflectionJsonReader}});var se=n(11094);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return se.ReflectionJsonWriter}});var ae=n(59946);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var Ae=n(18063);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return Ae.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return Ae.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return Ae.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return Ae.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return Ae.getSelectedOneofValue}});var ce=n(70257);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return ce.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return ce.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return ce.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return ce.isEnumObject}});var le=n(4073);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return le.lowerCamelCase}});var ue=n(8602);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return ue.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return ue.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return ue.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return ue.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return ue.assertFloat32}})},29367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},o={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,o;let i=Object.assign(Object.assign({},e),t);i.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(o=t===null||t===void 0?void 0:t.typeRegistry)!==null&&o!==void 0?o:[]];return i}t.mergeJsonOptions=mergeJsonOptions},49999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},15106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const o=n(43785);const i=n(67910);const d=n(25167);const p=n(46790);const f=n(11094);const y=n(89611);const v=n(66907);const D=n(75726);const M=n(98044);const U=n(49999);const V=n(29367);const j=n(4827);const K=n(23957);const ee=n(92889);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[o.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(i.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new d.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new f.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new v.ReflectionBinaryWriter(this)}create(e){let t=D.reflectionCreate(this);if(e!==undefined){M.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();M.reflectionMergePartial(this,t,e);return t}equals(e,t){return j.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){M.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,V.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,V.jsonWriteOptions(t))}toJsonString(e,t){var n;let o=this.toJson(e,t);return JSON.stringify(o,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=K.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let o=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,o,t);return o}throw new Error(`Unable to parse message ${this.typeName} from JSON ${U.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create();this.refBinReader.read(e,i,n,t);return i}}t.MessageType=MessageType},18063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},61753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const o=n(93223);let i;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";i=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const d=/^-?[0-9]+$/;const p=4294967296;const f=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.UMAX)throw new Error("ulong too large");i.V.setBigUint64(0,e,true);return new PbULong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/p)}throw new Error("unknown value "+typeof e)}toString(){return i?this.toBigInt().toString():o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.MAX)throw new Error("signed long too large");i.V.setBigInt64(0,e,true);return new PbLong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t){if(i>f||i==f&&n!=0)throw new Error("signed long too small")}else if(i>=f)throw new Error("signed long too large");let y=new PbLong(n,i);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/p):new PbLong(-e,-e/p).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&f)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(i)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+o.int64toString(e.lo,e.hi)}return o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},58950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],o=[],i=0,d;let p=e.length;while(t191&&d<224)o[i++]=(d&31)<<6|e[t++]&63;else if(d>239&&d<365){d=((d&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;o[i++]=55296+(d>>10);o[i++]=56320+(d&1023)}else o[i++]=(d&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(i>8191){n.push(fromCharCodes(o));i=0}}if(n.length){if(i)n.push(fromCharCodes(o.slice(0,i)));return n.join("")}return fromCharCodes(o.slice(0,i))}t.utf8read=utf8read},89611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const o=n(54816);const i=n(67910);const d=n(63402);const p=n(19526);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,d){this.prepare();const p=d===undefined?e.len:e.pos+d;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const o=n(54816);const i=n(67910);const d=n(8602);const p=n(61753);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const o of this.fields){let p,f,y=o.repeat,v=o.localName;if(o.oneof){const t=e[o.oneof];if(t.oneofKind!==v)continue;p=t[v];f=true}else{p=e[v];f=false}switch(o.kind){case"scalar":case"enum":let e=o.kind=="enum"?i.ScalarType.INT32:o.T;if(y){d.assert(Array.isArray(p));if(y==i.RepeatType.PACKED)this.packed(t,e,o.no,p);else for(const n of p)this.scalar(t,e,o.no,n,true)}else if(p===undefined)d.assert(o.opt);else this.scalar(t,e,o.no,p,f||o.opt);break;case"message":if(y){d.assert(Array.isArray(p));for(const e of p)this.message(t,n,o.T(),o.no,e)}else{this.message(t,n,o.T(),o.no,p)}break;case"map":d.assert(typeof p=="object"&&p!==null);for(const[e,i]of Object.entries(p))this.mapEntry(t,n,o,e,i);break}}let p=n.writeUnknownFields;if(p!==false)(p===true?o.UnknownFieldHandler.onWrite:p)(this.info.typeName,e,t)}mapEntry(e,t,n,p,f){e.tag(n.no,o.WireType.LengthDelimited);e.fork();let y=p;switch(n.K){case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.UINT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:y=Number.parseInt(p);break;case i.ScalarType.BOOL:d.assert(p=="true"||p=="false");y=p=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,f,true);break;case"enum":this.scalar(e,i.ScalarType.INT32,2,f,true);break;case"message":this.message(e,t,n.V.T(),2,f);break}e.join()}message(e,t,n,i,d){if(d===undefined)return;n.internalBinaryWrite(d,e.tag(i,o.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,o,i){let[d,p,f]=this.scalarInfo(t,o);if(!f||i){e.tag(n,d);e[p](o)}}packed(e,t,n,p){if(!p.length)return;d.assert(t!==i.ScalarType.BYTES&&t!==i.ScalarType.STRING);e.tag(n,o.WireType.LengthDelimited);e.fork();let[,f]=this.scalarInfo(t);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const o=n(43785);function containsMessageType(e){return e[o.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},75726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const o=n(19526);const i=n(43785);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},i.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=o.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},4827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const o=n(67910);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let d of e.fields){let e=d.localName;let p=d.oneof?t[d.oneof][e]:t[e];let f=d.oneof?n[d.oneof][e]:n[e];switch(d.kind){case"enum":case"scalar":let e=d.kind=="enum"?o.ScalarType.INT32:d.T;if(!(d.repeat?repeatedPrimitiveEq(e,p,f):primitiveEq(e,p,f)))return false;break;case"map":if(!(d.V.kind=="message"?repeatedMsgEq(d.V.T(),i(p),i(f)):repeatedPrimitiveEq(d.V.kind=="enum"?o.ScalarType.INT32:d.V.T,i(p),i(f))))return false;break;case"message":let t=d.T();if(!(d.repeat?repeatedMsgEq(t,p,f):t.equals(p,f)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const i=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==o.ScalarType.BYTES)return false;let i=t;let d=n;if(i.length!==d.length)return false;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const o=n(4073);var i;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(i=t.ScalarType||(t.ScalarType={}));var d;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(d=t.LongType||(t.LongType={}));var p;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(p=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,i,d;e.localName=(t=e.localName)!==null&&t!==void 0?t:o.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:o.lowerCamelCase(e.name);e.repeat=(i=e.repeat)!==null&&i!==void 0?i:p.NO;e.opt=(d=e.opt)!==null&&d!==void 0?d:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,o){var i;const d=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;return d&&d[n]?o.fromJson(d[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,o){var i;const d=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return o?o.fromJson(p):p}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const o=e.options;const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readMessageOption=readMessageOption},46790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const o=n(49999);const i=n(26335);const d=n(67910);const p=n(61753);const f=n(8602);const y=n(63402);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=o.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const i=[];for(const[p,f]of Object.entries(e)){const e=this.fMap[p];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const y=e.localName;let v;if(e.oneof){if(f===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(i.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(e.oneof);v=t[e.oneof]={oneofKind:y}}else{v=t}if(e.kind=="map"){if(f===null){continue}this.assert(o.isJsonObject(f),e.name,f);const t=v[y];for(const[o,i]of Object.entries(f)){this.assert(i!==null,e.name+" map value",null);let p;switch(e.V.kind){case"message":p=e.V.T().internalJsonRead(i,n);break;case"enum":p=this.enum(e.V.T(),i,e.name,n.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(i,e.V.T,e.V.L,e.name);break}this.assert(p!==undefined,e.name+" map value",i);let f=o;if(e.K==d.ScalarType.BOOL)f=f=="true"?true:f=="false"?false:f;f=this.scalar(f,e.K,d.LongType.STRING,e.name).toString();t[f]=p}}else if(e.repeat){if(f===null)continue;this.assert(Array.isArray(f),e.name,f);const t=v[y];for(const o of f){this.assert(o!==null,e.name,null);let i;switch(e.kind){case"message":i=e.T().internalJsonRead(o,n);break;case"enum":i=this.enum(e.T(),o,e.name,n.ignoreUnknownFields);if(i===false)continue;break;case"scalar":i=this.scalar(o,e.T,e.L,e.name);break}this.assert(i!==undefined,e.name,f);t.push(i)}}else{switch(e.kind){case"message":if(f===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}v[y]=e.T().internalJsonRead(f,n,v[y]);break;case"enum":if(f===null)continue;let t=this.enum(e.T(),f,e.name,n.ignoreUnknownFields);if(t===false)continue;v[y]=t;break;case"scalar":if(f===null)continue;v[y]=this.scalar(f,e.T,e.L,e.name);break}}}}enum(e,t,n,o){if(e[0]=="google.protobuf.NullValue")f.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":f.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let i=t;if(e[2]&&t.substring(0,e[2].length)===e[2])i=t.substring(e[2].length);let d=e[1][i];if(typeof d==="undefined"&&o){return false}f.assert(typeof d=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return d}f.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,o){let v;try{switch(t){case d.ScalarType.DOUBLE:case d.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){v="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){v="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let o=Number(e);if(Number.isNaN(o)){v="not a number";break}if(!Number.isFinite(o)){v="too large or small";break}if(t==d.ScalarType.FLOAT)f.assertFloat32(o);return o;case d.ScalarType.INT32:case d.ScalarType.FIXED32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:case d.ScalarType.UINT32:if(e===null)return 0;let D;if(typeof e=="number")D=e;else if(e==="")v="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)v="extra whitespace";else D=Number(e)}if(D===undefined)break;if(t==d.ScalarType.UINT32)f.assertUInt32(D);else f.assertInt32(D);return D;case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(p.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbLong.from(e),n);case d.ScalarType.FIXED64:case d.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(p.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbULong.from(e),n);case d.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case d.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){v="extra whitespace";break}try{encodeURIComponent(e)}catch(v){v="invalid UTF8";break}return e;case d.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return i.base64decode(e)}}catch(e){v=e.message}this.assert(false,o+(v?" - "+v:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},11094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const o=n(26335);const i=n(61753);const d=n(67910);const p=n(8602);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},o=e;for(const e of this.fields){if(!e.oneof){let i=this.field(e,o[e.localName],t);if(i!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=i;continue}const i=o[e.oneof];if(i.oneofKind!==e.localName)continue;const d=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let f=this.field(e,i[e.localName],d);p.assert(f!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=f}return n}field(e,t,n){let o=undefined;if(e.kind=="map"){p.assert(typeof t=="object"&&t!==null);const i={};switch(e.V.kind){case"scalar":for(const[n,o]of Object.entries(t)){const t=this.scalar(e.V.T,o,e.name,false,true);p.assert(t!==undefined);i[n.toString()]=t}break;case"message":const o=e.V.T();for(const[d,f]of Object.entries(t)){const t=this.message(o,f,e.name,n);p.assert(t!==undefined);i[d.toString()]=t}break;case"enum":const d=e.V.T();for(const[o,f]of Object.entries(t)){p.assert(f===undefined||typeof f=="number");const t=this.enum(d,f,e.name,false,true,n.enumAsInteger);p.assert(t!==undefined);i[o.toString()]=t}break}if(n.emitDefaultValues||Object.keys(i).length>0)o=i}else if(e.repeat){p.assert(Array.isArray(t));const i=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)o=i}else{switch(e.kind){case"scalar":o=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":o=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":o=this.message(e.T(),t,e.name,n);break}}return o}enum(e,t,n,o,i,d){if(e[0]=="google.protobuf.NullValue")return!i&&!o?undefined:null;if(t===undefined){p.assert(o);return undefined}if(t===0&&!i&&!o)return undefined;p.assert(typeof t=="number");p.assert(Number.isInteger(t));if(d||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,o){if(t===undefined)return o.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,o)}scalar(e,t,n,f,y){if(t===undefined){p.assert(f);return undefined}const v=y||f;switch(e){case d.ScalarType.INT32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:if(t===0)return v?0:undefined;p.assertInt32(t);return t;case d.ScalarType.FIXED32:case d.ScalarType.UINT32:if(t===0)return v?0:undefined;p.assertUInt32(t);return t;case d.ScalarType.FLOAT:p.assertFloat32(t);case d.ScalarType.DOUBLE:if(t===0)return v?0:undefined;p.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case d.ScalarType.STRING:if(t==="")return v?"":undefined;p.assert(typeof t=="string");return t;case d.ScalarType.BOOL:if(t===false)return v?false:undefined;p.assert(typeof t=="boolean");return t;case d.ScalarType.UINT64:case d.ScalarType.FIXED64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=i.PbULong.from(t);if(e.isZero()&&!v)return undefined;return e.toString();case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=i.PbLong.from(t);if(n.isZero()&&!v)return undefined;return n.toString();case d.ScalarType.BYTES:p.assert(t instanceof Uint8Array);if(!t.byteLength)return v?"":undefined;return o.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},63402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const o=n(67910);function reflectionLongConvert(e,t){switch(t){case o.LongType.BIGINT:return e.toBigInt();case o.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},98044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let o,i=n,d;for(let n of e.fields){let e=n.localName;if(n.oneof){const p=i[n.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}o=p[e];d=t[n.oneof];d.oneofKind=p.oneofKind;if(o==undefined){delete d[e];continue}}else{o=i[e];d=t;if(o==undefined){continue}}if(n.repeat)d[e].length=o.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const o=n(67910);const i=n(63402);const d=n(61753);function reflectionScalarDefault(e,t=o.LongType.STRING){switch(e){case o.ScalarType.BOOL:return false;case o.ScalarType.UINT64:case o.ScalarType.FIXED64:return i.reflectionLongConvert(d.PbULong.ZERO,t);case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:return i.reflectionLongConvert(d.PbLong.ZERO,t);case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return 0;case o.ScalarType.BYTES:return new Uint8Array(0);case o.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},25167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const o=n(67910);const i=n(18063);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let o of this.fields){if(o.oneof){if(!n.includes(o.oneof)){n.push(o.oneof);e.push(o.oneof);t.push(o.oneof)}}else{t.push(o.localName);switch(o.kind){case"scalar":case"enum":if(!o.opt||o.repeat)e.push(o.localName);break;case"message":if(o.repeat)e.push(o.localName);break;case"map":e.push(o.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let o=Object.keys(e),d=this.data;if(o.length!o.includes(e))))return false;if(!n){if(o.some((e=>!d.known.includes(e))))return false}if(t<1){return true}for(const o of d.oneofs){const d=e[o];if(!i.isOneofGroup(d))return false;if(d.oneofKind===undefined)continue;const p=this.fields.find((e=>e.localName===d.oneofKind));if(!p)return false;if(!this.field(d[d.oneofKind],p,n,t))return false}for(const o of this.fields){if(o.oneof!==undefined)continue;if(!this.field(e[o.localName],o,n,t))return false}return true}field(e,t,n,i){let d=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(d)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(d)return this.scalars(e,o.ScalarType.INT32,i);return this.scalar(e,o.ScalarType.INT32);case"message":if(e===undefined)return true;if(d)return this.messages(e,t.T(),n,i);return this.message(e,t.T(),n,i);case"map":if(typeof e!="object"||e===null)return false;if(i<2)return true;if(!this.mapKeys(e,t.K,i))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),o.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),n,i)}break}return true}message(e,t,n,o){if(n){return t.isAssignable(e,o)}return t.is(e,o)}messages(e,t,n,o){if(!Array.isArray(e))return false;if(o<2)return true;if(n){for(let n=0;nparseInt(e))),t,n);case o.ScalarType.BOOL:return this.scalars(i.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(i,t,n,o.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},15183:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const p=d(n(58611));const f=d(n(65692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?f:p).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},98894:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(n(69278));const y=d(n(58611));const v=n(65692);p(n(15183),t);const D=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[D]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return v.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const d=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((p=>{this.decrementSockets(i,d);if(p instanceof y.Agent){try{return p.addRequest(e,o)}catch(e){return n(e)}}this[D].currentSocket=p;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,d);n(e)}))}createConnection(){const e=this[D].currentSocket;this[D].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[D].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[D]){this[D].defaultPort=e}}get protocol(){return this[D].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[D]){this[D].protocol=e}}}t.Agent=Agent},59380:e=>{"use strict";e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var o=range(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var o,i,d,p,f;var y=n.indexOf(e);var v=n.indexOf(t,y+1);var D=y;if(y>=0&&v>0){if(e===t){return[y,v]}o=[];d=n.length;while(D>=0&&!f){if(D==y){o.push(D);y=n.indexOf(e,D+1)}else if(o.length==1){f=[o.pop(),v]}else{i=o.pop();if(i=0?y:v}if(o.length){f=[d,p]}}return f}},94691:(e,t,n)=>{var o=n(97087);var i=n(59380);e.exports=expandTop;var d="\0SLASH"+Math.random()+"\0";var p="\0OPEN"+Math.random()+"\0";var f="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var v="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(d).split("\\{").join(p).split("\\}").join(f).split("\\,").join(y).split("\\.").join(v)}function unescapeBraces(e){return e.split(d).join("\\").split(p).join("{").split(f).join("}").split(y).join(",").split(v).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var d=n.body;var p=n.post;var f=o.split(",");f[f.length-1]+="{"+d+"}";var y=parseCommaParts(p);if(p.length){f[f.length-1]+=y.shift();f.push.apply(f,y)}t.push.apply(t,f);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var d=i("{","}",e);if(!d||/\$$/.test(d.pre))return[e];var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body);var v=p||y;var D=d.body.indexOf(",")>=0;if(!v&&!D){if(d.post.match(/,(?!,).*\}/)){e=d.pre+"{"+d.body+f+d.post;return expand(e)}return[e]}var M;if(v){M=d.body.split(/\.\./)}else{M=parseCommaParts(d.body);if(M.length===1){M=expand(M[0],false).map(embrace);if(M.length===1){var U=d.post.length?expand(d.post,false):[""];return U.map((function(e){return d.pre+M[0]+e}))}}}var V=d.pre;var U=d.post.length?expand(d.post,false):[""];var j;if(v){var K=numeric(M[0]);var ee=numeric(M[1]);var te=Math.max(M[0].length,M[1].length);var re=M.length==3?Math.abs(numeric(M[2])):1;var ne=lte;var oe=ee0){var ce=new Array(Ae+1).join("0");if(se<0)ae="-"+ce+ae.slice(1);else ae=ce+ae}}}j.push(ae)}}else{j=o(M,(function(e){return expand(e,false)}))}for(var le=0;le{e.exports=function(e,n){var o=[];for(var i=0;i{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(40897)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(70744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}d++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[d];t=i.call(n,o);e.splice(d,1);d--}return t}));createDebug.formatArgs.call(n,e);const p=n.log||createDebug.log;p.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let n=0;let o=0;let i=-1;let d=0;while(n"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(95108)}},95108:(e,t,n)=>{const o=n(52018);const i=n(39023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(21450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const d=` ${i};1m${n} `;t[0]=d+t[0].split("\n").join("\n"+d);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;oe.trim())).join(" ")};d.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},83813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o0){V("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);V("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){V("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(this.connectOpts)}else{V("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}await(0,D.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},3669:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=d(n(69278));const y=d(n(64756));const v=p(n(42613));const D=p(n(2830));const M=n(98894);const U=n(87016);const V=n(37943);const j=(0,D.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends M.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};j("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){j("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{j("Creating `net.Socket`: %o",this.connectOpts);o=f.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const d=f.isIPv6(t.host)?`[${t.host}]`:t.host;let p=`CONNECT ${d}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${d}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){p+=`${e}: ${i[e]}\r\n`}const D=(0,V.parseProxyResponse)(o);o.write(`${p}\r\n`);const{connect:M,buffered:U}=await D;e.emit("proxyConnect",M);this.emit("proxyConnect",M,e);if(M.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){j("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const K=new f.Socket({writable:false});K.readable=true;e.once("socket",(e=>{j("Replaying proxy buffer for failed request");(0,v.default)(e.listenerCount("data")>0);e.push(U);e.push(null)}));return K}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},37943:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(2830));const d=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();d("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();d("onerror %o",e);n(e)}function ondata(p){i.push(p);o+=p.length;const f=Buffer.concat(i,o);const y=f.indexOf("\r\n\r\n");if(y===-1){d("have not received end of HTTP headers yet...");read();return}const v=f.slice(0,y).toString("ascii").split("\r\n");const D=v.shift();if(!D){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const M=D.split(" ");const U=+M[1];const V=M.slice(2).join(" ");const j={};for(const t of v){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const d=t.slice(o+1).trimStart();const p=j[i];if(typeof p==="string"){j[i]=[p,d]}else if(Array.isArray(p)){p.push(d)}else{j[i]=d}}d("got proxy server response: %o %o",D,j);cleanup();t({connect:{statusCode:U,statusText:V,headers:j},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},43772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return n(16928)}catch(e){}}()||{sep:"/"};minimatch.sep=o.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var d=n(94691);var p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var f="[^/]";var y=f+"*?";var v="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var D="(?:(?!(?:\\/|^)\\.).)*?";var M=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var U=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,o,i){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,o,i){return t(n,o,ext(e,i))};n.Minimatch=function Minimatch(n,o){return new t.Minimatch(n,ext(e,o))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,o){return t.filter(n,ext(e,o))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,o){return t.makeRe(n,ext(e,o))};n.braceExpand=function braceExpand(n,o){return t.braceExpand(n,ext(e,o))};n.match=function(n,o,i){return t.match(n,o,ext(e,i))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&o.sep!=="/"){e=e.split(o.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(U)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var o=0;if(n.nonegate)return;for(var i=0,d=e.length;iV){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var j={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return i;else e="*"}if(e==="")return"";var o="";var d=!!n.nocase;var v=false;var D=[];var U=[];var V;var K=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(V){switch(V){case"*":o+=y;d=true;break;case"?":o+=f;d=true;break;default:o+="\\"+V;break}ne.debug("clearStateChar %j %j",V,o);V=false}}for(var oe=0,ie=e.length,se;oe-1;ge--){var pe=U[ge];var me=o.slice(0,pe.reStart);var he=o.slice(pe.reStart,pe.reEnd-8);var fe=o.slice(pe.reEnd-8,pe.reEnd);var ye=o.slice(pe.reEnd);fe+=ye;var Ce=me.split("(").length-1;var Ee=ye;for(oe=0;oe=0;p--){d=e[p];if(d)break}for(p=0;p>> no match, partial?",e,M,t,U);if(M===f)return true}return false}var j;if(typeof v==="string"){j=D===v;this.debug("string match",v,D,j)}else{j=D.match(v);this.debug("pattern match",v,D,j)}if(!j)return false}if(d===f&&p===y){return true}else if(d===f){return n}else if(p===y){return d===f-1&&e[d]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},70744:e=>{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var d=i*7;var p=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var y=parseFloat(f[1]);var v=(f[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*p;case"weeks":case"week":case"w":return y*d;case"days":case"day":case"d":return y*i;case"hours":case"hour":case"hrs":case"hr":case"h":return y*o;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var d=Math.abs(e);if(d>=i){return Math.round(e/i)+"d"}if(d>=o){return Math.round(e/o)+"h"}if(d>=n){return Math.round(e/n)+"m"}if(d>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var d=Math.abs(e);if(d>=i){return plural(e,d,i,"day")}if(d>=o){return plural(e,d,o,"hour")}if(d>=n){return plural(e,d,n,"minute")}if(d>=t){return plural(e,d,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},21450:(e,t,n)=>{"use strict";const o=n(70857);const i=n(52018);const d=n(83813);const{env:p}=process;let f;if(d("no-color")||d("no-colors")||d("color=false")||d("color=never")){f=0}else if(d("color")||d("colors")||d("color=true")||d("color=always")){f=1}if("FORCE_COLOR"in p){if(p.FORCE_COLOR==="true"){f=1}else if(p.FORCE_COLOR==="false"){f=0}else{f=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(d("color=16m")||d("color=full")||d("color=truecolor")){return 3}if(d("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const n=f||0;if(p.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in p){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in p))||p.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in p){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0}if(p.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in p){const e=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(p.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)){return 1}if("COLORTERM"in p){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},61860:e=>{var t;var n;var o;var i;var d;var p;var f;var y;var v;var D;var M;var U;var V;var j;var K;var ee;var te;var re;var ne;var oe;var ie;var se;var ae;var Ae;var ce;var le;var ue;var de;var ge;var pe;var me;var he;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fe(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;f--)if(p=e[f])d=(i<3?p(d):i>3?p(t,n,d):p(t,n))||d;return i>3&&d&&Object.defineProperty(t,n,d),d};d=function(e,t){return function(n,o){t(n,o,e)}};p=function(e,t,n,o,i,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var p=o.kind,f=p==="getter"?"get":p==="setter"?"set":"value";var y=!t&&e?o["static"]?e:e.prototype:null;var v=t||(y?Object.getOwnPropertyDescriptor(y,o.name):{});var D,M=false;for(var U=n.length-1;U>=0;U--){var V={};for(var j in o)V[j]=j==="access"?{}:o[j];for(var j in o.access)V.access[j]=o.access[j];V.addInitializer=function(e){if(M)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,n[U])(p==="accessor"?{get:v.get,set:v.set}:v[f],V);if(p==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(D=accept(K.get))v.get=D;if(D=accept(K.set))v.set=D;if(D=accept(K.init))i.unshift(D)}else if(D=accept(K)){if(p==="field")i.unshift(D);else v[f]=D}}if(y)Object.defineProperty(y,o.name,v);M=true};f=function(e,t,n){var o=arguments.length>2;for(var i=0;i0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,d=[],p;try{while((t===void 0||t-- >0)&&!(i=o.next()).done)d.push(i.value)}catch(e){p={error:e}}finally{try{if(i&&!i.done&&(n=o["return"]))n.call(o)}finally{if(p)throw p.error}}return d};ee=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)i[e]=t(i[e])}}function resume(e,t){try{step(o[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof ne?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};ie=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:ne(e[o](t)),done:false}:i?i(t):t}:i}};se=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof j==="function"?j(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};ae=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var ye=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};Ae=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),o=0;o{e.exports=n(20218)},20218:(e,t,n)=>{"use strict";var o=n(69278);var i=n(64756);var d=n(58611);var p=n(65692);var f=n(24434);var y=n(42613);var v=n(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||d.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,i){var d=toOptions(n,o,i);for(var p=0,f=t.requests.length;p=this.maxSockets){i.requests.push(d);return}i.createSocket(d,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,d)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}D("making CONNECT request");var d=n.request(i);d.useChunkedEncodingByDefault=false;d.once("response",onResponse);d.once("upgrade",onUpgrade);d.once("connect",onConnect);d.once("error",onError);d.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(i,p,f){d.removeAllListeners();p.removeAllListeners();if(i.statusCode!==200){D("tunneling socket could not be established, statusCode=%d",i.statusCode);p.destroy();var y=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}if(f.length>0){D("got illegal response body from proxy");p.destroy();var y=new Error("got illegal response body from proxy");y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}D("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=p;return t(p)}function onError(t){d.removeAllListeners();D("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var d=e.request.getHeader("host");var p=mergeOptions({},n.options,{socket:o,servername:d?d.replace(/:.*$/,""):e.host});var f=i.connect(0,p);n.sockets[n.sockets.indexOf(o)]=f;t(f)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{"use strict";const o=n(86197);const i=n(28611);const d=n(68707);const p=n(35076);const f=n(81093);const y=n(59965);const v=n(3440);const{InvalidArgumentError:D}=d;const M=n(56615);const U=n(59136);const V=n(47365);const j=n(47501);const K=n(94004);const ee=n(52429);const te=n(22720);const re=n(53573);const{getGlobalDispatcher:ne,setGlobalDispatcher:oe}=n(32581);const ie=n(78840);const se=n(48299);const ae=n(64415);let Ae;try{n(76982);Ae=true}catch{Ae=false}Object.assign(i.prototype,M);e.exports.Dispatcher=i;e.exports.Client=o;e.exports.Pool=p;e.exports.BalancedPool=f;e.exports.Agent=y;e.exports.ProxyAgent=te;e.exports.RetryHandler=re;e.exports.DecoratorHandler=ie;e.exports.RedirectHandler=se;e.exports.createRedirectInterceptor=ae;e.exports.buildConnector=U;e.exports.errors=d;function makeDispatcher(e){return(t,n,o)=>{if(typeof n==="function"){o=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new D("invalid url")}if(n!=null&&typeof n!=="object"){throw new D("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new D("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(v.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=v.parseURL(t)}const{agent:i,dispatcher:d=ne()}=n;if(i){throw new D("unsupported opts.agent. Did you mean opts.client?")}return e.call(d,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},o)}}e.exports.setGlobalDispatcher=oe;e.exports.getGlobalDispatcher=ne;if(v.nodeMajor>16||v.nodeMajor===16&&v.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=n(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=n(26349).Headers;e.exports.Response=n(48676).Response;e.exports.Request=n(25194).Request;e.exports.FormData=n(43073).FormData;e.exports.File=n(63041).File;e.exports.FileReader=n(82160).FileReader;const{setGlobalOrigin:o,getGlobalOrigin:i}=n(75628);e.exports.setGlobalOrigin=o;e.exports.getGlobalOrigin=i;const{CacheStorage:d}=n(44738);const{kConstruct:p}=n(80296);e.exports.caches=new d(p)}if(v.nodeMajor>=16){const{deleteCookie:t,getCookies:o,getSetCookies:i,setCookie:d}=n(53168);e.exports.deleteCookie=t;e.exports.getCookies=o;e.exports.getSetCookies=i;e.exports.setCookie=d;const{parseMIMEType:p,serializeAMimeType:f}=n(94322);e.exports.parseMIMEType=p;e.exports.serializeAMimeType=f}if(v.nodeMajor>=18&&Ae){const{WebSocket:t}=n(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(M.request);e.exports.stream=makeDispatcher(M.stream);e.exports.pipeline=makeDispatcher(M.pipeline);e.exports.connect=makeDispatcher(M.connect);e.exports.upgrade=makeDispatcher(M.upgrade);e.exports.MockClient=V;e.exports.MockPool=K;e.exports.MockAgent=j;e.exports.mockErrors=ee},59965:(e,t,n)=>{"use strict";const{InvalidArgumentError:o}=n(68707);const{kClients:i,kRunning:d,kClose:p,kDestroy:f,kDispatch:y,kInterceptors:v}=n(36443);const D=n(50001);const M=n(35076);const U=n(86197);const V=n(3440);const j=n(64415);const{WeakRef:K,FinalizationRegistry:ee}=n(13194)();const te=Symbol("onConnect");const re=Symbol("onDisconnect");const ne=Symbol("onConnectionError");const oe=Symbol("maxRedirections");const ie=Symbol("onDrain");const se=Symbol("factory");const ae=Symbol("finalizer");const Ae=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new U(e,t):new M(e,t)}class Agent extends D{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...d}={}){super();if(typeof e!=="function"){throw new o("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new o("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new o("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[v]=d.interceptors&&d.interceptors.Agent&&Array.isArray(d.interceptors.Agent)?d.interceptors.Agent:[j({maxRedirections:t})];this[Ae]={...V.deepClone(d),connect:n};this[Ae].interceptors=d.interceptors?{...d.interceptors}:undefined;this[oe]=t;this[se]=e;this[i]=new Map;this[ae]=new ee((e=>{const t=this[i].get(e);if(t!==undefined&&t.deref()===undefined){this[i].delete(e)}}));const p=this;this[ie]=(e,t)=>{p.emit("drain",e,[p,...t])};this[te]=(e,t)=>{p.emit("connect",e,[p,...t])};this[re]=(e,t,n)=>{p.emit("disconnect",e,[p,...t],n)};this[ne]=(e,t,n)=>{p.emit("connectionError",e,[p,...t],n)}}get[d](){let e=0;for(const t of this[i].values()){const n=t.deref();if(n){e+=n[d]}}return e}[y](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new o("opts.origin must be a non-empty string or URL.")}const d=this[i].get(n);let p=d?d.deref():null;if(!p){p=this[se](e.origin,this[Ae]).on("drain",this[ie]).on("connect",this[te]).on("disconnect",this[re]).on("connectionError",this[ne]);this[i].set(n,new K(p));this[ae].register(p,n)}return p.dispatch(e,t)}async[p](){const e=[];for(const t of this[i].values()){const n=t.deref();if(n){e.push(n.close())}}await Promise.all(e)}async[f](e){const t=[];for(const n of this[i].values()){const o=n.deref();if(o){t.push(o.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,n)=>{const{addAbortListener:o}=n(3440);const{RequestAbortedError:i}=n(68707);const d=Symbol("kListener");const p=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new i)}}function addSignal(e,t){e[p]=null;e[d]=null;if(!t){return}if(t.aborted){abort(e);return}e[p]=t;e[d]=()=>{abort(e)};o(e[p],e[d])}function removeSignal(e){if(!e[p]){return}if("removeEventListener"in e[p]){e[p].removeEventListener("abort",e[d])}else{e[p].removeListener("abort",e[d])}e[p]=null;e[d]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,n)=>{"use strict";const{AsyncResource:o}=n(90290);const{InvalidArgumentError:i,RequestAbortedError:d,SocketError:p}=n(68707);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);class ConnectHandler extends o{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid callback")}const{signal:n,opaque:o,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=o||null;this.responseHeaders=d||null;this.callback=t;this.abort=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(){throw new p("bad connect",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:d}=this;v(this);this.callback=null;let p=t;if(p!=null){p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t)}this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,socket:n,opaque:i,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=connect},76862:(e,t,n)=>{"use strict";const{Readable:o,Duplex:i,PassThrough:d}=n(2203);const{InvalidArgumentError:p,InvalidReturnValueError:f,RequestAbortedError:y}=n(68707);const v=n(3440);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);const V=n(42613);const j=Symbol("resume");class PipelineRequest extends o{constructor(){super({autoDestroy:true});this[j]=null}_read(){const{[j]:e}=this;if(e){this[j]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends o{constructor(e){super({autoDestroy:true});this[j]=e}_read(){this[j]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new y}t(e)}}class PipelineHandler extends D{constructor(e,t){if(!e||typeof e!=="object"){throw new p("invalid opts")}if(typeof t!=="function"){throw new p("invalid handler")}const{signal:n,method:o,opaque:d,onInfo:f,responseHeaders:D}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new p("invalid method")}if(f&&typeof f!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=d||null;this.responseHeaders=D||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=f||null;this.req=(new PipelineRequest).on("error",v.nop);this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,n)=>{const{req:o}=this;if(o.push(e,t)||o._readableState.destroyed){n()}else{o[j]=n}},destroy:(e,t)=>{const{body:n,req:o,res:i,ret:d,abort:p}=this;if(!e&&!d._readableState.endEmitted){e=new y}if(p&&e){p()}v.destroy(n,e);v.destroy(o,e);v.destroy(i,e);U(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;M(this,n)}onConnect(e,t){const{ret:n,res:o}=this;V(!o,"pipeline cannot be retried");if(n.destroyed){throw new y}this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:o,handler:i,context:d}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let p;try{this.handler=null;const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);p=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:o,body:this.res,context:d})}catch(e){this.res.on("error",v.nop);throw e}if(!p||typeof p.on!=="function"){throw new f("expected Readable")}p.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;v.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){v.destroy(e,new y)}}));this.body=p}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;v.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new d).destroy(e)}}e.exports=pipeline},14043:(e,t,n)=>{"use strict";const o=n(49927);const{InvalidArgumentError:i,RequestAbortedError:d}=n(68707);const p=n(3440);const{getResolveErrorBodyCallback:f}=n(87655);const{AsyncResource:y}=n(90290);const{addSignal:v,removeSignal:D}=n(80158);class RequestHandler extends y{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}const{signal:n,method:o,opaque:d,body:f,onInfo:y,responseHeaders:D,throwOnError:M,highWaterMark:U}=e;try{if(typeof t!=="function"){throw new i("invalid callback")}if(U&&(typeof U!=="number"||U<0)){throw new i("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new i("invalid method")}if(y&&typeof y!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(p.isStream(f)){p.destroy(f.on("error",p.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=d||null;this.callback=t;this.res=null;this.abort=null;this.body=f;this.trailers={};this.context=null;this.onInfo=y||null;this.throwOnError=M;this.highWaterMark=U;if(p.isStream(f)){f.on("error",(e=>{this.onError(e)}))}v(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(e,t,n,i){const{callback:d,opaque:y,abort:v,context:D,responseHeaders:M,highWaterMark:U}=this;const V=M==="raw"?p.parseRawHeaders(t):p.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:V})}return}const j=M==="raw"?p.parseHeaders(t):V;const K=j["content-type"];const ee=new o({resume:n,abort:v,contentType:K,highWaterMark:U});this.callback=null;this.res=ee;if(d!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(f,null,{callback:d,body:ee,contentType:K,statusCode:e,statusMessage:i,headers:V})}else{this.runInAsyncScope(d,null,null,{statusCode:e,headers:V,trailers:this.trailers,opaque:y,body:ee,context:D})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;D(this);p.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:n,body:o,opaque:i}=this;D(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(t){this.res=null;queueMicrotask((()=>{p.destroy(t,e)}))}if(o){this.body=null;p.destroy(o,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const o=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{"use strict";const{finished:o,PassThrough:i}=n(2203);const{InvalidArgumentError:d,InvalidReturnValueError:p,RequestAbortedError:f}=n(68707);const y=n(3440);const{getResolveErrorBodyCallback:v}=n(87655);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);class StreamHandler extends D{constructor(e,t,n){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:o,method:i,opaque:p,body:f,onInfo:v,responseHeaders:D,throwOnError:U}=e;try{if(typeof n!=="function"){throw new d("invalid callback")}if(typeof t!=="function"){throw new d("invalid factory")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new d("invalid method")}if(v&&typeof v!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(y.isStream(f)){y.destroy(f.on("error",y.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=p||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=f;this.onInfo=v||null;this.throwOnError=U||false;if(y.isStream(f)){f.on("error",(e=>{this.onError(e)}))}M(this,o)}onConnect(e,t){if(!this.callback){throw new f}this.abort=e;this.context=t}onHeaders(e,t,n,d){const{factory:f,opaque:D,context:M,callback:U,responseHeaders:V}=this;const j=V==="raw"?y.parseRawHeaders(t):y.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:j})}return}this.factory=null;let K;if(this.throwOnError&&e>=400){const n=V==="raw"?y.parseHeaders(t):j;const o=n["content-type"];K=new i;this.callback=null;this.runInAsyncScope(v,null,{callback:U,body:K,contentType:o,statusCode:e,statusMessage:d,headers:j})}else{if(f===null){return}K=this.runInAsyncScope(f,null,{statusCode:e,headers:j,opaque:D,context:M});if(!K||typeof K.write!=="function"||typeof K.end!=="function"||typeof K.on!=="function"){throw new p("expected Writable")}o(K,{readable:false},(e=>{const{callback:t,res:n,opaque:o,trailers:i,abort:d}=this;this.res=null;if(e||!n.readable){y.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:o,trailers:i});if(e){d()}}))}K.on("drain",n);this.res=K;const ee=K.writableNeedDrain!==undefined?K.writableNeedDrain:K._writableState&&K._writableState.needDrain;return ee!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;U(this);if(!t){return}this.trailers=y.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:o,body:i}=this;U(this);this.factory=null;if(t){this.res=null;y.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(i){this.body=null;y.destroy(i,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,o)=>{stream.call(this,e,t,((e,t)=>e?o(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const o=e&&e.opaque;queueMicrotask((()=>n(t,{opaque:o})))}}e.exports=stream},61882:(e,t,n)=>{"use strict";const{InvalidArgumentError:o,RequestAbortedError:i,SocketError:d}=n(68707);const{AsyncResource:p}=n(90290);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);const D=n(42613);class UpgradeHandler extends p{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=d||null;this.opaque=i||null;this.callback=t;this.abort=null;this.context=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new i}this.abort=e;this.context=null}onHeaders(){throw new d("bad upgrade",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:d}=this;D.strictEqual(e,101);v(this);this.callback=null;const p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);this.runInAsyncScope(o,null,null,{headers:p,socket:n,opaque:i,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=upgrade},56615:(e,t,n)=>{"use strict";e.exports.request=n(14043);e.exports.stream=n(3560);e.exports.pipeline=n(76862);e.exports.upgrade=n(61882);e.exports.connect=n(34660)},49927:(e,t,n)=>{"use strict";const o=n(42613);const{Readable:i}=n(2203);const{RequestAbortedError:d,NotSupportedError:p,InvalidArgumentError:f}=n(68707);const y=n(3440);const{ReadableStreamFrom:v,toUSVString:D}=n(3440);let M;const U=Symbol("kConsume");const V=Symbol("kReading");const j=Symbol("kBody");const K=Symbol("abort");const ee=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends i{constructor({resume:e,abort:t,contentType:n="",highWaterMark:o=64*1024}){super({autoDestroy:true,read:e,highWaterMark:o});this._readableState.dataEmitted=false;this[K]=t;this[U]=null;this[j]=null;this[ee]=n;this[V]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new d}if(e){this[K]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[V]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[V]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[U]&&e!==null&&this.readableLength===0){consumePush(this[U],e);return this[V]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new p}get bodyUsed(){return y.isDisturbed(this)}get body(){if(!this[j]){this[j]=v(this);if(this[U]){this[j].getReader();o(this[j].locked)}}return this[j]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const n=e&&e.signal;if(n){try{if(typeof n!=="object"||!("aborted"in n)){throw new f("signal must be an AbortSignal")}y.throwIfAborted(n)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,o)=>{const i=n?y.addAbortListener(n,(()=>{this.destroy()})):noop;this.on("close",(function(){i();if(n&&n.aborted){o(n.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[j]&&e[j].locked===true||e[U]}function isUnusable(e){return y.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}o(!e[U]);return new Promise(((n,o)=>{e[U]={type:t,stream:e,resolve:n,reject:o,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[U],e)})).on("close",(function(){if(this[U].body!==null){consumeFinish(this[U],new d)}}));process.nextTick(consumeStart,e[U])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const n of t.buffer){consumePush(e,n)}if(t.endEmitted){consumeEnd(this[U])}else{e.stream.on("end",(function(){consumeEnd(this[U])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:o,resolve:i,stream:d,length:p}=e;try{if(t==="text"){i(D(Buffer.concat(o)))}else if(t==="json"){i(JSON.parse(Buffer.concat(o)))}else if(t==="arrayBuffer"){const e=new Uint8Array(p);let t=0;for(const n of o){e.set(n,t);t+=n.byteLength}i(e.buffer)}else if(t==="blob"){if(!M){M=n(20181).Blob}i(new M(o,{type:d[ee]}))}consumeFinish(e)}catch(e){d.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,n)=>{const o=n(42613);const{ResponseStatusCodeError:i}=n(68707);const{toUSVString:d}=n(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:p,statusMessage:f,headers:y}){o(t);let v=[];let D=0;for await(const e of t){v.push(e);D+=e.length;if(D>128*1024){v=null;break}}if(p===204||!n||!v){process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y));return}try{if(n.startsWith("application/json")){const t=JSON.parse(d(Buffer.concat(v)));process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}if(n.startsWith("text/")){const t=d(Buffer.concat(v));process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}}catch(e){}process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,n)=>{"use strict";const{BalancedPoolMissingUpstreamError:o,InvalidArgumentError:i}=n(68707);const{PoolBase:d,kClients:p,kNeedDrain:f,kAddClient:y,kRemoveClient:v,kGetDispatcher:D}=n(58640);const M=n(35076);const{kUrl:U,kInterceptors:V}=n(36443);const{parseOrigin:j}=n(3440);const K=Symbol("factory");const ee=Symbol("options");const te=Symbol("kGreatestCommonDivisor");const re=Symbol("kCurrentWeight");const ne=Symbol("kIndex");const oe=Symbol("kWeight");const ie=Symbol("kMaxWeightPerServer");const se=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new M(e,t)}class BalancedPool extends d{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[ee]=n;this[ne]=-1;this[re]=0;this[ie]=this[ee].maxWeightPerServer||100;this[se]=this[ee].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new i("factory must be a function.")}this[V]=n.interceptors&&n.interceptors.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[K]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=j(e).origin;if(this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[K](t,Object.assign({},this[ee]));this[y](n);n.on("connect",(()=>{n[oe]=Math.min(this[ie],n[oe]+this[se])}));n.on("connectionError",(()=>{n[oe]=Math.max(1,n[oe]-this[se]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[oe]=Math.max(1,n[oe]-this[se]);this._updateBalancedPoolStats()}}));for(const e of this[p]){e[oe]=this[ie]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[te]=this[p].map((e=>e[oe])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=j(e).origin;const n=this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[v](n)}return this}get upstreams(){return this[p].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[U].origin))}[D](){if(this[p].length===0){throw new o}const e=this[p].find((e=>!e[f]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[p].map((e=>e[f])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let i=this[p].findIndex((e=>!e[f]));while(n++this[p][i][oe]&&!e[f]){i=this[ne]}if(this[ne]===0){this[re]=this[re]-this[te];if(this[re]<=0){this[re]=this[ie]}}if(e[oe]>=this[re]&&!e[f]){return e}}this[re]=this[p][i][oe];this[ne]=i;return this[p][i]}}e.exports=BalancedPool},50479:(e,t,n)=>{"use strict";const{kConstruct:o}=n(80296);const{urlEquals:i,fieldValues:d}=n(23993);const{kEnumerableProperty:p,isDisturbed:f}=n(3440);const{kHeadersList:y}=n(36443);const{webidl:v}=n(74222);const{Response:D,cloneResponse:M}=n(48676);const{Request:U}=n(25194);const{kState:V,kHeaders:j,kGuard:K,kRealm:ee}=n(89710);const{fetching:te}=n(12315);const{urlIsHttpHttpsScheme:re,createDeferredPromise:ne,readAllBytes:oe}=n(15523);const ie=n(42613);const{getGlobalDispatcher:se}=n(32581);class Cache{#e;constructor(){if(arguments[0]!==o){v.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);const n=await this.matchAll(e,t);if(n.length===0){return}return n[0]}async matchAll(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const o=[];if(e===undefined){for(const e of this.#e){o.push(e[1])}}else{const e=this.#t(n,t);for(const t of e){o.push(t[1])}}const i=[];for(const e of o){const t=new D(e.body?.source??null);const n=t[V].body;t[V]=e;t[V].body=n;t[j][y]=e.headersList;t[j][K]="immutable";i.push(t)}return Object.freeze(i)}async add(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=v.converters.RequestInfo(e);const t=[e];const n=this.addAll(t);return await n}async addAll(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=v.converters["sequence"](e);const t=[];const n=[];for(const t of e){if(typeof t==="string"){continue}const e=t[V];if(!re(e.url)||e.method!=="GET"){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const o=[];for(const i of e){const e=new U(i)[V];if(!re(e.url)){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";n.push(e);const p=ne();o.push(te({request:e,dispatcher:se(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){p.reject(v.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=d(e.headersList.get("vary"));for(const e of t){if(e==="*"){p.reject(v.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of o){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){p.reject(new DOMException("aborted","AbortError"));return}p.resolve(e)}}));t.push(p.promise)}const i=Promise.all(t);const p=await i;const f=[];let y=0;for(const e of p){const t={type:"put",request:n[y],response:e};f.push(t);y++}const D=ne();let M=null;try{this.#r(f)}catch(e){M=e}queueMicrotask((()=>{if(M===null){D.resolve(undefined)}else{D.reject(M)}}));return D.promise}async put(e,t){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=v.converters.RequestInfo(e);t=v.converters.Response(t);let n=null;if(e instanceof U){n=e[V]}else{n=new U(e)[V]}if(!re(n.url)||n.method!=="GET"){throw v.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const o=t[V];if(o.status===206){throw v.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(o.headersList.contains("vary")){const e=d(o.headersList.get("vary"));for(const t of e){if(t==="*"){throw v.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(o.body&&(f(o.body.stream)||o.body.stream.locked)){throw v.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const i=M(o);const p=ne();if(o.body!=null){const e=o.body.stream;const t=e.getReader();oe(t).then(p.resolve,p.reject)}else{p.resolve(undefined)}const y=[];const D={type:"put",request:n,response:i};y.push(D);const j=await p.promise;if(i.body!=null){i.body.source=j}const K=ne();let ee=null;try{this.#r(y)}catch(e){ee=e}queueMicrotask((()=>{if(ee===null){K.resolve()}else{K.reject(ee)}}));return K.promise}async delete(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return false}}else{ie(typeof e==="string");n=new U(e)[V]}const o=[];const i={type:"delete",request:n,options:t};o.push(i);const d=ne();let p=null;let f;try{f=this.#r(o)}catch(e){p=e}queueMicrotask((()=>{if(p===null){d.resolve(!!f?.length)}else{d.reject(p)}}));return d.promise}async keys(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const o=ne();const i=[];if(e===undefined){for(const e of this.#e){i.push(e[0])}}else{const e=this.#t(n,t);for(const t of e){i.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of i){const n=new U("https://a");n[V]=t;n[j][y]=t.headersList;n[j][K]="immutable";n[ee]=t.client;e.push(n)}o.resolve(Object.freeze(e))}));return o.promise}#r(e){const t=this.#e;const n=[...t];const o=[];const i=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(n.request,n.options,o).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#t(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);ie(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const i=n.request;if(!re(i.url)){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(i.method!=="GET"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(n.request);for(const n of e){const e=t.indexOf(n);ie(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);o.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){this.#e.length=0;this.#e=n;throw e}}#t(e,t,n){const o=[];const i=n??this.#e;for(const n of i){const[i,d]=n;if(this.#n(e,i,d,t)){o.push(n)}}return o}#n(e,t,n=null,o){const p=new URL(e.url);const f=new URL(t.url);if(o?.ignoreSearch){f.search="";p.search=""}if(!i(p,f,true)){return false}if(n==null||o?.ignoreVary||!n.headersList.contains("vary")){return true}const y=d(n.headersList.get("vary"));for(const n of y){if(n==="*"){return false}const o=t.headersList.get(n);const i=e.headersList.get(n);if(o!==i){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:p,matchAll:p,add:p,addAll:p,put:p,delete:p,keys:p});const ae=[{key:"ignoreSearch",converter:v.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:v.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:v.converters.boolean,defaultValue:false}];v.converters.CacheQueryOptions=v.dictionaryConverter(ae);v.converters.MultiCacheQueryOptions=v.dictionaryConverter([...ae,{key:"cacheName",converter:v.converters.DOMString}]);v.converters.Response=v.interfaceConverter(D);v.converters["sequence"]=v.sequenceConverter(v.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,n)=>{"use strict";const{kConstruct:o}=n(80296);const{Cache:i}=n(50479);const{webidl:d}=n(74222);const{kEnumerableProperty:p}=n(3440);class CacheStorage{#o=new Map;constructor(){if(arguments[0]!==o){d.illegalConstructor()}}async match(e,t={}){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=d.converters.RequestInfo(e);t=d.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#o.has(t.cacheName)){const n=this.#o.get(t.cacheName);const d=new i(o,n);return await d.match(e,t)}}else{for(const n of this.#o.values()){const d=new i(o,n);const p=await d.match(e,t);if(p!==undefined){return p}}}}async has(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=d.converters.DOMString(e);return this.#o.has(e)}async open(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=d.converters.DOMString(e);if(this.#o.has(e)){const t=this.#o.get(e);return new i(o,t)}const t=[];this.#o.set(e,t);return new i(o,t)}async delete(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=d.converters.DOMString(e);return this.#o.delete(e)}async keys(){d.brandCheck(this,CacheStorage);const e=this.#o.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:p,has:p,open:p,delete:p,keys:p});e.exports={CacheStorage:CacheStorage}},80296:(e,t,n)=>{"use strict";e.exports={kConstruct:n(36443).kConstruct}},23993:(e,t,n)=>{"use strict";const o=n(42613);const{URLSerializer:i}=n(94322);const{isValidHeaderName:d}=n(15523);function urlEquals(e,t,n=false){const o=i(e,n);const d=i(t,n);return o===d}function fieldValues(e){o(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(!n.length){continue}else if(!d(n)){continue}t.push(n)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,n)=>{"use strict";const o=n(42613);const i=n(69278);const d=n(58611);const{pipeline:p}=n(2203);const f=n(3440);const y=n(28804);const v=n(44655);const D=n(50001);const{RequestContentLengthMismatchError:M,ResponseContentLengthMismatchError:U,InvalidArgumentError:V,RequestAbortedError:j,HeadersTimeoutError:K,HeadersOverflowError:ee,SocketError:te,InformationalError:re,BodyTimeoutError:ne,HTTPParserError:oe,ResponseExceededMaxSizeError:ie,ClientDestroyedError:se}=n(68707);const ae=n(59136);const{kUrl:Ae,kReset:ce,kServerName:le,kClient:ue,kBusy:de,kParser:ge,kConnect:pe,kBlocking:me,kResuming:he,kRunning:fe,kPending:ye,kSize:Ce,kWriting:Ee,kQueue:Be,kConnected:Ie,kConnecting:Qe,kNeedDrain:be,kNoRef:Se,kKeepAliveDefaultTimeout:Ne,kHostHeader:Re,kPendingIdx:we,kRunningIdx:ve,kError:xe,kPipelining:Pe,kSocket:De,kKeepAliveTimeoutValue:ke,kMaxHeadersSize:Te,kKeepAliveMaxTimeout:Le,kKeepAliveTimeoutThreshold:Oe,kHeadersTimeout:Me,kBodyTimeout:Fe,kStrictContentLength:Ue,kConnector:He,kMaxRedirections:_e,kMaxRequests:qe,kCounter:ze,kClose:Ve,kDestroy:Ge,kDispatch:Ye,kInterceptors:je,kLocalAddress:Je,kMaxResponseSize:We,kHTTPConnVersion:Ke,kHost:Xe,kHTTP2Session:$e,kHTTP2SessionState:Ze,kHTTP2BuildRequest:At,kHTTP2CopyHeaders:dt,kHTTP1BuildRequest:mt}=n(36443);let yt;try{yt=n(85675)}catch{yt={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ct,HTTP2_HEADER_METHOD:Et,HTTP2_HEADER_PATH:Bt,HTTP2_HEADER_SCHEME:It,HTTP2_HEADER_CONTENT_LENGTH:Qt,HTTP2_HEADER_EXPECT:bt,HTTP2_HEADER_STATUS:St}}=yt;let Nt=false;const Rt=Buffer[Symbol.species];const wt=Symbol("kClosedResolve");const vt={};try{const e=n(31637);vt.sendHeaders=e.channel("undici:client:sendHeaders");vt.beforeConnect=e.channel("undici:client:beforeConnect");vt.connectError=e.channel("undici:client:connectError");vt.connected=e.channel("undici:client:connected")}catch{vt.sendHeaders={hasSubscribers:false};vt.beforeConnect={hasSubscribers:false};vt.connectError={hasSubscribers:false};vt.connected={hasSubscribers:false}}class Client extends D{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:p,requestTimeout:y,connectTimeout:v,bodyTimeout:D,idleTimeout:M,keepAlive:U,keepAliveTimeout:j,maxKeepAliveTimeout:K,keepAliveMaxTimeout:ee,keepAliveTimeoutThreshold:te,socketPath:re,pipelining:ne,tls:oe,strictContentLength:ie,maxCachedSessions:se,maxRedirections:ce,connect:ue,maxRequestsPerClient:de,localAddress:ge,maxResponseSize:pe,autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe,allowH2:ye,maxConcurrentStreams:Ce}={}){super();if(U!==undefined){throw new V("unsupported keepAlive, use pipelining=0 instead")}if(p!==undefined){throw new V("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(y!==undefined){throw new V("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(M!==undefined){throw new V("unsupported idleTimeout, use keepAliveTimeout instead")}if(K!==undefined){throw new V("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new V("invalid maxHeaderSize")}if(re!=null&&typeof re!=="string"){throw new V("invalid socketPath")}if(v!=null&&(!Number.isFinite(v)||v<0)){throw new V("invalid connectTimeout")}if(j!=null&&(!Number.isFinite(j)||j<=0)){throw new V("invalid keepAliveTimeout")}if(ee!=null&&(!Number.isFinite(ee)||ee<=0)){throw new V("invalid keepAliveMaxTimeout")}if(te!=null&&!Number.isFinite(te)){throw new V("invalid keepAliveTimeoutThreshold")}if(o!=null&&(!Number.isInteger(o)||o<0)){throw new V("headersTimeout must be a positive integer or zero")}if(D!=null&&(!Number.isInteger(D)||D<0)){throw new V("bodyTimeout must be a positive integer or zero")}if(ue!=null&&typeof ue!=="function"&&typeof ue!=="object"){throw new V("connect must be a function or an object")}if(ce!=null&&(!Number.isInteger(ce)||ce<0)){throw new V("maxRedirections must be a positive number")}if(de!=null&&(!Number.isInteger(de)||de<0)){throw new V("maxRequestsPerClient must be a positive number")}if(ge!=null&&(typeof ge!=="string"||i.isIP(ge)===0)){throw new V("localAddress must be valid string IP address")}if(pe!=null&&(!Number.isInteger(pe)||pe<-1)){throw new V("maxResponseSize must be a positive number")}if(fe!=null&&(!Number.isInteger(fe)||fe<-1)){throw new V("autoSelectFamilyAttemptTimeout must be a positive number")}if(ye!=null&&typeof ye!=="boolean"){throw new V("allowH2 must be a valid boolean value")}if(Ce!=null&&(typeof Ce!=="number"||Ce<1)){throw new V("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof ue!=="function"){ue=ae({...oe,maxCachedSessions:se,allowH2:ye,socketPath:re,timeout:v,...f.nodeHasAutoSelectFamily&&me?{autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe}:undefined,...ue})}this[je]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Pt({maxRedirections:ce})];this[Ae]=f.parseOrigin(e);this[He]=ue;this[De]=null;this[Pe]=ne!=null?ne:1;this[Te]=n||d.maxHeaderSize;this[Ne]=j==null?4e3:j;this[Le]=ee==null?6e5:ee;this[Oe]=te==null?1e3:te;this[ke]=this[Ne];this[le]=null;this[Je]=ge!=null?ge:null;this[he]=0;this[be]=0;this[Re]=`host: ${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}\r\n`;this[Fe]=D!=null?D:3e5;this[Me]=o!=null?o:3e5;this[Ue]=ie==null?true:ie;this[_e]=ce;this[qe]=de;this[wt]=null;this[We]=pe>-1?pe:-1;this[Ke]="h1";this[$e]=null;this[Ze]=!ye?null:{openStreams:0,maxConcurrentStreams:Ce!=null?Ce:100};this[Xe]=`${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}`;this[Be]=[];this[ve]=0;this[we]=0}get pipelining(){return this[Pe]}set pipelining(e){this[Pe]=e;resume(this,true)}get[ye](){return this[Be].length-this[we]}get[fe](){return this[we]-this[ve]}get[Ce](){return this[Be].length-this[ve]}get[Ie](){return!!this[De]&&!this[Qe]&&!this[De].destroyed}get[de](){const e=this[De];return e&&(e[ce]||e[Ee]||e[me])||this[Ce]>=(this[Pe]||1)||this[ye]>0}[pe](e){connect(this);this.once("connect",e)}[Ye](e,t){const n=e.origin||this[Ae].origin;const o=this[Ke]==="h2"?v[At](n,e,t):v[mt](n,e,t);this[Be].push(o);if(this[he]){}else if(f.bodyLength(o.body)==null&&f.isIterable(o.body)){this[he]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[he]&&this[be]!==2&&this[de]){this[be]=2}return this[be]<2}async[Ve](){return new Promise((e=>{if(!this[Ce]){e(null)}else{this[wt]=e}}))}async[Ge](e){return new Promise((t=>{const n=this[Be].splice(this[we]);for(let t=0;t{if(this[wt]){this[wt]();this[wt]=null}t()};if(this[$e]!=null){f.destroy(this[$e],e);this[$e]=null;this[Ze]=null}if(!this[De]){queueMicrotask(callback)}else{f.destroy(this[De].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[De][xe]=e;onError(this[ue],e)}function onHttp2FrameError(e,t,n){const o=new re(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(n===0){this[De][xe]=o;onError(this[ue],o)}}function onHttp2SessionEnd(){f.destroy(this,new te("other side closed"));f.destroy(this[De],new te("other side closed"))}function onHTTP2GoAway(e){const t=this[ue];const n=new re(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[De]=null;t[$e]=null;if(t.destroyed){o(this[ye]===0);const e=t[Be].splice(t[ve]);for(let t=0;t0){const e=t[Be][t[ve]];t[Be][t[ve]++]=null;errorRequest(t,e,n)}t[we]=t[ve];o(t[fe]===0);t.emit("disconnect",t[Ae],[t],n);resume(t)}const xt=n(52824);const Pt=n(64415);const Dt=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(n(53434),"base64"))}catch(o){t=await WebAssembly.compile(Buffer.from(e||n(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onStatus(new Rt(Ot.buffer,i,n))||0},wasm_on_message_begin:e=>{o.strictEqual(Lt.ptr,e);return Lt.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onHeaderField(new Rt(Ot.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onHeaderValue(new Rt(Ot.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>{o.strictEqual(Lt.ptr,e);return Lt.onHeadersComplete(t,Boolean(n),Boolean(i))||0},wasm_on_body:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onBody(new Rt(Ot.buffer,i,n))||0},wasm_on_message_complete:e=>{o.strictEqual(Lt.ptr,e);return Lt.onMessageComplete()||0}}})}let kt=null;let Tt=lazyllhttp();Tt.catch();let Lt=null;let Ot=null;let Mt=0;let Ft=null;const Ut=1;const Ht=2;const _t=3;class Parser{constructor(e,t,{exports:n}){o(Number.isFinite(e[Te])&&e[Te]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(xt.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[Te];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[We]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){y.clearTimeout(this.timeout);if(e){this.timeout=y.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}o(this.ptr!=null);o(Lt==null);this.llhttp.llhttp_resume(this.ptr);o(this.timeoutType===Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Dt);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){o(this.ptr!=null);o(Lt==null);o(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>Mt){if(Ft){n.free(Ft)}Mt=Math.ceil(e.length/4096)*4096;Ft=n.malloc(Mt)}new Uint8Array(n.memory.buffer,Ft,Mt).set(e);try{let o;try{Ot=e;Lt=this;o=n.llhttp_execute(this.ptr,Ft,e.length)}catch(e){throw e}finally{Lt=null;Ot=null}const i=n.llhttp_get_error_pos(this.ptr)-Ft;if(o===xt.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(i))}else if(o===xt.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(i))}else if(o!==xt.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let d="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);d="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new oe(d,xt.ERROR[o],e.slice(i))}}catch(e){f.destroy(t,e)}}destroy(){o(this.ptr!=null);o(Lt==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;y.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[Be][t[ve]];if(!n){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10&&n.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(n.length===10&&n.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(n.length===14&&n.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){f.destroy(this.socket,new ee)}}onUpgrade(e){const{upgrade:t,client:n,socket:i,headers:d,statusCode:p}=this;o(t);const y=n[Be][n[ve]];o(y);o(!i.destroyed);o(i===n[De]);o(!this.paused);o(y.upgrade||y.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;o(this.headers.length%2===0);this.headers=[];this.headersSize=0;i.unshift(e);i[ge].destroy();i[ge]=null;i[ue]=null;i[xe]=null;i.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);n[De]=null;n[Be][n[ve]++]=null;n.emit("disconnect",n[Ae],[n],new re("upgrade"));try{y.onUpgrade(p,d,i)}catch(e){f.destroy(i,e)}resume(n)}onHeadersComplete(e,t,n){const{client:i,socket:d,headers:p,statusText:y}=this;if(d.destroyed){return-1}const v=i[Be][i[ve]];if(!v){return-1}o(!this.upgrade);o(this.statusCode<200);if(e===100){f.destroy(d,new te("bad response",f.getSocketInfo(d)));return-1}if(t&&!v.upgrade){f.destroy(d,new te("bad upgrade",f.getSocketInfo(d)));return-1}o.strictEqual(this.timeoutType,Ut);this.statusCode=e;this.shouldKeepAlive=n||v.method==="HEAD"&&!d[ce]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=v.bodyTimeout!=null?v.bodyTimeout:i[Fe];this.setTimeout(e,Ht)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(v.method==="CONNECT"){o(i[fe]===1);this.upgrade=true;return 2}if(t){o(i[fe]===1);this.upgrade=true;return 2}o(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&i[Pe]){const e=this.keepAlive?f.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-i[Oe],i[Le]);if(t<=0){d[ce]=true}else{i[ke]=t}}else{i[ke]=i[Ne]}}else{d[ce]=true}const D=v.onHeaders(e,p,this.resume,y)===false;if(v.aborted){return-1}if(v.method==="HEAD"){return 1}if(e<200){return 1}if(d[me]){d[me]=false;resume(i)}return D?xt.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:i,maxResponseSize:d}=this;if(n.destroyed){return-1}const p=t[Be][t[ve]];o(p);o.strictEqual(this.timeoutType,Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}o(i>=200);if(d>-1&&this.bytesRead+e.length>d){f.destroy(n,new ie);return-1}this.bytesRead+=e.length;if(p.onData(e)===false){return xt.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:i,headers:d,contentLength:p,bytesRead:y,shouldKeepAlive:v}=this;if(t.destroyed&&(!n||v)){return-1}if(i){return}const D=e[Be][e[ve]];o(D);o(n>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";o(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(n<200){return}if(D.method!=="HEAD"&&p&&y!==parseInt(p,10)){f.destroy(t,new U);return-1}D.onComplete(d);e[Be][e[ve]++]=null;if(t[Ee]){o.strictEqual(e[fe],0);f.destroy(t,new re("reset"));return xt.ERROR.PAUSED}else if(!v){f.destroy(t,new re("reset"));return xt.ERROR.PAUSED}else if(t[ce]&&e[fe]===0){f.destroy(t,new re("reset"));return xt.ERROR.PAUSED}else if(e[Pe]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:i}=e;if(n===Ut){if(!t[Ee]||t.writableNeedDrain||i[fe]>1){o(!e.paused,"cannot be paused while waiting for headers");f.destroy(t,new K)}}else if(n===Ht){if(!e.paused){f.destroy(t,new ne)}}else if(n===_t){o(i[fe]===0&&i[ke]);f.destroy(t,new re("socket idle timeout"))}}function onSocketReadable(){const{[ge]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[ue]:t,[ge]:n}=this;o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[Ke]!=="h2"){if(e.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}}this[xe]=e;onError(this[ue],e)}function onError(e,t){if(e[fe]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){o(e[we]===e[ve]);const n=e[Be].splice(e[ve]);for(let o=0;o0&&n.code!=="UND_ERR_INFO"){const t=e[Be][e[ve]];e[Be][e[ve]++]=null;errorRequest(e,t,n)}e[we]=e[ve];o(e[fe]===0);e.emit("disconnect",e[Ae],[e],n);resume(e)}async function connect(e){o(!e[Qe]);o(!e[De]);let{host:t,hostname:n,protocol:d,port:p}=e[Ae];if(n[0]==="["){const e=n.indexOf("]");o(e!==-1);const t=n.substring(1,e);o(i.isIP(t));n=t}e[Qe]=true;if(vt.beforeConnect.hasSubscribers){vt.beforeConnect.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He]})}try{const i=await new Promise(((o,i)=>{e[He]({host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},((e,t)=>{if(e){i(e)}else{o(t)}}))}));if(e.destroyed){f.destroy(i.on("error",(()=>{})),new se);return}e[Qe]=false;o(i);const y=i.alpnProtocol==="h2";if(y){if(!Nt){Nt=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=yt.connect(e[Ae],{createConnection:()=>i,peerMaxConcurrentStreams:e[Ze].maxConcurrentStreams});e[Ke]="h2";t[ue]=e;t[De]=i;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[$e]=t;i[$e]=t}else{if(!kt){kt=await Tt;Tt=null}i[Se]=false;i[Ee]=false;i[ce]=false;i[me]=false;i[ge]=new Parser(e,i,kt)}i[ze]=0;i[qe]=e[qe];i[ue]=e;i[xe]=null;i.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[De]=i;if(vt.connected.hasSubscribers){vt.connected.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],socket:i})}e.emit("connect",e[Ae],[e])}catch(i){if(e.destroyed){return}e[Qe]=false;if(vt.connectError.hasSubscribers){vt.connectError.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],error:i})}if(i.code==="ERR_TLS_CERT_ALTNAME_INVALID"){o(e[fe]===0);while(e[ye]>0&&e[Be][e[we]].servername===e[le]){const t=e[Be][e[we]++];errorRequest(e,t,i)}}else{onError(e,i)}e.emit("connectionError",e[Ae],[e],i)}resume(e)}function emitDrain(e){e[be]=0;e.emit("drain",e[Ae],[e])}function resume(e,t){if(e[he]===2){return}e[he]=2;_resume(e,t);e[he]=0;if(e[ve]>256){e[Be].splice(0,e[ve]);e[we]-=e[ve];e[ve]=0}}function _resume(e,t){while(true){if(e.destroyed){o(e[ye]===0);return}if(e[wt]&&!e[Ce]){e[wt]();e[wt]=null;return}const n=e[De];if(n&&!n.destroyed&&n.alpnProtocol!=="h2"){if(e[Ce]===0){if(!n[Se]&&n.unref){n.unref();n[Se]=true}}else if(n[Se]&&n.ref){n.ref();n[Se]=false}if(e[Ce]===0){if(n[ge].timeoutType!==_t){n[ge].setTimeout(e[ke],_t)}}else if(e[fe]>0&&n[ge].statusCode<200){if(n[ge].timeoutType!==Ut){const t=e[Be][e[ve]];const o=t.headersTimeout!=null?t.headersTimeout:e[Me];n[ge].setTimeout(o,Ut)}}}if(e[de]){e[be]=2}else if(e[be]===2){if(t){e[be]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[ye]===0){return}if(e[fe]>=(e[Pe]||1)){return}const i=e[Be][e[we]];if(e[Ae].protocol==="https:"&&e[le]!==i.servername){if(e[fe]>0){return}e[le]=i.servername;if(n&&n.servername!==i.servername){f.destroy(n,new re("servername changed"));return}}if(e[Qe]){return}if(!n&&!e[$e]){connect(e);return}if(n.destroyed||n[Ee]||n[ce]||n[me]){return}if(e[fe]>0&&!i.idempotent){return}if(e[fe]>0&&(i.upgrade||i.method==="CONNECT")){return}if(e[fe]>0&&f.bodyLength(i.body)!==0&&(f.isStream(i.body)||f.isAsyncIterable(i.body))){return}if(!i.aborted&&write(e,i)){e[we]++}else{e[Be].splice(e[we],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[Ke]==="h2"){writeH2(e,e[$e],t);return}const{body:n,method:i,path:d,host:p,upgrade:y,headers:v,blocking:D,reset:U}=t;const V=i==="PUT"||i==="POST"||i==="PATCH";if(n&&typeof n.read==="function"){n.read(0)}const K=f.bodyLength(n);let ee=K;if(ee===null){ee=t.contentLength}if(ee===0&&!V){ee=null}if(shouldSendContentLength(i)&&ee>0&&t.contentLength!==null&&t.contentLength!==ee){if(e[Ue]){errorRequest(e,t,new M);return false}process.emitWarning(new M)}const te=e[De];try{t.onConnect((n=>{if(t.aborted||t.completed){return}errorRequest(e,t,n||new j);f.destroy(te,new re("aborted"))}))}catch(n){errorRequest(e,t,n)}if(t.aborted){return false}if(i==="HEAD"){te[ce]=true}if(y||i==="CONNECT"){te[ce]=true}if(U!=null){te[ce]=U}if(e[qe]&&te[ze]++>=e[qe]){te[ce]=true}if(D){te[me]=true}let ne=`${i} ${d} HTTP/1.1\r\n`;if(typeof p==="string"){ne+=`host: ${p}\r\n`}else{ne+=e[Re]}if(y){ne+=`connection: upgrade\r\nupgrade: ${y}\r\n`}else if(e[Pe]&&!te[ce]){ne+="connection: keep-alive\r\n"}else{ne+="connection: close\r\n"}if(v){ne+=v}if(vt.sendHeaders.hasSubscribers){vt.sendHeaders.publish({request:t,headers:ne,socket:te})}if(!n||K===0){if(ee===0){te.write(`${ne}content-length: 0\r\n\r\n`,"latin1")}else{o(ee===null,"no body must not have content length");te.write(`${ne}\r\n`,"latin1")}t.onRequestSent()}else if(f.isBuffer(n)){o(ee===n.byteLength,"buffer body must have content length");te.cork();te.write(`${ne}content-length: ${ee}\r\n\r\n`,"latin1");te.write(n);te.uncork();t.onBodySent(n);t.onRequestSent();if(!V){te[ce]=true}}else if(f.isBlobLike(n)){if(typeof n.stream==="function"){writeIterable({body:n.stream(),client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{writeBlob({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}}else if(f.isStream(n)){writeStream({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else if(f.isIterable(n)){writeIterable({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{o(false)}return true}function writeH2(e,t,n){const{body:i,method:d,path:p,host:y,upgrade:D,expectContinue:U,signal:V,headers:K}=n;let ee;if(typeof K==="string")ee=v[dt](K.trim());else ee=K;if(D){errorRequest(e,n,new Error("Upgrade not supported for H2"));return false}try{n.onConnect((t=>{if(n.aborted||n.completed){return}errorRequest(e,n,t||new j)}))}catch(t){errorRequest(e,n,t)}if(n.aborted){return false}let te;const ne=e[Ze];ee[Ct]=y||e[Xe];ee[Et]=d;if(d==="CONNECT"){t.ref();te=t.request(ee,{endStream:false,signal:V});if(te.id&&!te.pending){n.onUpgrade(null,null,te);++ne.openStreams}else{te.once("ready",(()=>{n.onUpgrade(null,null,te);++ne.openStreams}))}te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0)t.unref()}));return true}ee[Bt]=p;ee[It]="https";const oe=d==="PUT"||d==="POST"||d==="PATCH";if(i&&typeof i.read==="function"){i.read(0)}let ie=f.bodyLength(i);if(ie==null){ie=n.contentLength}if(ie===0||!oe){ie=null}if(shouldSendContentLength(d)&&ie>0&&n.contentLength!=null&&n.contentLength!==ie){if(e[Ue]){errorRequest(e,n,new M);return false}process.emitWarning(new M)}if(ie!=null){o(i,"no body must not have content length");ee[Qt]=`${ie}`}t.ref();const se=d==="GET"||d==="HEAD";if(U){ee[bt]="100-continue";te=t.request(ee,{endStream:se,signal:V});te.once("continue",writeBodyH2)}else{te=t.request(ee,{endStream:se,signal:V});writeBodyH2()}++ne.openStreams;te.once("response",(e=>{const{[St]:t,...o}=e;if(n.onHeaders(Number(t),o,te.resume.bind(te),"")===false){te.pause()}}));te.once("end",(()=>{n.onComplete([])}));te.on("data",(e=>{if(n.onData(e)===false){te.pause()}}));te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0){t.unref()}}));te.once("error",(function(t){if(e[$e]&&!e[$e].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,t)}}));te.once("frameError",((t,o)=>{const i=new re(`HTTP/2: "frameError" received - type ${t}, code ${o}`);errorRequest(e,n,i);if(e[$e]&&!e[$e].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,i)}}));return true;function writeBodyH2(){if(!i){n.onRequestSent()}else if(f.isBuffer(i)){o(ie===i.byteLength,"buffer body must have content length");te.cork();te.write(i);te.uncork();te.end();n.onBodySent(i);n.onRequestSent()}else if(f.isBlobLike(i)){if(typeof i.stream==="function"){writeIterable({client:e,request:n,contentLength:ie,h2stream:te,expectsPayload:oe,body:i.stream(),socket:e[De],header:""})}else{writeBlob({body:i,client:e,request:n,contentLength:ie,expectsPayload:oe,h2stream:te,header:"",socket:e[De]})}}else if(f.isStream(i)){writeStream({body:i,client:e,request:n,contentLength:ie,expectsPayload:oe,socket:e[De],h2stream:te,header:""})}else if(f.isIterable(i)){writeIterable({body:i,client:e,request:n,contentLength:ie,expectsPayload:oe,header:"",h2stream:te,socket:e[De]})}else{o(false)}}}function writeStream({h2stream:e,body:t,client:n,request:i,socket:d,contentLength:y,header:v,expectsPayload:D}){o(y!==0||n[fe]===0,"stream body cannot be pipelined");if(n[Ke]==="h2"){const V=p(t,e,(n=>{if(n){f.destroy(t,n);f.destroy(e,n)}else{i.onRequestSent()}}));V.on("data",onPipeData);V.once("end",(()=>{V.removeListener("data",onPipeData);f.destroy(V)}));function onPipeData(e){i.onBodySent(e)}return}let M=false;const U=new AsyncWriter({socket:d,request:i,contentLength:y,client:n,expectsPayload:D,header:v});const onData=function(e){if(M){return}try{if(!U.write(e)&&this.pause){this.pause()}}catch(e){f.destroy(this,e)}};const onDrain=function(){if(M){return}if(t.resume){t.resume()}};const onAbort=function(){if(M){return}const e=new j;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(M){return}M=true;o(d.destroyed||d[Ee]&&n[fe]<=1);d.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{U.end()}catch(t){e=t}}U.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){f.destroy(t,e)}else{f.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}d.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:n,request:i,socket:d,contentLength:p,header:y,expectsPayload:v}){o(p===t.size,"blob body must have content length");const D=n[Ke]==="h2";try{if(p!=null&&p!==t.size){throw new M}const o=Buffer.from(await t.arrayBuffer());if(D){e.cork();e.write(o);e.uncork()}else{d.cork();d.write(`${y}content-length: ${p}\r\n\r\n`,"latin1");d.write(o);d.uncork()}i.onBodySent(o);i.onRequestSent();if(!v){d[ce]=true}resume(n)}catch(t){f.destroy(D?e:d,t)}}async function writeIterable({h2stream:e,body:t,client:n,request:i,socket:d,contentLength:p,header:f,expectsPayload:y}){o(p!==0||n[fe]===0,"iterator body cannot be pipelined");let v=null;function onDrain(){if(v){const e=v;v=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(v===null);if(d[xe]){t(d[xe])}else{v=e}}));if(n[Ke]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const n of t){if(d[xe]){throw d[xe]}const t=e.write(n);i.onBodySent(n);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{i.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}d.on("close",onDrain).on("drain",onDrain);const D=new AsyncWriter({socket:d,request:i,contentLength:p,client:n,expectsPayload:y,header:f});try{for await(const e of t){if(d[xe]){throw d[xe]}if(!D.write(e)){await waitForDrain()}}D.end()}catch(e){D.destroy(e)}finally{d.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:n,client:o,expectsPayload:i,header:d}){this.socket=e;this.request=t;this.contentLength=n;this.client=o;this.bytesWritten=0;this.expectsPayload=i;this.header=d;e[Ee]=true}write(e){const{socket:t,request:n,contentLength:o,client:i,bytesWritten:d,expectsPayload:p,header:f}=this;if(t[xe]){throw t[xe]}if(t.destroyed){return false}const y=Buffer.byteLength(e);if(!y){return true}if(o!==null&&d+y>o){if(i[Ue]){throw new M}process.emitWarning(new M)}t.cork();if(d===0){if(!p){t[ce]=true}if(o===null){t.write(`${f}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${f}content-length: ${o}\r\n\r\n`,"latin1")}}if(o===null){t.write(`\r\n${y.toString(16)}\r\n`,"latin1")}this.bytesWritten+=y;const v=t.write(e);t.uncork();n.onBodySent(e);if(!v){if(t[ge].timeout&&t[ge].timeoutType===Ut){if(t[ge].timeout.refresh){t[ge].timeout.refresh()}}}return v}end(){const{socket:e,contentLength:t,client:n,bytesWritten:o,expectsPayload:i,header:d,request:p}=this;p.onRequestSent();e[Ee]=false;if(e[xe]){throw e[xe]}if(e.destroyed){return}if(o===0){if(i){e.write(`${d}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${d}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&o!==t){if(n[Ue]){throw new M}else{process.emitWarning(new M)}}if(e[ge].timeout&&e[ge].timeoutType===Ut){if(e[ge].timeout.refresh){e[ge].timeout.refresh()}}resume(n)}destroy(e){const{socket:t,client:n}=this;t[Ee]=false;if(e){o(n[fe]<=1,"pipeline should only contain this request");f.destroy(t,e)}}}function errorRequest(e,t,n){try{t.onError(n);o(t.aborted)}catch(n){e.emit("error",n)}}e.exports=Client},13194:(e,t,n)=>{"use strict";const{kConnected:o,kSize:i}=n(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[o]===0&&this.value[i]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[o]===0&&e[i]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{"use strict";const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},53168:(e,t,n)=>{"use strict";const{parseSetCookie:o}=n(8915);const{stringify:i}=n(3834);const{webidl:d}=n(74222);const{Headers:p}=n(26349);function getCookies(e){d.argumentLengthCheck(arguments,1,{header:"getCookies"});d.brandCheck(e,p,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...o]=e.split("=");n[t.trim()]=o.join("=")}return n}function deleteCookie(e,t,n){d.argumentLengthCheck(arguments,2,{header:"deleteCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.DOMString(t);n=d.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){d.argumentLengthCheck(arguments,1,{header:"getSetCookies"});d.brandCheck(e,p,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>o(e)))}function setCookie(e,t){d.argumentLengthCheck(arguments,2,{header:"setCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.Cookie(t);const n=i(t);if(n){e.append("Set-Cookie",i(t))}}d.converters.DeleteCookieAttributes=d.dictionaryConverter([{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null}]);d.converters.Cookie=d.dictionaryConverter([{converter:d.converters.DOMString,key:"name"},{converter:d.converters.DOMString,key:"value"},{converter:d.nullableConverter((e=>{if(typeof e==="number"){return d.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:d.nullableConverter(d.converters["long long"]),key:"maxAge",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"secure",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"httpOnly",defaultValue:null},{converter:d.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:d.sequenceConverter(d.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,n)=>{"use strict";const{maxNameValuePairSize:o,maxAttributeValueSize:i}=n(19237);const{isCTLExcludingHtab:d}=n(3834);const{collectASequenceOfCodePointsFast:p}=n(94322);const f=n(42613);function parseSetCookie(e){if(d(e)){return null}let t="";let n="";let i="";let f="";if(e.includes(";")){const o={position:0};t=p(";",e,o);n=e.slice(o.position)}else{t=e}if(!t.includes("=")){f=t}else{const e={position:0};i=p("=",t,e);f=t.slice(e.position+1)}i=i.trim();f=f.trim();if(i.length+f.length>o){return null}return{name:i,value:f,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}f(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=p(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let o="";let d="";if(n.includes("=")){const e={position:0};o=p("=",n,e);d=n.slice(e.position+1)}else{o=n}o=o.trim();d=d.trim();if(d.length>i){return parseUnparsedAttributes(e,t)}const y=o.toLowerCase();if(y==="expires"){const e=new Date(d);t.expires=e}else if(y==="max-age"){const n=d.charCodeAt(0);if((n<48||n>57)&&d[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(d)){return parseUnparsedAttributes(e,t)}const o=Number(d);t.maxAge=o}else if(y==="domain"){let e=d;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(y==="path"){let e="";if(d.length===0||d[0]!=="/"){e="/"}else{e=d}t.path=e}else if(y==="secure"){t.secure=true}else if(y==="httponly"){t.httpOnly=true}else if(y==="samesite"){let e="Default";const n=d.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${o}=${d}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:e=>{"use strict";function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const o=t[e.getUTCDay()];const i=e.getUTCDate().toString().padStart(2,"0");const d=n[e.getUTCMonth()];const p=e.getUTCFullYear();const f=e.getUTCHours().toString().padStart(2,"0");const y=e.getUTCMinutes().toString().padStart(2,"0");const v=e.getUTCSeconds().toString().padStart(2,"0");return`${o}, ${i} ${d} ${p} ${f}:${y}:${v} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...o]=n.split("=");t.push(`${e.trim()}=${o.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},59136:(e,t,n)=>{"use strict";const o=n(69278);const i=n(42613);const d=n(3440);const{InvalidArgumentError:p,ConnectTimeoutError:f}=n(68707);let y;let v;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){v=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:f,timeout:D,...M}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxCachedSessions must be a positive integer or zero")}const U={path:f,...M};const V=new v(t==null?100:t);D=D==null?1e4:D;e=e!=null?e:false;return function connect({hostname:t,host:p,protocol:f,port:v,servername:M,localAddress:j,httpSocket:K},ee){let te;if(f==="https:"){if(!y){y=n(64756)}M=M||U.servername||d.getServerName(p)||null;const o=M||t;const f=V.get(o)||null;i(o);te=y.connect({highWaterMark:16384,...U,servername:M,session:f,localAddress:j,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:K,port:v||443,host:t});te.on("session",(function(e){V.set(o,e)}))}else{i(!K,"httpSocket can only be sent on TLS update");te=o.connect({highWaterMark:64*1024,...U,localAddress:j,port:v||80,host:t})}if(U.keepAlive==null||U.keepAlive){const e=U.keepAliveInitialDelay===undefined?6e4:U.keepAliveInitialDelay;te.setKeepAlive(true,e)}const re=setupTimeout((()=>onConnectTimeout(te)),D);te.setNoDelay(true).once(f==="https:"?"secureConnect":"connect",(function(){re();if(ee){const e=ee;ee=null;e(null,this)}})).on("error",(function(e){re();if(ee){const t=ee;ee=null;t(e)}}));return te}}function setupTimeout(e,t){if(!t){return()=>{}}let n=null;let o=null;const i=setTimeout((()=>{n=setImmediate((()=>{if(process.platform==="win32"){o=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(i);clearImmediate(n);clearImmediate(o)}}function onConnectTimeout(e){d.destroy(e,new f)}e.exports=buildConnector},10735:e=>{"use strict";const t={};const n=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,o){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=o;this.status=t;this.statusCode=t;this.headers=n}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=o;this.headers=n}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,n)=>{"use strict";const{InvalidArgumentError:o,NotSupportedError:i}=n(68707);const d=n(42613);const{kHTTP2BuildRequest:p,kHTTP2CopyHeaders:f,kHTTP1BuildRequest:y}=n(36443);const v=n(3440);const D=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const M=/[^\t\x20-\x7e\x80-\xff]/;const U=/[^\u0021-\u00ff]/;const V=Symbol("handler");const j={};let K;try{const e=n(31637);j.create=e.channel("undici:request:create");j.bodySent=e.channel("undici:request:bodySent");j.headers=e.channel("undici:request:headers");j.trailers=e.channel("undici:request:trailers");j.error=e.channel("undici:request:error")}catch{j.create={hasSubscribers:false};j.bodySent={hasSubscribers:false};j.headers={hasSubscribers:false};j.trailers={hasSubscribers:false};j.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:i,body:d,headers:p,query:f,idempotent:y,blocking:M,upgrade:ee,headersTimeout:te,bodyTimeout:re,reset:ne,throwOnError:oe,expectContinue:ie},se){if(typeof t!=="string"){throw new o("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&i!=="CONNECT"){throw new o("path must be an absolute URL or start with a slash")}else if(U.exec(t)!==null){throw new o("invalid request path")}if(typeof i!=="string"){throw new o("method must be a string")}else if(D.exec(i)===null){throw new o("invalid request method")}if(ee&&typeof ee!=="string"){throw new o("upgrade must be a string")}if(te!=null&&(!Number.isFinite(te)||te<0)){throw new o("invalid headersTimeout")}if(re!=null&&(!Number.isFinite(re)||re<0)){throw new o("invalid bodyTimeout")}if(ne!=null&&typeof ne!=="boolean"){throw new o("invalid reset")}if(ie!=null&&typeof ie!=="boolean"){throw new o("invalid expectContinue")}this.headersTimeout=te;this.bodyTimeout=re;this.throwOnError=oe===true;this.method=i;this.abort=null;if(d==null){this.body=null}else if(v.isStream(d)){this.body=d;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){v.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(v.isBuffer(d)){this.body=d.byteLength?d:null}else if(ArrayBuffer.isView(d)){this.body=d.buffer.byteLength?Buffer.from(d.buffer,d.byteOffset,d.byteLength):null}else if(d instanceof ArrayBuffer){this.body=d.byteLength?Buffer.from(d):null}else if(typeof d==="string"){this.body=d.length?Buffer.from(d):null}else if(v.isFormDataLike(d)||v.isIterable(d)||v.isBlobLike(d)){this.body=d}else{throw new o("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ee||null;this.path=f?v.buildURL(t,f):t;this.origin=e;this.idempotent=y==null?i==="HEAD"||i==="GET":y;this.blocking=M==null?false:M;this.reset=ne==null?null:ne;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=ie!=null?ie:false;if(Array.isArray(p)){if(p.length%2!==0){throw new o("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,n)=>{"use strict";const o=n(42613);const{kDestroyed:i,kBodyUsed:d}=n(36443);const{IncomingMessage:p}=n(58611);const f=n(2203);const y=n(69278);const{InvalidArgumentError:v}=n(68707);const{Blob:D}=n(20181);const M=n(39023);const{stringify:U}=n(83480);const{headerNameLowerCasedRecord:V}=n(10735);const[j,K]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return D&&e instanceof D||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=U(t);if(n){e+="?"+n}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new v("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new v("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new v("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new v("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new v("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new v("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let o=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n.endsWith("/")){n=n.substring(0,n.length-1)}if(o&&!o.startsWith("/")){o=`/${o}`}e=new URL(n+o)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new v("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");o(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}o.strictEqual(typeof e,"string");const t=getHostname(e);if(y.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[i])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===p){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[i]=true}}const ee=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(ee);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return V[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let n=0;ne.toString("utf8")))}else{t[o]=e[n+1].toString("utf8")}}else{if(!Array.isArray(i)){i=[i];t[o]=i}i.push(e[n+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let n=false;let o=-1;for(let i=0;i{e.close()}))}else{const t=Buffer.isBuffer(o)?o:Buffer.from(o);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const re=!!String.prototype.toWellFormed;function toUSVString(e){if(re){return`${e}`.toWellFormed()}else if(M.toUSVString){return M.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const ne=Object.create(null);ne.enumerable=true;e.exports={kEnumerableProperty:ne,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:j,nodeMinor:K,nodeHasAutoSelectFamily:j>18||j===18&&K>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,n)=>{"use strict";const o=n(28611);const{ClientDestroyedError:i,ClientClosedError:d,InvalidArgumentError:p}=n(68707);const{kDestroy:f,kClose:y,kDispatch:v,kInterceptors:D}=n(36443);const M=Symbol("destroyed");const U=Symbol("closed");const V=Symbol("onDestroyed");const j=Symbol("onClosed");const K=Symbol("Intercepted Dispatch");class DispatcherBase extends o{constructor(){super();this[M]=false;this[V]=null;this[U]=false;this[j]=[]}get destroyed(){return this[M]}get closed(){return this[U]}get interceptors(){return this[D]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[D][t];if(typeof e!=="function"){throw new p("interceptor must be an function")}}}this[D]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,o)=>n?t(n):e(o)))}))}if(typeof e!=="function"){throw new p("invalid callback")}if(this[M]){queueMicrotask((()=>e(new i,null)));return}if(this[U]){if(this[j]){this[j].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[U]=true;this[j].push(e);const onClosed=()=>{const e=this[j];this[j]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,o)=>e?n(e):t(o)))}))}if(typeof t!=="function"){throw new p("invalid callback")}if(this[M]){if(this[V]){this[V].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new i}this[M]=true;this[V]=this[V]||[];this[V].push(t);const onDestroyed=()=>{const e=this[V];this[V]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[K](e,t){if(!this[D]||this[D].length===0){this[K]=this[v];return this[v](e,t)}let n=this[v].bind(this);for(let e=this[D].length-1;e>=0;e--){n=this[D][e](n)}this[K]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new p("handler must be an object")}try{if(!e||typeof e!=="object"){throw new p("opts must be an object.")}if(this[M]||this[V]){throw new i}if(this[U]){throw new d}return this[K](e,t)}catch(e){if(typeof t.onError!=="function"){throw new p("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,n)=>{"use strict";const o=n(24434);class Dispatcher extends o{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,n)=>{"use strict";const o=n(89581);const i=n(3440);const{ReadableStreamFrom:d,isBlobLike:p,isReadableStreamLike:f,readableStreamClose:y,createDeferredPromise:v,fullyReadBody:D}=n(15523);const{FormData:M}=n(43073);const{kState:U}=n(89710);const{webidl:V}=n(74222);const{DOMException:j,structuredClone:K}=n(87326);const{Blob:ee,File:te}=n(20181);const{kBodyUsed:re}=n(36443);const ne=n(42613);const{isErrored:oe}=n(3440);const{isUint8Array:ie,isArrayBuffer:se}=n(98253);const{File:ae}=n(63041);const{parseMIMEType:Ae,serializeAMimeType:ce}=n(94322);let le;try{const e=n(77598);le=t=>e.randomInt(0,t)}catch{le=e=>Math.floor(Math.random(e))}let ue=globalThis.ReadableStream;const de=te??ae;const ge=new TextEncoder;const pe=new TextDecoder;function extractBody(e,t=false){if(!ue){ue=n(63774).ReadableStream}let o=null;if(e instanceof ue){o=e}else if(p(e)){o=e.stream()}else{o=new ue({async pull(e){e.enqueue(typeof D==="string"?ge.encode(D):D);queueMicrotask((()=>y(e)))},start(){},type:undefined})}ne(f(o));let v=null;let D=null;let M=null;let U=null;if(typeof e==="string"){D=e;U="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){D=e.toString();U="application/x-www-form-urlencoded;charset=UTF-8"}else if(se(e)){D=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){D=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(i.isFormDataLike(e)){const t=`----formdata-undici-0${`${le(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data` +(()=>{var e={5116:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const f=d(n(37484));const y=d(n(16928));const v=d(n(98299));const D=d(n(73171));const M=d(n(96819));const U=n(17606);const V=n(95321);const j=n(58287);const K=n(54844);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=(0,U.getCacheServiceVersion)();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,n,o,i=false){return p(this,void 0,void 0,(function*(){const d=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${d}`);checkPaths(e);switch(d){case"v2":return yield restoreCacheV2(e,t,n,o,i);case"v1":default:return yield restoreCacheV1(e,t,n,o,i)}}))}t.restoreCache=restoreCache;function restoreCacheV1(e,t,n,o,i=false){return p(this,void 0,void 0,(function*(){n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}const p=yield v.getCompressionMethod();let M="";try{const t=yield D.getCacheEntry(d,e,{compressionMethod:p,enableCrossOsArchive:i});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(o===null||o===void 0?void 0:o.lookupOnly){f.info("Lookup only - skipping download");return t.cacheKey}M=y.join(yield v.createTempDirectory(),v.getCacheFileName(p));f.debug(`Archive Path: ${M}`);yield D.downloadCache(t.archiveLocation,M,o);if(f.isDebug()){yield(0,V.listTar)(M,p)}const n=v.getArchiveFileSizeInBytes(M);f.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);yield(0,V.extractTar)(M,p);f.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to restore: ${e.message}`)}else{f.warning(`Failed to restore: ${e.message}`)}}}finally{try{yield v.unlinkFile(M)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,n,o,i=false){return p(this,void 0,void 0,(function*(){o=Object.assign(Object.assign({},o),{useAzureSdk:true});n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}let p="";try{const U=M.internalCacheTwirpClient();const j=yield v.getCompressionMethod();const K={key:t,restoreKeys:n,version:v.getCacheVersion(e,j,i)};const ee=yield U.GetCacheEntryDownloadURL(K);if(!ee.ok){f.debug(`Cache not found for version ${K.version} of keys: ${d.join(", ")}`);return undefined}const te=K.key!==ee.matchedKey;if(te){f.info(`Cache hit for restore-key: ${ee.matchedKey}`)}else{f.info(`Cache hit for: ${ee.matchedKey}`)}if(o===null||o===void 0?void 0:o.lookupOnly){f.info("Lookup only - skipping download");return ee.matchedKey}p=y.join(yield v.createTempDirectory(),v.getCacheFileName(j));f.debug(`Archive path: ${p}`);f.debug(`Starting download of archive to: ${p}`);yield D.downloadCache(ee.signedDownloadUrl,p,o);const re=v.getArchiveFileSizeInBytes(p);f.info(`Cache Size: ~${Math.round(re/(1024*1024))} MB (${re} B)`);if(f.isDebug()){yield(0,V.listTar)(p,j)}yield(0,V.extractTar)(p,j);f.info("Cache restored successfully");return ee.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to restore: ${e.message}`)}else{f.warning(`Failed to restore: ${e.message}`)}}}finally{try{if(p){yield v.unlinkFile(p)}}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function saveCache(e,t,n,o=false){return p(this,void 0,void 0,(function*(){const i=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${i}`);checkPaths(e);checkKey(t);switch(i){case"v2":return yield saveCacheV2(e,t,n,o);case"v1":default:return yield saveCacheV1(e,t,n,o)}}))}t.saveCache=saveCache;function saveCacheV1(e,t,n,o=false){var i,d,M,j,ee;return p(this,void 0,void 0,(function*(){const p=yield v.getCompressionMethod();let te=-1;const re=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(re)}`);if(re.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const ne=yield v.createTempDirectory();const oe=y.join(ne,v.getCacheFileName(p));f.debug(`Archive Path: ${oe}`);try{yield(0,V.createTar)(ne,re,p);if(f.isDebug()){yield(0,V.listTar)(oe,p)}const y=10*1024*1024*1024;const K=v.getArchiveFileSizeInBytes(oe);f.debug(`File Size: ${K}`);if(K>y&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(K/(1024*1024))} MB (${K} B) is over the 10GB limit, not saving cache.`)}f.debug("Reserving Cache");const ie=yield D.reserveCache(t,e,{compressionMethod:p,enableCrossOsArchive:o,cacheSize:K});if((i=ie===null||ie===void 0?void 0:ie.result)===null||i===void 0?void 0:i.cacheId){te=(d=ie===null||ie===void 0?void 0:ie.result)===null||d===void 0?void 0:d.cacheId}else if((ie===null||ie===void 0?void 0:ie.statusCode)===400){throw new Error((j=(M=ie===null||ie===void 0?void 0:ie.error)===null||M===void 0?void 0:M.message)!==null&&j!==void 0?j:`Cache size of ~${Math.round(K/(1024*1024))} MB (${K} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(ee=ie===null||ie===void 0?void 0:ie.error)===null||ee===void 0?void 0:ee.message}`)}f.debug(`Saving Cache (ID: ${te})`);yield D.saveCache(te,oe,"",n)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}}finally{try{yield v.unlinkFile(oe)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return te}))}function saveCacheV2(e,t,n,o=false){return p(this,void 0,void 0,(function*(){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const i=yield v.getCompressionMethod();const d=M.internalCacheTwirpClient();let p=-1;const ee=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(ee)}`);if(ee.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const te=yield v.createTempDirectory();const re=y.join(te,v.getCacheFileName(i));f.debug(`Archive Path: ${re}`);try{yield(0,V.createTar)(te,ee,i);if(f.isDebug()){yield(0,V.listTar)(re,i)}const y=v.getArchiveFileSizeInBytes(re);f.debug(`File Size: ${y}`);if(y>j.CacheFileSizeLimit&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`)}n.archiveSizeBytes=y;f.debug("Reserving Cache");const M=v.getCacheVersion(e,i,o);const K={key:t,version:M};let ne;try{const e=yield d.CreateCacheEntry(K);if(!e.ok){throw new Error("Response was not ok")}ne=e.signedUploadUrl}catch(e){f.debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}f.debug(`Attempting to upload cache located at: ${re}`);yield D.saveCache(p,re,ne,n);const oe={key:t,version:M,sizeBytes:`${y}`};const ie=yield d.FinalizeCacheEntryUpload(oe);f.debug(`FinalizeCacheEntryUploadResponse: ${ie.ok}`);if(!ie.ok){throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}p=parseInt(ie.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}}finally{try{yield v.unlinkFile(re)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return p}))}},93156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheService=t.GetCacheEntryDownloadURLResponse=t.GetCacheEntryDownloadURLRequest=t.FinalizeCacheEntryUploadResponse=t.FinalizeCacheEntryUploadRequest=t.CreateCacheEntryResponse=t.CreateCacheEntryRequest=void 0;const o=n(44420);const i=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(68886);const v=n(89444);class CreateCacheEntryRequest$Type extends y.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>v.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheServiceClientProtobuf=t.CacheServiceClientJSON=void 0;const o=n(93156);class CacheServiceClientJSON{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=o.CreateCacheEntryRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",t);return n.then((e=>o.CreateCacheEntryResponse.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=o.FinalizeCacheEntryUploadRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return n.then((e=>o.FinalizeCacheEntryUploadResponse.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=o.GetCacheEntryDownloadURLRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return n.then((e=>o.GetCacheEntryDownloadURLResponse.fromJson(e,{ignoreUnknownFields:true})))}}t.CacheServiceClientJSON=CacheServiceClientJSON;class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=o.CreateCacheEntryRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return n.then((e=>o.CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=o.FinalizeCacheEntryUploadRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return n.then((e=>o.FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=o.GetCacheEntryDownloadURLRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return n.then((e=>o.GetCacheEntryDownloadURLResponse.fromBinary(e)))}}t.CacheServiceClientProtobuf=CacheServiceClientProtobuf},89444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheMetadata=void 0;const o=n(68886);const i=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(29425);class CacheMetadata$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>y.CacheScope}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let d=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheScope=void 0;const o=n(68886);const i=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);class CacheScope$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let d=o!==null&&o!==void 0?o:this.create(),p=e.pos+t;while(e.posp(this,void 0,void 0,(function*(){return o.getJson(getCacheApiUrl(d))}))));if(y.statusCode===204){if(f.isDebug()){yield printCachesListForDiagnostics(e[0],o,i)}return null}if(!(0,ee.isSuccessStatusCode)(y.statusCode)){throw new Error(`Cache service responded with ${y.statusCode}`)}const v=y.result;const D=v===null||v===void 0?void 0:v.archiveLocation;if(!D){throw new Error("Cache not found.")}f.setSecret(D);f.debug(`Cache Result:`);f.debug(JSON.stringify(v));return v}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,n){return p(this,void 0,void 0,(function*(){const o=`caches?key=${encodeURIComponent(e)}`;const i=yield(0,ee.retryTypedResponse)("listCache",(()=>p(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(o))}))));if(i.statusCode===200){const t=i.result;const o=t===null||t===void 0?void 0:t.totalCount;if(o&&o>0){f.debug(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){f.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,n){return p(this,void 0,void 0,(function*(){const o=new M.URL(e);const i=(0,K.getDownloadOptions)(n);if(o.hostname.endsWith(".blob.core.windows.net")){if(i.useAzureSdk){yield(0,j.downloadCacheStorageSDK)(e,t,i)}else if(i.concurrentBlobDownloads){yield(0,j.downloadCacheHttpClientConcurrent)(e,t,i)}else{yield(0,j.downloadCacheHttpClient)(e,t)}}else{yield(0,j.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,n){return p(this,void 0,void 0,(function*(){const o=createHttpClient();const i=U.getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const d={key:e,version:i,cacheSize:n===null||n===void 0?void 0:n.cacheSize};const f=yield(0,ee.retryTypedResponse)("reserveCache",(()=>p(this,void 0,void 0,(function*(){return o.postJson(getCacheApiUrl("caches"),d)}))));return f}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,n,o,i){return p(this,void 0,void 0,(function*(){f.debug(`Uploading chunk of size ${i-o+1} bytes at offset ${o} with content range: ${getContentRange(o,i)}`);const d={"Content-Type":"application/octet-stream","Content-Range":getContentRange(o,i)};const y=yield(0,ee.retryHttpClientResponse)(`uploadChunk (start: ${o}, end: ${i})`,(()=>p(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,n(),d)}))));if(!(0,ee.isSuccessStatusCode)(y.message.statusCode)){throw new Error(`Cache service responded with ${y.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=U.getArchiveFileSizeInBytes(n);const d=getCacheApiUrl(`caches/${t.toString()}`);const y=D.openSync(n,"r");const v=(0,K.getUploadOptions)(o);const M=U.assertDefined("uploadConcurrency",v.uploadConcurrency);const V=U.assertDefined("uploadChunkSize",v.uploadChunkSize);const j=[...new Array(M).keys()];f.debug("Awaiting all uploads");let ee=0;try{yield Promise.all(j.map((()=>p(this,void 0,void 0,(function*(){while(eeD.createReadStream(n,{fd:y,start:o,end:p,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),o,p)}})))))}finally{D.closeSync(y)}return}))}function commitCache(e,t,n){return p(this,void 0,void 0,(function*(){const o={size:n};return yield(0,ee.retryTypedResponse)("commitCache",(()=>p(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),o)}))))}))}function saveCache(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=(0,K.getUploadOptions)(o);if(i.useAzureSdk){if(!n){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield(0,V.uploadCacheArchiveSDK)(n,t,o)}else{const n=createHttpClient();f.debug("Upload cache");yield uploadFile(n,e,t,o);f.debug("Commiting cache");const i=U.getArchiveFileSizeInBytes(t);f.info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);const d=yield commitCache(n,e,i);if(!(0,ee.isSuccessStatusCode)(d.statusCode)){throw new Error(`Cache service responded with ${d.statusCode} during commit cache.`)}f.info("Cache saved successfully")}}))}t.saveCache=saveCache},98299:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeToken=t.getCacheVersion=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const y=d(n(37484));const v=d(n(95236));const D=d(n(47206));const M=d(n(94994));const U=d(n(76982));const V=d(n(79896));const j=d(n(16928));const K=d(n(53272));const ee=d(n(39023));const te=n(58287);const re="1.0";function createTempDirectory(){return p(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let n;if(e){n=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){n="/Users"}else{n="/home"}}t=j.join(n,"actions","temp")}const n=j.join(t,U.randomUUID());yield M.mkdirP(n);return n}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return V.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,n,o,i;var d;return p(this,void 0,void 0,(function*(){const p=[];const v=(d=process.env["GITHUB_WORKSPACE"])!==null&&d!==void 0?d:process.cwd();const M=yield D.create(e.join("\n"),{implicitDescendants:false});try{for(var U=true,V=f(M.globGenerator()),K;K=yield V.next(),t=K.done,!t;U=true){i=K.value;U=false;const e=i;const t=j.relative(v,e).replace(new RegExp(`\\${j.sep}`,"g"),"/");y.debug(`Matched: ${t}`);if(t===""){p.push(".")}else{p.push(`${t}`)}}}catch(e){n={error:e}}finally{try{if(!U&&!t&&(o=V.return))yield o.call(V)}finally{if(n)throw n.error}}return p}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return p(this,void 0,void 0,(function*(){return ee.promisify(V.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return p(this,void 0,void 0,(function*(){let n="";t.push("--version");y.debug(`Checking ${e} ${t.join(" ")}`);try{yield v.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){y.debug(e.message)}n=n.trim();y.debug(n);return n}))}function getCompressionMethod(){return p(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=K.clean(e);y.debug(`zstd version: ${t}`);if(e===""){return te.CompressionMethod.Gzip}else{return te.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===te.CompressionMethod.Gzip?te.CacheFilename.Gzip:te.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return p(this,void 0,void 0,(function*(){if(V.existsSync(te.GnuTarPathOnWindows)){return te.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?M.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function getCacheVersion(e,t,n=false){const o=e.slice();if(t){o.push(t)}if(process.platform==="win32"&&!n){o.push("windows-only")}o.push(re);return U.createHash("sha256").update(o.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken},17606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCacheServiceURL=t.getCacheServiceVersion=t.isGhes=void 0;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const o=t.endsWith(".GHE.COM");const i=t.endsWith(".LOCALHOST");return!n&&!o&&!i}t.isGhes=isGhes;function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}t.getCacheServiceVersion=getCacheServiceVersion;function getCacheServiceURL(){const e=getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}t.getCacheServiceURL=getCacheServiceURL},58287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheFileSizeLimit=t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var n;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(n||(t.CacheFilename=n={}));var o;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(o||(t.CompressionMethod=o={}));var i;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(i||(t.ArchiveToolType=i={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt";t.CacheFileSizeLimit=10*Math.pow(1024,3)},75067:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClientConcurrent=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const f=d(n(37484));const y=n(54844);const v=n(71400);const D=d(n(20181));const M=d(n(79896));const U=d(n(2203));const V=d(n(39023));const j=d(n(98299));const K=n(58287);const ee=n(32846);const te=n(68110);function pipeResponseToStream(e,t){return p(this,void 0,void 0,(function*(){const n=V.promisify(U.pipeline);yield n(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;f.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Received ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return p(this,void 0,void 0,(function*(){const n=M.createWriteStream(t);const o=new y.HttpClient("actions/cache");const i=yield(0,ee.retryHttpClientResponse)("downloadCache",(()=>p(this,void 0,void 0,(function*(){return o.get(e)}))));i.message.socket.setTimeout(K.SocketTimeout,(()=>{i.message.destroy();f.debug(`Aborting download, socket timed out after ${K.SocketTimeout} ms`)}));yield pipeResponseToStream(i,n);const d=i.message.headers["content-length"];if(d){const e=parseInt(d);const n=j.getArchiveFileSizeInBytes(t);if(n!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}}else{f.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(e,t,n){var o;return p(this,void 0,void 0,(function*(){const i=yield M.promises.open(t,"w");const d=new y.HttpClient("actions/cache",undefined,{socketTimeout:n.timeoutInMs,keepAlive:true});try{const t=yield(0,ee.retryHttpClientResponse)("downloadCacheMetadata",(()=>p(this,void 0,void 0,(function*(){return yield d.request("HEAD",e,null,{})}))));const f=t.message.headers["content-length"];if(f===undefined||f===null){throw new Error("Content-Length not found on blob response")}const y=parseInt(f);if(Number.isNaN(y)){throw new Error(`Could not interpret Content-Length: ${y}`)}const v=[];const D=4*1024*1024;for(let t=0;tp(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(d,e,t,n)}))})}v.reverse();let M=0;let U=0;const V=new DownloadProgress(y);V.startDisplayTimer();const j=V.onProgress();const K=[];let te;const waitAndWrite=()=>p(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(K));yield i.write(e.buffer,0,e.count,e.offset);M--;delete K[e.offset];U+=e.count;j({loadedBytes:U})}));while(te=v.pop()){K[te.offset]=te.promiseGetter();M++;if(M>=((o=n.downloadConcurrency)!==null&&o!==void 0?o:10)){yield waitAndWrite()}}while(M>0){yield waitAndWrite()}}finally{d.dispose();yield i.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=5;let d=0;while(true){try{const i=3e4;const d=yield promiseWithTimeout(i,downloadSegment(e,t,n,o));if(typeof d==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return d}catch(e){if(d>=i){throw e}d++}}}))}function downloadSegment(e,t,n,o){return p(this,void 0,void 0,(function*(){const i=yield(0,ee.retryHttpClientResponse)("downloadCachePart",(()=>p(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${n}-${n+o-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:n,count:o,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,n){var o;return p(this,void 0,void 0,(function*(){const i=new v.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}});const d=yield i.getProperties();const p=(o=d.contentLength)!==null&&o!==void 0?o:-1;if(p<0){f.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,D.constants.MAX_LENGTH);const o=new DownloadProgress(p);const d=M.openSync(t,"w");try{o.startDisplayTimer();const t=new te.AbortController;const f=t.signal;while(!o.isDone()){const y=o.segmentOffset+o.segmentSize;const v=Math.min(e,p-y);o.nextSegment(v);const D=yield promiseWithTimeout(n.segmentTimeoutInMs||36e5,i.downloadToBuffer(y,v,{abortSignal:f,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(D==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(D)){M.writeFileSync(d,D)}}}finally{o.stopDisplayTimer();M.closeSync(d)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>p(void 0,void 0,void 0,(function*(){let n;const o=new Promise((t=>{n=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,o]).then((e=>{clearTimeout(n);return e}))}))},32846:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const f=d(n(37484));const y=n(54844);const v=n(58287);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[y.HttpCodes.BadGateway,y.HttpCodes.ServiceUnavailable,y.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return p(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,n,o=v.DefaultRetryAttempts,i=v.DefaultRetryDelay,d=undefined){return p(this,void 0,void 0,(function*(){let p="";let y=1;while(y<=o){let v=undefined;let D=undefined;let M=false;try{v=yield t()}catch(e){if(d){v=d(e)}M=true;p=e.message}if(v){D=n(v);if(!isServerErrorStatusCode(D)){return v}}if(D){M=isRetryableStatusCode(D);p=`Cache service responded with ${D}`}f.debug(`${e} - Attempt ${y} of ${o} failed with error: ${p}`);if(!M){f.debug(`${e} - Error is not retryable`);break}yield sleep(i);y++}throw Error(`${e} failed: ${p}`)}))}t.retry=retry;function retryTypedResponse(e,t,n=v.DefaultRetryAttempts,o=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),n,o,(e=>{if(e instanceof y.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,n=v.DefaultRetryAttempts,o=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),n,o)}))}t.retryHttpClientResponse=retryHttpClientResponse},96819:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.internalCacheTwirpClient=void 0;const i=n(37484);const d=n(41899);const p=n(50263);const f=n(17606);const y=n(98299);const v=n(44552);const D=n(54844);const M=n(11486);const U=n(27564);class CacheServiceClient{constructor(e,t,n,o){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const i=(0,y.getRuntimeToken)();this.baseUrl=(0,f.getCacheServiceURL)();if(t){this.maxAttempts=t}if(n){this.baseRetryIntervalMilliseconds=n}if(o){this.retryMultiplier=o}this.httpClient=new D.HttpClient(e,[new v.BearerCredentialHandler(i)])}request(e,t,n,d){return o(this,void 0,void 0,(function*(){const p=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,i.debug)(`[Request] ${t} ${p}`);const f={"Content-Type":n};try{const{body:e}=yield this.retryableRequest((()=>o(this,void 0,void 0,(function*(){return this.httpClient.post(p,JSON.stringify(d),f)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return o(this,void 0,void 0,(function*(){let t=0;let n="";let o="";while(t=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[D.HttpCodes.BadGateway,D.HttpCodes.GatewayTimeout,D.HttpCodes.InternalServerError,D.HttpCodes.ServiceUnavailable,D.HttpCodes.TooManyRequests];return t.includes(e)}sleep(e){return o(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient((0,d.getUserAgentString)(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new M.CacheServiceClientJSON(t)}t.internalCacheTwirpClient=internalCacheTwirpClient},50263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UsageError=t.NetworkError=t.GHESNotSupportedError=t.CacheNotFoundError=t.InvalidResponseError=t.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}t.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}t.InvalidResponseError=InvalidResponseError;class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}t.CacheNotFoundError=CacheNotFoundError;class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}t.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t);this.code=e;this.name="NetworkError"}}t.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e);this.name="UsageError"}}t.UsageError=UsageError;UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")}},41899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentString=void 0;const o=n(64012);function getUserAgentString(){return`@actions/cache-${o.version}`}t.getUserAgentString=getUserAgentString},27564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.maskSecretUrls=t.maskSigUrl=void 0;const o=n(37484);function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const n=t.searchParams.get("sig");if(n){(0,o.setSecret)(n);(0,o.setSecret)(encodeURIComponent(n))}}catch(t){(0,o.debug)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}t.maskSigUrl=maskSigUrl;function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,o.debug)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}t.maskSecretUrls=maskSecretUrls},95321:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const f=n(95236);const y=d(n(94994));const v=n(79896);const D=d(n(16928));const M=d(n(98299));const U=n(58287);const V=process.platform==="win32";function getTarPath(){return p(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield M.getGnuTarPathOnWindows();const t=U.SystemTarPathOnWindows;if(e){return{path:e,type:U.ArchiveToolType.GNU}}else if((0,v.existsSync)(t)){return{path:t,type:U.ArchiveToolType.BSD}}break}case"darwin":{const e=yield y.which("gtar",false);if(e){return{path:e,type:U.ArchiveToolType.GNU}}else{return{path:yield y.which("tar",true),type:U.ArchiveToolType.BSD}}}default:break}return{path:yield y.which("tar",true),type:U.ArchiveToolType.GNU}}))}function getTarArgs(e,t,n,o=""){return p(this,void 0,void 0,(function*(){const i=[`"${e.path}"`];const d=M.getCacheFileName(t);const p="cache.tar";const f=getWorkingDirectory();const y=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(n){case"create":i.push("--posix","-cf",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--exclude",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--files-from",U.ManifestFilename);break;case"extract":i.push("-xf",y?p:o.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"));break;case"list":i.push("-tf",y?p:o.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P");break}if(e.type===U.ArchiveToolType.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t,n=""){return p(this,void 0,void 0,(function*(){let o;const i=yield getTarPath();const d=yield getTarArgs(i,e,t,n);const p=t!=="create"?yield getDecompressionProgram(i,e,n):yield getCompressionProgram(i,e);const f=i.type===U.ArchiveToolType.BSD&&e!==U.CompressionMethod.Gzip&&V;if(f&&t!=="create"){o=[[...p].join(" "),[...d].join(" ")]}else{o=[[...d].join(" "),[...p].join(" ")]}if(f){return o}return[o.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,n){return p(this,void 0,void 0,(function*(){const o=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return o?["zstd -d --long=30 --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d --long=30"':"unzstd --long=30"];case U.CompressionMethod.ZstdWithoutLong:return o?["zstd -d --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return p(this,void 0,void 0,(function*(){const n=M.getCacheFileName(t);const o=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return o?["zstd -T0 --long=30 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0 --long=30"':"zstdmt --long=30"];case U.CompressionMethod.ZstdWithoutLong:return o?["zstd -T0 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return p(this,void 0,void 0,(function*(){for(const n of e){try{yield(0,f.exec)(n,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${n.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return p(this,void 0,void 0,(function*(){const n=yield getCommands(t,"list",e);yield execCommands(n)}))}t.listTar=listTar;function extractTar(e,t){return p(this,void 0,void 0,(function*(){const n=getWorkingDirectory();yield y.mkdirP(n);const o=yield getCommands(t,"extract",e);yield execCommands(o)}))}t.extractTar=extractTar;function createTar(e,t,n){return p(this,void 0,void 0,(function*(){(0,v.writeFileSync)(D.join(e,U.ManifestFilename),t.join("\n"));const o=yield getCommands(n,"create");yield execCommands(o,e)}))}t.createTar=createTar},35268:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.uploadCacheArchiveSDK=t.UploadProgress=void 0;const f=d(n(37484));const y=n(71400);const v=n(50263);class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Sent ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.UploadProgress=UploadProgress;function uploadCacheArchiveSDK(e,t,n){var o;return p(this,void 0,void 0,(function*(){const i=new y.BlobClient(e);const d=i.getBlockBlobClient();const p=new UploadProgress((o=n===null||n===void 0?void 0:n.archiveSizeBytes)!==null&&o!==void 0?o:0);const D={blockSize:n===null||n===void 0?void 0:n.uploadChunkSize,concurrency:n===null||n===void 0?void 0:n.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:p.onProgress()};try{p.startDisplayTimer();f.debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);const e=yield d.uploadFile(t,D);if(e._response.status>=400){throw new v.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){f.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{p.stopDisplayTimer()}}))}t.uploadCacheArchiveSDK=uploadCacheArchiveSDK},98356:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const p=d(n(37484));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Upload concurrency: ${t.uploadConcurrency}`);p.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const n=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(n&&!isNaN(Number(n))&&isFinite(Number(n))){t.segmentTimeoutInMs=Number(n)*60*1e3}p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Download concurrency: ${t.downloadConcurrency}`);p.debug(`Request timeout (ms): ${t.timeoutInMs}`);p.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);p.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);p.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},53272:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var o=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var d=16;var p=o-6;var f=t.re=[];var y=t.safeRe=[];var v=t.src=[];var D=t.tokens={};var M=0;function tok(e){D[e]=M++}var U="[a-zA-Z0-9-]";var V=[["\\s",1],["\\d",o],[U,p]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");v[D.XRANGEIDENTIFIERLOOSE]=v[D.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");v[D.XRANGEIDENTIFIER]=v[D.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");v[D.XRANGEPLAIN]="[v=\\s]*("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:"+v[D.PRERELEASE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");v[D.XRANGEPLAINLOOSE]="[v=\\s]*("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+v[D.PRERELEASELOOSE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGE");v[D.XRANGE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAIN]+"$";tok("XRANGELOOSE");v[D.XRANGELOOSE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAINLOOSE]+"$";tok("COERCE");v[D.COERCE]="(^|[^\\d])"+"(\\d{1,"+d+"})"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");f[D.COERCERTL]=new RegExp(v[D.COERCE],"g");y[D.COERCERTL]=new RegExp(makeSafeRe(v[D.COERCE]),"g");tok("LONETILDE");v[D.LONETILDE]="(?:~>?)";tok("TILDETRIM");v[D.TILDETRIM]="(\\s*)"+v[D.LONETILDE]+"\\s+";f[D.TILDETRIM]=new RegExp(v[D.TILDETRIM],"g");y[D.TILDETRIM]=new RegExp(makeSafeRe(v[D.TILDETRIM]),"g");var j="$1~";tok("TILDE");v[D.TILDE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAIN]+"$";tok("TILDELOOSE");v[D.TILDELOOSE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAINLOOSE]+"$";tok("LONECARET");v[D.LONECARET]="(?:\\^)";tok("CARETTRIM");v[D.CARETTRIM]="(\\s*)"+v[D.LONECARET]+"\\s+";f[D.CARETTRIM]=new RegExp(v[D.CARETTRIM],"g");y[D.CARETTRIM]=new RegExp(makeSafeRe(v[D.CARETTRIM]),"g");var K="$1^";tok("CARET");v[D.CARET]="^"+v[D.LONECARET]+v[D.XRANGEPLAIN]+"$";tok("CARETLOOSE");v[D.CARETLOOSE]="^"+v[D.LONECARET]+v[D.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");v[D.COMPARATORLOOSE]="^"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");v[D.COMPARATOR]="^"+v[D.GTLT]+"\\s*("+v[D.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");v[D.COMPARATORTRIM]="(\\s*)"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+"|"+v[D.XRANGEPLAIN]+")";f[D.COMPARATORTRIM]=new RegExp(v[D.COMPARATORTRIM],"g");y[D.COMPARATORTRIM]=new RegExp(makeSafeRe(v[D.COMPARATORTRIM]),"g");var ee="$1$2$3";tok("HYPHENRANGE");v[D.HYPHENRANGE]="^\\s*("+v[D.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");v[D.HYPHENRANGELOOSE]="^\\s*("+v[D.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");v[D.STAR]="(<|>)?=?\\s*\\*";for(var te=0;teo){return null}var n=t.loose?y[D.LOOSE]:y[D.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>o){throw new TypeError("version is longer than "+o+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var d=e.trim().match(t.loose?y[D.LOOSE]:y[D.FULL]);if(!d){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+d[1];this.minor=+d[2];this.patch=+d[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!d[4]){this.prerelease=[]}else{this.prerelease=d[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,o){if(typeof n==="string"){o=n;n=undefined}try{return new SemVer(e,n).inc(t,o).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var o=parse(t);var i="";if(n.prerelease.length||o.prerelease.length){i="pre";var d="prerelease"}for(var p in n){if(p==="major"||p==="minor"||p==="patch"){if(n[p]!==o[p]){return i+p}}}return d}}t.compareIdentifiers=compareIdentifiers;var re=/^[0-9]+$/;function compareIdentifiers(e,t){var n=re.test(e);var o=re.test(t);if(n&&o){e=+e;t=+t}return e===t?0:n&&!o?-1:o&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,o){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,o);case"!=":return neq(e,n,o);case">":return gt(e,n,o);case">=":return gte(e,n,o);case"<":return lt(e,n,o);case"<=":return lte(e,n,o);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ne){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var ne={};Comparator.prototype.parse=function(e){var t=this.options.loose?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=ne}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===ne||e===ne){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var o=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var d=this.semver.version===e.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var y=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return o||i||d&&p||f||y};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var o=t?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];e=e.replace(o,hyphenReplace);n("hyphen replace",e);e=e.replace(y[D.COMPARATORTRIM],ee);n("comparator trim",e,y[D.COMPARATORTRIM]);e=e.replace(y[D.TILDETRIM],j);e=e.replace(y[D.CARETTRIM],K);e=e.split(/\s+/).join(" ");var i=t?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var d=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){d=d.filter((function(e){return!!e.match(i)}))}d=d.map((function(e){return new Comparator(e,this.options)}),this);return d};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var o=e.slice();var i=o.pop();while(n&&o.length){n=o.every((function(e){return i.intersects(e,t)}));i=o.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var o=t.loose?y[D.TILDELOOSE]:y[D.TILDE];return e.replace(o,(function(t,o,i,d,p){n("tilde",e,t,o,i,d,p);var f;if(isX(o)){f=""}else if(isX(i)){f=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(isX(d)){f=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"}else if(p){n("replaceTilde pr",p);f=">="+o+"."+i+"."+d+"-"+p+" <"+o+"."+(+i+1)+".0"}else{f=">="+o+"."+i+"."+d+" <"+o+"."+(+i+1)+".0"}n("tilde return",f);return f}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var o=t.loose?y[D.CARETLOOSE]:y[D.CARET];return e.replace(o,(function(t,o,i,d,p){n("caret",e,t,o,i,d,p);var f;if(isX(o)){f=""}else if(isX(i)){f=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(isX(d)){if(o==="0"){f=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"}else{f=">="+o+"."+i+".0 <"+(+o+1)+".0.0"}}else if(p){n("replaceCaret pr",p);if(o==="0"){if(i==="0"){f=">="+o+"."+i+"."+d+"-"+p+" <"+o+"."+i+"."+(+d+1)}else{f=">="+o+"."+i+"."+d+"-"+p+" <"+o+"."+(+i+1)+".0"}}else{f=">="+o+"."+i+"."+d+"-"+p+" <"+(+o+1)+".0.0"}}else{n("no pr");if(o==="0"){if(i==="0"){f=">="+o+"."+i+"."+d+" <"+o+"."+i+"."+(+d+1)}else{f=">="+o+"."+i+"."+d+" <"+o+"."+(+i+1)+".0"}}else{f=">="+o+"."+i+"."+d+" <"+(+o+1)+".0.0"}}n("caret return",f);return f}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var o=t.loose?y[D.XRANGELOOSE]:y[D.XRANGE];return e.replace(o,(function(o,i,d,p,f,y){n("xRange",e,o,i,d,p,f,y);var v=isX(d);var D=v||isX(p);var M=D||isX(f);var U=M;if(i==="="&&U){i=""}y=t.includePrerelease?"-0":"";if(v){if(i===">"||i==="<"){o="<0.0.0-0"}else{o="*"}}else if(i&&U){if(D){p=0}f=0;if(i===">"){i=">=";if(D){d=+d+1;p=0;f=0}else{p=+p+1;f=0}}else if(i==="<="){i="<";if(D){d=+d+1}else{p=+p+1}}o=i+d+"."+p+"."+f+y}else if(D){o=">="+d+".0.0"+y+" <"+(+d+1)+".0.0"+y}else if(M){o=">="+d+"."+p+".0"+y+" <"+d+"."+(+p+1)+".0"+y}n("xRange return",o);return o}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(y[D.STAR],"")}function hyphenReplace(e,t,n,o,i,d,p,f,y,v,D,M,U){if(isX(n)){t=""}else if(isX(o)){t=">="+n+".0.0"}else if(isX(i)){t=">="+n+"."+o+".0"}else{t=">="+t}if(isX(y)){f=""}else if(isX(v)){f="<"+(+y+1)+".0.0"}else if(isX(D)){f="<"+y+"."+(+v+1)+".0"}else if(M){f="<="+y+"."+v+"."+D+"-"+M}else{f="<="+f}return(t+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var d=e[i].semver;if(d.major===t.major&&d.minor===t.minor&&d.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var o=null;var i=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!o||i.compare(e)===-1){o=e;i=new SemVer(o,n)}}}));return o}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var o=null;var i=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!o||i.compare(e)===1){o=e;i=new SemVer(o,n)}}}));return o}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var o=0;o":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,o){e=new SemVer(e,o);t=new Range(t,o);var i,d,p,f,y;switch(n){case">":i=gt;d=lte;p=lt;f=">";y=">=";break;case"<":i=lt;d=gte;p=gt;f="<";y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,o)){return false}for(var v=0;v=0.0.0")}M=M||e;U=U||e;if(i(e.semver,M.semver,o)){M=e}else if(p(e.semver,U.semver,o)){U=e}}));if(M.operator===f||M.operator===y){return false}if((!U.operator||U.operator===f)&&d(e,U.semver)){return false}else if(U.operator===y&&p(e,U.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(y[D.COERCE])}else{var o;while((o=y[D.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||o.index+o[0].length!==n.index+n[0].length){n=o}y[D.COERCERTL].lastIndex=o.index+o[1].length+o[2].length}y[D.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},44914:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const p=d(n(70857));const f=n(30302);function issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+p.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const y="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=y+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const o=this.properties[n];if(o){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(o)}`}}}}e+=`${y}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const f=n(44914);const y=n(24753);const v=n(30302);const D=d(n(70857));const M=d(n(16928));const U=n(35306);var V;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(V||(t.ExitCode=V={}));function exportVariable(e,t){const n=(0,v.toCommandValue)(t);process.env[e]=n;const o=process.env["GITHUB_ENV"]||"";if(o){return(0,y.issueFileCommand)("ENV",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){(0,f.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,y.issueFileCommand)("PATH",e)}else{(0,f.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${M.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const o=["false","False","FALSE"];const i=getInput(e,t);if(n.includes(i))return true;if(o.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return(0,y.issueFileCommand)("OUTPUT",(0,y.prepareKeyValueMessage)(e,t))}process.stdout.write(D.EOL);(0,f.issueCommand)("set-output",{name:e},(0,v.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,f.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=V.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,f.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,f.issueCommand)("error",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,f.issueCommand)("warning",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,f.issueCommand)("notice",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+D.EOL)}t.info=info;function startGroup(e){(0,f.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,f.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return p(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return(0,y.issueFileCommand)("STATE",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("save-state",{name:e},(0,v.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return p(this,void 0,void 0,(function*(){return yield U.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var j=n(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return j.summary}});var K=n(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return K.markdownSummary}});var ee=n(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return ee.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return ee.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return ee.toPlatformPath}});t.platform=d(n(18968))},24753:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const p=d(n(76982));const f=d(n(79896));const y=d(n(70857));const v=n(30302);function issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!f.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}f.appendFileSync(n,`${(0,v.toCommandValue)(t)}${y.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${p.randomUUID()}`;const o=(0,v.toCommandValue)(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(o.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${y.EOL}${o}${y.EOL}${n}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=n(54844);const d=n(44552);const p=n(37484);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new d.BearerCredentialHandler(OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return o(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const o=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const i=(t=o.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return o(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}(0,p.debug)(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);(0,p.setSecret)(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const p=d(n(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,p.sep)}t.toPlatformPath=toPlatformPath},18968:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const y=f(n(70857));const v=d(n(95236));const getWindowsInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>p(void 0,void 0,void 0,(function*(){var e,t,n,o;const{stdout:i}=yield v.getExecOutput("sw_vers",undefined,{silent:true});const d=(t=(e=i.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const p=(o=(n=i.match(/ProductName:\s*(.+)/))===null||n===void 0?void 0:n[1])!==null&&o!==void 0?o:"";return{name:p,version:d}}));const getLinuxInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,n]=e.trim().split("\n");return{name:t,version:n}}));t.platform=y.default.platform();t.arch=y.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return p(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},71847:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=n(70857);const d=n(79896);const{access:p,appendFile:f,writeFile:y}=d.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 o(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield p(e,d.constants.R_OK|d.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const o=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${o}>`}return`<${e}${o}>${t}`}write(e){return o(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const o=t?y:f;yield o(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return o(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(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const o=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(n,o);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:o,rowspan:i}=e;const d=t?"th":"td";const p=Object.assign(Object.assign({},o&&{colspan:o}),i&&{rowspan:i});return this.wrap(d,n,p)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:o,height:i}=n||{};const d=Object.assign(Object.assign({},o&&{width:o}),i&&{height:i});const p=this.wrap("img",null,Object.assign({src:e,alt:t},d));return this.addRaw(p).addEOL()}addHeading(e,t){const n=`h${t}`;const o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const i=this.wrap(o,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const v=new Summary;t.markdownSummary=v;t.summary=v},30302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},95236:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const f=n(13193);const y=d(n(6665));function exec(e,t,n){return p(this,void 0,void 0,(function*(){const o=y.argStringToArray(e);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=o[0];t=o.slice(1).concat(t||[]);const d=new y.ToolRunner(i,t,n);return d.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var o,i;return p(this,void 0,void 0,(function*(){let d="";let p="";const y=new f.StringDecoder("utf8");const v=new f.StringDecoder("utf8");const D=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stdout;const M=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{p+=v.write(e);if(M){M(e)}};const stdOutListener=e=>{d+=y.write(e);if(D){D(e)}};const U=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const V=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:U}));d+=y.end();p+=v.end();return{exitCode:V,stdout:d,stderr:p}}))}t.getExecOutput=getExecOutput},6665:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const f=d(n(70857));const y=d(n(24434));const v=d(n(35317));const D=d(n(16928));const M=d(n(94994));const U=d(n(75207));const V=n(53557);const j=process.platform==="win32";class ToolRunner extends y.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const o=this._getSpawnArgs(e);let i=t?"":"[command]";if(j){if(this._isCmdFile()){i+=n;for(const e of o){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of o){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(n);for(const e of o){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=n;for(const e of o){i+=` ${e}`}}return i}_processLineBuffer(e,t,n){try{let o=t+e.toString();let i=o.indexOf(f.EOL);while(i>-1){const e=o.substring(0,i);n(e);o=o.substring(i+f.EOL.length);i=o.indexOf(f.EOL)}return o}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(j){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(j){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const o of e){if(t.some((e=>e===o))){n=true;break}}if(!n){return e}let o='"';let i=true;for(let t=e.length;t>0;t--){o+=e[t-1];if(i&&e[t-1]==="\\"){o+="\\"}else if(e[t-1]==='"'){i=true;o+='"'}else{i=false}}o+='"';return o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let o=e.length;o>0;o--){t+=e[o-1];if(n&&e[o-1]==="\\"){t+="\\"}else if(e[o-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return p(this,void 0,void 0,(function*(){if(!U.isRooted(this.toolPath)&&(this.toolPath.includes("/")||j&&this.toolPath.includes("\\"))){this.toolPath=D.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield M.which(this.toolPath,true);return new Promise(((e,t)=>p(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+f.EOL)}const o=new ExecState(n,this.toolPath);o.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield U.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const d=v.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let p="";if(d.stdout){d.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let y="";if(d.stderr){d.stderr.on("data",(e=>{o.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}y=this._processLineBuffer(e,y,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}d.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));d.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));d.on("close",(e=>{o.processExitCode=e;o.processExited=true;o.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);o.CheckComplete()}));o.on("done",((n,o)=>{if(p.length>0){this.emit("stdline",p)}if(y.length>0){this.emit("errline",y)}d.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let o=false;let i="";function append(e){if(o&&e!=='"'){i+="\\"}i+=e;o=false}for(let d=0;d0){t.push(i);i=""}continue}append(p)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends y.EventEmitter{constructor(e,t){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(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=V.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=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){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=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",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},47206:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const i=n(10103);function create(e,t){return o(this,void 0,void 0,(function*(){return yield i.DefaultGlobber.create(e,t)}))}t.create=create},18164:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const p=d(n(37484));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;p.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;p.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;p.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},10103:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};var y=this&&this.__await||function(e){return this instanceof y?(this.v=e,this):new y(e)};var v=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,d=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(e){if(o[e])i[e]=function(t){return new Promise((function(n,o){d.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof y?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const D=d(n(37484));const M=d(n(79896));const U=d(n(18164));const V=d(n(16928));const j=d(n(98891));const K=n(62644);const ee=n(25370);const te=n(79890);const re=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=U.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return p(this,void 0,void 0,(function*(){const n=[];try{for(var o=f(this.globGenerator()),i;i=yield o.next(),!i.done;){const e=i.value;n.push(e)}}catch(t){e={error:t}}finally{try{if(i&&!i.done&&(t=o.return))yield t.call(o)}finally{if(e)throw e.error}}return n}))}globGenerator(){return v(this,arguments,(function*globGenerator_1(){const e=U.getOptions(this.options);const t=[];for(const n of this.patterns){t.push(n);if(e.implicitDescendants&&(n.trailingSeparator||n.segments[n.segments.length-1]!=="**")){t.push(new ee.Pattern(n.negate,true,n.segments.concat("**")))}}const n=[];for(const e of j.getSearchPaths(t)){D.debug(`Search path '${e}'`);try{yield y(M.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}n.unshift(new te.SearchState(e,1))}const o=[];while(n.length){const i=n.pop();const d=j.match(t,i.path);const p=!!d||j.partialMatch(t,i.path);if(!d&&!p){continue}const f=yield y(DefaultGlobber.stat(i,e,o));if(!f){continue}if(f.isDirectory()){if(d&K.MatchKind.Directory){yield yield y(i.path)}else if(!p){continue}const e=i.level+1;const t=(yield y(M.promises.readdir(i.path))).map((t=>new te.SearchState(V.join(i.path,t),e)));n.push(...t.reverse())}else if(d&K.MatchKind.File){yield yield y(i.path)}}}))}static create(e,t){return p(this,void 0,void 0,(function*(){const n=new DefaultGlobber(t);if(re){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const o=e.split("\n").map((e=>e.trim()));for(const e of o){if(!e||e.startsWith("#")){continue}else{n.patterns.push(new ee.Pattern(e))}}n.searchPaths.push(...j.getSearchPaths(n.patterns));return n}))}static stat(e,t,n){return p(this,void 0,void 0,(function*(){let o;if(t.followSymbolicLinks){try{o=yield M.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){D.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}}else{o=yield M.promises.lstat(e.path)}if(o.isDirectory()&&t.followSymbolicLinks){const t=yield M.promises.realpath(e.path);while(n.length>=e.level){n.pop()}if(n.some((e=>e===t))){D.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}n.push(t)}return o}))}}t.DefaultGlobber=DefaultGlobber},62644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var n;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(n=t.MatchKind||(t.MatchKind={}))},84138:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const f=d(n(16928));const y=p(n(42613));const v=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(v&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=f.dirname(e);if(v&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){y.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);y.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(v){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}y.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||v&&e.endsWith("\\")){}else{e+=f.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){y.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){y.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(v){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(f.sep)){return e}if(e===f.sep){return e}if(v&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},76617:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const f=d(n(16928));const y=d(n(84138));const v=p(n(42613));const D=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){v.default(e,`Parameter 'itemPath' must not be empty`);e=y.safeTrimTrailingSeparator(e);if(!y.hasRoot(e)){this.segments=e.split(f.sep)}else{let t=e;let n=y.dirname(t);while(n!==t){const e=f.basename(t);this.segments.unshift(e);t=n;n=y.dirname(t)}this.segments.unshift(t)}}else{v.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const n of e){const e=y?n.searchPath.toUpperCase():n.searchPath;t[e]="candidate"}const n=[];for(const o of e){const e=y?o.searchPath.toUpperCase():o.searchPath;if(t[e]==="included"){continue}let i=false;let d=e;let f=p.dirname(d);while(f!==d){if(t[f]){i=true;break}d=f;f=p.dirname(d)}if(!i){n.push(o.searchPath);t[e]="included"}}return n}t.getSearchPaths=getSearchPaths;function match(e,t){let n=f.MatchKind.None;for(const o of e){if(o.negate){n&=~o.match(t)}else{n|=o.match(t)}}return n}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},25370:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const f=d(n(70857));const y=d(n(16928));const v=d(n(84138));const D=p(n(42613));const M=n(43772);const U=n(62644);const V=n(76617);const j=process.platform==="win32";class Pattern{constructor(e,t=false,n,o){this.negate=false;let i;if(typeof e==="string"){i=e.trim()}else{n=n||[];D.default(n.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(n[0]);D.default(t&&v.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);i=new V.Path(n).toString().trim();if(e){i=`!${i}`}}while(i.startsWith("!")){this.negate=!this.negate;i=i.substr(1).trim()}i=Pattern.fixupPattern(i,o);this.segments=new V.Path(i).segments;this.trailingSeparator=v.normalizeSeparators(i).endsWith(y.sep);i=v.safeTrimTrailingSeparator(i);let d=false;const p=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!d&&!(d=e==="")));this.searchPath=new V.Path(p).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(p[0]),j?"i":"");this.isImplicitPattern=t;const f={dot:true,nobrace:true,nocase:j,nocomment:true,noext:true,nonegate:true};i=j?i.replace(/\\/g,"/"):i;this.minimatch=new M.Minimatch(i,f)}match(e){if(this.segments[this.segments.length-1]==="**"){e=v.normalizeSeparators(e);if(!e.endsWith(y.sep)&&this.isImplicitPattern===false){e=`${e}${y.sep}`}}else{e=v.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?U.MatchKind.Directory:U.MatchKind.All}return U.MatchKind.None}partialMatch(e){e=v.safeTrimTrailingSeparator(e);if(v.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(j?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(j?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){D.default(e,"pattern cannot be empty");const n=new V.Path(e).segments.map((e=>Pattern.getLiteral(e)));D.default(n.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);D.default(!v.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=v.normalizeSeparators(e);if(e==="."||e.startsWith(`.${y.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${y.sep}`)){t=t||f.homedir();D.default(t,"Unable to determine HOME directory");D.default(v.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(j&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=v.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(j&&(e==="\\"||e.match(/^\\[^\\]/))){let t=v.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=v.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return v.normalizeSeparators(e)}static getLiteral(e){let t="";for(let n=0;n=0){if(o.length>1){return""}if(o){t+=o;n=i;continue}}}t+=o}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},79890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},44552:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const f=d(n(58611));const y=d(n(65692));const v=d(n(54988));const D=d(n(20770));const M=n(46752);var U;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(U||(t.HttpCodes=U={}));var V;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(V||(t.Headers=V={}));var j;(function(e){e["ApplicationJson"]="application/json"})(j||(t.MediaTypes=j={}));function getProxyUrl(e){const t=v.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const K=[U.MovedPermanently,U.ResourceMoved,U.SeeOther,U.TemporaryRedirect,U.PermanentRedirect];const ee=[U.BadGateway,U.ServiceUnavailable,U.GatewayTimeout];const te=["OPTIONS","GET","DELETE","HEAD"];const re=10;const ne=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){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=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return p(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return p(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return p(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return p(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e,t={}){return p(this,void 0,void 0,(function*(){t[V.Accept]=this._getExistingOrDefaultHeader(t,V.Accept,j.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const o=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let d=this._prepareRequest(e,i,o);const p=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let f=0;let y;do{y=yield this.requestRaw(d,n);if(y&&y.message&&y.message.statusCode===U.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,d,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&K.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const p=y.message.headers["location"];if(!p){break}const f=new URL(p);if(i.protocol==="https:"&&i.protocol!==f.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 y.readBody();if(f.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}d=this._prepareRequest(e,f,o);y=yield this.requestRaw(d,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}f+=1;if(f{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let d;i.on("socket",(e=>{d=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=v.getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?y:f;const d=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):d;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){o=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||o||n}_getAgent(e){let t;const n=v.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let d=100;if(this.requestOptions){d=this.requestOptions.maxSockets||f.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:d,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const p=n.protocol==="https:";if(i){o=p?D.httpsOverHttps:D.httpsOverHttp}else{o=p?D.httpOverHttps:D.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=i?new y.Agent(e):new f.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new M.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_performExponentialBackoff(e){return p(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return p(this,void 0,void 0,(function*(){return new Promise(((n,o)=>p(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const d={statusCode:i,result:null,headers:{}};if(i===U.NotFound){n(d)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let p;let f;try{f=yield e.readBody();if(f&&f.length>0){if(t&&t.deserializeDates){p=JSON.parse(f,dateTimeDeserializer)}else{p=JSON.parse(f)}d.result=p}d.headers=e.message.headers}catch(e){}if(i>299){let e;if(p&&p.message){e=p.message}else if(f&&f.length>0){e=f}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=d.result;o(t)}else{n(d)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},54988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75207:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var f;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const y=d(n(79896));const v=d(n(16928));f=y.promises,t.chmod=f.chmod,t.copyFile=f.copyFile,t.lstat=f.lstat,t.mkdir=f.mkdir,t.open=f.open,t.readdir=f.readdir,t.readlink=f.readlink,t.rename=f.rename,t.rm=f.rm,t.rmdir=f.rmdir,t.stat=f.stat,t.symlink=f.symlink,t.unlink=f.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=y.constants.O_RDONLY;function exists(e){return p(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,n=false){return p(this,void 0,void 0,(function*(){const o=n?yield t.stat(e):yield t.lstat(e);return o.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,n){return p(this,void 0,void 0,(function*(){let o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){const t=v.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(o)){return e}}}const i=e;for(const d of n){e=i+d;o=undefined;try{o=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(o&&o.isFile()){if(t.IS_WINDOWS){try{const n=v.dirname(e);const o=v.basename(e).toUpperCase();for(const i of yield t.readdir(n)){if(o===i.toUpperCase()){e=v.join(n,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(o)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},94994:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;Object.defineProperty(e,o,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const f=n(42613);const y=d(n(16928));const v=d(n(75207));function cp(e,t,n={}){return p(this,void 0,void 0,(function*(){const{force:o,recursive:i,copySourceDirectory:d}=readCopyOptions(n);const p=(yield v.exists(t))?yield v.stat(t):null;if(p&&p.isFile()&&!o){return}const f=p&&p.isDirectory()&&d?y.join(t,y.basename(e)):t;if(!(yield v.exists(e))){throw new Error(`no such file or directory: ${e}`)}const D=yield v.stat(e);if(D.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,f,0,o)}}else{if(y.relative(e,f)===""){throw new Error(`'${f}' and '${e}' are the same file`)}yield copyFile(e,f,o)}}))}t.cp=cp;function mv(e,t,n={}){return p(this,void 0,void 0,(function*(){if(yield v.exists(t)){let o=true;if(yield v.isDirectory(t)){t=y.join(t,y.basename(e));o=yield v.exists(t)}if(o){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(y.dirname(t));yield v.rename(e,t)}))}t.mv=mv;function rmRF(e){return p(this,void 0,void 0,(function*(){if(v.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield v.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return p(this,void 0,void 0,(function*(){f.ok(e,"a path argument must be provided");yield v.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(v.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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: ${e}. 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 t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(v.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(y.delimiter)){if(e){t.push(e)}}}if(v.isRooted(e)){const n=yield v.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(y.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(y.delimiter)){if(e){n.push(e)}}}const o=[];for(const i of n){const n=yield v.tryGetExecutablePath(y.join(i,e),t);if(n){o.push(n)}}return o}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const o=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:o}}function cpDirRecursive(e,t,n,o){return p(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const i=yield v.readdir(e);for(const d of i){const i=`${e}/${d}`;const p=`${t}/${d}`;const f=yield v.lstat(i);if(f.isDirectory()){yield cpDirRecursive(i,p,n,o)}else{yield copyFile(i,p,o)}}yield v.chmod(t,(yield v.stat(e)).mode)}))}function copyFile(e,t,n){return p(this,void 0,void 0,(function*(){if((yield v.lstat(e)).isSymbolicLink()){try{yield v.lstat(t);yield v.unlink(t)}catch(e){if(e.code==="EPERM"){yield v.chmod(t,"0666");yield v.unlink(t)}}const n=yield v.readlink(e);yield v.symlink(n,t,v.IS_WINDOWS?"junction":null)}else if(!(yield v.exists(t))||n){yield v.copyFile(e,t)}}))}},68110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const o=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);o.set(this,false)}get aborted(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);o.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);const i=o.indexOf(t);if(i>-1){o.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}o.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},37889:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},71409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},36826:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},44420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var o=n(56892);Object.defineProperty(t,"ServiceType",{enumerable:true,get:function(){return o.ServiceType}});var i=n(62496);Object.defineProperty(t,"readMethodOptions",{enumerable:true,get:function(){return i.readMethodOptions}});Object.defineProperty(t,"readMethodOption",{enumerable:true,get:function(){return i.readMethodOption}});Object.defineProperty(t,"readServiceOption",{enumerable:true,get:function(){return i.readServiceOption}});var d=n(78636);Object.defineProperty(t,"RpcError",{enumerable:true,get:function(){return d.RpcError}});var p=n(28576);Object.defineProperty(t,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var f=n(72726);Object.defineProperty(t,"RpcOutputStreamController",{enumerable:true,get:function(){return f.RpcOutputStreamController}});var y=n(79122);Object.defineProperty(t,"TestTransport",{enumerable:true,get:function(){return y.TestTransport}});var v=n(71409);Object.defineProperty(t,"Deferred",{enumerable:true,get:function(){return v.Deferred}});Object.defineProperty(t,"DeferredState",{enumerable:true,get:function(){return v.DeferredState}});var D=n(36826);Object.defineProperty(t,"DuplexStreamingCall",{enumerable:true,get:function(){return D.DuplexStreamingCall}});var M=n(37889);Object.defineProperty(t,"ClientStreamingCall",{enumerable:true,get:function(){return M.ClientStreamingCall}});var U=n(46173);Object.defineProperty(t,"ServerStreamingCall",{enumerable:true,get:function(){return U.ServerStreamingCall}});var V=n(29288);Object.defineProperty(t,"UnaryCall",{enumerable:true,get:function(){return V.UnaryCall}});var j=n(52849);Object.defineProperty(t,"stackIntercept",{enumerable:true,get:function(){return j.stackIntercept}});Object.defineProperty(t,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return j.stackDuplexStreamingInterceptors}});Object.defineProperty(t,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return j.stackClientStreamingInterceptors}});Object.defineProperty(t,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return j.stackServerStreamingInterceptors}});Object.defineProperty(t,"stackUnaryInterceptors",{enumerable:true,get:function(){return j.stackUnaryInterceptors}});var K=n(43352);Object.defineProperty(t,"ServerCallContextController",{enumerable:true,get:function(){return K.ServerCallContextController}})},62496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const o=n(68886);function normalizeMethodInfo(e,t){var n,i,d;let p=e;p.service=t;p.localName=(n=p.localName)!==null&&n!==void 0?n:o.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(i=p.options)!==null&&i!==void 0?i:{};p.idempotency=(d=p.idempotency)!==null&&d!==void 0?d:undefined;return p}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,o){var i;const d=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;return d&&d[n]?o.fromJson(d[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,o){var i;const d=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return o?o.fromJson(p):p}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const o=e.options;if(!o){return undefined}const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readServiceOption=readServiceOption},78636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,o]of t){e.push(` ${n}: ${o}`)}}return e.join("\n")}}t.RpcError=RpcError},52849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const o=n(68886);function stackIntercept(e,t,n,i,d){var p,f,y,v;if(e=="unary"){let tail=(e,n,o)=>t.unary(e,n,o);for(const e of((p=i.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptUnary(t,n,o,i)}return tail(n,d,i)}if(e=="serverStreaming"){let tail=(e,n,o)=>t.serverStreaming(e,n,o);for(const e of((f=i.interceptors)!==null&&f!==void 0?f:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptServerStreaming(t,n,o,i)}return tail(n,d,i)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=i.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,o)=>e.interceptClientStreaming(t,n,o)}return tail(n,i)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((v=i.interceptors)!==null&&v!==void 0?v:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,o)=>e.interceptDuplex(t,n,o)}return tail(n,i)}o.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,o){return stackIntercept("unary",e,t,o,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,o){return stackIntercept("serverStreaming",e,t,o,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},28576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const o=n(68886);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let i of Object.keys(t)){let d=t[i];switch(i){case"jsonOptions":n.jsonOptions=o.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=o.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(d):d.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,o]of Object.entries(e)){if(o instanceof Date)n[t]=new Date(o.getTime());else if(Array.isArray(o))n[t]=o.concat();else n[t]=o}}},72726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const o=n(71409);const i=n(68886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){i.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){i.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){i.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){i.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;i.assert(e,"bad state");i.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new o.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;i.assert(n.state==o.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},43352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,o,i={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=o;this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},46173:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.responses=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},56892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const o=n(62496);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>o.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},79122:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const i=n(78636);const d=n(68886);const p=n(72726);const f=n(28576);const y=n(29288);const v=n(46173);const D=n(37889);const M=n(36826);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof i.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){d.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}d.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return o(this,void 0,void 0,(function*(){const o=[];if(this.data.response===undefined){o.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){d.assert(e.O.is(t));o.push(t)}}else if(!(this.data.response instanceof i.RpcError)){d.assert(e.O.is(this.data.response));o.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof i.RpcError){t.notifyError(this.data.response);return}for(let e of o){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof i.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof i.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return f.mergeRpcOptions({},e)}unary(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=d.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),f=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),v=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(f,v);this.lastInput={single:t};return new y.UnaryCall(e,i,t,d,p,f,v)}serverStreaming(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),f=new p.RpcOutputStreamController,y=d.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,f,n.abort))).then(delay(this.afterResponseDelay,n.abort)),D=y.then((()=>this.promiseStatus())),M=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(D,M);this.lastInput={single:t};return new v.ServerStreamingCall(e,i,t,d,f,D,M)}clientStreaming(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=i.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),f=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,t.abort);return new D.ClientStreamingCall(e,o,this.lastInput,i,d,p,f)}duplex(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=new p.RpcOutputStreamController,f=i.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,d,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=f.then((()=>this.promiseStatus())),v=f.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,v);this.lastInput=new TestInputStream(this.data,t.abort);return new M.DuplexStreamingCall(e,o,this.lastInput,i,d,y,v)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((o,d)=>{if(t===null||t===void 0?void 0:t.aborted){d(new i.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>o(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(p);d(new i.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof i.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof i.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},29288:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,o,i,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.response=i;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:o}}))}}t.UnaryCall=UnaryCall},8602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,o=-34028234663852886e22,i=4294967295,d=2147483647,p=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>d||ei||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let o=[];for(let e=0;e>4;f=p;d=2;break;case 2:n[i++]=(f&15)<<4|(p&60)>>2;f=p;d=3;break;case 3:n[i++]=(f&3)<<6|p;d=0;break}}if(d==1)throw Error(`invalid base64 string.`);return n.subarray(0,i)}t.base64decode=base64decode;function base64encode(e){let t="",o=0,i,d=0;for(let p=0;p>2];d=(i&3)<<4;o=1;break;case 1:t+=n[d|i>>4];d=(i&15)<<2;o=2;break;case 2:t+=n[d|i>>6];t+=n[i&63];o=0;break}}if(o){t+=n[d];t+="=";if(o==1)t+="="}return t}t.base64encode=base64encode},54816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,o,i,d)=>{let p=is(n)?n[e.symbol]:n[e.symbol]=[];p.push({no:o,wireType:i,data:d})};e.onWrite=(t,n,o)=>{for(let{no:t,wireType:i,data:d}of e.list(n))o.tag(t,i).raw(d)};e.list=(t,n)=>{if(is(t)){let o=t[e.symbol];return n?o.filter((e=>e.no==n)):o}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var o;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(o=t.WireType||(t.WireType={}))},92889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const o=n(54816);const i=n(61753);const d=n(93223);const p={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=d.varint64read;this.uint32=d.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case o.WireType.Varint:while(this.buf[this.pos++]&128){}break;case o.WireType.Bit64:this.pos+=4;case o.WireType.Bit32:this.pos+=4;break;case o.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case o.WireType.StartGroup:let n;while((n=this.tag()[1])!==o.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new i.PbLong(...this.varint64())}uint64(){return new i.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new i.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new i.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new i.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},23957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const o=n(61753);const i=n(93223);const d=n(8602);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){d.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){d.assertInt32(e);i.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){d.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){d.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){d.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){d.assertInt32(e);e=(e<<1^e>>31)>>>0;i.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbLong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbULong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}int64(e){let t=o.PbLong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=o.PbLong.from(e),n=t.hi>>31,d=t.lo<<1^n,p=(t.hi<<1|t.lo>>>31)^n;i.varint64write(d,p,this.buf);return this}uint64(e){let t=o.PbULong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},70257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,o]of Object.entries(e))if(typeof o=="number")t.push({name:n,number:o});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},93223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];e|=(o&127)<>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];t|=(o&127)<>>o;const d=!(i>>>7==0&&t==0);const p=(d?i|128:i)&255;n.push(p);if(!d){return}}const o=e>>>28&15|(t&7)<<4;const i=!(t>>3==0);n.push((i?o|128:o)&255);if(!i){return}for(let e=3;e<31;e=e+7){const o=t>>>e;const i=!(o>>>7==0);const d=(i?o|128:o)&255;n.push(d);if(!i){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const o=1e6;let i=0;let d=0;function add1e6digit(t,p){const f=Number(e.slice(t,p));d*=o;i=i*o+f;if(i>=n){d=d+(i/n|0);i=i%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,i,d]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let o=e&16777215;let i=(e>>>24|t<<8)>>>0&16777215;let d=t>>16&65535;let p=o+i*6777216+d*6710656;let f=i+d*8147497;let y=d*2;let v=1e7;if(p>=v){f+=Math.floor(p/v);p%=v}if(f>=v){y+=Math.floor(f/v);f%=v}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(f,y)+decimalFrom1e7(p,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},68886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var o=n(49999);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return o.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return o.isJsonObject}});var i=n(26335);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return i.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return i.base64encode}});var d=n(58950);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return d.utf8read}});var p=n(54816);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var f=n(92889);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return f.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return f.binaryReadOptions}});var y=n(23957);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var v=n(61753);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return v.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return v.PbULong}});var D=n(29367);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return D.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return D.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return D.mergeJsonOptions}});var M=n(43785);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return M.MESSAGE_TYPE}});var U=n(15106);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return U.MessageType}});var V=n(67910);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return V.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return V.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return V.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return V.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return V.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return V.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return V.readMessageOption}});var j=n(25167);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return j.ReflectionTypeCheck}});var K=n(75726);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return K.reflectionCreate}});var ee=n(19526);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(98044);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(4827);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(89611);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var oe=n(66907);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return oe.ReflectionBinaryWriter}});var ie=n(46790);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return ie.ReflectionJsonReader}});var se=n(11094);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return se.ReflectionJsonWriter}});var ae=n(59946);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var Ae=n(18063);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return Ae.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return Ae.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return Ae.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return Ae.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return Ae.getSelectedOneofValue}});var ce=n(70257);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return ce.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return ce.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return ce.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return ce.isEnumObject}});var le=n(4073);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return le.lowerCamelCase}});var ue=n(8602);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return ue.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return ue.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return ue.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return ue.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return ue.assertFloat32}})},29367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},o={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,o;let i=Object.assign(Object.assign({},e),t);i.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(o=t===null||t===void 0?void 0:t.typeRegistry)!==null&&o!==void 0?o:[]];return i}t.mergeJsonOptions=mergeJsonOptions},49999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},15106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const o=n(43785);const i=n(67910);const d=n(25167);const p=n(46790);const f=n(11094);const y=n(89611);const v=n(66907);const D=n(75726);const M=n(98044);const U=n(49999);const V=n(29367);const j=n(4827);const K=n(23957);const ee=n(92889);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[o.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(i.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new d.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new f.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new v.ReflectionBinaryWriter(this)}create(e){let t=D.reflectionCreate(this);if(e!==undefined){M.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();M.reflectionMergePartial(this,t,e);return t}equals(e,t){return j.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){M.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,V.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,V.jsonWriteOptions(t))}toJsonString(e,t){var n;let o=this.toJson(e,t);return JSON.stringify(o,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=K.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let o=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,o,t);return o}throw new Error(`Unable to parse message ${this.typeName} from JSON ${U.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create();this.refBinReader.read(e,i,n,t);return i}}t.MessageType=MessageType},18063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},61753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const o=n(93223);let i;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";i=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const d=/^-?[0-9]+$/;const p=4294967296;const f=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.UMAX)throw new Error("ulong too large");i.V.setBigUint64(0,e,true);return new PbULong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/p)}throw new Error("unknown value "+typeof e)}toString(){return i?this.toBigInt().toString():o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(ei.MAX)throw new Error("signed long too large");i.V.setBigInt64(0,e,true);return new PbLong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t){if(i>f||i==f&&n!=0)throw new Error("signed long too small")}else if(i>=f)throw new Error("signed long too large");let y=new PbLong(n,i);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/p):new PbLong(-e,-e/p).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&f)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(i)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+o.int64toString(e.lo,e.hi)}return o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},58950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],o=[],i=0,d;let p=e.length;while(t191&&d<224)o[i++]=(d&31)<<6|e[t++]&63;else if(d>239&&d<365){d=((d&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;o[i++]=55296+(d>>10);o[i++]=56320+(d&1023)}else o[i++]=(d&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(i>8191){n.push(fromCharCodes(o));i=0}}if(n.length){if(i)n.push(fromCharCodes(o.slice(0,i)));return n.join("")}return fromCharCodes(o.slice(0,i))}t.utf8read=utf8read},89611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const o=n(54816);const i=n(67910);const d=n(63402);const p=n(19526);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,d){this.prepare();const p=d===undefined?e.len:e.pos+d;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const o=n(54816);const i=n(67910);const d=n(8602);const p=n(61753);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const o of this.fields){let p,f,y=o.repeat,v=o.localName;if(o.oneof){const t=e[o.oneof];if(t.oneofKind!==v)continue;p=t[v];f=true}else{p=e[v];f=false}switch(o.kind){case"scalar":case"enum":let e=o.kind=="enum"?i.ScalarType.INT32:o.T;if(y){d.assert(Array.isArray(p));if(y==i.RepeatType.PACKED)this.packed(t,e,o.no,p);else for(const n of p)this.scalar(t,e,o.no,n,true)}else if(p===undefined)d.assert(o.opt);else this.scalar(t,e,o.no,p,f||o.opt);break;case"message":if(y){d.assert(Array.isArray(p));for(const e of p)this.message(t,n,o.T(),o.no,e)}else{this.message(t,n,o.T(),o.no,p)}break;case"map":d.assert(typeof p=="object"&&p!==null);for(const[e,i]of Object.entries(p))this.mapEntry(t,n,o,e,i);break}}let p=n.writeUnknownFields;if(p!==false)(p===true?o.UnknownFieldHandler.onWrite:p)(this.info.typeName,e,t)}mapEntry(e,t,n,p,f){e.tag(n.no,o.WireType.LengthDelimited);e.fork();let y=p;switch(n.K){case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.UINT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:y=Number.parseInt(p);break;case i.ScalarType.BOOL:d.assert(p=="true"||p=="false");y=p=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,f,true);break;case"enum":this.scalar(e,i.ScalarType.INT32,2,f,true);break;case"message":this.message(e,t,n.V.T(),2,f);break}e.join()}message(e,t,n,i,d){if(d===undefined)return;n.internalBinaryWrite(d,e.tag(i,o.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,o,i){let[d,p,f]=this.scalarInfo(t,o);if(!f||i){e.tag(n,d);e[p](o)}}packed(e,t,n,p){if(!p.length)return;d.assert(t!==i.ScalarType.BYTES&&t!==i.ScalarType.STRING);e.tag(n,o.WireType.LengthDelimited);e.fork();let[,f]=this.scalarInfo(t);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const o=n(43785);function containsMessageType(e){return e[o.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},75726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const o=n(19526);const i=n(43785);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},i.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=o.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},4827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const o=n(67910);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let d of e.fields){let e=d.localName;let p=d.oneof?t[d.oneof][e]:t[e];let f=d.oneof?n[d.oneof][e]:n[e];switch(d.kind){case"enum":case"scalar":let e=d.kind=="enum"?o.ScalarType.INT32:d.T;if(!(d.repeat?repeatedPrimitiveEq(e,p,f):primitiveEq(e,p,f)))return false;break;case"map":if(!(d.V.kind=="message"?repeatedMsgEq(d.V.T(),i(p),i(f)):repeatedPrimitiveEq(d.V.kind=="enum"?o.ScalarType.INT32:d.V.T,i(p),i(f))))return false;break;case"message":let t=d.T();if(!(d.repeat?repeatedMsgEq(t,p,f):t.equals(p,f)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const i=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==o.ScalarType.BYTES)return false;let i=t;let d=n;if(i.length!==d.length)return false;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const o=n(4073);var i;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(i=t.ScalarType||(t.ScalarType={}));var d;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(d=t.LongType||(t.LongType={}));var p;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(p=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,i,d;e.localName=(t=e.localName)!==null&&t!==void 0?t:o.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:o.lowerCamelCase(e.name);e.repeat=(i=e.repeat)!==null&&i!==void 0?i:p.NO;e.opt=(d=e.opt)!==null&&d!==void 0?d:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,o){var i;const d=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;return d&&d[n]?o.fromJson(d[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,o){var i;const d=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return o?o.fromJson(p):p}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const o=e.options;const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readMessageOption=readMessageOption},46790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const o=n(49999);const i=n(26335);const d=n(67910);const p=n(61753);const f=n(8602);const y=n(63402);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=o.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const i=[];for(const[p,f]of Object.entries(e)){const e=this.fMap[p];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const y=e.localName;let v;if(e.oneof){if(f===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(i.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(e.oneof);v=t[e.oneof]={oneofKind:y}}else{v=t}if(e.kind=="map"){if(f===null){continue}this.assert(o.isJsonObject(f),e.name,f);const t=v[y];for(const[o,i]of Object.entries(f)){this.assert(i!==null,e.name+" map value",null);let p;switch(e.V.kind){case"message":p=e.V.T().internalJsonRead(i,n);break;case"enum":p=this.enum(e.V.T(),i,e.name,n.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(i,e.V.T,e.V.L,e.name);break}this.assert(p!==undefined,e.name+" map value",i);let f=o;if(e.K==d.ScalarType.BOOL)f=f=="true"?true:f=="false"?false:f;f=this.scalar(f,e.K,d.LongType.STRING,e.name).toString();t[f]=p}}else if(e.repeat){if(f===null)continue;this.assert(Array.isArray(f),e.name,f);const t=v[y];for(const o of f){this.assert(o!==null,e.name,null);let i;switch(e.kind){case"message":i=e.T().internalJsonRead(o,n);break;case"enum":i=this.enum(e.T(),o,e.name,n.ignoreUnknownFields);if(i===false)continue;break;case"scalar":i=this.scalar(o,e.T,e.L,e.name);break}this.assert(i!==undefined,e.name,f);t.push(i)}}else{switch(e.kind){case"message":if(f===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}v[y]=e.T().internalJsonRead(f,n,v[y]);break;case"enum":if(f===null)continue;let t=this.enum(e.T(),f,e.name,n.ignoreUnknownFields);if(t===false)continue;v[y]=t;break;case"scalar":if(f===null)continue;v[y]=this.scalar(f,e.T,e.L,e.name);break}}}}enum(e,t,n,o){if(e[0]=="google.protobuf.NullValue")f.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":f.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let i=t;if(e[2]&&t.substring(0,e[2].length)===e[2])i=t.substring(e[2].length);let d=e[1][i];if(typeof d==="undefined"&&o){return false}f.assert(typeof d=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return d}f.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,o){let v;try{switch(t){case d.ScalarType.DOUBLE:case d.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){v="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){v="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let o=Number(e);if(Number.isNaN(o)){v="not a number";break}if(!Number.isFinite(o)){v="too large or small";break}if(t==d.ScalarType.FLOAT)f.assertFloat32(o);return o;case d.ScalarType.INT32:case d.ScalarType.FIXED32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:case d.ScalarType.UINT32:if(e===null)return 0;let D;if(typeof e=="number")D=e;else if(e==="")v="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)v="extra whitespace";else D=Number(e)}if(D===undefined)break;if(t==d.ScalarType.UINT32)f.assertUInt32(D);else f.assertInt32(D);return D;case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(p.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbLong.from(e),n);case d.ScalarType.FIXED64:case d.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(p.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbULong.from(e),n);case d.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case d.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){v="extra whitespace";break}try{encodeURIComponent(e)}catch(v){v="invalid UTF8";break}return e;case d.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return i.base64decode(e)}}catch(e){v=e.message}this.assert(false,o+(v?" - "+v:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},11094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const o=n(26335);const i=n(61753);const d=n(67910);const p=n(8602);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},o=e;for(const e of this.fields){if(!e.oneof){let i=this.field(e,o[e.localName],t);if(i!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=i;continue}const i=o[e.oneof];if(i.oneofKind!==e.localName)continue;const d=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let f=this.field(e,i[e.localName],d);p.assert(f!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=f}return n}field(e,t,n){let o=undefined;if(e.kind=="map"){p.assert(typeof t=="object"&&t!==null);const i={};switch(e.V.kind){case"scalar":for(const[n,o]of Object.entries(t)){const t=this.scalar(e.V.T,o,e.name,false,true);p.assert(t!==undefined);i[n.toString()]=t}break;case"message":const o=e.V.T();for(const[d,f]of Object.entries(t)){const t=this.message(o,f,e.name,n);p.assert(t!==undefined);i[d.toString()]=t}break;case"enum":const d=e.V.T();for(const[o,f]of Object.entries(t)){p.assert(f===undefined||typeof f=="number");const t=this.enum(d,f,e.name,false,true,n.enumAsInteger);p.assert(t!==undefined);i[o.toString()]=t}break}if(n.emitDefaultValues||Object.keys(i).length>0)o=i}else if(e.repeat){p.assert(Array.isArray(t));const i=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)o=i}else{switch(e.kind){case"scalar":o=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":o=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":o=this.message(e.T(),t,e.name,n);break}}return o}enum(e,t,n,o,i,d){if(e[0]=="google.protobuf.NullValue")return!i&&!o?undefined:null;if(t===undefined){p.assert(o);return undefined}if(t===0&&!i&&!o)return undefined;p.assert(typeof t=="number");p.assert(Number.isInteger(t));if(d||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,o){if(t===undefined)return o.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,o)}scalar(e,t,n,f,y){if(t===undefined){p.assert(f);return undefined}const v=y||f;switch(e){case d.ScalarType.INT32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:if(t===0)return v?0:undefined;p.assertInt32(t);return t;case d.ScalarType.FIXED32:case d.ScalarType.UINT32:if(t===0)return v?0:undefined;p.assertUInt32(t);return t;case d.ScalarType.FLOAT:p.assertFloat32(t);case d.ScalarType.DOUBLE:if(t===0)return v?0:undefined;p.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case d.ScalarType.STRING:if(t==="")return v?"":undefined;p.assert(typeof t=="string");return t;case d.ScalarType.BOOL:if(t===false)return v?false:undefined;p.assert(typeof t=="boolean");return t;case d.ScalarType.UINT64:case d.ScalarType.FIXED64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=i.PbULong.from(t);if(e.isZero()&&!v)return undefined;return e.toString();case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=i.PbLong.from(t);if(n.isZero()&&!v)return undefined;return n.toString();case d.ScalarType.BYTES:p.assert(t instanceof Uint8Array);if(!t.byteLength)return v?"":undefined;return o.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},63402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const o=n(67910);function reflectionLongConvert(e,t){switch(t){case o.LongType.BIGINT:return e.toBigInt();case o.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},98044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let o,i=n,d;for(let n of e.fields){let e=n.localName;if(n.oneof){const p=i[n.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}o=p[e];d=t[n.oneof];d.oneofKind=p.oneofKind;if(o==undefined){delete d[e];continue}}else{o=i[e];d=t;if(o==undefined){continue}}if(n.repeat)d[e].length=o.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const o=n(67910);const i=n(63402);const d=n(61753);function reflectionScalarDefault(e,t=o.LongType.STRING){switch(e){case o.ScalarType.BOOL:return false;case o.ScalarType.UINT64:case o.ScalarType.FIXED64:return i.reflectionLongConvert(d.PbULong.ZERO,t);case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:return i.reflectionLongConvert(d.PbLong.ZERO,t);case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return 0;case o.ScalarType.BYTES:return new Uint8Array(0);case o.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},25167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const o=n(67910);const i=n(18063);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let o of this.fields){if(o.oneof){if(!n.includes(o.oneof)){n.push(o.oneof);e.push(o.oneof);t.push(o.oneof)}}else{t.push(o.localName);switch(o.kind){case"scalar":case"enum":if(!o.opt||o.repeat)e.push(o.localName);break;case"message":if(o.repeat)e.push(o.localName);break;case"map":e.push(o.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let o=Object.keys(e),d=this.data;if(o.length!o.includes(e))))return false;if(!n){if(o.some((e=>!d.known.includes(e))))return false}if(t<1){return true}for(const o of d.oneofs){const d=e[o];if(!i.isOneofGroup(d))return false;if(d.oneofKind===undefined)continue;const p=this.fields.find((e=>e.localName===d.oneofKind));if(!p)return false;if(!this.field(d[d.oneofKind],p,n,t))return false}for(const o of this.fields){if(o.oneof!==undefined)continue;if(!this.field(e[o.localName],o,n,t))return false}return true}field(e,t,n,i){let d=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(d)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(d)return this.scalars(e,o.ScalarType.INT32,i);return this.scalar(e,o.ScalarType.INT32);case"message":if(e===undefined)return true;if(d)return this.messages(e,t.T(),n,i);return this.message(e,t.T(),n,i);case"map":if(typeof e!="object"||e===null)return false;if(i<2)return true;if(!this.mapKeys(e,t.K,i))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),o.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),n,i)}break}return true}message(e,t,n,o){if(n){return t.isAssignable(e,o)}return t.is(e,o)}messages(e,t,n,o){if(!Array.isArray(e))return false;if(o<2)return true;if(n){for(let n=0;nparseInt(e))),t,n);case o.ScalarType.BOOL:return this.scalars(i.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(i,t,n,o.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},15183:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const p=d(n(58611));const f=d(n(65692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?f:p).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},98894:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(n(69278));const y=d(n(58611));const v=n(65692);p(n(15183),t);const D=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[D]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return v.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const d=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((p=>{this.decrementSockets(i,d);if(p instanceof y.Agent){try{return p.addRequest(e,o)}catch(e){return n(e)}}this[D].currentSocket=p;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,d);n(e)}))}createConnection(){const e=this[D].currentSocket;this[D].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[D].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[D]){this[D].defaultPort=e}}get protocol(){return this[D].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[D]){this[D].protocol=e}}}t.Agent=Agent},59380:e=>{"use strict";e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var o=range(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var o,i,d,p,f;var y=n.indexOf(e);var v=n.indexOf(t,y+1);var D=y;if(y>=0&&v>0){if(e===t){return[y,v]}o=[];d=n.length;while(D>=0&&!f){if(D==y){o.push(D);y=n.indexOf(e,D+1)}else if(o.length==1){f=[o.pop(),v]}else{i=o.pop();if(i=0?y:v}if(o.length){f=[d,p]}}return f}},94691:(e,t,n)=>{var o=n(97087);var i=n(59380);e.exports=expandTop;var d="\0SLASH"+Math.random()+"\0";var p="\0OPEN"+Math.random()+"\0";var f="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var v="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(d).split("\\{").join(p).split("\\}").join(f).split("\\,").join(y).split("\\.").join(v)}function unescapeBraces(e){return e.split(d).join("\\").split(p).join("{").split(f).join("}").split(y).join(",").split(v).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var d=n.body;var p=n.post;var f=o.split(",");f[f.length-1]+="{"+d+"}";var y=parseCommaParts(p);if(p.length){f[f.length-1]+=y.shift();f.push.apply(f,y)}t.push.apply(t,f);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var d=i("{","}",e);if(!d||/\$$/.test(d.pre))return[e];var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body);var v=p||y;var D=d.body.indexOf(",")>=0;if(!v&&!D){if(d.post.match(/,(?!,).*\}/)){e=d.pre+"{"+d.body+f+d.post;return expand(e)}return[e]}var M;if(v){M=d.body.split(/\.\./)}else{M=parseCommaParts(d.body);if(M.length===1){M=expand(M[0],false).map(embrace);if(M.length===1){var U=d.post.length?expand(d.post,false):[""];return U.map((function(e){return d.pre+M[0]+e}))}}}var V=d.pre;var U=d.post.length?expand(d.post,false):[""];var j;if(v){var K=numeric(M[0]);var ee=numeric(M[1]);var te=Math.max(M[0].length,M[1].length);var re=M.length==3?Math.abs(numeric(M[2])):1;var ne=lte;var oe=ee0){var ce=new Array(Ae+1).join("0");if(se<0)ae="-"+ce+ae.slice(1);else ae=ce+ae}}}j.push(ae)}}else{j=o(M,(function(e){return expand(e,false)}))}for(var le=0;le{e.exports=function(e,n){var o=[];for(var i=0;i{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(40897)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(70744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}d++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[d];t=i.call(n,o);e.splice(d,1);d--}return t}));createDebug.formatArgs.call(n,e);const p=n.log||createDebug.log;p.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let n=0;let o=0;let i=-1;let d=0;while(n"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(95108)}},95108:(e,t,n)=>{const o=n(52018);const i=n(39023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(21450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const d=` ${i};1m${n} `;t[0]=d+t[0].split("\n").join("\n"+d);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;oe.trim())).join(" ")};d.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},83813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o0){V("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);V("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){V("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(this.connectOpts)}else{V("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}await(0,D.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},3669:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=d(n(69278));const y=d(n(64756));const v=p(n(42613));const D=p(n(2830));const M=n(98894);const U=n(87016);const V=n(37943);const j=(0,D.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends M.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};j("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){j("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{j("Creating `net.Socket`: %o",this.connectOpts);o=f.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const d=f.isIPv6(t.host)?`[${t.host}]`:t.host;let p=`CONNECT ${d}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${d}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){p+=`${e}: ${i[e]}\r\n`}const D=(0,V.parseProxyResponse)(o);o.write(`${p}\r\n`);const{connect:M,buffered:U}=await D;e.emit("proxyConnect",M);this.emit("proxyConnect",M,e);if(M.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){j("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const K=new f.Socket({writable:false});K.readable=true;e.once("socket",(e=>{j("Replaying proxy buffer for failed request");(0,v.default)(e.listenerCount("data")>0);e.push(U);e.push(null)}));return K}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},37943:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(2830));const d=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();d("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();d("onerror %o",e);n(e)}function ondata(p){i.push(p);o+=p.length;const f=Buffer.concat(i,o);const y=f.indexOf("\r\n\r\n");if(y===-1){d("have not received end of HTTP headers yet...");read();return}const v=f.slice(0,y).toString("ascii").split("\r\n");const D=v.shift();if(!D){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const M=D.split(" ");const U=+M[1];const V=M.slice(2).join(" ");const j={};for(const t of v){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const d=t.slice(o+1).trimStart();const p=j[i];if(typeof p==="string"){j[i]=[p,d]}else if(Array.isArray(p)){p.push(d)}else{j[i]=d}}d("got proxy server response: %o %o",D,j);cleanup();t({connect:{statusCode:U,statusText:V,headers:j},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},43772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return n(16928)}catch(e){}}()||{sep:"/"};minimatch.sep=o.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var d=n(94691);var p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var f="[^/]";var y=f+"*?";var v="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var D="(?:(?!(?:\\/|^)\\.).)*?";var M=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var U=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,o,i){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,o,i){return t(n,o,ext(e,i))};n.Minimatch=function Minimatch(n,o){return new t.Minimatch(n,ext(e,o))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,o){return t.filter(n,ext(e,o))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,o){return t.makeRe(n,ext(e,o))};n.braceExpand=function braceExpand(n,o){return t.braceExpand(n,ext(e,o))};n.match=function(n,o,i){return t.match(n,o,ext(e,i))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&o.sep!=="/"){e=e.split(o.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(U)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var o=0;if(n.nonegate)return;for(var i=0,d=e.length;iV){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var j={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return i;else e="*"}if(e==="")return"";var o="";var d=!!n.nocase;var v=false;var D=[];var U=[];var V;var K=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(V){switch(V){case"*":o+=y;d=true;break;case"?":o+=f;d=true;break;default:o+="\\"+V;break}ne.debug("clearStateChar %j %j",V,o);V=false}}for(var oe=0,ie=e.length,se;oe-1;ge--){var pe=U[ge];var me=o.slice(0,pe.reStart);var he=o.slice(pe.reStart,pe.reEnd-8);var fe=o.slice(pe.reEnd-8,pe.reEnd);var ye=o.slice(pe.reEnd);fe+=ye;var Ce=me.split("(").length-1;var Ee=ye;for(oe=0;oe=0;p--){d=e[p];if(d)break}for(p=0;p>> no match, partial?",e,M,t,U);if(M===f)return true}return false}var j;if(typeof v==="string"){j=D===v;this.debug("string match",v,D,j)}else{j=D.match(v);this.debug("pattern match",v,D,j)}if(!j)return false}if(d===f&&p===y){return true}else if(d===f){return n}else if(p===y){return d===f-1&&e[d]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},70744:e=>{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var d=i*7;var p=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var y=parseFloat(f[1]);var v=(f[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*p;case"weeks":case"week":case"w":return y*d;case"days":case"day":case"d":return y*i;case"hours":case"hour":case"hrs":case"hr":case"h":return y*o;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var d=Math.abs(e);if(d>=i){return Math.round(e/i)+"d"}if(d>=o){return Math.round(e/o)+"h"}if(d>=n){return Math.round(e/n)+"m"}if(d>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var d=Math.abs(e);if(d>=i){return plural(e,d,i,"day")}if(d>=o){return plural(e,d,o,"hour")}if(d>=n){return plural(e,d,n,"minute")}if(d>=t){return plural(e,d,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},21450:(e,t,n)=>{"use strict";const o=n(70857);const i=n(52018);const d=n(83813);const{env:p}=process;let f;if(d("no-color")||d("no-colors")||d("color=false")||d("color=never")){f=0}else if(d("color")||d("colors")||d("color=true")||d("color=always")){f=1}if("FORCE_COLOR"in p){if(p.FORCE_COLOR==="true"){f=1}else if(p.FORCE_COLOR==="false"){f=0}else{f=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(d("color=16m")||d("color=full")||d("color=truecolor")){return 3}if(d("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const n=f||0;if(p.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in p){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in p))||p.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in p){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0}if(p.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in p){const e=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(p.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)){return 1}if("COLORTERM"in p){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},61860:e=>{var t;var n;var o;var i;var d;var p;var f;var y;var v;var D;var M;var U;var V;var j;var K;var ee;var te;var re;var ne;var oe;var ie;var se;var ae;var Ae;var ce;var le;var ue;var de;var ge;var pe;var me;var he;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fe(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0;f--)if(p=e[f])d=(i<3?p(d):i>3?p(t,n,d):p(t,n))||d;return i>3&&d&&Object.defineProperty(t,n,d),d};d=function(e,t){return function(n,o){t(n,o,e)}};p=function(e,t,n,o,i,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var p=o.kind,f=p==="getter"?"get":p==="setter"?"set":"value";var y=!t&&e?o["static"]?e:e.prototype:null;var v=t||(y?Object.getOwnPropertyDescriptor(y,o.name):{});var D,M=false;for(var U=n.length-1;U>=0;U--){var V={};for(var j in o)V[j]=j==="access"?{}:o[j];for(var j in o.access)V.access[j]=o.access[j];V.addInitializer=function(e){if(M)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,n[U])(p==="accessor"?{get:v.get,set:v.set}:v[f],V);if(p==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(D=accept(K.get))v.get=D;if(D=accept(K.set))v.set=D;if(D=accept(K.init))i.unshift(D)}else if(D=accept(K)){if(p==="field")i.unshift(D);else v[f]=D}}if(y)Object.defineProperty(y,o.name,v);M=true};f=function(e,t,n){var o=arguments.length>2;for(var i=0;i0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,d=[],p;try{while((t===void 0||t-- >0)&&!(i=o.next()).done)d.push(i.value)}catch(e){p={error:e}}finally{try{if(i&&!i.done&&(n=o["return"]))n.call(o)}finally{if(p)throw p.error}}return d};ee=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)i[e]=t(i[e])}}function resume(e,t){try{step(o[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof ne?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};ie=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:ne(e[o](t)),done:false}:i?i(t):t}:i}};se=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof j==="function"?j(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};ae=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var ye=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};Ae=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),o=0;o{e.exports=n(20218)},20218:(e,t,n)=>{"use strict";var o=n(69278);var i=n(64756);var d=n(58611);var p=n(65692);var f=n(24434);var y=n(42613);var v=n(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||d.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,i){var d=toOptions(n,o,i);for(var p=0,f=t.requests.length;p=this.maxSockets){i.requests.push(d);return}i.createSocket(d,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,d)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}D("making CONNECT request");var d=n.request(i);d.useChunkedEncodingByDefault=false;d.once("response",onResponse);d.once("upgrade",onUpgrade);d.once("connect",onConnect);d.once("error",onError);d.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(i,p,f){d.removeAllListeners();p.removeAllListeners();if(i.statusCode!==200){D("tunneling socket could not be established, statusCode=%d",i.statusCode);p.destroy();var y=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}if(f.length>0){D("got illegal response body from proxy");p.destroy();var y=new Error("got illegal response body from proxy");y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(o);return}D("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=p;return t(p)}function onError(t){d.removeAllListeners();D("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var d=e.request.getHeader("host");var p=mergeOptions({},n.options,{socket:o,servername:d?d.replace(/:.*$/,""):e.host});var f=i.connect(0,p);n.sockets[n.sockets.indexOf(o)]=f;t(f)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{"use strict";const o=n(86197);const i=n(28611);const d=n(68707);const p=n(35076);const f=n(81093);const y=n(59965);const v=n(3440);const{InvalidArgumentError:D}=d;const M=n(56615);const U=n(59136);const V=n(47365);const j=n(47501);const K=n(94004);const ee=n(52429);const te=n(22720);const re=n(53573);const{getGlobalDispatcher:ne,setGlobalDispatcher:oe}=n(32581);const ie=n(78840);const se=n(48299);const ae=n(64415);let Ae;try{n(76982);Ae=true}catch{Ae=false}Object.assign(i.prototype,M);e.exports.Dispatcher=i;e.exports.Client=o;e.exports.Pool=p;e.exports.BalancedPool=f;e.exports.Agent=y;e.exports.ProxyAgent=te;e.exports.RetryHandler=re;e.exports.DecoratorHandler=ie;e.exports.RedirectHandler=se;e.exports.createRedirectInterceptor=ae;e.exports.buildConnector=U;e.exports.errors=d;function makeDispatcher(e){return(t,n,o)=>{if(typeof n==="function"){o=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new D("invalid url")}if(n!=null&&typeof n!=="object"){throw new D("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new D("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(v.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=v.parseURL(t)}const{agent:i,dispatcher:d=ne()}=n;if(i){throw new D("unsupported opts.agent. Did you mean opts.client?")}return e.call(d,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},o)}}e.exports.setGlobalDispatcher=oe;e.exports.getGlobalDispatcher=ne;if(v.nodeMajor>16||v.nodeMajor===16&&v.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=n(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=n(26349).Headers;e.exports.Response=n(48676).Response;e.exports.Request=n(25194).Request;e.exports.FormData=n(43073).FormData;e.exports.File=n(63041).File;e.exports.FileReader=n(82160).FileReader;const{setGlobalOrigin:o,getGlobalOrigin:i}=n(75628);e.exports.setGlobalOrigin=o;e.exports.getGlobalOrigin=i;const{CacheStorage:d}=n(44738);const{kConstruct:p}=n(80296);e.exports.caches=new d(p)}if(v.nodeMajor>=16){const{deleteCookie:t,getCookies:o,getSetCookies:i,setCookie:d}=n(53168);e.exports.deleteCookie=t;e.exports.getCookies=o;e.exports.getSetCookies=i;e.exports.setCookie=d;const{parseMIMEType:p,serializeAMimeType:f}=n(94322);e.exports.parseMIMEType=p;e.exports.serializeAMimeType=f}if(v.nodeMajor>=18&&Ae){const{WebSocket:t}=n(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(M.request);e.exports.stream=makeDispatcher(M.stream);e.exports.pipeline=makeDispatcher(M.pipeline);e.exports.connect=makeDispatcher(M.connect);e.exports.upgrade=makeDispatcher(M.upgrade);e.exports.MockClient=V;e.exports.MockPool=K;e.exports.MockAgent=j;e.exports.mockErrors=ee},59965:(e,t,n)=>{"use strict";const{InvalidArgumentError:o}=n(68707);const{kClients:i,kRunning:d,kClose:p,kDestroy:f,kDispatch:y,kInterceptors:v}=n(36443);const D=n(50001);const M=n(35076);const U=n(86197);const V=n(3440);const j=n(64415);const{WeakRef:K,FinalizationRegistry:ee}=n(13194)();const te=Symbol("onConnect");const re=Symbol("onDisconnect");const ne=Symbol("onConnectionError");const oe=Symbol("maxRedirections");const ie=Symbol("onDrain");const se=Symbol("factory");const ae=Symbol("finalizer");const Ae=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new U(e,t):new M(e,t)}class Agent extends D{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...d}={}){super();if(typeof e!=="function"){throw new o("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new o("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new o("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[v]=d.interceptors&&d.interceptors.Agent&&Array.isArray(d.interceptors.Agent)?d.interceptors.Agent:[j({maxRedirections:t})];this[Ae]={...V.deepClone(d),connect:n};this[Ae].interceptors=d.interceptors?{...d.interceptors}:undefined;this[oe]=t;this[se]=e;this[i]=new Map;this[ae]=new ee((e=>{const t=this[i].get(e);if(t!==undefined&&t.deref()===undefined){this[i].delete(e)}}));const p=this;this[ie]=(e,t)=>{p.emit("drain",e,[p,...t])};this[te]=(e,t)=>{p.emit("connect",e,[p,...t])};this[re]=(e,t,n)=>{p.emit("disconnect",e,[p,...t],n)};this[ne]=(e,t,n)=>{p.emit("connectionError",e,[p,...t],n)}}get[d](){let e=0;for(const t of this[i].values()){const n=t.deref();if(n){e+=n[d]}}return e}[y](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new o("opts.origin must be a non-empty string or URL.")}const d=this[i].get(n);let p=d?d.deref():null;if(!p){p=this[se](e.origin,this[Ae]).on("drain",this[ie]).on("connect",this[te]).on("disconnect",this[re]).on("connectionError",this[ne]);this[i].set(n,new K(p));this[ae].register(p,n)}return p.dispatch(e,t)}async[p](){const e=[];for(const t of this[i].values()){const n=t.deref();if(n){e.push(n.close())}}await Promise.all(e)}async[f](e){const t=[];for(const n of this[i].values()){const o=n.deref();if(o){t.push(o.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,n)=>{const{addAbortListener:o}=n(3440);const{RequestAbortedError:i}=n(68707);const d=Symbol("kListener");const p=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new i)}}function addSignal(e,t){e[p]=null;e[d]=null;if(!t){return}if(t.aborted){abort(e);return}e[p]=t;e[d]=()=>{abort(e)};o(e[p],e[d])}function removeSignal(e){if(!e[p]){return}if("removeEventListener"in e[p]){e[p].removeEventListener("abort",e[d])}else{e[p].removeListener("abort",e[d])}e[p]=null;e[d]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,n)=>{"use strict";const{AsyncResource:o}=n(90290);const{InvalidArgumentError:i,RequestAbortedError:d,SocketError:p}=n(68707);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);class ConnectHandler extends o{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid callback")}const{signal:n,opaque:o,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=o||null;this.responseHeaders=d||null;this.callback=t;this.abort=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(){throw new p("bad connect",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:d}=this;v(this);this.callback=null;let p=t;if(p!=null){p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t)}this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,socket:n,opaque:i,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=connect},76862:(e,t,n)=>{"use strict";const{Readable:o,Duplex:i,PassThrough:d}=n(2203);const{InvalidArgumentError:p,InvalidReturnValueError:f,RequestAbortedError:y}=n(68707);const v=n(3440);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);const V=n(42613);const j=Symbol("resume");class PipelineRequest extends o{constructor(){super({autoDestroy:true});this[j]=null}_read(){const{[j]:e}=this;if(e){this[j]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends o{constructor(e){super({autoDestroy:true});this[j]=e}_read(){this[j]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new y}t(e)}}class PipelineHandler extends D{constructor(e,t){if(!e||typeof e!=="object"){throw new p("invalid opts")}if(typeof t!=="function"){throw new p("invalid handler")}const{signal:n,method:o,opaque:d,onInfo:f,responseHeaders:D}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new p("invalid method")}if(f&&typeof f!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=d||null;this.responseHeaders=D||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=f||null;this.req=(new PipelineRequest).on("error",v.nop);this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,n)=>{const{req:o}=this;if(o.push(e,t)||o._readableState.destroyed){n()}else{o[j]=n}},destroy:(e,t)=>{const{body:n,req:o,res:i,ret:d,abort:p}=this;if(!e&&!d._readableState.endEmitted){e=new y}if(p&&e){p()}v.destroy(n,e);v.destroy(o,e);v.destroy(i,e);U(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;M(this,n)}onConnect(e,t){const{ret:n,res:o}=this;V(!o,"pipeline cannot be retried");if(n.destroyed){throw new y}this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:o,handler:i,context:d}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let p;try{this.handler=null;const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);p=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:o,body:this.res,context:d})}catch(e){this.res.on("error",v.nop);throw e}if(!p||typeof p.on!=="function"){throw new f("expected Readable")}p.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;v.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){v.destroy(e,new y)}}));this.body=p}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;v.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new d).destroy(e)}}e.exports=pipeline},14043:(e,t,n)=>{"use strict";const o=n(49927);const{InvalidArgumentError:i,RequestAbortedError:d}=n(68707);const p=n(3440);const{getResolveErrorBodyCallback:f}=n(87655);const{AsyncResource:y}=n(90290);const{addSignal:v,removeSignal:D}=n(80158);class RequestHandler extends y{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}const{signal:n,method:o,opaque:d,body:f,onInfo:y,responseHeaders:D,throwOnError:M,highWaterMark:U}=e;try{if(typeof t!=="function"){throw new i("invalid callback")}if(U&&(typeof U!=="number"||U<0)){throw new i("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new i("invalid method")}if(y&&typeof y!=="function"){throw new i("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(p.isStream(f)){p.destroy(f.on("error",p.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=d||null;this.callback=t;this.res=null;this.abort=null;this.body=f;this.trailers={};this.context=null;this.onInfo=y||null;this.throwOnError=M;this.highWaterMark=U;if(p.isStream(f)){f.on("error",(e=>{this.onError(e)}))}v(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(e,t,n,i){const{callback:d,opaque:y,abort:v,context:D,responseHeaders:M,highWaterMark:U}=this;const V=M==="raw"?p.parseRawHeaders(t):p.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:V})}return}const j=M==="raw"?p.parseHeaders(t):V;const K=j["content-type"];const ee=new o({resume:n,abort:v,contentType:K,highWaterMark:U});this.callback=null;this.res=ee;if(d!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(f,null,{callback:d,body:ee,contentType:K,statusCode:e,statusMessage:i,headers:V})}else{this.runInAsyncScope(d,null,null,{statusCode:e,headers:V,trailers:this.trailers,opaque:y,body:ee,context:D})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;D(this);p.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:n,body:o,opaque:i}=this;D(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(t){this.res=null;queueMicrotask((()=>{p.destroy(t,e)}))}if(o){this.body=null;p.destroy(o,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const o=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{"use strict";const{finished:o,PassThrough:i}=n(2203);const{InvalidArgumentError:d,InvalidReturnValueError:p,RequestAbortedError:f}=n(68707);const y=n(3440);const{getResolveErrorBodyCallback:v}=n(87655);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);class StreamHandler extends D{constructor(e,t,n){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:o,method:i,opaque:p,body:f,onInfo:v,responseHeaders:D,throwOnError:U}=e;try{if(typeof n!=="function"){throw new d("invalid callback")}if(typeof t!=="function"){throw new d("invalid factory")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new d("invalid method")}if(v&&typeof v!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(y.isStream(f)){y.destroy(f.on("error",y.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=p||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=f;this.onInfo=v||null;this.throwOnError=U||false;if(y.isStream(f)){f.on("error",(e=>{this.onError(e)}))}M(this,o)}onConnect(e,t){if(!this.callback){throw new f}this.abort=e;this.context=t}onHeaders(e,t,n,d){const{factory:f,opaque:D,context:M,callback:U,responseHeaders:V}=this;const j=V==="raw"?y.parseRawHeaders(t):y.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:j})}return}this.factory=null;let K;if(this.throwOnError&&e>=400){const n=V==="raw"?y.parseHeaders(t):j;const o=n["content-type"];K=new i;this.callback=null;this.runInAsyncScope(v,null,{callback:U,body:K,contentType:o,statusCode:e,statusMessage:d,headers:j})}else{if(f===null){return}K=this.runInAsyncScope(f,null,{statusCode:e,headers:j,opaque:D,context:M});if(!K||typeof K.write!=="function"||typeof K.end!=="function"||typeof K.on!=="function"){throw new p("expected Writable")}o(K,{readable:false},(e=>{const{callback:t,res:n,opaque:o,trailers:i,abort:d}=this;this.res=null;if(e||!n.readable){y.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:o,trailers:i});if(e){d()}}))}K.on("drain",n);this.res=K;const ee=K.writableNeedDrain!==undefined?K.writableNeedDrain:K._writableState&&K._writableState.needDrain;return ee!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;U(this);if(!t){return}this.trailers=y.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:o,body:i}=this;U(this);this.factory=null;if(t){this.res=null;y.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(i){this.body=null;y.destroy(i,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,o)=>{stream.call(this,e,t,((e,t)=>e?o(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const o=e&&e.opaque;queueMicrotask((()=>n(t,{opaque:o})))}}e.exports=stream},61882:(e,t,n)=>{"use strict";const{InvalidArgumentError:o,RequestAbortedError:i,SocketError:d}=n(68707);const{AsyncResource:p}=n(90290);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);const D=n(42613);class UpgradeHandler extends p{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=d||null;this.opaque=i||null;this.callback=t;this.abort=null;this.context=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new i}this.abort=e;this.context=null}onHeaders(){throw new d("bad upgrade",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:d}=this;D.strictEqual(e,101);v(this);this.callback=null;const p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);this.runInAsyncScope(o,null,null,{headers:p,socket:n,opaque:i,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=upgrade},56615:(e,t,n)=>{"use strict";e.exports.request=n(14043);e.exports.stream=n(3560);e.exports.pipeline=n(76862);e.exports.upgrade=n(61882);e.exports.connect=n(34660)},49927:(e,t,n)=>{"use strict";const o=n(42613);const{Readable:i}=n(2203);const{RequestAbortedError:d,NotSupportedError:p,InvalidArgumentError:f}=n(68707);const y=n(3440);const{ReadableStreamFrom:v,toUSVString:D}=n(3440);let M;const U=Symbol("kConsume");const V=Symbol("kReading");const j=Symbol("kBody");const K=Symbol("abort");const ee=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends i{constructor({resume:e,abort:t,contentType:n="",highWaterMark:o=64*1024}){super({autoDestroy:true,read:e,highWaterMark:o});this._readableState.dataEmitted=false;this[K]=t;this[U]=null;this[j]=null;this[ee]=n;this[V]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new d}if(e){this[K]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[V]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[V]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[U]&&e!==null&&this.readableLength===0){consumePush(this[U],e);return this[V]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new p}get bodyUsed(){return y.isDisturbed(this)}get body(){if(!this[j]){this[j]=v(this);if(this[U]){this[j].getReader();o(this[j].locked)}}return this[j]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const n=e&&e.signal;if(n){try{if(typeof n!=="object"||!("aborted"in n)){throw new f("signal must be an AbortSignal")}y.throwIfAborted(n)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,o)=>{const i=n?y.addAbortListener(n,(()=>{this.destroy()})):noop;this.on("close",(function(){i();if(n&&n.aborted){o(n.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[j]&&e[j].locked===true||e[U]}function isUnusable(e){return y.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}o(!e[U]);return new Promise(((n,o)=>{e[U]={type:t,stream:e,resolve:n,reject:o,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[U],e)})).on("close",(function(){if(this[U].body!==null){consumeFinish(this[U],new d)}}));process.nextTick(consumeStart,e[U])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const n of t.buffer){consumePush(e,n)}if(t.endEmitted){consumeEnd(this[U])}else{e.stream.on("end",(function(){consumeEnd(this[U])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:o,resolve:i,stream:d,length:p}=e;try{if(t==="text"){i(D(Buffer.concat(o)))}else if(t==="json"){i(JSON.parse(Buffer.concat(o)))}else if(t==="arrayBuffer"){const e=new Uint8Array(p);let t=0;for(const n of o){e.set(n,t);t+=n.byteLength}i(e.buffer)}else if(t==="blob"){if(!M){M=n(20181).Blob}i(new M(o,{type:d[ee]}))}consumeFinish(e)}catch(e){d.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,n)=>{const o=n(42613);const{ResponseStatusCodeError:i}=n(68707);const{toUSVString:d}=n(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:p,statusMessage:f,headers:y}){o(t);let v=[];let D=0;for await(const e of t){v.push(e);D+=e.length;if(D>128*1024){v=null;break}}if(p===204||!n||!v){process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y));return}try{if(n.startsWith("application/json")){const t=JSON.parse(d(Buffer.concat(v)));process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}if(n.startsWith("text/")){const t=d(Buffer.concat(v));process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}}catch(e){}process.nextTick(e,new i(`Response status code ${p}${f?`: ${f}`:""}`,p,y))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,n)=>{"use strict";const{BalancedPoolMissingUpstreamError:o,InvalidArgumentError:i}=n(68707);const{PoolBase:d,kClients:p,kNeedDrain:f,kAddClient:y,kRemoveClient:v,kGetDispatcher:D}=n(58640);const M=n(35076);const{kUrl:U,kInterceptors:V}=n(36443);const{parseOrigin:j}=n(3440);const K=Symbol("factory");const ee=Symbol("options");const te=Symbol("kGreatestCommonDivisor");const re=Symbol("kCurrentWeight");const ne=Symbol("kIndex");const oe=Symbol("kWeight");const ie=Symbol("kMaxWeightPerServer");const se=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new M(e,t)}class BalancedPool extends d{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[ee]=n;this[ne]=-1;this[re]=0;this[ie]=this[ee].maxWeightPerServer||100;this[se]=this[ee].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new i("factory must be a function.")}this[V]=n.interceptors&&n.interceptors.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[K]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=j(e).origin;if(this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[K](t,Object.assign({},this[ee]));this[y](n);n.on("connect",(()=>{n[oe]=Math.min(this[ie],n[oe]+this[se])}));n.on("connectionError",(()=>{n[oe]=Math.max(1,n[oe]-this[se]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[oe]=Math.max(1,n[oe]-this[se]);this._updateBalancedPoolStats()}}));for(const e of this[p]){e[oe]=this[ie]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[te]=this[p].map((e=>e[oe])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=j(e).origin;const n=this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[v](n)}return this}get upstreams(){return this[p].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[U].origin))}[D](){if(this[p].length===0){throw new o}const e=this[p].find((e=>!e[f]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[p].map((e=>e[f])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let i=this[p].findIndex((e=>!e[f]));while(n++this[p][i][oe]&&!e[f]){i=this[ne]}if(this[ne]===0){this[re]=this[re]-this[te];if(this[re]<=0){this[re]=this[ie]}}if(e[oe]>=this[re]&&!e[f]){return e}}this[re]=this[p][i][oe];this[ne]=i;return this[p][i]}}e.exports=BalancedPool},50479:(e,t,n)=>{"use strict";const{kConstruct:o}=n(80296);const{urlEquals:i,fieldValues:d}=n(23993);const{kEnumerableProperty:p,isDisturbed:f}=n(3440);const{kHeadersList:y}=n(36443);const{webidl:v}=n(74222);const{Response:D,cloneResponse:M}=n(48676);const{Request:U}=n(25194);const{kState:V,kHeaders:j,kGuard:K,kRealm:ee}=n(89710);const{fetching:te}=n(12315);const{urlIsHttpHttpsScheme:re,createDeferredPromise:ne,readAllBytes:oe}=n(15523);const ie=n(42613);const{getGlobalDispatcher:se}=n(32581);class Cache{#e;constructor(){if(arguments[0]!==o){v.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);const n=await this.matchAll(e,t);if(n.length===0){return}return n[0]}async matchAll(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const o=[];if(e===undefined){for(const e of this.#e){o.push(e[1])}}else{const e=this.#t(n,t);for(const t of e){o.push(t[1])}}const i=[];for(const e of o){const t=new D(e.body?.source??null);const n=t[V].body;t[V]=e;t[V].body=n;t[j][y]=e.headersList;t[j][K]="immutable";i.push(t)}return Object.freeze(i)}async add(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=v.converters.RequestInfo(e);const t=[e];const n=this.addAll(t);return await n}async addAll(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=v.converters["sequence"](e);const t=[];const n=[];for(const t of e){if(typeof t==="string"){continue}const e=t[V];if(!re(e.url)||e.method!=="GET"){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const o=[];for(const i of e){const e=new U(i)[V];if(!re(e.url)){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";n.push(e);const p=ne();o.push(te({request:e,dispatcher:se(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){p.reject(v.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=d(e.headersList.get("vary"));for(const e of t){if(e==="*"){p.reject(v.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of o){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){p.reject(new DOMException("aborted","AbortError"));return}p.resolve(e)}}));t.push(p.promise)}const i=Promise.all(t);const p=await i;const f=[];let y=0;for(const e of p){const t={type:"put",request:n[y],response:e};f.push(t);y++}const D=ne();let M=null;try{this.#r(f)}catch(e){M=e}queueMicrotask((()=>{if(M===null){D.resolve(undefined)}else{D.reject(M)}}));return D.promise}async put(e,t){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=v.converters.RequestInfo(e);t=v.converters.Response(t);let n=null;if(e instanceof U){n=e[V]}else{n=new U(e)[V]}if(!re(n.url)||n.method!=="GET"){throw v.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const o=t[V];if(o.status===206){throw v.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(o.headersList.contains("vary")){const e=d(o.headersList.get("vary"));for(const t of e){if(t==="*"){throw v.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(o.body&&(f(o.body.stream)||o.body.stream.locked)){throw v.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const i=M(o);const p=ne();if(o.body!=null){const e=o.body.stream;const t=e.getReader();oe(t).then(p.resolve,p.reject)}else{p.resolve(undefined)}const y=[];const D={type:"put",request:n,response:i};y.push(D);const j=await p.promise;if(i.body!=null){i.body.source=j}const K=ne();let ee=null;try{this.#r(y)}catch(e){ee=e}queueMicrotask((()=>{if(ee===null){K.resolve()}else{K.reject(ee)}}));return K.promise}async delete(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return false}}else{ie(typeof e==="string");n=new U(e)[V]}const o=[];const i={type:"delete",request:n,options:t};o.push(i);const d=ne();let p=null;let f;try{f=this.#r(o)}catch(e){p=e}queueMicrotask((()=>{if(p===null){d.resolve(!!f?.length)}else{d.reject(p)}}));return d.promise}async keys(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const o=ne();const i=[];if(e===undefined){for(const e of this.#e){i.push(e[0])}}else{const e=this.#t(n,t);for(const t of e){i.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of i){const n=new U("https://a");n[V]=t;n[j][y]=t.headersList;n[j][K]="immutable";n[ee]=t.client;e.push(n)}o.resolve(Object.freeze(e))}));return o.promise}#r(e){const t=this.#e;const n=[...t];const o=[];const i=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(n.request,n.options,o).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#t(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);ie(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const i=n.request;if(!re(i.url)){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(i.method!=="GET"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(n.request);for(const n of e){const e=t.indexOf(n);ie(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);o.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){this.#e.length=0;this.#e=n;throw e}}#t(e,t,n){const o=[];const i=n??this.#e;for(const n of i){const[i,d]=n;if(this.#n(e,i,d,t)){o.push(n)}}return o}#n(e,t,n=null,o){const p=new URL(e.url);const f=new URL(t.url);if(o?.ignoreSearch){f.search="";p.search=""}if(!i(p,f,true)){return false}if(n==null||o?.ignoreVary||!n.headersList.contains("vary")){return true}const y=d(n.headersList.get("vary"));for(const n of y){if(n==="*"){return false}const o=t.headersList.get(n);const i=e.headersList.get(n);if(o!==i){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:p,matchAll:p,add:p,addAll:p,put:p,delete:p,keys:p});const ae=[{key:"ignoreSearch",converter:v.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:v.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:v.converters.boolean,defaultValue:false}];v.converters.CacheQueryOptions=v.dictionaryConverter(ae);v.converters.MultiCacheQueryOptions=v.dictionaryConverter([...ae,{key:"cacheName",converter:v.converters.DOMString}]);v.converters.Response=v.interfaceConverter(D);v.converters["sequence"]=v.sequenceConverter(v.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,n)=>{"use strict";const{kConstruct:o}=n(80296);const{Cache:i}=n(50479);const{webidl:d}=n(74222);const{kEnumerableProperty:p}=n(3440);class CacheStorage{#o=new Map;constructor(){if(arguments[0]!==o){d.illegalConstructor()}}async match(e,t={}){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=d.converters.RequestInfo(e);t=d.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#o.has(t.cacheName)){const n=this.#o.get(t.cacheName);const d=new i(o,n);return await d.match(e,t)}}else{for(const n of this.#o.values()){const d=new i(o,n);const p=await d.match(e,t);if(p!==undefined){return p}}}}async has(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=d.converters.DOMString(e);return this.#o.has(e)}async open(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=d.converters.DOMString(e);if(this.#o.has(e)){const t=this.#o.get(e);return new i(o,t)}const t=[];this.#o.set(e,t);return new i(o,t)}async delete(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=d.converters.DOMString(e);return this.#o.delete(e)}async keys(){d.brandCheck(this,CacheStorage);const e=this.#o.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:p,has:p,open:p,delete:p,keys:p});e.exports={CacheStorage:CacheStorage}},80296:(e,t,n)=>{"use strict";e.exports={kConstruct:n(36443).kConstruct}},23993:(e,t,n)=>{"use strict";const o=n(42613);const{URLSerializer:i}=n(94322);const{isValidHeaderName:d}=n(15523);function urlEquals(e,t,n=false){const o=i(e,n);const d=i(t,n);return o===d}function fieldValues(e){o(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(!n.length){continue}else if(!d(n)){continue}t.push(n)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,n)=>{"use strict";const o=n(42613);const i=n(69278);const d=n(58611);const{pipeline:p}=n(2203);const f=n(3440);const y=n(28804);const v=n(44655);const D=n(50001);const{RequestContentLengthMismatchError:M,ResponseContentLengthMismatchError:U,InvalidArgumentError:V,RequestAbortedError:j,HeadersTimeoutError:K,HeadersOverflowError:ee,SocketError:te,InformationalError:re,BodyTimeoutError:ne,HTTPParserError:oe,ResponseExceededMaxSizeError:ie,ClientDestroyedError:se}=n(68707);const ae=n(59136);const{kUrl:Ae,kReset:ce,kServerName:le,kClient:ue,kBusy:de,kParser:ge,kConnect:pe,kBlocking:me,kResuming:he,kRunning:fe,kPending:ye,kSize:Ce,kWriting:Ee,kQueue:Be,kConnected:Ie,kConnecting:Qe,kNeedDrain:be,kNoRef:Se,kKeepAliveDefaultTimeout:Ne,kHostHeader:Re,kPendingIdx:we,kRunningIdx:ve,kError:xe,kPipelining:Pe,kSocket:De,kKeepAliveTimeoutValue:ke,kMaxHeadersSize:Te,kKeepAliveMaxTimeout:Le,kKeepAliveTimeoutThreshold:Oe,kHeadersTimeout:Me,kBodyTimeout:Fe,kStrictContentLength:Ue,kConnector:He,kMaxRedirections:_e,kMaxRequests:qe,kCounter:ze,kClose:Ve,kDestroy:Ge,kDispatch:Ye,kInterceptors:je,kLocalAddress:Je,kMaxResponseSize:We,kHTTPConnVersion:Ke,kHost:Xe,kHTTP2Session:$e,kHTTP2SessionState:Ze,kHTTP2BuildRequest:At,kHTTP2CopyHeaders:dt,kHTTP1BuildRequest:mt}=n(36443);let yt;try{yt=n(85675)}catch{yt={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ct,HTTP2_HEADER_METHOD:Et,HTTP2_HEADER_PATH:Bt,HTTP2_HEADER_SCHEME:It,HTTP2_HEADER_CONTENT_LENGTH:Qt,HTTP2_HEADER_EXPECT:bt,HTTP2_HEADER_STATUS:St}}=yt;let Nt=false;const Rt=Buffer[Symbol.species];const wt=Symbol("kClosedResolve");const vt={};try{const e=n(31637);vt.sendHeaders=e.channel("undici:client:sendHeaders");vt.beforeConnect=e.channel("undici:client:beforeConnect");vt.connectError=e.channel("undici:client:connectError");vt.connected=e.channel("undici:client:connected")}catch{vt.sendHeaders={hasSubscribers:false};vt.beforeConnect={hasSubscribers:false};vt.connectError={hasSubscribers:false};vt.connected={hasSubscribers:false}}class Client extends D{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:p,requestTimeout:y,connectTimeout:v,bodyTimeout:D,idleTimeout:M,keepAlive:U,keepAliveTimeout:j,maxKeepAliveTimeout:K,keepAliveMaxTimeout:ee,keepAliveTimeoutThreshold:te,socketPath:re,pipelining:ne,tls:oe,strictContentLength:ie,maxCachedSessions:se,maxRedirections:ce,connect:ue,maxRequestsPerClient:de,localAddress:ge,maxResponseSize:pe,autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe,allowH2:ye,maxConcurrentStreams:Ce}={}){super();if(U!==undefined){throw new V("unsupported keepAlive, use pipelining=0 instead")}if(p!==undefined){throw new V("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(y!==undefined){throw new V("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(M!==undefined){throw new V("unsupported idleTimeout, use keepAliveTimeout instead")}if(K!==undefined){throw new V("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new V("invalid maxHeaderSize")}if(re!=null&&typeof re!=="string"){throw new V("invalid socketPath")}if(v!=null&&(!Number.isFinite(v)||v<0)){throw new V("invalid connectTimeout")}if(j!=null&&(!Number.isFinite(j)||j<=0)){throw new V("invalid keepAliveTimeout")}if(ee!=null&&(!Number.isFinite(ee)||ee<=0)){throw new V("invalid keepAliveMaxTimeout")}if(te!=null&&!Number.isFinite(te)){throw new V("invalid keepAliveTimeoutThreshold")}if(o!=null&&(!Number.isInteger(o)||o<0)){throw new V("headersTimeout must be a positive integer or zero")}if(D!=null&&(!Number.isInteger(D)||D<0)){throw new V("bodyTimeout must be a positive integer or zero")}if(ue!=null&&typeof ue!=="function"&&typeof ue!=="object"){throw new V("connect must be a function or an object")}if(ce!=null&&(!Number.isInteger(ce)||ce<0)){throw new V("maxRedirections must be a positive number")}if(de!=null&&(!Number.isInteger(de)||de<0)){throw new V("maxRequestsPerClient must be a positive number")}if(ge!=null&&(typeof ge!=="string"||i.isIP(ge)===0)){throw new V("localAddress must be valid string IP address")}if(pe!=null&&(!Number.isInteger(pe)||pe<-1)){throw new V("maxResponseSize must be a positive number")}if(fe!=null&&(!Number.isInteger(fe)||fe<-1)){throw new V("autoSelectFamilyAttemptTimeout must be a positive number")}if(ye!=null&&typeof ye!=="boolean"){throw new V("allowH2 must be a valid boolean value")}if(Ce!=null&&(typeof Ce!=="number"||Ce<1)){throw new V("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof ue!=="function"){ue=ae({...oe,maxCachedSessions:se,allowH2:ye,socketPath:re,timeout:v,...f.nodeHasAutoSelectFamily&&me?{autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe}:undefined,...ue})}this[je]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[Pt({maxRedirections:ce})];this[Ae]=f.parseOrigin(e);this[He]=ue;this[De]=null;this[Pe]=ne!=null?ne:1;this[Te]=n||d.maxHeaderSize;this[Ne]=j==null?4e3:j;this[Le]=ee==null?6e5:ee;this[Oe]=te==null?1e3:te;this[ke]=this[Ne];this[le]=null;this[Je]=ge!=null?ge:null;this[he]=0;this[be]=0;this[Re]=`host: ${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}\r\n`;this[Fe]=D!=null?D:3e5;this[Me]=o!=null?o:3e5;this[Ue]=ie==null?true:ie;this[_e]=ce;this[qe]=de;this[wt]=null;this[We]=pe>-1?pe:-1;this[Ke]="h1";this[$e]=null;this[Ze]=!ye?null:{openStreams:0,maxConcurrentStreams:Ce!=null?Ce:100};this[Xe]=`${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}`;this[Be]=[];this[ve]=0;this[we]=0}get pipelining(){return this[Pe]}set pipelining(e){this[Pe]=e;resume(this,true)}get[ye](){return this[Be].length-this[we]}get[fe](){return this[we]-this[ve]}get[Ce](){return this[Be].length-this[ve]}get[Ie](){return!!this[De]&&!this[Qe]&&!this[De].destroyed}get[de](){const e=this[De];return e&&(e[ce]||e[Ee]||e[me])||this[Ce]>=(this[Pe]||1)||this[ye]>0}[pe](e){connect(this);this.once("connect",e)}[Ye](e,t){const n=e.origin||this[Ae].origin;const o=this[Ke]==="h2"?v[At](n,e,t):v[mt](n,e,t);this[Be].push(o);if(this[he]){}else if(f.bodyLength(o.body)==null&&f.isIterable(o.body)){this[he]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[he]&&this[be]!==2&&this[de]){this[be]=2}return this[be]<2}async[Ve](){return new Promise((e=>{if(!this[Ce]){e(null)}else{this[wt]=e}}))}async[Ge](e){return new Promise((t=>{const n=this[Be].splice(this[we]);for(let t=0;t{if(this[wt]){this[wt]();this[wt]=null}t()};if(this[$e]!=null){f.destroy(this[$e],e);this[$e]=null;this[Ze]=null}if(!this[De]){queueMicrotask(callback)}else{f.destroy(this[De].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[De][xe]=e;onError(this[ue],e)}function onHttp2FrameError(e,t,n){const o=new re(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(n===0){this[De][xe]=o;onError(this[ue],o)}}function onHttp2SessionEnd(){f.destroy(this,new te("other side closed"));f.destroy(this[De],new te("other side closed"))}function onHTTP2GoAway(e){const t=this[ue];const n=new re(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[De]=null;t[$e]=null;if(t.destroyed){o(this[ye]===0);const e=t[Be].splice(t[ve]);for(let t=0;t0){const e=t[Be][t[ve]];t[Be][t[ve]++]=null;errorRequest(t,e,n)}t[we]=t[ve];o(t[fe]===0);t.emit("disconnect",t[Ae],[t],n);resume(t)}const xt=n(52824);const Pt=n(64415);const Dt=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(n(53434),"base64"))}catch(o){t=await WebAssembly.compile(Buffer.from(e||n(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onStatus(new Rt(Ot.buffer,i,n))||0},wasm_on_message_begin:e=>{o.strictEqual(Lt.ptr,e);return Lt.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onHeaderField(new Rt(Ot.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onHeaderValue(new Rt(Ot.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>{o.strictEqual(Lt.ptr,e);return Lt.onHeadersComplete(t,Boolean(n),Boolean(i))||0},wasm_on_body:(e,t,n)=>{o.strictEqual(Lt.ptr,e);const i=t-Ft+Ot.byteOffset;return Lt.onBody(new Rt(Ot.buffer,i,n))||0},wasm_on_message_complete:e=>{o.strictEqual(Lt.ptr,e);return Lt.onMessageComplete()||0}}})}let kt=null;let Tt=lazyllhttp();Tt.catch();let Lt=null;let Ot=null;let Mt=0;let Ft=null;const Ut=1;const Ht=2;const _t=3;class Parser{constructor(e,t,{exports:n}){o(Number.isFinite(e[Te])&&e[Te]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(xt.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[Te];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[We]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){y.clearTimeout(this.timeout);if(e){this.timeout=y.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}o(this.ptr!=null);o(Lt==null);this.llhttp.llhttp_resume(this.ptr);o(this.timeoutType===Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Dt);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){o(this.ptr!=null);o(Lt==null);o(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>Mt){if(Ft){n.free(Ft)}Mt=Math.ceil(e.length/4096)*4096;Ft=n.malloc(Mt)}new Uint8Array(n.memory.buffer,Ft,Mt).set(e);try{let o;try{Ot=e;Lt=this;o=n.llhttp_execute(this.ptr,Ft,e.length)}catch(e){throw e}finally{Lt=null;Ot=null}const i=n.llhttp_get_error_pos(this.ptr)-Ft;if(o===xt.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(i))}else if(o===xt.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(i))}else if(o!==xt.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let d="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);d="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new oe(d,xt.ERROR[o],e.slice(i))}}catch(e){f.destroy(t,e)}}destroy(){o(this.ptr!=null);o(Lt==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;y.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[Be][t[ve]];if(!n){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10&&n.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(n.length===10&&n.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(n.length===14&&n.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){f.destroy(this.socket,new ee)}}onUpgrade(e){const{upgrade:t,client:n,socket:i,headers:d,statusCode:p}=this;o(t);const y=n[Be][n[ve]];o(y);o(!i.destroyed);o(i===n[De]);o(!this.paused);o(y.upgrade||y.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;o(this.headers.length%2===0);this.headers=[];this.headersSize=0;i.unshift(e);i[ge].destroy();i[ge]=null;i[ue]=null;i[xe]=null;i.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);n[De]=null;n[Be][n[ve]++]=null;n.emit("disconnect",n[Ae],[n],new re("upgrade"));try{y.onUpgrade(p,d,i)}catch(e){f.destroy(i,e)}resume(n)}onHeadersComplete(e,t,n){const{client:i,socket:d,headers:p,statusText:y}=this;if(d.destroyed){return-1}const v=i[Be][i[ve]];if(!v){return-1}o(!this.upgrade);o(this.statusCode<200);if(e===100){f.destroy(d,new te("bad response",f.getSocketInfo(d)));return-1}if(t&&!v.upgrade){f.destroy(d,new te("bad upgrade",f.getSocketInfo(d)));return-1}o.strictEqual(this.timeoutType,Ut);this.statusCode=e;this.shouldKeepAlive=n||v.method==="HEAD"&&!d[ce]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=v.bodyTimeout!=null?v.bodyTimeout:i[Fe];this.setTimeout(e,Ht)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(v.method==="CONNECT"){o(i[fe]===1);this.upgrade=true;return 2}if(t){o(i[fe]===1);this.upgrade=true;return 2}o(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&i[Pe]){const e=this.keepAlive?f.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-i[Oe],i[Le]);if(t<=0){d[ce]=true}else{i[ke]=t}}else{i[ke]=i[Ne]}}else{d[ce]=true}const D=v.onHeaders(e,p,this.resume,y)===false;if(v.aborted){return-1}if(v.method==="HEAD"){return 1}if(e<200){return 1}if(d[me]){d[me]=false;resume(i)}return D?xt.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:i,maxResponseSize:d}=this;if(n.destroyed){return-1}const p=t[Be][t[ve]];o(p);o.strictEqual(this.timeoutType,Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}o(i>=200);if(d>-1&&this.bytesRead+e.length>d){f.destroy(n,new ie);return-1}this.bytesRead+=e.length;if(p.onData(e)===false){return xt.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:i,headers:d,contentLength:p,bytesRead:y,shouldKeepAlive:v}=this;if(t.destroyed&&(!n||v)){return-1}if(i){return}const D=e[Be][e[ve]];o(D);o(n>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";o(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(n<200){return}if(D.method!=="HEAD"&&p&&y!==parseInt(p,10)){f.destroy(t,new U);return-1}D.onComplete(d);e[Be][e[ve]++]=null;if(t[Ee]){o.strictEqual(e[fe],0);f.destroy(t,new re("reset"));return xt.ERROR.PAUSED}else if(!v){f.destroy(t,new re("reset"));return xt.ERROR.PAUSED}else if(t[ce]&&e[fe]===0){f.destroy(t,new re("reset"));return xt.ERROR.PAUSED}else if(e[Pe]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:i}=e;if(n===Ut){if(!t[Ee]||t.writableNeedDrain||i[fe]>1){o(!e.paused,"cannot be paused while waiting for headers");f.destroy(t,new K)}}else if(n===Ht){if(!e.paused){f.destroy(t,new ne)}}else if(n===_t){o(i[fe]===0&&i[ke]);f.destroy(t,new re("socket idle timeout"))}}function onSocketReadable(){const{[ge]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[ue]:t,[ge]:n}=this;o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[Ke]!=="h2"){if(e.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}}this[xe]=e;onError(this[ue],e)}function onError(e,t){if(e[fe]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){o(e[we]===e[ve]);const n=e[Be].splice(e[ve]);for(let o=0;o0&&n.code!=="UND_ERR_INFO"){const t=e[Be][e[ve]];e[Be][e[ve]++]=null;errorRequest(e,t,n)}e[we]=e[ve];o(e[fe]===0);e.emit("disconnect",e[Ae],[e],n);resume(e)}async function connect(e){o(!e[Qe]);o(!e[De]);let{host:t,hostname:n,protocol:d,port:p}=e[Ae];if(n[0]==="["){const e=n.indexOf("]");o(e!==-1);const t=n.substring(1,e);o(i.isIP(t));n=t}e[Qe]=true;if(vt.beforeConnect.hasSubscribers){vt.beforeConnect.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He]})}try{const i=await new Promise(((o,i)=>{e[He]({host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},((e,t)=>{if(e){i(e)}else{o(t)}}))}));if(e.destroyed){f.destroy(i.on("error",(()=>{})),new se);return}e[Qe]=false;o(i);const y=i.alpnProtocol==="h2";if(y){if(!Nt){Nt=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=yt.connect(e[Ae],{createConnection:()=>i,peerMaxConcurrentStreams:e[Ze].maxConcurrentStreams});e[Ke]="h2";t[ue]=e;t[De]=i;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[$e]=t;i[$e]=t}else{if(!kt){kt=await Tt;Tt=null}i[Se]=false;i[Ee]=false;i[ce]=false;i[me]=false;i[ge]=new Parser(e,i,kt)}i[ze]=0;i[qe]=e[qe];i[ue]=e;i[xe]=null;i.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[De]=i;if(vt.connected.hasSubscribers){vt.connected.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],socket:i})}e.emit("connect",e[Ae],[e])}catch(i){if(e.destroyed){return}e[Qe]=false;if(vt.connectError.hasSubscribers){vt.connectError.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],error:i})}if(i.code==="ERR_TLS_CERT_ALTNAME_INVALID"){o(e[fe]===0);while(e[ye]>0&&e[Be][e[we]].servername===e[le]){const t=e[Be][e[we]++];errorRequest(e,t,i)}}else{onError(e,i)}e.emit("connectionError",e[Ae],[e],i)}resume(e)}function emitDrain(e){e[be]=0;e.emit("drain",e[Ae],[e])}function resume(e,t){if(e[he]===2){return}e[he]=2;_resume(e,t);e[he]=0;if(e[ve]>256){e[Be].splice(0,e[ve]);e[we]-=e[ve];e[ve]=0}}function _resume(e,t){while(true){if(e.destroyed){o(e[ye]===0);return}if(e[wt]&&!e[Ce]){e[wt]();e[wt]=null;return}const n=e[De];if(n&&!n.destroyed&&n.alpnProtocol!=="h2"){if(e[Ce]===0){if(!n[Se]&&n.unref){n.unref();n[Se]=true}}else if(n[Se]&&n.ref){n.ref();n[Se]=false}if(e[Ce]===0){if(n[ge].timeoutType!==_t){n[ge].setTimeout(e[ke],_t)}}else if(e[fe]>0&&n[ge].statusCode<200){if(n[ge].timeoutType!==Ut){const t=e[Be][e[ve]];const o=t.headersTimeout!=null?t.headersTimeout:e[Me];n[ge].setTimeout(o,Ut)}}}if(e[de]){e[be]=2}else if(e[be]===2){if(t){e[be]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[ye]===0){return}if(e[fe]>=(e[Pe]||1)){return}const i=e[Be][e[we]];if(e[Ae].protocol==="https:"&&e[le]!==i.servername){if(e[fe]>0){return}e[le]=i.servername;if(n&&n.servername!==i.servername){f.destroy(n,new re("servername changed"));return}}if(e[Qe]){return}if(!n&&!e[$e]){connect(e);return}if(n.destroyed||n[Ee]||n[ce]||n[me]){return}if(e[fe]>0&&!i.idempotent){return}if(e[fe]>0&&(i.upgrade||i.method==="CONNECT")){return}if(e[fe]>0&&f.bodyLength(i.body)!==0&&(f.isStream(i.body)||f.isAsyncIterable(i.body))){return}if(!i.aborted&&write(e,i)){e[we]++}else{e[Be].splice(e[we],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[Ke]==="h2"){writeH2(e,e[$e],t);return}const{body:n,method:i,path:d,host:p,upgrade:y,headers:v,blocking:D,reset:U}=t;const V=i==="PUT"||i==="POST"||i==="PATCH";if(n&&typeof n.read==="function"){n.read(0)}const K=f.bodyLength(n);let ee=K;if(ee===null){ee=t.contentLength}if(ee===0&&!V){ee=null}if(shouldSendContentLength(i)&&ee>0&&t.contentLength!==null&&t.contentLength!==ee){if(e[Ue]){errorRequest(e,t,new M);return false}process.emitWarning(new M)}const te=e[De];try{t.onConnect((n=>{if(t.aborted||t.completed){return}errorRequest(e,t,n||new j);f.destroy(te,new re("aborted"))}))}catch(n){errorRequest(e,t,n)}if(t.aborted){return false}if(i==="HEAD"){te[ce]=true}if(y||i==="CONNECT"){te[ce]=true}if(U!=null){te[ce]=U}if(e[qe]&&te[ze]++>=e[qe]){te[ce]=true}if(D){te[me]=true}let ne=`${i} ${d} HTTP/1.1\r\n`;if(typeof p==="string"){ne+=`host: ${p}\r\n`}else{ne+=e[Re]}if(y){ne+=`connection: upgrade\r\nupgrade: ${y}\r\n`}else if(e[Pe]&&!te[ce]){ne+="connection: keep-alive\r\n"}else{ne+="connection: close\r\n"}if(v){ne+=v}if(vt.sendHeaders.hasSubscribers){vt.sendHeaders.publish({request:t,headers:ne,socket:te})}if(!n||K===0){if(ee===0){te.write(`${ne}content-length: 0\r\n\r\n`,"latin1")}else{o(ee===null,"no body must not have content length");te.write(`${ne}\r\n`,"latin1")}t.onRequestSent()}else if(f.isBuffer(n)){o(ee===n.byteLength,"buffer body must have content length");te.cork();te.write(`${ne}content-length: ${ee}\r\n\r\n`,"latin1");te.write(n);te.uncork();t.onBodySent(n);t.onRequestSent();if(!V){te[ce]=true}}else if(f.isBlobLike(n)){if(typeof n.stream==="function"){writeIterable({body:n.stream(),client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{writeBlob({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}}else if(f.isStream(n)){writeStream({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else if(f.isIterable(n)){writeIterable({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{o(false)}return true}function writeH2(e,t,n){const{body:i,method:d,path:p,host:y,upgrade:D,expectContinue:U,signal:V,headers:K}=n;let ee;if(typeof K==="string")ee=v[dt](K.trim());else ee=K;if(D){errorRequest(e,n,new Error("Upgrade not supported for H2"));return false}try{n.onConnect((t=>{if(n.aborted||n.completed){return}errorRequest(e,n,t||new j)}))}catch(t){errorRequest(e,n,t)}if(n.aborted){return false}let te;const ne=e[Ze];ee[Ct]=y||e[Xe];ee[Et]=d;if(d==="CONNECT"){t.ref();te=t.request(ee,{endStream:false,signal:V});if(te.id&&!te.pending){n.onUpgrade(null,null,te);++ne.openStreams}else{te.once("ready",(()=>{n.onUpgrade(null,null,te);++ne.openStreams}))}te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0)t.unref()}));return true}ee[Bt]=p;ee[It]="https";const oe=d==="PUT"||d==="POST"||d==="PATCH";if(i&&typeof i.read==="function"){i.read(0)}let ie=f.bodyLength(i);if(ie==null){ie=n.contentLength}if(ie===0||!oe){ie=null}if(shouldSendContentLength(d)&&ie>0&&n.contentLength!=null&&n.contentLength!==ie){if(e[Ue]){errorRequest(e,n,new M);return false}process.emitWarning(new M)}if(ie!=null){o(i,"no body must not have content length");ee[Qt]=`${ie}`}t.ref();const se=d==="GET"||d==="HEAD";if(U){ee[bt]="100-continue";te=t.request(ee,{endStream:se,signal:V});te.once("continue",writeBodyH2)}else{te=t.request(ee,{endStream:se,signal:V});writeBodyH2()}++ne.openStreams;te.once("response",(e=>{const{[St]:t,...o}=e;if(n.onHeaders(Number(t),o,te.resume.bind(te),"")===false){te.pause()}}));te.once("end",(()=>{n.onComplete([])}));te.on("data",(e=>{if(n.onData(e)===false){te.pause()}}));te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0){t.unref()}}));te.once("error",(function(t){if(e[$e]&&!e[$e].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,t)}}));te.once("frameError",((t,o)=>{const i=new re(`HTTP/2: "frameError" received - type ${t}, code ${o}`);errorRequest(e,n,i);if(e[$e]&&!e[$e].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,i)}}));return true;function writeBodyH2(){if(!i){n.onRequestSent()}else if(f.isBuffer(i)){o(ie===i.byteLength,"buffer body must have content length");te.cork();te.write(i);te.uncork();te.end();n.onBodySent(i);n.onRequestSent()}else if(f.isBlobLike(i)){if(typeof i.stream==="function"){writeIterable({client:e,request:n,contentLength:ie,h2stream:te,expectsPayload:oe,body:i.stream(),socket:e[De],header:""})}else{writeBlob({body:i,client:e,request:n,contentLength:ie,expectsPayload:oe,h2stream:te,header:"",socket:e[De]})}}else if(f.isStream(i)){writeStream({body:i,client:e,request:n,contentLength:ie,expectsPayload:oe,socket:e[De],h2stream:te,header:""})}else if(f.isIterable(i)){writeIterable({body:i,client:e,request:n,contentLength:ie,expectsPayload:oe,header:"",h2stream:te,socket:e[De]})}else{o(false)}}}function writeStream({h2stream:e,body:t,client:n,request:i,socket:d,contentLength:y,header:v,expectsPayload:D}){o(y!==0||n[fe]===0,"stream body cannot be pipelined");if(n[Ke]==="h2"){const V=p(t,e,(n=>{if(n){f.destroy(t,n);f.destroy(e,n)}else{i.onRequestSent()}}));V.on("data",onPipeData);V.once("end",(()=>{V.removeListener("data",onPipeData);f.destroy(V)}));function onPipeData(e){i.onBodySent(e)}return}let M=false;const U=new AsyncWriter({socket:d,request:i,contentLength:y,client:n,expectsPayload:D,header:v});const onData=function(e){if(M){return}try{if(!U.write(e)&&this.pause){this.pause()}}catch(e){f.destroy(this,e)}};const onDrain=function(){if(M){return}if(t.resume){t.resume()}};const onAbort=function(){if(M){return}const e=new j;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(M){return}M=true;o(d.destroyed||d[Ee]&&n[fe]<=1);d.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{U.end()}catch(t){e=t}}U.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){f.destroy(t,e)}else{f.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}d.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:n,request:i,socket:d,contentLength:p,header:y,expectsPayload:v}){o(p===t.size,"blob body must have content length");const D=n[Ke]==="h2";try{if(p!=null&&p!==t.size){throw new M}const o=Buffer.from(await t.arrayBuffer());if(D){e.cork();e.write(o);e.uncork()}else{d.cork();d.write(`${y}content-length: ${p}\r\n\r\n`,"latin1");d.write(o);d.uncork()}i.onBodySent(o);i.onRequestSent();if(!v){d[ce]=true}resume(n)}catch(t){f.destroy(D?e:d,t)}}async function writeIterable({h2stream:e,body:t,client:n,request:i,socket:d,contentLength:p,header:f,expectsPayload:y}){o(p!==0||n[fe]===0,"iterator body cannot be pipelined");let v=null;function onDrain(){if(v){const e=v;v=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(v===null);if(d[xe]){t(d[xe])}else{v=e}}));if(n[Ke]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const n of t){if(d[xe]){throw d[xe]}const t=e.write(n);i.onBodySent(n);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{i.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}d.on("close",onDrain).on("drain",onDrain);const D=new AsyncWriter({socket:d,request:i,contentLength:p,client:n,expectsPayload:y,header:f});try{for await(const e of t){if(d[xe]){throw d[xe]}if(!D.write(e)){await waitForDrain()}}D.end()}catch(e){D.destroy(e)}finally{d.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:n,client:o,expectsPayload:i,header:d}){this.socket=e;this.request=t;this.contentLength=n;this.client=o;this.bytesWritten=0;this.expectsPayload=i;this.header=d;e[Ee]=true}write(e){const{socket:t,request:n,contentLength:o,client:i,bytesWritten:d,expectsPayload:p,header:f}=this;if(t[xe]){throw t[xe]}if(t.destroyed){return false}const y=Buffer.byteLength(e);if(!y){return true}if(o!==null&&d+y>o){if(i[Ue]){throw new M}process.emitWarning(new M)}t.cork();if(d===0){if(!p){t[ce]=true}if(o===null){t.write(`${f}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${f}content-length: ${o}\r\n\r\n`,"latin1")}}if(o===null){t.write(`\r\n${y.toString(16)}\r\n`,"latin1")}this.bytesWritten+=y;const v=t.write(e);t.uncork();n.onBodySent(e);if(!v){if(t[ge].timeout&&t[ge].timeoutType===Ut){if(t[ge].timeout.refresh){t[ge].timeout.refresh()}}}return v}end(){const{socket:e,contentLength:t,client:n,bytesWritten:o,expectsPayload:i,header:d,request:p}=this;p.onRequestSent();e[Ee]=false;if(e[xe]){throw e[xe]}if(e.destroyed){return}if(o===0){if(i){e.write(`${d}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${d}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&o!==t){if(n[Ue]){throw new M}else{process.emitWarning(new M)}}if(e[ge].timeout&&e[ge].timeoutType===Ut){if(e[ge].timeout.refresh){e[ge].timeout.refresh()}}resume(n)}destroy(e){const{socket:t,client:n}=this;t[Ee]=false;if(e){o(n[fe]<=1,"pipeline should only contain this request");f.destroy(t,e)}}}function errorRequest(e,t,n){try{t.onError(n);o(t.aborted)}catch(n){e.emit("error",n)}}e.exports=Client},13194:(e,t,n)=>{"use strict";const{kConnected:o,kSize:i}=n(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[o]===0&&this.value[i]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[o]===0&&e[i]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{"use strict";const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},53168:(e,t,n)=>{"use strict";const{parseSetCookie:o}=n(8915);const{stringify:i}=n(3834);const{webidl:d}=n(74222);const{Headers:p}=n(26349);function getCookies(e){d.argumentLengthCheck(arguments,1,{header:"getCookies"});d.brandCheck(e,p,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...o]=e.split("=");n[t.trim()]=o.join("=")}return n}function deleteCookie(e,t,n){d.argumentLengthCheck(arguments,2,{header:"deleteCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.DOMString(t);n=d.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){d.argumentLengthCheck(arguments,1,{header:"getSetCookies"});d.brandCheck(e,p,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>o(e)))}function setCookie(e,t){d.argumentLengthCheck(arguments,2,{header:"setCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.Cookie(t);const n=i(t);if(n){e.append("Set-Cookie",i(t))}}d.converters.DeleteCookieAttributes=d.dictionaryConverter([{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null}]);d.converters.Cookie=d.dictionaryConverter([{converter:d.converters.DOMString,key:"name"},{converter:d.converters.DOMString,key:"value"},{converter:d.nullableConverter((e=>{if(typeof e==="number"){return d.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:d.nullableConverter(d.converters["long long"]),key:"maxAge",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"secure",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"httpOnly",defaultValue:null},{converter:d.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:d.sequenceConverter(d.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,n)=>{"use strict";const{maxNameValuePairSize:o,maxAttributeValueSize:i}=n(19237);const{isCTLExcludingHtab:d}=n(3834);const{collectASequenceOfCodePointsFast:p}=n(94322);const f=n(42613);function parseSetCookie(e){if(d(e)){return null}let t="";let n="";let i="";let f="";if(e.includes(";")){const o={position:0};t=p(";",e,o);n=e.slice(o.position)}else{t=e}if(!t.includes("=")){f=t}else{const e={position:0};i=p("=",t,e);f=t.slice(e.position+1)}i=i.trim();f=f.trim();if(i.length+f.length>o){return null}return{name:i,value:f,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}f(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=p(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let o="";let d="";if(n.includes("=")){const e={position:0};o=p("=",n,e);d=n.slice(e.position+1)}else{o=n}o=o.trim();d=d.trim();if(d.length>i){return parseUnparsedAttributes(e,t)}const y=o.toLowerCase();if(y==="expires"){const e=new Date(d);t.expires=e}else if(y==="max-age"){const n=d.charCodeAt(0);if((n<48||n>57)&&d[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(d)){return parseUnparsedAttributes(e,t)}const o=Number(d);t.maxAge=o}else if(y==="domain"){let e=d;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(y==="path"){let e="";if(d.length===0||d[0]!=="/"){e="/"}else{e=d}t.path=e}else if(y==="secure"){t.secure=true}else if(y==="httponly"){t.httpOnly=true}else if(y==="samesite"){let e="Default";const n=d.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${o}=${d}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:e=>{"use strict";function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const o=t[e.getUTCDay()];const i=e.getUTCDate().toString().padStart(2,"0");const d=n[e.getUTCMonth()];const p=e.getUTCFullYear();const f=e.getUTCHours().toString().padStart(2,"0");const y=e.getUTCMinutes().toString().padStart(2,"0");const v=e.getUTCSeconds().toString().padStart(2,"0");return`${o}, ${i} ${d} ${p} ${f}:${y}:${v} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...o]=n.split("=");t.push(`${e.trim()}=${o.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},59136:(e,t,n)=>{"use strict";const o=n(69278);const i=n(42613);const d=n(3440);const{InvalidArgumentError:p,ConnectTimeoutError:f}=n(68707);let y;let v;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){v=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:f,timeout:D,...M}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxCachedSessions must be a positive integer or zero")}const U={path:f,...M};const V=new v(t==null?100:t);D=D==null?1e4:D;e=e!=null?e:false;return function connect({hostname:t,host:p,protocol:f,port:v,servername:M,localAddress:j,httpSocket:K},ee){let te;if(f==="https:"){if(!y){y=n(64756)}M=M||U.servername||d.getServerName(p)||null;const o=M||t;const f=V.get(o)||null;i(o);te=y.connect({highWaterMark:16384,...U,servername:M,session:f,localAddress:j,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:K,port:v||443,host:t});te.on("session",(function(e){V.set(o,e)}))}else{i(!K,"httpSocket can only be sent on TLS update");te=o.connect({highWaterMark:64*1024,...U,localAddress:j,port:v||80,host:t})}if(U.keepAlive==null||U.keepAlive){const e=U.keepAliveInitialDelay===undefined?6e4:U.keepAliveInitialDelay;te.setKeepAlive(true,e)}const re=setupTimeout((()=>onConnectTimeout(te)),D);te.setNoDelay(true).once(f==="https:"?"secureConnect":"connect",(function(){re();if(ee){const e=ee;ee=null;e(null,this)}})).on("error",(function(e){re();if(ee){const t=ee;ee=null;t(e)}}));return te}}function setupTimeout(e,t){if(!t){return()=>{}}let n=null;let o=null;const i=setTimeout((()=>{n=setImmediate((()=>{if(process.platform==="win32"){o=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(i);clearImmediate(n);clearImmediate(o)}}function onConnectTimeout(e){d.destroy(e,new f)}e.exports=buildConnector},10735:e=>{"use strict";const t={};const n=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,o){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=o;this.status=t;this.statusCode=t;this.headers=n}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=o;this.headers=n}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,n)=>{"use strict";const{InvalidArgumentError:o,NotSupportedError:i}=n(68707);const d=n(42613);const{kHTTP2BuildRequest:p,kHTTP2CopyHeaders:f,kHTTP1BuildRequest:y}=n(36443);const v=n(3440);const D=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const M=/[^\t\x20-\x7e\x80-\xff]/;const U=/[^\u0021-\u00ff]/;const V=Symbol("handler");const j={};let K;try{const e=n(31637);j.create=e.channel("undici:request:create");j.bodySent=e.channel("undici:request:bodySent");j.headers=e.channel("undici:request:headers");j.trailers=e.channel("undici:request:trailers");j.error=e.channel("undici:request:error")}catch{j.create={hasSubscribers:false};j.bodySent={hasSubscribers:false};j.headers={hasSubscribers:false};j.trailers={hasSubscribers:false};j.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:i,body:d,headers:p,query:f,idempotent:y,blocking:M,upgrade:ee,headersTimeout:te,bodyTimeout:re,reset:ne,throwOnError:oe,expectContinue:ie},se){if(typeof t!=="string"){throw new o("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&i!=="CONNECT"){throw new o("path must be an absolute URL or start with a slash")}else if(U.exec(t)!==null){throw new o("invalid request path")}if(typeof i!=="string"){throw new o("method must be a string")}else if(D.exec(i)===null){throw new o("invalid request method")}if(ee&&typeof ee!=="string"){throw new o("upgrade must be a string")}if(te!=null&&(!Number.isFinite(te)||te<0)){throw new o("invalid headersTimeout")}if(re!=null&&(!Number.isFinite(re)||re<0)){throw new o("invalid bodyTimeout")}if(ne!=null&&typeof ne!=="boolean"){throw new o("invalid reset")}if(ie!=null&&typeof ie!=="boolean"){throw new o("invalid expectContinue")}this.headersTimeout=te;this.bodyTimeout=re;this.throwOnError=oe===true;this.method=i;this.abort=null;if(d==null){this.body=null}else if(v.isStream(d)){this.body=d;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){v.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(v.isBuffer(d)){this.body=d.byteLength?d:null}else if(ArrayBuffer.isView(d)){this.body=d.buffer.byteLength?Buffer.from(d.buffer,d.byteOffset,d.byteLength):null}else if(d instanceof ArrayBuffer){this.body=d.byteLength?Buffer.from(d):null}else if(typeof d==="string"){this.body=d.length?Buffer.from(d):null}else if(v.isFormDataLike(d)||v.isIterable(d)||v.isBlobLike(d)){this.body=d}else{throw new o("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ee||null;this.path=f?v.buildURL(t,f):t;this.origin=e;this.idempotent=y==null?i==="HEAD"||i==="GET":y;this.blocking=M==null?false:M;this.reset=ne==null?null:ne;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=ie!=null?ie:false;if(Array.isArray(p)){if(p.length%2!==0){throw new o("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,n)=>{"use strict";const o=n(42613);const{kDestroyed:i,kBodyUsed:d}=n(36443);const{IncomingMessage:p}=n(58611);const f=n(2203);const y=n(69278);const{InvalidArgumentError:v}=n(68707);const{Blob:D}=n(20181);const M=n(39023);const{stringify:U}=n(83480);const{headerNameLowerCasedRecord:V}=n(10735);const[j,K]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return D&&e instanceof D||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=U(t);if(n){e+="?"+n}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new v("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new v("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new v("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new v("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new v("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new v("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let o=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n.endsWith("/")){n=n.substring(0,n.length-1)}if(o&&!o.startsWith("/")){o=`/${o}`}e=new URL(n+o)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new v("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");o(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}o.strictEqual(typeof e,"string");const t=getHostname(e);if(y.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[i])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===p){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[i]=true}}const ee=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(ee);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return V[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let n=0;ne.toString("utf8")))}else{t[o]=e[n+1].toString("utf8")}}else{if(!Array.isArray(i)){i=[i];t[o]=i}i.push(e[n+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let n=false;let o=-1;for(let i=0;i{e.close()}))}else{const t=Buffer.isBuffer(o)?o:Buffer.from(o);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const re=!!String.prototype.toWellFormed;function toUSVString(e){if(re){return`${e}`.toWellFormed()}else if(M.toUSVString){return M.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const ne=Object.create(null);ne.enumerable=true;e.exports={kEnumerableProperty:ne,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:j,nodeMinor:K,nodeHasAutoSelectFamily:j>18||j===18&&K>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,n)=>{"use strict";const o=n(28611);const{ClientDestroyedError:i,ClientClosedError:d,InvalidArgumentError:p}=n(68707);const{kDestroy:f,kClose:y,kDispatch:v,kInterceptors:D}=n(36443);const M=Symbol("destroyed");const U=Symbol("closed");const V=Symbol("onDestroyed");const j=Symbol("onClosed");const K=Symbol("Intercepted Dispatch");class DispatcherBase extends o{constructor(){super();this[M]=false;this[V]=null;this[U]=false;this[j]=[]}get destroyed(){return this[M]}get closed(){return this[U]}get interceptors(){return this[D]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[D][t];if(typeof e!=="function"){throw new p("interceptor must be an function")}}}this[D]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,o)=>n?t(n):e(o)))}))}if(typeof e!=="function"){throw new p("invalid callback")}if(this[M]){queueMicrotask((()=>e(new i,null)));return}if(this[U]){if(this[j]){this[j].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[U]=true;this[j].push(e);const onClosed=()=>{const e=this[j];this[j]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,o)=>e?n(e):t(o)))}))}if(typeof t!=="function"){throw new p("invalid callback")}if(this[M]){if(this[V]){this[V].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new i}this[M]=true;this[V]=this[V]||[];this[V].push(t);const onDestroyed=()=>{const e=this[V];this[V]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[K](e,t){if(!this[D]||this[D].length===0){this[K]=this[v];return this[v](e,t)}let n=this[v].bind(this);for(let e=this[D].length-1;e>=0;e--){n=this[D][e](n)}this[K]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new p("handler must be an object")}try{if(!e||typeof e!=="object"){throw new p("opts must be an object.")}if(this[M]||this[V]){throw new i}if(this[U]){throw new d}return this[K](e,t)}catch(e){if(typeof t.onError!=="function"){throw new p("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,n)=>{"use strict";const o=n(24434);class Dispatcher extends o{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,n)=>{"use strict";const o=n(89581);const i=n(3440);const{ReadableStreamFrom:d,isBlobLike:p,isReadableStreamLike:f,readableStreamClose:y,createDeferredPromise:v,fullyReadBody:D}=n(15523);const{FormData:M}=n(43073);const{kState:U}=n(89710);const{webidl:V}=n(74222);const{DOMException:j,structuredClone:K}=n(87326);const{Blob:ee,File:te}=n(20181);const{kBodyUsed:re}=n(36443);const ne=n(42613);const{isErrored:oe}=n(3440);const{isUint8Array:ie,isArrayBuffer:se}=n(98253);const{File:ae}=n(63041);const{parseMIMEType:Ae,serializeAMimeType:ce}=n(94322);let le;try{const e=n(77598);le=t=>e.randomInt(0,t)}catch{le=e=>Math.floor(Math.random(e))}let ue=globalThis.ReadableStream;const de=te??ae;const ge=new TextEncoder;const pe=new TextDecoder;function extractBody(e,t=false){if(!ue){ue=n(63774).ReadableStream}let o=null;if(e instanceof ue){o=e}else if(p(e)){o=e.stream()}else{o=new ue({async pull(e){e.enqueue(typeof D==="string"?ge.encode(D):D);queueMicrotask((()=>y(e)))},start(){},type:undefined})}ne(f(o));let v=null;let D=null;let M=null;let U=null;if(typeof e==="string"){D=e;U="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){D=e.toString();U="application/x-www-form-urlencoded;charset=UTF-8"}else if(se(e)){D=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){D=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(i.isFormDataLike(e)){const t=`----formdata-undici-0${`${le(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const o=[];const i=new Uint8Array([13,10]);M=0;let d=false;for(const[t,p]of e){if(typeof p==="string"){const e=ge.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);o.push(e);M+=e.byteLength}else{const e=ge.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);o.push(e,p,i);if(typeof p.size==="number"){M+=e.byteLength+p.size+i.byteLength}else{d=true}}}const p=ge.encode(`--${t}--`);o.push(p);M+=p.byteLength;if(d){M=null}D=e;v=async function*(){for(const e of o){if(e.stream){yield*e.stream()}else{yield e}}};U="multipart/form-data; boundary="+t}else if(p(e)){D=e;M=e.size;if(e.type){U=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(i.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}o=e instanceof ue?e:d(e)}if(typeof D==="string"||i.isBuffer(D)){M=Buffer.byteLength(D)}if(v!=null){let t;o=new ue({async start(){t=v(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:i}=await t.next();if(i){queueMicrotask((()=>{e.close()}))}else{if(!oe(o)){e.enqueue(new Uint8Array(n))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const V={stream:o,source:D,length:M};return[V,U]}function safelyExtractBody(e,t=false){if(!ue){ue=n(63774).ReadableStream}if(e instanceof ue){ne(!i.isDisturbed(e),"The body has already been consumed.");ne(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,n]=e.stream.tee();const o=K(n,{transfer:[n]});const[,i]=o.tee();e.stream=t;return{stream:i,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(ie(e)){yield e}else{const t=e.stream;if(i.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[re]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new j("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=ce(t)}return new ee([e],{type:t})}),e)},arrayBuffer(){return specConsumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return specConsumeBody(this,utf8DecodeBytes,e)},json(){return specConsumeBody(this,parseJSONFromBytes,e)},async formData(){V.brandCheck(this,e);throwIfAborted(this[U]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,n]of this.headers)e[t.toLowerCase()]=n;const t=new M;let n;try{n=new o({headers:e,preservePath:true})}catch(e){throw new j(`${e}`,"AbortError")}n.on("field",((e,n)=>{t.append(e,n)}));n.on("file",((e,n,o,i,d)=>{const p=[];if(i==="base64"||i.toLowerCase()==="base64"){let i="";n.on("data",(e=>{i+=e.toString().replace(/[\r\n]/gm,"");const t=i.length-i.length%4;p.push(Buffer.from(i.slice(0,t),"base64"));i=i.slice(t)}));n.on("end",(()=>{p.push(Buffer.from(i,"base64"));t.append(e,new de(p,o,{type:d}))}))}else{n.on("data",(e=>{p.push(e)}));n.on("end",(()=>{t.append(e,new de(p,o,{type:d}))}))}}));const i=new Promise(((e,t)=>{n.on("finish",e);n.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[U].body))n.write(e);n.end();await i;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const n=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[U].body)){if(!ie(e)){throw new TypeError("Expected Uint8Array chunk")}t+=n.decode(e,{stream:true})}t+=n.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new M;for(const[n,o]of e){t.append(n,o)}return t}else{await Promise.resolve();throwIfAborted(this[U]);throw V.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,n){V.brandCheck(e,n);throwIfAborted(e[U]);if(bodyUnusable(e[U].body)){throw new TypeError("Body is unusable")}const o=v();const errorSteps=e=>o.reject(e);const successSteps=e=>{try{o.resolve(t(e))}catch(e){errorSteps(e)}};if(e[U].body==null){successSteps(new Uint8Array);return o.promise}await D(e[U].body,successSteps,errorSteps);return o.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||i.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=pe.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[U];const n=t.get("content-type");if(n===null){return"failure"}return Ae(n)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,n)=>{"use strict";const{MessageChannel:o,receiveMessageOnPort:i}=n(28167);const d=["GET","HEAD","POST"];const p=new Set(d);const f=[101,204,205,304];const y=[301,302,303,307,308];const v=new Set(y);const D=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const M=new Set(D);const U=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const V=new Set(U);const j=["follow","manual","error"];const K=["GET","HEAD","OPTIONS","TRACE"];const ee=new Set(K);const te=["navigate","same-origin","no-cors","cors"];const re=["omit","same-origin","include"];const ne=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const oe=["content-encoding","content-language","content-location","content-type","content-length"];const ie=["half"];const se=["CONNECT","TRACE","TRACK"];const ae=new Set(se);const Ae=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const ce=new Set(Ae);const le=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let ue;const de=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!ue){ue=new o}ue.port1.unref();ue.port2.unref();ue.port1.postMessage(e,t?.transfer);return i(ue.port2).message};e.exports={DOMException:le,structuredClone:de,subresource:Ae,forbiddenMethods:se,requestBodyHeader:oe,referrerPolicy:U,requestRedirect:j,requestMode:te,requestCredentials:re,requestCache:ne,redirectStatus:y,corsSafeListedMethods:d,nullBodyStatus:f,safeMethods:K,badPorts:D,requestDuplex:ie,subresourceSet:ce,badPortsSet:M,redirectStatusSet:v,corsSafeListedMethodsSet:p,safeMethodsSet:ee,forbiddenMethodsSet:ae,referrerPolicySet:V}},94322:(e,t,n)=>{const o=n(42613);const{atob:i}=n(20181);const{isomorphicDecode:d}=n(15523);const p=new TextEncoder;const f=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const y=/(\u000A|\u000D|\u0009|\u0020)/;const v=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){o(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const n={position:0};let i=collectASequenceOfCodePointsFast(",",t,n);const p=i.length;i=removeASCIIWhitespace(i,true,true);if(n.position>=t.length){return"failure"}n.position++;const f=t.slice(p+1);let y=stringPercentDecode(f);if(/;(\u0020){0,}base64$/i.test(i)){const e=d(y);y=forgivingBase64(e);if(y==="failure"){return"failure"}i=i.slice(0,-6);i=i.replace(/(\u0020)+$/,"");i=i.slice(0,-1)}if(i.startsWith(";")){i="text/plain"+i}let v=parseMIMEType(i);if(v==="failure"){v=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:v,body:y}}function URLSerializer(e,t=false){if(!t){return e.href}const n=e.href;const o=e.hash.length;return o===0?n:n.substring(0,n.length-o)}function collectASequenceOfCodePoints(e,t,n){let o="";while(n.positione.length){return"failure"}t.position++;let o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0||!f.test(o)){return"failure"}const i=n.toLowerCase();const d=o.toLowerCase();const p={type:i,subtype:d,parameters:new Map,essence:`${i}/${d}`};while(t.positiony.test(e)),e,t);let n=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);n=n.toLowerCase();if(t.positione.length){break}let o=null;if(e[t.position]==='"'){o=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0){continue}}if(n.length!==0&&f.test(n)&&(o.length===0||v.test(o))&&!p.parameters.has(n)){p.parameters.set(n,o)}}return p}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=i(e);const n=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const n=e[t.position];t.position++;if(n==="\\"){if(t.position>=e.length){d+="\\";break}d+=e[t.position];t.position++}else{o(n==='"');break}}if(n){return d}return e.slice(i,t.position)}function serializeAMimeType(e){o(e!=="failure");const{parameters:t,essence:n}=e;let i=n;for(let[e,n]of t.entries()){i+=";";i+=e;i+="=";if(!f.test(n)){n=n.replace(/(\\|")/g,"\\$1");n='"'+n;n+='"'}i+=n}return i}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,n=true){let o=0;let i=e.length-1;if(t){for(;o0&&isHTTPWhiteSpace(e[i]);i--);}return e.slice(o,i+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,n=true){let o=0;let i=e.length-1;if(t){for(;o0&&isASCIIWhitespace(e[i]);i--);}return e.slice(o,i+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,n)=>{"use strict";const{Blob:o,File:i}=n(20181);const{types:d}=n(39023);const{kState:p}=n(89710);const{isBlobLike:f}=n(15523);const{webidl:y}=n(74222);const{parseMIMEType:v,serializeAMimeType:D}=n(94322);const{kEnumerableProperty:M}=n(3440);const U=new TextEncoder;class File extends o{constructor(e,t,n={}){y.argumentLengthCheck(arguments,2,{header:"File constructor"});e=y.converters["sequence"](e);t=y.converters.USVString(t);n=y.converters.FilePropertyBag(n);const o=t;let i=n.type;let d;e:{if(i){i=v(i);if(i==="failure"){i="";break e}i=D(i).toLowerCase()}d=n.lastModified}super(processBlobParts(e,n),{type:i});this[p]={name:o,lastModified:d,type:i}}get name(){y.brandCheck(this,File);return this[p].name}get lastModified(){y.brandCheck(this,File);return this[p].lastModified}get type(){y.brandCheck(this,File);return this[p].type}}class FileLike{constructor(e,t,n={}){const o=t;const i=n.type;const d=n.lastModified??Date.now();this[p]={blobLike:e,name:o,type:i,lastModified:d}}stream(...e){y.brandCheck(this,FileLike);return this[p].blobLike.stream(...e)}arrayBuffer(...e){y.brandCheck(this,FileLike);return this[p].blobLike.arrayBuffer(...e)}slice(...e){y.brandCheck(this,FileLike);return this[p].blobLike.slice(...e)}text(...e){y.brandCheck(this,FileLike);return this[p].blobLike.text(...e)}get size(){y.brandCheck(this,FileLike);return this[p].blobLike.size}get type(){y.brandCheck(this,FileLike);return this[p].blobLike.type}get name(){y.brandCheck(this,FileLike);return this[p].name}get lastModified(){y.brandCheck(this,FileLike);return this[p].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:M,lastModified:M});y.converters.Blob=y.interfaceConverter(o);y.converters.BlobPart=function(e,t){if(y.util.Type(e)==="Object"){if(f(e)){return y.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||d.isAnyArrayBuffer(e)){return y.converters.BufferSource(e,t)}}return y.converters.USVString(e,t)};y.converters["sequence"]=y.sequenceConverter(y.converters.BlobPart);y.converters.FilePropertyBag=y.dictionaryConverter([{key:"lastModified",converter:y.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:y.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=y.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const n=[];for(const o of e){if(typeof o==="string"){let e=o;if(t.endings==="native"){e=convertLineEndingsNative(e)}n.push(U.encode(e))}else if(d.isAnyArrayBuffer(o)||d.isTypedArray(o)){if(!o.buffer){n.push(new Uint8Array(o))}else{n.push(new Uint8Array(o.buffer,o.byteOffset,o.byteLength))}}else if(f(o)){n.push(o)}}return n}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return i&&e instanceof i||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,n)=>{"use strict";const{isBlobLike:o,toUSVString:i,makeIterator:d}=n(15523);const{kState:p}=n(89710);const{File:f,FileLike:y,isFileLike:v}=n(63041);const{webidl:D}=n(74222);const{Blob:M,File:U}=n(20181);const V=U??f;class FormData{constructor(e){if(e!==undefined){throw D.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[p]=[]}append(e,t,n=undefined){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=D.converters.USVString(e);t=o(t)?D.converters.Blob(t,{strict:false}):D.converters.USVString(t);n=arguments.length===3?D.converters.USVString(n):undefined;const i=makeEntry(e,t,n);this[p].push(i)}delete(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=D.converters.USVString(e);this[p]=this[p].filter((t=>t.name!==e))}get(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=D.converters.USVString(e);const t=this[p].findIndex((t=>t.name===e));if(t===-1){return null}return this[p][t].value}getAll(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=D.converters.USVString(e);return this[p].filter((t=>t.name===e)).map((e=>e.value))}has(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=D.converters.USVString(e);return this[p].findIndex((t=>t.name===e))!==-1}set(e,t,n=undefined){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=D.converters.USVString(e);t=o(t)?D.converters.Blob(t,{strict:false}):D.converters.USVString(t);n=arguments.length===3?i(n):undefined;const d=makeEntry(e,t,n);const f=this[p].findIndex((t=>t.name===e));if(f!==-1){this[p]=[...this[p].slice(0,f),d,...this[p].slice(f+1).filter((t=>t.name!==e))]}else{this[p].push(d)}}entries(){D.brandCheck(this,FormData);return d((()=>this[p].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){D.brandCheck(this,FormData);return d((()=>this[p].map((e=>[e.name,e.value]))),"FormData","key")}values(){D.brandCheck(this,FormData);return d((()=>this[p].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[n,o]of this){e.apply(t,[o,n,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,n){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!v(t)){t=t instanceof M?new V([t],"blob",{type:t.type}):new y(t,"blob",{type:t.type})}if(n!==undefined){const e={type:t.type,lastModified:t.lastModified};t=U&&t instanceof U||t instanceof f?new V([t],n,e):new y(t,n,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{"use strict";const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const n=new URL(e);if(n.protocol!=="http:"&&n.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${n.protocol}`)}Object.defineProperty(globalThis,t,{value:n,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,n)=>{"use strict";const{kHeadersList:o,kConstruct:i}=n(36443);const{kGuard:d}=n(89710);const{kEnumerableProperty:p}=n(3440);const{makeIterator:f,isValidHeaderName:y,isValidHeaderValue:v}=n(15523);const D=n(39023);const{webidl:M}=n(74222);const U=n(42613);const V=Symbol("headers map");const j=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let n=e.length;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(n-1)))--n;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&n===e.length?e:e.substring(t,n)}function fill(e,t){if(Array.isArray(t)){for(let n=0;n>","record"]})}}function appendHeader(e,t,n){n=headerValueNormalize(n);if(!y(t)){throw M.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!v(n)){throw M.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header value"})}if(e[d]==="immutable"){throw new TypeError("immutable")}else if(e[d]==="request-no-cors"){}return e[o].append(t,n)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[V]=new Map(e[V]);this[j]=e[j];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[V]=new Map(e);this[j]=null}}contains(e){e=e.toLowerCase();return this[V].has(e)}clear(){this[V].clear();this[j]=null;this.cookies=null}append(e,t){this[j]=null;const n=e.toLowerCase();const o=this[V].get(n);if(o){const e=n==="cookie"?"; ":", ";this[V].set(n,{name:o.name,value:`${o.value}${e}${t}`})}else{this[V].set(n,{name:e,value:t})}if(n==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[j]=null;const n=e.toLowerCase();if(n==="set-cookie"){this.cookies=[t]}this[V].set(n,{name:e,value:t})}delete(e){this[j]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[V].delete(e)}get(e){const t=this[V].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[V]){yield[e,t]}}get entries(){const e={};if(this[V].size){for(const{name:t,value:n}of this[V].values()){e[t]=n}}return e}}class Headers{constructor(e=undefined){if(e===i){return}this[o]=new HeadersList;this[d]="none";if(e!==undefined){e=M.converters.HeadersInit(e);fill(this,e)}}append(e,t){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=M.converters.ByteString(e);t=M.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=M.converters.ByteString(e);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[d]==="immutable"){throw new TypeError("immutable")}else if(this[d]==="request-no-cors"){}if(!this[o].contains(e)){return}this[o].delete(e)}get(e){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=M.converters.ByteString(e);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[o].get(e)}has(e){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=M.converters.ByteString(e);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[o].contains(e)}set(e,t){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=M.converters.ByteString(e);t=M.converters.ByteString(t);t=headerValueNormalize(t);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!v(t)){throw M.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[d]==="immutable"){throw new TypeError("immutable")}else if(this[d]==="request-no-cors"){}this[o].set(e,t)}getSetCookie(){M.brandCheck(this,Headers);const e=this[o].cookies;if(e){return[...e]}return[]}get[j](){if(this[o][j]){return this[o][j]}const e=[];const t=[...this[o]].sort(((e,t)=>e[0]e),"Headers","key")}return f((()=>[...this[j].values()]),"Headers","key")}values(){M.brandCheck(this,Headers);if(this[d]==="immutable"){const e=this[j];return f((()=>e),"Headers","value")}return f((()=>[...this[j].values()]),"Headers","value")}entries(){M.brandCheck(this,Headers);if(this[d]==="immutable"){const e=this[j];return f((()=>e),"Headers","key+value")}return f((()=>[...this[j].values()]),"Headers","key+value")}forEach(e,t=globalThis){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[n,o]of this){e.apply(t,[o,n,this])}}[Symbol.for("nodejs.util.inspect.custom")](){M.brandCheck(this,Headers);return this[o]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:p,delete:p,get:p,has:p,set:p,getSetCookie:p,keys:p,values:p,entries:p,forEach:p,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true},[D.inspect.custom]:{enumerable:false}});M.converters.HeadersInit=function(e){if(M.util.Type(e)==="Object"){if(e[Symbol.iterator]){return M.converters["sequence>"](e)}return M.converters["record"](e)}throw M.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,n)=>{"use strict";const{Response:o,makeNetworkError:i,makeAppropriateNetworkError:d,filterResponse:p,makeResponse:f}=n(48676);const{Headers:y}=n(26349);const{Request:v,makeRequest:D}=n(25194);const M=n(43106);const{bytesMatch:U,makePolicyContainer:V,clonePolicyContainer:j,requestBadPort:K,TAOCheck:ee,appendRequestOriginHeader:te,responseLocationURL:re,requestCurrentURL:ne,setRequestReferrerPolicyOnRedirect:oe,tryUpgradeRequestToAPotentiallyTrustworthyURL:ie,createOpaqueTimingInfo:se,appendFetchMetadata:ae,corsCheck:Ae,crossOriginResourcePolicyCheck:ce,determineRequestsReferrer:le,coarsenedSharedCurrentTime:ue,createDeferredPromise:de,isBlobLike:ge,sameOrigin:pe,isCancelled:me,isAborted:he,isErrorLike:fe,fullyReadBody:ye,readableStreamClose:Ce,isomorphicEncode:Ee,urlIsLocal:Be,urlIsHttpHttpsScheme:Ie,urlHasHttpsScheme:Qe}=n(15523);const{kState:be,kHeaders:Se,kGuard:Ne,kRealm:Re}=n(89710);const we=n(42613);const{safelyExtractBody:ve}=n(8923);const{redirectStatusSet:xe,nullBodyStatus:Pe,safeMethodsSet:De,requestBodyHeader:ke,subresourceSet:Te,DOMException:Le}=n(87326);const{kHeadersList:Oe}=n(36443);const Me=n(24434);const{Readable:Fe,pipeline:Ue}=n(2203);const{addAbortListener:He,isErrored:_e,isReadable:qe,nodeMajor:ze,nodeMinor:Ve}=n(3440);const{dataURLProcessor:Ge,serializeAMimeType:Ye}=n(94322);const{TransformStream:je}=n(63774);const{getGlobalDispatcher:Je}=n(32581);const{webidl:We}=n(74222);const{STATUS_CODES:Ke}=n(58611);const Xe=["GET","HEAD"];let $e;let Ze=globalThis.ReadableStream;class Fetch extends Me{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Le("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){We.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const n=de();let i;try{i=new v(e,t)}catch(e){n.reject(e);return n.promise}const d=i[be];if(i.signal.aborted){abortFetch(n,d,null,i.signal.reason);return n.promise}const p=d.client.globalObject;if(p?.constructor?.name==="ServiceWorkerGlobalScope"){d.serviceWorkers="none"}let f=null;const y=null;let D=false;let M=null;He(i.signal,(()=>{D=true;we(M!=null);M.abort(i.signal.reason);abortFetch(n,d,f,i.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(D){return Promise.resolve()}if(e.aborted){abortFetch(n,d,f,M.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){n.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}f=new o;f[be]=e;f[Re]=y;f[Se][Oe]=e.headersList;f[Se][Ne]="immutable";f[Se][Re]=y;n.resolve(f)};M=fetching({request:d,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??Je()});return n.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const n=e.urlList[0];let o=e.timingInfo;let i=e.cacheState;if(!Ie(n)){return}if(o===null){return}if(!e.timingAllowPassed){o=se({startTime:o.startTime});i=""}o.endTime=ue();e.timingInfo=o;markResourceTiming(o,n,t,globalThis,i)}function markResourceTiming(e,t,n,o,i){if(ze>18||ze===18&&Ve>=2){performance.markResourceTiming(e,t.href,n,o,i)}}function abortFetch(e,t,n,o){if(!o){o=new Le("The operation was aborted.","AbortError")}e.reject(o);if(t.body!=null&&qe(t.body?.stream)){t.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(n==null){return}const i=n[be];if(i.body!=null&&qe(i.body?.stream)){i.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseEndOfBody:i,processResponseConsumeBody:d,useParallelQueue:p=false,dispatcher:f}){let y=null;let v=false;if(e.client!=null){y=e.client.globalObject;v=e.client.crossOriginIsolatedCapability}const D=ue(v);const M=se({startTime:D});const U={controller:new Fetch(f),request:e,timingInfo:M,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseConsumeBody:d,processResponseEndOfBody:i,taskDestination:y,crossOriginIsolatedCapability:v};we(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=j(e.client.policyContainer)}else{e.policyContainer=V()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(Te.has(e.destination)){}mainFetch(U).catch((e=>{U.controller.terminate(e)}));return U.controller}async function mainFetch(e,t=false){const n=e.request;let o=null;if(n.localURLsOnly&&!Be(ne(n))){o=i("local URLs only")}ie(n);if(K(n)==="blocked"){o=i("bad port")}if(n.referrerPolicy===""){n.referrerPolicy=n.policyContainer.referrerPolicy}if(n.referrer!=="no-referrer"){n.referrer=le(n)}if(o===null){o=await(async()=>{const t=ne(n);if(pe(t,n.url)&&n.responseTainting==="basic"||t.protocol==="data:"||(n.mode==="navigate"||n.mode==="websocket")){n.responseTainting="basic";return await schemeFetch(e)}if(n.mode==="same-origin"){return i('request mode cannot be "same-origin"')}if(n.mode==="no-cors"){if(n.redirect!=="follow"){return i('redirect mode cannot be "follow" for "no-cors" request')}n.responseTainting="opaque";return await schemeFetch(e)}if(!Ie(ne(n))){return i("URL scheme must be a HTTP(S) scheme")}n.responseTainting="cors";return await httpFetch(e)})()}if(t){return o}if(o.status!==0&&!o.internalResponse){if(n.responseTainting==="cors"){}if(n.responseTainting==="basic"){o=p(o,"basic")}else if(n.responseTainting==="cors"){o=p(o,"cors")}else if(n.responseTainting==="opaque"){o=p(o,"opaque")}else{we(false)}}let d=o.status===0?o:o.internalResponse;if(d.urlList.length===0){d.urlList.push(...n.urlList)}if(!n.timingAllowFailed){o.timingAllowPassed=true}if(o.type==="opaque"&&d.status===206&&d.rangeRequested&&!n.headers.contains("range")){o=d=i()}if(o.status!==0&&(n.method==="HEAD"||n.method==="CONNECT"||Pe.includes(d.status))){d.body=null;e.controller.dump=true}if(n.integrity){const processBodyError=t=>fetchFinale(e,i(t));if(n.responseTainting==="opaque"||o.body==null){processBodyError(o.error);return}const processBody=t=>{if(!U(t,n.integrity)){processBodyError("integrity mismatch");return}o.body=ve(t)[0];fetchFinale(e,o)};await ye(o.body,processBody,processBodyError)}else{fetchFinale(e,o)}}function schemeFetch(e){if(me(e)&&e.request.redirectCount===0){return Promise.resolve(d(e))}const{request:t}=e;const{protocol:o}=ne(t);switch(o){case"about:":{return Promise.resolve(i("about scheme is not supported"))}case"blob:":{if(!$e){$e=n(20181).resolveObjectURL}const e=ne(t);if(e.search.length!==0){return Promise.resolve(i("NetworkError when attempting to fetch resource."))}const o=$e(e.toString());if(t.method!=="GET"||!ge(o)){return Promise.resolve(i("invalid method"))}const d=ve(o);const p=d[0];const y=Ee(`${p.length}`);const v=d[1]??"";const D=f({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:y}],["content-type",{name:"Content-Type",value:v}]]});D.body=p;return Promise.resolve(D)}case"data:":{const e=ne(t);const n=Ge(e);if(n==="failure"){return Promise.resolve(i("failed to fetch the data URL"))}const o=Ye(n.mimeType);return Promise.resolve(f({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:ve(n.body)[0]}))}case"file:":{return Promise.resolve(i("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>i(e)))}default:{return Promise.resolve(i("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=se({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new je({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=n=>e.processResponseConsumeBody(t,n);const processBodyError=n=>e.processResponseConsumeBody(t,n);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return ye(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let n=null;let o=null;const d=e.timingInfo;if(t.serviceWorkers==="all"){}if(n===null){if(t.redirect==="follow"){t.serviceWorkers="none"}o=n=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&Ae(t,n)==="failure"){return i("cors failure")}if(ee(t,n)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||n.type==="opaque")&&ce(t.origin,t.client,t.destination,o)==="blocked"){return i("blocked")}if(xe.has(o.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){n=i("unexpected redirect")}else if(t.redirect==="manual"){n=o}else if(t.redirect==="follow"){n=await httpRedirectFetch(e,n)}else{we(false)}}n.timingInfo=d;return n}function httpRedirectFetch(e,t){const n=e.request;const o=t.internalResponse?t.internalResponse:t;let d;try{d=re(o,ne(n).hash);if(d==null){return t}}catch(e){return Promise.resolve(i(e))}if(!Ie(d)){return Promise.resolve(i("URL scheme must be a HTTP(S) scheme"))}if(n.redirectCount===20){return Promise.resolve(i("redirect count exceeded"))}n.redirectCount+=1;if(n.mode==="cors"&&(d.username||d.password)&&!pe(n,d)){return Promise.resolve(i('cross origin not allowed for request mode "cors"'))}if(n.responseTainting==="cors"&&(d.username||d.password)){return Promise.resolve(i('URL cannot contain credentials for request mode "cors"'))}if(o.status!==303&&n.body!=null&&n.body.source==null){return Promise.resolve(i())}if([301,302].includes(o.status)&&n.method==="POST"||o.status===303&&!Xe.includes(n.method)){n.method="GET";n.body=null;for(const e of ke){n.headersList.delete(e)}}if(!pe(ne(n),d)){n.headersList.delete("authorization");n.headersList.delete("proxy-authorization",true);n.headersList.delete("cookie");n.headersList.delete("host")}if(n.body!=null){we(n.body.source!=null);n.body=ve(n.body.source)[0]}const p=e.timingInfo;p.redirectEndTime=p.postRedirectStartTime=ue(e.crossOriginIsolatedCapability);if(p.redirectStartTime===0){p.redirectStartTime=p.startTime}n.urlList.push(d);oe(n,o);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,n=false){const o=e.request;let p=null;let f=null;let y=null;const v=null;const M=false;if(o.window==="no-window"&&o.redirect==="error"){p=e;f=o}else{f=D(o);p={...e};p.request=f}const U=o.credentials==="include"||o.credentials==="same-origin"&&o.responseTainting==="basic";const V=f.body?f.body.length:null;let j=null;if(f.body==null&&["POST","PUT"].includes(f.method)){j="0"}if(V!=null){j=Ee(`${V}`)}if(j!=null){f.headersList.append("content-length",j)}if(V!=null&&f.keepalive){}if(f.referrer instanceof URL){f.headersList.append("referer",Ee(f.referrer.href))}te(f);ae(f);if(!f.headersList.contains("user-agent")){f.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(f.cache==="default"&&(f.headersList.contains("if-modified-since")||f.headersList.contains("if-none-match")||f.headersList.contains("if-unmodified-since")||f.headersList.contains("if-match")||f.headersList.contains("if-range"))){f.cache="no-store"}if(f.cache==="no-cache"&&!f.preventNoCacheCacheControlHeaderModification&&!f.headersList.contains("cache-control")){f.headersList.append("cache-control","max-age=0")}if(f.cache==="no-store"||f.cache==="reload"){if(!f.headersList.contains("pragma")){f.headersList.append("pragma","no-cache")}if(!f.headersList.contains("cache-control")){f.headersList.append("cache-control","no-cache")}}if(f.headersList.contains("range")){f.headersList.append("accept-encoding","identity")}if(!f.headersList.contains("accept-encoding")){if(Qe(ne(f))){f.headersList.append("accept-encoding","br, gzip, deflate")}else{f.headersList.append("accept-encoding","gzip, deflate")}}f.headersList.delete("host");if(U){}if(v==null){f.cache="no-store"}if(f.mode!=="no-store"&&f.mode!=="reload"){}if(y==null){if(f.mode==="only-if-cached"){return i("only if cached")}const e=await httpNetworkFetch(p,U,n);if(!De.has(f.method)&&e.status>=200&&e.status<=399){}if(M&&e.status===304){}if(y==null){y=e}}y.urlList=[...f.urlList];if(f.headersList.contains("range")){y.rangeRequested=true}y.requestIncludesCredentials=U;if(y.status===407){if(o.window==="no-window"){return i()}if(me(e)){return d(e)}return i("proxy authentication required")}if(y.status===421&&!n&&(o.body==null||o.body.source!=null)){if(me(e)){return d(e)}e.controller.connection.destroy();y=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return y}async function httpNetworkFetch(e,t=false,o=false){we(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Le("The operation was aborted.","AbortError"))}}};const p=e.request;let v=null;const D=e.timingInfo;const U=null;if(U==null){p.cache="no-store"}const V=o?"yes":"no";if(p.mode==="websocket"){}else{}let j=null;if(p.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(p.body!=null){const processBodyChunk=async function*(t){if(me(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(me(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(me(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};j=async function*(){try{for await(const e of p.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:n,statusText:o,headersList:i,socket:d}=await dispatch({body:j});if(d){v=f({status:n,statusText:o,headersList:i,socket:d})}else{const d=t[Symbol.asyncIterator]();e.controller.next=()=>d.next();v=f({status:n,statusText:o,headersList:i})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return d(e,t)}return i(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!Ze){Ze=n(63774).ReadableStream}const K=new Ze({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});v.body={stream:K};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let n;try{const{done:n,value:o}=await e.controller.next();if(he(e)){break}t=n?undefined:o}catch(o){if(e.controller.ended&&!D.encodedBodySize){t=undefined}else{t=o;n=true}}if(t===undefined){Ce(e.controller.controller);finalizeResponse(e,v);return}D.decodedBodySize+=t?.byteLength??0;if(n){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(_e(K)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(he(e)){v.aborted=true;if(qe(K)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(qe(K)){e.controller.controller.error(new TypeError("terminated",{cause:fe(t)?t:undefined}))}}e.controller.connection.destroy()}return v;async function dispatch({body:t}){const n=ne(p);const o=e.controller.dispatcher;return new Promise(((i,d)=>o.dispatch({path:n.pathname+n.search,origin:n.origin,method:p.method,body:e.controller.dispatcher.isMockActive?p.body&&(p.body.source||p.body.stream):t,headers:p.headersList.entries,maxRedirections:0,upgrade:p.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:n}=e.controller;if(n.destroyed){t(new Le("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=n.abort=t}},onHeaders(e,t,n,o){if(e<200){return}let d=[];let f="";const v=new y;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(n.toLowerCase()==="location"){f=o}v[Oe].append(n,o)}}else{const e=Object.keys(t);for(const n of e){const e=t[n];if(n.toLowerCase()==="content-encoding"){d=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(n.toLowerCase()==="location"){f=e}v[Oe].append(n,e)}}this.body=new Fe({read:n});const D=[];const U=p.redirect==="follow"&&f&&xe.has(e);if(p.method!=="HEAD"&&p.method!=="CONNECT"&&!Pe.includes(e)&&!U){for(const e of d){if(e==="x-gzip"||e==="gzip"){D.push(M.createGunzip({flush:M.constants.Z_SYNC_FLUSH,finishFlush:M.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){D.push(M.createInflate())}else if(e==="br"){D.push(M.createBrotliDecompress())}else{D.length=0;break}}}i({status:e,statusText:o,headersList:v[Oe],body:D.length?Ue(this.body,...D,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const n=t;D.encodedBodySize+=n.byteLength;return this.body.push(n)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);d(t)},onUpgrade(e,t,n){if(e!==101){return}const o=new y;for(let e=0;e{"use strict";const{extractBody:o,mixinBody:i,cloneBody:d}=n(8923);const{Headers:p,fill:f,HeadersList:y}=n(26349);const{FinalizationRegistry:v}=n(13194)();const D=n(3440);const{isValidHTTPToken:M,sameOrigin:U,normalizeMethod:V,makePolicyContainer:j,normalizeMethodRecord:K}=n(15523);const{forbiddenMethodsSet:ee,corsSafeListedMethodsSet:te,referrerPolicy:re,requestRedirect:ne,requestMode:oe,requestCredentials:ie,requestCache:se,requestDuplex:ae}=n(87326);const{kEnumerableProperty:Ae}=D;const{kHeaders:ce,kSignal:le,kState:ue,kGuard:de,kRealm:ge}=n(89710);const{webidl:pe}=n(74222);const{getGlobalOrigin:me}=n(75628);const{URLSerializer:he}=n(94322);const{kHeadersList:fe,kConstruct:ye}=n(36443);const Ce=n(42613);const{getMaxListeners:Ee,setMaxListeners:Be,getEventListeners:Ie,defaultMaxListeners:Qe}=n(24434);let be=globalThis.TransformStream;const Se=Symbol("abortController");const Ne=new v((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===ye){return}pe.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=pe.converters.RequestInfo(e);t=pe.converters.RequestInit(t);this[ge]={settingsObject:{baseUrl:me(),get origin(){return this.baseUrl?.origin},policyContainer:j()}};let i=null;let d=null;const v=this[ge].settingsObject.baseUrl;let re=null;if(typeof e==="string"){let t;try{t=new URL(e,v)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}i=makeRequest({urlList:[t]});d="cors"}else{Ce(e instanceof Request);i=e[ue];re=e[le]}const ne=this[ge].settingsObject.origin;let oe="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&U(i.window,ne)){oe=i.window}if(t.window!=null){throw new TypeError(`'window' option '${oe}' must be null`)}if("window"in t){oe="no-window"}i=makeRequest({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:this[ge].settingsObject,window:oe,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});const ie=Object.keys(t).length!==0;if(ie){if(i.mode==="navigate"){i.mode="same-origin"}i.reloadNavigation=false;i.historyNavigation=false;i.origin="client";i.referrer="client";i.referrerPolicy="";i.url=i.urlList[i.urlList.length-1];i.urlList=[i.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){i.referrer="no-referrer"}else{let t;try{t=new URL(e,v)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||ne&&!U(t,this[ge].settingsObject.baseUrl)){i.referrer="client"}else{i.referrer=t}}}if(t.referrerPolicy!==undefined){i.referrerPolicy=t.referrerPolicy}let se;if(t.mode!==undefined){se=t.mode}else{se=d}if(se==="navigate"){throw pe.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(se!=null){i.mode=se}if(t.credentials!==undefined){i.credentials=t.credentials}if(t.cache!==undefined){i.cache=t.cache}if(i.cache==="only-if-cached"&&i.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){i.redirect=t.redirect}if(t.integrity!=null){i.integrity=String(t.integrity)}if(t.keepalive!==undefined){i.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!M(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(ee.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=K[e]??V(e);i.method=e}if(t.signal!==undefined){re=t.signal}this[ue]=i;const ae=new AbortController;this[le]=ae.signal;this[le][ge]=this[ge];if(re!=null){if(!re||typeof re.aborted!=="boolean"||typeof re.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(re.aborted){ae.abort(re.reason)}else{this[Se]=ae;const e=new WeakRef(ae);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof Ee==="function"&&Ee(re)===Qe){Be(100,re)}else if(Ie(re,"abort").length>=Qe){Be(100,re)}}catch{}D.addAbortListener(re,abort);Ne.register(ae,{signal:re,abort:abort})}}this[ce]=new p(ye);this[ce][fe]=i.headersList;this[ce][de]="request";this[ce][ge]=this[ge];if(se==="no-cors"){if(!te.has(i.method)){throw new TypeError(`'${i.method} is unsupported in no-cors mode.`)}this[ce][de]="request-no-cors"}if(ie){const e=this[ce][fe];const n=t.headers!==undefined?t.headers:new y(e);e.clear();if(n instanceof y){for(const[t,o]of n){e.append(t,o)}e.cookies=n.cookies}else{f(this[ce],n)}}const Ae=e instanceof Request?e[ue].body:null;if((t.body!=null||Ae!=null)&&(i.method==="GET"||i.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let he=null;if(t.body!=null){const[e,n]=o(t.body,i.keepalive);he=e;if(n&&!this[ce][fe].contains("content-type")){this[ce].append("content-type",n)}}const Re=he??Ae;if(Re!=null&&Re.source==null){if(he!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(i.mode!=="same-origin"&&i.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}i.useCORSPreflightFlag=true}let we=Re;if(he==null&&Ae!=null){if(D.isDisturbed(Ae.stream)||Ae.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!be){be=n(63774).TransformStream}const e=new be;Ae.stream.pipeThrough(e);we={source:Ae.source,length:Ae.length,stream:e.readable}}this[ue].body=we}get method(){pe.brandCheck(this,Request);return this[ue].method}get url(){pe.brandCheck(this,Request);return he(this[ue].url)}get headers(){pe.brandCheck(this,Request);return this[ce]}get destination(){pe.brandCheck(this,Request);return this[ue].destination}get referrer(){pe.brandCheck(this,Request);if(this[ue].referrer==="no-referrer"){return""}if(this[ue].referrer==="client"){return"about:client"}return this[ue].referrer.toString()}get referrerPolicy(){pe.brandCheck(this,Request);return this[ue].referrerPolicy}get mode(){pe.brandCheck(this,Request);return this[ue].mode}get credentials(){return this[ue].credentials}get cache(){pe.brandCheck(this,Request);return this[ue].cache}get redirect(){pe.brandCheck(this,Request);return this[ue].redirect}get integrity(){pe.brandCheck(this,Request);return this[ue].integrity}get keepalive(){pe.brandCheck(this,Request);return this[ue].keepalive}get isReloadNavigation(){pe.brandCheck(this,Request);return this[ue].reloadNavigation}get isHistoryNavigation(){pe.brandCheck(this,Request);return this[ue].historyNavigation}get signal(){pe.brandCheck(this,Request);return this[le]}get body(){pe.brandCheck(this,Request);return this[ue].body?this[ue].body.stream:null}get bodyUsed(){pe.brandCheck(this,Request);return!!this[ue].body&&D.isDisturbed(this[ue].body.stream)}get duplex(){pe.brandCheck(this,Request);return"half"}clone(){pe.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[ue]);const t=new Request(ye);t[ue]=e;t[ge]=this[ge];t[ce]=new p(ye);t[ce][fe]=e.headersList;t[ce][de]=this[ce][de];t[ce][ge]=this[ce][ge];const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{D.addAbortListener(this.signal,(()=>{n.abort(this.signal.reason)}))}t[le]=n.signal;return t}}i(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new y(e.headersList):new y};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=d(e.body)}return t}Object.defineProperties(Request.prototype,{method:Ae,url:Ae,headers:Ae,redirect:Ae,clone:Ae,signal:Ae,duplex:Ae,destination:Ae,body:Ae,bodyUsed:Ae,isHistoryNavigation:Ae,isReloadNavigation:Ae,keepalive:Ae,integrity:Ae,cache:Ae,credentials:Ae,attribute:Ae,referrerPolicy:Ae,referrer:Ae,mode:Ae,[Symbol.toStringTag]:{value:"Request",configurable:true}});pe.converters.Request=pe.interfaceConverter(Request);pe.converters.RequestInfo=function(e){if(typeof e==="string"){return pe.converters.USVString(e)}if(e instanceof Request){return pe.converters.Request(e)}return pe.converters.USVString(e)};pe.converters.AbortSignal=pe.interfaceConverter(AbortSignal);pe.converters.RequestInit=pe.dictionaryConverter([{key:"method",converter:pe.converters.ByteString},{key:"headers",converter:pe.converters.HeadersInit},{key:"body",converter:pe.nullableConverter(pe.converters.BodyInit)},{key:"referrer",converter:pe.converters.USVString},{key:"referrerPolicy",converter:pe.converters.DOMString,allowedValues:re},{key:"mode",converter:pe.converters.DOMString,allowedValues:oe},{key:"credentials",converter:pe.converters.DOMString,allowedValues:ie},{key:"cache",converter:pe.converters.DOMString,allowedValues:se},{key:"redirect",converter:pe.converters.DOMString,allowedValues:ne},{key:"integrity",converter:pe.converters.DOMString},{key:"keepalive",converter:pe.converters.boolean},{key:"signal",converter:pe.nullableConverter((e=>pe.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:pe.converters.any},{key:"duplex",converter:pe.converters.DOMString,allowedValues:ae}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,n)=>{"use strict";const{Headers:o,HeadersList:i,fill:d}=n(26349);const{extractBody:p,cloneBody:f,mixinBody:y}=n(8923);const v=n(3440);const{kEnumerableProperty:D}=v;const{isValidReasonPhrase:M,isCancelled:U,isAborted:V,isBlobLike:j,serializeJavascriptValueToJSONString:K,isErrorLike:ee,isomorphicEncode:te}=n(15523);const{redirectStatusSet:re,nullBodyStatus:ne,DOMException:oe}=n(87326);const{kState:ie,kHeaders:se,kGuard:ae,kRealm:Ae}=n(89710);const{webidl:ce}=n(74222);const{FormData:le}=n(43073);const{getGlobalOrigin:ue}=n(75628);const{URLSerializer:de}=n(94322);const{kHeadersList:ge,kConstruct:pe}=n(36443);const me=n(42613);const{types:he}=n(39023);const fe=globalThis.ReadableStream||n(63774).ReadableStream;const ye=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[ie]=makeNetworkError();t[Ae]=e;t[se][ge]=t[ie].headersList;t[se][ae]="immutable";t[se][Ae]=e;return t}static json(e,t={}){ce.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=ce.converters.ResponseInit(t)}const n=ye.encode(K(e));const o=p(n);const i={settingsObject:{}};const d=new Response;d[Ae]=i;d[se][ae]="response";d[se][Ae]=i;initializeResponse(d,t,{body:o[0],type:"application/json"});return d}static redirect(e,t=302){const n={settingsObject:{}};ce.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=ce.converters.USVString(e);t=ce.converters["unsigned short"](t);let o;try{o=new URL(e,ue())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!re.has(t)){throw new RangeError("Invalid status code "+t)}const i=new Response;i[Ae]=n;i[se][ae]="immutable";i[se][Ae]=n;i[ie].status=t;const d=te(de(o));i[ie].headersList.append("location",d);return i}constructor(e=null,t={}){if(e!==null){e=ce.converters.BodyInit(e)}t=ce.converters.ResponseInit(t);this[Ae]={settingsObject:{}};this[ie]=makeResponse({});this[se]=new o(pe);this[se][ae]="response";this[se][ge]=this[ie].headersList;this[se][Ae]=this[Ae];let n=null;if(e!=null){const[t,o]=p(e);n={body:t,type:o}}initializeResponse(this,t,n)}get type(){ce.brandCheck(this,Response);return this[ie].type}get url(){ce.brandCheck(this,Response);const e=this[ie].urlList;const t=e[e.length-1]??null;if(t===null){return""}return de(t,true)}get redirected(){ce.brandCheck(this,Response);return this[ie].urlList.length>1}get status(){ce.brandCheck(this,Response);return this[ie].status}get ok(){ce.brandCheck(this,Response);return this[ie].status>=200&&this[ie].status<=299}get statusText(){ce.brandCheck(this,Response);return this[ie].statusText}get headers(){ce.brandCheck(this,Response);return this[se]}get body(){ce.brandCheck(this,Response);return this[ie].body?this[ie].body.stream:null}get bodyUsed(){ce.brandCheck(this,Response);return!!this[ie].body&&v.isDisturbed(this[ie].body.stream)}clone(){ce.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw ce.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[ie]);const t=new Response;t[ie]=e;t[Ae]=this[Ae];t[se][ge]=e.headersList;t[se][ae]=this[se][ae];t[se][Ae]=this[se][Ae];return t}}y(Response);Object.defineProperties(Response.prototype,{type:D,url:D,status:D,ok:D,redirected:D,statusText:D,headers:D,clone:D,body:D,bodyUsed:D,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:D,redirect:D,error:D});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=f(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new i(e.headersList):new i,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=ee(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,o){me(!(n in t));e[n]=o;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{me(false)}}function makeAppropriateNetworkError(e,t=null){me(U(e));return V(e)?makeNetworkError(Object.assign(new oe("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new oe("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,n){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!M(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[ie].status=t.status}if("statusText"in t&&t.statusText!=null){e[ie].statusText=t.statusText}if("headers"in t&&t.headers!=null){d(e[se],t.headers)}if(n){if(ne.includes(e.status)){throw ce.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[ie].body=n.body;if(n.type!=null&&!e[ie].headersList.contains("Content-Type")){e[ie].headersList.append("content-type",n.type)}}}ce.converters.ReadableStream=ce.interfaceConverter(fe);ce.converters.FormData=ce.interfaceConverter(le);ce.converters.URLSearchParams=ce.interfaceConverter(URLSearchParams);ce.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return ce.converters.USVString(e)}if(j(e)){return ce.converters.Blob(e,{strict:false})}if(he.isArrayBuffer(e)||he.isTypedArray(e)||he.isDataView(e)){return ce.converters.BufferSource(e)}if(v.isFormDataLike(e)){return ce.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return ce.converters.URLSearchParams(e)}return ce.converters.DOMString(e)};ce.converters.BodyInit=function(e){if(e instanceof fe){return ce.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return ce.converters.XMLHttpRequestBodyInit(e)};ce.converters.ResponseInit=ce.dictionaryConverter([{key:"status",converter:ce.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:ce.converters.ByteString,defaultValue:""},{key:"headers",converter:ce.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{"use strict";e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,n)=>{"use strict";const{redirectStatusSet:o,referrerPolicySet:i,badPortsSet:d}=n(87326);const{getGlobalOrigin:p}=n(75628);const{performance:f}=n(82987);const{isBlobLike:y,toUSVString:v,ReadableStreamFrom:D}=n(3440);const M=n(42613);const{isUint8Array:U}=n(98253);let V=[];let j;try{j=n(76982);const e=["sha256","sha384","sha512"];V=j.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const n=t.length;return n===0?null:t[n-1].toString()}function responseLocationURL(e,t){if(!o.has(e.status)){return null}let n=e.headersList.get("location");if(n!==null&&isValidHeaderValue(n)){n=new URL(n,responseURL(e))}if(n&&!n.hash){n.hash=t}return n}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&d.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=o.length;e!==0;e--){const t=o[e-1].trim();if(i.has(t)){d=t;break}}}if(d!==""){e.referrerPolicy=d}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return f.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;M(t);let n=null;if(e.referrer==="client"){const e=p();if(!e||e.origin==="null"){return"no-referrer"}n=new URL(e)}else if(e.referrer instanceof URL){n=e.referrer}let o=stripURLForReferrer(n);const i=stripURLForReferrer(n,true);if(o.toString().length>4096){o=i}const d=sameOrigin(e,o);const f=isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return i!=null?i:stripURLForReferrer(n,true);case"unsafe-url":return o;case"same-origin":return d?i:"no-referrer";case"origin-when-cross-origin":return d?o:i;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(o,t)){return o}if(isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return i}case"strict-origin":case"no-referrer-when-downgrade":default:return f?"no-referrer":i}}function stripURLForReferrer(e,t){M(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(j===undefined){return true}const n=parseMetadata(t);if(n==="no metadata"){return true}if(n.length===0){return true}const o=getStrongestMetadata(n);const i=filterMetadataListByAlgorithm(n,o);for(const t of i){const n=t.algo;const o=t.hash;let i=j.createHash(n).update(e).digest("base64");if(i[i.length-1]==="="){if(i[i.length-2]==="="){i=i.slice(0,-2)}else{i=i.slice(0,-1)}}if(compareBase64Mixed(i,o)){return true}}return false}const K=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let n=true;for(const o of e.split(" ")){n=false;const e=K.exec(o);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const i=e.groups.algo.toLowerCase();if(V.includes(i)){t.push(e.groups)}}if(n===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let n=1;n{e=n;t=o}));return{promise:n,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const ee={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(ee,null);function normalizeMethod(e){return ee[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}M(typeof t==="string");return t}const te=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,n){const o={index:0,kind:n,target:e};const i={next(){if(Object.getPrototypeOf(this)!==i){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:n,target:d}=o;const p=d();const f=p.length;if(e>=f){return{value:undefined,done:true}}const y=p[e];o.index=e+1;return iteratorResult(y,n)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(i,te);return Object.setPrototypeOf({},i)}function iteratorResult(e,t){let n;switch(t){case"key":{n=e[0];break}case"value":{n=e[1];break}case"key+value":{n=e;break}}return{value:n,done:false}}async function fullyReadBody(e,t,n){const o=t;const i=n;let d;try{d=e.stream.getReader()}catch(e){i(e);return}try{const e=await readAllBytes(d);o(e)}catch(e){i(e)}}let re=globalThis.ReadableStream;function isReadableStreamLike(e){if(!re){re=n(63774).ReadableStream}return e instanceof re||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const ne=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:D,toUSVString:v,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:y,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:oe,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:ee,parseMetadata:parseMetadata}},74222:(e,t,n)=>{"use strict";const{types:o}=n(39023);const{hasOwn:i,toUSVString:d}=n(15523);const p={};p.converters={};p.util={};p.errors={};p.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};p.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const n=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return p.errors.exception({header:e.prefix,message:n})};p.errors.invalidArgument=function(e){return p.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};p.brandCheck=function(e,t,n=undefined){if(n?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};p.argumentLengthCheck=function({length:e},t,n){if(ei){throw p.errors.exception({header:"Integer conversion",message:`Value must be between ${d}-${i}, got ${f}.`})}return f}if(!Number.isNaN(f)&&o.clamp===true){f=Math.min(Math.max(f,d),i);if(Math.floor(f)%2===0){f=Math.floor(f)}else{f=Math.ceil(f)}return f}if(Number.isNaN(f)||f===0&&Object.is(0,f)||f===Number.POSITIVE_INFINITY||f===Number.NEGATIVE_INFINITY){return 0}f=p.util.IntegerPart(f);f=f%Math.pow(2,t);if(n==="signed"&&f>=Math.pow(2,t)-1){return f-Math.pow(2,t)}return f};p.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};p.sequenceConverter=function(e){return t=>{if(p.util.Type(t)!=="Object"){throw p.errors.exception({header:"Sequence",message:`Value of type ${p.util.Type(t)} is not an Object.`})}const n=t?.[Symbol.iterator]?.();const o=[];if(n===undefined||typeof n.next!=="function"){throw p.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:i}=n.next();if(t){break}o.push(e(i))}return o}};p.recordConverter=function(e,t){return n=>{if(p.util.Type(n)!=="Object"){throw p.errors.exception({header:"Record",message:`Value of type ${p.util.Type(n)} is not an Object.`})}const i={};if(!o.isProxy(n)){const o=Object.keys(n);for(const d of o){const o=e(d);const p=t(n[d]);i[o]=p}return i}const d=Reflect.ownKeys(n);for(const o of d){const d=Reflect.getOwnPropertyDescriptor(n,o);if(d?.enumerable){const d=e(o);const p=t(n[o]);i[d]=p}}return i}};p.interfaceConverter=function(e){return(t,n={})=>{if(n.strict!==false&&!(t instanceof e)){throw p.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};p.dictionaryConverter=function(e){return t=>{const n=p.util.Type(t);const o={};if(n==="Null"||n==="Undefined"){return o}else if(n!=="Object"){throw p.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const n of e){const{key:e,defaultValue:d,required:f,converter:y}=n;if(f===true){if(!i(t,e)){throw p.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let v=t[e];const D=i(n,"defaultValue");if(D&&v!==null){v=v??d}if(f||D||v!==undefined){v=y(v);if(n.allowedValues&&!n.allowedValues.includes(v)){throw p.errors.exception({header:"Dictionary",message:`${v} is not an accepted type. Expected one of ${n.allowedValues.join(", ")}.`})}o[e]=v}}return o}};p.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};p.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};p.converters.ByteString=function(e){const t=p.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};p.converters.USVString=d;p.converters.boolean=function(e){const t=Boolean(e);return t};p.converters.any=function(e){return e};p.converters["long long"]=function(e){const t=p.util.ConvertToInt(e,64,"signed");return t};p.converters["unsigned long long"]=function(e){const t=p.util.ConvertToInt(e,64,"unsigned");return t};p.converters["unsigned long"]=function(e){const t=p.util.ConvertToInt(e,32,"unsigned");return t};p.converters["unsigned short"]=function(e,t){const n=p.util.ConvertToInt(e,16,"unsigned",t);return n};p.converters.ArrayBuffer=function(e,t={}){if(p.util.Type(e)!=="Object"||!o.isAnyArrayBuffer(e)){throw p.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&o.isSharedArrayBuffer(e)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};p.converters.TypedArray=function(e,t,n={}){if(p.util.Type(e)!=="Object"||!o.isTypedArray(e)||e.constructor.name!==t.name){throw p.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(n.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};p.converters.DataView=function(e,t={}){if(p.util.Type(e)!=="Object"||!o.isDataView(e)){throw p.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};p.converters.BufferSource=function(e,t={}){if(o.isAnyArrayBuffer(e)){return p.converters.ArrayBuffer(e,t)}if(o.isTypedArray(e)){return p.converters.TypedArray(e,e.constructor)}if(o.isDataView(e)){return p.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};p.converters["sequence"]=p.sequenceConverter(p.converters.ByteString);p.converters["sequence>"]=p.sequenceConverter(p.converters["sequence"]);p.converters["record"]=p.recordConverter(p.converters.ByteString,p.converters.ByteString);e.exports={webidl:p}},40396:e=>{"use strict";function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,n)=>{"use strict";const{staticPropertyDescriptors:o,readOperation:i,fireAProgressEvent:d}=n(10165);const{kState:p,kError:f,kResult:y,kEvents:v,kAborted:D}=n(86812);const{webidl:M}=n(74222);const{kEnumerableProperty:U}=n(3440);class FileReader extends EventTarget{constructor(){super();this[p]="empty";this[y]=null;this[f]=null;this[v]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=M.converters.Blob(e,{strict:false});i(this,e,"ArrayBuffer")}readAsBinaryString(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=M.converters.Blob(e,{strict:false});i(this,e,"BinaryString")}readAsText(e,t=undefined){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=M.converters.Blob(e,{strict:false});if(t!==undefined){t=M.converters.DOMString(t)}i(this,e,"Text",t)}readAsDataURL(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=M.converters.Blob(e,{strict:false});i(this,e,"DataURL")}abort(){if(this[p]==="empty"||this[p]==="done"){this[y]=null;return}if(this[p]==="loading"){this[p]="done";this[y]=null}this[D]=true;d("abort",this);if(this[p]!=="loading"){d("loadend",this)}}get readyState(){M.brandCheck(this,FileReader);switch(this[p]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){M.brandCheck(this,FileReader);return this[y]}get error(){M.brandCheck(this,FileReader);return this[f]}get onloadend(){M.brandCheck(this,FileReader);return this[v].loadend}set onloadend(e){M.brandCheck(this,FileReader);if(this[v].loadend){this.removeEventListener("loadend",this[v].loadend)}if(typeof e==="function"){this[v].loadend=e;this.addEventListener("loadend",e)}else{this[v].loadend=null}}get onerror(){M.brandCheck(this,FileReader);return this[v].error}set onerror(e){M.brandCheck(this,FileReader);if(this[v].error){this.removeEventListener("error",this[v].error)}if(typeof e==="function"){this[v].error=e;this.addEventListener("error",e)}else{this[v].error=null}}get onloadstart(){M.brandCheck(this,FileReader);return this[v].loadstart}set onloadstart(e){M.brandCheck(this,FileReader);if(this[v].loadstart){this.removeEventListener("loadstart",this[v].loadstart)}if(typeof e==="function"){this[v].loadstart=e;this.addEventListener("loadstart",e)}else{this[v].loadstart=null}}get onprogress(){M.brandCheck(this,FileReader);return this[v].progress}set onprogress(e){M.brandCheck(this,FileReader);if(this[v].progress){this.removeEventListener("progress",this[v].progress)}if(typeof e==="function"){this[v].progress=e;this.addEventListener("progress",e)}else{this[v].progress=null}}get onload(){M.brandCheck(this,FileReader);return this[v].load}set onload(e){M.brandCheck(this,FileReader);if(this[v].load){this.removeEventListener("load",this[v].load)}if(typeof e==="function"){this[v].load=e;this.addEventListener("load",e)}else{this[v].load=null}}get onabort(){M.brandCheck(this,FileReader);return this[v].abort}set onabort(e){M.brandCheck(this,FileReader);if(this[v].abort){this.removeEventListener("abort",this[v].abort)}if(typeof e==="function"){this[v].abort=e;this.addEventListener("abort",e)}else{this[v].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:o,LOADING:o,DONE:o,readAsArrayBuffer:U,readAsBinaryString:U,readAsText:U,readAsDataURL:U,abort:U,readyState:U,result:U,error:U,onloadstart:U,onprogress:U,onload:U,onabort:U,onerror:U,onloadend:U,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:o,LOADING:o,DONE:o});e.exports={FileReader:FileReader}},15976:(e,t,n)=>{"use strict";const{webidl:o}=n(74222);const i=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=o.converters.DOMString(e);t=o.converters.ProgressEventInit(t??{});super(e,t);this[i]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){o.brandCheck(this,ProgressEvent);return this[i].lengthComputable}get loaded(){o.brandCheck(this,ProgressEvent);return this[i].loaded}get total(){o.brandCheck(this,ProgressEvent);return this[i].total}}o.converters.ProgressEventInit=o.dictionaryConverter([{key:"lengthComputable",converter:o.converters.boolean,defaultValue:false},{key:"loaded",converter:o.converters["unsigned long long"],defaultValue:0},{key:"total",converter:o.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:o.converters.boolean,defaultValue:false},{key:"cancelable",converter:o.converters.boolean,defaultValue:false},{key:"composed",converter:o.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{"use strict";e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,n)=>{"use strict";const{kState:o,kError:i,kResult:d,kAborted:p,kLastProgressEventFired:f}=n(86812);const{ProgressEvent:y}=n(15976);const{getEncoding:v}=n(40396);const{DOMException:D}=n(87326);const{serializeAMimeType:M,parseMIMEType:U}=n(94322);const{types:V}=n(39023);const{StringDecoder:j}=n(13193);const{btoa:K}=n(20181);const ee={enumerable:true,writable:false,configurable:false};function readOperation(e,t,n,y){if(e[o]==="loading"){throw new D("Invalid state","InvalidStateError")}e[o]="loading";e[d]=null;e[i]=null;const v=t.stream();const M=v.getReader();const U=[];let j=M.read();let K=true;(async()=>{while(!e[p]){try{const{done:v,value:D}=await j;if(K&&!e[p]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}K=false;if(!v&&V.isUint8Array(D)){U.push(D);if((e[f]===undefined||Date.now()-e[f]>=50)&&!e[p]){e[f]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}j=M.read()}else if(v){queueMicrotask((()=>{e[o]="done";try{const o=packageData(U,n,t.type,y);if(e[p]){return}e[d]=o;fireAProgressEvent("load",e)}catch(t){e[i]=t;fireAProgressEvent("error",e)}if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[p]){return}queueMicrotask((()=>{e[o]="done";e[i]=t;fireAProgressEvent("error",e);if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const n=new y(e,{bubbles:false,cancelable:false});t.dispatchEvent(n)}function packageData(e,t,n,o){switch(t){case"DataURL":{let t="data:";const o=U(n||"application/octet-stream");if(o!=="failure"){t+=M(o)}t+=";base64,";const i=new j("latin1");for(const n of e){t+=K(i.write(n))}t+=K(i.end());return t}case"Text":{let t="failure";if(o){t=v(o)}if(t==="failure"&&n){const e=U(n);if(e!=="failure"){t=v(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const n=new j("latin1");for(const o of e){t+=n.write(o)}t+=n.end();return t}}}function decode(e,t){const n=combineByteSequences(e);const o=BOMSniffing(n);let i=0;if(o!==null){t=o;i=o==="UTF-8"?3:2}const d=n.slice(i);return new TextDecoder(t).decode(d)}function BOMSniffing(e){const[t,n,o]=e;if(t===239&&n===187&&o===191){return"UTF-8"}else if(t===254&&n===255){return"UTF-16BE"}else if(t===255&&n===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let n=0;return e.reduce(((e,t)=>{e.set(t,n);n+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:ee,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,n)=>{"use strict";const o=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:i}=n(68707);const d=n(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new d)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new i("Argument agent must implement Agent")}Object.defineProperty(globalThis,o,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[o]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{"use strict";e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,n)=>{"use strict";const o=n(3440);const{kBodyUsed:i}=n(36443);const d=n(42613);const{InvalidArgumentError:p}=n(68707);const f=n(24434);const y=[300,301,302,303,307,308];const v=Symbol("body");class BodyAsyncIterable{constructor(e){this[v]=e;this[i]=false}async*[Symbol.asyncIterator](){d(!this[i],"disturbed");this[i]=true;yield*this[v]}}class RedirectHandler{constructor(e,t,n,y){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxRedirections must be a positive number")}o.validateHandler(y,n.method,n.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...n,maxRedirections:0};this.maxRedirections=t;this.handler=y;this.history=[];if(o.isStream(this.opts.body)){if(o.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){d(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[i]=false;f.prototype.on.call(this.opts.body,"data",(function(){this[i]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&o.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,i){this.location=this.history.length>=this.maxRedirections||o.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,n,i)}const{origin:d,pathname:p,search:f}=o.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const y=f?`${p}${f}`:p;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==d);this.opts.path=y;this.opts.origin=d;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(y.indexOf(e)===-1){return null}for(let e=0;e{const o=n(42613);const{kRetryHandlerDefaultRetry:i}=n(36443);const{RequestRetryError:d}=n(68707);const{isDisturbed:p,parseHeaders:f,parseRangeHeader:y}=n(3440);function calculateRetryAfterHeader(e){const t=Date.now();const n=new Date(e).getTime()-t;return n}class RetryHandler{constructor(e,t){const{retryOptions:n,...o}=e;const{retry:d,maxRetries:p,maxTimeout:f,minTimeout:y,timeoutFactor:v,methods:D,errorCodes:M,retryAfter:U,statusCodes:V}=n??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=o;this.abort=null;this.aborted=false;this.retryOpts={retry:d??RetryHandler[i],retryAfter:U??true,maxTimeout:f??30*1e3,timeout:y??500,timeoutFactor:v??2,maxRetries:p??5,methods:D??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:V??[500,502,503,504,429],errorCodes:M??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,n){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,n)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[i](e,{state:t,opts:n},o){const{statusCode:i,code:d,headers:p}=e;const{method:f,retryOptions:y}=n;const{maxRetries:v,timeout:D,maxTimeout:M,timeoutFactor:U,statusCodes:V,errorCodes:j,methods:K}=y;let{counter:ee,currentTimeout:te}=t;te=te!=null&&te>0?te:D;if(d&&d!=="UND_ERR_REQ_RETRY"&&d!=="UND_ERR_SOCKET"&&!j.includes(d)){o(e);return}if(Array.isArray(K)&&!K.includes(f)){o(e);return}if(i!=null&&Array.isArray(V)&&!V.includes(i)){o(e);return}if(ee>v){o(e);return}let re=p!=null&&p["retry-after"];if(re){re=Number(re);re=isNaN(re)?calculateRetryAfterHeader(re):re*1e3}const ne=re>0?Math.min(re,M):Math.min(te*U**ee,M);t.currentTimeout=ne;setTimeout((()=>o(null)),ne)}onHeaders(e,t,n,i){const p=f(t);this.retryCount+=1;if(e>=300){this.abort(new d("Request failed",e,{headers:p,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=y(p["content-range"]);if(!t){this.abort(new d("Content-Range mismatch",e,{headers:p,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==p.etag){this.abort(new d("ETag mismatch",e,{headers:p,count:this.retryCount}));return false}const{start:i,size:f,end:v=f}=t;o(this.start===i,"content-range mismatch");o(this.end==null||this.end===v,"content-range mismatch");this.resume=n;return true}if(this.end==null){if(e===206){const d=y(p["content-range"]);if(d==null){return this.handler.onHeaders(e,t,n,i)}const{start:f,size:v,end:D=v}=d;o(f!=null&&Number.isFinite(f)&&this.start!==f,"content-range mismatch");o(Number.isFinite(f));o(D!=null&&Number.isFinite(D)&&this.end!==D,"invalid content-length");this.start=f;this.end=D}if(this.end==null){const e=p["content-length"];this.end=e!=null?Number(e):null}o(Number.isFinite(this.start));o(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=n;this.etag=p.etag!=null?p.etag:null;return this.handler.onHeaders(e,t,n,i)}const v=new d("Request failed",e,{headers:p,count:this.retryCount});this.abort(v);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||p(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||p(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,n)=>{"use strict";const o=n(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(n,i){const{maxRedirections:d=e}=n;if(!d){return t(n,i)}const p=new o(t,d,n,i);n={...n,maxRedirections:0};return t(n,p)}}e.exports=createRedirectInterceptor},52824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const o=n(50172);var i;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(i=t.ERROR||(t.ERROR={}));var d;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(d=t.TYPE||(t.TYPE={}));var p;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(p=t.FLAGS||(t.FLAGS={}));var f;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(f=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var y;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(y=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[y.DELETE,y.GET,y.HEAD,y.POST,y.PUT,y.CONNECT,y.OPTIONS,y.TRACE,y.COPY,y.LOCK,y.MKCOL,y.MOVE,y.PROPFIND,y.PROPPATCH,y.SEARCH,y.UNLOCK,y.BIND,y.REBIND,y.UNBIND,y.ACL,y.REPORT,y.MKACTIVITY,y.CHECKOUT,y.MERGE,y["M-SEARCH"],y.NOTIFY,y.SUBSCRIBE,y.UNSUBSCRIBE,y.PATCH,y.PURGE,y.MKCALENDAR,y.LINK,y.UNLINK,y.PRI,y.SOURCE];t.METHODS_ICE=[y.SOURCE];t.METHODS_RTSP=[y.OPTIONS,y.DESCRIBE,y.ANNOUNCE,y.SETUP,y.PLAY,y.PAUSE,y.TEARDOWN,y.GET_PARAMETER,y.SET_PARAMETER,y.REDIRECT,y.RECORD,y.FLUSH,y.GET,y.POST];t.METHOD_MAP=o.enumToMap(y);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var v;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(v=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var D;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(D=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:D.CONNECTION,"content-length":D.CONTENT_LENGTH,"proxy-connection":D.CONNECTION,"transfer-encoding":D.TRANSFER_ENCODING,upgrade:D.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAA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AQECfwJAAkACQCAALQAqRQ0AIAAtACtFDQBBACEBIAAvATAiAkECcUUNAQwCC0EAIQEgAC8BMCICQQFxRQ0BC0EBIQEgAC0AKEEBRg0AIAAvATJB//8DcSIAQZx/akHkAEkNACAAQcwBRg0AIABBsAJGDQAgAkHAAHENAEEAIQEgAkGIBHFBgARGDQAgAkEocUEARyEBCyABC1kAIABBGGpCADcDACAAQgA3AwAgAEE4akIANwMAIABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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MQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYC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0AIAAgAjYCFCAAIAE2AgwgASEDCyADC+TzAQMOfwN+BH8jgICAgABBEGsiAySAgICAACABIQQgASEFIAEhBiABIQcgASEIIAEhCSABIQogASELIAEhDCABIQ0gASEOIAEhDwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAKAIcIhBBf2oO3QHaAQHZAQIDBAUGBwgJCgsMDQ7YAQ8Q1wEREtYBExQVFhcYGRob4AHfARwdHtUBHyAhIiMkJdQBJicoKSorLNMB0gEtLtEB0AEvMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUbbAUdISUrPAc4BS80BTMwBTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AcsBygG4AckBuQ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ASEQDAILQcIBIRAMAQtBwQEhEAsDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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DCwJAIAEiASACRg0AIAFBAWohAUEQIRAM1AMLQQchEAzsAwsgAEIAIAApAyAiESACIAEiEGutIhJ9IhMgEyARVhs3AyAgESASViIURQ3lAUEIIRAM6wMLAkAgASIBIAJGDQAgAEGJgICAADYCCCAAIAE2AgQgASEBQRQhEAzSAwtBCSEQDOoDCyABIQEgACkDIFAN5AEgASEBDPICCwJAIAEiASACRw0AQQshEAzpAwsgACABQQFqIgEgAhC2gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeUBIAEhAQzyAgsgACABIgEgAhC4gICAACIQDeYBIAEhAQwNCyAAIAEiASACELqAgIAAIhAN5wEgASEBDPACCwJAIAEiASACRw0AQQ8hEAzlAwsgAS0AACIQQTtGDQggEEENRw3oASABQQFqIQEM7wILIAAgASIBIAIQuoCAgAAiEA3oASABIQEM8gILA0ACQCABLQAAQfC1gIAAai0AACIQQQFGDQAgEEECRw3rASAAKAIEIRAgAEEANgIEIAAgECABQQFqIgEQuYCAgAAiEA3qASABIQEM9AILIAFBAWoiASACRw0AC0ESIRAM4gMLIAAgASIBIAIQuoCAgAAiEA3pASABIQEMCgsgASIBIAJHDQZBGyEQDOADCwJAIAEiASACRw0AQRYhEAzgAwsgAEGKgICAADYCCCAAIAE2AgQgACABIAIQuICAgAAiEA3qASABIQFBICEQDMYDCwJAIAEiASACRg0AA0ACQCABLQAAQfC3gIAAai0AACIQQQJGDQACQCAQQX9qDgTlAewBAOsB7AELIAFBAWohAUEIIRAMyAMLIAFBAWoiASACRw0AC0EVIRAM3wMLQRUhEAzeAwsDQAJAIAEtAABB8LmAgABqLQAAIhBBAkYNACAQQX9qDgTeAewB4AHrAewBCyABQQFqIgEgAkcNAAtBGCEQDN0DCwJAIAEiASACRg0AIABBi4CAgAA2AgggACABNgIEIAEhAUEHIRAMxAMLQRkhEAzcAwsgAUEBaiEBDAILAkAgASIUIAJHDQBBGiEQDNsDCyAUIQECQCAULQAAQXNqDhTdAu4C7gLuAu4C7gLuAu4C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BC08NACABIQEMVQsCQCAQQQZLDQBBASAQdEHKAHFFDQAgASEBDFULQQAhECAAQQA2AhwgACABNgIUIABB94mAgAA2AhAgAEEINgIMDLUBCyAQQRVGDXEgAEEANgIcIAAgATYCFCAAQbmNgIAANgIQIABBGjYCDEEAIRAMtAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFQLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKe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MDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((n=>{const o=e[n];if(typeof o==="number"){t[n]=o}}));return t}t.enumToMap=enumToMap},47501:(e,t,n)=>{"use strict";const{kClients:o}=n(36443);const i=n(59965);const{kAgent:d,kMockAgentSet:p,kMockAgentGet:f,kDispatches:y,kIsMockActive:v,kNetConnect:D,kGetNetConnect:M,kOptions:U,kFactory:V}=n(91117);const j=n(47365);const K=n(94004);const{matchValue:ee,buildMockOptions:te}=n(53397);const{InvalidArgumentError:re,UndiciError:ne}=n(68707);const oe=n(28611);const ie=n(91529);const se=n(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends oe{constructor(e){super(e);this[D]=true;this[v]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new re("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new i(e);this[d]=t;this[o]=t[o];this[U]=te(e)}get(e){let t=this[f](e);if(!t){t=this[V](e);this[p](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[d].dispatch(e,t)}async close(){await this[d].close();this[o].clear()}deactivate(){this[v]=false}activate(){this[v]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[D])){this[D].push(e)}else{this[D]=[e]}}else if(typeof e==="undefined"){this[D]=true}else{throw new re("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[D]=false}get isMockActive(){return this[v]}[p](e,t){this[o].set(e,new FakeWeakRef(t))}[V](e){const t=Object.assign({agent:this},this[U]);return this[U]&&this[U].connections===1?new j(e,t):new K(e,t)}[f](e){const t=this[o].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[V]("http://localhost:9999");this[p](e,t);return t}for(const[t,n]of Array.from(this[o])){const o=n.deref();if(o&&typeof t!=="string"&&ee(t,e)){const t=this[V](e);this[p](e,t);t[y]=o[y];return t}}}[M](){return this[D]}pendingInterceptors(){const e=this[o];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[y].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new se}={}){const t=this.pendingInterceptors();if(t.length===0){return}const n=new ie("interceptor","interceptors").pluralize(t.length);throw new ne(`\n${n.count} ${n.noun} ${n.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,n)=>{"use strict";const{promisify:o}=n(39023);const i=n(86197);const{buildMockDispatch:d}=n(53397);const{kDispatches:p,kMockAgent:f,kClose:y,kOriginalClose:v,kOrigin:D,kOriginalDispatch:M,kConnected:U}=n(91117);const{MockInterceptor:V}=n(31511);const j=n(36443);const{InvalidArgumentError:K}=n(68707);class MockClient extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new K("Argument opts.agent must implement Agent")}this[f]=t.agent;this[D]=e;this[p]=[];this[U]=1;this[M]=this.dispatch;this[v]=this.close.bind(this);this.dispatch=d.call(this);this.close=this[y]}get[j.kConnected](){return this[U]}intercept(e){return new V(e,this[p])}async[y](){await o(this[v])();this[U]=0;this[f][j.kClients].delete(this[D])}}e.exports=MockClient},52429:(e,t,n)=>{"use strict";const{UndiciError:o}=n(68707);class MockNotMatchedError extends o{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,n)=>{"use strict";const{getResponseData:o,buildKey:i,addMockDispatch:d}=n(53397);const{kDispatches:p,kDispatchKey:f,kDefaultHeaders:y,kDefaultTrailers:v,kContentLength:D,kMockDispatch:M}=n(91117);const{InvalidArgumentError:U}=n(68707);const{buildURL:V}=n(3440);class MockScope{constructor(e){this[M]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new U("waitInMs must be a valid integer > 0")}this[M].delay=e;return this}persist(){this[M].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new U("repeatTimes must be a valid integer > 0")}this[M].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new U("opts must be an object")}if(typeof e.path==="undefined"){throw new U("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=V(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[f]=i(e);this[p]=t;this[y]={};this[v]={};this[D]=false}createMockScopeDispatchData(e,t,n={}){const i=o(t);const d=this[D]?{"content-length":i.length}:{};const p={...this[y],...d,...n.headers};const f={...this[v],...n.trailers};return{statusCode:e,data:t,headers:p,trailers:f}}validateReplyParameters(e,t,n){if(typeof e==="undefined"){throw new U("statusCode must be defined")}if(typeof t==="undefined"){throw new U("data must be defined")}if(typeof n!=="object"){throw new U("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const n=e(t);if(typeof n!=="object"){throw new U("reply options callback must return an object")}const{statusCode:o,data:i="",responseOptions:d={}}=n;this.validateReplyParameters(o,i,d);return{...this.createMockScopeDispatchData(o,i,d)}};const t=d(this[p],this[f],wrappedDefaultsCallback);return new MockScope(t)}const[t,n="",o={}]=[...arguments];this.validateReplyParameters(t,n,o);const i=this.createMockScopeDispatchData(t,n,o);const y=d(this[p],this[f],i);return new MockScope(y)}replyWithError(e){if(typeof e==="undefined"){throw new U("error must be defined")}const t=d(this[p],this[f],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new U("headers must be defined")}this[y]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new U("trailers must be defined")}this[v]=e;return this}replyContentLength(){this[D]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,n)=>{"use strict";const{promisify:o}=n(39023);const i=n(35076);const{buildMockDispatch:d}=n(53397);const{kDispatches:p,kMockAgent:f,kClose:y,kOriginalClose:v,kOrigin:D,kOriginalDispatch:M,kConnected:U}=n(91117);const{MockInterceptor:V}=n(31511);const j=n(36443);const{InvalidArgumentError:K}=n(68707);class MockPool extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new K("Argument opts.agent must implement Agent")}this[f]=t.agent;this[D]=e;this[p]=[];this[U]=1;this[M]=this.dispatch;this[v]=this.close.bind(this);this.dispatch=d.call(this);this.close=this[y]}get[j.kConnected](){return this[U]}intercept(e){return new V(e,this[p])}async[y](){await o(this[v])();this[U]=0;this[f][j.kClients].delete(this[D])}}e.exports=MockPool},91117:e=>{"use strict";e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,n)=>{"use strict";const{MockNotMatchedError:o}=n(52429);const{kDispatches:i,kMockAgent:d,kOriginalDispatch:p,kOrigin:f,kGetNetConnect:y}=n(91117);const{buildURL:v,nop:D}=n(3440);const{STATUS_CODES:M}=n(58611);const{types:{isPromise:U}}=n(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let n=0;n!e)).filter((({path:e})=>matchValue(safeUrl(e),i)));if(d.length===0){throw new o(`Mock dispatch not matched for path '${i}'`)}d=d.filter((({method:e})=>matchValue(e,t.method)));if(d.length===0){throw new o(`Mock dispatch not matched for method '${t.method}'`)}d=d.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(d.length===0){throw new o(`Mock dispatch not matched for body '${t.body}'`)}d=d.filter((e=>matchHeaders(e,t.headers)));if(d.length===0){throw new o(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return d[0]}function addMockDispatch(e,t,n){const o={timesInvoked:0,times:1,persist:false,consumed:false};const i=typeof n==="function"?{callback:n}:{...n};const d={...o,...t,pending:true,data:{error:null,...i}};e.push(d);return d}function deleteMockDispatch(e,t){const n=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(n!==-1){e.splice(n,1)}}function buildKey(e){const{path:t,method:n,body:o,headers:i,query:d}=e;return{path:t,method:n,body:o,headers:i,query:d}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,n])=>[...e,Buffer.from(`${t}`),Array.isArray(n)?n.map((e=>Buffer.from(`${e}`))):Buffer.from(`${n}`)]),[])}function getStatusText(e){return M[e]||"unknown"}async function getResponse(e){const t=[];for await(const n of e){t.push(n)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const n=buildKey(e);const o=getMockDispatch(this[i],n);o.timesInvoked++;if(o.data.callback){o.data={...o.data,...o.data.callback(e)}}const{data:{statusCode:d,data:p,headers:f,trailers:y,error:v},delay:M,persist:V}=o;const{timesInvoked:j,times:K}=o;o.consumed=!V&&j>=K;o.pending=j0){setTimeout((()=>{handleReply(this[i])}),M)}else{handleReply(this[i])}function handleReply(o,i=p){const v=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const M=typeof i==="function"?i({...e,headers:v}):i;if(U(M)){M.then((e=>handleReply(o,e)));return}const V=getResponseData(M);const j=generateKeyValues(f);const K=generateKeyValues(y);t.abort=D;t.onHeaders(d,j,resume,getStatusText(d));t.onData(Buffer.from(V));t.onComplete(K);deleteMockDispatch(o,n)}function resume(){}return true}function buildMockDispatch(){const e=this[d];const t=this[f];const n=this[p];return function dispatch(i,d){if(e.isMockActive){try{mockDispatch.call(this,i,d)}catch(p){if(p instanceof o){const f=e[y]();if(f===false){throw new o(`${p.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(f,t)){n.call(this,i,d)}else{throw new o(`${p.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw p}}}else{n.call(this,i,d)}}}function checkNetConnect(e,t){const n=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,n.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...n}=e;return n}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,n)=>{"use strict";const{Transform:o}=n(2203);const{Console:i}=n(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new o({transform(e,t,n){n(null,e)}});this.logger=new i({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:n},persist:o,times:i,timesInvoked:d,origin:p})=>({Method:e,Origin:p,Path:t,"Status code":n,Persistent:o?"✅":"❌",Invocations:d,Remaining:o?Infinity:i-d})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{"use strict";const t={pronoun:"it",is:"is",was:"was",this:"this"};const n={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const o=e===1;const i=o?t:n;const d=o?this.singular:this.plural;return{...i,count:e,noun:d}}}},34869:e=>{"use strict";const t=2048;const n=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&n)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&n}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&n;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,n)=>{"use strict";const o=n(50001);const i=n(34869);const{kConnected:d,kSize:p,kRunning:f,kPending:y,kQueued:v,kBusy:D,kFree:M,kUrl:U,kClose:V,kDestroy:j,kDispatch:K}=n(36443);const ee=n(24622);const te=Symbol("clients");const re=Symbol("needDrain");const ne=Symbol("queue");const oe=Symbol("closed resolve");const ie=Symbol("onDrain");const se=Symbol("onConnect");const ae=Symbol("onDisconnect");const Ae=Symbol("onConnectionError");const ce=Symbol("get dispatcher");const le=Symbol("add client");const ue=Symbol("remove client");const de=Symbol("stats");class PoolBase extends o{constructor(){super();this[ne]=new i;this[te]=[];this[v]=0;const e=this;this[ie]=function onDrain(t,n){const o=e[ne];let i=false;while(!i){const t=o.shift();if(!t){break}e[v]--;i=!this.dispatch(t.opts,t.handler)}this[re]=i;if(!this[re]&&e[re]){e[re]=false;e.emit("drain",t,[e,...n])}if(e[oe]&&o.isEmpty()){Promise.all(e[te].map((e=>e.close()))).then(e[oe])}};this[se]=(t,n)=>{e.emit("connect",t,[e,...n])};this[ae]=(t,n,o)=>{e.emit("disconnect",t,[e,...n],o)};this[Ae]=(t,n,o)=>{e.emit("connectionError",t,[e,...n],o)};this[de]=new ee(this)}get[D](){return this[re]}get[d](){return this[te].filter((e=>e[d])).length}get[M](){return this[te].filter((e=>e[d]&&!e[re])).length}get[y](){let e=this[v];for(const{[y]:t}of this[te]){e+=t}return e}get[f](){let e=0;for(const{[f]:t}of this[te]){e+=t}return e}get[p](){let e=this[v];for(const{[p]:t}of this[te]){e+=t}return e}get stats(){return this[de]}async[V](){if(this[ne].isEmpty()){return Promise.all(this[te].map((e=>e.close())))}else{return new Promise((e=>{this[oe]=e}))}}async[j](e){while(true){const t=this[ne].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[te].map((t=>t.destroy(e))))}[K](e,t){const n=this[ce]();if(!n){this[re]=true;this[ne].push({opts:e,handler:t});this[v]++}else if(!n.dispatch(e,t)){n[re]=true;this[re]=!this[ce]()}return!this[re]}[le](e){e.on("drain",this[ie]).on("connect",this[se]).on("disconnect",this[ae]).on("connectionError",this[Ae]);this[te].push(e);if(this[re]){process.nextTick((()=>{if(this[re]){this[ie](e[U],[this,e])}}))}return this}[ue](e){e.close((()=>{const t=this[te].indexOf(e);if(t!==-1){this[te].splice(t,1)}}));this[re]=this[te].some((e=>!e[re]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:te,kNeedDrain:re,kAddClient:le,kRemoveClient:ue,kGetDispatcher:ce}},24622:(e,t,n)=>{const{kFree:o,kConnected:i,kPending:d,kQueued:p,kRunning:f,kSize:y}=n(36443);const v=Symbol("pool");class PoolStats{constructor(e){this[v]=e}get connected(){return this[v][i]}get free(){return this[v][o]}get pending(){return this[v][d]}get queued(){return this[v][p]}get running(){return this[v][f]}get size(){return this[v][y]}}e.exports=PoolStats},35076:(e,t,n)=>{"use strict";const{PoolBase:o,kClients:i,kNeedDrain:d,kAddClient:p,kGetDispatcher:f}=n(58640);const y=n(86197);const{InvalidArgumentError:v}=n(68707);const D=n(3440);const{kUrl:M,kInterceptors:U}=n(36443);const V=n(59136);const j=Symbol("options");const K=Symbol("connections");const ee=Symbol("factory");function defaultFactory(e,t){return new y(e,t)}class Pool extends o{constructor(e,{connections:t,factory:n=defaultFactory,connect:o,connectTimeout:d,tls:p,maxCachedSessions:f,socketPath:y,autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re,allowH2:ne,...oe}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new v("invalid connections")}if(typeof n!=="function"){throw new v("factory must be a function.")}if(o!=null&&typeof o!=="function"&&typeof o!=="object"){throw new v("connect must be a function or an object")}if(typeof o!=="function"){o=V({...p,maxCachedSessions:f,allowH2:ne,socketPath:y,timeout:d,...D.nodeHasAutoSelectFamily&&te?{autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re}:undefined,...o})}this[U]=oe.interceptors&&oe.interceptors.Pool&&Array.isArray(oe.interceptors.Pool)?oe.interceptors.Pool:[];this[K]=t||null;this[M]=D.parseOrigin(e);this[j]={...D.deepClone(oe),connect:o,allowH2:ne};this[j].interceptors=oe.interceptors?{...oe.interceptors}:undefined;this[ee]=n;this.on("connectionError",((e,t,n)=>{for(const e of t){const t=this[i].indexOf(e);if(t!==-1){this[i].splice(t,1)}}}))}[f](){let e=this[i].find((e=>!e[d]));if(e){return e}if(!this[K]||this[i].length{"use strict";const{kProxy:o,kClose:i,kDestroy:d,kInterceptors:p}=n(36443);const{URL:f}=n(87016);const y=n(59965);const v=n(35076);const D=n(50001);const{InvalidArgumentError:M,RequestAbortedError:U}=n(68707);const V=n(59136);const j=Symbol("proxy agent");const K=Symbol("proxy client");const ee=Symbol("proxy headers");const te=Symbol("request tls settings");const re=Symbol("proxy tls settings");const ne=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new M("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new v(e,t)}class ProxyAgent extends D{constructor(e){super(e);this[o]=buildProxyOptions(e);this[j]=new y(e);this[p]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new M("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new M("Proxy opts.clientFactory must be a function.")}this[te]=e.requestTls;this[re]=e.proxyTls;this[ee]=e.headers||{};const n=new f(e.uri);const{origin:i,port:d,host:v,username:D,password:oe}=n;if(e.auth&&e.token){throw new M("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[ee]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[ee]["proxy-authorization"]=e.token}else if(D&&oe){this[ee]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(oe)}`).toString("base64")}`}const ie=V({...e.proxyTls});this[ne]=V({...e.requestTls});this[K]=t(n,{connect:ie});this[j]=new y({...e,connect:async(e,t)=>{let n=e.host;if(!e.port){n+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:o,statusCode:p}=await this[K].connect({origin:i,port:d,path:n,signal:e.signal,headers:{...this[ee],host:v}});if(p!==200){o.on("error",(()=>{})).destroy();t(new U(`Proxy response (${p}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,o);return}let f;if(this[te]){f=this[te].servername}else{f=e.servername}this[ne]({...e,servername:f,httpSocket:o},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:n}=new f(e.origin);const o=buildHeaders(e.headers);throwIfProxyAuthIsSent(o);return this[j].dispatch({...e,headers:{...o,host:n}},t)}async[i](){await this[j].close();await this[K].close()}async[d](){await this[j].destroy();await this[K].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let n=0;ne.toLowerCase()==="proxy-authorization"));if(t){throw new M("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{"use strict";let t=Date.now();let n;const o=[];function onTimeout(){t=Date.now();let e=o.length;let n=0;while(n0&&t>=i.state){i.state=-1;i.callback(i.opaque)}if(i.state===-1){i.state=-2;if(n!==e-1){o[n]=o.pop()}else{o.pop()}e-=1}else{n+=1}}if(o.length>0){refreshTimeout()}}function refreshTimeout(){if(n&&n.refresh){n.refresh()}else{clearTimeout(n);n=setTimeout(onTimeout,1e3);if(n.unref){n.unref()}}}class Timeout{constructor(e,t,n){this.callback=e;this.delay=t;this.opaque=n;this.state=-2;this.refresh()}refresh(){if(this.state===-2){o.push(this);if(!n||o.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,n){return t<1e3?setTimeout(e,t,n):new Timeout(e,t,n)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,n)=>{"use strict";const o=n(31637);const{uid:i,states:d}=n(45913);const{kReadyState:p,kSentClose:f,kByteParser:y,kReceivedClose:v}=n(62933);const{fireEvent:D,failWebsocketConnection:M}=n(3574);const{CloseEvent:U}=n(46255);const{makeRequest:V}=n(25194);const{fetching:j}=n(12315);const{Headers:K}=n(26349);const{getGlobalDispatcher:ee}=n(32581);const{kHeadersList:te}=n(36443);const re={};re.open=o.channel("undici:websocket:open");re.close=o.channel("undici:websocket:close");re.socketError=o.channel("undici:websocket:socket_error");let ne;try{ne=n(76982)}catch{}function establishWebSocketConnection(e,t,n,o,d){const p=e;p.protocol=e.protocol==="ws:"?"http:":"https:";const f=V({urlList:[p],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(d.headers){const e=new K(d.headers)[te];f.headersList=e}const y=ne.randomBytes(16).toString("base64");f.headersList.append("sec-websocket-key",y);f.headersList.append("sec-websocket-version","13");for(const e of t){f.headersList.append("sec-websocket-protocol",e)}const v="";const D=j({request:f,useParallelQueue:true,dispatcher:d.dispatcher??ee(),processResponse(e){if(e.type==="error"||e.status!==101){M(n,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){M(n,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){M(n,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){M(n,'Server did not set Connection header to "upgrade".');return}const d=e.headersList.get("Sec-WebSocket-Accept");const p=ne.createHash("sha1").update(y+i).digest("base64");if(d!==p){M(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const D=e.headersList.get("Sec-WebSocket-Extensions");if(D!==null&&D!==v){M(n,"Received different permessage-deflate than the one set.");return}const U=e.headersList.get("Sec-WebSocket-Protocol");if(U!==null&&U!==f.headersList.get("Sec-WebSocket-Protocol")){M(n,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(re.open.hasSubscribers){re.open.publish({address:e.socket.address(),protocol:U,extensions:D})}o(e)}});return D}function onSocketData(e){if(!this.ws[y].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[f]&&e[v];let n=1005;let o="";const i=e[y].closingInfo;if(i){n=i.code??1005;o=i.reason}else if(!e[f]){n=1006}e[p]=d.CLOSED;D("close",e,U,{wasClean:t,code:n,reason:o});if(re.close.hasSubscribers){re.close.publish({websocket:e,code:n,reason:o})}}function onSocketError(e){const{ws:t}=this;t[p]=d.CLOSING;if(re.socketError.hasSubscribers){re.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{"use strict";const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const n={enumerable:true,writable:false,configurable:false};const o={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const i={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const d=2**16-1;const p={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const f=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:n,states:o,opcodes:i,maxUnsigned16Bit:d,parserStates:p,emptyBuffer:f}},46255:(e,t,n)=>{"use strict";const{webidl:o}=n(74222);const{kEnumerableProperty:i}=n(3440);const{MessagePort:d}=n(28167);class MessageEvent extends Event{#i;constructor(e,t={}){o.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=o.converters.DOMString(e);t=o.converters.MessageEventInit(t);super(e,t);this.#i=t}get data(){o.brandCheck(this,MessageEvent);return this.#i.data}get origin(){o.brandCheck(this,MessageEvent);return this.#i.origin}get lastEventId(){o.brandCheck(this,MessageEvent);return this.#i.lastEventId}get source(){o.brandCheck(this,MessageEvent);return this.#i.source}get ports(){o.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#i.ports)){Object.freeze(this.#i.ports)}return this.#i.ports}initMessageEvent(e,t=false,n=false,i=null,d="",p="",f=null,y=[]){o.brandCheck(this,MessageEvent);o.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:n,data:i,origin:d,lastEventId:p,source:f,ports:y})}}class CloseEvent extends Event{#i;constructor(e,t={}){o.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=o.converters.DOMString(e);t=o.converters.CloseEventInit(t);super(e,t);this.#i=t}get wasClean(){o.brandCheck(this,CloseEvent);return this.#i.wasClean}get code(){o.brandCheck(this,CloseEvent);return this.#i.code}get reason(){o.brandCheck(this,CloseEvent);return this.#i.reason}}class ErrorEvent extends Event{#i;constructor(e,t){o.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=o.converters.DOMString(e);t=o.converters.ErrorEventInit(t??{});this.#i=t}get message(){o.brandCheck(this,ErrorEvent);return this.#i.message}get filename(){o.brandCheck(this,ErrorEvent);return this.#i.filename}get lineno(){o.brandCheck(this,ErrorEvent);return this.#i.lineno}get colno(){o.brandCheck(this,ErrorEvent);return this.#i.colno}get error(){o.brandCheck(this,ErrorEvent);return this.#i.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:i,code:i,wasClean:i});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:i,filename:i,lineno:i,colno:i,error:i});o.converters.MessagePort=o.interfaceConverter(d);o.converters["sequence"]=o.sequenceConverter(o.converters.MessagePort);const p=[{key:"bubbles",converter:o.converters.boolean,defaultValue:false},{key:"cancelable",converter:o.converters.boolean,defaultValue:false},{key:"composed",converter:o.converters.boolean,defaultValue:false}];o.converters.MessageEventInit=o.dictionaryConverter([...p,{key:"data",converter:o.converters.any,defaultValue:null},{key:"origin",converter:o.converters.USVString,defaultValue:""},{key:"lastEventId",converter:o.converters.DOMString,defaultValue:""},{key:"source",converter:o.nullableConverter(o.converters.MessagePort),defaultValue:null},{key:"ports",converter:o.converters["sequence"],get defaultValue(){return[]}}]);o.converters.CloseEventInit=o.dictionaryConverter([...p,{key:"wasClean",converter:o.converters.boolean,defaultValue:false},{key:"code",converter:o.converters["unsigned short"],defaultValue:0},{key:"reason",converter:o.converters.USVString,defaultValue:""}]);o.converters.ErrorEventInit=o.dictionaryConverter([...p,{key:"message",converter:o.converters.DOMString,defaultValue:""},{key:"filename",converter:o.converters.USVString,defaultValue:""},{key:"lineno",converter:o.converters["unsigned long"],defaultValue:0},{key:"colno",converter:o.converters["unsigned long"],defaultValue:0},{key:"error",converter:o.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,n)=>{"use strict";const{maxUnsigned16Bit:o}=n(45913);let i;try{i=n(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=i.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let n=t;let i=6;if(t>o){i+=8;n=127}else if(t>125){i+=2;n=126}const d=Buffer.allocUnsafe(t+i);d[0]=d[1]=0;d[0]|=128;d[0]=(d[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */d[i-4]=this.maskKey[0];d[i-3]=this.maskKey[1];d[i-2]=this.maskKey[2];d[i-1]=this.maskKey[3];d[1]=n;if(n===126){d.writeUInt16BE(t,2)}else if(n===127){d[2]=d[3]=0;d.writeUIntBE(t,4,6)}d[1]|=128;for(let e=0;e{"use strict";const{Writable:o}=n(2203);const i=n(31637);const{parserStates:d,opcodes:p,states:f,emptyBuffer:y}=n(45913);const{kReadyState:v,kSentClose:D,kResponse:M,kReceivedClose:U}=n(62933);const{isValidStatusCode:V,failWebsocketConnection:j,websocketMessageReceived:K}=n(3574);const{WebsocketFrameSend:ee}=n(31237);const te={};te.ping=i.channel("undici:websocket:ping");te.pong=i.channel("undici:websocket:pong");class ByteParser extends o{#s=[];#a=0;#A=d.INFO;#c={};#l=[];constructor(e){super();this.ws=e}_write(e,t,n){this.#s.push(e);this.#a+=e.length;this.run(n)}run(e){while(true){if(this.#A===d.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#c.fin=(t[0]&128)!==0;this.#c.opcode=t[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==p.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==p.BINARY&&this.#c.opcode!==p.TEXT){j(this.ws,"Invalid frame type was fragmented.");return}const n=t[1]&127;if(n<=125){this.#c.payloadLength=n;this.#A=d.READ_DATA}else if(n===126){this.#A=d.PAYLOADLENGTH_16}else if(n===127){this.#A=d.PAYLOADLENGTH_64}if(this.#c.fragmented&&n>125){j(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===p.PING||this.#c.opcode===p.PONG||this.#c.opcode===p.CLOSE)&&n>125){j(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===p.CLOSE){if(n===1){j(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(n);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[D]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const t=new ee(e);this.ws[M].socket.write(t.createFrame(p.CLOSE),(e=>{if(!e){this.ws[D]=true}}))}this.ws[v]=f.CLOSING;this.ws[U]=true;this.end();return}else if(this.#c.opcode===p.PING){const t=this.consume(n);if(!this.ws[U]){const e=new ee(t);this.ws[M].socket.write(e.createFrame(p.PONG));if(te.ping.hasSubscribers){te.ping.publish({payload:t})}}this.#A=d.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#c.opcode===p.PONG){const t=this.consume(n);if(te.pong.hasSubscribers){te.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#A===d.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0);this.#A=d.READ_DATA}else if(this.#A===d.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){j(this.ws,"Received payload length > 2^31 bytes.");return}const o=t.readUInt32BE(4);this.#c.payloadLength=(n<<8)+o;this.#A=d.READ_DATA}else if(this.#A===d.READ_DATA){if(this.#a=this.#c.payloadLength){const e=this.consume(this.#c.payloadLength);this.#l.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===p.CONTINUATION){const e=Buffer.concat(this.#l);K(this.ws,this.#c.originalOpcode,e);this.#c={};this.#l.length=0}this.#A=d.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return y}if(this.#s[0].length===e){this.#a-=this.#s[0].length;return this.#s.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const o=this.#s[0];const{length:i}=o;if(i+n===e){t.set(this.#s.shift(),n);break}else if(i+n>e){t.set(o.subarray(0,e-n),n);this.#s[0]=o.subarray(e-n);break}else{t.set(this.#s.shift(),n);n+=o.length}}this.#a-=e;return t}parseCloseBody(e,t){let n;if(t.length>=2){n=t.readUInt16BE(0)}if(e){if(!V(n)){return null}return{code:n}}let o=t.subarray(2);if(o[0]===239&&o[1]===187&&o[2]===191){o=o.subarray(3)}if(n!==undefined&&!V(n)){return null}try{o=new TextDecoder("utf-8",{fatal:true}).decode(o)}catch{return null}return{code:n,reason:o}}get closingInfo(){return this.#c.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{"use strict";e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,n)=>{"use strict";const{kReadyState:o,kController:i,kResponse:d,kBinaryType:p,kWebSocketURL:f}=n(62933);const{states:y,opcodes:v}=n(45913);const{MessageEvent:D,ErrorEvent:M}=n(46255);function isEstablished(e){return e[o]===y.OPEN}function isClosing(e){return e[o]===y.CLOSING}function isClosed(e){return e[o]===y.CLOSED}function fireEvent(e,t,n=Event,o){const i=new n(e,o);t.dispatchEvent(i)}function websocketMessageReceived(e,t,n){if(e[o]!==y.OPEN){return}let i;if(t===v.TEXT){try{i=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===v.BINARY){if(e[p]==="blob"){i=new Blob([n])}else{i=new Uint8Array(n).buffer}}fireEvent("message",e,D,{origin:e[f].origin,data:i})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[i]:n,[d]:o}=e;n.abort();if(o?.socket&&!o.socket.destroyed){o.socket.destroy()}if(t){fireEvent("error",e,M,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,n)=>{"use strict";const{webidl:o}=n(74222);const{DOMException:i}=n(87326);const{URLSerializer:d}=n(94322);const{getGlobalOrigin:p}=n(75628);const{staticPropertyDescriptors:f,states:y,opcodes:v,emptyBuffer:D}=n(45913);const{kWebSocketURL:M,kReadyState:U,kController:V,kBinaryType:j,kResponse:K,kSentClose:ee,kByteParser:te}=n(62933);const{isEstablished:re,isClosing:ne,isValidSubprotocol:oe,failWebsocketConnection:ie,fireEvent:se}=n(3574);const{establishWebSocketConnection:ae}=n(68550);const{WebsocketFrameSend:Ae}=n(31237);const{ByteParser:ce}=n(43171);const{kEnumerableProperty:le,isBlobLike:ue}=n(3440);const{getGlobalDispatcher:de}=n(32581);const{types:ge}=n(39023);let pe=false;class WebSocket extends EventTarget{#u={open:null,error:null,close:null,message:null};#d=0;#g="";#p="";constructor(e,t=[]){super();o.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!pe){pe=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const n=o.converters["DOMString or sequence or WebSocketInit"](t);e=o.converters.USVString(e);t=n.protocols;const d=p();let f;try{f=new URL(e,d)}catch(e){throw new i(e,"SyntaxError")}if(f.protocol==="http:"){f.protocol="ws:"}else if(f.protocol==="https:"){f.protocol="wss:"}if(f.protocol!=="ws:"&&f.protocol!=="wss:"){throw new i(`Expected a ws: or wss: protocol, got ${f.protocol}`,"SyntaxError")}if(f.hash||f.href.endsWith("#")){throw new i("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new i("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>oe(e)))){throw new i("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[M]=new URL(f.href);this[V]=ae(f,t,this,(e=>this.#m(e)),n);this[U]=WebSocket.CONNECTING;this[j]="blob"}close(e=undefined,t=undefined){o.brandCheck(this,WebSocket);if(e!==undefined){e=o.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=o.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new i("invalid code","InvalidAccessError")}}let n=0;if(t!==undefined){n=Buffer.byteLength(t);if(n>123){throw new i(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError")}}if(this[U]===WebSocket.CLOSING||this[U]===WebSocket.CLOSED){}else if(!re(this)){ie(this,"Connection was closed before it was established.");this[U]=WebSocket.CLOSING}else if(!ne(this)){const o=new Ae;if(e!==undefined&&t===undefined){o.frameData=Buffer.allocUnsafe(2);o.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){o.frameData=Buffer.allocUnsafe(2+n);o.frameData.writeUInt16BE(e,0);o.frameData.write(t,2,"utf-8")}else{o.frameData=D}const i=this[K].socket;i.write(o.createFrame(v.CLOSE),(e=>{if(!e){this[ee]=true}}));this[U]=y.CLOSING}else{this[U]=WebSocket.CLOSING}}send(e){o.brandCheck(this,WebSocket);o.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=o.converters.WebSocketSendData(e);if(this[U]===WebSocket.CONNECTING){throw new i("Sent before connected.","InvalidStateError")}if(!re(this)||ne(this)){return}const t=this[K].socket;if(typeof e==="string"){const n=Buffer.from(e);const o=new Ae(n);const i=o.createFrame(v.TEXT);this.#d+=n.byteLength;t.write(i,(()=>{this.#d-=n.byteLength}))}else if(ge.isArrayBuffer(e)){const n=Buffer.from(e);const o=new Ae(n);const i=o.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(i,(()=>{this.#d-=n.byteLength}))}else if(ArrayBuffer.isView(e)){const n=Buffer.from(e,e.byteOffset,e.byteLength);const o=new Ae(n);const i=o.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(i,(()=>{this.#d-=n.byteLength}))}else if(ue(e)){const n=new Ae;e.arrayBuffer().then((e=>{const o=Buffer.from(e);n.frameData=o;const i=n.createFrame(v.BINARY);this.#d+=o.byteLength;t.write(i,(()=>{this.#d-=o.byteLength}))}))}}get readyState(){o.brandCheck(this,WebSocket);return this[U]}get bufferedAmount(){o.brandCheck(this,WebSocket);return this.#d}get url(){o.brandCheck(this,WebSocket);return d(this[M])}get extensions(){o.brandCheck(this,WebSocket);return this.#p}get protocol(){o.brandCheck(this,WebSocket);return this.#g}get onopen(){o.brandCheck(this,WebSocket);return this.#u.open}set onopen(e){o.brandCheck(this,WebSocket);if(this.#u.open){this.removeEventListener("open",this.#u.open)}if(typeof e==="function"){this.#u.open=e;this.addEventListener("open",e)}else{this.#u.open=null}}get onerror(){o.brandCheck(this,WebSocket);return this.#u.error}set onerror(e){o.brandCheck(this,WebSocket);if(this.#u.error){this.removeEventListener("error",this.#u.error)}if(typeof e==="function"){this.#u.error=e;this.addEventListener("error",e)}else{this.#u.error=null}}get onclose(){o.brandCheck(this,WebSocket);return this.#u.close}set onclose(e){o.brandCheck(this,WebSocket);if(this.#u.close){this.removeEventListener("close",this.#u.close)}if(typeof e==="function"){this.#u.close=e;this.addEventListener("close",e)}else{this.#u.close=null}}get onmessage(){o.brandCheck(this,WebSocket);return this.#u.message}set onmessage(e){o.brandCheck(this,WebSocket);if(this.#u.message){this.removeEventListener("message",this.#u.message)}if(typeof e==="function"){this.#u.message=e;this.addEventListener("message",e)}else{this.#u.message=null}}get binaryType(){o.brandCheck(this,WebSocket);return this[j]}set binaryType(e){o.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[j]="blob"}else{this[j]=e}}#m(e){this[K]=e;const t=new ce(this);t.on("drain",(function onParserDrain(){this.ws[K].socket.resume()}));e.socket.ws=this;this[te]=t;this[U]=y.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#p=n}const o=e.headersList.get("sec-websocket-protocol");if(o!==null){this.#g=o}se("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=y.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=y.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=y.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=y.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f,url:le,readyState:le,bufferedAmount:le,onopen:le,onerror:le,onclose:le,close:le,onmessage:le,binaryType:le,send:le,extensions:le,protocol:le,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f});o.converters["sequence"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence"]=function(e){if(o.util.Type(e)==="Object"&&Symbol.iterator in e){return o.converters["sequence"](e)}return o.converters.DOMString(e)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return de()}},{key:"headers",converter:o.nullableConverter(o.converters.HeadersInit)}]);o.converters["DOMString or sequence or WebSocketInit"]=function(e){if(o.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return o.converters.WebSocketInit(e)}return{protocols:o.converters["DOMString or sequence"](e)}};o.converters.WebSocketSendData=function(e){if(o.util.Type(e)==="Object"){if(ue(e)){return o.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||ge.isAnyArrayBuffer(e)){return o.converters.BufferSource(e)}}return o.converters.USVString(e)};e.exports={WebSocket:WebSocket}},42613:e=>{"use strict";e.exports=require("assert")},90290:e=>{"use strict";e.exports=require("async_hooks")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},64236:e=>{"use strict";e.exports=require("console")},76982:e=>{"use strict";e.exports=require("crypto")},31637:e=>{"use strict";e.exports=require("diagnostics_channel")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},85675:e=>{"use strict";e.exports=require("http2")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},4573:e=>{"use strict";e.exports=require("node:buffer")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},37067:e=>{"use strict";e.exports=require("node:http")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},82987:e=>{"use strict";e.exports=require("perf_hooks")},83480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},63774:e=>{"use strict";e.exports=require("stream/web")},13193:e=>{"use strict";e.exports=require("string_decoder")},53557:e=>{"use strict";e.exports=require("timers")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},98253:e=>{"use strict";e.exports=require("util/types")},28167:e=>{"use strict";e.exports=require("worker_threads")},43106:e=>{"use strict";e.exports=require("zlib")},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const o=n(87779);class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,o.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const o=n(87779);class AzureSASCredential{get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,o.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var o=n(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return o.AzureKeyCredential}});var i=n(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return i.isKeyCredential}});var d=n(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var p=n(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return p.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return p.isSASCredential}});var f=n(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return f.isTokenCredential}})},99155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const o=n(87779);function isKeyCredential(e){return(0,o.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}},17698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const o=n(89994);const i=n(20741);function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}))}async function authorizeRequestOnClaimChallenge(e){var t;const{scopes:n,response:d}=e;const p=e.logger||o.logger;const f=d.headers.get("WWW-Authenticate");if(!f){p.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const y=parseCAEChallenge(f)||[];const v=y.find((e=>e.claims));if(!v){p.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const D=await e.getAccessToken(v.scope?[v.scope]:n,{claims:(0,i.decodeStringToString)(v.claims)});if(!D){return false}e.request.headers.set("Authorization",`${(t=D.tokenType)!==null&&t!==void 0?t:"Bearer"} ${D.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const n={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{var t;const o=requestToOptions(e.request);const i=getChallenge(e.response);if(i){const d=parseChallenge(i);const p=buildScopes(e,d);const f=extractTenantId(d);if(!f){return false}const y=await e.getAccessToken(p,Object.assign(Object.assign({},o),{tenantId:f}));if(!y){return false}e.request.headers.set(n.HeaderConstants.AUTHORIZATION,`${(t=y.tokenType)!==null&&t!==void 0?t:"Bearer"} ${y.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const o=n[1];if(o&&isUuid(o)){return o}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const o=new URL(t.resource_id);o.pathname=n.DefaultScope;let i=o.toString();if(i==="https://disk.azure.com/.default"){i="https://disk.azure.com//.default"}return[i]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const o=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return o.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const o=n(56058);const i=n(20778);const d=n(31530);const p=n(19688);const f=["application/json","text/json"];const y=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){var n,i,d,p,v,D,M;const U=(i=(n=e.expectedContentTypes)===null||n===void 0?void 0:n.json)!==null&&i!==void 0?i:f;const V=(p=(d=e.expectedContentTypes)===null||d===void 0?void 0:d.xml)!==null&&p!==void 0?p:y;const j=e.parseXML;const K=e.serializerOptions;const ee={xml:{rootName:(v=K===null||K===void 0?void 0:K.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=K===null||K===void 0?void 0:K.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=K===null||K===void 0?void 0:K.xml.xmlCharKey)!==null&&M!==void 0?M:o.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const n=await t(e);return deserializeResponseBody(U,V,n,ee,j)}}}function getOperationResponseMap(e){let t;const n=e.request;const o=(0,p.getOperationRequestInfo)(n);const i=o===null||o===void 0?void 0:o.operationSpec;if(i){if(!(o===null||o===void 0?void 0:o.operationResponseGetter)){t=i.responses[e.status]}else{t=o===null||o===void 0?void 0:o.operationResponseGetter(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=(0,p.getOperationRequestInfo)(t);const o=n===null||n===void 0?void 0:n.shouldDeserialize;let i;if(o===undefined){i=true}else if(typeof o==="boolean"){i=o}else{i=o(e)}return i}async function deserializeResponseBody(e,t,n,o,f){const y=await parse(e,t,n,o,f);if(!shouldDeserializeResponse(y)){return y}const v=(0,p.getOperationRequestInfo)(y.request);const D=v===null||v===void 0?void 0:v.operationSpec;if(!D||!D.responses){return y}const M=getOperationResponseMap(y);const{error:U,shouldReturnResponse:V}=handleErrorResponse(y,D,M,o);if(U){throw U}else if(V){return y}if(M){if(M.bodyMapper){let e=y.parsedBody;if(D.isXML&&M.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[M.bodyMapper.xmlElementName]:[]}try{y.parsedBody=D.serializer.deserialize(M.bodyMapper,e,"operationRes.parsedBody",o)}catch(e){const t=new i.RestError(`Error ${e} occurred in deserializing the responseBody - ${y.bodyAsText}`,{statusCode:y.status,request:y.request,response:y});throw t}}else if(D.httpMethod==="HEAD"){y.parsedBody=n.status>=200&&n.status<300}if(M.headersMapper){y.parsedHeaders=D.serializer.deserialize(M.headersMapper,y.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return y}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,o){var p,f,y,v,D;const M=200<=e.status&&e.status<300;const U=isOperationSpecEmpty(t)?M:!!n;if(U){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const V=n!==null&&n!==void 0?n:t.responses.default;const j=((p=e.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(e.status))?`Unexpected status code: ${e.status}`:e.bodyAsText;const K=new i.RestError(j,{statusCode:e.status,request:e.request,response:e});if(!V&&!(((y=(f=e.parsedBody)===null||f===void 0?void 0:f.error)===null||y===void 0?void 0:y.code)&&((D=(v=e.parsedBody)===null||v===void 0?void 0:v.error)===null||D===void 0?void 0:D.message))){throw K}const ee=V===null||V===void 0?void 0:V.bodyMapper;const te=V===null||V===void 0?void 0:V.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let i;if(ee){let e=n;if(t.isXML&&ee.type.name===d.MapperTypeNames.Sequence){e=[];const t=ee.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}i=t.serializer.deserialize(ee,e,"error.response.parsedBody",o)}const p=n.error||i||n;K.code=p.code;if(p.message){K.message=p.message}if(ee){K.response.parsedBody=i}}if(e.headers&&te){K.response.parsedHeaders=t.serializer.deserialize(te,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){K.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:K,shouldReturnResponse:false}}async function parse(e,t,n,o,d){var p;if(!((p=n.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(n.status))&&n.bodyAsText){const p=n.bodyAsText;const f=n.headers.get("Content-Type")||"";const y=!f?[]:f.split(";").map((e=>e.toLowerCase()));try{if(y.length===0||y.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(p);return n}else if(y.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(p,o.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const o=e.code||i.RestError.PARSE_ERROR;const d=new i.RestError(t,{code:o,statusCode:n.status,request:n.request,response:n});throw d}}return n}},26323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const o=n(20778);let i;function getCachedDefaultHttpClient(){if(!i){i=(0,o.createDefaultHttpClient)()}return i}},60160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var o=n(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return o.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return o.MapperTypeNames}});var i=n(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return i.ServiceClient}});var d=n(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var p=n(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return p.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return p.XML_CHARKEY}});var f=n(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return f.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return f.deserializationPolicyName}});var y=n(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return y.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return y.serializationPolicyName}});var v=n(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return v.authorizeRequestOnClaimChallenge}});var D=n(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return D.authorizeRequestOnTenantChallenge}})},92066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const o=n(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const i=e.responses[n];if(i.bodyMapper&&i.bodyMapper.type.name===o.MapperTypeNames.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let o;if(typeof t==="string"){o=t}else if(Array.isArray(t)){o=t.join(".")}else{o=n.serializedName}return o}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("core-client")},19688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const o=n(33345);function getOperationArgumentValueFromParameter(e,t,n){let o=t.parameterPath;const i=t.mapper;let d;if(typeof o==="string"){o=[o]}if(Array.isArray(o)){if(o.length>0){if(i.isConstant){d=i.defaultValue}else{let t=getPropertyFromParameterPath(e,o);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,o)}let p=false;if(!t.propertyFound){p=i.required||o[0]==="options"&&o.length===2}d=p?i.defaultValue:t.propertyValue}}}else{if(i.required){d={}}for(const t in o){const p=i.type.modelProperties[t];const f=o[t];const y=getOperationArgumentValueFromParameter(e,{parameterPath:f,mapper:p},n);if(y!==undefined){if(!d){d={}}d[t]=y}}}return d}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let o=0;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const o=n(90111);const i=n(20778);const d=n(56234);function createClientPipeline(e={}){const t=(0,i.createPipelineFromOptions)(e!==null&&e!==void 0?e:{});if(e.credentialOptions){t.addPolicy((0,i.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,o.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const o=n(56058);const i=n(19688);const d=n(31530);const p=n(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const n=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const o=(0,i.getOperationRequestInfo)(e);const d=o===null||o===void 0?void 0:o.operationSpec;const p=o===null||o===void 0?void 0:o.operationArguments;if(d&&p){serializeHeaders(e,p,d);serializeRequestBody(e,p,d,n)}return t(e)}}}function serializeHeaders(e,t,n){var o,d;if(n.headerParameters){for(const o of n.headerParameters){let d=(0,i.getOperationArgumentValueFromParameter)(t,o);if(d!==null&&d!==undefined||o.mapper.required){d=n.serializer.serialize(o.mapper,d,(0,p.getPathStringFromParameter)(o));const t=o.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(d)){e.headers.set(t+n,d[n])}}else{e.headers.set(o.mapper.serializedName||(0,p.getPathStringFromParameter)(o),d)}}}}const f=(d=(o=t.options)===null||o===void 0?void 0:o.requestOptions)===null||d===void 0?void 0:d.customHeaders;if(f){for(const t of Object.keys(f)){e.headers.set(t,f[t])}}}function serializeRequestBody(e,t,n,f=function(){throw new Error("XML serialization unsupported!")}){var y,v,D,M,U;const V=(y=t.options)===null||y===void 0?void 0:y.serializerOptions;const j={xml:{rootName:(v=V===null||V===void 0?void 0:V.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=V===null||V===void 0?void 0:V.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=V===null||V===void 0?void 0:V.xml.xmlCharKey)!==null&&M!==void 0?M:o.XML_CHARKEY}};const K=j.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=(0,i.getOperationArgumentValueFromParameter)(t,n.requestBody);const o=n.requestBody.mapper;const{required:y,serializedName:v,xmlName:D,xmlElementName:M,xmlNamespace:V,xmlNamespacePrefix:ee,nullable:te}=o;const re=o.type.name;try{if(e.body!==undefined&&e.body!==null||te&&e.body===null||y){const t=(0,p.getPathStringFromParameter)(n.requestBody);e.body=n.serializer.serialize(o,e.body,t,j);const i=re===d.MapperTypeNames.Stream;if(n.isXML){const t=ee?`xmlns:${ee}`:"xmlns";const n=getXmlValueWithNamespace(V,t,re,e.body,j);if(re===d.MapperTypeNames.Sequence){e.body=f(prepareXMLRootList(n,M||D||v,t,V),{rootName:D||v,xmlCharKey:K})}else if(!i){e.body=f(n,{rootName:D||v,xmlCharKey:K})}}else if(re===d.MapperTypeNames.String&&(((U=n.contentType)===null||U===void 0?void 0:U.match("text/plain"))||n.mediaType==="text")){return}else if(!i){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(v,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const o of n.formDataParameters){const d=(0,i.getOperationArgumentValueFromParameter)(t,o);if(d!==undefined&&d!==null){const t=o.mapper.serializedName||(0,p.getPathStringFromParameter)(o);e.formData[t]=n.serializer.serialize(o.mapper,d,(0,p.getPathStringFromParameter)(o),j)}}}}function getXmlValueWithNamespace(e,t,n,i,d){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[d.xml.xmlCharKey]=i;n[o.XML_ATTRKEY]={[t]:e};return n}return i}function prepareXMLRootList(e,t,n,i){if(!Array.isArray(e)){e=[e]}if(!n||!i){return{[t]:e}}const d={[t]:e};d[o.XML_ATTRKEY]={[n]:i};return d}},31530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const o=n(61860);const i=o.__importStar(n(20741));const d=n(56058);const p=n(31193);class SerializerImpl{constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,o)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${o}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:o,InclusiveMaximum:i,InclusiveMinimum:d,MaxItems:p,MaxLength:f,MinItems:y,MinLength:v,MultipleOf:D,Pattern:M,UniqueItems:U}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(o!==undefined&&t<=o){failValidation("ExclusiveMinimum",o)}if(i!==undefined&&t>i){failValidation("InclusiveMaximum",i)}if(d!==undefined&&tp){failValidation("MaxItems",p)}if(f!==undefined&&t.length>f){failValidation("MaxLength",f)}if(y!==undefined&&t.lengthn.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,n,o={xml:{}}){var i,p,f;const y={xml:{rootName:(i=o.xml.rootName)!==null&&i!==void 0?i:"",includeRoot:(p=o.xml.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(f=o.xml.xmlCharKey)!==null&&f!==void 0?f:d.XML_CHARKEY}};let v={};const D=e.type.name;if(!n){n=e.serializedName}if(D.match(/^Sequence$/i)!==null){v=[]}if(e.isConstant){t=e.defaultValue}const{required:M,nullable:U}=e;if(M&&U&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(M&&!U&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!M&&U===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){v=t}else{if(D.match(/^any$/i)!==null){v=t}else if(D.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){v=serializeBasicTypes(D,n,t)}else if(D.match(/^Enum$/i)!==null){const o=e;v=serializeEnumType(n,o.type.allowedValues,t)}else if(D.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){v=serializeDateTypes(D,t,n)}else if(D.match(/^ByteArray$/i)!==null){v=serializeByteArrayType(n,t)}else if(D.match(/^Base64Url$/i)!==null){v=serializeBase64UrlType(n,t)}else if(D.match(/^Sequence$/i)!==null){v=serializeSequenceType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Dictionary$/i)!==null){v=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Composite$/i)!==null){v=serializeCompositeType(this,e,t,n,Boolean(this.isXML),y)}}return v}deserialize(e,t,n,o={xml:{}}){var p,f,y,v;const D={xml:{rootName:(p=o.xml.rootName)!==null&&p!==void 0?p:"",includeRoot:(f=o.xml.includeRoot)!==null&&f!==void 0?f:false,xmlCharKey:(y=o.xml.xmlCharKey)!==null&&y!==void 0?y:d.XML_CHARKEY},ignoreUnknownProperties:(v=o.ignoreUnknownProperties)!==null&&v!==void 0?v:false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let M;const U=e.type.name;if(!n){n=e.serializedName}if(U.match(/^Composite$/i)!==null){M=deserializeCompositeType(this,e,t,n,D)}else{if(this.isXML){const e=D.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(U.match(/^Number$/i)!==null){M=parseFloat(t);if(isNaN(M)){M=t}}else if(U.match(/^Boolean$/i)!==null){if(t==="true"){M=true}else if(t==="false"){M=false}else{M=t}}else if(U.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){M=t}else if(U.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){M=new Date(t)}else if(U.match(/^UnixTime$/i)!==null){M=unixTimeToDate(t)}else if(U.match(/^ByteArray$/i)!==null){M=i.decodeString(t)}else if(U.match(/^Base64Url$/i)!==null){M=base64UrlToByteArray(t)}else if(U.match(/^Sequence$/i)!==null){M=deserializeSequenceType(this,e,t,n,D)}else if(U.match(/^Dictionary$/i)!==null){M=deserializeDictionaryType(this,e,t,n,D)}}if(e.isConstant){M=e.defaultValue}return M}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=i.encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return i.decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const o=e.split(".");for(const e of o){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&(0,p.isValidUuid)(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const o=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!o){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=i.encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!(0,p.isDuration)(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,o,i,p){var f;if(!Array.isArray(n)){throw new Error(`${o} must be of type Array.`)}let y=t.type.element;if(!y||typeof y!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}.`)}if(y.type.name==="Composite"&&y.type.className){y=(f=e.modelMappers[y.type.className])!==null&&f!==void 0?f:y}const v=[];for(let t=0;te!==i));if(d){f[i]=e.serialize(v,n[i],o+'["'+i+'"]',p)}}}return f}return n}function getXmlObjectValue(e,t,n,o){if(!n||!e.xmlNamespace){return t}const i=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const p={[i]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e=Object.assign({},t);e[d.XML_ATTRKEY]=p;return e}}const f={};f[o.xml.xmlCharKey]=t;f[d.XML_ATTRKEY]=p;return f}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,o,i){var p,f;const y=(p=i.xml.xmlCharKey)!==null&&p!==void 0?p:d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const v=resolveModelProperties(e,t,o);let D={};const M=[];for(const p of Object.keys(v)){const U=v[p];const V=splitSerializeName(v[p].serializedName);M.push(V[0]);const{serializedName:j,xmlName:K,xmlElementName:ee}=U;let te=o;if(j!==""&&j!==undefined){te=o+"."+j}const re=U.headerCollectionPrefix;if(re){const t={};for(const o of Object.keys(n)){if(o.startsWith(re)){t[o.substring(re.length)]=e.deserialize(U.type.value,n[o],te,i)}M.push(o)}D[p]=t}else if(e.isXML){if(U.xmlIsAttribute&&n[d.XML_ATTRKEY]){D[p]=e.deserialize(U,n[d.XML_ATTRKEY][K],te,i)}else if(U.xmlIsMsText){if(n[y]!==undefined){D[p]=n[y]}else if(typeof n==="string"){D[p]=n}}else{const t=ee||K||j;if(U.xmlIsWrapped){const t=n[K];const o=(f=t===null||t===void 0?void 0:t[ee])!==null&&f!==void 0?f:[];D[p]=e.deserialize(U,o,te,i);M.push(K)}else{const o=n[t];D[p]=e.deserialize(U,o,te,i);M.push(t)}}}else{let o;let d=n;let f=0;for(const e of V){if(!d)break;f++;d=d[e]}if(d===null&&f{for(const t in v){const n=splitSerializeName(v[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){D[t]=e.deserialize(U,n[t],o+'["'+t+'"]',i)}}}else if(n&&!i.ignoreUnknownProperties){for(const e of Object.keys(n)){if(D[e]===undefined&&!M.includes(e)&&!isSpecialXmlProperty(e,i)){D[e]=n[e]}}}return D}function deserializeDictionaryType(e,t,n,o,i){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){const t={};for(const p of Object.keys(n)){t[p]=e.deserialize(d,n[p],o,i)}return t}return n}function deserializeSequenceType(e,t,n,o,i){var d;let p=t.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){if(!Array.isArray(n)){n=[n]}if(p.type.name==="Composite"&&p.type.className){p=(d=e.modelMappers[p.type.className])!==null&&d!==void 0?d:p}const t=[];for(let d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const o=n(20778);const i=n(74136);const d=n(31193);const p=n(26323);const f=n(19688);const y=n(61752);const v=n(92066);const D=n(89994);class ServiceClient{constructor(e={}){var t,n;this._requestContentType=e.requestContentType;this._endpoint=(t=e.endpoint)!==null&&t!==void 0?t:e.baseUri;if(e.baseUri){D.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,p.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if((n=e.additionalPolicies)===null||n===void 0?void 0:n.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const i=(0,y.getRequestUrl)(n,t,e,this);const p=(0,o.createPipelineRequest)({url:i});p.method=t.httpMethod;const D=(0,f.getOperationRequestInfo)(p);D.operationSpec=t;D.operationArguments=e;const M=t.contentType||this._requestContentType;if(M&&t.requestBody){p.headers.set("Content-Type",M)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){p.timeout=e.timeout}if(e.onUploadProgress){p.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){p.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){D.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){p.allowInsecureConnection=true}}if(U.abortSignal){p.abortSignal=U.abortSignal}if(U.tracingOptions){p.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){p.allowInsecureConnection=true}if(p.streamResponseStatusCodes===undefined){p.streamResponseStatusCodes=(0,v.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(p);const n=(0,d.flattenResponse)(e,t.responses[e.status]);if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&(e===null||e===void 0?void 0:e.response)){const n=e.response;const o=(0,d.flattenResponse)(n,t.responses[e.statusCode]||t.responses["default"]);e.details=o;if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(n,o,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,i.createClientPipeline)(Object.assign(Object.assign({},e),{credentialOptions:n}))}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const o=n(19688);const i=n(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,o){const i=calculateUrlReplacements(t,n,o);let d=false;let p=replaceAll(e,i);if(t.path){let e=replaceAll(t.path,i);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){p=e;d=true}else{p=appendPath(p,e)}}const{queryParams:f,sequenceParams:y}=calculateQueryParameters(t,n,o);p=appendQueryParams(p,f,y,d);return p}function replaceAll(e,t){let n=e;for(const[e,o]of t){n=n.split(e).join(o)}return n}function calculateUrlReplacements(e,t,n){var d;const p=new Map;if((d=e.urlParameters)===null||d===void 0?void 0:d.length){for(const d of e.urlParameters){let f=(0,o.getOperationArgumentValueFromParameter)(t,d,n);const y=(0,i.getPathStringFromParameter)(d);f=e.serializer.serialize(d.mapper,f,y);if(!d.skipEncoding){f=encodeURIComponent(f)}p.set(`{${d.mapper.serializedName||y}}`,f)}}return p}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let o=n.pathname;if(!o.endsWith("/")){o=`${o}/`}if(t.startsWith("/")){t=t.substring(1)}const i=t.indexOf("?");if(i!==-1){const e=t.substring(0,i);const d=t.substring(i+1);o=o+e;if(d){n.search=n.search?`${n.search}&${d}`:d}}else{o=o+t}n.pathname=o;return n.toString()}function calculateQueryParameters(e,t,n){var p;const f=new Map;const y=new Set;if((p=e.queryParameters)===null||p===void 0?void 0:p.length){for(const p of e.queryParameters){if(p.mapper.type.name==="Sequence"&&p.mapper.serializedName){y.add(p.mapper.serializedName)}let v=(0,o.getOperationArgumentValueFromParameter)(t,p,n);if(v!==undefined&&v!==null||p.mapper.required){v=e.serializer.serialize(p.mapper,v,(0,i.getPathStringFromParameter)(p));const t=p.collectionFormat?d[p.collectionFormat]:"";if(Array.isArray(v)){v=v.map((e=>{if(e===null||e===undefined){return""}return e}))}if(p.collectionFormat==="Multi"&&v.length===0){continue}else if(Array.isArray(v)&&(p.collectionFormat==="SSV"||p.collectionFormat==="TSV")){v=v.join(t)}if(!p.skipEncoding){if(Array.isArray(v)){v=v.map((e=>encodeURIComponent(e)))}else{v=encodeURIComponent(v)}}if(Array.isArray(v)&&(p.collectionFormat==="CSV"||p.collectionFormat==="Pipes")){v=v.join(t)}f.set(p.mapper.serializedName||(0,i.getPathStringFromParameter)(p),v)}}}return{queryParams:f,sequenceParams:y}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,o]=e.split("=",2);const i=t.get(n);if(i){if(Array.isArray(i)){i.push(o)}else{t.set(n,[i,o])}}else{t.set(n,o)}}return t}function appendQueryParams(e,t,n,o=false){if(t.size===0){return e}const i=new URL(e);const d=simpleParseQueryParams(i.search);for(const[e,i]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(i)){t.push(...i);const n=new Set(t);d.set(e,Array.from(n))}else{t.push(i)}}else if(t){if(Array.isArray(i)){i.unshift(t)}else if(n.has(e)){d.set(e,[t,i])}if(!o){d.set(e,i)}}else{d.set(e,i)}}const p=[];for(const[e,t]of d){if(typeof t==="string"){p.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){p.push(`${e}=${n}`)}}else{p.push(`${e}=${t}`)}}i.search=p.length?`?${p.join("&")}`:"";return i.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||(t===null||t===void 0?void 0:t.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i))!==null||e===undefined||e===null)}const n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return n.test(e)}const o=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return o.test(e)}function handleNullableResponseAndWrappableBody(e){const t=Object.assign(Object.assign({},e.headers),e.body);if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?Object.assign(Object.assign({},e.headers),{body:e.body}):t}}function flattenResponse(e,t){var n,o;const i=e.parsedHeaders;if(e.request.method==="HEAD"){return Object.assign(Object.assign({},i),{body:e.parsedBody})}const d=t&&t.bodyMapper;const p=Boolean(d===null||d===void 0?void 0:d.nullable);const f=d===null||d===void 0?void 0:d.type.name;if(f==="Stream"){return Object.assign(Object.assign({},i),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody})}const y=f==="Composite"&&d.type.modelProperties||{};const v=Object.keys(y).some((e=>y[e].serializedName===""));if(f==="Sequence"||v){const t=(n=e.parsedBody)!==null&&n!==void 0?n:[];for(const n of Object.keys(y)){if(y[n].serializedName){t[n]=(o=e.parsedBody)===null||o===void 0?void 0:o[n]}}if(i){for(const e of Object.keys(i)){t[e]=i[e]}}return p&&!e.parsedBody&&!i&&Object.getOwnPropertyNames(y).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:i,hasNullableType:p,shouldWrapBody:isPrimitiveBody(e.parsedBody,f)})}},95492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExtendedServiceClient=void 0;const o=n(32639);const i=n(20778);const d=n(60160);const p=n(38153);class ExtendedServiceClient extends d.ServiceClient{constructor(e){var t,n;super(e);if(((t=e.keepAliveOptions)===null||t===void 0?void 0:t.enable)===false&&!(0,o.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,o.createDisableKeepAlivePolicy)())}if(((n=e.redirectOptions)===null||n===void 0?void 0:n.handleRedirects)===false){this.pipeline.removePolicy({name:i.redirectPolicyName})}}async sendOperationRequest(e,t){var n;const o=(n=e===null||e===void 0?void 0:e.options)===null||n===void 0?void 0:n.onResponse;let i;function onResponse(e,t,n){i=e;if(o){o(e,t,n)}}e.options=Object.assign(Object.assign({},e.options),{onResponse:onResponse});const d=await super.sendOperationRequest(e,t);if(i){Object.defineProperty(d,"_response",{value:(0,p.toCompatResponse)(i)})}return d}}t.ExtendedServiceClient=ExtendedServiceClient},2078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertHttpClient=convertHttpClient;const o=n(38153);const i=n(33850);function convertHttpClient(e){return{sendRequest:async t=>{const n=await e.sendRequest((0,i.toWebResourceLike)(t,{createProxy:true}));return(0,o.toPipelineResponse)(n)}}}},61584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHttpHeadersLike=t.convertHttpClient=t.disableKeepAlivePolicyName=t.HttpPipelineLogLevel=t.createRequestPolicyFactoryPolicy=t.requestPolicyFactoryPolicyName=t.ExtendedServiceClient=void 0;var o=n(95492);Object.defineProperty(t,"ExtendedServiceClient",{enumerable:true,get:function(){return o.ExtendedServiceClient}});var i=n(3466);Object.defineProperty(t,"requestPolicyFactoryPolicyName",{enumerable:true,get:function(){return i.requestPolicyFactoryPolicyName}});Object.defineProperty(t,"createRequestPolicyFactoryPolicy",{enumerable:true,get:function(){return i.createRequestPolicyFactoryPolicy}});Object.defineProperty(t,"HttpPipelineLogLevel",{enumerable:true,get:function(){return i.HttpPipelineLogLevel}});var d=n(32639);Object.defineProperty(t,"disableKeepAlivePolicyName",{enumerable:true,get:function(){return d.disableKeepAlivePolicyName}});var p=n(2078);Object.defineProperty(t,"convertHttpClient",{enumerable:true,get:function(){return p.convertHttpClient}});var f=n(33850);Object.defineProperty(t,"toHttpHeadersLike",{enumerable:true,get:function(){return f.toHttpHeadersLike}})},32639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.disableKeepAlivePolicyName=void 0;t.createDisableKeepAlivePolicy=createDisableKeepAlivePolicy;t.pipelineContainsDisableKeepAlivePolicy=pipelineContainsDisableKeepAlivePolicy;t.disableKeepAlivePolicyName="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:t.disableKeepAlivePolicyName,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===t.disableKeepAlivePolicyName))}},3466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.requestPolicyFactoryPolicyName=t.HttpPipelineLogLevel=void 0;t.createRequestPolicyFactoryPolicy=createRequestPolicyFactoryPolicy;const o=n(33850);const i=n(38153);var d;(function(e){e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING"})(d||(t.HttpPipelineLogLevel=d={}));const p={log(e,t){},shouldLog(e){return false}};t.requestPolicyFactoryPolicyName="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const n=e.slice().reverse();return{name:t.requestPolicyFactoryPolicyName,async sendRequest(e,t){let d={async sendRequest(e){const n=await t((0,o.toPipelineRequest)(e));return(0,i.toCompatResponse)(n,{createProxy:true})}};for(const e of n){d=e.create(d,p)}const f=(0,o.toWebResourceLike)(e,{createProxy:true});const y=await d.sendRequest(f);return(0,i.toPipelineResponse)(y)}}}},38153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCompatResponse=toCompatResponse;t.toPipelineResponse=toPipelineResponse;const o=n(20778);const i=n(33850);const d=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let n=(0,i.toWebResourceLike)(e.request);let o=(0,i.toHttpHeadersLike)(e.headers);if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(e,{get(t,i,p){if(i==="headers"){return o}else if(i==="request"){return n}else if(i===d){return e}return Reflect.get(t,i,p)},set(e,t,i,d){if(t==="headers"){o=i}else if(t==="request"){n=i}return Reflect.set(e,t,i,d)}})}else{return Object.assign(Object.assign({},e),{request:n,headers:o})}}function toPipelineResponse(e){const t=e;const n=t[d];const p=(0,o.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(n){n.headers=p;return n}else{return Object.assign(Object.assign({},e),{headers:p,request:(0,i.toPipelineRequest)(e.request)})}}},33850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpHeaders=void 0;t.toPipelineRequest=toPipelineRequest;t.toWebResourceLike=toWebResourceLike;t.toHttpHeadersLike=toHttpHeadersLike;const o=n(20778);const i=Symbol("Original PipelineRequest");const d=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const n=e;const p=n[i];const f=(0,o.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(p){p.headers=f;return p}else{const n=(0,o.createPipelineRequest)({url:e.url,method:e.method,headers:f,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){n[d]=t.originalRequest}return n}}function toWebResourceLike(e,t){var n;const o=(n=t===null||t===void 0?void 0:t.originalRequest)!==null&&n!==void 0?n:e;const d={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(d,{get(t,n,p){if(n===i){return e}else if(n==="clone"){return()=>toWebResourceLike(toPipelineRequest(d,{originalRequest:o}),{createProxy:true,originalRequest:o})}return Reflect.get(t,n,p)},set(t,n,o,i){if(n==="keepAlive"){e.disableKeepAlive=!o}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof n==="string"&&d.includes(n)){e[n]=o}return Reflect.set(t,n,o,i)}})}else{return d}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const o=n(30736);const i=n(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:n,requestMethod:o,requestPath:i,resourceLocationConfig:d}=e;switch(o){case"PUT":{return i}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:i}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return i}case"location":default:{return n}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const d=getOperationLocationHeader(t);const p=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:p});const y=getLocationHeader(t);const v=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:v,location:y,requestPath:o,resourceLocationConfig:i})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(v==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{i.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const d=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){i.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){i.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:p})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},n){var o,i;return(o=e===null||e===void 0?void 0:e[n])!==null&&o!==void 0?o:(i=t.body)===null||i===void 0?void 0:i[n]}function getResourceLocation(e,t){const n=accessBodyProperty(e,"resourceLocation");if(n&&typeof n==="string"){t.config.resourceLocation=n}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:i,processResult:d,updateState:p,setDelay:f,state:y,setErrorAsResult:v}=e;return(0,o.pollOperation)({state:y,stateProxy:n,setDelay:f,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:p,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:i,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:v})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const o=n(93878);const i=n(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:d,processResult:p,restoreFrom:f,updateState:y,withOperationLocation:v,resolveOnUnsuccessful:D=false}=t||{};return(0,i.buildCreatePoller)({getStatusFromInitialResponse:o.getStatusFromInitialResponse,getStatusFromPollResponse:o.getOperationStatus,isOperationError:o.isOperationError,getOperationLocation:o.getOperationLocation,getResourceLocation:o.getResourceLocation,getPollingInterval:o.parseRetryAfter,getError:o.getErrorFromResponse,resolveOnUnsuccessful:D})({init:async()=>{const t=await e.sendInitialRequest();const i=(0,o.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:v,restoreFrom:f,updateState:y,processResult:p?({flatResponse:e},t)=>p(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const o=n(61860);var i=n(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return i.createHttpPoller}});o.__exportStar(n(55454),t);o.__exportStar(n(36272),t);o.__exportStar(n(82670),t)},55454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var o=n(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return o.LroEngine}})},91607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const o=n(54267);const i=n(55044);const d=n(36272);const p=n(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:n=i.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:f=false,isDone:y,lroResourceLocationConfig:v,processResult:D,updateState:M}=t||{};const U=d?(0,p.deserializeState)(d):{};const V=new o.GenericPollOperation(U,e,!f,v,D,M,y);super(V);this.resolveOnUnsuccessful=f;this.config={intervalInMs:n};V.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const o=n(93878);const i=n(50480);const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,d,p){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=d;this.isDone=p}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,o.initHttpOperation)({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const i=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,o.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:i?(e,{rawResponse:t})=>i(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){i.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}t.Poller=Poller},50480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const o=n(50480);const i=n(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:i,isDone:d,processResult:p,getError:f,response:y,setErrorAsResult:v}=e;switch(i){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=f===null||f===void 0?void 0:f(y);let i="";if(e){const{code:t,message:n}=simplifyError(e);i=`. ${t}. ${n}`}const d=`The long-running operation has failed${i}`;n.setError(t,new Error(d));n.setFailed(t);o.logger.warning(d);break}case"canceled":{n.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(y,t))||d===undefined&&["succeeded","canceled"].concat(v?[]:["failed"]).includes(i)){n.setResult(t,buildResult({response:y,state:t,processResult:p}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:i,getOperationStatus:d,withOperationLocation:p,setErrorAsResult:f}=e;const{operationLocation:y,resourceLocation:v,metadata:D,response:M}=await t();if(y)p===null||p===void 0?void 0:p(y,false);const U={metadata:D,operationLocation:y,resourceLocation:v};o.logger.verbose(`LRO: Operation description:`,U);const V=n.initState(U);const j=d({response:M,state:V,operationLocation:y});processOperationStatus({state:V,status:j,stateProxy:n,response:M,setErrorAsResult:f,processResult:i});return V}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:d,operationLocation:p,getOperationStatus:f,getResourceLocation:y,isOperationError:v,options:D}=e;const M=await t(p,D).catch(setStateError({state:n,stateProxy:d,isOperationError:v}));const U=f(M,n);o.logger.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${i.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=y(M,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:d,isOperationError:v})),status:U}}}return{response:M,status:U}}async function pollOperation(e){const{poll:t,state:n,stateProxy:o,options:d,getOperationStatus:p,getResourceLocation:f,getOperationLocation:y,isOperationError:v,withOperationLocation:D,getPollingInterval:M,processResult:U,getError:V,updateState:j,setDelay:K,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:p,state:n,stateProxy:o,operationLocation:re,getResourceLocation:f,isOperationError:v,options:d});processOperationStatus({status:ne,response:e,state:n,stateProxy:o,isDone:ee,processResult:U,getError:V,setErrorAsResult:te});if(!i.terminalStates.includes(ne)){const t=M===null||M===void 0?void 0:M(e);if(t)K(t);const o=y===null||y===void 0?void 0:y(e,n);if(o!==undefined){const e=re!==o;n.config.operationLocation=o;D===null||D===void 0?void 0:D(o,e)}else D===null||D===void 0?void 0:D(re,false)}j===null||j===void 0?void 0:j(n,e)}}t.pollOperation=pollOperation},18835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const o=n(30736);const i=n(55044);const d=n(87779);const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:p,isOperationError:f,getResourceLocation:y,getPollingInterval:v,getError:D,resolveOnUnsuccessful:M}=e;return async({init:e,poll:U},V)=>{const{processResult:j,updateState:K,withOperationLocation:ee,intervalInMs:te=i.POLL_INTERVAL_IN_MS,restoreFrom:re}=V||{};const ne=createStateProxy();const oe=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const ie=re?(0,o.deserializeState)(re):await(0,o.initOperation)({init:e,stateProxy:ne,processResult:j,getOperationStatus:n,withOperationLocation:oe,setErrorAsResult:!M});let se;const ae=new AbortController;const Ae=new Map;const handleProgressEvents=async()=>Ae.forEach((e=>e(ie)));const ce="Operation was canceled";let le=te;const ue={getOperationState:()=>ie,getResult:()=>ie.result,isDone:()=>["succeeded","failed","canceled"].includes(ie.status),isStopped:()=>se===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:ie}),onProgress:e=>{const t=Symbol();Ae.set(t,e);return()=>Ae.delete(t)},pollUntilDone:e=>se!==null&&se!==void 0?se:se=(async()=>{const{abortSignal:t}=e||{};function abortListener(){ae.abort()}const n=ae.signal;if(t===null||t===void 0?void 0:t.aborted){ae.abort()}else if(!n.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!ue.isDone()){await ue.poll({abortSignal:n});while(!ue.isDone()){await(0,d.delay)(le,{abortSignal:n});await ue.poll({abortSignal:n})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(M){return ue.getResult()}else{switch(ie.status){case"succeeded":return ue.getResult();case"canceled":throw new Error(ce);case"failed":throw ie.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{se=undefined})),async poll(e){if(M){if(ue.isDone())return}else{switch(ie.status){case"succeeded":return;case"canceled":throw new Error(ce);case"failed":throw ie.error}}await(0,o.pollOperation)({poll:U,state:ie,stateProxy:ne,getOperationLocation:t,isOperationError:f,withOperationLocation:oe,getPollingInterval:v,getOperationStatus:p,getResourceLocation:y,processResult:j,getError:D,updateState:K,options:e,setDelay:e=>{le=e},setErrorAsResult:!M});await handleProgressEvents();if(!M){switch(ie.status){case"canceled":throw new Error(ce);case"failed":throw ie.error}}}};return ue}}t.buildCreatePoller=buildCreatePoller},66427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="1.22.0";t.DEFAULT_RETRY_POLICY_COUNT=3},90862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const o=n(53253);const i=n(29590);const d=n(64087);const p=n(32799);const f=n(45807);const y=n(39295);const v=n(48170);const D=n(75497);const M=n(87779);const U=n(32815);const V=n(95686);const j=n(18554);const K=n(75798);const ee=n(93237);const te=n(37466);function createPipelineFromOptions(e){var t;const n=(0,i.createEmptyPipeline)();if(M.isNodeLike){if(e.agent){n.addPolicy((0,j.agentPolicy)(e.agent))}if(e.tlsOptions){n.addPolicy((0,K.tlsPolicy)(e.tlsOptions))}n.addPolicy((0,U.proxyPolicy)(e.proxyOptions));n.addPolicy((0,y.decompressResponsePolicy)())}n.addPolicy((0,te.wrapAbortSignalLikePolicy)());n.addPolicy((0,D.formDataPolicy)(),{beforePolicies:[f.multipartPolicyName]});n.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));n.addPolicy((0,V.setClientRequestIdPolicy)((t=e.telemetryOptions)===null||t===void 0?void 0:t.clientRequestIdHeaderName));n.addPolicy((0,f.multipartPolicy)(),{afterPhase:"Deserialize"});n.addPolicy((0,v.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});n.addPolicy((0,ee.tracingPolicy)(Object.assign(Object.assign({},e.userAgentOptions),e.loggingOptions)),{afterPhase:"Retry"});if(M.isNodeLike){n.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}n.addPolicy((0,o.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return n}},7960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const o=n(41958);const i=n(91297);function createDefaultHttpClient(){const e=(0,o.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:n,cleanup:o}=t.abortSignal?(0,i.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{o===null||o===void 0?void 0:o()}}}}},192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;const o=n(41958);function createHttpHeaders(e){return(0,o.createHttpHeaders)(e)}},20778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileFromStream=t.createFile=t.agentPolicyName=t.agentPolicy=t.auxiliaryAuthenticationHeaderPolicyName=t.auxiliaryAuthenticationHeaderPolicy=t.ndJsonPolicyName=t.ndJsonPolicy=t.bearerTokenAuthenticationPolicyName=t.bearerTokenAuthenticationPolicy=t.formDataPolicyName=t.formDataPolicy=t.tlsPolicyName=t.tlsPolicy=t.userAgentPolicyName=t.userAgentPolicy=t.defaultRetryPolicy=t.tracingPolicyName=t.tracingPolicy=t.retryPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.setClientRequestIdPolicyName=t.setClientRequestIdPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.isRestError=t.RestError=t.createPipelineRequest=t.createHttpHeaders=t.createDefaultHttpClient=t.createPipelineFromOptions=t.createEmptyPipeline=void 0;var o=n(29590);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return o.createEmptyPipeline}});var i=n(90862);Object.defineProperty(t,"createPipelineFromOptions",{enumerable:true,get:function(){return i.createPipelineFromOptions}});var d=n(7960);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return d.createDefaultHttpClient}});var p=n(192);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});var f=n(95709);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(8666);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return y.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return y.isRestError}});var v=n(39295);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return v.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return v.decompressResponsePolicyName}});var D=n(16708);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return D.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return D.exponentialRetryPolicyName}});var M=n(95686);Object.defineProperty(t,"setClientRequestIdPolicy",{enumerable:true,get:function(){return M.setClientRequestIdPolicy}});Object.defineProperty(t,"setClientRequestIdPolicyName",{enumerable:true,get:function(){return M.setClientRequestIdPolicyName}});var U=n(53253);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return U.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return U.logPolicyName}});var V=n(45807);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return V.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return V.multipartPolicyName}});var j=n(32815);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return j.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return j.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return j.getDefaultProxySettings}});var K=n(64087);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return K.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return K.redirectPolicyName}});var ee=n(96518);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return ee.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return ee.systemErrorRetryPolicyName}});var te=n(97540);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return te.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return te.throttlingRetryPolicyName}});var re=n(56085);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return re.retryPolicy}});var ne=n(93237);Object.defineProperty(t,"tracingPolicy",{enumerable:true,get:function(){return ne.tracingPolicy}});Object.defineProperty(t,"tracingPolicyName",{enumerable:true,get:function(){return ne.tracingPolicyName}});var oe=n(48170);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return oe.defaultRetryPolicy}});var ie=n(32799);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return ie.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return ie.userAgentPolicyName}});var se=n(75798);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return se.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return se.tlsPolicyName}});var ae=n(75497);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return ae.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return ae.formDataPolicyName}});var Ae=n(26925);Object.defineProperty(t,"bearerTokenAuthenticationPolicy",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicy}});Object.defineProperty(t,"bearerTokenAuthenticationPolicyName",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicyName}});var ce=n(36827);Object.defineProperty(t,"ndJsonPolicy",{enumerable:true,get:function(){return ce.ndJsonPolicy}});Object.defineProperty(t,"ndJsonPolicyName",{enumerable:true,get:function(){return ce.ndJsonPolicyName}});var le=n(42262);Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicy",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicy}});Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicyName",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicyName}});var ue=n(18554);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return ue.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return ue.agentPolicyName}});var de=n(97073);Object.defineProperty(t,"createFile",{enumerable:true,get:function(){return de.createFile}});Object.defineProperty(t,"createFileFromStream",{enumerable:true,get:function(){return de.createFileFromStream}})},80544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("core-rest-pipeline")},29590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const o=n(41958);function createEmptyPipeline(){return(0,o.createEmptyPipeline)()}},95709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const o=n(41958);function createPipelineRequest(e){return(0,o.createPipelineRequest)(e)}},18554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;const o=n(44960);t.agentPolicyName=o.agentPolicyName;function agentPolicy(e){return(0,o.agentPolicy)(e)}},42262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auxiliaryAuthenticationHeaderPolicyName=void 0;t.auxiliaryAuthenticationHeaderPolicy=auxiliaryAuthenticationHeaderPolicy;const o=n(39202);const i=n(80544);t.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";const d="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){var t,n;const{scopes:o,getAccessToken:i,request:d}=e;const p={abortSignal:d.abortSignal,tracingOptions:d.tracingOptions};return(n=(t=await i(o,p))===null||t===void 0?void 0:t.token)!==null&&n!==void 0?n:""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:n,scopes:p}=e;const f=e.logger||i.logger;const y=new WeakMap;return{name:t.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(e,i){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!n||n.length===0){f.info(`${t.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`);return i(e)}const v=[];for(const t of n){let n=y.get(t);if(!n){n=(0,o.createTokenCycler)(t);y.set(t,n)}v.push(sendAuthorizeRequest({scopes:Array.isArray(p)?p:[p],request:e,getAccessToken:n,logger:f}))}const D=(await Promise.all(v)).filter((e=>Boolean(e)));if(D.length===0){f.warning(`None of the auxiliary tokens are valid. ${d} header will not be set.`);return i(e)}e.headers.set(d,D.map((e=>`Bearer ${e}`)).join(", "));return i(e)}}}},26925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerTokenAuthenticationPolicyName=void 0;t.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;t.parseChallenges=parseChallenges;const o=n(39202);const i=n(80544);const d=n(8666);t.bearerTokenAuthenticationPolicyName="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if((0,d.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions,enableCae:true};const d=await n(t,i);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){var n;const{scopes:o}=e;const i=await e.getAccessToken(o,{enableCae:true,claims:t});if(!i){return false}e.request.headers.set("Authorization",`${(n=i.tokenType)!==null&&n!==void 0?n:"Bearer"} ${i.token}`);return true}function bearerTokenAuthenticationPolicy(e){var n,d,p;const{credential:f,scopes:y,challengeCallbacks:v}=e;const D=e.logger||i.logger;const M={authorizeRequest:(d=(n=v===null||v===void 0?void 0:v.authorizeRequest)===null||n===void 0?void 0:n.bind(v))!==null&&d!==void 0?d:defaultAuthorizeRequest,authorizeRequestOnChallenge:(p=v===null||v===void 0?void 0:v.authorizeRequestOnChallenge)===null||p===void 0?void 0:p.bind(v)};const U=f?(0,o.createTokenCycler)(f):()=>Promise.resolve(null);return{name:t.bearerTokenAuthenticationPolicyName,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await M.authorizeRequest({scopes:Array.isArray(y)?y:[y],request:e,getAccessToken:U,logger:D});let n;let o;let i;[n,o]=await trySendRequest(e,t);if(isChallengeResponse(n)){let d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}i=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(i){[n,o]=await trySendRequest(e,t)}}else if(M.authorizeRequestOnChallenge){i=await M.authorizeRequestOnChallenge({scopes:Array.isArray(y)?y:[y],request:e,response:n,getAccessToken:U,logger:D});if(i){[n,o]=await trySendRequest(e,t)}if(isChallengeResponse(n)){d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}i=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(i){[n,o]=await trySendRequest(e,t)}}}}}if(o){throw o}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const o=[];let i;while((i=t.exec(e))!==null){const e=i[1];const t=i[2];const d={};let p;while((p=n.exec(t))!==null){d[p[1]]=p[2]}o.push({scheme:e,params:d})}return o}function getCaeChallengeClaims(e){var t;if(!e){return}const n=parseChallenges(e);return(t=n.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims")))===null||t===void 0?void 0:t.params.claims}},39295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;const o=n(44960);t.decompressResponsePolicyName=o.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,o.decompressResponsePolicy)()}},48170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const o=n(44960);t.defaultRetryPolicyName=o.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,o.defaultRetryPolicy)(e)}},16708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const o=n(44960);t.exponentialRetryPolicyName=o.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,o.exponentialRetryPolicy)(e)}},75497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const o=n(44960);t.formDataPolicyName=o.formDataPolicyName;function formDataPolicy(){return(0,o.formDataPolicy)()}},53253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const o=n(80544);const i=n(44960);t.logPolicyName=i.logPolicyName;function logPolicy(e={}){return(0,i.logPolicy)(Object.assign({logger:o.logger.info},e))}},45807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const o=n(44960);const i=n(97073);t.multipartPolicyName=o.multipartPolicyName;function multipartPolicy(){const e=(0,o.multipartPolicy)();return{name:t.multipartPolicyName,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,i.hasRawContent)(e.body)){e.body=(0,i.getRawContent)(e.body)}}}return e.sendRequest(t,n)}}}},36827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ndJsonPolicyName=void 0;t.ndJsonPolicy=ndJsonPolicy;t.ndJsonPolicyName="ndJsonPolicy";function ndJsonPolicy(){return{name:t.ndJsonPolicyName,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}},32815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.proxyPolicyName=void 0;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const o=n(44960);t.proxyPolicyName=o.proxyPolicyName;function getDefaultProxySettings(e){return(0,o.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,o.proxyPolicy)(e,t)}},64087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;const o=n(44960);t.redirectPolicyName=o.redirectPolicyName;function redirectPolicy(e={}){return(0,o.redirectPolicy)(e)}},56085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const o=n(26515);const i=n(66427);const d=n(44960);const p=(0,o.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:i.DEFAULT_RETRY_POLICY_COUNT}){return(0,d.retryPolicy)(e,Object.assign({logger:p},t))}},95686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setClientRequestIdPolicyName=void 0;t.setClientRequestIdPolicy=setClientRequestIdPolicy;t.setClientRequestIdPolicyName="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:t.setClientRequestIdPolicyName,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}},96518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const o=n(44960);t.systemErrorRetryPolicyName=o.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,o.systemErrorRetryPolicy)(e)}},97540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const o=n(44960);t.throttlingRetryPolicyName=o.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,o.throttlingRetryPolicy)(e)}},75798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;const o=n(44960);t.tlsPolicyName=o.tlsPolicyName;function tlsPolicy(e){return(0,o.tlsPolicy)(e)}},93237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingPolicyName=void 0;t.tracingPolicy=tracingPolicy;const o=n(20623);const i=n(66427);const d=n(28431);const p=n(80544);const f=n(87779);const y=n(8666);const v=n(95750);t.tracingPolicyName="tracingPolicy";function tracingPolicy(e={}){const n=(0,d.getUserAgentValue)(e.userAgentPrefix);const o=new v.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const i=tryCreateTracingClient();return{name:t.tracingPolicyName,async sendRequest(e,t){var d;if(!i){return t(e)}const p=await n;const f={"http.url":o.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":p,requestId:e.requestId};if(p){f["http.user_agent"]=p}const{span:y,tracingContext:v}=(d=tryCreateSpan(i,e,f))!==null&&d!==void 0?d:{};if(!y||!v){return t(e)}try{const n=await i.withContext(v,t,e);tryProcessResponse(y,n);return n}catch(e){tryProcessError(y,e);throw e}}}}function tryCreateTracingClient(){try{return(0,o.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:i.SDK_VERSION})}catch(e){p.logger.warning(`Error when creating the TracingClient: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:o,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!o.isRecording()){o.end();return undefined}const d=e.createRequestHeaders(i.tracingOptions.tracingContext);for(const[e,n]of Object.entries(d)){t.headers.set(e,n)}return{span:o,tracingContext:i.tracingOptions.tracingContext}}catch(e){p.logger.warning(`Skipping creating a tracing span due to an error: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,f.isError)(t)?t:undefined});if((0,y.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}},32799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const o=n(28431);const i=(0,o.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,o.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(i)){e.headers.set(i,await n)}return t(e)}}}},37466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLikePolicyName=void 0;t.wrapAbortSignalLikePolicy=wrapAbortSignalLikePolicy;const o=n(91297);t.wrapAbortSignalLikePolicyName="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:t.wrapAbortSignalLikePolicyName,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:i}=(0,o.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{i===null||i===void 0?void 0:i()}}}}},8666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const o=n(41958);t.RestError=o.RestError;function isRestError(e){return(0,o.isRestError)(e)}},97073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasRawContent=hasRawContent;t.getRawContent=getRawContent;t.createFileFromStream=createFileFromStream;t.createFile=createFile;const o=n(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const i={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const d=Symbol("rawContent");function hasRawContent(e){return typeof e[d]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[d]()}else{return e}}function createFileFromStream(e,t,n={}){var o,p,f,y;return Object.assign(Object.assign({},i),{type:(o=n.type)!==null&&o!==void 0?o:"",lastModified:(p=n.lastModified)!==null&&p!==void 0?p:(new Date).getTime(),webkitRelativePath:(f=n.webkitRelativePath)!==null&&f!==void 0?f:"",size:(y=n.size)!==null&&y!==void 0?y:-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[d]:e})}function createFile(e,t,n={}){var p,f,y;if(o.isNodeLike){return Object.assign(Object.assign({},i),{type:(p=n.type)!==null&&p!==void 0?p:"",lastModified:(f=n.lastModified)!==null&&f!==void 0?f:(new Date).getTime(),webkitRelativePath:(y=n.webkitRelativePath)!==null&&y!==void 0?y:"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([e]).stream(),[d]:()=>e})}else{return new File([e],t,n)}}},39202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_CYCLER_OPTIONS=void 0;t.createTokenCycler=createTokenCycler;const o=n(87779);t.DEFAULT_CYCLER_OPTIONS={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()e.getToken(t,n);o=beginRefresh(tryGetAccessToken,p.retryIntervalInMs,(y=i===null||i===void 0?void 0:i.expiresOnTimestamp)!==null&&y!==void 0?y:Date.now()).then((e=>{o=null;i=e;d=n.tenantId;return i})).catch((e=>{o=null;i=null;d=undefined;throw e}))}return o}return async(e,t)=>{const n=Boolean(t.claims);const o=d!==t.tenantId;if(n){i=null}const p=o||n||f.mustRefresh;if(p){return refresh(e,t)}if(f.shouldRefresh){refresh(e,t)}return i}}},28431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const o=n(31848);const i=n(66427);function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,o.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",i.SDK_VERSION);await(0,o.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},31848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const o=n(61860);const i=o.__importStar(n(48161));const d=o.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${i.arch()}-${i.type()}-${i.release()})`)}},91297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLike=wrapAbortSignalLike;function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}},20623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var o=n(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return o.useInstrumenter}});var i=n(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return i.createTracingClient}})},48729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const o=n(79186);const i=n(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,o.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){i.state.instrumenterImplementation=e}function getInstrumenter(){if(!i.state.instrumenterImplementation){i.state.instrumenterImplementation=createDefaultInstrumenter()}return i.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const o=n(48729);const i=n(79186);function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:d}=e;function startSpan(e,p,f){var y;const v=(0,o.getInstrumenter)().startSpan(e,Object.assign(Object.assign({},f),{packageName:n,packageVersion:d,tracingContext:(y=p===null||p===void 0?void 0:p.tracingOptions)===null||y===void 0?void 0:y.tracingContext}));let D=v.tracingContext;const M=v.span;if(!D.getValue(i.knownContextKeys.namespace)){D=D.setValue(i.knownContextKeys.namespace,t)}M.setAttribute("az.namespace",D.getValue(i.knownContextKeys.namespace));const U=Object.assign({},p,{tracingOptions:Object.assign(Object.assign({},p===null||p===void 0?void 0:p.tracingOptions),{tracingContext:D})});return{span:M,updatedOptions:U}}async function withSpan(e,t,n,o){const{span:i,updatedOptions:d}=startSpan(e,t,o);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(n(d,i))));i.setStatus({status:"success"});return e}catch(e){i.setStatus({status:"error",error:e});throw e}finally{i.end()}}function withContext(e,t,...n){return(0,o.getInstrumenter)().withContext(e,t,...n)}function parseTraceparentHeader(e){return(0,o.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,o.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let n=new TracingContextImpl(e.parentContext);if(e.span){n=n.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){n=n.setValue(t.knownContextKeys.namespace,e.namespace)}return n}class TracingContextImpl{constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){var n,o;const i=new AbortController;function abortHandler(){i.abort()}(n=t===null||t===void 0?void 0:t.abortSignal)===null||n===void 0?void 0:n.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:i.signal}))))}finally{i.abort();(o=t===null||t===void 0?void 0:t.abortSignal)===null||o===void 0?void 0:o.removeEventListener("abort",abortHandler)}}},63128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const o=n(16492);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:i,abortErrorMsg:d}=t!==null&&t!==void 0?t:{};return new Promise(((t,p)=>{function rejectOnAbort(){p(new o.AbortError(d!==null&&d!==void 0?d:"The operation was aborted."))}function removeListeners(){i===null||i===void 0?void 0:i.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(i===null||i===void 0?void 0:i.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();p(e)}))}catch(e){p(e)}i===null||i===void 0?void 0:i.addEventListener("abort",onAbort)}))}},90636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const o=n(63128);const i=n(95750);const d="The delay was aborted.";function delay(e,t){let n;const{abortSignal:i,abortErrorMsg:p}=t!==null&&t!==void 0?t:{};return(0,o.createAbortablePromise)((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:i,abortErrorMsg:p!==null&&p!==void 0?p:d})}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const d=o/2+(0,i.getRandomIntegerInclusive)(0,o/2);return{retryAfterInMs:d}}},99945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const o=n(95750);function getErrorMessage(e){if((0,o.isError)(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}},87779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const o=n(61860);const i=o.__importStar(n(95750));var d=n(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var p=n(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return p.createAbortablePromise}});var f=n(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return f.delay}});var y=n(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return y.getErrorMessage}});var v=n(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return v.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return v.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return v.objectHasProperty}});function calculateRetryDelay(e,t){return i.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return i.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,n){return i.computeSha256Hmac(e,t,n)}function getRandomIntegerInclusive(e,t){return i.getRandomIntegerInclusive(e,t)}function isError(e){return i.isError(e)}function isObject(e){return i.isObject(e)}function randomUUID(){return i.randomUUID()}t.isBrowser=i.isBrowser;t.isBun=i.isBun;t.isDeno=i.isDeno;t.isNode=i.isNodeLike;t.isNodeLike=i.isNodeLike;t.isNodeRuntime=i.isNodeRuntime;t.isReactNative=i.isReactNative;t.isWebWorker=i.isWebWorker;function uint8ArrayToString(e,t){return i.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return i.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},31658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},16492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var o=n(31658);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}})},78756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=t.parseXML=t.stringifyXML=void 0;var o=n(48133);Object.defineProperty(t,"stringifyXML",{enumerable:true,get:function(){return o.stringifyXML}});Object.defineProperty(t,"parseXML",{enumerable:true,get:function(){return o.parseXML}});var i=n(93406);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return i.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return i.XML_CHARKEY}})},93406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},48133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringifyXML=stringifyXML;t.parseXML=parseXML;const o=n(50591);const i=n(93406);function getCommonOptions(e){var t;return{attributesGroupName:i.XML_ATTRKEY,textNodeName:(t=e.xmlCharKey)!==null&&t!==void 0?t:i.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){var t,n;return Object.assign(Object.assign({},getCommonOptions(e)),{attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:(t=e.rootName)!==null&&t!==void 0?t:"root",cdataPropName:(n=e.cdataPropName)!==null&&n!==void 0?n:"__cdata"})}function getParserOptions(e={}){return Object.assign(Object.assign({},getCommonOptions(e)),{parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false})}function stringifyXML(e,t={}){const n=getSerializerOptions(t);const i=new o.XMLBuilder(n);const d={[n.rootNodeName]:e};const p=i.build(d);return`${p}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const n=o.XMLValidator.validate(e);if(n!==true){throw n}const i=new o.XMLParser(getParserOptions(t));const d=i.parse(e);if(d["?xml"]){delete d["?xml"]}if(!t.includeRoot){for(const e of Object.keys(d)){const t=d[e];return typeof t==="object"?Object.assign({},t):t}}return d}},26515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const o=n(82490);const i=(0,o.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=i.logger;function setLogLevel(e){i.setLogLevel(e)}function getLogLevel(){return i.getLogLevel()}function createClientLogger(e){return i.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const o=n(20778);const i=n(61584);const d=n(27323);const p=n(72995);const f=n(46370);const y=": ";const v=" ";const D=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,p.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const n=t.length;if(n!==this.subRequests.size&&n!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const M=new Array(n);let U=0;let V=0;for(let e=0;e=0&&re{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const o=n(53563);const i=n(27323);async function getBodyAsText(e){let t=Buffer.alloc(i.BATCH_MAX_PAYLOAD_IN_BYTES);const n=await(0,o.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,n);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const o=n(87779);const i=n(50417);const d=n(20778);const p=n(87779);const f=n(35345);const y=n(90372);const v=n(58913);const D=n(25984);const M=n(47764);const U=n(78756);const V=n(27323);const j=n(68999);const K=n(53952);const ee=n(60160);const te=n(97999);class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await v.Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await v.Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,n){let o;let d;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,i.isTokenCredential)(t))){o=e;d=t}else if(e instanceof y.BlobClient){o=e.url;d=e.credential;n=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return K.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",n,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:o,credential:d},(async()=>{await new y.BlobClient(o,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,n,o){let d;let v;let D;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,i.isTokenCredential)(t))){d=e;v=t;D=n}else if(e instanceof y.BlobClient){d=e.url;v=e.credential;D=t;o=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!o){o={}}return K.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",o,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:v},(async()=>{await new y.BlobClient(d,this.batchRequest.createPipeline(v)).setAccessTier(D,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,o.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TYPE}: application/http${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,ee.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,i.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:V.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:ee.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof j.StorageSharedKeyCredential){t.addPolicy((0,te.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const n=new D.Pipeline([]);n._credential=e;n._corePipeline=t;return n}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${V.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,M.getURLPathAndQuery)(e.url)} ${V.HTTP_VERSION_1_1}${V.HTTP_LINE_ENDING}`].join(V.HTTP_LINE_ENDING);for(const[t,n]of e.headers){this.body+=`${t}: ${n}${V.HTTP_LINE_ENDING}`}this.body+=V.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=V.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${V.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,M.getURLPath)(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${V.HTTP_LINE_ENDING}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let n="";for(const[t]of e.headers){if((0,M.iEqual)(t,V.HeaderConstants.X_MS_VERSION)){n=t}}if(n!==""){e.headers.delete(n)}return t(e)}}}},12094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const o=n(41564);const i=n(72995);const d=n(95561);const p=n(53952);const f=n(35345);const y=n(53789);const v=n(25984);const D=n(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,n){let o;if((0,v.isPipelineLike)(t)){o=t}else if(!t){o=(0,v.newPipeline)(new f.AnonymousCredential,n)}else{o=(0,v.newPipeline)(t,n)}const i=new y.StorageContextClient(e,(0,v.getCoreClientOptions)(o));const d=(0,D.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=i.container}else{this.serviceOrContainerContext=i.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,n){const o=new d.BlobBatch;for(const i of e){if(typeof i==="string"){await o.deleteBlob(i,t,n)}else{await o.deleteBlob(i,t)}}return this.submitBatch(o)}async setBlobsAccessTier(e,t,n,o){const i=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await i.setBlobAccessTier(d,t,n,o)}else{await i.setBlobAccessTier(d,t,n)}}return this.submitBatch(i)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return p.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const n=e.getHttpRequestBody();const d=(0,D.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,i.utf8ByteLength)(n),e.getMultiPartContentType(),n,{...t}));const p=new o.BatchResponseParser(d,e.getSubRequests());const f=await p.parseBatchResponse();const y={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:f.subResponses,subResponsesSucceededCount:f.subResponsesSucceededCount,subResponsesFailedCount:f.subResponsesFailedCount};return y}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const o=n(87779);const i=n(98684);class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return o.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,o,d={}){this.originalResponse=e;this.blobDownloadStream=new i.RetriableReadableStream(this.originalResponse.readableStreamBody,t,n,o,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const o=n(87779);const i=n(27323);const d=n(53952);const p=n(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const n=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=n.container}else{this._isContainer=false;this._containerOrBlobOperation=n.blob}if(!t){t=(0,o.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==i.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==i.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async n=>(0,p.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==i.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==i.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async n=>{const o=(0,p.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));this._leaseId=e;return o}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==i.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==i.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,p.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==i.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==i.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==i.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==i.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async n=>{const o={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return(0,p.assertResponse)(await this._containerOrBlobOperation.breakLease(o))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const o=n(87779);const i=n(36426);class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return o.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new i.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const o=n(50417);const i=n(20778);const d=n(87779);const p=n(25984);const f=n(81884);const y=n(47764);const v=n(68999);const D=n(35345);const M=n(47764);const U=n(53952);const V=n(12094);const j=n(73542);const K=n(6358);const ee=n(85238);const te=n(46940);class BlobServiceClient extends j.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const n=(0,y.extractConnectionStringParts)(e);if(n.kind==="AccountConnString"){if(d.isNodeLike){const e=new v.StorageSharedKeyCredential(n.accountName,n.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,i.getDefaultProxySettings)(n.proxyUri)}const o=(0,p.newPipeline)(e,t);return new BlobServiceClient(n.url,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(n.kind==="SASConnString"){const e=(0,p.newPipeline)(new D.AnonymousCredential,t);return new BlobServiceClient(n.url+"?"+n.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,n){let i;if((0,p.isPipelineLike)(t)){i=t}else if(d.isNodeLike&&t instanceof v.StorageSharedKeyCredential||t instanceof D.AnonymousCredential||(0,o.isTokenCredential)(t)){i=(0,p.newPipeline)(t,n)}else{i=(0,p.newPipeline)(new D.AnonymousCredential,n)}super(e,i);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new f.ContainerClient((0,y.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const n=this.getContainerClient(e);const o=await n.create(t);return{containerClient:n,containerCreateResponse:o}}))}async deleteContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const n=this.getContainerClient(e);return n.delete(t)}))}async undeleteContainer(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,(async o=>{const i=this.getContainerClient(n.destinationContainerName||e);const d=i["storageClientContext"].container;const p=(0,M.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:o.tracingOptions}));return{containerClient:i,containerUndeleteResponse:p}}))}async getProperties(e={}){return U.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async n=>(0,M.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async getStatistics(e={}){return U.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return U.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async n=>(0,M.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:n.tracingOptions}))))}async findBlobsByTagsSegment(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,(async o=>{const i=(0,M.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const d={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,y.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listContainersSegment(e,t);n.containerItems=n.containerItems||[];e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async getUserDelegationKey(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",n,(async o=>{const i=(0,M.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,M.truncatedISO8061Date)(e,false),expiresOn:(0,M.truncatedISO8061Date)(t,false)},{abortSignal:n.abortSignal,tracingOptions:o.tracingOptions}));const d={signedObjectId:i.signedObjectId,signedTenantId:i.signedTenantId,signedStartsOn:new Date(i.signedStartsOn),signedExpiresOn:new Date(i.signedExpiresOn),signedService:i.signedService,signedVersion:i.signedVersion,value:i.value};const p={_response:i._response,requestId:i.requestId,clientRequestId:i.clientRequestId,version:i.version,date:i.date,errorCode:i.errorCode,...d};return p}))}getBlobBatchClient(){return new V.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=K.AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const i=(0,ee.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...o},this.credential).toString();return(0,y.appendToURLQuery)(this.url,i)}generateSasStringToSign(e,t=K.AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return(0,ee.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...o},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const o=n(20778);const i=n(50417);const d=n(87779);const p=n(87779);const f=n(4894);const y=n(95602);const v=n(35345);const D=n(68999);const M=n(58560);const U=n(95302);const V=n(25984);const j=n(73145);const K=n(52045);const ee=n(73542);const te=n(81582);const re=n(51382);const ne=n(27323);const oe=n(53952);const ie=n(47764);const se=n(53563);const ae=n(656);const Ae=n(23276);class BlobClient extends ee.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,p){p=p||{};let f;let y;if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,ie.getURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,ie.getURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,n={}){n.conditions=n.conditions||{};n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-download",n,(async o=>{const i=(0,ie.assertResponse)(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:n.onProgress},range:e===0&&!t?undefined:(0,K.rangeToString)({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:o.tracingOptions}));const p={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:(0,ie.parseObjectReplicationRecord)(i.objectReplicationRules)};if(!d.isNodeLike){return p}if(n.maxRetryRequests===undefined||n.maxRetryRequests<0){n.maxRetryRequests=ne.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(i.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!i.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new f.BlobDownloadResponse(p,(async t=>{const o={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...o})).readableStreamBody}),e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))}async exists(e={}){return oe.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===ne.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===ne.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const n=(0,ie.assertResponse)(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:(0,ie.parseObjectReplicationRecord)(n.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return oe.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,ie.assertResponse)(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return oe.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,ie.assertResponse)(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return oe.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,ie.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-setMetadata",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async setTags(e,t={}){return oe.tracingClient.withSpan("BlobClient-setTags",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions,tags:(0,ie.toBlobTags)(e)}))))}async getTags(e={}){return oe.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const n=(0,ie.assertResponse)(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}));const o={...n,_response:n._response,tags:(0,ie.toTags)({blobTagSet:n.blobTagSet})||{}};return o}))}getBlobLeaseClient(e){return new Ae.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,ie.assertResponse)(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const n={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const o=new j.BlobBeginCopyFromUrlPoller({blobClient:n,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await o.poll();return o}async abortCopyFromURL(e,t={}){return oe.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async n=>(0,ie.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return oe.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async n=>(0,ie.assertResponse)(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:(0,ie.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async setAccessTier(e,t={}){return oe.tracingClient.withSpan("BlobClient-setAccessTier",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setTier((0,M.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions}))))}async downloadToBuffer(e,t,n,o={}){let i;let d=0;let p=0;let f=o;if(e instanceof Buffer){i=e;d=t||0;p=typeof n==="number"?n:0}else{d=typeof e==="number"?e:0;p=typeof t==="number"?t:0;f=n||{}}let y=f.blockSize??0;if(y<0){throw new RangeError("blockSize option must be >= 0")}if(y===0){y=ne.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(p&&p<=0){throw new RangeError("count option must be greater than 0")}if(!f.conditions){f.conditions={}}return oe.tracingClient.withSpan("BlobClient-downloadToBuffer",f,(async e=>{if(!p){const t=await this.getProperties({...f,tracingOptions:e.tracingOptions});p=t.contentLength-d;if(p<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!i){try{i=Buffer.alloc(p)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${p}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length{let n=d+p;if(o+y{const d=await this.download(t,n,{...o,tracingOptions:i.tracingOptions});if(d.readableStreamBody){await(0,se.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const n=new URL(this.url);if(n.host.split(".")[1]==="blob"){const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}else if((0,ie.isIpEndpointStyle)(n)){const o=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=o[2];t=o[4]}else{const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return oe.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async n=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,ie.assertResponse)(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,ie.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n((0,ie.appendToURLQuery)(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return oe.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,ie.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return oe.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,ie.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return oe.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,ie.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return oe.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,ie.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,ie.assertResponse)(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:(0,ie.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:ne.ETagAny};return oe.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const n=(0,ie.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...n,_response:n._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return oe.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,ie.assertResponse)(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("AppendBlobClient-appendBlock",n,(async o=>(0,ie.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async appendBlockFromURL(e,t,n,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",o,(async i=>(0,ie.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:o.abortSignal,sourceRange:(0,K.rangeToString)({offset:t,count:n}),sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,appendPositionAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,ie.httpAuthorizationToString)(o.sourceAuthorization),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return oe.tracingClient.withSpan("BlockBlobClient-query",t,(async n=>{const o=(0,ie.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,ie.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,ie.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return new y.BlobQueryResponse(o,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-upload",n,(async o=>(0,ie.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:(0,M.toAccessTier)(n.tier),blobTagsString:(0,ie.toBlobTagsString)(n.tags),tracingOptions:o.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async n=>(0,ie.assertResponse)(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:(0,ie.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async stageBlock(e,t,n,o={}){(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-stageBlock",o,(async i=>(0,ie.assertResponse)(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,requestOptions:{onUploadProgress:o.onProgress},transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async stageBlockFromURL(e,t,n=0,o,i={}){(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",i,(async d=>(0,ie.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!o?undefined:(0,K.rangeToString)({offset:n,count:o}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:(0,ie.httpAuthorizationToString)(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async n=>(0,ie.assertResponse)(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async getBlockList(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async n=>{const o=(0,ie.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));if(!o.committedBlocks){o.committedBlocks=[]}if(!o.uncommittedBlocks){o.uncommittedBlocks=[]}return o}))}async uploadData(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let n;if(e instanceof Buffer){n=e}else if(e instanceof ArrayBuffer){n=Buffer.from(e)}else{e=e;n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.byteLength,t)}else{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}}))}async uploadBrowserData(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}))}async uploadSeekableInternal(e,t,n={}){let o=n.blockSize??0;if(o<0||o>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const i=n.maxSingleShotSize??ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(i<0||i>ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(o===0){if(t>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>i){o=Math.ceil(t/ne.BLOCK_BLOB_MAX_BLOCKS);if(o{if(t<=i){return(0,ie.assertResponse)(await this.upload(e(0,t),t,d))}const f=Math.floor((t-1)/o)+1;if(f>ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${ne.BLOCK_BLOB_MAX_BLOCKS}`)}const y=[];const v=(0,p.randomUUID)();let D=0;const M=new te.Batch(n.concurrency);for(let i=0;i{const p=(0,ie.generateBlockID)(v,i);const M=o*i;const U=i===f-1?t:M+o;const V=U-M;y.push(p);await this.stageBlock(p,e(M,V),V,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:d.tracingOptions});D+=V;if(n.onProgress){n.onProgress({loadedBytes:D})}}))}await M.do();return this.commitBlockList(y,d)}))}async uploadFile(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async n=>{const o=(await(0,se.fsStat)(e)).size;return this.uploadSeekableInternal(((t,n)=>()=>(0,se.fsCreateReadStream)(e,{autoClose:true,end:n?t+n-1:Infinity,start:t})),o,{...t,tracingOptions:n.tracingOptions})}))}async uploadStream(e,t=ne.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,n=5,o={}){if(!o.blobHTTPHeaders){o.blobHTTPHeaders={}}if(!o.conditions){o.conditions={}}return oe.tracingClient.withSpan("BlockBlobClient-uploadStream",o,(async i=>{let d=0;const f=(0,p.randomUUID)();let y=0;const v=[];const D=new re.BufferScheduler(e,t,n,(async(e,t)=>{const n=(0,ie.generateBlockID)(f,d);v.push(n);d++;await this.stageBlock(n,e,t,{customerProvidedKey:o.customerProvidedKey,conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions});y+=t;if(o.onProgress){o.onProgress({loadedBytes:y})}}),Math.ceil(n/4*3));await D.do();return(0,ie.assertResponse)(await this.commitBlockList(v,{...o,tracingOptions:i.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("PageBlobClient-create",t,(async n=>(0,ie.assertResponse)(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(e,t={}){return oe.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async n=>{try{const o={ifNoneMatch:ne.ETagAny};const i=(0,ie.assertResponse)(await this.create(e,{...t,conditions:o,tracingOptions:n.tracingOptions}));return{succeeded:true,...i,_response:i._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,n,o={}){o.conditions=o.conditions||{};(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("PageBlobClient-uploadPages",o,(async i=>(0,ie.assertResponse)(await this.pageBlobContext.uploadPages(n,e,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onUploadProgress:o.onProgress},range:(0,K.rangeToString)({offset:t,count:n}),sequenceNumberAccessConditions:o.conditions,transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async uploadPagesFromURL(e,t,n,o,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",i,(async d=>(0,ie.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,K.rangeToString)({offset:t,count:o}),0,(0,K.rangeToString)({offset:n,count:o}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:(0,ie.httpAuthorizationToString)(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,n={}){n.conditions=n.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-clearPages",n,(async o=>(0,ie.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async getPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-getPageRanges",n,(async o=>{const i=(0,ie.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,U.rangeResponseFromModel)(i)}))}async listPageRangesSegment(e=0,t,n,o={}){return oe.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",o,(async i=>(0,ie.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),marker:n,maxPageSize:o.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,n,o={}){let i;if(!!n||n===undefined){do{i=await this.listPageRangesSegment(e,t,n,o);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeItems(e=0,t,n={}){let o;for await(const i of this.listPageRangeItemSegments(e,t,o,n)){yield*(0,ie.ExtractPageRangeInfoItems)(i)}}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};const o=this.listPageRangeItems(e,t,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeItemSegments(e,t,o.continuationToken,{maxPageSize:o.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",o,(async i=>{const d=(0,ie.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,n,o,i={}){return oe.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",i,(async d=>(0,ie.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),marker:o,maxPageSize:i?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,n,o,i){let d;if(!!o||o===undefined){do{d=await this.listPageRangesDiffSegment(e,t,n,o,i);o=d.continuationToken;yield await d}while(o)}}async*listPageRangeDiffItems(e,t,n,o){let i;for await(const d of this.listPageRangeDiffItemSegments(e,t,n,i,o)){yield*(0,ie.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};const i=this.listPageRangeDiffItems(e,t,n,{...o});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...o})}}async getPageRangesDiffForManagedDisks(e,t,n,o={}){o.conditions=o.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",o,(async i=>{const d=(0,ie.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevSnapshotUrl:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-resize",t,(async n=>(0,ie.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async updateSequenceNumber(e,t,n={}){n.conditions=n.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",n,(async o=>(0,ie.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:o.tracingOptions}))))}async startCopyIncremental(e,t={}){return oe.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async n=>(0,ie.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const o=n(20778);const i=n(87779);const d=n(50417);const p=n(35345);const f=n(68999);const y=n(25984);const v=n(73542);const D=n(53952);const M=n(47764);const U=n(656);const V=n(23276);const j=n(90372);const K=n(12094);class ContainerClient extends v.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,n){let v;let D;n=n||{};if((0,y.isPipelineLike)(t)){D=e;v=t}else if(i.isNodeLike&&t instanceof f.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,d.isTokenCredential)(t)){D=e;v=(0,y.newPipeline)(t,n)}else if(!t&&typeof t!=="string"){D=e;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else if(t&&typeof t==="string"){const d=t;const U=(0,M.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(i.isNodeLike){const e=new f.StorageSharedKeyCredential(U.accountName,U.accountKey);D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d));if(!n.proxyOptions){n.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}v=(0,y.newPipeline)(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d))+"?"+U.accountSas;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(D,v);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return D.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,M.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return D.tracingClient.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return D.tracingClient.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new j.BlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new j.AppendBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new j.BlockBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new j.PageBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,M.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return D.tracingClient.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return D.tracingClient.withSpan("ContainerClient-setMetadata",t,(async n=>(0,M.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const n=(0,M.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const o={_response:n._response,blobPublicAccess:n.blobPublicAccess,date:n.date,etag:n.etag,errorCode:n.errorCode,lastModified:n.lastModified,requestId:n.requestId,clientRequestId:n.clientRequestId,signedIdentifiers:[],version:n.version};for(const e of n){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}o.signedIdentifiers.push({accessPolicy:t,id:e.id})}return o}))}async setAccessPolicy(e,t,n={}){n.conditions=n.conditions||{};return D.tracingClient.withSpan("ContainerClient-setAccessPolicy",n,(async o=>{const i=[];for(const e of t||[]){i.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,M.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,M.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,M.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:n.abortSignal,access:e,containerAcl:i,leaseAccessConditions:n.conditions,modifiedAccessConditions:n.conditions,tracingOptions:o.tracingOptions}))}))}getBlobLeaseClient(e){return new V.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,n,o={}){return D.tracingClient.withSpan("ContainerClient-uploadBlockBlob",o,(async o=>{const i=this.getBlockBlobClient(e);const d=await i.upload(t,n,o);return{blockBlobClient:i,response:d}}))}async deleteBlob(e,t={}){return D.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async n=>{let o=this.getBlobClient(e);if(t.versionId){o=o.withVersion(t.versionId)}return o.delete(n)}))}async listBlobFlatSegment(e,t={}){return D.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async n=>{const o=(0,M.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:n.tracingOptions}));const i={...o,_response:{...o._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobFlat)(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return i}))}async listBlobHierarchySegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",n,(async o=>{const i=(0,M.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...n,tracingOptions:o.tracingOptions}));const d={...i,_response:{...i._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobHierarchy)(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:i.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listBlobFlatSegment(e,t);e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async*listHierarchySegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.listBlobHierarchySegment(e,t,n);t=o.continuationToken;yield await o}while(t)}}async*listItemsByHierarchy(e,t={}){let n;for await(const o of this.listHierarchySegments(e,n,t)){const e=o.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const n=[];if(t.includeCopy){n.push("copy")}if(t.includeDeleted){n.push("deleted")}if(t.includeMetadata){n.push("metadata")}if(t.includeSnapshots){n.push("snapshots")}if(t.includeVersions){n.push("versions")}if(t.includeUncommitedBlobs){n.push("uncommittedblobs")}if(t.includeTags){n.push("tags")}if(t.includeDeletedWithVersions){n.push("deletedwithversions")}if(t.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(t.includeLegalHold){n.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const o={...t,...n.length>0?{include:n}:{}};const i=this.listItemsByHierarchy(e,o);return{async next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...o})}}async findBlobsByTagsSegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",n,(async o=>{const i=(0,M.assertResponse)(await this.containerContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const d={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,M.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async getAccountInfo(e={}){return D.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if((0,M.isIpEndpointStyle)(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,M.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();n((0,M.appendToURLQuery)(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new K.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const n=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}},25984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const o=n(61584);const i=n(20778);const d=n(60160);const p=n(78756);const f=n(50417);const y=n(46370);const v=n(98335);const D=n(68999);const M=n(35345);const U=n(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return U.StorageOAuthScopes}});const V=n(51382);const j=n(490);const K=n(31160);const ee=n(97999);const te=n(31821);const re=n(99359);function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new M.AnonymousCredential}const n=new Pipeline([],t);n._credential=e;return n}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const n=e.factories.filter((e=>!t.some((t=>t(e)))));if(n.length){const e=n.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,o.createRequestPolicyFactoryPolicy)(n),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...n}=e.options;let v=e._coreHttpClient;if(!v){v=t?(0,o.convertHttpClient)(t):(0,V.getCachedDefaultHttpClient)();e._coreHttpClient=v}let M=e._corePipeline;if(!M){const t=`azsdk-js-azure-storage-blob/${U.SDK_VERSION}`;const o=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;M=(0,d.createClientPipeline)({...n,loggingOptions:{additionalAllowedHeaderNames:U.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:U.StorageBlobLoggingAllowedQueryParameters,logger:y.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:p.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:p.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});M.removePolicy({phase:"Retry"});M.removePolicy({name:i.decompressResponsePolicyName});M.addPolicy((0,re.storageCorrectContentLengthPolicy)());M.addPolicy((0,K.storageRetryPolicy)(n.retryOptions),{phase:"Retry"});M.addPolicy((0,j.storageBrowserPolicy)());const v=processDownlevelPipeline(e);if(v){M.addPolicy(v.wrappedPolicies,v.afterRetry?{afterPhase:"Retry"}:undefined)}const V=getCredentialFromPipeline(e);if((0,f.isTokenCredential)(V)){M.addPolicy((0,i.bearerTokenAuthenticationPolicy)({credential:V,scopes:n.audience??U.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(V instanceof D.StorageSharedKeyCredential){M.addPolicy((0,ee.storageSharedKeyCredentialPolicy)({accountName:V.accountName,accountKey:V.accountKey}),{phase:"Sign"})}e._corePipeline=M}return{...n,allowInsecureConnection:true,httpClient:v,pipeline:M}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new M.AnonymousCredential;for(const n of e.factories){if((0,f.isTokenCredential)(n.credential)){t=n.credential}else if(isStorageSharedKeyCredential(n)){return n}}return t}function isStorageSharedKeyCredential(e){if(e instanceof D.StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof M.AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return(0,f.isTokenCredential)(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof te.StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof v.StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const n={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const o={log(e,t){},shouldLog(e){return false}};const i=e.create(n,o);const d=i.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}},31821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const o=n(78654);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return o.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new o.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},73542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const o=n(53789);const i=n(25984);const d=n(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new o.StorageContextClient(this.url,(0,i.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,i.getCredentialFromPipeline)(t);const n=this.storageClientContext;n.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const o=n(30247);class StorageContextClient extends o.StorageClient{async sendOperationRequest(e,t){const n={...t};if(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}"){n.path=""}return super.sendOperationRequest(e,n)}}t.StorageContextClient=StorageContextClient},98335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const o=n(57996);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return o.StorageRetryPolicy}});const i=n(16308);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return i.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new o.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},35345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const o=n(13501);const i=n(52596);class AnonymousCredential extends i.Credential{create(e,t){return new o.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},52596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},68999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const o=n(77598);const i=n(45511);const d=n(52596);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new i.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,o.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},10992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const o=n(77598);class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,o.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},30247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const o=n(61860);o.__exportStar(n(12362),t);var i=n(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return i.StorageClient}});o.__exportStar(n(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}));var o;(function(e){e["Backup"]="backup"})(o||(t.KnownFileShareTokenIntent=o={}));var i;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(i||(t.KnownBlobExpiryOptions=i={}));var d;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};t.Logging={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.RetentionPolicy={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};t.Metrics={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.CorsRule={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};t.StaticWebsite={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};t.StorageError={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};t.ListContainersSegmentResponse={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.ContainerItem={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};t.ContainerProperties={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};t.KeyInfo={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};t.UserDelegationKey={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.FilterBlobSegment={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.FilterBlobItem={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};t.BlobTags={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};t.BlobTag={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.SignedIdentifier={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};t.AccessPolicy={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};t.ListBlobsFlatSegmentResponse={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobFlatListSegment={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobItemInternal={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};t.BlobName={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};t.BlobPropertiesInternal={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};t.ListBlobsHierarchySegmentResponse={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobHierarchyListSegment={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};t.BlockList={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};t.Block={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};t.PageList={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.PageRange={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.ClearRange={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.QueryRequest={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};t.DelimitedTextConfiguration={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};t.ArrowField={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};t.ServiceSetPropertiesHeaders={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLExceptionHeaders={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLHeaders={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLExceptionHeaders={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLHeaders={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesHeaders={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobSealHeaders={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockHeaders={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListHeaders={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.fileRequestIntent=t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=void 0;const o=n(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:o.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2025-07-05",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:o.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:o.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:o.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:o.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},y)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},D)}seal(e){return this.client.sendOperationRequest({options:e},M)}}t.AppendBlobImpl=AppendBlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.blobTagsString,p.legalHold1,p.blobType1],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.maxSize,p.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.transactionalContentMD5,p.sourceUrl,p.sourceContentCrc64,p.maxSize,p.appendPosition,p.sourceRange1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp23],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.appendPosition],isXML:true,serializer:f}},57559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}undelete(e){return this.client.sendOperationRequest({options:e},M)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},V)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},j)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},ee)}setMetadata(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},oe)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},ie)}breakLease(e){return this.client.sendOperationRequest({options:e},se)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ae)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Ae)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ce)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},le)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ue)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},de)}query(e){return this.client.sendOperationRequest({options:e},ge)}getTags(e){return this.client.sendOperationRequest({options:e},pe)}setTags(e){return this.client.sendOperationRequest({options:e},me)}}t.BlobImpl=BlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.rangeGetContentMD5,p.rangeGetContentCRC64,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.blobDeleteType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.deleteSnapshots],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp11],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.expiryOptions,p.expiresOn],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifUnmodifiedSince,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp13],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.legalHold],isXML:true,serializer:f};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const oe={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ie={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const se={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp14],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const Ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.tier,p.rehydratePriority,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sealBlob,p.legalHold1],isXML:true,serializer:f};const ce={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.copySource,p.blobTagsString,p.legalHold1,p.xMsRequiresSync,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent],isXML:true,serializer:f};const le={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp15,p.copyId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.copyActionAbortConstant],isXML:true,serializer:f};const ue={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp16],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags,p.rehydratePriority,p.tier1],isXML:true,serializer:f};const de={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ge={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:p.queryRequest,queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp17],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const pe={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f};const me={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:p.tags,queryParameters:[p.timeoutInSeconds,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifTags,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f}},95440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},y)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},v)}stageBlock(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:o},D)}stageBlockFromURL(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:o},M)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},V)}}t.BlockBlobImpl=BlockBlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent,p.transactionalContentMD5,p.blobType2,p.copySourceBlobProperties],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.sourceUrl,p.sourceContentCrc64,p.sourceRange1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:p.blocks,queryParameters:[p.timeoutInSeconds,p.comp25],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp25,p.listType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f}},14509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}setMetadata(e){return this.client.sendOperationRequest({options:e},M)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},V)}restore(e){return this.client.sendOperationRequest({options:e},j)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},K)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},ee)}filterBlobs(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},oe)}breakLease(e){return this.client.sendOperationRequest({options:e},ie)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},se)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ae)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Ae)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ce)}}t.ContainerImpl=ContainerImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.access,p.defaultEncryptionScope,p.preventEncryptionScopeOverride],isXML:true,serializer:f};const v={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const D={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,serializer:f};const M={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince],isXML:true,serializer:f};const U={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const V={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:p.containerAcl,queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.access,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const j={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.deletedContainerName,p.deletedContainerVersion],isXML:true,serializer:f};const K={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp9],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.sourceContainerName,p.sourceLeaseId],isXML:true,serializer:f};const ee={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4,p.restype2],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const re={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId],isXML:true,serializer:f};const ne={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1],isXML:true,serializer:f};const oe={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2],isXML:true,serializer:f};const ie={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod],isXML:true,serializer:f};const se={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1],isXML:true,serializer:f};const ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const Ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1,p.delimiter],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ce={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},37878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(61860);o.__exportStar(n(44181),t);o.__exportStar(n(14509),t);o.__exportStar(n(57559),t);o.__exportStar(n(69156),t);o.__exportStar(n(40535),t);o.__exportStar(n(95440),t)},69156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},y)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},D)}uploadPagesFromURL(e,t,n,o,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:o,options:i},M)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},V)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},j)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},K)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ee)}}t.PageBlobImpl=PageBlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.blobType,p.blobContentLength,p.blobSequenceNumber],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.pageWrite1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.sourceUrl,p.sourceRange,p.sourceContentCrc64,p.range1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20,p.prevsnapshot],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags,p.prevSnapshotUrl],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.blobContentLength],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobSequenceNumber,p.sequenceNumberAction],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp21],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.copySource],isXML:true,serializer:f}},44181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}getStatistics(e){return this.client.sendOperationRequest({options:e},D)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},M)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},V)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},j)}filterBlobs(e){return this.client.sendOperationRequest({options:e},K)}}t.ServiceImpl=ServiceImpl;const f=i.createSerializer(d,true);const y={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:p.blobServiceProperties,queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const v={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const D={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[p.restype,p.timeoutInSeconds,p.comp1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const M={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.include],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:p.keyInfo,queryParameters:[p.restype,p.timeoutInSeconds,p.comp3],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const j={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const K={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(61860);o.__exportStar(n(26865),t);o.__exportStar(n(15337),t);o.__exportStar(n(68355),t);o.__exportStar(n(14400),t);o.__exportStar(n(56635),t);o.__exportStar(n(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const o=n(61860);const i=o.__importStar(n(61584));const d=n(37878);class StorageClient extends i.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const n={requestContentType:"application/json; charset=utf-8"};const o=`azsdk-js-azure-storage-blob/12.28.0`;const i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;const p={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??"{url}"};super(p);this.url=e;this.version=t.version||"2025-07-05";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}))},71400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.BaseRequestPolicy=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const o=n(61860);const i=n(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return i.RestError}});o.__exportStar(n(96341),t);o.__exportStar(n(90372),t);o.__exportStar(n(81884),t);o.__exportStar(n(23276),t);o.__exportStar(n(6358),t);o.__exportStar(n(91267),t);o.__exportStar(n(46940),t);var d=n(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});o.__exportStar(n(95561),t);o.__exportStar(n(12094),t);o.__exportStar(n(48175),t);o.__exportStar(n(2232),t);var p=n(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return p.generateBlobSASQueryParameters}});o.__exportStar(n(31821),t);o.__exportStar(n(51622),t);o.__exportStar(n(35345),t);o.__exportStar(n(52596),t);o.__exportStar(n(68999),t);var f=n(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return f.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return f.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return f.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return f.getBlobServiceAccountAudience}});var y=n(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return y.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return y.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return y.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return y.StorageOAuthScopes}});o.__exportStar(n(98335),t);var v=n(70336);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return v.BaseRequestPolicy}});o.__exportStar(n(13501),t);o.__exportStar(n(63064),t);o.__exportStar(n(98335),t);o.__exportStar(n(45511),t);o.__exportStar(n(26823),t);o.__exportStar(n(83627),t);var D=n(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return D.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,n={}){const o=await e.read(t,{abortSignal:n.abortSignal});if(o.length!==t){throw new Error("Hit stream end.")}return o}static async readByte(e,t={}){const n=await AvroParser.readFixedBytes(e,1,t);return n[0]}static async readZigZagLong(e,t={}){let n=0;let o=0;let i,d,p;do{i=await AvroParser.readByte(e,t);d=i&128;n|=(i&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return o}return n>>1^-(n&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const n=await AvroParser.readByte(e,t);if(n===1){return true}else if(n===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const n=await AvroParser.readFixedBytes(e,4,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat32(0,true)}static async readDouble(e,t={}){const n=await AvroParser.readFixedBytes(e,8,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat64(0,true)}static async readBytes(e,t={}){const n=await AvroParser.readLong(e,t);if(n<0){throw new Error("Bytes size was negative.")}return e.read(n,{abortSignal:t.abortSignal})}static async readString(e,t={}){const n=await AvroParser.readBytes(e,t);const o=new TextDecoder;return o.decode(n)}static async readMapPair(e,t,n={}){const o=await AvroParser.readString(e,n);const i=await t(e,n);return{key:o,value:i}}static async readMap(e,t,n={}){const readPairMethod=(e,n={})=>AvroParser.readMapPair(e,t,n);const o=await AvroParser.readArray(e,readPairMethod,n);const i={};for(const e of o){i[e.key]=e.value}return i}static async readArray(e,t,n={}){const o=[];for(let i=await AvroParser.readLong(e,n);i!==0;i=await AvroParser.readLong(e,n)){if(i<0){await AvroParser.readLong(e,n);i=-i}while(i--){const i=await t(e,n);o.push(i)}}return o}}t.AvroParser=AvroParser;var n;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(n||(n={}));var o;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(o||(o={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case o.NULL:case o.BOOLEAN:case o.INT:case o.LONG:case o.FLOAT:case o.DOUBLE:case o.BYTES:case o.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case n.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const o={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){o[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(o,e.name);case n.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case n.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case n.ARRAY:case n.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case o.NULL:return AvroParser.readNull();case o.BOOLEAN:return AvroParser.readBoolean(e,t);case o.INT:return AvroParser.readInt(e,t);case o.LONG:return AvroParser.readLong(e,t);case o.FLOAT:return AvroParser.readFloat(e,t);case o.DOUBLE:return AvroParser.readDouble(e,t);case o.BYTES:return AvroParser.readBytes(e,t);case o.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._symbols[n]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._types[n].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const n={};n["$schema"]=this._name;for(const o in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,o)){n[o]=await this._fields[o].read(e,t)}}return n}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const o=n(41675);const i=n(24517);const d=n(20181);const p=new i.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends o.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw p}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const n=this._readable.read(e);if(n){this._position+=n.length;return this.toUint8Array(n)}else{return new Promise(((n,o)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();n(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();o()};const abortHandler=()=>{cleanUp();o(p)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const o=n(11326);const i=n(35652);const d=n(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,n,o){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=n||0;this._objectIndex=o||0;this._initialBlockOffset=n||0}async initialize(e={}){const t=await i.AvroParser.readFixedBytes(this._headerStream,o.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,o.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await i.AvroParser.readMap(this._headerStream,i.AvroParser.readString,{abortSignal:e.abortSignal});const n=this._metadata[o.AVRO_CODEC_KEY];if(!(n===undefined||n===null||n==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await i.AvroParser.readFixedBytes(this._headerStream,o.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const p=JSON.parse(this._metadata[o.AVRO_SCHEMA_KEY]);this._itemType=i.AvroType.fromSchema(p);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await i.AvroParser.readFixedBytes(this._dataStream,o.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var o=n(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return o.AvroReader}});var i=n(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return i.AvroReadable}});var d=n(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("storage-blob")},58560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const o=n(27323);var i;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(i||(t.BlockBlobTier=i={}));var d;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(d||(t.PremiumPageBlobTier=d={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=o.EncryptionAlgorithmAES25}}var p;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(p||(t.StorageBlobAudience=p={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},13501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const o=n(63064);class AnonymousCredentialPolicy extends o.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},63064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const o=n(70336);class CredentialPolicy extends o.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},70336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},78654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const o=n(70336);const i=n(87779);const d=n(27323);const p=n(47764);class StorageBrowserPolicy extends o.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(i.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const o=n(87779);const i=n(27323);const d=n(47764);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(o.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,i.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(i.HeaderConstants.COOKIE);e.headers.delete(i.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},99359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const o=n(27323);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},57996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const o=n(24517);const i=n(70336);const d=n(27323);const p=n(47764);const f=n(46370);const y=n(16308);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new o.AbortError("The operation was aborted.");class StorageRetryPolicy extends i.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const o=e.clone();const i=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!i){o.url=(0,p.setURLHost)(o.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){o.url=(0,p.setURLParameter)(o.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(o);if(!this.shouldRetry(i,n,y)){return y}t=t||!i&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(i,n,y,e)){throw e}}await this.delay(i,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,o){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(const e of i){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||o){const t=n?n.status:o?o.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let o=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:o=this.retryOptions.retryDelayInMs;break}}else{o=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${o}ms`);return(0,p.delay)(o,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},16308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},31160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const o=n(24517);const i=n(20778);const d=n(87779);const p=n(98335);const f=n(27323);const y=n(47764);const v=n(46370);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new o.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const o=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:i}){if(t>=o){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${o}, no further try.`);return false}if(i){for(const e of M){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||i){const t=n?.status??i?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let o=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:o=V;break}}else{o=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${o}ms`);return o}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const o=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!o||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:o;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,i.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new i.RestError("RetryPolicy failed without known error.")}}}},45511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const o=n(27323);const i=n(47764);const d=n(63064);const p=n(21902);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,o.HeaderConstants.DATE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,i.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const o=(0,i.getURLQueries)(e.url);const d={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();d[n]=o[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},97999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const o=n(77598);const i=n(27323);const d=n(47764);const p=n(21902);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,i.HeaderConstants.DATE),getHeaderValueToSign(t,i.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,o.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,o]of e.headers){if(n.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:o})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let o="";o+=`/${e.accountName}${n}`;const i=(0,d.getURLQueries)(t.url);const p={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();p[n]=i[t];e.push(n)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(p[t])}`}}return o}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},73145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const o=n(87779);const i=n(91754);class BlobBeginCopyFromUrlPoller extends i.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:n,intervalInMs:o=15e3,onProgress:i,resumeFrom:d,startCopyFromURLOptions:p}=e;let f;if(d){f=JSON.parse(d).state}const y=makeBlobBeginCopyFromURLPollOperation({...f,blobClient:t,copySource:n,startCopyFromURLOptions:p});super(y);if(typeof i==="function"){this.onProgress(i)}this.intervalInMs=o}delay(){return(0,o.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:n}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!n){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const p=async function update(e={}){const t=this.state;const{blobClient:n,copySource:o,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=true;const e=await n.startCopyFromURL(o,i);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const n=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:o,copyProgress:i}=n;const d=t.copyProgress;if(i){t.copyProgress=i}if(o==="pending"&&i!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(o==="success"){t.result=n;t.isCompleted=true}else if(o==="failed"){t.error=new Error(`Blob copy failed with reason: "${n.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const f=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:f,update:p}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${n}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const n of e){switch(n){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${n}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const n of e){switch(n){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${n}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const o=n(6358);const i=n(91267);const d=n(46940);const p=n(2977);const f=n(26823);const y=n(27323);const v=n(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const n=e.version?e.version:y.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const D=o.AccountSASPermissions.parse(e.permissions.toString());const M=d.AccountSASServices.parse(e.services).toString();const U=i.AccountSASResourceTypes.parse(e.resourceTypes).toString();let V;if(n>="2020-12-06"){V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n")}const j=t.computeHMACSHA256(V);return{sasQueryParameters:new f.SASQueryParameters(n,j,D.toString(),M,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:V}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${n}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const o=n(2232);const i=n(51622);const d=n(68999);const p=n(10992);const f=n(2977);const y=n(26823);const v=n(27323);const D=n(47764);function generateBlobSASQueryParameters(e,t,n){return generateBlobSASQueryParametersInternal(e,t,n).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,n){const o=e.version?e.version:v.SERVICE_VERSION;const i=t instanceof d.StorageSharedKeyCredential?t:undefined;let f;if(i===undefined&&n!==undefined){f=new p.UserDelegationKeyCredential(n,t)}if(i===undefined&&f===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(o>="2020-12-06"){if(i!==undefined){return generateBlobSASQueryParameters20201206(e,i)}else{if(o>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,f)}else{return generateBlobSASQueryParametersUDK20201206(e,f)}}}if(o>="2018-11-09"){if(i!==undefined){return generateBlobSASQueryParameters20181109(e,i)}else{if(o>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,f)}else{return generateBlobSASQueryParametersUDK20181109(e,f)}}}if(o>="2015-04-05"){if(i!==undefined){return generateBlobSASQueryParameters20150405(e,i)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";if(e.blobName){n="b"}let d;if(e.permissions){if(e.blobName){d=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const p=[d?d:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const v=t.computeHMACSHA256(p);return{sasQueryParameters:new y.SASQueryParameters(e.version,v,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:p}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:v}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:v}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:v}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,undefined,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function getCanonicalName(e,t,n){const o=[`/blob/${e}/${t}`];if(n){o.push(`/${n}`)}return o.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:v.SERVICE_VERSION;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${n}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const o=n(2977);const i=n(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,n,o,i,d,p,f,y,v,D,M,U,V,j,K,ee,te,re,ne){this.version=e;this.signature=t;if(n!==undefined&&typeof n!=="string"){this.permissions=n.permissions;this.services=n.services;this.resourceTypes=n.resourceTypes;this.protocol=n.protocol;this.startsOn=n.startsOn;this.expiresOn=n.expiresOn;this.ipRangeInner=n.ipRange;this.identifier=n.identifier;this.encryptionScope=n.encryptionScope;this.resource=n.resource;this.cacheControl=n.cacheControl;this.contentDisposition=n.contentDisposition;this.contentEncoding=n.contentEncoding;this.contentLanguage=n.contentLanguage;this.contentType=n.contentType;if(n.userDelegationKey){this.signedOid=n.userDelegationKey.signedObjectId;this.signedTenantId=n.userDelegationKey.signedTenantId;this.signedStartsOn=n.userDelegationKey.signedStartsOn;this.signedExpiresOn=n.userDelegationKey.signedExpiresOn;this.signedService=n.userDelegationKey.signedService;this.signedVersion=n.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId;this.correlationId=n.correlationId}}else{this.services=o;this.resourceTypes=i;this.expiresOn=f;this.permissions=n;this.protocol=d;this.startsOn=p;this.ipRangeInner=y;this.encryptionScope=ne;this.identifier=v;this.resource=D;this.cacheControl=M;this.contentDisposition=U;this.contentEncoding=V;this.contentLanguage=j;this.contentType=K;if(ee){this.signedOid=ee.signedObjectId;this.signedTenantId=ee.signedTenantId;this.signedStartsOn=ee.signedStartsOn;this.signedExpiresOn=ee.signedExpiresOn;this.signedService=ee.signedService;this.signedVersion=ee.signedVersion;this.preauthorizedAgentObjectId=te;this.correlationId=re}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const t=[];for(const n of e){switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?(0,i.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?(0,i.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?(0,o.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?(0,i.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?(0,i.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break}}return t.join("&")}tryAppendQueryParameter(e,t,n){if(!n){return}t=encodeURIComponent(t);n=encodeURIComponent(n);if(t.length>0&&n.length>0){e.push(`${t}=${n}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const o=n(24434);var i;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(i||(i={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=i.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new o.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=i.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const o=n(57075);const i=n(96147);class BlobQuickQueryStream extends o.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new i.AvroReader(new i.AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const n=t.$schema;if(typeof n!=="string"){throw Error("Missing schema in avro record.")}switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const n=t.name;if(typeof n!=="string"){throw Error("Invalid name in avro error record.")}const o=t.description;if(typeof o!=="string"){throw Error("Invalid description in avro error record.")}const i=t.position;if(typeof i!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:i,name:n,isFatal:e,description:o})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var n;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(n||(n={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===n.UNLOCKED){this.keys[e]=n.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=n.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===n.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}t.Mutex=Mutex},98684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const o=n(24517);const i=n(57075);class RetriableReadableStream extends i.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,o,i={}){super({highWaterMark:i.highWaterMark});this.getter=t;this.source=e;this.start=n;this.offset=n;this.end=n+o-1;this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0;this.onProgress=i.onProgress;this.options=i;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new o.AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}t.RetriableReadableStream=RetriableReadableStream},21902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const o=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const i=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,o,i];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.28.0";t.SERVICE_VERSION="2025-07-05";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];t.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const o=n(20623);const i=n(27323);t.tracingClient=(0,o.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:i.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const o=n(20778);const i=n(87779);const d=n(27323);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let d=Buffer.from("accountKey","base64");let p="";i=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){o=getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${p}`}if(!i){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:i,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let o=getValueInConnString(e,"AccountName");if(!o){o=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=o.search===""?"?":o.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){f.push(e)}}}if(d){f.push(`${i}=${d}`)}o.search=f.length?`?${f.join("&")}`:"";return o.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&ni){e=e.slice(0,i)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((o,i)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,o.createHttpHeaders)();for(const[n,o]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(o))}else{t.set(n,o)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(o)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.blobTagSet.push({key:n,value:o})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const n of e.blobTagSet){t[n.key]=n.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const n in e){const o=n.split("_");const i="or-";if(o[0].startsWith(i)){o[0]=o[0].substring(i.length)}const d={ruleId:o[1],replicationStatus:e[n]};const p=t.findIndex((e=>e.policyId===o[0]));if(p>-1){t[p].rules.push(d)}else{t.push({policyId:o[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let n=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)n=e.clearRange;let o=0;let i=0;while(o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const o=n(61860);const i=o.__importDefault(n(73024));const d=o.__importDefault(n(57975));const p=n(27323);async function streamToBuffer(e,t,n,o,i){let d=0;const f=o-n;return new Promise(((o,y)=>{const v=setTimeout((()=>y(new Error(`The operation cannot be completed in timeout.`))),p.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=f){clearTimeout(v);o();return}let p=e.read();if(!p){return}if(typeof p==="string"){p=Buffer.from(p,i)}const y=d+p.length>f?f-d:p.length;t.fill(p.slice(0,y),n+d,n+d+y);d+=y}));e.on("end",(()=>{clearTimeout(v);if(d{clearTimeout(v);y(e)}))}))}async function streamToBuffer2(e,t,n){let o=0;const i=t.length;return new Promise(((d,p)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,n)}if(o+d.length>i){p(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(d,o,o+d.length);o+=d.length}));e.on("end",(()=>{d(o)}));e.on("error",p)}))}async function streamToBuffer3(e,t){return new Promise(((n,o)=>{const i=[];e.on("data",(e=>{i.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{n(Buffer.concat(i))}));e.on("error",o)}))}async function readStreamToLocalFile(e,t){return new Promise(((n,o)=>{const d=i.default.createWriteStream(t);e.on("error",(e=>{o(e)}));d.on("error",(e=>{o(e)}));d.on("close",n);e.pipe(d)}))}t.fsStat=d.default.promisify(i.default.stat);t.fsCreateReadStream=i.default.createReadStream},24841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},24517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var o=n(24841);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}})},86381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const o=n(24434);const i=n(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new o.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,o,i,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(n<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`)}if(i<=0){throw new RangeError(`concurrency must be larger than 0, current is ${i}`)}this.bufferSize=t;this.maxBuffers=n;this.readable=e;this.outgoingHandler=o;this.concurrency=i;this.encoding=d}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new i.PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const o=n(57075);class BuffersStream extends o.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let o=0;for(const e of this.buffers){o+=e.byteLength}if(o=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(ne-n){const o=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,o));this.pushedBytesLength+=e-n;this.byteOffsetInCurrentBuffer=o;n=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===i){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;n+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const o=n(61860);const i=n(66093);const d=o.__importDefault(n(4573));const p=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e;this._size=0;const o=Math.ceil(e/p);for(let t=0;t0){e[0]=e[0].slice(d)}}getReadableStream(){return new i.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const o=n(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return o.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new o.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const o=n(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return o.StorageRetryPolicy}});const i=n(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return i.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new o.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const o=n(20778);let i;function getCachedDefaultHttpClient(){if(!i){i=(0,o.createDefaultHttpClient)()}return i}},32159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const o=n(63611);const i=n(450);class AnonymousCredential extends i.Credential{create(e,t){return new o.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const o=n(77598);const i=n(35369);const d=n(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new i.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,o.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},51382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const o=n(61860);o.__exportStar(n(86381),t);var i=n(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return i.getCachedDefaultHttpClient}});o.__exportStar(n(4399),t);o.__exportStar(n(32159),t);o.__exportStar(n(450),t);o.__exportStar(n(30849),t);o.__exportStar(n(77321),t);var d=n(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});o.__exportStar(n(63611),t);o.__exportStar(n(74238),t);o.__exportStar(n(22312),t);o.__exportStar(n(83100),t);o.__exportStar(n(92505),t);o.__exportStar(n(38622),t);o.__exportStar(n(27734),t);o.__exportStar(n(78178),t);o.__exportStar(n(35369),t);o.__exportStar(n(53233),t);o.__exportStar(n(77321),t)},32780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("storage-common")},63611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const o=n(74238);class AnonymousCredentialPolicy extends o.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const o=n(40590);class CredentialPolicy extends o.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const o=n(40590);const i=n(87779);const d=n(77925);const p=n(58218);class StorageBrowserPolicy extends o.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(i.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const o=n(87779);const i=n(77925);const d=n(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(o.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,i.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(i.HeaderConstants.COOKIE);e.headers.delete(i.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const o=n(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},27734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const o=n(18251);const i=n(40590);const d=n(77925);const p=n(58218);const f=n(32780);const y=n(38622);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new o.AbortError("The operation was aborted.");class StorageRetryPolicy extends i.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const o=e.clone();const i=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!i){o.url=(0,p.setURLHost)(o.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){o.url=(0,p.setURLParameter)(o.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(o);if(!this.shouldRetry(i,n,y)){return y}t=t||!i&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(i,n,y,e)){throw e}}await this.delay(i,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,o){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(const e of i){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||o){const t=n?n.status:o?o.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let o=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:o=this.retryOptions.retryDelayInMs;break}}else{o=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${o}ms`);return(0,p.delay)(o,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},78178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const o=n(18251);const i=n(20778);const d=n(87779);const p=n(77321);const f=n(77925);const y=n(58218);const v=n(32780);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new o.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const o=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:i}){if(t>=o){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${o}, no further try.`);return false}if(i){for(const e of M){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||i){const t=n?.status??i?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let o=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:o=V;break}}else{o=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${o}ms`);return o}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const o=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!o||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:o;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,i.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new i.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const o=n(77925);const i=n(58218);const d=n(74238);const p=n(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,o.HeaderConstants.DATE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,i.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const o=(0,i.getURLQueries)(e.url);const d={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();d[n]=o[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const o=n(77598);const i=n(77925);const d=n(58218);const p=n(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,i.HeaderConstants.DATE),getHeaderValueToSign(t,i.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,o.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,o]of e.headers){if(n.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:o})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let o="";o+=`/${e.accountName}${n}`;const i=(0,d.getURLQueries)(t.url);const p={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();p[n]=i[t];e.push(n)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(p[t])}`}}return o}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const o=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const i=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,o,i];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const o=n(20778);const i=n(87779);const d=n(77925);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let d=Buffer.from("accountKey","base64");let p="";i=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){o=getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${p}`}if(!i){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:i,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let o=getValueInConnString(e,"AccountName");if(!o){o=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=o.search===""?"?":o.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){f.push(e)}}}if(d){f.push(`${i}=${d}`)}o.search=f.length?`?${f.join("&")}`:"";return o.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&ni){e=e.slice(0,i)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((o,i)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,o.createHttpHeaders)();for(const[n,o]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(o))}else{t.set(n,o)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},18251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var o=n(6675);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}})},27182:(e,t,n)=>{"use strict";const o=n(57075).Writable;const i=n(57975).inherits;const d=n(84136);const p=n(50612);const f=n(62271);const y=45;const v=Buffer.from("-");const D=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}o.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new f(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}i(Dicer,o);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{o.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,n){if(!this._hparser&&!this._bparser){return n()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new p(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{"use strict";const o=n(78474).EventEmitter;const i=n(57975).inherits;const d=n(22393);const p=n(84136);const f=Buffer.from("\r\n\r\n");const y=/\r\n/g;const v=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){o.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=d(e,"maxHeaderPairs",2e3);this.maxHeaderSize=d(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new p(f);this.ss.on("info",(function(e,n,o,i){if(n&&!t.maxed){if(t.nread+i-o>=t.maxHeaderSize){i=t.maxHeaderSize-t.nread+o;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=i-o}t.buffer+=n.toString("binary",o,i)}if(e){t._finish()}}))}i(HeaderParser,o);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(y);const t=e.length;let n,o;for(var i=0;i{"use strict";const o=n(57975).inherits;const i=n(57075).Readable;function PartStream(e){i.call(this,e)}o(PartStream,i);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,n)=>{"use strict";const o=n(78474).EventEmitter;const i=n(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var n=0;n=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const n=this._lookbehind_size+d;if(n>0){this.emit("info",false,this._lookbehind,0,n)}this._lookbehind.copy(this._lookbehind,0,n,this._lookbehind_size-n);this._lookbehind_size-=n;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}d+=(d>=0)*this._bufpos;if(e.indexOf(n,d)!==-1){d=e.indexOf(n,d);++this.matches;if(d>0){this.emit("info",true,e,this._bufpos,d)}else{this.emit("info",true)}return this._bufpos=d+o}else{d=t-o}while(d0){this.emit("info",false,e,this._bufpos,d{"use strict";const o=n(57075).Writable;const{inherits:i}=n(57975);const d=n(27182);const p=n(41192);const f=n(80855);const y=n(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...n}=e;this.opts={autoDestroy:false,...n};o.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}i(Busboy,o);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}o.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=y(e["content-type"]);const n={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(p.detect.test(t[0])){return new p(this,n)}if(f.detect.test(t[0])){return new f(this,n)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,n){this._parser.write(e,n)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=d},41192:(e,t,n)=>{"use strict";const{Readable:o}=n(57075);const{inherits:i}=n(57975);const d=n(27182);const p=n(8929);const f=n(72747);const y=n(20692);const v=n(22393);const D=/^boundary$/i;const M=/^form-data$/i;const U=/^charset$/i;const V=/^filename$/i;const j=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let n;let o;const i=this;let K;const ee=t.limits;const te=t.isPartAFile||((e,t,n)=>t==="application/octet-stream"||n!==undefined);const re=t.parsedConType||[];const ne=t.defCharset||"utf8";const oe=t.preservePath;const ie={highWaterMark:t.fileHwm};for(n=0,o=re.length;nle){i.parser.removeListener("part",onPart);i.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(fe){const e=fe;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(d){let v;let D;let K;let ee;let re;let le;let ue=0;if(d["content-type"]){K=p(d["content-type"][0]);if(K[0]){v=K[0].toLowerCase();for(n=0,o=K.length;nae){const o=ae-ue+e.length;if(o>0){n.push(e.slice(0,o))}n.truncated=true;n.bytesRead=ae;t.removeAllListeners("data");n.emit("limit");return}else if(!n.push(e)){i._pause=true}n.bytesRead=ue};ye=function(){he=undefined;n.push(null)}}else{if(pe===ce){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++pe;++me;let n="";let o=false;fe=t;de=function(e){if((ue+=e.length)>se){const i=se-(ue-e.length);n+=e.toString("binary",0,i);o=true;t.removeAllListeners("data")}else{n+=e.toString("binary")}};ye=function(){fe=undefined;if(n.length){n=f(n,"binary",ee)}e.emit("field",D,n,false,o,re,v);--me;checkFinished()}}t._readableState.sync=false;t.on("data",de);t.on("end",ye)})).on("error",(function(e){if(he){he.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){ye=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const n=this.parser.write(e);if(n&&!this._pause){t()}else{this._needDrain=!n;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){o.call(this,e);this.bytesRead=0;this.truncated=false}i(FileStream,o);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,n)=>{"use strict";const o=n(11496);const i=n(72747);const d=n(22393);const p=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const n=t.limits;const i=t.parsedConType;this.boy=e;this.fieldSizeLimit=d(n,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=d(n,"fieldNameSize",100);this.fieldsLimit=d(n,"fields",Infinity);let f;for(var y=0,v=i.length;yp){this._key+=this.decoder.write(e.toString("binary",p,n))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();p=n+1}else if(o!==undefined){++this._fields;let n;const d=this._keyTrunc;if(o>p){n=this._key+=this.decoder.write(e.toString("binary",p,o))}else{n=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(n.length){this.boy.emit("field",i(n,"binary",this.charset),"",d,false)}p=o+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._key+=this.decoder.write(e.toString("binary",p,d))}p=d;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(pp){this._val+=this.decoder.write(e.toString("binary",p,o))}this.boy.emit("field",i(this._key,"binary",this.charset),i(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();p=o+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._val+=this.decoder.write(e.toString("binary",p,d))}p=d;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(p0){this.boy.emit("field",i(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",i(this._key,"binary",this.charset),i(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{"use strict";const t=/\+/g;const n=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,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,1,1,1,1,1,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];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let o="";let i=0;let d=0;const p=e.length;for(;id){o+=e.substring(d,i);d=i}this.buffer="";++d}}if(d{"use strict";e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){"use strict";const t=new TextDecoder("utf-8");const n=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return o.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return o.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return o.utf16le;case"base64":return o.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return o.other.bind(e)}}}const o={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(n.has(this.toString())){try{return n.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,n){if(e){return getDecoder(n)(e,t)}return e}e.exports=decodeText},22393:e=>{"use strict";e.exports=function getLimit(e,t,n){if(!e||e[t]===undefined||e[t]===null){return n}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,n)=>{"use strict";const o=n(72747);const i=/%[a-fA-F0-9][a-fA-F0-9]/g;const d={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return d[e]}const p=0;const f=1;const y=2;const v=3;function parseParams(e){const t=[];let n=p;let d="";let D=false;let M=false;let U=0;let V="";const j=e.length;for(var K=0;K{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},36227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isOAuth2TokenCredential=isOAuth2TokenCredential;t.isBearerTokenCredential=isBearerTokenCredential;t.isBasicCredential=isBasicCredential;t.isApiKeyCredential=isApiKeyCredential;function isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function isBearerTokenCredential(e){return"getBearerToken"in e}function isBasicCredential(e){return"username"in e&&"password"in e}function isApiKeyCredential(e){return"key"in e}},43097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71408:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiVersionPolicyName=void 0;t.apiVersionPolicy=apiVersionPolicy;t.apiVersionPolicyName="ApiVersionPolicy";function apiVersionPolicy(e){return{name:t.apiVersionPolicyName,sendRequest:(t,n)=>{const o=new URL(t.url);if(!o.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(o.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return n(t)}}}},88728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultPipeline=createDefaultPipeline;t.getCachedDefaultHttpsClient=getCachedDefaultHttpsClient;const o=n(69468);const i=n(91810);const d=n(71408);const p=n(36227);const f=n(42095);const y=n(15756);const v=n(89709);const D=n(20219);let M;function createDefaultPipeline(e={}){const t=(0,i.createPipelineFromOptions)(e);t.addPolicy((0,d.apiVersionPolicy)(e));const{credential:n,authSchemes:o,allowInsecureConnection:M}=e;if(n){if((0,p.isApiKeyCredential)(n)){t.addPolicy((0,f.apiKeyAuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}else if((0,p.isBasicCredential)(n)){t.addPolicy((0,y.basicAuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}else if((0,p.isBearerTokenCredential)(n)){t.addPolicy((0,v.bearerAuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}else if((0,p.isOAuth2TokenCredential)(n)){t.addPolicy((0,D.oauth2AuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}}return t}function getCachedDefaultHttpsClient(){if(!M){M=(0,o.createDefaultHttpClient)()}return M}},86191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getClient=getClient;const o=n(88728);const i=n(16311);const d=n(37088);const p=n(85086);function getClient(e,t={}){var n,i,p;const f=(n=t.pipeline)!==null&&n!==void 0?n:(0,o.createDefaultPipeline)(t);if((i=t.additionalPolicies)===null||i===void 0?void 0:i.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;f.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:y,httpClient:v}=t;const D=(p=t.endpoint)!==null&&p!==void 0?p:e;const client=(e,...t)=>{const getUrl=n=>(0,d.buildRequestUrl)(D,e,t,Object.assign({allowInsecureConnection:y},n));return{get:(e={})=>buildOperation("GET",getUrl(e),f,e,y,v),post:(e={})=>buildOperation("POST",getUrl(e),f,e,y,v),put:(e={})=>buildOperation("PUT",getUrl(e),f,e,y,v),patch:(e={})=>buildOperation("PATCH",getUrl(e),f,e,y,v),delete:(e={})=>buildOperation("DELETE",getUrl(e),f,e,y,v),head:(e={})=>buildOperation("HEAD",getUrl(e),f,e,y,v),options:(e={})=>buildOperation("OPTIONS",getUrl(e),f,e,y,v),trace:(e={})=>buildOperation("TRACE",getUrl(e),f,e,y,v)}};return{path:client,pathUnchecked:client,pipeline:f}}function buildOperation(e,t,n,o,d,f){var y;d=(y=o.allowInsecureConnection)!==null&&y!==void 0?y:d;return{then:function(p,y){return(0,i.sendRequest)(e,t,n,Object.assign(Object.assign({},o),{allowInsecureConnection:d}),f).then(p,y)},async asBrowserStream(){if(p.isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return(0,i.sendRequest)(e,t,n,Object.assign(Object.assign({},o),{allowInsecureConnection:d,responseAsStream:true}),f)}},async asNodeStream(){if(p.isNodeLike){return(0,i.sendRequest)(e,t,n,Object.assign(Object.assign({},o),{allowInsecureConnection:d,responseAsStream:true}),f)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}},18240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildBodyPart=buildBodyPart;t.buildMultipartBody=buildMultipartBody;const o=n(9758);const i=n(4220);const d=n(82921);const p=n(48505);function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if((0,p.isBinaryBody)(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){var t;const n=getHeaderValue(e,"content-disposition");if(n){return n}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const o=(t=e.dispositionType)!==null&&t!==void 0?t:"form-data";let i=o;if(e.name){i+=`; name=${escapeDispositionField(e.name)}`}let d=undefined;if(e.filename){d=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){d=t}}if(d){i+=`; filename=${escapeDispositionField(d)}`}return i}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if((0,p.isBinaryBody)(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return(0,d.stringToUint8Array)(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return(0,d.stringToUint8Array)(JSON.stringify(e),"utf-8")}throw new o.RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){var t;const n=getPartContentType(e);const o=getContentDisposition(e);const d=(0,i.createHttpHeaders)((t=e.headers)!==null&&t!==void 0?t:{});if(n){d.set("content-type",n)}if(o){d.set("content-disposition",o)}const p=normalizeBody(e.body,n);return{headers:d,body:p}}function buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}},19635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.operationOptionsToRequestParameters=operationOptionsToRequestParameters;function operationOptionsToRequestParameters(e){var t,n,o,i,d,p;return{allowInsecureConnection:(t=e.requestOptions)===null||t===void 0?void 0:t.allowInsecureConnection,timeout:(n=e.requestOptions)===null||n===void 0?void 0:n.timeout,skipUrlEncoding:(o=e.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:(i=e.requestOptions)===null||i===void 0?void 0:i.onUploadProgress,onDownloadProgress:(d=e.requestOptions)===null||d===void 0?void 0:d.onDownloadProgress,headers:Object.assign({},(p=e.requestOptions)===null||p===void 0?void 0:p.headers),onResponse:e.onResponse}}},97332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=createRestError;const o=n(9758);const i=n(4220);function createRestError(e,t){var n,i,d;const p=typeof e==="string"?t:e;const f=(i=(n=p.body)===null||n===void 0?void 0:n.error)!==null&&i!==void 0?i:p.body;const y=typeof e==="string"?e:(d=f===null||f===void 0?void 0:f.message)!==null&&d!==void 0?d:`Unexpected status code: ${p.status}`;return new o.RestError(y,{statusCode:statusCodeToNumber(p.status),code:f===null||f===void 0?void 0:f.code,request:p.request,response:toPipelineResponse(p)})}function toPipelineResponse(e){var t;return{headers:(0,i.createHttpHeaders)(e.headers),request:e.request,status:(t=statusCodeToNumber(e.status))!==null&&t!==void 0?t:-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}},16311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sendRequest=sendRequest;const o=n(9758);const i=n(4220);const d=n(72305);const p=n(88728);const f=n(48505);const y=n(18240);async function sendRequest(e,t,n,i={},d){var f;const y=d!==null&&d!==void 0?d:(0,p.getCachedDefaultHttpsClient)();const v=buildPipelineRequest(e,t,i);try{const e=await n.sendRequest(y,v);const t=e.headers.toJSON();const o=(f=e.readableStreamBody)!==null&&f!==void 0?f:e.browserStreamBody;const d=i.responseAsStream||o!==undefined?undefined:getResponseBody(e);const p=o!==null&&o!==void 0?o:d;if(i===null||i===void 0?void 0:i.onResponse){i.onResponse(Object.assign(Object.assign({},e),{request:v,rawHeaders:t,parsedBody:d}))}return{request:v,headers:t,status:`${e.status}`,body:p}}catch(e){if((0,o.isRestError)(e)&&e.response&&i.onResponse){const{response:t}=e;const n=t.headers.toJSON();i===null||i===void 0?void 0:i.onResponse(Object.assign(Object.assign({},t),{request:v,rawHeaders:n}),e)}throw e}}function getRequestContentType(e={}){var t,n,o;return(o=(t=e.contentType)!==null&&t!==void 0?t:(n=e.headers)===null||n===void 0?void 0:n["content-type"])!==null&&o!==void 0?o:getContentType(e.body)}function getContentType(e){if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){var o,p,f;const y=getRequestContentType(n);const{body:v,multipartBody:D}=getRequestBody(n.body,y);const M=v!==undefined||D!==undefined;const U=(0,i.createHttpHeaders)(Object.assign(Object.assign(Object.assign({},n.headers?n.headers:{}),{accept:(f=(o=n.accept)!==null&&o!==void 0?o:(p=n.headers)===null||p===void 0?void 0:p.accept)!==null&&f!==void 0?f:"application/json"}),M&&y&&{"content-type":y}));return(0,d.createPipelineRequest)({url:t,method:e,body:v,multipartBody:D,headers:U,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if((0,f.isReadableStream)(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:(0,y.buildMultipartBody)(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){var t,n;const o=(t=e.headers.get("content-type"))!==null&&t!==void 0?t:"";const i=o.split(";")[0];const d=(n=e.bodyAsText)!==null&&n!==void 0?n:"";if(i==="text/plain"){return String(d)}try{return d?JSON.parse(d):undefined}catch(t){if(i==="application/json"){throw createParseError(e,t)}return String(d)}}function createParseError(e,t){var n;const i=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const d=(n=t.code)!==null&&n!==void 0?n:o.RestError.PARSE_ERROR;return new o.RestError(i,{code:d,statusCode:e.status,request:e.request,response:e})}},37088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildRequestUrl=buildRequestUrl;t.buildBaseUrl=buildBaseUrl;t.replaceAll=replaceAll;function isQueryParameterWithOptions(e){const t=e.value;return t!==undefined&&t.toString!==undefined&&typeof t.toString==="function"}function buildRequestUrl(e,t,n,o={}){if(t.startsWith("https://")||t.startsWith("http://")){return t}e=buildBaseUrl(e,o);t=buildRoutePath(t,n,o);const i=appendQueryParams(`${e}/${t}`,o);const d=new URL(i);return d.toString().replace(/([^:]\/)\/+/g,"$1")}function getQueryParamValue(e,t,n,o){let i;if(n==="pipeDelimited"){i="|"}else if(n==="spaceDelimited"){i="%20"}else{i=","}let d;if(Array.isArray(o)){d=o}else if(typeof o==="object"&&o.toString===Object.prototype.toString){d=Object.entries(o).flat()}else{d=[o]}const p=d.map((n=>{if(n===null||n===undefined){return""}if(!n.toString||typeof n.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const o=n.toISOString!==undefined?n.toISOString():n.toString();return t?o:encodeURIComponent(o)})).join(i);return`${t?e:encodeURIComponent(e)}=${p}`}function appendQueryParams(e,t={}){var n,o,i,d;if(!t.queryParameters){return e}const p=new URL(e);const f=t.queryParameters;const y=[];for(const e of Object.keys(f)){const p=f[e];if(p===undefined||p===null){continue}const v=isQueryParameterWithOptions(p);const D=v?p.value:p;const M=v?(n=p.explode)!==null&&n!==void 0?n:false:false;const U=v&&p.style?p.style:"form";if(M){if(Array.isArray(D)){for(const n of D){y.push(getQueryParamValue(e,(o=t.skipUrlEncoding)!==null&&o!==void 0?o:false,U,n))}}else if(typeof D==="object"){for(const[e,n]of Object.entries(D)){y.push(getQueryParamValue(e,(i=t.skipUrlEncoding)!==null&&i!==void 0?i:false,U,n))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{y.push(getQueryParamValue(e,(d=t.skipUrlEncoding)!==null&&d!==void 0?d:false,U,D))}}if(p.search!==""){p.search+="&"}p.search+=y.join("&");return p.toString()}function buildBaseUrl(e,t){var n;if(!t.pathParameters){return e}const o=t.pathParameters;for(const[i,d]of Object.entries(o)){if(d===undefined||d===null){throw new Error(`Path parameters ${i} must not be undefined or null`)}if(!d.toString||typeof d.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${i} can't`)}let o=d.toISOString!==undefined?d.toISOString():String(d);if(!t.skipUrlEncoding){o=encodeURIComponent(d)}e=(n=replaceAll(e,`{${i}}`,o))!==null&&n!==void 0?n:""}return e}function buildRoutePath(e,t,n={}){var o;for(const i of t){const t=typeof i==="object"&&((o=i.allowReserved)!==null&&o!==void 0?o:false);let d=typeof i==="object"?i.value:i;if(!n.skipUrlEncoding&&!t){d=encodeURIComponent(d)}e=e.replace(/\{[\w-]+\}/,String(d))}return e}function replaceAll(e,t,n){return!e||!t?e:e.split(t).join(n||"")}},31255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="0.3.0";t.DEFAULT_RETRY_POLICY_COUNT=3},91810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const o=n(47129);const i=n(22338);const d=n(92187);const p=n(91691);const f=n(35035);const y=n(32462);const v=n(14197);const D=n(85086);const M=n(80067);const U=n(85366);const V=n(96690);const j=n(27427);function createPipelineFromOptions(e){const t=(0,i.createEmptyPipeline)();if(D.isNodeLike){if(e.agent){t.addPolicy((0,U.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,V.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,M.proxyPolicy)(e.proxyOptions));t.addPolicy((0,f.decompressResponsePolicy)())}t.addPolicy((0,v.formDataPolicy)(),{beforePolicies:[j.multipartPolicyName]});t.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,j.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,y.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});if(D.isNodeLike){t.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,o.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}},69468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const o=n(21167);function createDefaultHttpClient(){return(0,o.createNodeHttpClient)()}},4220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){var t;return(t=this._headersMap.get(normalizeName(e)))===null||t===void 0?void 0:t.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function createHttpHeaders(e){return new HttpHeadersImpl(e)}},41958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=t.operationOptionsToRequestParameters=t.getClient=t.createDefaultHttpClient=t.uint8ArrayToString=t.stringToUint8Array=t.isRestError=t.RestError=t.createEmptyPipeline=t.createPipelineRequest=t.createHttpHeaders=t.TypeSpecRuntimeLogger=t.setLogLevel=t.getLogLevel=t.createClientLogger=t.AbortError=void 0;const o=n(61860);var i=n(99992);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}});var d=n(18459);Object.defineProperty(t,"createClientLogger",{enumerable:true,get:function(){return d.createClientLogger}});Object.defineProperty(t,"getLogLevel",{enumerable:true,get:function(){return d.getLogLevel}});Object.defineProperty(t,"setLogLevel",{enumerable:true,get:function(){return d.setLogLevel}});Object.defineProperty(t,"TypeSpecRuntimeLogger",{enumerable:true,get:function(){return d.TypeSpecRuntimeLogger}});var p=n(4220);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});o.__exportStar(n(92097),t);o.__exportStar(n(43097),t);var f=n(72305);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(22338);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return y.createEmptyPipeline}});var v=n(9758);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return v.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return v.isRestError}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(69468);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return M.createDefaultHttpClient}});var U=n(86191);Object.defineProperty(t,"getClient",{enumerable:true,get:function(){return U.getClient}});var V=n(19635);Object.defineProperty(t,"operationOptionsToRequestParameters",{enumerable:true,get:function(){return V.operationOptionsToRequestParameters}});var j=n(97332);Object.defineProperty(t,"createRestError",{enumerable:true,get:function(){return j.createRestError}})},3644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(18459);t.logger=(0,o.createClientLogger)("ts-http-runtime")},36836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(38029);const i=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let p=[];let f=[];const y=[];if(i){enable(i)}const v=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:o.log});function enable(e){d=e;p=[];f=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){f.push(new RegExp(`^${e.substr(1)}$`))}else{p.push(new RegExp(`^${e}$`))}}for(const e of y){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of f){if(t.test(e)){return false}}for(const t of p){if(t.test(e)){return true}}return false}function disable(){const e=d||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:v.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}y.push(t);return t}function destroy(){const e=y.indexOf(this);if(e>=0){y.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}t["default"]=v},82490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLoggerContext=void 0;var o=n(18459);Object.defineProperty(t,"createLoggerContext",{enumerable:true,get:function(){return o.createLoggerContext}})},38029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.log=log;const o=n(61860);const i=n(48161);const d=o.__importDefault(n(57975));const p=o.__importStar(n(1708));function log(e,...t){p.stderr.write(`${d.default.format(e,...t)}${i.EOL}`)}},18459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TypeSpecRuntimeLogger=void 0;t.createLoggerContext=createLoggerContext;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const o=n(61860);const i=o.__importDefault(n(36836));const d=["verbose","info","warning","error"];const p={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return d.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let o;const f=(0,i.default)(e.namespace);f.log=(...e)=>{i.default.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${d.join(",")}`)}o=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}i.default.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${d.join(", ")}.`)}}function shouldEnable(e){return Boolean(o&&p[e.level]<=p[o])}function createLogger(e,n){const o=Object.assign(e.extend(n),{level:n});patchLogMethod(e,o);if(shouldEnable(o)){const e=i.default.disable();i.default.enable(e+","+o.namespace)}t.add(o);return o}function contextGetLogLevel(){return o}function contextCreateClientLogger(e){const t=f.extend(e);patchLogMethod(f,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:f}}const f=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});t.TypeSpecRuntimeLogger=f.logger;function setLogLevel(e){f.setLogLevel(e)}function getLogLevel(){return f.getLogLevel()}function createClientLogger(e){return f.createClientLogger(e)}},21167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyLength=getBodyLength;t.createNodeHttpClient=createNodeHttpClient;const o=n(61860);const i=o.__importStar(n(37067));const d=o.__importStar(n(44708));const p=o.__importStar(n(38522));const f=n(57075);const y=n(99992);const v=n(4220);const D=n(9758);const M=n(3644);const U=n(7784);const V={};function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends f.Transform{_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.loadedBytes=0;this.progressCallback=e}}class NodeHttpClient{constructor(){this.cachedHttpsAgents=new WeakMap}async sendRequest(e){var t,n,o;const i=new AbortController;let d;if(e.abortSignal){if(e.abortSignal.aborted){throw new y.AbortError("The operation was aborted. Request has already been canceled.")}d=e=>{if(e.type==="abort"){i.abort()}};e.abortSignal.addEventListener("abort",d)}let p;if(e.timeout>0){p=setTimeout((()=>{const t=new U.Sanitizer;M.logger.info(`request to '${t.sanitizeUrl(e.url)}' timed out. canceling...`);i.abort()}),e.timeout)}const f=e.headers.get("Accept-Encoding");const v=(f===null||f===void 0?void 0:f.includes("gzip"))||(f===null||f===void 0?void 0:f.includes("deflate"));let D=typeof e.body==="function"?e.body():e.body;if(D&&!e.headers.has("Content-Length")){const t=getBodyLength(D);if(t!==null){e.headers.set("Content-Length",t)}}let V;try{if(D&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{M.logger.error("Error in upload progress",e)}));if(isReadableStream(D)){D.pipe(n)}else{n.end(D)}D=n}const d=await this.makeRequest(e,i,D);if(p!==undefined){clearTimeout(p)}const f=getResponseHeaders(d);const y=(t=d.statusCode)!==null&&t!==void 0?t:0;const U={status:y,headers:f,request:e};if(e.method==="HEAD"){d.resume();return U}V=v?getDecodedResponseStream(d,f):d;const j=e.onDownloadProgress;if(j){const e=new ReportTransform(j);e.on("error",(e=>{M.logger.error("Error in download progress",e)}));V.pipe(e);V=e}if(((n=e.streamResponseStatusCodes)===null||n===void 0?void 0:n.has(Number.POSITIVE_INFINITY))||((o=e.streamResponseStatusCodes)===null||o===void 0?void 0:o.has(U.status))){U.readableStreamBody=V}else{U.bodyAsText=await streamToText(V)}return U}finally{if(e.abortSignal&&d){let t=Promise.resolve();if(isReadableStream(D)){t=isStreamComplete(D)}let n=Promise.resolve();if(isReadableStream(V)){n=isStreamComplete(V)}Promise.all([t,n]).then((()=>{var t;if(d){(t=e.abortSignal)===null||t===void 0?void 0:t.removeEventListener("abort",d)}})).catch((e=>{M.logger.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){var o;const p=new URL(e.url);const f=p.protocol!=="https:";if(f&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const v=(o=e.agent)!==null&&o!==void 0?o:this.getOrCreateAgent(e,f);const U=Object.assign({agent:v,hostname:p.hostname,path:`${p.pathname}${p.search}`,port:p.port,method:e.method,headers:e.headers.toJSON({preserveCase:true})},e.requestOverrides);return new Promise(((o,p)=>{const v=f?i.request(U,o):d.request(U,o);v.once("error",(t=>{var n;p(new D.RestError(t.message,{code:(n=t.code)!==null&&n!==void 0?n:D.RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new y.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");v.destroy(e);p(e)}));if(n&&isReadableStream(n)){n.pipe(v)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){v.end(n)}else if(isArrayBuffer(n)){v.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{M.logger.error("Unrecognized body type",n);p(new D.RestError("Unrecognized body type"))}}else{v.end()}}))}getOrCreateAgent(e,t){var n;const o=e.disableKeepAlive;if(t){if(o){return i.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new i.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(o&&!e.tlsSettings){return d.globalAgent}const t=(n=e.tlsSettings)!==null&&n!==void 0?n:V;let i=this.cachedHttpsAgents.get(t);if(i&&i.options.keepAlive===!o){return i}M.logger.info("No cached TLS Agent exist, creating a new Agent");i=new d.Agent(Object.assign({keepAlive:!o},t));this.cachedHttpsAgents.set(t,i);return i}}}function getResponseHeaders(e){const t=(0,v.createHttpHeaders)();for(const n of Object.keys(e.headers)){const o=e.headers[n];if(Array.isArray(o)){if(o.length>0){t.set(n,o[0])}}else if(o){t.set(n,o)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=p.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=p.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const o=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){o.push(e)}else{o.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(o).toString("utf8"))}));e.on("error",(e=>{if(e&&(e===null||e===void 0?void 0:e.name)==="AbortError"){n(e)}else{n(new D.RestError(`Error reading response as text: ${e.message}`,{code:D.RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}},22338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const n=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{constructor(e){var t;this._policies=[];this._policies=(t=e===null||e===void 0?void 0:e.slice(0))!==null&&t!==void 0?t:[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!n.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!n.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const o=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return o(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const o=createPhase("None");const i=createPhase("Deserialize");const d=createPhase("Retry");const p=createPhase("Sign");const f=[n,o,i,d,p];function getPhase(e){if(e==="Retry"){return d}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return i}else if(e==="Sign"){return p}else{return o}}for(const e of this._policies){const n=e.policy;const o=e.options;const i=n.name;if(t.has(i)){throw new Error("Duplicate policy names not allowed in pipeline")}const d={policy:n,dependsOn:new Set,dependants:new Set};if(o.afterPhase){d.afterPhase=getPhase(o.afterPhase);d.afterPhase.hasAfterPolicies=true}t.set(i,d);const p=getPhase(o.phase);p.policies.add(d)}for(const e of this._policies){const{policy:n,options:o}=e;const i=n.name;const d=t.get(i);if(!d){throw new Error(`Missing node for policy ${i}`)}if(o.afterPolicies){for(const e of o.afterPolicies){const n=t.get(e);if(n){d.dependsOn.add(n);n.dependants.add(d)}}}if(o.beforePolicies){for(const e of o.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(d);d.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const o of n.policies){if(o.afterPhase&&(!o.afterPhase.hasRun||o.afterPhase.policies.size)){continue}if(o.dependsOn.size===0){e.push(o.policy);for(const e of o.dependants){e.dependsOn.delete(o)}t.delete(o.policy.name);n.policies.delete(o)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==o){if(!o.hasRun){walkPhase(o)}return}if(e.hasAfterPolicies){walkPhase(o)}}}let y=0;while(t.size>0){y++;const t=e.length;walkPhases();if(e.length<=t&&y>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function createEmptyPipeline(){return HttpPipeline.create()}},72305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const o=n(4220);const i=n(5023);class PipelineRequestImpl{constructor(e){var t,n,d,p,f,y,v;this.url=e.url;this.body=e.body;this.headers=(t=e.headers)!==null&&t!==void 0?t:(0,o.createHttpHeaders)();this.method=(n=e.method)!==null&&n!==void 0?n:"GET";this.timeout=(d=e.timeout)!==null&&d!==void 0?d:0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=(p=e.disableKeepAlive)!==null&&p!==void 0?p:false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=(f=e.withCredentials)!==null&&f!==void 0?f:false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||(0,i.randomUUID)();this.allowInsecureConnection=(y=e.allowInsecureConnection)!==null&&y!==void 0?y:false;this.enableBrowserStreams=(v=e.enableBrowserStreams)!==null&&v!==void 0?v:false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function createPipelineRequest(e){return new PipelineRequestImpl(e)}},85366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;t.agentPolicyName="agentPolicy";function agentPolicy(e){return{name:t.agentPolicyName,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}},42095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiKeyAuthenticationPolicyName=void 0;t.apiKeyAuthenticationPolicy=apiKeyAuthenticationPolicy;const o=n(42302);t.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy(e){return{name:t.apiKeyAuthenticationPolicyName,async sendRequest(t,n){var i,d;(0,o.ensureSecureConnection)(t,e);const p=(d=(i=t.authSchemes)!==null&&i!==void 0?i:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="apiKey"));if(!p){return n(t)}if(p.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${p.apiKeyLocation}`)}t.headers.set(p.name,e.credential.key);return n(t)}}}},15756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.basicAuthenticationPolicyName=void 0;t.basicAuthenticationPolicy=basicAuthenticationPolicy;const o=n(82921);const i=n(42302);t.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function basicAuthenticationPolicy(e){return{name:t.basicAuthenticationPolicyName,async sendRequest(t,n){var d,p;(0,i.ensureSecureConnection)(t,e);const f=(p=(d=t.authSchemes)!==null&&d!==void 0?d:e.authSchemes)===null||p===void 0?void 0:p.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!f){return n(t)}const{username:y,password:v}=e.credential;const D=(0,o.uint8ArrayToString)((0,o.stringToUint8Array)(`${y}:${v}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${D}`);return n(t)}}}},89709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerAuthenticationPolicyName=void 0;t.bearerAuthenticationPolicy=bearerAuthenticationPolicy;const o=n(42302);t.bearerAuthenticationPolicyName="bearerAuthenticationPolicy";function bearerAuthenticationPolicy(e){return{name:t.bearerAuthenticationPolicyName,async sendRequest(t,n){var i,d;(0,o.ensureSecureConnection)(t,e);const p=(d=(i=t.authSchemes)!==null&&i!==void 0?i:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!p){return n(t)}const f=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ensureSecureConnection=ensureSecureConnection;const o=n(3644);let i=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";o.logger.warning(e);if(typeof(process===null||process===void 0?void 0:process.emitWarning)==="function"&&!i){i=true;process.emitWarning(e)}}function ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}},20219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oauth2AuthenticationPolicyName=void 0;t.oauth2AuthenticationPolicy=oauth2AuthenticationPolicy;const o=n(42302);t.oauth2AuthenticationPolicyName="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy(e){return{name:t.oauth2AuthenticationPolicyName,async sendRequest(t,n){var i,d;(0,o.ensureSecureConnection)(t,e);const p=(d=(i=t.authSchemes)!==null&&i!==void 0?i:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="oauth2"));if(!p){return n(t)}const f=await e.credential.getOAuth2Token(p.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},35035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;t.decompressResponsePolicyName="decompressResponsePolicy";function decompressResponsePolicy(){return{name:t.decompressResponsePolicyName,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}},32462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const o=n(98102);const i=n(21112);const d=n(43345);const p=n(31255);t.defaultRetryPolicyName="defaultRetryPolicy";function defaultRetryPolicy(e={}){var n;return{name:t.defaultRetryPolicyName,sendRequest:(0,d.retryPolicy)([(0,i.throttlingRetryStrategy)(),(0,o.exponentialRetryStrategy)(e)],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:p.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},74656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const o=n(98102);const i=n(43345);const d=n(31255);t.exponentialRetryPolicyName="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){var t;return(0,i.retryPolicy)([(0,o.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreSystemErrors:true}))],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:d.DEFAULT_RETRY_POLICY_COUNT})}},14197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const o=n(82921);const i=n(85086);const d=n(4220);t.formDataPolicyName="formDataPolicy";function formDataToFormDataMap(e){var t;const n={};for(const[o,i]of e.entries()){(t=n[o])!==null&&t!==void 0?t:n[o]=[];n[o].push(i)}return n}function formDataPolicy(){return{name:t.formDataPolicyName,async sendRequest(e,t){if(i.isNodeLike&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.append(n,e.toString())}}else{t.append(n,o.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n!==null&&n!==void 0?n:"multipart/form-data");const i=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){i.push({headers:(0,d.createHttpHeaders)({"Content-Disposition":`form-data; name="${t}"`}),body:(0,o.stringToUint8Array)(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const o=(0,d.createHttpHeaders)();o.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);o.set("Content-Type",e.type||"application/octet-stream");i.push({headers:o,body:e})}}}t.multipartBody={parts:i}}},44960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=t.userAgentPolicy=t.tlsPolicyName=t.tlsPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.formDataPolicyName=t.formDataPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.retryPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.defaultRetryPolicyName=t.defaultRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.agentPolicyName=t.agentPolicy=void 0;var o=n(85366);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return o.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return o.agentPolicyName}});var i=n(35035);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return i.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return i.decompressResponsePolicyName}});var d=n(32462);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return d.defaultRetryPolicy}});Object.defineProperty(t,"defaultRetryPolicyName",{enumerable:true,get:function(){return d.defaultRetryPolicyName}});var p=n(74656);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return p.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return p.exponentialRetryPolicyName}});var f=n(43345);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return f.retryPolicy}});var y=n(92418);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return y.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return y.systemErrorRetryPolicyName}});var v=n(24728);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return v.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return v.throttlingRetryPolicyName}});var D=n(14197);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return D.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return D.formDataPolicyName}});var M=n(47129);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return M.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return M.logPolicyName}});var U=n(27427);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return U.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return U.multipartPolicyName}});var V=n(80067);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return V.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return V.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return V.getDefaultProxySettings}});var j=n(92187);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return j.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return j.redirectPolicyName}});var K=n(96690);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return K.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return K.tlsPolicyName}});var ee=n(91691);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return ee.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return ee.userAgentPolicyName}})},47129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const o=n(3644);const i=n(7784);t.logPolicyName="logPolicy";function logPolicy(e={}){var n;const d=(n=e.logger)!==null&&n!==void 0?n:o.logger.info;const p=new i.Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:t.logPolicyName,async sendRequest(e,t){if(!d.enabled){return t(e)}d(`Request: ${p.sanitize(e)}`);const n=await t(e);d(`Response status code: ${n.status}`);d(`Headers: ${p.sanitize(n.headers)}`);return n}}}},27427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const o=n(82921);const i=n(48505);const d=n(5023);const p=n(20547);function generateBoundary(){return`----AzSDKFormBoundary${(0,d.randomUUID)()}`}function encodeHeaders(e){let t="";for(const[n,o]of e){t+=`${n}: ${o}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if((0,i.isBlob)(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const i=[(0,o.stringToUint8Array)(`--${n}`,"utf-8"),...t.flatMap((e=>[(0,o.stringToUint8Array)("\r\n","utf-8"),(0,o.stringToUint8Array)(encodeHeaders(e.headers),"utf-8"),(0,o.stringToUint8Array)("\r\n","utf-8"),e.body,(0,o.stringToUint8Array)(`\r\n--${n}`,"utf-8")])),(0,o.stringToUint8Array)("--\r\n\r\n","utf-8")];const d=getTotalLength(i);if(d){e.headers.set("Content-Length",d)}e.body=await(0,p.concat)(i)}t.multipartPolicyName="multipartPolicy";const f=70;const y=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>f){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!y.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy(){return{name:t.multipartPolicyName,async sendRequest(e,t){var n;if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let o=e.multipartBody.boundary;const i=(n=e.headers.get("Content-Type"))!==null&&n!==void 0?n:"multipart/mixed";const d=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!d){throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`)}const[,p,f]=d;if(f&&o&&f!==o){throw new Error(`Multipart boundary was specified as ${f} in the header, but got ${o} in the request body`)}o!==null&&o!==void 0?o:o=f;if(o){assertValidBoundary(o)}else{o=generateBoundary()}e.headers.set("Content-Type",`${p}; boundary=${o}`);await buildRequestBody(e,e.multipartBody.parts,o);e.multipartBody=undefined;return t(e)}}}},80067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.globalNoProxyList=t.proxyPolicyName=void 0;t.loadNoProxy=loadNoProxy;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const o=n(3669);const i=n(81970);const d=n(3644);const p="HTTPS_PROXY";const f="HTTP_PROXY";const y="ALL_PROXY";const v="NO_PROXY";t.proxyPolicyName="proxyPolicy";t.globalNoProxyList=[];let D=false;const M=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(p);const t=getEnvironmentValue(y);const n=getEnvironmentValue(f);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const o=new URL(e).hostname;if(n===null||n===void 0?void 0:n.has(o)){return n.get(o)}let i=false;for(const e of t){if(e[0]==="."){if(o.endsWith(e)){i=true}else{if(o.length===e.length-1&&o===e.slice(1)){i=true}}}else{if(o===e){i=true}}}n===null||n===void 0?void 0:n.set(o,i);return i}function loadNoProxy(){const e=getEnvironmentValue(v);D=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch(t){throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const p=new URL(e.url);const f=p.protocol!=="https:";if(e.tlsSettings){d.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const y=e.headers.toJSON();if(f){if(!t.httpProxyAgent){t.httpProxyAgent=new i.HttpProxyAgent(n,{headers:y})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new o.HttpsProxyAgent(n,{headers:y})}e.agent=t.httpsProxyAgent}}function proxyPolicy(e,n){if(!D){t.globalNoProxyList.push(...loadNoProxy())}const o=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const i={};return{name:t.proxyPolicyName,async sendRequest(e,d){var p;if(!e.proxySettings&&o&&!isBypassed(e.url,(p=n===null||n===void 0?void 0:n.customNoProxyList)!==null&&p!==void 0?p:t.globalNoProxyList,(n===null||n===void 0?void 0:n.customNoProxyList)?undefined:M)){setProxyAgentOnRequest(e,i,o)}else if(e.proxySettings){setProxyAgentOnRequest(e,i,getUrlFromProxySettings(e.proxySettings))}return d(e)}}}},92187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;t.redirectPolicyName="redirectPolicy";const n=["GET","HEAD"];function redirectPolicy(e={}){const{maxRetries:n=20}=e;return{name:t.redirectPolicyName,async sendRequest(e,t){const o=await t(e);return handleRedirect(t,o,n)}}}async function handleRedirect(e,t,o,i=0){const{request:d,status:p,headers:f}=t;const y=f.get("location");if(y&&(p===300||p===301&&n.includes(d.method)||p===302&&n.includes(d.method)||p===303&&d.method==="POST"||p===307)&&i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const o=n(77566);const i=n(99992);const d=n(18459);const p=n(31255);const f=(0,d.createClientLogger)("ts-http-runtime retryPolicy");const y="retryPolicy";function retryPolicy(e,t={maxRetries:p.DEFAULT_RETRY_POLICY_COUNT}){const n=t.logger||f;return{name:y,async sendRequest(d,f){var y,v;let D;let M;let U=-1;e:while(true){U+=1;D=undefined;M=undefined;try{n.info(`Retry ${U}: Attempting to send request`,d.requestId);D=await f(d);n.info(`Retry ${U}: Received a response from request`,d.requestId)}catch(e){n.error(`Retry ${U}: Received an error from request`,d.requestId);M=e;if(!e||M.name!=="RestError"){throw e}D=M.response}if((y=d.abortSignal)===null||y===void 0?void 0:y.aborted){n.error(`Retry ${U}: Request aborted.`);const e=new i.AbortError;throw e}if(U>=((v=t.maxRetries)!==null&&v!==void 0?v:p.DEFAULT_RETRY_POLICY_COUNT)){n.info(`Retry ${U}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(M){throw M}else if(D){return D}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${U}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${U}: Processing retry strategy ${t.name}.`);const i=t.retry({retryCount:U,response:D,responseError:M});if(i.skipStrategy){e.info(`Retry ${U}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:f,redirectTo:y}=i;if(p){e.error(`Retry ${U}: Retry strategy ${t.name} throws error:`,p);throw p}if(f||f===0){e.info(`Retry ${U}: Retry strategy ${t.name} retries after ${f}`);await(0,o.delay)(f,undefined,{abortSignal:d.abortSignal});continue e}if(y){e.info(`Retry ${U}: Retry strategy ${t.name} redirects to ${y}`);d.url=y;continue e}}if(M){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw M}if(D){n.info(`None of the retry strategies could work with the received response. Returning it.`);return D}}}}}},92418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const o=n(98102);const i=n(43345);const d=n(31255);t.systemErrorRetryPolicyName="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){var n;return{name:t.systemErrorRetryPolicyName,sendRequest:(0,i.retryPolicy)([(0,o.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreHttpStatusCodes:true}))],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},24728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const o=n(21112);const i=n(43345);const d=n(31255);t.throttlingRetryPolicyName="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){var n;return{name:t.throttlingRetryPolicyName,sendRequest:(0,i.retryPolicy)([(0,o.throttlingRetryStrategy)()],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},96690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;t.tlsPolicyName="tlsPolicy";function tlsPolicy(e){return{name:t.tlsPolicyName,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}},91691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const o=n(62731);const i=(0,o.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,o.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(i)){e.headers.set(i,await n)}return t(e)}}}},9758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const o=n(52573);const i=n(37639);const d=n(7784);const p=new d.Sanitizer;class RestError extends Error{constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});Object.defineProperty(this,i.custom,{value:()=>`RestError: ${this.message} \n ${p.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,enumerable:false});Object.setPrototypeOf(this,RestError.prototype)}}t.RestError=RestError;RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";function isRestError(e){if(e instanceof RestError){return true}return(0,o.isError)(e)&&e.name==="RestError"}},98102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryStrategy=exponentialRetryStrategy;t.isExponentialRetryResponse=isExponentialRetryResponse;t.isSystemError=isSystemError;const o=n(66776);const i=n(21112);const d=1e3;const p=1e3*64;function exponentialRetryStrategy(e={}){var t,n;const f=(t=e.retryDelayInMs)!==null&&t!==void 0?t:d;const y=(n=e.maxRetryDelayInMs)!==null&&n!==void 0?n:p;return{name:"exponentialRetryStrategy",retry({retryCount:t,response:n,responseError:d}){const p=isSystemError(d);const v=p&&e.ignoreSystemErrors;const D=isExponentialRetryResponse(n);const M=D&&e.ignoreHttpStatusCodes;const U=n&&((0,i.isThrottlingRetryResponse)(n)||!D);if(U||M||v){return{skipStrategy:true}}if(d&&!p&&!D){return{errorToThrow:d}}return(0,o.calculateRetryDelay)(t,{retryDelayInMs:f,maxRetryDelayInMs:y})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}},21112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isThrottlingRetryResponse=isThrottlingRetryResponse;t.throttlingRetryStrategy=throttlingRetryStrategy;const o=n(77566);const i="Retry-After";const d=["retry-after-ms","x-ms-retry-after-ms",i];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of d){const n=(0,o.parseHeaderValueAsNumber)(e,t);if(n===0||n){const e=t===i?1e3:1;return n*e}}const t=e.headers.get(i);if(!t)return;const n=Date.parse(t);const p=n-Date.now();return Number.isFinite(p)?Math.max(0,p):undefined}catch(e){return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}},82921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;function uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function stringToUint8Array(e,t){return Buffer.from(e,t)}},85086:(e,t)=>{"use strict";var n,o,i,d;Object.defineProperty(t,"__esModule",{value:true});t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isDeno=t.isWebWorker=t.isBrowser=void 0;t.isBrowser=typeof window!=="undefined"&&typeof window.document!=="undefined";t.isWebWorker=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((n=self.constructor)===null||n===void 0?void 0:n.name)==="DedicatedWorkerGlobalScope"||((o=self.constructor)===null||o===void 0?void 0:o.name)==="ServiceWorkerGlobalScope"||((i=self.constructor)===null||i===void 0?void 0:i.name)==="SharedWorkerGlobalScope");t.isDeno=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";t.isBun=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";t.isNodeLike=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean((d=globalThis.process.versions)===null||d===void 0?void 0:d.node);t.isNodeRuntime=t.isNodeLike&&!t.isBun&&!t.isDeno;t.isReactNative=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative"},20547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concat=concat;const o=n(61860);const i=n(2203);const d=n(48505);function streamAsyncIterator(){return o.__asyncGenerator(this,arguments,(function*streamAsyncIterator_1(){const e=this.getReader();try{while(true){const{done:t,value:n}=yield o.__await(e.read());if(t){return yield o.__await(void 0)}yield yield o.__await(n)}}finally{e.releaseLock()}}))}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return i.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return i.Readable.from(Buffer.from(e))}else if((0,d.isBlob)(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return i.Readable.from(function(){return o.__asyncGenerator(this,arguments,(function*(){var e,n,i,d;for(const v of t){try{for(var p=true,f=(n=void 0,o.__asyncValues(v)),y;y=yield o.__await(f.next()),e=y.done,!e;p=true){d=y.value;p=false;const e=d;yield yield o.__await(e)}}catch(e){n={error:e}}finally{try{if(!p&&!e&&(i=f.return))yield o.__await(i.call(f))}finally{if(n)throw n.error}}}}))}())}}},66776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateRetryDelay=calculateRetryDelay;const o=n(78640);function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const i=Math.min(t.maxRetryDelayInMs,n);const d=i/2+(0,o.getRandomIntegerInclusive)(0,i/2);return{retryAfterInMs:d}}},52573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isError=isError;const o=n(53632);function isError(e){if((0,o.isObject)(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}},77566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.parseHeaderValueAsNumber=parseHeaderValueAsNumber;const o=n(99992);const i="The operation was aborted.";function delay(e,t,n){return new Promise(((d,p)=>{let f=undefined;let y=undefined;const rejectOnAbort=()=>p(new o.AbortError((n===null||n===void 0?void 0:n.abortErrorMsg)?n===null||n===void 0?void 0:n.abortErrorMsg:i));const removeListeners=()=>{if((n===null||n===void 0?void 0:n.abortSignal)&&y){n.abortSignal.removeEventListener("abort",y)}};y=()=>{if(f){clearTimeout(f)}removeListeners();return rejectOnAbort()};if((n===null||n===void 0?void 0:n.abortSignal)&&n.abortSignal.aborted){return rejectOnAbort()}f=setTimeout((()=>{removeListeners();d(t)}),e);if(n===null||n===void 0?void 0:n.abortSignal){n.abortSignal.addEventListener("abort",y)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const o=Number(n);if(Number.isNaN(o))return;return o}},37639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.custom=void 0;const o=n(57975);t.custom=o.inspect.custom},95750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=t.uint8ArrayToString=t.stringToUint8Array=t.isWebWorker=t.isReactNative=t.isDeno=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isBrowser=t.randomUUID=t.computeSha256Hmac=t.computeSha256Hash=t.isError=t.isObject=t.getRandomIntegerInclusive=t.calculateRetryDelay=void 0;var o=n(66776);Object.defineProperty(t,"calculateRetryDelay",{enumerable:true,get:function(){return o.calculateRetryDelay}});var i=n(78640);Object.defineProperty(t,"getRandomIntegerInclusive",{enumerable:true,get:function(){return i.getRandomIntegerInclusive}});var d=n(53632);Object.defineProperty(t,"isObject",{enumerable:true,get:function(){return d.isObject}});var p=n(52573);Object.defineProperty(t,"isError",{enumerable:true,get:function(){return p.isError}});var f=n(2016);Object.defineProperty(t,"computeSha256Hash",{enumerable:true,get:function(){return f.computeSha256Hash}});Object.defineProperty(t,"computeSha256Hmac",{enumerable:true,get:function(){return f.computeSha256Hmac}});var y=n(5023);Object.defineProperty(t,"randomUUID",{enumerable:true,get:function(){return y.randomUUID}});var v=n(85086);Object.defineProperty(t,"isBrowser",{enumerable:true,get:function(){return v.isBrowser}});Object.defineProperty(t,"isBun",{enumerable:true,get:function(){return v.isBun}});Object.defineProperty(t,"isNodeLike",{enumerable:true,get:function(){return v.isNodeLike}});Object.defineProperty(t,"isNodeRuntime",{enumerable:true,get:function(){return v.isNodeRuntime}});Object.defineProperty(t,"isDeno",{enumerable:true,get:function(){return v.isDeno}});Object.defineProperty(t,"isReactNative",{enumerable:true,get:function(){return v.isReactNative}});Object.defineProperty(t,"isWebWorker",{enumerable:true,get:function(){return v.isWebWorker}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(7784);Object.defineProperty(t,"Sanitizer",{enumerable:true,get:function(){return M.Sanitizer}})},53632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isObject=isObject;function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}},78640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRandomIntegerInclusive=getRandomIntegerInclusive;function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}},7784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=void 0;const o=n(53632);const i="REDACTED";const d=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const p=["api-version"];class Sanitizer{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=d.concat(e);t=p.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return Object.assign(Object.assign({},n),{name:n.name,message:n.message})}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||(0,o.isObject)(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,i)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=i}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=i}}return t}}t.Sanitizer=Sanitizer},2016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.computeSha256Hmac=computeSha256Hmac;t.computeSha256Hash=computeSha256Hash;const o=n(77598);async function computeSha256Hmac(e,t,n){const i=Buffer.from(e,"base64");return(0,o.createHmac)("sha256",i).update(t).digest(n)}async function computeSha256Hash(e,t){return(0,o.createHash)("sha256").update(e).digest(t)}},48505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isNodeReadableStream=isNodeReadableStream;t.isWebReadableStream=isWebReadableStream;t.isBinaryBody=isBinaryBody;t.isReadableStream=isReadableStream;t.isBlob=isBlob;function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}},62731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const o=n(83196);const i=n(31255);function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,o.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",i.SDK_VERSION);await(0,o.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},83196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const o=n(61860);const i=o.__importStar(n(48161));const d=o.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${i.arch()}-${i.type()}-${i.release()})`)}},5023:(e,t,n)=>{"use strict";var o;Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=randomUUID;const i=n(77598);const d=typeof((o=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||o===void 0?void 0:o.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):i.randomUUID;function randomUUID(){return d()}},50591:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>ft,XMLParser:()=>st,XMLValidator:()=>re});const o=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("^["+o+"]["+o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const d=o.length;for(let e=0;e"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)y+=e[d];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),d--),!r(y)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",x("InvalidTag",t,N(e,d))}const v=c(e,d);if(!1===v)return x("InvalidAttr","Attributes for '"+y+"' have open quote.",N(e,d));let D=v.value;if(d=v.index,"/"===D[D.length-1]){const n=d-D.length;D=D.substring(0,D.length-1);const i=g(D,t);if(!0!==i)return x(i.err.code,i.err.msg,N(e,n+i.err.line));o=!0}else if(f){if(!v.tagClosed)return x("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",N(e,d));if(D.trim().length>0)return x("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",N(e,p));if(0===n.length)return x("InvalidTag","Closing tag '"+y+"' has not been opened.",N(e,p));{const t=n.pop();if(y!==t.tagName){let n=N(e,t.tagStartPos);return x("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",N(e,p))}0==n.length&&(i=!0)}}else{const f=g(D,t);if(!0!==f)return x(f.err.code,f.err.msg,N(e,d-D.length+f.err.line));if(!0===i)return x("InvalidXml","Multiple possible root nodes found.",N(e,d));-1!==t.unpairedTags.indexOf(y)||n.push({tagName:y,tagStartPos:p}),o=!0}for(d++;d0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function l(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t5&&"xml"===o)return x("InvalidXml","XML declaration allowed only at the start of the document.",N(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function h(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}const p='"',f="'";function c(e,t){let n="",o="",i=!1;for(;t"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const y=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(e,t){const n=s(e,y),o={};for(let e=0;e!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1};let D;D="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class T{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}function w(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let o=1,i=!1,d=!1,p="";for(;t"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,o--):o--,0===o)break}else"["===e[t]?i=!0:p+=e[t];else{if(i&&C(e,"!ENTITY",t)){let o,i;t+=7,[o,i,t]=O(e,t+1),-1===i.indexOf("&")&&(n[o]={regx:RegExp(`&${o};`,"g"),val:i})}else if(i&&C(e,"!ELEMENT",t)){t+=8;const{index:n}=S(e,t+1);t=n}else if(i&&C(e,"!ATTLIST",t))t+=8;else if(i&&C(e,"!NOTATION",t)){t+=9;const{index:n}=A(e,t+1);t=n}else{if(!C(e,"!--",t))throw new Error("Invalid DOCTYPE");d=!0}o++,p=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}const P=(e,t)=>{for(;t{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}class k{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,16))}},this.addExternalEntities=F,this.parseXml=X,this.parseTextData=L,this.resolveNameSpace=B,this.buildAttributesMap=G,this.isItStopNode=Z,this.replaceEntitiesValue=R,this.readStopNodeData=J,this.saveTextToParentTag=q,this.addChild=Y,this.ignoreAttributesFn=_(this.options.ignoreAttributes)}}function F(e){const t=Object.keys(e);for(let n=0;n0)){p||(e=this.replaceEntitiesValue(e));const o=this.options.tagValueProcessor(t,e,n,i,d);return null==o?e:typeof o!=typeof e||o!==e?o:this.options.trimValues||e.trim()===e?H(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function B(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const K=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function G(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=s(e,K),o=n.length,i={};for(let e=0;e",d,"Closing Tag is not closed.");let p=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=p.indexOf(":");-1!==e&&(p=p.substr(e+1))}this.options.transformTagName&&(p=this.options.transformTagName(p)),n&&(o=this.saveTextToParentTag(o,n,i));const f=i.substring(i.lastIndexOf(".")+1);if(p&&-1!==this.options.unpairedTags.indexOf(p))throw new Error(`Unpaired tag can not be used as closing tag: `);let y=0;f&&-1!==this.options.unpairedTags.indexOf(f)?(y=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=i.lastIndexOf("."),i=i.substring(0,y),n=this.tagsNodeStack.pop(),o="",d=t}else if("?"===e[d+1]){let t=z(e,d,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,i),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new T(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)),this.addChild(n,e,i,d)}d=t.closeIndex+1}else if("!--"===e.substr(d+1,3)){const t=W(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const p=e.substring(d+4,t-2);o=this.saveTextToParentTag(o,n,i),n.add(this.options.commentPropName,[{[this.options.textNodeName]:p}])}d=t}else if("!D"===e.substr(d+1,2)){const t=w(e,d);this.docTypeEntities=t.entities,d=t.i}else if("!["===e.substr(d+1,2)){const t=W(e,"]]>",d,"CDATA is not closed.")-2,p=e.substring(d+9,t);o=this.saveTextToParentTag(o,n,i);let f=this.parseTextData(p,n.tagname,i,!0,!1,!0,!0);null==f&&(f=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:p}]):n.add(this.options.textNodeName,f),d=t+2}else{let p=z(e,d,this.options.removeNSPrefix),f=p.tagName;const y=p.rawTagName;let v=p.tagExp,D=p.attrExpPresent,M=p.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,i,!1));const U=n;U&&-1!==this.options.unpairedTags.indexOf(U.tagname)&&(n=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),f!==t.tagname&&(i+=i?"."+f:f);const V=d;if(this.isItStopNode(this.options.stopNodes,i,f)){let t="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)"/"===f[f.length-1]?(f=f.substr(0,f.length-1),i=i.substr(0,i.length-1),v=f):v=v.substr(0,v.length-1),d=p.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(f))d=p.closeIndex;else{const n=this.readStopNodeData(e,y,M+1);if(!n)throw new Error(`Unexpected end of ${y}`);d=n.i,t=n.tagContent}const o=new T(f);f!==v&&D&&(o[":@"]=this.buildAttributesMap(v,i,f)),t&&(t=this.parseTextData(t,f,i,!0,D,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),o.add(this.options.textNodeName,t),this.addChild(n,o,i,V)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){"/"===f[f.length-1]?(f=f.substr(0,f.length-1),i=i.substr(0,i.length-1),v=f):v=v.substr(0,v.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const e=new T(f);f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,i,f)),this.addChild(n,e,i,V),i=i.substr(0,i.lastIndexOf("."))}else{const e=new T(f);this.tagsNodeStack.push(n),f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,i,f)),this.addChild(n,e,i,V),n=e}o="",d=M}}else o+=e[d];return t.child};function Y(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t,o)):e.addChild(t,o))}const R=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function q(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function Z(e,t,n){const o="*."+n;for(const n in e){const i=e[n];if(o===i||t===i)return!0}return!1}function W(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function z(e,t,n,o=">"){const i=function(e,t,n=">"){let o,i="";for(let d=t;d",n,`${t} is not closed`);if(e.substring(n+2,d).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:d};n=d}else if("?"===e[n+1])n=W(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=W(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=W(e,"]]>",n,"StopNode is not closed.")-2;else{const o=z(e,n,">");o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}function H(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},V,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&M.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(-1!==n.search(/.+[eE].+/))return function(e,t,n){if(!n.eNotation)return e;const o=t.match(j);if(o){let i=o[1]||"";const d=-1===o[3].indexOf("e")?"E":"e",p=o[2],f=i?e[p.length+1]===d:e[p.length]===d;return p.length>1&&f?e:1!==p.length||!o[3].startsWith(`.${d}`)&&o[3][0]!==d?n.leadingZeros&&!f?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=U.exec(n);if(i){const d=i[1]||"",p=i[2];let f=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const y=d?"."===e[p.length+1]:"."===e[p.length];if(!t.leadingZeros&&(p.length>1||1===p.length&&!y))return e;{const o=Number(n),i=String(o);if(0===o||-0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===f||i===`${d}${f}`?o:e;let y=p?f:n;return p?y===i||d+y===i?o:e:y===i||y===d+i?o:e}}return e}var o}(e,n)}return void 0!==e?e:""}const ee=T.getMetaDataSymbol();function Q(e,t){return tt(e,t)}function tt(e,t,n){let o;const i={};for(let d=0;d0&&(i[t.textNodeName]=o):void 0!==o&&(i[t.textNodeName]=o),i}function et(e){const t=Object.keys(e);for(let e=0;e0&&(n="\n"),ot(e,t,"",n)}function ot(e,t,n,o){let i="",d=!1;for(let p=0;p`,d=!1;continue}if(y===t.commentPropName){i+=o+`\x3c!--${f[y][0][t.textNodeName]}--\x3e`,d=!0;continue}if("?"===y[0]){const e=lt(f[":@"],t),n="?xml"===y?"":o;let p=f[y][0][t.textNodeName];p=0!==p.length?" "+p:"",i+=n+`<${y}${p}${e}?>`,d=!0;continue}let D=o;""!==D&&(D+=t.indentBy);const M=o+`<${y}${lt(f[":@"],t)}`,U=ot(f[y],t,v,D);-1!==t.unpairedTags.indexOf(y)?t.suppressUnpairedNode?i+=M+">":i+=M+"/>":U&&0!==U.length||!t.suppressEmptyNode?U&&U.endsWith(">")?i+=M+`>${U}${o}`:(i+=M+">",U&&""!==o&&(U.includes("/>")||U.includes("`):i+=M+"/>",d=!0}return i}function at(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ft(e){this.options=Object.assign({},te,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gt),this.processTextOrObjNode=ct,this.options.format?(this.indentate=pt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ct(e,t,n,o){const i=this.j2x(e,n+1,o.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n):this.buildObjectNode(i.val,t,i.attrStr,n)}function pt(e){return this.options.indentBy.repeat(e)}function gt(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ft.prototype.build=function(e){return this.options.preserveOrder?rt(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},ft.prototype.j2x=function(e,t,n){let o="",i="";const d=n.join(".");for(let p in e)if(Object.prototype.hasOwnProperty.call(e,p))if(void 0===e[p])this.isAttribute(p)&&(i+="");else if(null===e[p])this.isAttribute(p)||p===this.options.cdataPropName?i+="":"?"===p[0]?i+=this.indentate(t)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+p+"/"+this.tagEndChar;else if(e[p]instanceof Date)i+=this.buildTextValNode(e[p],p,"",t);else if("object"!=typeof e[p]){const n=this.isAttribute(p);if(n&&!this.ignoreAttributesFn(n,d))o+=this.buildAttrPairStr(n,""+e[p]);else if(!n)if(p===this.options.textNodeName){let t=this.options.tagValueProcessor(p,""+e[p]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[p],p,"",t)}else if(Array.isArray(e[p])){const o=e[p].length;let d="",f="";for(let y=0;y"+e+i}},ft.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"0&&this.options.processEntities)for(let t=0;t{"use strict";e.exports=JSON.parse('{"name":"@actions/cache","version":"4.0.3","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","typescript":"^5.2.2"}}')}};var t={};function __nccwpck_require__(n){var o=t[n];if(o!==undefined){return o.exports}var i=t[n]={exports:{}};var d=true;try{e[n].call(i.exports,i,i.exports,__nccwpck_require__);d=false}finally{if(d)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n={};(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(37484);const o=__nccwpck_require__(5116);const i=["wordpress","wordpress-tests-lib"];async function run(){const e=(0,t.getState)("ok_to_save_cache");if(e!=="yes"){(0,t.warning)(`⚠️ Something went wrong, not saving cache`);return}for(const e of i){const n=(0,t.getState)(`dir_${e}`);const i=(0,t.getState)(`cache_key_${e}`);if(n&&i){(0,t.info)(`ℹ️ Saving ${e} cache with the key of ${i}`);try{process.env.GITHUB_WORKSPACE=n;process.chdir(n);await(0,o.saveCache)([e],i)}catch(n){(0,t.warning)(`⚠️ Failed to save cache for ${e}: ${n.message}`)}}}}void run()})();module.exports=n})(); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */d[i-4]=this.maskKey[0];d[i-3]=this.maskKey[1];d[i-2]=this.maskKey[2];d[i-1]=this.maskKey[3];d[1]=n;if(n===126){d.writeUInt16BE(t,2)}else if(n===127){d[2]=d[3]=0;d.writeUIntBE(t,4,6)}d[1]|=128;for(let e=0;e{"use strict";const{Writable:o}=n(2203);const i=n(31637);const{parserStates:d,opcodes:p,states:f,emptyBuffer:y}=n(45913);const{kReadyState:v,kSentClose:D,kResponse:M,kReceivedClose:U}=n(62933);const{isValidStatusCode:V,failWebsocketConnection:j,websocketMessageReceived:K}=n(3574);const{WebsocketFrameSend:ee}=n(31237);const te={};te.ping=i.channel("undici:websocket:ping");te.pong=i.channel("undici:websocket:pong");class ByteParser extends o{#s=[];#a=0;#A=d.INFO;#c={};#l=[];constructor(e){super();this.ws=e}_write(e,t,n){this.#s.push(e);this.#a+=e.length;this.run(n)}run(e){while(true){if(this.#A===d.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#c.fin=(t[0]&128)!==0;this.#c.opcode=t[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==p.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==p.BINARY&&this.#c.opcode!==p.TEXT){j(this.ws,"Invalid frame type was fragmented.");return}const n=t[1]&127;if(n<=125){this.#c.payloadLength=n;this.#A=d.READ_DATA}else if(n===126){this.#A=d.PAYLOADLENGTH_16}else if(n===127){this.#A=d.PAYLOADLENGTH_64}if(this.#c.fragmented&&n>125){j(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===p.PING||this.#c.opcode===p.PONG||this.#c.opcode===p.CLOSE)&&n>125){j(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===p.CLOSE){if(n===1){j(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(n);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[D]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const t=new ee(e);this.ws[M].socket.write(t.createFrame(p.CLOSE),(e=>{if(!e){this.ws[D]=true}}))}this.ws[v]=f.CLOSING;this.ws[U]=true;this.end();return}else if(this.#c.opcode===p.PING){const t=this.consume(n);if(!this.ws[U]){const e=new ee(t);this.ws[M].socket.write(e.createFrame(p.PONG));if(te.ping.hasSubscribers){te.ping.publish({payload:t})}}this.#A=d.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#c.opcode===p.PONG){const t=this.consume(n);if(te.pong.hasSubscribers){te.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#A===d.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0);this.#A=d.READ_DATA}else if(this.#A===d.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){j(this.ws,"Received payload length > 2^31 bytes.");return}const o=t.readUInt32BE(4);this.#c.payloadLength=(n<<8)+o;this.#A=d.READ_DATA}else if(this.#A===d.READ_DATA){if(this.#a=this.#c.payloadLength){const e=this.consume(this.#c.payloadLength);this.#l.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===p.CONTINUATION){const e=Buffer.concat(this.#l);K(this.ws,this.#c.originalOpcode,e);this.#c={};this.#l.length=0}this.#A=d.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return y}if(this.#s[0].length===e){this.#a-=this.#s[0].length;return this.#s.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const o=this.#s[0];const{length:i}=o;if(i+n===e){t.set(this.#s.shift(),n);break}else if(i+n>e){t.set(o.subarray(0,e-n),n);this.#s[0]=o.subarray(e-n);break}else{t.set(this.#s.shift(),n);n+=o.length}}this.#a-=e;return t}parseCloseBody(e,t){let n;if(t.length>=2){n=t.readUInt16BE(0)}if(e){if(!V(n)){return null}return{code:n}}let o=t.subarray(2);if(o[0]===239&&o[1]===187&&o[2]===191){o=o.subarray(3)}if(n!==undefined&&!V(n)){return null}try{o=new TextDecoder("utf-8",{fatal:true}).decode(o)}catch{return null}return{code:n,reason:o}}get closingInfo(){return this.#c.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{"use strict";e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,n)=>{"use strict";const{kReadyState:o,kController:i,kResponse:d,kBinaryType:p,kWebSocketURL:f}=n(62933);const{states:y,opcodes:v}=n(45913);const{MessageEvent:D,ErrorEvent:M}=n(46255);function isEstablished(e){return e[o]===y.OPEN}function isClosing(e){return e[o]===y.CLOSING}function isClosed(e){return e[o]===y.CLOSED}function fireEvent(e,t,n=Event,o){const i=new n(e,o);t.dispatchEvent(i)}function websocketMessageReceived(e,t,n){if(e[o]!==y.OPEN){return}let i;if(t===v.TEXT){try{i=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===v.BINARY){if(e[p]==="blob"){i=new Blob([n])}else{i=new Uint8Array(n).buffer}}fireEvent("message",e,D,{origin:e[f].origin,data:i})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[i]:n,[d]:o}=e;n.abort();if(o?.socket&&!o.socket.destroyed){o.socket.destroy()}if(t){fireEvent("error",e,M,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,n)=>{"use strict";const{webidl:o}=n(74222);const{DOMException:i}=n(87326);const{URLSerializer:d}=n(94322);const{getGlobalOrigin:p}=n(75628);const{staticPropertyDescriptors:f,states:y,opcodes:v,emptyBuffer:D}=n(45913);const{kWebSocketURL:M,kReadyState:U,kController:V,kBinaryType:j,kResponse:K,kSentClose:ee,kByteParser:te}=n(62933);const{isEstablished:re,isClosing:ne,isValidSubprotocol:oe,failWebsocketConnection:ie,fireEvent:se}=n(3574);const{establishWebSocketConnection:ae}=n(68550);const{WebsocketFrameSend:Ae}=n(31237);const{ByteParser:ce}=n(43171);const{kEnumerableProperty:le,isBlobLike:ue}=n(3440);const{getGlobalDispatcher:de}=n(32581);const{types:ge}=n(39023);let pe=false;class WebSocket extends EventTarget{#u={open:null,error:null,close:null,message:null};#d=0;#g="";#p="";constructor(e,t=[]){super();o.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!pe){pe=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const n=o.converters["DOMString or sequence or WebSocketInit"](t);e=o.converters.USVString(e);t=n.protocols;const d=p();let f;try{f=new URL(e,d)}catch(e){throw new i(e,"SyntaxError")}if(f.protocol==="http:"){f.protocol="ws:"}else if(f.protocol==="https:"){f.protocol="wss:"}if(f.protocol!=="ws:"&&f.protocol!=="wss:"){throw new i(`Expected a ws: or wss: protocol, got ${f.protocol}`,"SyntaxError")}if(f.hash||f.href.endsWith("#")){throw new i("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new i("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>oe(e)))){throw new i("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[M]=new URL(f.href);this[V]=ae(f,t,this,(e=>this.#m(e)),n);this[U]=WebSocket.CONNECTING;this[j]="blob"}close(e=undefined,t=undefined){o.brandCheck(this,WebSocket);if(e!==undefined){e=o.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=o.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new i("invalid code","InvalidAccessError")}}let n=0;if(t!==undefined){n=Buffer.byteLength(t);if(n>123){throw new i(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError")}}if(this[U]===WebSocket.CLOSING||this[U]===WebSocket.CLOSED){}else if(!re(this)){ie(this,"Connection was closed before it was established.");this[U]=WebSocket.CLOSING}else if(!ne(this)){const o=new Ae;if(e!==undefined&&t===undefined){o.frameData=Buffer.allocUnsafe(2);o.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){o.frameData=Buffer.allocUnsafe(2+n);o.frameData.writeUInt16BE(e,0);o.frameData.write(t,2,"utf-8")}else{o.frameData=D}const i=this[K].socket;i.write(o.createFrame(v.CLOSE),(e=>{if(!e){this[ee]=true}}));this[U]=y.CLOSING}else{this[U]=WebSocket.CLOSING}}send(e){o.brandCheck(this,WebSocket);o.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=o.converters.WebSocketSendData(e);if(this[U]===WebSocket.CONNECTING){throw new i("Sent before connected.","InvalidStateError")}if(!re(this)||ne(this)){return}const t=this[K].socket;if(typeof e==="string"){const n=Buffer.from(e);const o=new Ae(n);const i=o.createFrame(v.TEXT);this.#d+=n.byteLength;t.write(i,(()=>{this.#d-=n.byteLength}))}else if(ge.isArrayBuffer(e)){const n=Buffer.from(e);const o=new Ae(n);const i=o.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(i,(()=>{this.#d-=n.byteLength}))}else if(ArrayBuffer.isView(e)){const n=Buffer.from(e,e.byteOffset,e.byteLength);const o=new Ae(n);const i=o.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(i,(()=>{this.#d-=n.byteLength}))}else if(ue(e)){const n=new Ae;e.arrayBuffer().then((e=>{const o=Buffer.from(e);n.frameData=o;const i=n.createFrame(v.BINARY);this.#d+=o.byteLength;t.write(i,(()=>{this.#d-=o.byteLength}))}))}}get readyState(){o.brandCheck(this,WebSocket);return this[U]}get bufferedAmount(){o.brandCheck(this,WebSocket);return this.#d}get url(){o.brandCheck(this,WebSocket);return d(this[M])}get extensions(){o.brandCheck(this,WebSocket);return this.#p}get protocol(){o.brandCheck(this,WebSocket);return this.#g}get onopen(){o.brandCheck(this,WebSocket);return this.#u.open}set onopen(e){o.brandCheck(this,WebSocket);if(this.#u.open){this.removeEventListener("open",this.#u.open)}if(typeof e==="function"){this.#u.open=e;this.addEventListener("open",e)}else{this.#u.open=null}}get onerror(){o.brandCheck(this,WebSocket);return this.#u.error}set onerror(e){o.brandCheck(this,WebSocket);if(this.#u.error){this.removeEventListener("error",this.#u.error)}if(typeof e==="function"){this.#u.error=e;this.addEventListener("error",e)}else{this.#u.error=null}}get onclose(){o.brandCheck(this,WebSocket);return this.#u.close}set onclose(e){o.brandCheck(this,WebSocket);if(this.#u.close){this.removeEventListener("close",this.#u.close)}if(typeof e==="function"){this.#u.close=e;this.addEventListener("close",e)}else{this.#u.close=null}}get onmessage(){o.brandCheck(this,WebSocket);return this.#u.message}set onmessage(e){o.brandCheck(this,WebSocket);if(this.#u.message){this.removeEventListener("message",this.#u.message)}if(typeof e==="function"){this.#u.message=e;this.addEventListener("message",e)}else{this.#u.message=null}}get binaryType(){o.brandCheck(this,WebSocket);return this[j]}set binaryType(e){o.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[j]="blob"}else{this[j]=e}}#m(e){this[K]=e;const t=new ce(this);t.on("drain",(function onParserDrain(){this.ws[K].socket.resume()}));e.socket.ws=this;this[te]=t;this[U]=y.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#p=n}const o=e.headersList.get("sec-websocket-protocol");if(o!==null){this.#g=o}se("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=y.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=y.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=y.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=y.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f,url:le,readyState:le,bufferedAmount:le,onopen:le,onerror:le,onclose:le,close:le,onmessage:le,binaryType:le,send:le,extensions:le,protocol:le,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f});o.converters["sequence"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence"]=function(e){if(o.util.Type(e)==="Object"&&Symbol.iterator in e){return o.converters["sequence"](e)}return o.converters.DOMString(e)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return de()}},{key:"headers",converter:o.nullableConverter(o.converters.HeadersInit)}]);o.converters["DOMString or sequence or WebSocketInit"]=function(e){if(o.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return o.converters.WebSocketInit(e)}return{protocols:o.converters["DOMString or sequence"](e)}};o.converters.WebSocketSendData=function(e){if(o.util.Type(e)==="Object"){if(ue(e)){return o.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||ge.isAnyArrayBuffer(e)){return o.converters.BufferSource(e)}}return o.converters.USVString(e)};e.exports={WebSocket:WebSocket}},42613:e=>{"use strict";e.exports=require("assert")},90290:e=>{"use strict";e.exports=require("async_hooks")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},64236:e=>{"use strict";e.exports=require("console")},76982:e=>{"use strict";e.exports=require("crypto")},31637:e=>{"use strict";e.exports=require("diagnostics_channel")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},85675:e=>{"use strict";e.exports=require("http2")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},4573:e=>{"use strict";e.exports=require("node:buffer")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},37067:e=>{"use strict";e.exports=require("node:http")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},82987:e=>{"use strict";e.exports=require("perf_hooks")},83480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},63774:e=>{"use strict";e.exports=require("stream/web")},13193:e=>{"use strict";e.exports=require("string_decoder")},53557:e=>{"use strict";e.exports=require("timers")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},98253:e=>{"use strict";e.exports=require("util/types")},28167:e=>{"use strict";e.exports=require("worker_threads")},43106:e=>{"use strict";e.exports=require("zlib")},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const o=n(87779);class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,o.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const o=n(87779);class AzureSASCredential{get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,o.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var o=n(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return o.AzureKeyCredential}});var i=n(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return i.isKeyCredential}});var d=n(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var p=n(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return p.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return p.isSASCredential}});var f=n(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return f.isTokenCredential}})},99155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const o=n(87779);function isKeyCredential(e){return(0,o.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}},17698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const o=n(89994);const i=n(20741);function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}))}async function authorizeRequestOnClaimChallenge(e){var t;const{scopes:n,response:d}=e;const p=e.logger||o.logger;const f=d.headers.get("WWW-Authenticate");if(!f){p.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const y=parseCAEChallenge(f)||[];const v=y.find((e=>e.claims));if(!v){p.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const D=await e.getAccessToken(v.scope?[v.scope]:n,{claims:(0,i.decodeStringToString)(v.claims)});if(!D){return false}e.request.headers.set("Authorization",`${(t=D.tokenType)!==null&&t!==void 0?t:"Bearer"} ${D.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const n={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{var t;const o=requestToOptions(e.request);const i=getChallenge(e.response);if(i){const d=parseChallenge(i);const p=buildScopes(e,d);const f=extractTenantId(d);if(!f){return false}const y=await e.getAccessToken(p,Object.assign(Object.assign({},o),{tenantId:f}));if(!y){return false}e.request.headers.set(n.HeaderConstants.AUTHORIZATION,`${(t=y.tokenType)!==null&&t!==void 0?t:"Bearer"} ${y.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const o=n[1];if(o&&isUuid(o)){return o}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const o=new URL(t.resource_id);o.pathname=n.DefaultScope;let i=o.toString();if(i==="https://disk.azure.com/.default"){i="https://disk.azure.com//.default"}return[i]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const o=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return o.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const o=n(56058);const i=n(20778);const d=n(31530);const p=n(19688);const f=["application/json","text/json"];const y=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){var n,i,d,p,v,D,M;const U=(i=(n=e.expectedContentTypes)===null||n===void 0?void 0:n.json)!==null&&i!==void 0?i:f;const V=(p=(d=e.expectedContentTypes)===null||d===void 0?void 0:d.xml)!==null&&p!==void 0?p:y;const j=e.parseXML;const K=e.serializerOptions;const ee={xml:{rootName:(v=K===null||K===void 0?void 0:K.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=K===null||K===void 0?void 0:K.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=K===null||K===void 0?void 0:K.xml.xmlCharKey)!==null&&M!==void 0?M:o.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const n=await t(e);return deserializeResponseBody(U,V,n,ee,j)}}}function getOperationResponseMap(e){let t;const n=e.request;const o=(0,p.getOperationRequestInfo)(n);const i=o===null||o===void 0?void 0:o.operationSpec;if(i){if(!(o===null||o===void 0?void 0:o.operationResponseGetter)){t=i.responses[e.status]}else{t=o===null||o===void 0?void 0:o.operationResponseGetter(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=(0,p.getOperationRequestInfo)(t);const o=n===null||n===void 0?void 0:n.shouldDeserialize;let i;if(o===undefined){i=true}else if(typeof o==="boolean"){i=o}else{i=o(e)}return i}async function deserializeResponseBody(e,t,n,o,f){const y=await parse(e,t,n,o,f);if(!shouldDeserializeResponse(y)){return y}const v=(0,p.getOperationRequestInfo)(y.request);const D=v===null||v===void 0?void 0:v.operationSpec;if(!D||!D.responses){return y}const M=getOperationResponseMap(y);const{error:U,shouldReturnResponse:V}=handleErrorResponse(y,D,M,o);if(U){throw U}else if(V){return y}if(M){if(M.bodyMapper){let e=y.parsedBody;if(D.isXML&&M.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[M.bodyMapper.xmlElementName]:[]}try{y.parsedBody=D.serializer.deserialize(M.bodyMapper,e,"operationRes.parsedBody",o)}catch(e){const t=new i.RestError(`Error ${e} occurred in deserializing the responseBody - ${y.bodyAsText}`,{statusCode:y.status,request:y.request,response:y});throw t}}else if(D.httpMethod==="HEAD"){y.parsedBody=n.status>=200&&n.status<300}if(M.headersMapper){y.parsedHeaders=D.serializer.deserialize(M.headersMapper,y.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return y}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,o){var p,f,y,v,D;const M=200<=e.status&&e.status<300;const U=isOperationSpecEmpty(t)?M:!!n;if(U){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const V=n!==null&&n!==void 0?n:t.responses.default;const j=((p=e.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(e.status))?`Unexpected status code: ${e.status}`:e.bodyAsText;const K=new i.RestError(j,{statusCode:e.status,request:e.request,response:e});if(!V&&!(((y=(f=e.parsedBody)===null||f===void 0?void 0:f.error)===null||y===void 0?void 0:y.code)&&((D=(v=e.parsedBody)===null||v===void 0?void 0:v.error)===null||D===void 0?void 0:D.message))){throw K}const ee=V===null||V===void 0?void 0:V.bodyMapper;const te=V===null||V===void 0?void 0:V.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let i;if(ee){let e=n;if(t.isXML&&ee.type.name===d.MapperTypeNames.Sequence){e=[];const t=ee.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}i=t.serializer.deserialize(ee,e,"error.response.parsedBody",o)}const p=n.error||i||n;K.code=p.code;if(p.message){K.message=p.message}if(ee){K.response.parsedBody=i}}if(e.headers&&te){K.response.parsedHeaders=t.serializer.deserialize(te,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){K.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:K,shouldReturnResponse:false}}async function parse(e,t,n,o,d){var p;if(!((p=n.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(n.status))&&n.bodyAsText){const p=n.bodyAsText;const f=n.headers.get("Content-Type")||"";const y=!f?[]:f.split(";").map((e=>e.toLowerCase()));try{if(y.length===0||y.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(p);return n}else if(y.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(p,o.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const o=e.code||i.RestError.PARSE_ERROR;const d=new i.RestError(t,{code:o,statusCode:n.status,request:n.request,response:n});throw d}}return n}},26323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const o=n(20778);let i;function getCachedDefaultHttpClient(){if(!i){i=(0,o.createDefaultHttpClient)()}return i}},60160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var o=n(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return o.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return o.MapperTypeNames}});var i=n(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return i.ServiceClient}});var d=n(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var p=n(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return p.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return p.XML_CHARKEY}});var f=n(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return f.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return f.deserializationPolicyName}});var y=n(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return y.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return y.serializationPolicyName}});var v=n(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return v.authorizeRequestOnClaimChallenge}});var D=n(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return D.authorizeRequestOnTenantChallenge}})},92066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const o=n(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const i=e.responses[n];if(i.bodyMapper&&i.bodyMapper.type.name===o.MapperTypeNames.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let o;if(typeof t==="string"){o=t}else if(Array.isArray(t)){o=t.join(".")}else{o=n.serializedName}return o}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("core-client")},19688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const o=n(33345);function getOperationArgumentValueFromParameter(e,t,n){let o=t.parameterPath;const i=t.mapper;let d;if(typeof o==="string"){o=[o]}if(Array.isArray(o)){if(o.length>0){if(i.isConstant){d=i.defaultValue}else{let t=getPropertyFromParameterPath(e,o);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,o)}let p=false;if(!t.propertyFound){p=i.required||o[0]==="options"&&o.length===2}d=p?i.defaultValue:t.propertyValue}}}else{if(i.required){d={}}for(const t in o){const p=i.type.modelProperties[t];const f=o[t];const y=getOperationArgumentValueFromParameter(e,{parameterPath:f,mapper:p},n);if(y!==undefined){if(!d){d={}}d[t]=y}}}return d}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let o=0;for(;o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const o=n(90111);const i=n(20778);const d=n(56234);function createClientPipeline(e={}){const t=(0,i.createPipelineFromOptions)(e!==null&&e!==void 0?e:{});if(e.credentialOptions){t.addPolicy((0,i.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,o.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const o=n(56058);const i=n(19688);const d=n(31530);const p=n(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const n=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const o=(0,i.getOperationRequestInfo)(e);const d=o===null||o===void 0?void 0:o.operationSpec;const p=o===null||o===void 0?void 0:o.operationArguments;if(d&&p){serializeHeaders(e,p,d);serializeRequestBody(e,p,d,n)}return t(e)}}}function serializeHeaders(e,t,n){var o,d;if(n.headerParameters){for(const o of n.headerParameters){let d=(0,i.getOperationArgumentValueFromParameter)(t,o);if(d!==null&&d!==undefined||o.mapper.required){d=n.serializer.serialize(o.mapper,d,(0,p.getPathStringFromParameter)(o));const t=o.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(d)){e.headers.set(t+n,d[n])}}else{e.headers.set(o.mapper.serializedName||(0,p.getPathStringFromParameter)(o),d)}}}}const f=(d=(o=t.options)===null||o===void 0?void 0:o.requestOptions)===null||d===void 0?void 0:d.customHeaders;if(f){for(const t of Object.keys(f)){e.headers.set(t,f[t])}}}function serializeRequestBody(e,t,n,f=function(){throw new Error("XML serialization unsupported!")}){var y,v,D,M,U;const V=(y=t.options)===null||y===void 0?void 0:y.serializerOptions;const j={xml:{rootName:(v=V===null||V===void 0?void 0:V.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=V===null||V===void 0?void 0:V.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=V===null||V===void 0?void 0:V.xml.xmlCharKey)!==null&&M!==void 0?M:o.XML_CHARKEY}};const K=j.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=(0,i.getOperationArgumentValueFromParameter)(t,n.requestBody);const o=n.requestBody.mapper;const{required:y,serializedName:v,xmlName:D,xmlElementName:M,xmlNamespace:V,xmlNamespacePrefix:ee,nullable:te}=o;const re=o.type.name;try{if(e.body!==undefined&&e.body!==null||te&&e.body===null||y){const t=(0,p.getPathStringFromParameter)(n.requestBody);e.body=n.serializer.serialize(o,e.body,t,j);const i=re===d.MapperTypeNames.Stream;if(n.isXML){const t=ee?`xmlns:${ee}`:"xmlns";const n=getXmlValueWithNamespace(V,t,re,e.body,j);if(re===d.MapperTypeNames.Sequence){e.body=f(prepareXMLRootList(n,M||D||v,t,V),{rootName:D||v,xmlCharKey:K})}else if(!i){e.body=f(n,{rootName:D||v,xmlCharKey:K})}}else if(re===d.MapperTypeNames.String&&(((U=n.contentType)===null||U===void 0?void 0:U.match("text/plain"))||n.mediaType==="text")){return}else if(!i){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(v,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const o of n.formDataParameters){const d=(0,i.getOperationArgumentValueFromParameter)(t,o);if(d!==undefined&&d!==null){const t=o.mapper.serializedName||(0,p.getPathStringFromParameter)(o);e.formData[t]=n.serializer.serialize(o.mapper,d,(0,p.getPathStringFromParameter)(o),j)}}}}function getXmlValueWithNamespace(e,t,n,i,d){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[d.xml.xmlCharKey]=i;n[o.XML_ATTRKEY]={[t]:e};return n}return i}function prepareXMLRootList(e,t,n,i){if(!Array.isArray(e)){e=[e]}if(!n||!i){return{[t]:e}}const d={[t]:e};d[o.XML_ATTRKEY]={[n]:i};return d}},31530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const o=n(61860);const i=o.__importStar(n(20741));const d=n(56058);const p=n(31193);class SerializerImpl{constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,o)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${o}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:o,InclusiveMaximum:i,InclusiveMinimum:d,MaxItems:p,MaxLength:f,MinItems:y,MinLength:v,MultipleOf:D,Pattern:M,UniqueItems:U}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(o!==undefined&&t<=o){failValidation("ExclusiveMinimum",o)}if(i!==undefined&&t>i){failValidation("InclusiveMaximum",i)}if(d!==undefined&&tp){failValidation("MaxItems",p)}if(f!==undefined&&t.length>f){failValidation("MaxLength",f)}if(y!==undefined&&t.lengthn.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,n,o={xml:{}}){var i,p,f;const y={xml:{rootName:(i=o.xml.rootName)!==null&&i!==void 0?i:"",includeRoot:(p=o.xml.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(f=o.xml.xmlCharKey)!==null&&f!==void 0?f:d.XML_CHARKEY}};let v={};const D=e.type.name;if(!n){n=e.serializedName}if(D.match(/^Sequence$/i)!==null){v=[]}if(e.isConstant){t=e.defaultValue}const{required:M,nullable:U}=e;if(M&&U&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(M&&!U&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!M&&U===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){v=t}else{if(D.match(/^any$/i)!==null){v=t}else if(D.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){v=serializeBasicTypes(D,n,t)}else if(D.match(/^Enum$/i)!==null){const o=e;v=serializeEnumType(n,o.type.allowedValues,t)}else if(D.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){v=serializeDateTypes(D,t,n)}else if(D.match(/^ByteArray$/i)!==null){v=serializeByteArrayType(n,t)}else if(D.match(/^Base64Url$/i)!==null){v=serializeBase64UrlType(n,t)}else if(D.match(/^Sequence$/i)!==null){v=serializeSequenceType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Dictionary$/i)!==null){v=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Composite$/i)!==null){v=serializeCompositeType(this,e,t,n,Boolean(this.isXML),y)}}return v}deserialize(e,t,n,o={xml:{}}){var p,f,y,v;const D={xml:{rootName:(p=o.xml.rootName)!==null&&p!==void 0?p:"",includeRoot:(f=o.xml.includeRoot)!==null&&f!==void 0?f:false,xmlCharKey:(y=o.xml.xmlCharKey)!==null&&y!==void 0?y:d.XML_CHARKEY},ignoreUnknownProperties:(v=o.ignoreUnknownProperties)!==null&&v!==void 0?v:false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let M;const U=e.type.name;if(!n){n=e.serializedName}if(U.match(/^Composite$/i)!==null){M=deserializeCompositeType(this,e,t,n,D)}else{if(this.isXML){const e=D.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(U.match(/^Number$/i)!==null){M=parseFloat(t);if(isNaN(M)){M=t}}else if(U.match(/^Boolean$/i)!==null){if(t==="true"){M=true}else if(t==="false"){M=false}else{M=t}}else if(U.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){M=t}else if(U.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){M=new Date(t)}else if(U.match(/^UnixTime$/i)!==null){M=unixTimeToDate(t)}else if(U.match(/^ByteArray$/i)!==null){M=i.decodeString(t)}else if(U.match(/^Base64Url$/i)!==null){M=base64UrlToByteArray(t)}else if(U.match(/^Sequence$/i)!==null){M=deserializeSequenceType(this,e,t,n,D)}else if(U.match(/^Dictionary$/i)!==null){M=deserializeDictionaryType(this,e,t,n,D)}}if(e.isConstant){M=e.defaultValue}return M}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=i.encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return i.decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const o=e.split(".");for(const e of o){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&(0,p.isValidUuid)(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const o=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!o){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=i.encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!(0,p.isDuration)(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,o,i,p){var f;if(!Array.isArray(n)){throw new Error(`${o} must be of type Array.`)}let y=t.type.element;if(!y||typeof y!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}.`)}if(y.type.name==="Composite"&&y.type.className){y=(f=e.modelMappers[y.type.className])!==null&&f!==void 0?f:y}const v=[];for(let t=0;te!==i));if(d){f[i]=e.serialize(v,n[i],o+'["'+i+'"]',p)}}}return f}return n}function getXmlObjectValue(e,t,n,o){if(!n||!e.xmlNamespace){return t}const i=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const p={[i]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e=Object.assign({},t);e[d.XML_ATTRKEY]=p;return e}}const f={};f[o.xml.xmlCharKey]=t;f[d.XML_ATTRKEY]=p;return f}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,o,i){var p,f;const y=(p=i.xml.xmlCharKey)!==null&&p!==void 0?p:d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const v=resolveModelProperties(e,t,o);let D={};const M=[];for(const p of Object.keys(v)){const U=v[p];const V=splitSerializeName(v[p].serializedName);M.push(V[0]);const{serializedName:j,xmlName:K,xmlElementName:ee}=U;let te=o;if(j!==""&&j!==undefined){te=o+"."+j}const re=U.headerCollectionPrefix;if(re){const t={};for(const o of Object.keys(n)){if(o.startsWith(re)){t[o.substring(re.length)]=e.deserialize(U.type.value,n[o],te,i)}M.push(o)}D[p]=t}else if(e.isXML){if(U.xmlIsAttribute&&n[d.XML_ATTRKEY]){D[p]=e.deserialize(U,n[d.XML_ATTRKEY][K],te,i)}else if(U.xmlIsMsText){if(n[y]!==undefined){D[p]=n[y]}else if(typeof n==="string"){D[p]=n}}else{const t=ee||K||j;if(U.xmlIsWrapped){const t=n[K];const o=(f=t===null||t===void 0?void 0:t[ee])!==null&&f!==void 0?f:[];D[p]=e.deserialize(U,o,te,i);M.push(K)}else{const o=n[t];D[p]=e.deserialize(U,o,te,i);M.push(t)}}}else{let o;let d=n;let f=0;for(const e of V){if(!d)break;f++;d=d[e]}if(d===null&&f{for(const t in v){const n=splitSerializeName(v[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){D[t]=e.deserialize(U,n[t],o+'["'+t+'"]',i)}}}else if(n&&!i.ignoreUnknownProperties){for(const e of Object.keys(n)){if(D[e]===undefined&&!M.includes(e)&&!isSpecialXmlProperty(e,i)){D[e]=n[e]}}}return D}function deserializeDictionaryType(e,t,n,o,i){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){const t={};for(const p of Object.keys(n)){t[p]=e.deserialize(d,n[p],o,i)}return t}return n}function deserializeSequenceType(e,t,n,o,i){var d;let p=t.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){if(!Array.isArray(n)){n=[n]}if(p.type.name==="Composite"&&p.type.className){p=(d=e.modelMappers[p.type.className])!==null&&d!==void 0?d:p}const t=[];for(let d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const o=n(20778);const i=n(74136);const d=n(31193);const p=n(26323);const f=n(19688);const y=n(61752);const v=n(92066);const D=n(89994);class ServiceClient{constructor(e={}){var t,n;this._requestContentType=e.requestContentType;this._endpoint=(t=e.endpoint)!==null&&t!==void 0?t:e.baseUri;if(e.baseUri){D.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,p.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if((n=e.additionalPolicies)===null||n===void 0?void 0:n.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const i=(0,y.getRequestUrl)(n,t,e,this);const p=(0,o.createPipelineRequest)({url:i});p.method=t.httpMethod;const D=(0,f.getOperationRequestInfo)(p);D.operationSpec=t;D.operationArguments=e;const M=t.contentType||this._requestContentType;if(M&&t.requestBody){p.headers.set("Content-Type",M)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){p.timeout=e.timeout}if(e.onUploadProgress){p.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){p.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){D.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){p.allowInsecureConnection=true}}if(U.abortSignal){p.abortSignal=U.abortSignal}if(U.tracingOptions){p.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){p.allowInsecureConnection=true}if(p.streamResponseStatusCodes===undefined){p.streamResponseStatusCodes=(0,v.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(p);const n=(0,d.flattenResponse)(e,t.responses[e.status]);if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&(e===null||e===void 0?void 0:e.response)){const n=e.response;const o=(0,d.flattenResponse)(n,t.responses[e.statusCode]||t.responses["default"]);e.details=o;if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(n,o,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,i.createClientPipeline)(Object.assign(Object.assign({},e),{credentialOptions:n}))}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const o=n(19688);const i=n(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,o){const i=calculateUrlReplacements(t,n,o);let d=false;let p=replaceAll(e,i);if(t.path){let e=replaceAll(t.path,i);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){p=e;d=true}else{p=appendPath(p,e)}}const{queryParams:f,sequenceParams:y}=calculateQueryParameters(t,n,o);p=appendQueryParams(p,f,y,d);return p}function replaceAll(e,t){let n=e;for(const[e,o]of t){n=n.split(e).join(o)}return n}function calculateUrlReplacements(e,t,n){var d;const p=new Map;if((d=e.urlParameters)===null||d===void 0?void 0:d.length){for(const d of e.urlParameters){let f=(0,o.getOperationArgumentValueFromParameter)(t,d,n);const y=(0,i.getPathStringFromParameter)(d);f=e.serializer.serialize(d.mapper,f,y);if(!d.skipEncoding){f=encodeURIComponent(f)}p.set(`{${d.mapper.serializedName||y}}`,f)}}return p}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let o=n.pathname;if(!o.endsWith("/")){o=`${o}/`}if(t.startsWith("/")){t=t.substring(1)}const i=t.indexOf("?");if(i!==-1){const e=t.substring(0,i);const d=t.substring(i+1);o=o+e;if(d){n.search=n.search?`${n.search}&${d}`:d}}else{o=o+t}n.pathname=o;return n.toString()}function calculateQueryParameters(e,t,n){var p;const f=new Map;const y=new Set;if((p=e.queryParameters)===null||p===void 0?void 0:p.length){for(const p of e.queryParameters){if(p.mapper.type.name==="Sequence"&&p.mapper.serializedName){y.add(p.mapper.serializedName)}let v=(0,o.getOperationArgumentValueFromParameter)(t,p,n);if(v!==undefined&&v!==null||p.mapper.required){v=e.serializer.serialize(p.mapper,v,(0,i.getPathStringFromParameter)(p));const t=p.collectionFormat?d[p.collectionFormat]:"";if(Array.isArray(v)){v=v.map((e=>{if(e===null||e===undefined){return""}return e}))}if(p.collectionFormat==="Multi"&&v.length===0){continue}else if(Array.isArray(v)&&(p.collectionFormat==="SSV"||p.collectionFormat==="TSV")){v=v.join(t)}if(!p.skipEncoding){if(Array.isArray(v)){v=v.map((e=>encodeURIComponent(e)))}else{v=encodeURIComponent(v)}}if(Array.isArray(v)&&(p.collectionFormat==="CSV"||p.collectionFormat==="Pipes")){v=v.join(t)}f.set(p.mapper.serializedName||(0,i.getPathStringFromParameter)(p),v)}}}return{queryParams:f,sequenceParams:y}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,o]=e.split("=",2);const i=t.get(n);if(i){if(Array.isArray(i)){i.push(o)}else{t.set(n,[i,o])}}else{t.set(n,o)}}return t}function appendQueryParams(e,t,n,o=false){if(t.size===0){return e}const i=new URL(e);const d=simpleParseQueryParams(i.search);for(const[e,i]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(i)){t.push(...i);const n=new Set(t);d.set(e,Array.from(n))}else{t.push(i)}}else if(t){if(Array.isArray(i)){i.unshift(t)}else if(n.has(e)){d.set(e,[t,i])}if(!o){d.set(e,i)}}else{d.set(e,i)}}const p=[];for(const[e,t]of d){if(typeof t==="string"){p.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){p.push(`${e}=${n}`)}}else{p.push(`${e}=${t}`)}}i.search=p.length?`?${p.join("&")}`:"";return i.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||(t===null||t===void 0?void 0:t.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i))!==null||e===undefined||e===null)}const n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return n.test(e)}const o=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return o.test(e)}function handleNullableResponseAndWrappableBody(e){const t=Object.assign(Object.assign({},e.headers),e.body);if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?Object.assign(Object.assign({},e.headers),{body:e.body}):t}}function flattenResponse(e,t){var n,o;const i=e.parsedHeaders;if(e.request.method==="HEAD"){return Object.assign(Object.assign({},i),{body:e.parsedBody})}const d=t&&t.bodyMapper;const p=Boolean(d===null||d===void 0?void 0:d.nullable);const f=d===null||d===void 0?void 0:d.type.name;if(f==="Stream"){return Object.assign(Object.assign({},i),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody})}const y=f==="Composite"&&d.type.modelProperties||{};const v=Object.keys(y).some((e=>y[e].serializedName===""));if(f==="Sequence"||v){const t=(n=e.parsedBody)!==null&&n!==void 0?n:[];for(const n of Object.keys(y)){if(y[n].serializedName){t[n]=(o=e.parsedBody)===null||o===void 0?void 0:o[n]}}if(i){for(const e of Object.keys(i)){t[e]=i[e]}}return p&&!e.parsedBody&&!i&&Object.getOwnPropertyNames(y).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:i,hasNullableType:p,shouldWrapBody:isPrimitiveBody(e.parsedBody,f)})}},95492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExtendedServiceClient=void 0;const o=n(32639);const i=n(20778);const d=n(60160);const p=n(38153);class ExtendedServiceClient extends d.ServiceClient{constructor(e){var t,n;super(e);if(((t=e.keepAliveOptions)===null||t===void 0?void 0:t.enable)===false&&!(0,o.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,o.createDisableKeepAlivePolicy)())}if(((n=e.redirectOptions)===null||n===void 0?void 0:n.handleRedirects)===false){this.pipeline.removePolicy({name:i.redirectPolicyName})}}async sendOperationRequest(e,t){var n;const o=(n=e===null||e===void 0?void 0:e.options)===null||n===void 0?void 0:n.onResponse;let i;function onResponse(e,t,n){i=e;if(o){o(e,t,n)}}e.options=Object.assign(Object.assign({},e.options),{onResponse:onResponse});const d=await super.sendOperationRequest(e,t);if(i){Object.defineProperty(d,"_response",{value:(0,p.toCompatResponse)(i)})}return d}}t.ExtendedServiceClient=ExtendedServiceClient},2078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertHttpClient=convertHttpClient;const o=n(38153);const i=n(33850);function convertHttpClient(e){return{sendRequest:async t=>{const n=await e.sendRequest((0,i.toWebResourceLike)(t,{createProxy:true}));return(0,o.toPipelineResponse)(n)}}}},61584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHttpHeadersLike=t.convertHttpClient=t.disableKeepAlivePolicyName=t.HttpPipelineLogLevel=t.createRequestPolicyFactoryPolicy=t.requestPolicyFactoryPolicyName=t.ExtendedServiceClient=void 0;var o=n(95492);Object.defineProperty(t,"ExtendedServiceClient",{enumerable:true,get:function(){return o.ExtendedServiceClient}});var i=n(3466);Object.defineProperty(t,"requestPolicyFactoryPolicyName",{enumerable:true,get:function(){return i.requestPolicyFactoryPolicyName}});Object.defineProperty(t,"createRequestPolicyFactoryPolicy",{enumerable:true,get:function(){return i.createRequestPolicyFactoryPolicy}});Object.defineProperty(t,"HttpPipelineLogLevel",{enumerable:true,get:function(){return i.HttpPipelineLogLevel}});var d=n(32639);Object.defineProperty(t,"disableKeepAlivePolicyName",{enumerable:true,get:function(){return d.disableKeepAlivePolicyName}});var p=n(2078);Object.defineProperty(t,"convertHttpClient",{enumerable:true,get:function(){return p.convertHttpClient}});var f=n(33850);Object.defineProperty(t,"toHttpHeadersLike",{enumerable:true,get:function(){return f.toHttpHeadersLike}})},32639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.disableKeepAlivePolicyName=void 0;t.createDisableKeepAlivePolicy=createDisableKeepAlivePolicy;t.pipelineContainsDisableKeepAlivePolicy=pipelineContainsDisableKeepAlivePolicy;t.disableKeepAlivePolicyName="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:t.disableKeepAlivePolicyName,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===t.disableKeepAlivePolicyName))}},3466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.requestPolicyFactoryPolicyName=t.HttpPipelineLogLevel=void 0;t.createRequestPolicyFactoryPolicy=createRequestPolicyFactoryPolicy;const o=n(33850);const i=n(38153);var d;(function(e){e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING"})(d||(t.HttpPipelineLogLevel=d={}));const p={log(e,t){},shouldLog(e){return false}};t.requestPolicyFactoryPolicyName="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const n=e.slice().reverse();return{name:t.requestPolicyFactoryPolicyName,async sendRequest(e,t){let d={async sendRequest(e){const n=await t((0,o.toPipelineRequest)(e));return(0,i.toCompatResponse)(n,{createProxy:true})}};for(const e of n){d=e.create(d,p)}const f=(0,o.toWebResourceLike)(e,{createProxy:true});const y=await d.sendRequest(f);return(0,i.toPipelineResponse)(y)}}}},38153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCompatResponse=toCompatResponse;t.toPipelineResponse=toPipelineResponse;const o=n(20778);const i=n(33850);const d=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let n=(0,i.toWebResourceLike)(e.request);let o=(0,i.toHttpHeadersLike)(e.headers);if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(e,{get(t,i,p){if(i==="headers"){return o}else if(i==="request"){return n}else if(i===d){return e}return Reflect.get(t,i,p)},set(e,t,i,d){if(t==="headers"){o=i}else if(t==="request"){n=i}return Reflect.set(e,t,i,d)}})}else{return Object.assign(Object.assign({},e),{request:n,headers:o})}}function toPipelineResponse(e){const t=e;const n=t[d];const p=(0,o.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(n){n.headers=p;return n}else{return Object.assign(Object.assign({},e),{headers:p,request:(0,i.toPipelineRequest)(e.request)})}}},33850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpHeaders=void 0;t.toPipelineRequest=toPipelineRequest;t.toWebResourceLike=toWebResourceLike;t.toHttpHeadersLike=toHttpHeadersLike;const o=n(20778);const i=Symbol("Original PipelineRequest");const d=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const n=e;const p=n[i];const f=(0,o.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(p){p.headers=f;return p}else{const n=(0,o.createPipelineRequest)({url:e.url,method:e.method,headers:f,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){n[d]=t.originalRequest}return n}}function toWebResourceLike(e,t){var n;const o=(n=t===null||t===void 0?void 0:t.originalRequest)!==null&&n!==void 0?n:e;const d={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(d,{get(t,n,p){if(n===i){return e}else if(n==="clone"){return()=>toWebResourceLike(toPipelineRequest(d,{originalRequest:o}),{createProxy:true,originalRequest:o})}return Reflect.get(t,n,p)},set(t,n,o,i){if(n==="keepAlive"){e.disableKeepAlive=!o}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof n==="string"&&d.includes(n)){e[n]=o}return Reflect.set(t,n,o,i)}})}else{return d}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const o=n(30736);const i=n(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:n,requestMethod:o,requestPath:i,resourceLocationConfig:d}=e;switch(o){case"PUT":{return i}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:i}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return i}case"location":default:{return n}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const d=getOperationLocationHeader(t);const p=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:p});const y=getLocationHeader(t);const v=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:v,location:y,requestPath:o,resourceLocationConfig:i})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(v==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{i.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const d=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){i.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){i.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:p})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},n){var o,i;return(o=e===null||e===void 0?void 0:e[n])!==null&&o!==void 0?o:(i=t.body)===null||i===void 0?void 0:i[n]}function getResourceLocation(e,t){const n=accessBodyProperty(e,"resourceLocation");if(n&&typeof n==="string"){t.config.resourceLocation=n}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:i,processResult:d,updateState:p,setDelay:f,state:y,setErrorAsResult:v}=e;return(0,o.pollOperation)({state:y,stateProxy:n,setDelay:f,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:p,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:i,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:v})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const o=n(93878);const i=n(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:d,processResult:p,restoreFrom:f,updateState:y,withOperationLocation:v,resolveOnUnsuccessful:D=false}=t||{};return(0,i.buildCreatePoller)({getStatusFromInitialResponse:o.getStatusFromInitialResponse,getStatusFromPollResponse:o.getOperationStatus,isOperationError:o.isOperationError,getOperationLocation:o.getOperationLocation,getResourceLocation:o.getResourceLocation,getPollingInterval:o.parseRetryAfter,getError:o.getErrorFromResponse,resolveOnUnsuccessful:D})({init:async()=>{const t=await e.sendInitialRequest();const i=(0,o.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:v,restoreFrom:f,updateState:y,processResult:p?({flatResponse:e},t)=>p(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const o=n(61860);var i=n(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return i.createHttpPoller}});o.__exportStar(n(55454),t);o.__exportStar(n(36272),t);o.__exportStar(n(82670),t)},55454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var o=n(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return o.LroEngine}})},91607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const o=n(54267);const i=n(55044);const d=n(36272);const p=n(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:n=i.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:f=false,isDone:y,lroResourceLocationConfig:v,processResult:D,updateState:M}=t||{};const U=d?(0,p.deserializeState)(d):{};const V=new o.GenericPollOperation(U,e,!f,v,D,M,y);super(V);this.resolveOnUnsuccessful=f;this.config={intervalInMs:n};V.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const o=n(93878);const i=n(50480);const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,d,p){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=d;this.isDone=p}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,o.initHttpOperation)({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const i=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,o.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:i?(e,{rawResponse:t})=>i(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){i.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}t.Poller=Poller},50480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const o=n(50480);const i=n(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:i,isDone:d,processResult:p,getError:f,response:y,setErrorAsResult:v}=e;switch(i){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=f===null||f===void 0?void 0:f(y);let i="";if(e){const{code:t,message:n}=simplifyError(e);i=`. ${t}. ${n}`}const d=`The long-running operation has failed${i}`;n.setError(t,new Error(d));n.setFailed(t);o.logger.warning(d);break}case"canceled":{n.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(y,t))||d===undefined&&["succeeded","canceled"].concat(v?[]:["failed"]).includes(i)){n.setResult(t,buildResult({response:y,state:t,processResult:p}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:i,getOperationStatus:d,withOperationLocation:p,setErrorAsResult:f}=e;const{operationLocation:y,resourceLocation:v,metadata:D,response:M}=await t();if(y)p===null||p===void 0?void 0:p(y,false);const U={metadata:D,operationLocation:y,resourceLocation:v};o.logger.verbose(`LRO: Operation description:`,U);const V=n.initState(U);const j=d({response:M,state:V,operationLocation:y});processOperationStatus({state:V,status:j,stateProxy:n,response:M,setErrorAsResult:f,processResult:i});return V}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:d,operationLocation:p,getOperationStatus:f,getResourceLocation:y,isOperationError:v,options:D}=e;const M=await t(p,D).catch(setStateError({state:n,stateProxy:d,isOperationError:v}));const U=f(M,n);o.logger.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${i.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=y(M,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:d,isOperationError:v})),status:U}}}return{response:M,status:U}}async function pollOperation(e){const{poll:t,state:n,stateProxy:o,options:d,getOperationStatus:p,getResourceLocation:f,getOperationLocation:y,isOperationError:v,withOperationLocation:D,getPollingInterval:M,processResult:U,getError:V,updateState:j,setDelay:K,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:p,state:n,stateProxy:o,operationLocation:re,getResourceLocation:f,isOperationError:v,options:d});processOperationStatus({status:ne,response:e,state:n,stateProxy:o,isDone:ee,processResult:U,getError:V,setErrorAsResult:te});if(!i.terminalStates.includes(ne)){const t=M===null||M===void 0?void 0:M(e);if(t)K(t);const o=y===null||y===void 0?void 0:y(e,n);if(o!==undefined){const e=re!==o;n.config.operationLocation=o;D===null||D===void 0?void 0:D(o,e)}else D===null||D===void 0?void 0:D(re,false)}j===null||j===void 0?void 0:j(n,e)}}t.pollOperation=pollOperation},18835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const o=n(30736);const i=n(55044);const d=n(87779);const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:p,isOperationError:f,getResourceLocation:y,getPollingInterval:v,getError:D,resolveOnUnsuccessful:M}=e;return async({init:e,poll:U},V)=>{const{processResult:j,updateState:K,withOperationLocation:ee,intervalInMs:te=i.POLL_INTERVAL_IN_MS,restoreFrom:re}=V||{};const ne=createStateProxy();const oe=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const ie=re?(0,o.deserializeState)(re):await(0,o.initOperation)({init:e,stateProxy:ne,processResult:j,getOperationStatus:n,withOperationLocation:oe,setErrorAsResult:!M});let se;const ae=new AbortController;const Ae=new Map;const handleProgressEvents=async()=>Ae.forEach((e=>e(ie)));const ce="Operation was canceled";let le=te;const ue={getOperationState:()=>ie,getResult:()=>ie.result,isDone:()=>["succeeded","failed","canceled"].includes(ie.status),isStopped:()=>se===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:ie}),onProgress:e=>{const t=Symbol();Ae.set(t,e);return()=>Ae.delete(t)},pollUntilDone:e=>se!==null&&se!==void 0?se:se=(async()=>{const{abortSignal:t}=e||{};function abortListener(){ae.abort()}const n=ae.signal;if(t===null||t===void 0?void 0:t.aborted){ae.abort()}else if(!n.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!ue.isDone()){await ue.poll({abortSignal:n});while(!ue.isDone()){await(0,d.delay)(le,{abortSignal:n});await ue.poll({abortSignal:n})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(M){return ue.getResult()}else{switch(ie.status){case"succeeded":return ue.getResult();case"canceled":throw new Error(ce);case"failed":throw ie.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{se=undefined})),async poll(e){if(M){if(ue.isDone())return}else{switch(ie.status){case"succeeded":return;case"canceled":throw new Error(ce);case"failed":throw ie.error}}await(0,o.pollOperation)({poll:U,state:ie,stateProxy:ne,getOperationLocation:t,isOperationError:f,withOperationLocation:oe,getPollingInterval:v,getOperationStatus:p,getResourceLocation:y,processResult:j,getError:D,updateState:K,options:e,setDelay:e=>{le=e},setErrorAsResult:!M});await handleProgressEvents();if(!M){switch(ie.status){case"canceled":throw new Error(ce);case"failed":throw ie.error}}}};return ue}}t.buildCreatePoller=buildCreatePoller},66427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="1.22.0";t.DEFAULT_RETRY_POLICY_COUNT=3},90862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const o=n(53253);const i=n(29590);const d=n(64087);const p=n(32799);const f=n(45807);const y=n(39295);const v=n(48170);const D=n(75497);const M=n(87779);const U=n(32815);const V=n(95686);const j=n(18554);const K=n(75798);const ee=n(93237);const te=n(37466);function createPipelineFromOptions(e){var t;const n=(0,i.createEmptyPipeline)();if(M.isNodeLike){if(e.agent){n.addPolicy((0,j.agentPolicy)(e.agent))}if(e.tlsOptions){n.addPolicy((0,K.tlsPolicy)(e.tlsOptions))}n.addPolicy((0,U.proxyPolicy)(e.proxyOptions));n.addPolicy((0,y.decompressResponsePolicy)())}n.addPolicy((0,te.wrapAbortSignalLikePolicy)());n.addPolicy((0,D.formDataPolicy)(),{beforePolicies:[f.multipartPolicyName]});n.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));n.addPolicy((0,V.setClientRequestIdPolicy)((t=e.telemetryOptions)===null||t===void 0?void 0:t.clientRequestIdHeaderName));n.addPolicy((0,f.multipartPolicy)(),{afterPhase:"Deserialize"});n.addPolicy((0,v.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});n.addPolicy((0,ee.tracingPolicy)(Object.assign(Object.assign({},e.userAgentOptions),e.loggingOptions)),{afterPhase:"Retry"});if(M.isNodeLike){n.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}n.addPolicy((0,o.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return n}},7960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const o=n(41958);const i=n(91297);function createDefaultHttpClient(){const e=(0,o.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:n,cleanup:o}=t.abortSignal?(0,i.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{o===null||o===void 0?void 0:o()}}}}},192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;const o=n(41958);function createHttpHeaders(e){return(0,o.createHttpHeaders)(e)}},20778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileFromStream=t.createFile=t.agentPolicyName=t.agentPolicy=t.auxiliaryAuthenticationHeaderPolicyName=t.auxiliaryAuthenticationHeaderPolicy=t.ndJsonPolicyName=t.ndJsonPolicy=t.bearerTokenAuthenticationPolicyName=t.bearerTokenAuthenticationPolicy=t.formDataPolicyName=t.formDataPolicy=t.tlsPolicyName=t.tlsPolicy=t.userAgentPolicyName=t.userAgentPolicy=t.defaultRetryPolicy=t.tracingPolicyName=t.tracingPolicy=t.retryPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.setClientRequestIdPolicyName=t.setClientRequestIdPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.isRestError=t.RestError=t.createPipelineRequest=t.createHttpHeaders=t.createDefaultHttpClient=t.createPipelineFromOptions=t.createEmptyPipeline=void 0;var o=n(29590);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return o.createEmptyPipeline}});var i=n(90862);Object.defineProperty(t,"createPipelineFromOptions",{enumerable:true,get:function(){return i.createPipelineFromOptions}});var d=n(7960);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return d.createDefaultHttpClient}});var p=n(192);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});var f=n(95709);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(8666);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return y.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return y.isRestError}});var v=n(39295);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return v.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return v.decompressResponsePolicyName}});var D=n(16708);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return D.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return D.exponentialRetryPolicyName}});var M=n(95686);Object.defineProperty(t,"setClientRequestIdPolicy",{enumerable:true,get:function(){return M.setClientRequestIdPolicy}});Object.defineProperty(t,"setClientRequestIdPolicyName",{enumerable:true,get:function(){return M.setClientRequestIdPolicyName}});var U=n(53253);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return U.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return U.logPolicyName}});var V=n(45807);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return V.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return V.multipartPolicyName}});var j=n(32815);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return j.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return j.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return j.getDefaultProxySettings}});var K=n(64087);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return K.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return K.redirectPolicyName}});var ee=n(96518);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return ee.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return ee.systemErrorRetryPolicyName}});var te=n(97540);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return te.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return te.throttlingRetryPolicyName}});var re=n(56085);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return re.retryPolicy}});var ne=n(93237);Object.defineProperty(t,"tracingPolicy",{enumerable:true,get:function(){return ne.tracingPolicy}});Object.defineProperty(t,"tracingPolicyName",{enumerable:true,get:function(){return ne.tracingPolicyName}});var oe=n(48170);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return oe.defaultRetryPolicy}});var ie=n(32799);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return ie.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return ie.userAgentPolicyName}});var se=n(75798);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return se.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return se.tlsPolicyName}});var ae=n(75497);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return ae.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return ae.formDataPolicyName}});var Ae=n(26925);Object.defineProperty(t,"bearerTokenAuthenticationPolicy",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicy}});Object.defineProperty(t,"bearerTokenAuthenticationPolicyName",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicyName}});var ce=n(36827);Object.defineProperty(t,"ndJsonPolicy",{enumerable:true,get:function(){return ce.ndJsonPolicy}});Object.defineProperty(t,"ndJsonPolicyName",{enumerable:true,get:function(){return ce.ndJsonPolicyName}});var le=n(42262);Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicy",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicy}});Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicyName",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicyName}});var ue=n(18554);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return ue.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return ue.agentPolicyName}});var de=n(97073);Object.defineProperty(t,"createFile",{enumerable:true,get:function(){return de.createFile}});Object.defineProperty(t,"createFileFromStream",{enumerable:true,get:function(){return de.createFileFromStream}})},80544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("core-rest-pipeline")},29590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const o=n(41958);function createEmptyPipeline(){return(0,o.createEmptyPipeline)()}},95709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const o=n(41958);function createPipelineRequest(e){return(0,o.createPipelineRequest)(e)}},18554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;const o=n(44960);t.agentPolicyName=o.agentPolicyName;function agentPolicy(e){return(0,o.agentPolicy)(e)}},42262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auxiliaryAuthenticationHeaderPolicyName=void 0;t.auxiliaryAuthenticationHeaderPolicy=auxiliaryAuthenticationHeaderPolicy;const o=n(39202);const i=n(80544);t.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";const d="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){var t,n;const{scopes:o,getAccessToken:i,request:d}=e;const p={abortSignal:d.abortSignal,tracingOptions:d.tracingOptions};return(n=(t=await i(o,p))===null||t===void 0?void 0:t.token)!==null&&n!==void 0?n:""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:n,scopes:p}=e;const f=e.logger||i.logger;const y=new WeakMap;return{name:t.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(e,i){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!n||n.length===0){f.info(`${t.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`);return i(e)}const v=[];for(const t of n){let n=y.get(t);if(!n){n=(0,o.createTokenCycler)(t);y.set(t,n)}v.push(sendAuthorizeRequest({scopes:Array.isArray(p)?p:[p],request:e,getAccessToken:n,logger:f}))}const D=(await Promise.all(v)).filter((e=>Boolean(e)));if(D.length===0){f.warning(`None of the auxiliary tokens are valid. ${d} header will not be set.`);return i(e)}e.headers.set(d,D.map((e=>`Bearer ${e}`)).join(", "));return i(e)}}}},26925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerTokenAuthenticationPolicyName=void 0;t.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;t.parseChallenges=parseChallenges;const o=n(39202);const i=n(80544);const d=n(8666);t.bearerTokenAuthenticationPolicyName="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if((0,d.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions,enableCae:true};const d=await n(t,i);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){var n;const{scopes:o}=e;const i=await e.getAccessToken(o,{enableCae:true,claims:t});if(!i){return false}e.request.headers.set("Authorization",`${(n=i.tokenType)!==null&&n!==void 0?n:"Bearer"} ${i.token}`);return true}function bearerTokenAuthenticationPolicy(e){var n,d,p;const{credential:f,scopes:y,challengeCallbacks:v}=e;const D=e.logger||i.logger;const M={authorizeRequest:(d=(n=v===null||v===void 0?void 0:v.authorizeRequest)===null||n===void 0?void 0:n.bind(v))!==null&&d!==void 0?d:defaultAuthorizeRequest,authorizeRequestOnChallenge:(p=v===null||v===void 0?void 0:v.authorizeRequestOnChallenge)===null||p===void 0?void 0:p.bind(v)};const U=f?(0,o.createTokenCycler)(f):()=>Promise.resolve(null);return{name:t.bearerTokenAuthenticationPolicyName,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await M.authorizeRequest({scopes:Array.isArray(y)?y:[y],request:e,getAccessToken:U,logger:D});let n;let o;let i;[n,o]=await trySendRequest(e,t);if(isChallengeResponse(n)){let d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}i=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(i){[n,o]=await trySendRequest(e,t)}}else if(M.authorizeRequestOnChallenge){i=await M.authorizeRequestOnChallenge({scopes:Array.isArray(y)?y:[y],request:e,response:n,getAccessToken:U,logger:D});if(i){[n,o]=await trySendRequest(e,t)}if(isChallengeResponse(n)){d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}i=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(i){[n,o]=await trySendRequest(e,t)}}}}}if(o){throw o}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const o=[];let i;while((i=t.exec(e))!==null){const e=i[1];const t=i[2];const d={};let p;while((p=n.exec(t))!==null){d[p[1]]=p[2]}o.push({scheme:e,params:d})}return o}function getCaeChallengeClaims(e){var t;if(!e){return}const n=parseChallenges(e);return(t=n.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims")))===null||t===void 0?void 0:t.params.claims}},39295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;const o=n(44960);t.decompressResponsePolicyName=o.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,o.decompressResponsePolicy)()}},48170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const o=n(44960);t.defaultRetryPolicyName=o.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,o.defaultRetryPolicy)(e)}},16708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const o=n(44960);t.exponentialRetryPolicyName=o.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,o.exponentialRetryPolicy)(e)}},75497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const o=n(44960);t.formDataPolicyName=o.formDataPolicyName;function formDataPolicy(){return(0,o.formDataPolicy)()}},53253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const o=n(80544);const i=n(44960);t.logPolicyName=i.logPolicyName;function logPolicy(e={}){return(0,i.logPolicy)(Object.assign({logger:o.logger.info},e))}},45807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const o=n(44960);const i=n(97073);t.multipartPolicyName=o.multipartPolicyName;function multipartPolicy(){const e=(0,o.multipartPolicy)();return{name:t.multipartPolicyName,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,i.hasRawContent)(e.body)){e.body=(0,i.getRawContent)(e.body)}}}return e.sendRequest(t,n)}}}},36827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ndJsonPolicyName=void 0;t.ndJsonPolicy=ndJsonPolicy;t.ndJsonPolicyName="ndJsonPolicy";function ndJsonPolicy(){return{name:t.ndJsonPolicyName,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}},32815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.proxyPolicyName=void 0;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const o=n(44960);t.proxyPolicyName=o.proxyPolicyName;function getDefaultProxySettings(e){return(0,o.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,o.proxyPolicy)(e,t)}},64087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;const o=n(44960);t.redirectPolicyName=o.redirectPolicyName;function redirectPolicy(e={}){return(0,o.redirectPolicy)(e)}},56085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const o=n(26515);const i=n(66427);const d=n(44960);const p=(0,o.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:i.DEFAULT_RETRY_POLICY_COUNT}){return(0,d.retryPolicy)(e,Object.assign({logger:p},t))}},95686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setClientRequestIdPolicyName=void 0;t.setClientRequestIdPolicy=setClientRequestIdPolicy;t.setClientRequestIdPolicyName="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:t.setClientRequestIdPolicyName,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}},96518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const o=n(44960);t.systemErrorRetryPolicyName=o.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,o.systemErrorRetryPolicy)(e)}},97540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const o=n(44960);t.throttlingRetryPolicyName=o.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,o.throttlingRetryPolicy)(e)}},75798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;const o=n(44960);t.tlsPolicyName=o.tlsPolicyName;function tlsPolicy(e){return(0,o.tlsPolicy)(e)}},93237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingPolicyName=void 0;t.tracingPolicy=tracingPolicy;const o=n(20623);const i=n(66427);const d=n(28431);const p=n(80544);const f=n(87779);const y=n(8666);const v=n(95750);t.tracingPolicyName="tracingPolicy";function tracingPolicy(e={}){const n=(0,d.getUserAgentValue)(e.userAgentPrefix);const o=new v.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const i=tryCreateTracingClient();return{name:t.tracingPolicyName,async sendRequest(e,t){var d;if(!i){return t(e)}const p=await n;const f={"http.url":o.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":p,requestId:e.requestId};if(p){f["http.user_agent"]=p}const{span:y,tracingContext:v}=(d=tryCreateSpan(i,e,f))!==null&&d!==void 0?d:{};if(!y||!v){return t(e)}try{const n=await i.withContext(v,t,e);tryProcessResponse(y,n);return n}catch(e){tryProcessError(y,e);throw e}}}}function tryCreateTracingClient(){try{return(0,o.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:i.SDK_VERSION})}catch(e){p.logger.warning(`Error when creating the TracingClient: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:o,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!o.isRecording()){o.end();return undefined}const d=e.createRequestHeaders(i.tracingOptions.tracingContext);for(const[e,n]of Object.entries(d)){t.headers.set(e,n)}return{span:o,tracingContext:i.tracingOptions.tracingContext}}catch(e){p.logger.warning(`Skipping creating a tracing span due to an error: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,f.isError)(t)?t:undefined});if((0,y.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}},32799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const o=n(28431);const i=(0,o.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,o.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(i)){e.headers.set(i,await n)}return t(e)}}}},37466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLikePolicyName=void 0;t.wrapAbortSignalLikePolicy=wrapAbortSignalLikePolicy;const o=n(91297);t.wrapAbortSignalLikePolicyName="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:t.wrapAbortSignalLikePolicyName,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:i}=(0,o.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{i===null||i===void 0?void 0:i()}}}}},8666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const o=n(41958);t.RestError=o.RestError;function isRestError(e){return(0,o.isRestError)(e)}},97073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasRawContent=hasRawContent;t.getRawContent=getRawContent;t.createFileFromStream=createFileFromStream;t.createFile=createFile;const o=n(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const i={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const d=Symbol("rawContent");function hasRawContent(e){return typeof e[d]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[d]()}else{return e}}function createFileFromStream(e,t,n={}){var o,p,f,y;return Object.assign(Object.assign({},i),{type:(o=n.type)!==null&&o!==void 0?o:"",lastModified:(p=n.lastModified)!==null&&p!==void 0?p:(new Date).getTime(),webkitRelativePath:(f=n.webkitRelativePath)!==null&&f!==void 0?f:"",size:(y=n.size)!==null&&y!==void 0?y:-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[d]:e})}function createFile(e,t,n={}){var p,f,y;if(o.isNodeLike){return Object.assign(Object.assign({},i),{type:(p=n.type)!==null&&p!==void 0?p:"",lastModified:(f=n.lastModified)!==null&&f!==void 0?f:(new Date).getTime(),webkitRelativePath:(y=n.webkitRelativePath)!==null&&y!==void 0?y:"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([e]).stream(),[d]:()=>e})}else{return new File([e],t,n)}}},39202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_CYCLER_OPTIONS=void 0;t.createTokenCycler=createTokenCycler;const o=n(87779);t.DEFAULT_CYCLER_OPTIONS={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()e.getToken(t,n);o=beginRefresh(tryGetAccessToken,p.retryIntervalInMs,(y=i===null||i===void 0?void 0:i.expiresOnTimestamp)!==null&&y!==void 0?y:Date.now()).then((e=>{o=null;i=e;d=n.tenantId;return i})).catch((e=>{o=null;i=null;d=undefined;throw e}))}return o}return async(e,t)=>{const n=Boolean(t.claims);const o=d!==t.tenantId;if(n){i=null}const p=o||n||f.mustRefresh;if(p){return refresh(e,t)}if(f.shouldRefresh){refresh(e,t)}return i}}},28431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const o=n(31848);const i=n(66427);function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,o.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",i.SDK_VERSION);await(0,o.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},31848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const o=n(61860);const i=o.__importStar(n(48161));const d=o.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${i.arch()}-${i.type()}-${i.release()})`)}},91297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLike=wrapAbortSignalLike;function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}},20623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var o=n(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return o.useInstrumenter}});var i=n(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return i.createTracingClient}})},48729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const o=n(79186);const i=n(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,o.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){i.state.instrumenterImplementation=e}function getInstrumenter(){if(!i.state.instrumenterImplementation){i.state.instrumenterImplementation=createDefaultInstrumenter()}return i.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const o=n(48729);const i=n(79186);function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:d}=e;function startSpan(e,p,f){var y;const v=(0,o.getInstrumenter)().startSpan(e,Object.assign(Object.assign({},f),{packageName:n,packageVersion:d,tracingContext:(y=p===null||p===void 0?void 0:p.tracingOptions)===null||y===void 0?void 0:y.tracingContext}));let D=v.tracingContext;const M=v.span;if(!D.getValue(i.knownContextKeys.namespace)){D=D.setValue(i.knownContextKeys.namespace,t)}M.setAttribute("az.namespace",D.getValue(i.knownContextKeys.namespace));const U=Object.assign({},p,{tracingOptions:Object.assign(Object.assign({},p===null||p===void 0?void 0:p.tracingOptions),{tracingContext:D})});return{span:M,updatedOptions:U}}async function withSpan(e,t,n,o){const{span:i,updatedOptions:d}=startSpan(e,t,o);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(n(d,i))));i.setStatus({status:"success"});return e}catch(e){i.setStatus({status:"error",error:e});throw e}finally{i.end()}}function withContext(e,t,...n){return(0,o.getInstrumenter)().withContext(e,t,...n)}function parseTraceparentHeader(e){return(0,o.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,o.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let n=new TracingContextImpl(e.parentContext);if(e.span){n=n.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){n=n.setValue(t.knownContextKeys.namespace,e.namespace)}return n}class TracingContextImpl{constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){var n,o;const i=new AbortController;function abortHandler(){i.abort()}(n=t===null||t===void 0?void 0:t.abortSignal)===null||n===void 0?void 0:n.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:i.signal}))))}finally{i.abort();(o=t===null||t===void 0?void 0:t.abortSignal)===null||o===void 0?void 0:o.removeEventListener("abort",abortHandler)}}},63128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const o=n(16492);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:i,abortErrorMsg:d}=t!==null&&t!==void 0?t:{};return new Promise(((t,p)=>{function rejectOnAbort(){p(new o.AbortError(d!==null&&d!==void 0?d:"The operation was aborted."))}function removeListeners(){i===null||i===void 0?void 0:i.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(i===null||i===void 0?void 0:i.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();p(e)}))}catch(e){p(e)}i===null||i===void 0?void 0:i.addEventListener("abort",onAbort)}))}},90636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const o=n(63128);const i=n(95750);const d="The delay was aborted.";function delay(e,t){let n;const{abortSignal:i,abortErrorMsg:p}=t!==null&&t!==void 0?t:{};return(0,o.createAbortablePromise)((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:i,abortErrorMsg:p!==null&&p!==void 0?p:d})}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const d=o/2+(0,i.getRandomIntegerInclusive)(0,o/2);return{retryAfterInMs:d}}},99945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const o=n(95750);function getErrorMessage(e){if((0,o.isError)(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}},87779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const o=n(61860);const i=o.__importStar(n(95750));var d=n(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var p=n(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return p.createAbortablePromise}});var f=n(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return f.delay}});var y=n(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return y.getErrorMessage}});var v=n(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return v.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return v.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return v.objectHasProperty}});function calculateRetryDelay(e,t){return i.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return i.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,n){return i.computeSha256Hmac(e,t,n)}function getRandomIntegerInclusive(e,t){return i.getRandomIntegerInclusive(e,t)}function isError(e){return i.isError(e)}function isObject(e){return i.isObject(e)}function randomUUID(){return i.randomUUID()}t.isBrowser=i.isBrowser;t.isBun=i.isBun;t.isDeno=i.isDeno;t.isNode=i.isNodeLike;t.isNodeLike=i.isNodeLike;t.isNodeRuntime=i.isNodeRuntime;t.isReactNative=i.isReactNative;t.isWebWorker=i.isWebWorker;function uint8ArrayToString(e,t){return i.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return i.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},31658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},16492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var o=n(31658);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}})},78756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=t.parseXML=t.stringifyXML=void 0;var o=n(48133);Object.defineProperty(t,"stringifyXML",{enumerable:true,get:function(){return o.stringifyXML}});Object.defineProperty(t,"parseXML",{enumerable:true,get:function(){return o.parseXML}});var i=n(93406);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return i.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return i.XML_CHARKEY}})},93406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},48133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringifyXML=stringifyXML;t.parseXML=parseXML;const o=n(50591);const i=n(93406);function getCommonOptions(e){var t;return{attributesGroupName:i.XML_ATTRKEY,textNodeName:(t=e.xmlCharKey)!==null&&t!==void 0?t:i.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){var t,n;return Object.assign(Object.assign({},getCommonOptions(e)),{attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:(t=e.rootName)!==null&&t!==void 0?t:"root",cdataPropName:(n=e.cdataPropName)!==null&&n!==void 0?n:"__cdata"})}function getParserOptions(e={}){return Object.assign(Object.assign({},getCommonOptions(e)),{parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false})}function stringifyXML(e,t={}){const n=getSerializerOptions(t);const i=new o.XMLBuilder(n);const d={[n.rootNodeName]:e};const p=i.build(d);return`${p}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const n=o.XMLValidator.validate(e);if(n!==true){throw n}const i=new o.XMLParser(getParserOptions(t));const d=i.parse(e);if(d["?xml"]){delete d["?xml"]}if(!t.includeRoot){for(const e of Object.keys(d)){const t=d[e];return typeof t==="object"?Object.assign({},t):t}}return d}},26515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const o=n(82490);const i=(0,o.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=i.logger;function setLogLevel(e){i.setLogLevel(e)}function getLogLevel(){return i.getLogLevel()}function createClientLogger(e){return i.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const o=n(20778);const i=n(61584);const d=n(27323);const p=n(72995);const f=n(46370);const y=": ";const v=" ";const D=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,p.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const n=t.length;if(n!==this.subRequests.size&&n!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const M=new Array(n);let U=0;let V=0;for(let e=0;e=0&&re{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const o=n(53563);const i=n(27323);async function getBodyAsText(e){let t=Buffer.alloc(i.BATCH_MAX_PAYLOAD_IN_BYTES);const n=await(0,o.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,n);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const o=n(87779);const i=n(50417);const d=n(20778);const p=n(87779);const f=n(35345);const y=n(90372);const v=n(58913);const D=n(25984);const M=n(47764);const U=n(78756);const V=n(27323);const j=n(68999);const K=n(53952);const ee=n(60160);const te=n(97999);class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await v.Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await v.Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,n){let o;let d;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,i.isTokenCredential)(t))){o=e;d=t}else if(e instanceof y.BlobClient){o=e.url;d=e.credential;n=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return K.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",n,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:o,credential:d},(async()=>{await new y.BlobClient(o,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,n,o){let d;let v;let D;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,i.isTokenCredential)(t))){d=e;v=t;D=n}else if(e instanceof y.BlobClient){d=e.url;v=e.credential;D=t;o=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!o){o={}}return K.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",o,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:v},(async()=>{await new y.BlobClient(d,this.batchRequest.createPipeline(v)).setAccessTier(D,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,o.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TYPE}: application/http${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,ee.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,i.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:V.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:ee.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof j.StorageSharedKeyCredential){t.addPolicy((0,te.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const n=new D.Pipeline([]);n._credential=e;n._corePipeline=t;return n}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${V.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,M.getURLPathAndQuery)(e.url)} ${V.HTTP_VERSION_1_1}${V.HTTP_LINE_ENDING}`].join(V.HTTP_LINE_ENDING);for(const[t,n]of e.headers){this.body+=`${t}: ${n}${V.HTTP_LINE_ENDING}`}this.body+=V.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=V.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${V.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,M.getURLPath)(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${V.HTTP_LINE_ENDING}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let n="";for(const[t]of e.headers){if((0,M.iEqual)(t,V.HeaderConstants.X_MS_VERSION)){n=t}}if(n!==""){e.headers.delete(n)}return t(e)}}}},12094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const o=n(41564);const i=n(72995);const d=n(95561);const p=n(53952);const f=n(35345);const y=n(53789);const v=n(25984);const D=n(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,n){let o;if((0,v.isPipelineLike)(t)){o=t}else if(!t){o=(0,v.newPipeline)(new f.AnonymousCredential,n)}else{o=(0,v.newPipeline)(t,n)}const i=new y.StorageContextClient(e,(0,v.getCoreClientOptions)(o));const d=(0,D.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=i.container}else{this.serviceOrContainerContext=i.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,n){const o=new d.BlobBatch;for(const i of e){if(typeof i==="string"){await o.deleteBlob(i,t,n)}else{await o.deleteBlob(i,t)}}return this.submitBatch(o)}async setBlobsAccessTier(e,t,n,o){const i=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await i.setBlobAccessTier(d,t,n,o)}else{await i.setBlobAccessTier(d,t,n)}}return this.submitBatch(i)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return p.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const n=e.getHttpRequestBody();const d=(0,D.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,i.utf8ByteLength)(n),e.getMultiPartContentType(),n,{...t}));const p=new o.BatchResponseParser(d,e.getSubRequests());const f=await p.parseBatchResponse();const y={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:f.subResponses,subResponsesSucceededCount:f.subResponsesSucceededCount,subResponsesFailedCount:f.subResponsesFailedCount};return y}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const o=n(87779);const i=n(98684);class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return o.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,o,d={}){this.originalResponse=e;this.blobDownloadStream=new i.RetriableReadableStream(this.originalResponse.readableStreamBody,t,n,o,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const o=n(87779);const i=n(27323);const d=n(53952);const p=n(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const n=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=n.container}else{this._isContainer=false;this._containerOrBlobOperation=n.blob}if(!t){t=(0,o.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==i.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==i.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async n=>(0,p.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==i.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==i.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async n=>{const o=(0,p.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));this._leaseId=e;return o}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==i.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==i.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,p.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==i.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==i.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==i.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==i.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async n=>{const o={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return(0,p.assertResponse)(await this._containerOrBlobOperation.breakLease(o))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const o=n(87779);const i=n(36426);class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return o.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new i.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const o=n(50417);const i=n(20778);const d=n(87779);const p=n(25984);const f=n(81884);const y=n(47764);const v=n(68999);const D=n(35345);const M=n(47764);const U=n(53952);const V=n(12094);const j=n(73542);const K=n(6358);const ee=n(85238);const te=n(46940);class BlobServiceClient extends j.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const n=(0,y.extractConnectionStringParts)(e);if(n.kind==="AccountConnString"){if(d.isNodeLike){const e=new v.StorageSharedKeyCredential(n.accountName,n.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,i.getDefaultProxySettings)(n.proxyUri)}const o=(0,p.newPipeline)(e,t);return new BlobServiceClient(n.url,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(n.kind==="SASConnString"){const e=(0,p.newPipeline)(new D.AnonymousCredential,t);return new BlobServiceClient(n.url+"?"+n.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,n){let i;if((0,p.isPipelineLike)(t)){i=t}else if(d.isNodeLike&&t instanceof v.StorageSharedKeyCredential||t instanceof D.AnonymousCredential||(0,o.isTokenCredential)(t)){i=(0,p.newPipeline)(t,n)}else{i=(0,p.newPipeline)(new D.AnonymousCredential,n)}super(e,i);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new f.ContainerClient((0,y.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const n=this.getContainerClient(e);const o=await n.create(t);return{containerClient:n,containerCreateResponse:o}}))}async deleteContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const n=this.getContainerClient(e);return n.delete(t)}))}async undeleteContainer(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,(async o=>{const i=this.getContainerClient(n.destinationContainerName||e);const d=i["storageClientContext"].container;const p=(0,M.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:o.tracingOptions}));return{containerClient:i,containerUndeleteResponse:p}}))}async getProperties(e={}){return U.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async n=>(0,M.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async getStatistics(e={}){return U.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return U.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async n=>(0,M.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:n.tracingOptions}))))}async findBlobsByTagsSegment(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,(async o=>{const i=(0,M.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const d={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,y.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listContainersSegment(e,t);n.containerItems=n.containerItems||[];e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async getUserDelegationKey(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",n,(async o=>{const i=(0,M.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,M.truncatedISO8061Date)(e,false),expiresOn:(0,M.truncatedISO8061Date)(t,false)},{abortSignal:n.abortSignal,tracingOptions:o.tracingOptions}));const d={signedObjectId:i.signedObjectId,signedTenantId:i.signedTenantId,signedStartsOn:new Date(i.signedStartsOn),signedExpiresOn:new Date(i.signedExpiresOn),signedService:i.signedService,signedVersion:i.signedVersion,value:i.value};const p={_response:i._response,requestId:i.requestId,clientRequestId:i.clientRequestId,version:i.version,date:i.date,errorCode:i.errorCode,...d};return p}))}getBlobBatchClient(){return new V.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=K.AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const i=(0,ee.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...o},this.credential).toString();return(0,y.appendToURLQuery)(this.url,i)}generateSasStringToSign(e,t=K.AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return(0,ee.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...o},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const o=n(20778);const i=n(50417);const d=n(87779);const p=n(87779);const f=n(4894);const y=n(95602);const v=n(35345);const D=n(68999);const M=n(58560);const U=n(95302);const V=n(25984);const j=n(73145);const K=n(52045);const ee=n(73542);const te=n(81582);const re=n(51382);const ne=n(27323);const oe=n(53952);const ie=n(47764);const se=n(53563);const ae=n(656);const Ae=n(23276);class BlobClient extends ee.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,p){p=p||{};let f;let y;if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,ie.getURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,ie.getURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,n={}){n.conditions=n.conditions||{};n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-download",n,(async o=>{const i=(0,ie.assertResponse)(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:n.onProgress},range:e===0&&!t?undefined:(0,K.rangeToString)({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:o.tracingOptions}));const p={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:(0,ie.parseObjectReplicationRecord)(i.objectReplicationRules)};if(!d.isNodeLike){return p}if(n.maxRetryRequests===undefined||n.maxRetryRequests<0){n.maxRetryRequests=ne.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(i.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!i.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new f.BlobDownloadResponse(p,(async t=>{const o={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...o})).readableStreamBody}),e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))}async exists(e={}){return oe.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===ne.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===ne.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const n=(0,ie.assertResponse)(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:(0,ie.parseObjectReplicationRecord)(n.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return oe.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,ie.assertResponse)(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return oe.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,ie.assertResponse)(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return oe.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,ie.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-setMetadata",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async setTags(e,t={}){return oe.tracingClient.withSpan("BlobClient-setTags",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions,tags:(0,ie.toBlobTags)(e)}))))}async getTags(e={}){return oe.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const n=(0,ie.assertResponse)(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}));const o={...n,_response:n._response,tags:(0,ie.toTags)({blobTagSet:n.blobTagSet})||{}};return o}))}getBlobLeaseClient(e){return new Ae.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,ie.assertResponse)(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const n={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const o=new j.BlobBeginCopyFromUrlPoller({blobClient:n,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await o.poll();return o}async abortCopyFromURL(e,t={}){return oe.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async n=>(0,ie.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return oe.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async n=>(0,ie.assertResponse)(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:(0,ie.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async setAccessTier(e,t={}){return oe.tracingClient.withSpan("BlobClient-setAccessTier",t,(async n=>(0,ie.assertResponse)(await this.blobContext.setTier((0,M.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions}))))}async downloadToBuffer(e,t,n,o={}){let i;let d=0;let p=0;let f=o;if(e instanceof Buffer){i=e;d=t||0;p=typeof n==="number"?n:0}else{d=typeof e==="number"?e:0;p=typeof t==="number"?t:0;f=n||{}}let y=f.blockSize??0;if(y<0){throw new RangeError("blockSize option must be >= 0")}if(y===0){y=ne.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(p&&p<=0){throw new RangeError("count option must be greater than 0")}if(!f.conditions){f.conditions={}}return oe.tracingClient.withSpan("BlobClient-downloadToBuffer",f,(async e=>{if(!p){const t=await this.getProperties({...f,tracingOptions:e.tracingOptions});p=t.contentLength-d;if(p<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!i){try{i=Buffer.alloc(p)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${p}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length{let n=d+p;if(o+y{const d=await this.download(t,n,{...o,tracingOptions:i.tracingOptions});if(d.readableStreamBody){await(0,se.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const n=new URL(this.url);if(n.host.split(".")[1]==="blob"){const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}else if((0,ie.isIpEndpointStyle)(n)){const o=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=o[2];t=o[4]}else{const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return oe.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async n=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,ie.assertResponse)(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,ie.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n((0,ie.appendToURLQuery)(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return oe.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,ie.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return oe.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,ie.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return oe.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,ie.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return oe.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,ie.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,ie.assertResponse)(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:(0,ie.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:ne.ETagAny};return oe.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const n=(0,ie.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...n,_response:n._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return oe.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,ie.assertResponse)(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("AppendBlobClient-appendBlock",n,(async o=>(0,ie.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async appendBlockFromURL(e,t,n,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",o,(async i=>(0,ie.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:o.abortSignal,sourceRange:(0,K.rangeToString)({offset:t,count:n}),sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,appendPositionAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,ie.httpAuthorizationToString)(o.sourceAuthorization),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return oe.tracingClient.withSpan("BlockBlobClient-query",t,(async n=>{const o=(0,ie.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,ie.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,ie.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return new y.BlobQueryResponse(o,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-upload",n,(async o=>(0,ie.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:(0,M.toAccessTier)(n.tier),blobTagsString:(0,ie.toBlobTagsString)(n.tags),tracingOptions:o.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async n=>(0,ie.assertResponse)(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:(0,ie.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async stageBlock(e,t,n,o={}){(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-stageBlock",o,(async i=>(0,ie.assertResponse)(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,requestOptions:{onUploadProgress:o.onProgress},transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async stageBlockFromURL(e,t,n=0,o,i={}){(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",i,(async d=>(0,ie.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!o?undefined:(0,K.rangeToString)({offset:n,count:o}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:(0,ie.httpAuthorizationToString)(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async n=>(0,ie.assertResponse)(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async getBlockList(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async n=>{const o=(0,ie.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));if(!o.committedBlocks){o.committedBlocks=[]}if(!o.uncommittedBlocks){o.uncommittedBlocks=[]}return o}))}async uploadData(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let n;if(e instanceof Buffer){n=e}else if(e instanceof ArrayBuffer){n=Buffer.from(e)}else{e=e;n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.byteLength,t)}else{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}}))}async uploadBrowserData(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}))}async uploadSeekableInternal(e,t,n={}){let o=n.blockSize??0;if(o<0||o>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const i=n.maxSingleShotSize??ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(i<0||i>ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(o===0){if(t>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>i){o=Math.ceil(t/ne.BLOCK_BLOB_MAX_BLOCKS);if(o{if(t<=i){return(0,ie.assertResponse)(await this.upload(e(0,t),t,d))}const f=Math.floor((t-1)/o)+1;if(f>ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${ne.BLOCK_BLOB_MAX_BLOCKS}`)}const y=[];const v=(0,p.randomUUID)();let D=0;const M=new te.Batch(n.concurrency);for(let i=0;i{const p=(0,ie.generateBlockID)(v,i);const M=o*i;const U=i===f-1?t:M+o;const V=U-M;y.push(p);await this.stageBlock(p,e(M,V),V,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:d.tracingOptions});D+=V;if(n.onProgress){n.onProgress({loadedBytes:D})}}))}await M.do();return this.commitBlockList(y,d)}))}async uploadFile(e,t={}){return oe.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async n=>{const o=(await(0,se.fsStat)(e)).size;return this.uploadSeekableInternal(((t,n)=>()=>(0,se.fsCreateReadStream)(e,{autoClose:true,end:n?t+n-1:Infinity,start:t})),o,{...t,tracingOptions:n.tracingOptions})}))}async uploadStream(e,t=ne.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,n=5,o={}){if(!o.blobHTTPHeaders){o.blobHTTPHeaders={}}if(!o.conditions){o.conditions={}}return oe.tracingClient.withSpan("BlockBlobClient-uploadStream",o,(async i=>{let d=0;const f=(0,p.randomUUID)();let y=0;const v=[];const D=new re.BufferScheduler(e,t,n,(async(e,t)=>{const n=(0,ie.generateBlockID)(f,d);v.push(n);d++;await this.stageBlock(n,e,t,{customerProvidedKey:o.customerProvidedKey,conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions});y+=t;if(o.onProgress){o.onProgress({loadedBytes:y})}}),Math.ceil(n/4*3));await D.do();return(0,ie.assertResponse)(await this.commitBlockList(v,{...o,tracingOptions:i.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,i.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const i=t;const M=n;const U=(0,ie.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,ie.appendToURLPath)((0,ie.appendToURLPath)(U.url,encodeURIComponent(i)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,ie.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("PageBlobClient-create",t,(async n=>(0,ie.assertResponse)(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,ie.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(e,t={}){return oe.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async n=>{try{const o={ifNoneMatch:ne.ETagAny};const i=(0,ie.assertResponse)(await this.create(e,{...t,conditions:o,tracingOptions:n.tracingOptions}));return{succeeded:true,...i,_response:i._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,n,o={}){o.conditions=o.conditions||{};(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("PageBlobClient-uploadPages",o,(async i=>(0,ie.assertResponse)(await this.pageBlobContext.uploadPages(n,e,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onUploadProgress:o.onProgress},range:(0,K.rangeToString)({offset:t,count:n}),sequenceNumberAccessConditions:o.conditions,transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async uploadPagesFromURL(e,t,n,o,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return oe.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",i,(async d=>(0,ie.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,K.rangeToString)({offset:t,count:o}),0,(0,K.rangeToString)({offset:n,count:o}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:(0,ie.httpAuthorizationToString)(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,n={}){n.conditions=n.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-clearPages",n,(async o=>(0,ie.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async getPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-getPageRanges",n,(async o=>{const i=(0,ie.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,U.rangeResponseFromModel)(i)}))}async listPageRangesSegment(e=0,t,n,o={}){return oe.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",o,(async i=>(0,ie.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),marker:n,maxPageSize:o.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,n,o={}){let i;if(!!n||n===undefined){do{i=await this.listPageRangesSegment(e,t,n,o);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeItems(e=0,t,n={}){let o;for await(const i of this.listPageRangeItemSegments(e,t,o,n)){yield*(0,ie.ExtractPageRangeInfoItems)(i)}}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};const o=this.listPageRangeItems(e,t,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeItemSegments(e,t,o.continuationToken,{maxPageSize:o.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",o,(async i=>{const d=(0,ie.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,n,o,i={}){return oe.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",i,(async d=>(0,ie.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),marker:o,maxPageSize:i?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,n,o,i){let d;if(!!o||o===undefined){do{d=await this.listPageRangesDiffSegment(e,t,n,o,i);o=d.continuationToken;yield await d}while(o)}}async*listPageRangeDiffItems(e,t,n,o){let i;for await(const d of this.listPageRangeDiffItemSegments(e,t,n,i,o)){yield*(0,ie.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};const i=this.listPageRangeDiffItems(e,t,n,{...o});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...o})}}async getPageRangesDiffForManagedDisks(e,t,n,o={}){o.conditions=o.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",o,(async i=>{const d=(0,ie.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevSnapshotUrl:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-resize",t,(async n=>(0,ie.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async updateSequenceNumber(e,t,n={}){n.conditions=n.conditions||{};return oe.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",n,(async o=>(0,ie.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:o.tracingOptions}))))}async startCopyIncremental(e,t={}){return oe.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async n=>(0,ie.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const o=n(20778);const i=n(87779);const d=n(50417);const p=n(35345);const f=n(68999);const y=n(25984);const v=n(73542);const D=n(53952);const M=n(47764);const U=n(656);const V=n(23276);const j=n(90372);const K=n(12094);class ContainerClient extends v.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,n){let v;let D;n=n||{};if((0,y.isPipelineLike)(t)){D=e;v=t}else if(i.isNodeLike&&t instanceof f.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,d.isTokenCredential)(t)){D=e;v=(0,y.newPipeline)(t,n)}else if(!t&&typeof t!=="string"){D=e;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else if(t&&typeof t==="string"){const d=t;const U=(0,M.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(i.isNodeLike){const e=new f.StorageSharedKeyCredential(U.accountName,U.accountKey);D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d));if(!n.proxyOptions){n.proxyOptions=(0,o.getDefaultProxySettings)(U.proxyUri)}v=(0,y.newPipeline)(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d))+"?"+U.accountSas;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(D,v);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return D.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,M.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return D.tracingClient.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return D.tracingClient.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new j.BlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new j.AppendBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new j.BlockBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new j.PageBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,M.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return D.tracingClient.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return D.tracingClient.withSpan("ContainerClient-setMetadata",t,(async n=>(0,M.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const n=(0,M.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const o={_response:n._response,blobPublicAccess:n.blobPublicAccess,date:n.date,etag:n.etag,errorCode:n.errorCode,lastModified:n.lastModified,requestId:n.requestId,clientRequestId:n.clientRequestId,signedIdentifiers:[],version:n.version};for(const e of n){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}o.signedIdentifiers.push({accessPolicy:t,id:e.id})}return o}))}async setAccessPolicy(e,t,n={}){n.conditions=n.conditions||{};return D.tracingClient.withSpan("ContainerClient-setAccessPolicy",n,(async o=>{const i=[];for(const e of t||[]){i.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,M.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,M.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,M.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:n.abortSignal,access:e,containerAcl:i,leaseAccessConditions:n.conditions,modifiedAccessConditions:n.conditions,tracingOptions:o.tracingOptions}))}))}getBlobLeaseClient(e){return new V.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,n,o={}){return D.tracingClient.withSpan("ContainerClient-uploadBlockBlob",o,(async o=>{const i=this.getBlockBlobClient(e);const d=await i.upload(t,n,o);return{blockBlobClient:i,response:d}}))}async deleteBlob(e,t={}){return D.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async n=>{let o=this.getBlobClient(e);if(t.versionId){o=o.withVersion(t.versionId)}return o.delete(n)}))}async listBlobFlatSegment(e,t={}){return D.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async n=>{const o=(0,M.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:n.tracingOptions}));const i={...o,_response:{...o._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobFlat)(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return i}))}async listBlobHierarchySegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",n,(async o=>{const i=(0,M.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...n,tracingOptions:o.tracingOptions}));const d={...i,_response:{...i._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobHierarchy)(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:i.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listBlobFlatSegment(e,t);e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async*listHierarchySegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.listBlobHierarchySegment(e,t,n);t=o.continuationToken;yield await o}while(t)}}async*listItemsByHierarchy(e,t={}){let n;for await(const o of this.listHierarchySegments(e,n,t)){const e=o.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const n=[];if(t.includeCopy){n.push("copy")}if(t.includeDeleted){n.push("deleted")}if(t.includeMetadata){n.push("metadata")}if(t.includeSnapshots){n.push("snapshots")}if(t.includeVersions){n.push("versions")}if(t.includeUncommitedBlobs){n.push("uncommittedblobs")}if(t.includeTags){n.push("tags")}if(t.includeDeletedWithVersions){n.push("deletedwithversions")}if(t.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(t.includeLegalHold){n.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const o={...t,...n.length>0?{include:n}:{}};const i=this.listItemsByHierarchy(e,o);return{async next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...o})}}async findBlobsByTagsSegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",n,(async o=>{const i=(0,M.assertResponse)(await this.containerContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const d={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,M.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async getAccountInfo(e={}){return D.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if((0,M.isIpEndpointStyle)(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,M.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();n((0,M.appendToURLQuery)(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new K.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const n=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}},25984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const o=n(61584);const i=n(20778);const d=n(60160);const p=n(78756);const f=n(50417);const y=n(46370);const v=n(98335);const D=n(68999);const M=n(35345);const U=n(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return U.StorageOAuthScopes}});const V=n(51382);const j=n(490);const K=n(31160);const ee=n(97999);const te=n(31821);const re=n(99359);function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new M.AnonymousCredential}const n=new Pipeline([],t);n._credential=e;return n}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const n=e.factories.filter((e=>!t.some((t=>t(e)))));if(n.length){const e=n.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,o.createRequestPolicyFactoryPolicy)(n),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...n}=e.options;let v=e._coreHttpClient;if(!v){v=t?(0,o.convertHttpClient)(t):(0,V.getCachedDefaultHttpClient)();e._coreHttpClient=v}let M=e._corePipeline;if(!M){const t=`azsdk-js-azure-storage-blob/${U.SDK_VERSION}`;const o=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;M=(0,d.createClientPipeline)({...n,loggingOptions:{additionalAllowedHeaderNames:U.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:U.StorageBlobLoggingAllowedQueryParameters,logger:y.logger.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:p.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:p.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});M.removePolicy({phase:"Retry"});M.removePolicy({name:i.decompressResponsePolicyName});M.addPolicy((0,re.storageCorrectContentLengthPolicy)());M.addPolicy((0,K.storageRetryPolicy)(n.retryOptions),{phase:"Retry"});M.addPolicy((0,j.storageBrowserPolicy)());const v=processDownlevelPipeline(e);if(v){M.addPolicy(v.wrappedPolicies,v.afterRetry?{afterPhase:"Retry"}:undefined)}const V=getCredentialFromPipeline(e);if((0,f.isTokenCredential)(V)){M.addPolicy((0,i.bearerTokenAuthenticationPolicy)({credential:V,scopes:n.audience??U.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(V instanceof D.StorageSharedKeyCredential){M.addPolicy((0,ee.storageSharedKeyCredentialPolicy)({accountName:V.accountName,accountKey:V.accountKey}),{phase:"Sign"})}e._corePipeline=M}return{...n,allowInsecureConnection:true,httpClient:v,pipeline:M}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new M.AnonymousCredential;for(const n of e.factories){if((0,f.isTokenCredential)(n.credential)){t=n.credential}else if(isStorageSharedKeyCredential(n)){return n}}return t}function isStorageSharedKeyCredential(e){if(e instanceof D.StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof M.AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return(0,f.isTokenCredential)(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof te.StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof v.StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const n={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const o={log(e,t){},shouldLog(e){return false}};const i=e.create(n,o);const d=i.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}},31821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const o=n(78654);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return o.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new o.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},73542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const o=n(53789);const i=n(25984);const d=n(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new o.StorageContextClient(this.url,(0,i.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,i.getCredentialFromPipeline)(t);const n=this.storageClientContext;n.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const o=n(30247);class StorageContextClient extends o.StorageClient{async sendOperationRequest(e,t){const n={...t};if(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}"){n.path=""}return super.sendOperationRequest(e,n)}}t.StorageContextClient=StorageContextClient},98335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const o=n(57996);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return o.StorageRetryPolicy}});const i=n(16308);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return i.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new o.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},35345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const o=n(13501);const i=n(52596);class AnonymousCredential extends i.Credential{create(e,t){return new o.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},52596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},68999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const o=n(77598);const i=n(45511);const d=n(52596);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new i.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,o.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},10992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const o=n(77598);class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,o.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},30247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const o=n(61860);o.__exportStar(n(12362),t);var i=n(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return i.StorageClient}});o.__exportStar(n(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}));var o;(function(e){e["Backup"]="backup"})(o||(t.KnownFileShareTokenIntent=o={}));var i;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(i||(t.KnownBlobExpiryOptions=i={}));var d;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};t.Logging={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.RetentionPolicy={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};t.Metrics={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.CorsRule={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};t.StaticWebsite={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};t.StorageError={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};t.ListContainersSegmentResponse={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.ContainerItem={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};t.ContainerProperties={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};t.KeyInfo={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};t.UserDelegationKey={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.FilterBlobSegment={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.FilterBlobItem={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};t.BlobTags={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};t.BlobTag={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.SignedIdentifier={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};t.AccessPolicy={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};t.ListBlobsFlatSegmentResponse={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobFlatListSegment={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobItemInternal={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};t.BlobName={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};t.BlobPropertiesInternal={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};t.ListBlobsHierarchySegmentResponse={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobHierarchyListSegment={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};t.BlockList={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};t.Block={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};t.PageList={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.PageRange={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.ClearRange={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.QueryRequest={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};t.DelimitedTextConfiguration={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};t.ArrowField={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};t.ServiceSetPropertiesHeaders={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLExceptionHeaders={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLHeaders={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLExceptionHeaders={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLHeaders={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesHeaders={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobSealHeaders={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockHeaders={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListHeaders={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.fileRequestIntent=t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=void 0;const o=n(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:o.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2025-07-05",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:o.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:o.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:o.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:o.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},y)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},D)}seal(e){return this.client.sendOperationRequest({options:e},M)}}t.AppendBlobImpl=AppendBlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.blobTagsString,p.legalHold1,p.blobType1],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.maxSize,p.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.transactionalContentMD5,p.sourceUrl,p.sourceContentCrc64,p.maxSize,p.appendPosition,p.sourceRange1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp23],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.appendPosition],isXML:true,serializer:f}},57559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}undelete(e){return this.client.sendOperationRequest({options:e},M)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},V)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},j)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},ee)}setMetadata(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},oe)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},ie)}breakLease(e){return this.client.sendOperationRequest({options:e},se)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ae)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Ae)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ce)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},le)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ue)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},de)}query(e){return this.client.sendOperationRequest({options:e},ge)}getTags(e){return this.client.sendOperationRequest({options:e},pe)}setTags(e){return this.client.sendOperationRequest({options:e},me)}}t.BlobImpl=BlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.rangeGetContentMD5,p.rangeGetContentCRC64,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.blobDeleteType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.deleteSnapshots],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp11],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.expiryOptions,p.expiresOn],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifUnmodifiedSince,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp13],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.legalHold],isXML:true,serializer:f};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const oe={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ie={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const se={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp14],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const Ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.tier,p.rehydratePriority,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sealBlob,p.legalHold1],isXML:true,serializer:f};const ce={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.copySource,p.blobTagsString,p.legalHold1,p.xMsRequiresSync,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent],isXML:true,serializer:f};const le={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp15,p.copyId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.copyActionAbortConstant],isXML:true,serializer:f};const ue={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp16],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags,p.rehydratePriority,p.tier1],isXML:true,serializer:f};const de={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ge={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:p.queryRequest,queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp17],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const pe={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f};const me={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:p.tags,queryParameters:[p.timeoutInSeconds,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifTags,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f}},95440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},y)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},v)}stageBlock(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:o},D)}stageBlockFromURL(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:o},M)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},V)}}t.BlockBlobImpl=BlockBlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent,p.transactionalContentMD5,p.blobType2,p.copySourceBlobProperties],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.sourceUrl,p.sourceContentCrc64,p.sourceRange1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:p.blocks,queryParameters:[p.timeoutInSeconds,p.comp25],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp25,p.listType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f}},14509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}setMetadata(e){return this.client.sendOperationRequest({options:e},M)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},V)}restore(e){return this.client.sendOperationRequest({options:e},j)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},K)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},ee)}filterBlobs(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},oe)}breakLease(e){return this.client.sendOperationRequest({options:e},ie)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},se)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ae)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Ae)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ce)}}t.ContainerImpl=ContainerImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.access,p.defaultEncryptionScope,p.preventEncryptionScopeOverride],isXML:true,serializer:f};const v={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const D={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,serializer:f};const M={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince],isXML:true,serializer:f};const U={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const V={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:p.containerAcl,queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.access,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const j={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.deletedContainerName,p.deletedContainerVersion],isXML:true,serializer:f};const K={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp9],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.sourceContainerName,p.sourceLeaseId],isXML:true,serializer:f};const ee={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4,p.restype2],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const re={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId],isXML:true,serializer:f};const ne={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1],isXML:true,serializer:f};const oe={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2],isXML:true,serializer:f};const ie={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod],isXML:true,serializer:f};const se={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1],isXML:true,serializer:f};const ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const Ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1,p.delimiter],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ce={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},37878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(61860);o.__exportStar(n(44181),t);o.__exportStar(n(14509),t);o.__exportStar(n(57559),t);o.__exportStar(n(69156),t);o.__exportStar(n(40535),t);o.__exportStar(n(95440),t)},69156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},y)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},D)}uploadPagesFromURL(e,t,n,o,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:o,options:i},M)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},V)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},j)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},K)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ee)}}t.PageBlobImpl=PageBlobImpl;const f=i.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.blobType,p.blobContentLength,p.blobSequenceNumber],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.pageWrite1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.sourceUrl,p.sourceRange,p.sourceContentCrc64,p.range1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20,p.prevsnapshot],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags,p.prevSnapshotUrl],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.blobContentLength],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobSequenceNumber,p.sequenceNumberAction],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp21],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.copySource],isXML:true,serializer:f}},44181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const o=n(61860);const i=o.__importStar(n(60160));const d=o.__importStar(n(84424));const p=o.__importStar(n(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}getStatistics(e){return this.client.sendOperationRequest({options:e},D)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},M)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},V)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},j)}filterBlobs(e){return this.client.sendOperationRequest({options:e},K)}}t.ServiceImpl=ServiceImpl;const f=i.createSerializer(d,true);const y={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:p.blobServiceProperties,queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const v={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const D={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[p.restype,p.timeoutInSeconds,p.comp1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const M={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.include],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:p.keyInfo,queryParameters:[p.restype,p.timeoutInSeconds,p.comp3],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const j={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const K={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(61860);o.__exportStar(n(26865),t);o.__exportStar(n(15337),t);o.__exportStar(n(68355),t);o.__exportStar(n(14400),t);o.__exportStar(n(56635),t);o.__exportStar(n(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const o=n(61860);const i=o.__importStar(n(61584));const d=n(37878);class StorageClient extends i.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const n={requestContentType:"application/json; charset=utf-8"};const o=`azsdk-js-azure-storage-blob/12.28.0`;const i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;const p={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??"{url}"};super(p);this.url=e;this.version=t.version||"2025-07-05";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}))},71400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.BaseRequestPolicy=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const o=n(61860);const i=n(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return i.RestError}});o.__exportStar(n(96341),t);o.__exportStar(n(90372),t);o.__exportStar(n(81884),t);o.__exportStar(n(23276),t);o.__exportStar(n(6358),t);o.__exportStar(n(91267),t);o.__exportStar(n(46940),t);var d=n(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});o.__exportStar(n(95561),t);o.__exportStar(n(12094),t);o.__exportStar(n(48175),t);o.__exportStar(n(2232),t);var p=n(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return p.generateBlobSASQueryParameters}});o.__exportStar(n(31821),t);o.__exportStar(n(51622),t);o.__exportStar(n(35345),t);o.__exportStar(n(52596),t);o.__exportStar(n(68999),t);var f=n(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return f.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return f.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return f.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return f.getBlobServiceAccountAudience}});var y=n(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return y.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return y.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return y.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return y.StorageOAuthScopes}});o.__exportStar(n(98335),t);var v=n(70336);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return v.BaseRequestPolicy}});o.__exportStar(n(13501),t);o.__exportStar(n(63064),t);o.__exportStar(n(98335),t);o.__exportStar(n(45511),t);o.__exportStar(n(26823),t);o.__exportStar(n(83627),t);var D=n(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return D.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,n={}){const o=await e.read(t,{abortSignal:n.abortSignal});if(o.length!==t){throw new Error("Hit stream end.")}return o}static async readByte(e,t={}){const n=await AvroParser.readFixedBytes(e,1,t);return n[0]}static async readZigZagLong(e,t={}){let n=0;let o=0;let i,d,p;do{i=await AvroParser.readByte(e,t);d=i&128;n|=(i&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return o}return n>>1^-(n&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const n=await AvroParser.readByte(e,t);if(n===1){return true}else if(n===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const n=await AvroParser.readFixedBytes(e,4,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat32(0,true)}static async readDouble(e,t={}){const n=await AvroParser.readFixedBytes(e,8,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat64(0,true)}static async readBytes(e,t={}){const n=await AvroParser.readLong(e,t);if(n<0){throw new Error("Bytes size was negative.")}return e.read(n,{abortSignal:t.abortSignal})}static async readString(e,t={}){const n=await AvroParser.readBytes(e,t);const o=new TextDecoder;return o.decode(n)}static async readMapPair(e,t,n={}){const o=await AvroParser.readString(e,n);const i=await t(e,n);return{key:o,value:i}}static async readMap(e,t,n={}){const readPairMethod=(e,n={})=>AvroParser.readMapPair(e,t,n);const o=await AvroParser.readArray(e,readPairMethod,n);const i={};for(const e of o){i[e.key]=e.value}return i}static async readArray(e,t,n={}){const o=[];for(let i=await AvroParser.readLong(e,n);i!==0;i=await AvroParser.readLong(e,n)){if(i<0){await AvroParser.readLong(e,n);i=-i}while(i--){const i=await t(e,n);o.push(i)}}return o}}t.AvroParser=AvroParser;var n;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(n||(n={}));var o;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(o||(o={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case o.NULL:case o.BOOLEAN:case o.INT:case o.LONG:case o.FLOAT:case o.DOUBLE:case o.BYTES:case o.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case n.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const o={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){o[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(o,e.name);case n.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case n.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case n.ARRAY:case n.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case o.NULL:return AvroParser.readNull();case o.BOOLEAN:return AvroParser.readBoolean(e,t);case o.INT:return AvroParser.readInt(e,t);case o.LONG:return AvroParser.readLong(e,t);case o.FLOAT:return AvroParser.readFloat(e,t);case o.DOUBLE:return AvroParser.readDouble(e,t);case o.BYTES:return AvroParser.readBytes(e,t);case o.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._symbols[n]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._types[n].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const n={};n["$schema"]=this._name;for(const o in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,o)){n[o]=await this._fields[o].read(e,t)}}return n}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const o=n(41675);const i=n(24517);const d=n(20181);const p=new i.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends o.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw p}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const n=this._readable.read(e);if(n){this._position+=n.length;return this.toUint8Array(n)}else{return new Promise(((n,o)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();n(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();o()};const abortHandler=()=>{cleanUp();o(p)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const o=n(11326);const i=n(35652);const d=n(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,n,o){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=n||0;this._objectIndex=o||0;this._initialBlockOffset=n||0}async initialize(e={}){const t=await i.AvroParser.readFixedBytes(this._headerStream,o.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,o.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await i.AvroParser.readMap(this._headerStream,i.AvroParser.readString,{abortSignal:e.abortSignal});const n=this._metadata[o.AVRO_CODEC_KEY];if(!(n===undefined||n===null||n==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await i.AvroParser.readFixedBytes(this._headerStream,o.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const p=JSON.parse(this._metadata[o.AVRO_SCHEMA_KEY]);this._itemType=i.AvroType.fromSchema(p);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await i.AvroParser.readFixedBytes(this._dataStream,o.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await i.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var o=n(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return o.AvroReader}});var i=n(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return i.AvroReadable}});var d=n(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("storage-blob")},58560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const o=n(27323);var i;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(i||(t.BlockBlobTier=i={}));var d;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(d||(t.PremiumPageBlobTier=d={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=o.EncryptionAlgorithmAES25}}var p;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(p||(t.StorageBlobAudience=p={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},13501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const o=n(63064);class AnonymousCredentialPolicy extends o.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},63064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const o=n(70336);class CredentialPolicy extends o.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},70336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},78654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const o=n(70336);const i=n(87779);const d=n(27323);const p=n(47764);class StorageBrowserPolicy extends o.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(i.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const o=n(87779);const i=n(27323);const d=n(47764);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(o.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,i.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(i.HeaderConstants.COOKIE);e.headers.delete(i.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},99359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const o=n(27323);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},57996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const o=n(24517);const i=n(70336);const d=n(27323);const p=n(47764);const f=n(46370);const y=n(16308);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new o.AbortError("The operation was aborted.");class StorageRetryPolicy extends i.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const o=e.clone();const i=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!i){o.url=(0,p.setURLHost)(o.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){o.url=(0,p.setURLParameter)(o.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(o);if(!this.shouldRetry(i,n,y)){return y}t=t||!i&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(i,n,y,e)){throw e}}await this.delay(i,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,o){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(const e of i){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||o){const t=n?n.status:o?o.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let o=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:o=this.retryOptions.retryDelayInMs;break}}else{o=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${o}ms`);return(0,p.delay)(o,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},16308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},31160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const o=n(24517);const i=n(20778);const d=n(87779);const p=n(98335);const f=n(27323);const y=n(47764);const v=n(46370);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new o.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const o=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:i}){if(t>=o){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${o}, no further try.`);return false}if(i){for(const e of M){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||i){const t=n?.status??i?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let o=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:o=V;break}}else{o=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${o}ms`);return o}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const o=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!o||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:o;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,i.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new i.RestError("RetryPolicy failed without known error.")}}}},45511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const o=n(27323);const i=n(47764);const d=n(63064);const p=n(21902);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,o.HeaderConstants.DATE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,i.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const o=(0,i.getURLQueries)(e.url);const d={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();d[n]=o[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},97999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const o=n(77598);const i=n(27323);const d=n(47764);const p=n(21902);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,i.HeaderConstants.DATE),getHeaderValueToSign(t,i.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,o.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,o]of e.headers){if(n.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:o})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let o="";o+=`/${e.accountName}${n}`;const i=(0,d.getURLQueries)(t.url);const p={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();p[n]=i[t];e.push(n)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(p[t])}`}}return o}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},73145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const o=n(87779);const i=n(91754);class BlobBeginCopyFromUrlPoller extends i.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:n,intervalInMs:o=15e3,onProgress:i,resumeFrom:d,startCopyFromURLOptions:p}=e;let f;if(d){f=JSON.parse(d).state}const y=makeBlobBeginCopyFromURLPollOperation({...f,blobClient:t,copySource:n,startCopyFromURLOptions:p});super(y);if(typeof i==="function"){this.onProgress(i)}this.intervalInMs=o}delay(){return(0,o.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:n}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!n){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const p=async function update(e={}){const t=this.state;const{blobClient:n,copySource:o,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=true;const e=await n.startCopyFromURL(o,i);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const n=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:o,copyProgress:i}=n;const d=t.copyProgress;if(i){t.copyProgress=i}if(o==="pending"&&i!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(o==="success"){t.result=n;t.isCompleted=true}else if(o==="failed"){t.error=new Error(`Blob copy failed with reason: "${n.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const f=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:f,update:p}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${n}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const n of e){switch(n){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${n}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const n of e){switch(n){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${n}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const o=n(6358);const i=n(91267);const d=n(46940);const p=n(2977);const f=n(26823);const y=n(27323);const v=n(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const n=e.version?e.version:y.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const D=o.AccountSASPermissions.parse(e.permissions.toString());const M=d.AccountSASServices.parse(e.services).toString();const U=i.AccountSASResourceTypes.parse(e.resourceTypes).toString();let V;if(n>="2020-12-06"){V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n")}const j=t.computeHMACSHA256(V);return{sasQueryParameters:new f.SASQueryParameters(n,j,D.toString(),M,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:V}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${n}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const o=n(2232);const i=n(51622);const d=n(68999);const p=n(10992);const f=n(2977);const y=n(26823);const v=n(27323);const D=n(47764);function generateBlobSASQueryParameters(e,t,n){return generateBlobSASQueryParametersInternal(e,t,n).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,n){const o=e.version?e.version:v.SERVICE_VERSION;const i=t instanceof d.StorageSharedKeyCredential?t:undefined;let f;if(i===undefined&&n!==undefined){f=new p.UserDelegationKeyCredential(n,t)}if(i===undefined&&f===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(o>="2020-12-06"){if(i!==undefined){return generateBlobSASQueryParameters20201206(e,i)}else{if(o>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,f)}else{return generateBlobSASQueryParametersUDK20201206(e,f)}}}if(o>="2018-11-09"){if(i!==undefined){return generateBlobSASQueryParameters20181109(e,i)}else{if(o>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,f)}else{return generateBlobSASQueryParametersUDK20181109(e,f)}}}if(o>="2015-04-05"){if(i!==undefined){return generateBlobSASQueryParameters20150405(e,i)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";if(e.blobName){n="b"}let d;if(e.permissions){if(e.blobName){d=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const p=[d?d:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const v=t.computeHMACSHA256(p);return{sasQueryParameters:new y.SASQueryParameters(e.version,v,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:p}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:v}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:v}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:v}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=o.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=i.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,undefined,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function getCanonicalName(e,t,n){const o=[`/blob/${e}/${t}`];if(n){o.push(`/${n}`)}return o.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:v.SERVICE_VERSION;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${n}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const o=n(2977);const i=n(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,n,o,i,d,p,f,y,v,D,M,U,V,j,K,ee,te,re,ne){this.version=e;this.signature=t;if(n!==undefined&&typeof n!=="string"){this.permissions=n.permissions;this.services=n.services;this.resourceTypes=n.resourceTypes;this.protocol=n.protocol;this.startsOn=n.startsOn;this.expiresOn=n.expiresOn;this.ipRangeInner=n.ipRange;this.identifier=n.identifier;this.encryptionScope=n.encryptionScope;this.resource=n.resource;this.cacheControl=n.cacheControl;this.contentDisposition=n.contentDisposition;this.contentEncoding=n.contentEncoding;this.contentLanguage=n.contentLanguage;this.contentType=n.contentType;if(n.userDelegationKey){this.signedOid=n.userDelegationKey.signedObjectId;this.signedTenantId=n.userDelegationKey.signedTenantId;this.signedStartsOn=n.userDelegationKey.signedStartsOn;this.signedExpiresOn=n.userDelegationKey.signedExpiresOn;this.signedService=n.userDelegationKey.signedService;this.signedVersion=n.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId;this.correlationId=n.correlationId}}else{this.services=o;this.resourceTypes=i;this.expiresOn=f;this.permissions=n;this.protocol=d;this.startsOn=p;this.ipRangeInner=y;this.encryptionScope=ne;this.identifier=v;this.resource=D;this.cacheControl=M;this.contentDisposition=U;this.contentEncoding=V;this.contentLanguage=j;this.contentType=K;if(ee){this.signedOid=ee.signedObjectId;this.signedTenantId=ee.signedTenantId;this.signedStartsOn=ee.signedStartsOn;this.signedExpiresOn=ee.signedExpiresOn;this.signedService=ee.signedService;this.signedVersion=ee.signedVersion;this.preauthorizedAgentObjectId=te;this.correlationId=re}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const t=[];for(const n of e){switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?(0,i.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?(0,i.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?(0,o.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?(0,i.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?(0,i.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break}}return t.join("&")}tryAppendQueryParameter(e,t,n){if(!n){return}t=encodeURIComponent(t);n=encodeURIComponent(n);if(t.length>0&&n.length>0){e.push(`${t}=${n}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const o=n(24434);var i;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(i||(i={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=i.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new o.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=i.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const o=n(57075);const i=n(96147);class BlobQuickQueryStream extends o.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new i.AvroReader(new i.AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const n=t.$schema;if(typeof n!=="string"){throw Error("Missing schema in avro record.")}switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const n=t.name;if(typeof n!=="string"){throw Error("Invalid name in avro error record.")}const o=t.description;if(typeof o!=="string"){throw Error("Invalid description in avro error record.")}const i=t.position;if(typeof i!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:i,name:n,isFatal:e,description:o})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var n;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(n||(n={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===n.UNLOCKED){this.keys[e]=n.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=n.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===n.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}t.Mutex=Mutex},98684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const o=n(24517);const i=n(57075);class RetriableReadableStream extends i.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,o,i={}){super({highWaterMark:i.highWaterMark});this.getter=t;this.source=e;this.start=n;this.offset=n;this.end=n+o-1;this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0;this.onProgress=i.onProgress;this.options=i;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new o.AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}t.RetriableReadableStream=RetriableReadableStream},21902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const o=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const i=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,o,i];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.28.0";t.SERVICE_VERSION="2025-07-05";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];t.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const o=n(20623);const i=n(27323);t.tracingClient=(0,o.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:i.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const o=n(20778);const i=n(87779);const d=n(27323);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let d=Buffer.from("accountKey","base64");let p="";i=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){o=getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${p}`}if(!i){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:i,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let o=getValueInConnString(e,"AccountName");if(!o){o=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=o.search===""?"?":o.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){f.push(e)}}}if(d){f.push(`${i}=${d}`)}o.search=f.length?`?${f.join("&")}`:"";return o.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&ni){e=e.slice(0,i)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((o,i)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,o.createHttpHeaders)();for(const[n,o]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(o))}else{t.set(n,o)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(o)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.blobTagSet.push({key:n,value:o})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const n of e.blobTagSet){t[n.key]=n.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const n in e){const o=n.split("_");const i="or-";if(o[0].startsWith(i)){o[0]=o[0].substring(i.length)}const d={ruleId:o[1],replicationStatus:e[n]};const p=t.findIndex((e=>e.policyId===o[0]));if(p>-1){t[p].rules.push(d)}else{t.push({policyId:o[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let n=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)n=e.clearRange;let o=0;let i=0;while(o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const o=n(61860);const i=o.__importDefault(n(73024));const d=o.__importDefault(n(57975));const p=n(27323);async function streamToBuffer(e,t,n,o,i){let d=0;const f=o-n;return new Promise(((o,y)=>{const v=setTimeout((()=>y(new Error(`The operation cannot be completed in timeout.`))),p.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=f){clearTimeout(v);o();return}let p=e.read();if(!p){return}if(typeof p==="string"){p=Buffer.from(p,i)}const y=d+p.length>f?f-d:p.length;t.fill(p.slice(0,y),n+d,n+d+y);d+=y}));e.on("end",(()=>{clearTimeout(v);if(d{clearTimeout(v);y(e)}))}))}async function streamToBuffer2(e,t,n){let o=0;const i=t.length;return new Promise(((d,p)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,n)}if(o+d.length>i){p(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(d,o,o+d.length);o+=d.length}));e.on("end",(()=>{d(o)}));e.on("error",p)}))}async function streamToBuffer3(e,t){return new Promise(((n,o)=>{const i=[];e.on("data",(e=>{i.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{n(Buffer.concat(i))}));e.on("error",o)}))}async function readStreamToLocalFile(e,t){return new Promise(((n,o)=>{const d=i.default.createWriteStream(t);e.on("error",(e=>{o(e)}));d.on("error",(e=>{o(e)}));d.on("close",n);e.pipe(d)}))}t.fsStat=d.default.promisify(i.default.stat);t.fsCreateReadStream=i.default.createReadStream},24841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},24517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var o=n(24841);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}})},86381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const o=n(24434);const i=n(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new o.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,o,i,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(n<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`)}if(i<=0){throw new RangeError(`concurrency must be larger than 0, current is ${i}`)}this.bufferSize=t;this.maxBuffers=n;this.readable=e;this.outgoingHandler=o;this.concurrency=i;this.encoding=d}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new i.PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const o=n(57075);class BuffersStream extends o.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let o=0;for(const e of this.buffers){o+=e.byteLength}if(o=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(ne-n){const o=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,o));this.pushedBytesLength+=e-n;this.byteOffsetInCurrentBuffer=o;n=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===i){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;n+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const o=n(61860);const i=n(66093);const d=o.__importDefault(n(4573));const p=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e;this._size=0;const o=Math.ceil(e/p);for(let t=0;t0){e[0]=e[0].slice(d)}}getReadableStream(){return new i.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const o=n(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return o.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new o.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const o=n(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return o.StorageRetryPolicy}});const i=n(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return i.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new o.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const o=n(20778);let i;function getCachedDefaultHttpClient(){if(!i){i=(0,o.createDefaultHttpClient)()}return i}},32159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const o=n(63611);const i=n(450);class AnonymousCredential extends i.Credential{create(e,t){return new o.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const o=n(77598);const i=n(35369);const d=n(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new i.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,o.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},51382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const o=n(61860);o.__exportStar(n(86381),t);var i=n(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return i.getCachedDefaultHttpClient}});o.__exportStar(n(4399),t);o.__exportStar(n(32159),t);o.__exportStar(n(450),t);o.__exportStar(n(30849),t);o.__exportStar(n(77321),t);var d=n(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});o.__exportStar(n(63611),t);o.__exportStar(n(74238),t);o.__exportStar(n(22312),t);o.__exportStar(n(83100),t);o.__exportStar(n(92505),t);o.__exportStar(n(38622),t);o.__exportStar(n(27734),t);o.__exportStar(n(78178),t);o.__exportStar(n(35369),t);o.__exportStar(n(53233),t);o.__exportStar(n(77321),t)},32780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(26515);t.logger=(0,o.createClientLogger)("storage-common")},63611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const o=n(74238);class AnonymousCredentialPolicy extends o.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const o=n(40590);class CredentialPolicy extends o.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const o=n(40590);const i=n(87779);const d=n(77925);const p=n(58218);class StorageBrowserPolicy extends o.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(i.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const o=n(87779);const i=n(77925);const d=n(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(o.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,i.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(i.HeaderConstants.COOKIE);e.headers.delete(i.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const o=n(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},27734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const o=n(18251);const i=n(40590);const d=n(77925);const p=n(58218);const f=n(32780);const y=n(38622);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new o.AbortError("The operation was aborted.");class StorageRetryPolicy extends i.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const o=e.clone();const i=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!i){o.url=(0,p.setURLHost)(o.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){o.url=(0,p.setURLParameter)(o.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(o);if(!this.shouldRetry(i,n,y)){return y}t=t||!i&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(i,n,y,e)){throw e}}await this.delay(i,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,o){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(const e of i){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||o){const t=n?n.status:o?o.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let o=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:o=this.retryOptions.retryDelayInMs;break}}else{o=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${o}ms`);return(0,p.delay)(o,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},78178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const o=n(18251);const i=n(20778);const d=n(87779);const p=n(77321);const f=n(77925);const y=n(58218);const v=n(32780);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new o.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const o=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:i}){if(t>=o){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${o}, no further try.`);return false}if(i){for(const e of M){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||i){const t=n?.status??i?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let o=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:o=V;break}}else{o=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${o}ms`);return o}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const o=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!o||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:o;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,i.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new i.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const o=n(77925);const i=n(58218);const d=n(74238);const p=n(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,o.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,o.HeaderConstants.DATE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,o.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,o.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,i.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const o=(0,i.getURLQueries)(e.url);const d={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();d[n]=o[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const o=n(77598);const i=n(77925);const d=n(58218);const p=n(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,i.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,i.HeaderConstants.DATE),getHeaderValueToSign(t,i.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,i.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,i.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,o.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,o]of e.headers){if(n.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:o})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let o="";o+=`/${e.accountName}${n}`;const i=(0,d.getURLQueries)(t.url);const p={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();p[n]=i[t];e.push(n)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(p[t])}`}}return o}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const o=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const i=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,o,i];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const o=n(20778);const i=n(87779);const d=n(77925);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let d=Buffer.from("accountKey","base64");let p="";i=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){o=getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${p}`}if(!i){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:i,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let o=getValueInConnString(e,"AccountName");if(!o){o=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=o.search===""?"?":o.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){f.push(e)}}}if(d){f.push(`${i}=${d}`)}o.search=f.length?`?${f.join("&")}`:"";return o.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&ni){e=e.slice(0,i)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((o,i)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,o.createHttpHeaders)();for(const[n,o]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(o))}else{t.set(n,o)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},18251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var o=n(6675);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}})},27182:(e,t,n)=>{"use strict";const o=n(57075).Writable;const i=n(57975).inherits;const d=n(84136);const p=n(50612);const f=n(62271);const y=45;const v=Buffer.from("-");const D=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}o.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new f(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}i(Dicer,o);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{o.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,n){if(!this._hparser&&!this._bparser){return n()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new p(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{"use strict";const o=n(78474).EventEmitter;const i=n(57975).inherits;const d=n(22393);const p=n(84136);const f=Buffer.from("\r\n\r\n");const y=/\r\n/g;const v=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){o.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=d(e,"maxHeaderPairs",2e3);this.maxHeaderSize=d(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new p(f);this.ss.on("info",(function(e,n,o,i){if(n&&!t.maxed){if(t.nread+i-o>=t.maxHeaderSize){i=t.maxHeaderSize-t.nread+o;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=i-o}t.buffer+=n.toString("binary",o,i)}if(e){t._finish()}}))}i(HeaderParser,o);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(y);const t=e.length;let n,o;for(var i=0;i{"use strict";const o=n(57975).inherits;const i=n(57075).Readable;function PartStream(e){i.call(this,e)}o(PartStream,i);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,n)=>{"use strict";const o=n(78474).EventEmitter;const i=n(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var n=0;n=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const n=this._lookbehind_size+d;if(n>0){this.emit("info",false,this._lookbehind,0,n)}this._lookbehind.copy(this._lookbehind,0,n,this._lookbehind_size-n);this._lookbehind_size-=n;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}d+=(d>=0)*this._bufpos;if(e.indexOf(n,d)!==-1){d=e.indexOf(n,d);++this.matches;if(d>0){this.emit("info",true,e,this._bufpos,d)}else{this.emit("info",true)}return this._bufpos=d+o}else{d=t-o}while(d0){this.emit("info",false,e,this._bufpos,d{"use strict";const o=n(57075).Writable;const{inherits:i}=n(57975);const d=n(27182);const p=n(41192);const f=n(80855);const y=n(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...n}=e;this.opts={autoDestroy:false,...n};o.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}i(Busboy,o);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}o.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=y(e["content-type"]);const n={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(p.detect.test(t[0])){return new p(this,n)}if(f.detect.test(t[0])){return new f(this,n)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,n){this._parser.write(e,n)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=d},41192:(e,t,n)=>{"use strict";const{Readable:o}=n(57075);const{inherits:i}=n(57975);const d=n(27182);const p=n(8929);const f=n(72747);const y=n(20692);const v=n(22393);const D=/^boundary$/i;const M=/^form-data$/i;const U=/^charset$/i;const V=/^filename$/i;const j=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let n;let o;const i=this;let K;const ee=t.limits;const te=t.isPartAFile||((e,t,n)=>t==="application/octet-stream"||n!==undefined);const re=t.parsedConType||[];const ne=t.defCharset||"utf8";const oe=t.preservePath;const ie={highWaterMark:t.fileHwm};for(n=0,o=re.length;nle){i.parser.removeListener("part",onPart);i.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(fe){const e=fe;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(d){let v;let D;let K;let ee;let re;let le;let ue=0;if(d["content-type"]){K=p(d["content-type"][0]);if(K[0]){v=K[0].toLowerCase();for(n=0,o=K.length;nae){const o=ae-ue+e.length;if(o>0){n.push(e.slice(0,o))}n.truncated=true;n.bytesRead=ae;t.removeAllListeners("data");n.emit("limit");return}else if(!n.push(e)){i._pause=true}n.bytesRead=ue};ye=function(){he=undefined;n.push(null)}}else{if(pe===ce){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++pe;++me;let n="";let o=false;fe=t;de=function(e){if((ue+=e.length)>se){const i=se-(ue-e.length);n+=e.toString("binary",0,i);o=true;t.removeAllListeners("data")}else{n+=e.toString("binary")}};ye=function(){fe=undefined;if(n.length){n=f(n,"binary",ee)}e.emit("field",D,n,false,o,re,v);--me;checkFinished()}}t._readableState.sync=false;t.on("data",de);t.on("end",ye)})).on("error",(function(e){if(he){he.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){ye=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const n=this.parser.write(e);if(n&&!this._pause){t()}else{this._needDrain=!n;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){o.call(this,e);this.bytesRead=0;this.truncated=false}i(FileStream,o);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,n)=>{"use strict";const o=n(11496);const i=n(72747);const d=n(22393);const p=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const n=t.limits;const i=t.parsedConType;this.boy=e;this.fieldSizeLimit=d(n,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=d(n,"fieldNameSize",100);this.fieldsLimit=d(n,"fields",Infinity);let f;for(var y=0,v=i.length;yp){this._key+=this.decoder.write(e.toString("binary",p,n))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();p=n+1}else if(o!==undefined){++this._fields;let n;const d=this._keyTrunc;if(o>p){n=this._key+=this.decoder.write(e.toString("binary",p,o))}else{n=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(n.length){this.boy.emit("field",i(n,"binary",this.charset),"",d,false)}p=o+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._key+=this.decoder.write(e.toString("binary",p,d))}p=d;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(pp){this._val+=this.decoder.write(e.toString("binary",p,o))}this.boy.emit("field",i(this._key,"binary",this.charset),i(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();p=o+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._val+=this.decoder.write(e.toString("binary",p,d))}p=d;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(p0){this.boy.emit("field",i(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",i(this._key,"binary",this.charset),i(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{"use strict";const t=/\+/g;const n=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,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,1,1,1,1,1,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];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let o="";let i=0;let d=0;const p=e.length;for(;id){o+=e.substring(d,i);d=i}this.buffer="";++d}}if(d{"use strict";e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){"use strict";const t=new TextDecoder("utf-8");const n=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return o.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return o.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return o.utf16le;case"base64":return o.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return o.other.bind(e)}}}const o={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(n.has(this.toString())){try{return n.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,n){if(e){return getDecoder(n)(e,t)}return e}e.exports=decodeText},22393:e=>{"use strict";e.exports=function getLimit(e,t,n){if(!e||e[t]===undefined||e[t]===null){return n}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,n)=>{"use strict";const o=n(72747);const i=/%[a-fA-F0-9][a-fA-F0-9]/g;const d={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return d[e]}const p=0;const f=1;const y=2;const v=3;function parseParams(e){const t=[];let n=p;let d="";let D=false;let M=false;let U=0;let V="";const j=e.length;for(var K=0;K{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},36227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isOAuth2TokenCredential=isOAuth2TokenCredential;t.isBearerTokenCredential=isBearerTokenCredential;t.isBasicCredential=isBasicCredential;t.isApiKeyCredential=isApiKeyCredential;function isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function isBearerTokenCredential(e){return"getBearerToken"in e}function isBasicCredential(e){return"username"in e&&"password"in e}function isApiKeyCredential(e){return"key"in e}},43097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71408:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiVersionPolicyName=void 0;t.apiVersionPolicy=apiVersionPolicy;t.apiVersionPolicyName="ApiVersionPolicy";function apiVersionPolicy(e){return{name:t.apiVersionPolicyName,sendRequest:(t,n)=>{const o=new URL(t.url);if(!o.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(o.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return n(t)}}}},88728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultPipeline=createDefaultPipeline;t.getCachedDefaultHttpsClient=getCachedDefaultHttpsClient;const o=n(69468);const i=n(91810);const d=n(71408);const p=n(36227);const f=n(42095);const y=n(15756);const v=n(89709);const D=n(20219);let M;function createDefaultPipeline(e={}){const t=(0,i.createPipelineFromOptions)(e);t.addPolicy((0,d.apiVersionPolicy)(e));const{credential:n,authSchemes:o,allowInsecureConnection:M}=e;if(n){if((0,p.isApiKeyCredential)(n)){t.addPolicy((0,f.apiKeyAuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}else if((0,p.isBasicCredential)(n)){t.addPolicy((0,y.basicAuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}else if((0,p.isBearerTokenCredential)(n)){t.addPolicy((0,v.bearerAuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}else if((0,p.isOAuth2TokenCredential)(n)){t.addPolicy((0,D.oauth2AuthenticationPolicy)({authSchemes:o,credential:n,allowInsecureConnection:M}))}}return t}function getCachedDefaultHttpsClient(){if(!M){M=(0,o.createDefaultHttpClient)()}return M}},86191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getClient=getClient;const o=n(88728);const i=n(16311);const d=n(37088);const p=n(85086);function getClient(e,t={}){var n,i,p;const f=(n=t.pipeline)!==null&&n!==void 0?n:(0,o.createDefaultPipeline)(t);if((i=t.additionalPolicies)===null||i===void 0?void 0:i.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;f.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:y,httpClient:v}=t;const D=(p=t.endpoint)!==null&&p!==void 0?p:e;const client=(e,...t)=>{const getUrl=n=>(0,d.buildRequestUrl)(D,e,t,Object.assign({allowInsecureConnection:y},n));return{get:(e={})=>buildOperation("GET",getUrl(e),f,e,y,v),post:(e={})=>buildOperation("POST",getUrl(e),f,e,y,v),put:(e={})=>buildOperation("PUT",getUrl(e),f,e,y,v),patch:(e={})=>buildOperation("PATCH",getUrl(e),f,e,y,v),delete:(e={})=>buildOperation("DELETE",getUrl(e),f,e,y,v),head:(e={})=>buildOperation("HEAD",getUrl(e),f,e,y,v),options:(e={})=>buildOperation("OPTIONS",getUrl(e),f,e,y,v),trace:(e={})=>buildOperation("TRACE",getUrl(e),f,e,y,v)}};return{path:client,pathUnchecked:client,pipeline:f}}function buildOperation(e,t,n,o,d,f){var y;d=(y=o.allowInsecureConnection)!==null&&y!==void 0?y:d;return{then:function(p,y){return(0,i.sendRequest)(e,t,n,Object.assign(Object.assign({},o),{allowInsecureConnection:d}),f).then(p,y)},async asBrowserStream(){if(p.isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return(0,i.sendRequest)(e,t,n,Object.assign(Object.assign({},o),{allowInsecureConnection:d,responseAsStream:true}),f)}},async asNodeStream(){if(p.isNodeLike){return(0,i.sendRequest)(e,t,n,Object.assign(Object.assign({},o),{allowInsecureConnection:d,responseAsStream:true}),f)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}},18240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildBodyPart=buildBodyPart;t.buildMultipartBody=buildMultipartBody;const o=n(9758);const i=n(4220);const d=n(82921);const p=n(48505);function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if((0,p.isBinaryBody)(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){var t;const n=getHeaderValue(e,"content-disposition");if(n){return n}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const o=(t=e.dispositionType)!==null&&t!==void 0?t:"form-data";let i=o;if(e.name){i+=`; name=${escapeDispositionField(e.name)}`}let d=undefined;if(e.filename){d=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){d=t}}if(d){i+=`; filename=${escapeDispositionField(d)}`}return i}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if((0,p.isBinaryBody)(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return(0,d.stringToUint8Array)(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return(0,d.stringToUint8Array)(JSON.stringify(e),"utf-8")}throw new o.RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){var t;const n=getPartContentType(e);const o=getContentDisposition(e);const d=(0,i.createHttpHeaders)((t=e.headers)!==null&&t!==void 0?t:{});if(n){d.set("content-type",n)}if(o){d.set("content-disposition",o)}const p=normalizeBody(e.body,n);return{headers:d,body:p}}function buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}},19635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.operationOptionsToRequestParameters=operationOptionsToRequestParameters;function operationOptionsToRequestParameters(e){var t,n,o,i,d,p;return{allowInsecureConnection:(t=e.requestOptions)===null||t===void 0?void 0:t.allowInsecureConnection,timeout:(n=e.requestOptions)===null||n===void 0?void 0:n.timeout,skipUrlEncoding:(o=e.requestOptions)===null||o===void 0?void 0:o.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:(i=e.requestOptions)===null||i===void 0?void 0:i.onUploadProgress,onDownloadProgress:(d=e.requestOptions)===null||d===void 0?void 0:d.onDownloadProgress,headers:Object.assign({},(p=e.requestOptions)===null||p===void 0?void 0:p.headers),onResponse:e.onResponse}}},97332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=createRestError;const o=n(9758);const i=n(4220);function createRestError(e,t){var n,i,d;const p=typeof e==="string"?t:e;const f=(i=(n=p.body)===null||n===void 0?void 0:n.error)!==null&&i!==void 0?i:p.body;const y=typeof e==="string"?e:(d=f===null||f===void 0?void 0:f.message)!==null&&d!==void 0?d:`Unexpected status code: ${p.status}`;return new o.RestError(y,{statusCode:statusCodeToNumber(p.status),code:f===null||f===void 0?void 0:f.code,request:p.request,response:toPipelineResponse(p)})}function toPipelineResponse(e){var t;return{headers:(0,i.createHttpHeaders)(e.headers),request:e.request,status:(t=statusCodeToNumber(e.status))!==null&&t!==void 0?t:-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}},16311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sendRequest=sendRequest;const o=n(9758);const i=n(4220);const d=n(72305);const p=n(88728);const f=n(48505);const y=n(18240);async function sendRequest(e,t,n,i={},d){var f;const y=d!==null&&d!==void 0?d:(0,p.getCachedDefaultHttpsClient)();const v=buildPipelineRequest(e,t,i);try{const e=await n.sendRequest(y,v);const t=e.headers.toJSON();const o=(f=e.readableStreamBody)!==null&&f!==void 0?f:e.browserStreamBody;const d=i.responseAsStream||o!==undefined?undefined:getResponseBody(e);const p=o!==null&&o!==void 0?o:d;if(i===null||i===void 0?void 0:i.onResponse){i.onResponse(Object.assign(Object.assign({},e),{request:v,rawHeaders:t,parsedBody:d}))}return{request:v,headers:t,status:`${e.status}`,body:p}}catch(e){if((0,o.isRestError)(e)&&e.response&&i.onResponse){const{response:t}=e;const n=t.headers.toJSON();i===null||i===void 0?void 0:i.onResponse(Object.assign(Object.assign({},t),{request:v,rawHeaders:n}),e)}throw e}}function getRequestContentType(e={}){var t,n,o;return(o=(t=e.contentType)!==null&&t!==void 0?t:(n=e.headers)===null||n===void 0?void 0:n["content-type"])!==null&&o!==void 0?o:getContentType(e.body)}function getContentType(e){if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){var o,p,f;const y=getRequestContentType(n);const{body:v,multipartBody:D}=getRequestBody(n.body,y);const M=v!==undefined||D!==undefined;const U=(0,i.createHttpHeaders)(Object.assign(Object.assign(Object.assign({},n.headers?n.headers:{}),{accept:(f=(o=n.accept)!==null&&o!==void 0?o:(p=n.headers)===null||p===void 0?void 0:p.accept)!==null&&f!==void 0?f:"application/json"}),M&&y&&{"content-type":y}));return(0,d.createPipelineRequest)({url:t,method:e,body:v,multipartBody:D,headers:U,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if((0,f.isReadableStream)(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:(0,y.buildMultipartBody)(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){var t,n;const o=(t=e.headers.get("content-type"))!==null&&t!==void 0?t:"";const i=o.split(";")[0];const d=(n=e.bodyAsText)!==null&&n!==void 0?n:"";if(i==="text/plain"){return String(d)}try{return d?JSON.parse(d):undefined}catch(t){if(i==="application/json"){throw createParseError(e,t)}return String(d)}}function createParseError(e,t){var n;const i=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const d=(n=t.code)!==null&&n!==void 0?n:o.RestError.PARSE_ERROR;return new o.RestError(i,{code:d,statusCode:e.status,request:e.request,response:e})}},37088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildRequestUrl=buildRequestUrl;t.buildBaseUrl=buildBaseUrl;t.replaceAll=replaceAll;function isQueryParameterWithOptions(e){const t=e.value;return t!==undefined&&t.toString!==undefined&&typeof t.toString==="function"}function buildRequestUrl(e,t,n,o={}){if(t.startsWith("https://")||t.startsWith("http://")){return t}e=buildBaseUrl(e,o);t=buildRoutePath(t,n,o);const i=appendQueryParams(`${e}/${t}`,o);const d=new URL(i);return d.toString().replace(/([^:]\/)\/+/g,"$1")}function getQueryParamValue(e,t,n,o){let i;if(n==="pipeDelimited"){i="|"}else if(n==="spaceDelimited"){i="%20"}else{i=","}let d;if(Array.isArray(o)){d=o}else if(typeof o==="object"&&o.toString===Object.prototype.toString){d=Object.entries(o).flat()}else{d=[o]}const p=d.map((n=>{if(n===null||n===undefined){return""}if(!n.toString||typeof n.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const o=n.toISOString!==undefined?n.toISOString():n.toString();return t?o:encodeURIComponent(o)})).join(i);return`${t?e:encodeURIComponent(e)}=${p}`}function appendQueryParams(e,t={}){var n,o,i,d;if(!t.queryParameters){return e}const p=new URL(e);const f=t.queryParameters;const y=[];for(const e of Object.keys(f)){const p=f[e];if(p===undefined||p===null){continue}const v=isQueryParameterWithOptions(p);const D=v?p.value:p;const M=v?(n=p.explode)!==null&&n!==void 0?n:false:false;const U=v&&p.style?p.style:"form";if(M){if(Array.isArray(D)){for(const n of D){y.push(getQueryParamValue(e,(o=t.skipUrlEncoding)!==null&&o!==void 0?o:false,U,n))}}else if(typeof D==="object"){for(const[e,n]of Object.entries(D)){y.push(getQueryParamValue(e,(i=t.skipUrlEncoding)!==null&&i!==void 0?i:false,U,n))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{y.push(getQueryParamValue(e,(d=t.skipUrlEncoding)!==null&&d!==void 0?d:false,U,D))}}if(p.search!==""){p.search+="&"}p.search+=y.join("&");return p.toString()}function buildBaseUrl(e,t){var n;if(!t.pathParameters){return e}const o=t.pathParameters;for(const[i,d]of Object.entries(o)){if(d===undefined||d===null){throw new Error(`Path parameters ${i} must not be undefined or null`)}if(!d.toString||typeof d.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${i} can't`)}let o=d.toISOString!==undefined?d.toISOString():String(d);if(!t.skipUrlEncoding){o=encodeURIComponent(d)}e=(n=replaceAll(e,`{${i}}`,o))!==null&&n!==void 0?n:""}return e}function buildRoutePath(e,t,n={}){var o;for(const i of t){const t=typeof i==="object"&&((o=i.allowReserved)!==null&&o!==void 0?o:false);let d=typeof i==="object"?i.value:i;if(!n.skipUrlEncoding&&!t){d=encodeURIComponent(d)}e=e.replace(/\{[\w-]+\}/,String(d))}return e}function replaceAll(e,t,n){return!e||!t?e:e.split(t).join(n||"")}},31255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="0.3.0";t.DEFAULT_RETRY_POLICY_COUNT=3},91810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const o=n(47129);const i=n(22338);const d=n(92187);const p=n(91691);const f=n(35035);const y=n(32462);const v=n(14197);const D=n(85086);const M=n(80067);const U=n(85366);const V=n(96690);const j=n(27427);function createPipelineFromOptions(e){const t=(0,i.createEmptyPipeline)();if(D.isNodeLike){if(e.agent){t.addPolicy((0,U.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,V.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,M.proxyPolicy)(e.proxyOptions));t.addPolicy((0,f.decompressResponsePolicy)())}t.addPolicy((0,v.formDataPolicy)(),{beforePolicies:[j.multipartPolicyName]});t.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,j.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,y.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});if(D.isNodeLike){t.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,o.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}},69468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const o=n(21167);function createDefaultHttpClient(){return(0,o.createNodeHttpClient)()}},4220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){var t;return(t=this._headersMap.get(normalizeName(e)))===null||t===void 0?void 0:t.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function createHttpHeaders(e){return new HttpHeadersImpl(e)}},41958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=t.operationOptionsToRequestParameters=t.getClient=t.createDefaultHttpClient=t.uint8ArrayToString=t.stringToUint8Array=t.isRestError=t.RestError=t.createEmptyPipeline=t.createPipelineRequest=t.createHttpHeaders=t.TypeSpecRuntimeLogger=t.setLogLevel=t.getLogLevel=t.createClientLogger=t.AbortError=void 0;const o=n(61860);var i=n(99992);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}});var d=n(18459);Object.defineProperty(t,"createClientLogger",{enumerable:true,get:function(){return d.createClientLogger}});Object.defineProperty(t,"getLogLevel",{enumerable:true,get:function(){return d.getLogLevel}});Object.defineProperty(t,"setLogLevel",{enumerable:true,get:function(){return d.setLogLevel}});Object.defineProperty(t,"TypeSpecRuntimeLogger",{enumerable:true,get:function(){return d.TypeSpecRuntimeLogger}});var p=n(4220);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});o.__exportStar(n(92097),t);o.__exportStar(n(43097),t);var f=n(72305);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(22338);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return y.createEmptyPipeline}});var v=n(9758);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return v.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return v.isRestError}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(69468);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return M.createDefaultHttpClient}});var U=n(86191);Object.defineProperty(t,"getClient",{enumerable:true,get:function(){return U.getClient}});var V=n(19635);Object.defineProperty(t,"operationOptionsToRequestParameters",{enumerable:true,get:function(){return V.operationOptionsToRequestParameters}});var j=n(97332);Object.defineProperty(t,"createRestError",{enumerable:true,get:function(){return j.createRestError}})},3644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const o=n(18459);t.logger=(0,o.createClientLogger)("ts-http-runtime")},36836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const o=n(38029);const i=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let p=[];let f=[];const y=[];if(i){enable(i)}const v=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:o.log});function enable(e){d=e;p=[];f=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){f.push(new RegExp(`^${e.substr(1)}$`))}else{p.push(new RegExp(`^${e}$`))}}for(const e of y){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of f){if(t.test(e)){return false}}for(const t of p){if(t.test(e)){return true}}return false}function disable(){const e=d||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:v.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}y.push(t);return t}function destroy(){const e=y.indexOf(this);if(e>=0){y.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}t["default"]=v},82490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLoggerContext=void 0;var o=n(18459);Object.defineProperty(t,"createLoggerContext",{enumerable:true,get:function(){return o.createLoggerContext}})},38029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.log=log;const o=n(61860);const i=n(48161);const d=o.__importDefault(n(57975));const p=o.__importStar(n(1708));function log(e,...t){p.stderr.write(`${d.default.format(e,...t)}${i.EOL}`)}},18459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TypeSpecRuntimeLogger=void 0;t.createLoggerContext=createLoggerContext;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const o=n(61860);const i=o.__importDefault(n(36836));const d=["verbose","info","warning","error"];const p={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return d.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let o;const f=(0,i.default)(e.namespace);f.log=(...e)=>{i.default.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${d.join(",")}`)}o=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}i.default.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${d.join(", ")}.`)}}function shouldEnable(e){return Boolean(o&&p[e.level]<=p[o])}function createLogger(e,n){const o=Object.assign(e.extend(n),{level:n});patchLogMethod(e,o);if(shouldEnable(o)){const e=i.default.disable();i.default.enable(e+","+o.namespace)}t.add(o);return o}function contextGetLogLevel(){return o}function contextCreateClientLogger(e){const t=f.extend(e);patchLogMethod(f,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:f}}const f=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});t.TypeSpecRuntimeLogger=f.logger;function setLogLevel(e){f.setLogLevel(e)}function getLogLevel(){return f.getLogLevel()}function createClientLogger(e){return f.createClientLogger(e)}},21167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyLength=getBodyLength;t.createNodeHttpClient=createNodeHttpClient;const o=n(61860);const i=o.__importStar(n(37067));const d=o.__importStar(n(44708));const p=o.__importStar(n(38522));const f=n(57075);const y=n(99992);const v=n(4220);const D=n(9758);const M=n(3644);const U=n(7784);const V={};function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends f.Transform{_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.loadedBytes=0;this.progressCallback=e}}class NodeHttpClient{constructor(){this.cachedHttpsAgents=new WeakMap}async sendRequest(e){var t,n,o;const i=new AbortController;let d;if(e.abortSignal){if(e.abortSignal.aborted){throw new y.AbortError("The operation was aborted. Request has already been canceled.")}d=e=>{if(e.type==="abort"){i.abort()}};e.abortSignal.addEventListener("abort",d)}let p;if(e.timeout>0){p=setTimeout((()=>{const t=new U.Sanitizer;M.logger.info(`request to '${t.sanitizeUrl(e.url)}' timed out. canceling...`);i.abort()}),e.timeout)}const f=e.headers.get("Accept-Encoding");const v=(f===null||f===void 0?void 0:f.includes("gzip"))||(f===null||f===void 0?void 0:f.includes("deflate"));let D=typeof e.body==="function"?e.body():e.body;if(D&&!e.headers.has("Content-Length")){const t=getBodyLength(D);if(t!==null){e.headers.set("Content-Length",t)}}let V;try{if(D&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{M.logger.error("Error in upload progress",e)}));if(isReadableStream(D)){D.pipe(n)}else{n.end(D)}D=n}const d=await this.makeRequest(e,i,D);if(p!==undefined){clearTimeout(p)}const f=getResponseHeaders(d);const y=(t=d.statusCode)!==null&&t!==void 0?t:0;const U={status:y,headers:f,request:e};if(e.method==="HEAD"){d.resume();return U}V=v?getDecodedResponseStream(d,f):d;const j=e.onDownloadProgress;if(j){const e=new ReportTransform(j);e.on("error",(e=>{M.logger.error("Error in download progress",e)}));V.pipe(e);V=e}if(((n=e.streamResponseStatusCodes)===null||n===void 0?void 0:n.has(Number.POSITIVE_INFINITY))||((o=e.streamResponseStatusCodes)===null||o===void 0?void 0:o.has(U.status))){U.readableStreamBody=V}else{U.bodyAsText=await streamToText(V)}return U}finally{if(e.abortSignal&&d){let t=Promise.resolve();if(isReadableStream(D)){t=isStreamComplete(D)}let n=Promise.resolve();if(isReadableStream(V)){n=isStreamComplete(V)}Promise.all([t,n]).then((()=>{var t;if(d){(t=e.abortSignal)===null||t===void 0?void 0:t.removeEventListener("abort",d)}})).catch((e=>{M.logger.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){var o;const p=new URL(e.url);const f=p.protocol!=="https:";if(f&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const v=(o=e.agent)!==null&&o!==void 0?o:this.getOrCreateAgent(e,f);const U=Object.assign({agent:v,hostname:p.hostname,path:`${p.pathname}${p.search}`,port:p.port,method:e.method,headers:e.headers.toJSON({preserveCase:true})},e.requestOverrides);return new Promise(((o,p)=>{const v=f?i.request(U,o):d.request(U,o);v.once("error",(t=>{var n;p(new D.RestError(t.message,{code:(n=t.code)!==null&&n!==void 0?n:D.RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new y.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");v.destroy(e);p(e)}));if(n&&isReadableStream(n)){n.pipe(v)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){v.end(n)}else if(isArrayBuffer(n)){v.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{M.logger.error("Unrecognized body type",n);p(new D.RestError("Unrecognized body type"))}}else{v.end()}}))}getOrCreateAgent(e,t){var n;const o=e.disableKeepAlive;if(t){if(o){return i.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new i.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(o&&!e.tlsSettings){return d.globalAgent}const t=(n=e.tlsSettings)!==null&&n!==void 0?n:V;let i=this.cachedHttpsAgents.get(t);if(i&&i.options.keepAlive===!o){return i}M.logger.info("No cached TLS Agent exist, creating a new Agent");i=new d.Agent(Object.assign({keepAlive:!o},t));this.cachedHttpsAgents.set(t,i);return i}}}function getResponseHeaders(e){const t=(0,v.createHttpHeaders)();for(const n of Object.keys(e.headers)){const o=e.headers[n];if(Array.isArray(o)){if(o.length>0){t.set(n,o[0])}}else if(o){t.set(n,o)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=p.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=p.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const o=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){o.push(e)}else{o.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(o).toString("utf8"))}));e.on("error",(e=>{if(e&&(e===null||e===void 0?void 0:e.name)==="AbortError"){n(e)}else{n(new D.RestError(`Error reading response as text: ${e.message}`,{code:D.RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}},22338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const n=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{constructor(e){var t;this._policies=[];this._policies=(t=e===null||e===void 0?void 0:e.slice(0))!==null&&t!==void 0?t:[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!n.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!n.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const o=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return o(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const o=createPhase("None");const i=createPhase("Deserialize");const d=createPhase("Retry");const p=createPhase("Sign");const f=[n,o,i,d,p];function getPhase(e){if(e==="Retry"){return d}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return i}else if(e==="Sign"){return p}else{return o}}for(const e of this._policies){const n=e.policy;const o=e.options;const i=n.name;if(t.has(i)){throw new Error("Duplicate policy names not allowed in pipeline")}const d={policy:n,dependsOn:new Set,dependants:new Set};if(o.afterPhase){d.afterPhase=getPhase(o.afterPhase);d.afterPhase.hasAfterPolicies=true}t.set(i,d);const p=getPhase(o.phase);p.policies.add(d)}for(const e of this._policies){const{policy:n,options:o}=e;const i=n.name;const d=t.get(i);if(!d){throw new Error(`Missing node for policy ${i}`)}if(o.afterPolicies){for(const e of o.afterPolicies){const n=t.get(e);if(n){d.dependsOn.add(n);n.dependants.add(d)}}}if(o.beforePolicies){for(const e of o.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(d);d.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const o of n.policies){if(o.afterPhase&&(!o.afterPhase.hasRun||o.afterPhase.policies.size)){continue}if(o.dependsOn.size===0){e.push(o.policy);for(const e of o.dependants){e.dependsOn.delete(o)}t.delete(o.policy.name);n.policies.delete(o)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==o){if(!o.hasRun){walkPhase(o)}return}if(e.hasAfterPolicies){walkPhase(o)}}}let y=0;while(t.size>0){y++;const t=e.length;walkPhases();if(e.length<=t&&y>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function createEmptyPipeline(){return HttpPipeline.create()}},72305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const o=n(4220);const i=n(5023);class PipelineRequestImpl{constructor(e){var t,n,d,p,f,y,v;this.url=e.url;this.body=e.body;this.headers=(t=e.headers)!==null&&t!==void 0?t:(0,o.createHttpHeaders)();this.method=(n=e.method)!==null&&n!==void 0?n:"GET";this.timeout=(d=e.timeout)!==null&&d!==void 0?d:0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=(p=e.disableKeepAlive)!==null&&p!==void 0?p:false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=(f=e.withCredentials)!==null&&f!==void 0?f:false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||(0,i.randomUUID)();this.allowInsecureConnection=(y=e.allowInsecureConnection)!==null&&y!==void 0?y:false;this.enableBrowserStreams=(v=e.enableBrowserStreams)!==null&&v!==void 0?v:false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function createPipelineRequest(e){return new PipelineRequestImpl(e)}},85366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;t.agentPolicyName="agentPolicy";function agentPolicy(e){return{name:t.agentPolicyName,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}},42095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiKeyAuthenticationPolicyName=void 0;t.apiKeyAuthenticationPolicy=apiKeyAuthenticationPolicy;const o=n(42302);t.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy(e){return{name:t.apiKeyAuthenticationPolicyName,async sendRequest(t,n){var i,d;(0,o.ensureSecureConnection)(t,e);const p=(d=(i=t.authSchemes)!==null&&i!==void 0?i:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="apiKey"));if(!p){return n(t)}if(p.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${p.apiKeyLocation}`)}t.headers.set(p.name,e.credential.key);return n(t)}}}},15756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.basicAuthenticationPolicyName=void 0;t.basicAuthenticationPolicy=basicAuthenticationPolicy;const o=n(82921);const i=n(42302);t.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function basicAuthenticationPolicy(e){return{name:t.basicAuthenticationPolicyName,async sendRequest(t,n){var d,p;(0,i.ensureSecureConnection)(t,e);const f=(p=(d=t.authSchemes)!==null&&d!==void 0?d:e.authSchemes)===null||p===void 0?void 0:p.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!f){return n(t)}const{username:y,password:v}=e.credential;const D=(0,o.uint8ArrayToString)((0,o.stringToUint8Array)(`${y}:${v}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${D}`);return n(t)}}}},89709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerAuthenticationPolicyName=void 0;t.bearerAuthenticationPolicy=bearerAuthenticationPolicy;const o=n(42302);t.bearerAuthenticationPolicyName="bearerAuthenticationPolicy";function bearerAuthenticationPolicy(e){return{name:t.bearerAuthenticationPolicyName,async sendRequest(t,n){var i,d;(0,o.ensureSecureConnection)(t,e);const p=(d=(i=t.authSchemes)!==null&&i!==void 0?i:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!p){return n(t)}const f=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ensureSecureConnection=ensureSecureConnection;const o=n(3644);let i=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";o.logger.warning(e);if(typeof(process===null||process===void 0?void 0:process.emitWarning)==="function"&&!i){i=true;process.emitWarning(e)}}function ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}},20219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oauth2AuthenticationPolicyName=void 0;t.oauth2AuthenticationPolicy=oauth2AuthenticationPolicy;const o=n(42302);t.oauth2AuthenticationPolicyName="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy(e){return{name:t.oauth2AuthenticationPolicyName,async sendRequest(t,n){var i,d;(0,o.ensureSecureConnection)(t,e);const p=(d=(i=t.authSchemes)!==null&&i!==void 0?i:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="oauth2"));if(!p){return n(t)}const f=await e.credential.getOAuth2Token(p.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},35035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;t.decompressResponsePolicyName="decompressResponsePolicy";function decompressResponsePolicy(){return{name:t.decompressResponsePolicyName,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}},32462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const o=n(98102);const i=n(21112);const d=n(43345);const p=n(31255);t.defaultRetryPolicyName="defaultRetryPolicy";function defaultRetryPolicy(e={}){var n;return{name:t.defaultRetryPolicyName,sendRequest:(0,d.retryPolicy)([(0,i.throttlingRetryStrategy)(),(0,o.exponentialRetryStrategy)(e)],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:p.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},74656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const o=n(98102);const i=n(43345);const d=n(31255);t.exponentialRetryPolicyName="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){var t;return(0,i.retryPolicy)([(0,o.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreSystemErrors:true}))],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:d.DEFAULT_RETRY_POLICY_COUNT})}},14197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const o=n(82921);const i=n(85086);const d=n(4220);t.formDataPolicyName="formDataPolicy";function formDataToFormDataMap(e){var t;const n={};for(const[o,i]of e.entries()){(t=n[o])!==null&&t!==void 0?t:n[o]=[];n[o].push(i)}return n}function formDataPolicy(){return{name:t.formDataPolicyName,async sendRequest(e,t){if(i.isNodeLike&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.append(n,e.toString())}}else{t.append(n,o.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n!==null&&n!==void 0?n:"multipart/form-data");const i=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){i.push({headers:(0,d.createHttpHeaders)({"Content-Disposition":`form-data; name="${t}"`}),body:(0,o.stringToUint8Array)(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const o=(0,d.createHttpHeaders)();o.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);o.set("Content-Type",e.type||"application/octet-stream");i.push({headers:o,body:e})}}}t.multipartBody={parts:i}}},44960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=t.userAgentPolicy=t.tlsPolicyName=t.tlsPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.formDataPolicyName=t.formDataPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.retryPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.defaultRetryPolicyName=t.defaultRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.agentPolicyName=t.agentPolicy=void 0;var o=n(85366);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return o.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return o.agentPolicyName}});var i=n(35035);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return i.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return i.decompressResponsePolicyName}});var d=n(32462);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return d.defaultRetryPolicy}});Object.defineProperty(t,"defaultRetryPolicyName",{enumerable:true,get:function(){return d.defaultRetryPolicyName}});var p=n(74656);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return p.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return p.exponentialRetryPolicyName}});var f=n(43345);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return f.retryPolicy}});var y=n(92418);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return y.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return y.systemErrorRetryPolicyName}});var v=n(24728);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return v.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return v.throttlingRetryPolicyName}});var D=n(14197);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return D.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return D.formDataPolicyName}});var M=n(47129);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return M.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return M.logPolicyName}});var U=n(27427);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return U.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return U.multipartPolicyName}});var V=n(80067);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return V.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return V.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return V.getDefaultProxySettings}});var j=n(92187);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return j.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return j.redirectPolicyName}});var K=n(96690);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return K.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return K.tlsPolicyName}});var ee=n(91691);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return ee.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return ee.userAgentPolicyName}})},47129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const o=n(3644);const i=n(7784);t.logPolicyName="logPolicy";function logPolicy(e={}){var n;const d=(n=e.logger)!==null&&n!==void 0?n:o.logger.info;const p=new i.Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:t.logPolicyName,async sendRequest(e,t){if(!d.enabled){return t(e)}d(`Request: ${p.sanitize(e)}`);const n=await t(e);d(`Response status code: ${n.status}`);d(`Headers: ${p.sanitize(n.headers)}`);return n}}}},27427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const o=n(82921);const i=n(48505);const d=n(5023);const p=n(20547);function generateBoundary(){return`----AzSDKFormBoundary${(0,d.randomUUID)()}`}function encodeHeaders(e){let t="";for(const[n,o]of e){t+=`${n}: ${o}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if((0,i.isBlob)(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const i=[(0,o.stringToUint8Array)(`--${n}`,"utf-8"),...t.flatMap((e=>[(0,o.stringToUint8Array)("\r\n","utf-8"),(0,o.stringToUint8Array)(encodeHeaders(e.headers),"utf-8"),(0,o.stringToUint8Array)("\r\n","utf-8"),e.body,(0,o.stringToUint8Array)(`\r\n--${n}`,"utf-8")])),(0,o.stringToUint8Array)("--\r\n\r\n","utf-8")];const d=getTotalLength(i);if(d){e.headers.set("Content-Length",d)}e.body=await(0,p.concat)(i)}t.multipartPolicyName="multipartPolicy";const f=70;const y=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>f){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!y.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy(){return{name:t.multipartPolicyName,async sendRequest(e,t){var n;if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let o=e.multipartBody.boundary;const i=(n=e.headers.get("Content-Type"))!==null&&n!==void 0?n:"multipart/mixed";const d=i.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!d){throw new Error(`Got multipart request body, but content-type header was not multipart: ${i}`)}const[,p,f]=d;if(f&&o&&f!==o){throw new Error(`Multipart boundary was specified as ${f} in the header, but got ${o} in the request body`)}o!==null&&o!==void 0?o:o=f;if(o){assertValidBoundary(o)}else{o=generateBoundary()}e.headers.set("Content-Type",`${p}; boundary=${o}`);await buildRequestBody(e,e.multipartBody.parts,o);e.multipartBody=undefined;return t(e)}}}},80067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.globalNoProxyList=t.proxyPolicyName=void 0;t.loadNoProxy=loadNoProxy;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const o=n(3669);const i=n(81970);const d=n(3644);const p="HTTPS_PROXY";const f="HTTP_PROXY";const y="ALL_PROXY";const v="NO_PROXY";t.proxyPolicyName="proxyPolicy";t.globalNoProxyList=[];let D=false;const M=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(p);const t=getEnvironmentValue(y);const n=getEnvironmentValue(f);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const o=new URL(e).hostname;if(n===null||n===void 0?void 0:n.has(o)){return n.get(o)}let i=false;for(const e of t){if(e[0]==="."){if(o.endsWith(e)){i=true}else{if(o.length===e.length-1&&o===e.slice(1)){i=true}}}else{if(o===e){i=true}}}n===null||n===void 0?void 0:n.set(o,i);return i}function loadNoProxy(){const e=getEnvironmentValue(v);D=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch(t){throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const p=new URL(e.url);const f=p.protocol!=="https:";if(e.tlsSettings){d.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const y=e.headers.toJSON();if(f){if(!t.httpProxyAgent){t.httpProxyAgent=new i.HttpProxyAgent(n,{headers:y})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new o.HttpsProxyAgent(n,{headers:y})}e.agent=t.httpsProxyAgent}}function proxyPolicy(e,n){if(!D){t.globalNoProxyList.push(...loadNoProxy())}const o=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const i={};return{name:t.proxyPolicyName,async sendRequest(e,d){var p;if(!e.proxySettings&&o&&!isBypassed(e.url,(p=n===null||n===void 0?void 0:n.customNoProxyList)!==null&&p!==void 0?p:t.globalNoProxyList,(n===null||n===void 0?void 0:n.customNoProxyList)?undefined:M)){setProxyAgentOnRequest(e,i,o)}else if(e.proxySettings){setProxyAgentOnRequest(e,i,getUrlFromProxySettings(e.proxySettings))}return d(e)}}}},92187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;t.redirectPolicyName="redirectPolicy";const n=["GET","HEAD"];function redirectPolicy(e={}){const{maxRetries:n=20}=e;return{name:t.redirectPolicyName,async sendRequest(e,t){const o=await t(e);return handleRedirect(t,o,n)}}}async function handleRedirect(e,t,o,i=0){const{request:d,status:p,headers:f}=t;const y=f.get("location");if(y&&(p===300||p===301&&n.includes(d.method)||p===302&&n.includes(d.method)||p===303&&d.method==="POST"||p===307)&&i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const o=n(77566);const i=n(99992);const d=n(18459);const p=n(31255);const f=(0,d.createClientLogger)("ts-http-runtime retryPolicy");const y="retryPolicy";function retryPolicy(e,t={maxRetries:p.DEFAULT_RETRY_POLICY_COUNT}){const n=t.logger||f;return{name:y,async sendRequest(d,f){var y,v;let D;let M;let U=-1;e:while(true){U+=1;D=undefined;M=undefined;try{n.info(`Retry ${U}: Attempting to send request`,d.requestId);D=await f(d);n.info(`Retry ${U}: Received a response from request`,d.requestId)}catch(e){n.error(`Retry ${U}: Received an error from request`,d.requestId);M=e;if(!e||M.name!=="RestError"){throw e}D=M.response}if((y=d.abortSignal)===null||y===void 0?void 0:y.aborted){n.error(`Retry ${U}: Request aborted.`);const e=new i.AbortError;throw e}if(U>=((v=t.maxRetries)!==null&&v!==void 0?v:p.DEFAULT_RETRY_POLICY_COUNT)){n.info(`Retry ${U}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(M){throw M}else if(D){return D}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${U}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${U}: Processing retry strategy ${t.name}.`);const i=t.retry({retryCount:U,response:D,responseError:M});if(i.skipStrategy){e.info(`Retry ${U}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:f,redirectTo:y}=i;if(p){e.error(`Retry ${U}: Retry strategy ${t.name} throws error:`,p);throw p}if(f||f===0){e.info(`Retry ${U}: Retry strategy ${t.name} retries after ${f}`);await(0,o.delay)(f,undefined,{abortSignal:d.abortSignal});continue e}if(y){e.info(`Retry ${U}: Retry strategy ${t.name} redirects to ${y}`);d.url=y;continue e}}if(M){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw M}if(D){n.info(`None of the retry strategies could work with the received response. Returning it.`);return D}}}}}},92418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const o=n(98102);const i=n(43345);const d=n(31255);t.systemErrorRetryPolicyName="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){var n;return{name:t.systemErrorRetryPolicyName,sendRequest:(0,i.retryPolicy)([(0,o.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreHttpStatusCodes:true}))],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},24728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const o=n(21112);const i=n(43345);const d=n(31255);t.throttlingRetryPolicyName="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){var n;return{name:t.throttlingRetryPolicyName,sendRequest:(0,i.retryPolicy)([(0,o.throttlingRetryStrategy)()],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},96690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;t.tlsPolicyName="tlsPolicy";function tlsPolicy(e){return{name:t.tlsPolicyName,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}},91691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const o=n(62731);const i=(0,o.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,o.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(i)){e.headers.set(i,await n)}return t(e)}}}},9758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const o=n(52573);const i=n(37639);const d=n(7784);const p=new d.Sanitizer;class RestError extends Error{constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});Object.defineProperty(this,i.custom,{value:()=>`RestError: ${this.message} \n ${p.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,enumerable:false});Object.setPrototypeOf(this,RestError.prototype)}}t.RestError=RestError;RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";function isRestError(e){if(e instanceof RestError){return true}return(0,o.isError)(e)&&e.name==="RestError"}},98102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryStrategy=exponentialRetryStrategy;t.isExponentialRetryResponse=isExponentialRetryResponse;t.isSystemError=isSystemError;const o=n(66776);const i=n(21112);const d=1e3;const p=1e3*64;function exponentialRetryStrategy(e={}){var t,n;const f=(t=e.retryDelayInMs)!==null&&t!==void 0?t:d;const y=(n=e.maxRetryDelayInMs)!==null&&n!==void 0?n:p;return{name:"exponentialRetryStrategy",retry({retryCount:t,response:n,responseError:d}){const p=isSystemError(d);const v=p&&e.ignoreSystemErrors;const D=isExponentialRetryResponse(n);const M=D&&e.ignoreHttpStatusCodes;const U=n&&((0,i.isThrottlingRetryResponse)(n)||!D);if(U||M||v){return{skipStrategy:true}}if(d&&!p&&!D){return{errorToThrow:d}}return(0,o.calculateRetryDelay)(t,{retryDelayInMs:f,maxRetryDelayInMs:y})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}},21112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isThrottlingRetryResponse=isThrottlingRetryResponse;t.throttlingRetryStrategy=throttlingRetryStrategy;const o=n(77566);const i="Retry-After";const d=["retry-after-ms","x-ms-retry-after-ms",i];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of d){const n=(0,o.parseHeaderValueAsNumber)(e,t);if(n===0||n){const e=t===i?1e3:1;return n*e}}const t=e.headers.get(i);if(!t)return;const n=Date.parse(t);const p=n-Date.now();return Number.isFinite(p)?Math.max(0,p):undefined}catch(e){return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}},82921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;function uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function stringToUint8Array(e,t){return Buffer.from(e,t)}},85086:(e,t)=>{"use strict";var n,o,i,d;Object.defineProperty(t,"__esModule",{value:true});t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isDeno=t.isWebWorker=t.isBrowser=void 0;t.isBrowser=typeof window!=="undefined"&&typeof window.document!=="undefined";t.isWebWorker=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((n=self.constructor)===null||n===void 0?void 0:n.name)==="DedicatedWorkerGlobalScope"||((o=self.constructor)===null||o===void 0?void 0:o.name)==="ServiceWorkerGlobalScope"||((i=self.constructor)===null||i===void 0?void 0:i.name)==="SharedWorkerGlobalScope");t.isDeno=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";t.isBun=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";t.isNodeLike=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean((d=globalThis.process.versions)===null||d===void 0?void 0:d.node);t.isNodeRuntime=t.isNodeLike&&!t.isBun&&!t.isDeno;t.isReactNative=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative"},20547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concat=concat;const o=n(61860);const i=n(2203);const d=n(48505);function streamAsyncIterator(){return o.__asyncGenerator(this,arguments,(function*streamAsyncIterator_1(){const e=this.getReader();try{while(true){const{done:t,value:n}=yield o.__await(e.read());if(t){return yield o.__await(void 0)}yield yield o.__await(n)}}finally{e.releaseLock()}}))}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return i.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return i.Readable.from(Buffer.from(e))}else if((0,d.isBlob)(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return i.Readable.from(function(){return o.__asyncGenerator(this,arguments,(function*(){var e,n,i,d;for(const v of t){try{for(var p=true,f=(n=void 0,o.__asyncValues(v)),y;y=yield o.__await(f.next()),e=y.done,!e;p=true){d=y.value;p=false;const e=d;yield yield o.__await(e)}}catch(e){n={error:e}}finally{try{if(!p&&!e&&(i=f.return))yield o.__await(i.call(f))}finally{if(n)throw n.error}}}}))}())}}},66776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateRetryDelay=calculateRetryDelay;const o=n(78640);function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const i=Math.min(t.maxRetryDelayInMs,n);const d=i/2+(0,o.getRandomIntegerInclusive)(0,i/2);return{retryAfterInMs:d}}},52573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isError=isError;const o=n(53632);function isError(e){if((0,o.isObject)(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}},77566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.parseHeaderValueAsNumber=parseHeaderValueAsNumber;const o=n(99992);const i="The operation was aborted.";function delay(e,t,n){return new Promise(((d,p)=>{let f=undefined;let y=undefined;const rejectOnAbort=()=>p(new o.AbortError((n===null||n===void 0?void 0:n.abortErrorMsg)?n===null||n===void 0?void 0:n.abortErrorMsg:i));const removeListeners=()=>{if((n===null||n===void 0?void 0:n.abortSignal)&&y){n.abortSignal.removeEventListener("abort",y)}};y=()=>{if(f){clearTimeout(f)}removeListeners();return rejectOnAbort()};if((n===null||n===void 0?void 0:n.abortSignal)&&n.abortSignal.aborted){return rejectOnAbort()}f=setTimeout((()=>{removeListeners();d(t)}),e);if(n===null||n===void 0?void 0:n.abortSignal){n.abortSignal.addEventListener("abort",y)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const o=Number(n);if(Number.isNaN(o))return;return o}},37639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.custom=void 0;const o=n(57975);t.custom=o.inspect.custom},95750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=t.uint8ArrayToString=t.stringToUint8Array=t.isWebWorker=t.isReactNative=t.isDeno=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isBrowser=t.randomUUID=t.computeSha256Hmac=t.computeSha256Hash=t.isError=t.isObject=t.getRandomIntegerInclusive=t.calculateRetryDelay=void 0;var o=n(66776);Object.defineProperty(t,"calculateRetryDelay",{enumerable:true,get:function(){return o.calculateRetryDelay}});var i=n(78640);Object.defineProperty(t,"getRandomIntegerInclusive",{enumerable:true,get:function(){return i.getRandomIntegerInclusive}});var d=n(53632);Object.defineProperty(t,"isObject",{enumerable:true,get:function(){return d.isObject}});var p=n(52573);Object.defineProperty(t,"isError",{enumerable:true,get:function(){return p.isError}});var f=n(2016);Object.defineProperty(t,"computeSha256Hash",{enumerable:true,get:function(){return f.computeSha256Hash}});Object.defineProperty(t,"computeSha256Hmac",{enumerable:true,get:function(){return f.computeSha256Hmac}});var y=n(5023);Object.defineProperty(t,"randomUUID",{enumerable:true,get:function(){return y.randomUUID}});var v=n(85086);Object.defineProperty(t,"isBrowser",{enumerable:true,get:function(){return v.isBrowser}});Object.defineProperty(t,"isBun",{enumerable:true,get:function(){return v.isBun}});Object.defineProperty(t,"isNodeLike",{enumerable:true,get:function(){return v.isNodeLike}});Object.defineProperty(t,"isNodeRuntime",{enumerable:true,get:function(){return v.isNodeRuntime}});Object.defineProperty(t,"isDeno",{enumerable:true,get:function(){return v.isDeno}});Object.defineProperty(t,"isReactNative",{enumerable:true,get:function(){return v.isReactNative}});Object.defineProperty(t,"isWebWorker",{enumerable:true,get:function(){return v.isWebWorker}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(7784);Object.defineProperty(t,"Sanitizer",{enumerable:true,get:function(){return M.Sanitizer}})},53632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isObject=isObject;function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}},78640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRandomIntegerInclusive=getRandomIntegerInclusive;function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}},7784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=void 0;const o=n(53632);const i="REDACTED";const d=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const p=["api-version"];class Sanitizer{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=d.concat(e);t=p.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return Object.assign(Object.assign({},n),{name:n.name,message:n.message})}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||(0,o.isObject)(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,i)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=i}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=i}}return t}}t.Sanitizer=Sanitizer},2016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.computeSha256Hmac=computeSha256Hmac;t.computeSha256Hash=computeSha256Hash;const o=n(77598);async function computeSha256Hmac(e,t,n){const i=Buffer.from(e,"base64");return(0,o.createHmac)("sha256",i).update(t).digest(n)}async function computeSha256Hash(e,t){return(0,o.createHash)("sha256").update(e).digest(t)}},48505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isNodeReadableStream=isNodeReadableStream;t.isWebReadableStream=isWebReadableStream;t.isBinaryBody=isBinaryBody;t.isReadableStream=isReadableStream;t.isBlob=isBlob;function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}},62731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const o=n(83196);const i=n(31255);function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,o.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",i.SDK_VERSION);await(0,o.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},83196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const o=n(61860);const i=o.__importStar(n(48161));const d=o.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${i.arch()}-${i.type()}-${i.release()})`)}},5023:(e,t,n)=>{"use strict";var o;Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=randomUUID;const i=n(77598);const d=typeof((o=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||o===void 0?void 0:o.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):i.randomUUID;function randomUUID(){return d()}},50591:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>ft,XMLParser:()=>st,XMLValidator:()=>re});const o=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("^["+o+"]["+o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const d=o.length;for(let e=0;e"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)y+=e[d];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),d--),!r(y)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",x("InvalidTag",t,N(e,d))}const v=c(e,d);if(!1===v)return x("InvalidAttr","Attributes for '"+y+"' have open quote.",N(e,d));let D=v.value;if(d=v.index,"/"===D[D.length-1]){const n=d-D.length;D=D.substring(0,D.length-1);const i=g(D,t);if(!0!==i)return x(i.err.code,i.err.msg,N(e,n+i.err.line));o=!0}else if(f){if(!v.tagClosed)return x("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",N(e,d));if(D.trim().length>0)return x("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",N(e,p));if(0===n.length)return x("InvalidTag","Closing tag '"+y+"' has not been opened.",N(e,p));{const t=n.pop();if(y!==t.tagName){let n=N(e,t.tagStartPos);return x("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",N(e,p))}0==n.length&&(i=!0)}}else{const f=g(D,t);if(!0!==f)return x(f.err.code,f.err.msg,N(e,d-D.length+f.err.line));if(!0===i)return x("InvalidXml","Multiple possible root nodes found.",N(e,d));-1!==t.unpairedTags.indexOf(y)||n.push({tagName:y,tagStartPos:p}),o=!0}for(d++;d0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function l(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t5&&"xml"===o)return x("InvalidXml","XML declaration allowed only at the start of the document.",N(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function h(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}const p='"',f="'";function c(e,t){let n="",o="",i=!1;for(;t"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const y=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(e,t){const n=s(e,y),o={};for(let e=0;e!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1};let D;D="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class T{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}function w(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let o=1,i=!1,d=!1,p="";for(;t"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,o--):o--,0===o)break}else"["===e[t]?i=!0:p+=e[t];else{if(i&&C(e,"!ENTITY",t)){let o,i;t+=7,[o,i,t]=O(e,t+1),-1===i.indexOf("&")&&(n[o]={regx:RegExp(`&${o};`,"g"),val:i})}else if(i&&C(e,"!ELEMENT",t)){t+=8;const{index:n}=S(e,t+1);t=n}else if(i&&C(e,"!ATTLIST",t))t+=8;else if(i&&C(e,"!NOTATION",t)){t+=9;const{index:n}=A(e,t+1);t=n}else{if(!C(e,"!--",t))throw new Error("Invalid DOCTYPE");d=!0}o++,p=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}const P=(e,t)=>{for(;t{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}class k{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,16))}},this.addExternalEntities=F,this.parseXml=X,this.parseTextData=L,this.resolveNameSpace=B,this.buildAttributesMap=G,this.isItStopNode=Z,this.replaceEntitiesValue=R,this.readStopNodeData=J,this.saveTextToParentTag=q,this.addChild=Y,this.ignoreAttributesFn=_(this.options.ignoreAttributes)}}function F(e){const t=Object.keys(e);for(let n=0;n0)){p||(e=this.replaceEntitiesValue(e));const o=this.options.tagValueProcessor(t,e,n,i,d);return null==o?e:typeof o!=typeof e||o!==e?o:this.options.trimValues||e.trim()===e?H(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function B(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const K=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function G(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=s(e,K),o=n.length,i={};for(let e=0;e",d,"Closing Tag is not closed.");let p=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=p.indexOf(":");-1!==e&&(p=p.substr(e+1))}this.options.transformTagName&&(p=this.options.transformTagName(p)),n&&(o=this.saveTextToParentTag(o,n,i));const f=i.substring(i.lastIndexOf(".")+1);if(p&&-1!==this.options.unpairedTags.indexOf(p))throw new Error(`Unpaired tag can not be used as closing tag: `);let y=0;f&&-1!==this.options.unpairedTags.indexOf(f)?(y=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=i.lastIndexOf("."),i=i.substring(0,y),n=this.tagsNodeStack.pop(),o="",d=t}else if("?"===e[d+1]){let t=z(e,d,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,i),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new T(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)),this.addChild(n,e,i,d)}d=t.closeIndex+1}else if("!--"===e.substr(d+1,3)){const t=W(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const p=e.substring(d+4,t-2);o=this.saveTextToParentTag(o,n,i),n.add(this.options.commentPropName,[{[this.options.textNodeName]:p}])}d=t}else if("!D"===e.substr(d+1,2)){const t=w(e,d);this.docTypeEntities=t.entities,d=t.i}else if("!["===e.substr(d+1,2)){const t=W(e,"]]>",d,"CDATA is not closed.")-2,p=e.substring(d+9,t);o=this.saveTextToParentTag(o,n,i);let f=this.parseTextData(p,n.tagname,i,!0,!1,!0,!0);null==f&&(f=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:p}]):n.add(this.options.textNodeName,f),d=t+2}else{let p=z(e,d,this.options.removeNSPrefix),f=p.tagName;const y=p.rawTagName;let v=p.tagExp,D=p.attrExpPresent,M=p.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,i,!1));const U=n;U&&-1!==this.options.unpairedTags.indexOf(U.tagname)&&(n=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),f!==t.tagname&&(i+=i?"."+f:f);const V=d;if(this.isItStopNode(this.options.stopNodes,i,f)){let t="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)"/"===f[f.length-1]?(f=f.substr(0,f.length-1),i=i.substr(0,i.length-1),v=f):v=v.substr(0,v.length-1),d=p.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(f))d=p.closeIndex;else{const n=this.readStopNodeData(e,y,M+1);if(!n)throw new Error(`Unexpected end of ${y}`);d=n.i,t=n.tagContent}const o=new T(f);f!==v&&D&&(o[":@"]=this.buildAttributesMap(v,i,f)),t&&(t=this.parseTextData(t,f,i,!0,D,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),o.add(this.options.textNodeName,t),this.addChild(n,o,i,V)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){"/"===f[f.length-1]?(f=f.substr(0,f.length-1),i=i.substr(0,i.length-1),v=f):v=v.substr(0,v.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const e=new T(f);f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,i,f)),this.addChild(n,e,i,V),i=i.substr(0,i.lastIndexOf("."))}else{const e=new T(f);this.tagsNodeStack.push(n),f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,i,f)),this.addChild(n,e,i,V),n=e}o="",d=M}}else o+=e[d];return t.child};function Y(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t,o)):e.addChild(t,o))}const R=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function q(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function Z(e,t,n){const o="*."+n;for(const n in e){const i=e[n];if(o===i||t===i)return!0}return!1}function W(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function z(e,t,n,o=">"){const i=function(e,t,n=">"){let o,i="";for(let d=t;d",n,`${t} is not closed`);if(e.substring(n+2,d).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:d};n=d}else if("?"===e[n+1])n=W(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=W(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=W(e,"]]>",n,"StopNode is not closed.")-2;else{const o=z(e,n,">");o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}function H(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},V,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&M.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(-1!==n.search(/.+[eE].+/))return function(e,t,n){if(!n.eNotation)return e;const o=t.match(j);if(o){let i=o[1]||"";const d=-1===o[3].indexOf("e")?"E":"e",p=o[2],f=i?e[p.length+1]===d:e[p.length]===d;return p.length>1&&f?e:1!==p.length||!o[3].startsWith(`.${d}`)&&o[3][0]!==d?n.leadingZeros&&!f?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=U.exec(n);if(i){const d=i[1]||"",p=i[2];let f=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const y=d?"."===e[p.length+1]:"."===e[p.length];if(!t.leadingZeros&&(p.length>1||1===p.length&&!y))return e;{const o=Number(n),i=String(o);if(0===o||-0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===f||i===`${d}${f}`?o:e;let y=p?f:n;return p?y===i||d+y===i?o:e:y===i||y===d+i?o:e}}return e}var o}(e,n)}return void 0!==e?e:""}const ee=T.getMetaDataSymbol();function Q(e,t){return tt(e,t)}function tt(e,t,n){let o;const i={};for(let d=0;d0&&(i[t.textNodeName]=o):void 0!==o&&(i[t.textNodeName]=o),i}function et(e){const t=Object.keys(e);for(let e=0;e0&&(n="\n"),ot(e,t,"",n)}function ot(e,t,n,o){let i="",d=!1;for(let p=0;p`,d=!1;continue}if(y===t.commentPropName){i+=o+`\x3c!--${f[y][0][t.textNodeName]}--\x3e`,d=!0;continue}if("?"===y[0]){const e=lt(f[":@"],t),n="?xml"===y?"":o;let p=f[y][0][t.textNodeName];p=0!==p.length?" "+p:"",i+=n+`<${y}${p}${e}?>`,d=!0;continue}let D=o;""!==D&&(D+=t.indentBy);const M=o+`<${y}${lt(f[":@"],t)}`,U=ot(f[y],t,v,D);-1!==t.unpairedTags.indexOf(y)?t.suppressUnpairedNode?i+=M+">":i+=M+"/>":U&&0!==U.length||!t.suppressEmptyNode?U&&U.endsWith(">")?i+=M+`>${U}${o}`:(i+=M+">",U&&""!==o&&(U.includes("/>")||U.includes("`):i+=M+"/>",d=!0}return i}function at(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ft(e){this.options=Object.assign({},te,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gt),this.processTextOrObjNode=ct,this.options.format?(this.indentate=pt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ct(e,t,n,o){const i=this.j2x(e,n+1,o.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n):this.buildObjectNode(i.val,t,i.attrStr,n)}function pt(e){return this.options.indentBy.repeat(e)}function gt(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ft.prototype.build=function(e){return this.options.preserveOrder?rt(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},ft.prototype.j2x=function(e,t,n){let o="",i="";const d=n.join(".");for(let p in e)if(Object.prototype.hasOwnProperty.call(e,p))if(void 0===e[p])this.isAttribute(p)&&(i+="");else if(null===e[p])this.isAttribute(p)||p===this.options.cdataPropName?i+="":"?"===p[0]?i+=this.indentate(t)+"<"+p+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+p+"/"+this.tagEndChar;else if(e[p]instanceof Date)i+=this.buildTextValNode(e[p],p,"",t);else if("object"!=typeof e[p]){const n=this.isAttribute(p);if(n&&!this.ignoreAttributesFn(n,d))o+=this.buildAttrPairStr(n,""+e[p]);else if(!n)if(p===this.options.textNodeName){let t=this.options.tagValueProcessor(p,""+e[p]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[p],p,"",t)}else if(Array.isArray(e[p])){const o=e[p].length;let d="",f="";for(let y=0;y"+e+i}},ft.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"0&&this.options.processEntities)for(let t=0;t{"use strict";e.exports=JSON.parse('{"name":"@actions/cache","version":"4.0.5","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}')}};var t={};function __nccwpck_require__(n){var o=t[n];if(o!==undefined){return o.exports}var i=t[n]={exports:{}};var d=true;try{e[n].call(i.exports,i,i.exports,__nccwpck_require__);d=false}finally{if(d)delete t[n]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n={};(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(37484);const o=__nccwpck_require__(5116);const i=["wordpress","wordpress-tests-lib"];async function run(){const e=(0,t.getState)("ok_to_save_cache");if(e!=="yes"){(0,t.warning)(`⚠️ Something went wrong, not saving cache`);return}for(const e of i){const n=(0,t.getState)(`dir_${e}`);const i=(0,t.getState)(`cache_key_${e}`);if(n&&i){(0,t.info)(`ℹ️ Saving ${e} cache with the key of ${i}`);try{process.env.GITHUB_WORKSPACE=n;process.chdir(n);await(0,o.saveCache)([e],i)}catch(n){(0,t.warning)(`⚠️ Failed to save cache for ${e}: ${n.message}`)}}}}void run()})();module.exports=n})(); \ No newline at end of file diff --git a/dist/setup/index.js b/dist/setup/index.js index 58dc0fc0..b01ba451 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -1,3 +1,3 @@ -(()=>{var e={5116:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const f=d(n(37484));const y=d(n(16928));const v=d(n(98299));const D=d(n(73171));const M=d(n(96819));const U=n(17606);const V=n(95321);const j=n(58287);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,n,i,o=false){return p(this,void 0,void 0,(function*(){const d=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${d}`);checkPaths(e);switch(d){case"v2":return yield restoreCacheV2(e,t,n,i,o);case"v1":default:return yield restoreCacheV1(e,t,n,i,o)}}))}t.restoreCache=restoreCache;function restoreCacheV1(e,t,n,i,o=false){return p(this,void 0,void 0,(function*(){n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}const p=yield v.getCompressionMethod();let M="";try{const t=yield D.getCacheEntry(d,e,{compressionMethod:p,enableCrossOsArchive:o});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(i===null||i===void 0?void 0:i.lookupOnly){f.info("Lookup only - skipping download");return t.cacheKey}M=y.join(yield v.createTempDirectory(),v.getCacheFileName(p));f.debug(`Archive Path: ${M}`);yield D.downloadCache(t.archiveLocation,M,i);if(f.isDebug()){yield(0,V.listTar)(M,p)}const n=v.getArchiveFileSizeInBytes(M);f.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);yield(0,V.extractTar)(M,p);f.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{f.warning(`Failed to restore: ${e.message}`)}}finally{try{yield v.unlinkFile(M)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,n,i,o=false){return p(this,void 0,void 0,(function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:true});n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}let p="";try{const U=M.internalCacheTwirpClient();const j=yield v.getCompressionMethod();const K={key:t,restoreKeys:n,version:v.getCacheVersion(e,j,o)};const ee=yield U.GetCacheEntryDownloadURL(K);if(!ee.ok){f.debug(`Cache not found for version ${K.version} of keys: ${d.join(", ")}`);return undefined}f.info(`Cache hit for: ${K.key}`);if(i===null||i===void 0?void 0:i.lookupOnly){f.info("Lookup only - skipping download");return ee.matchedKey}p=y.join(yield v.createTempDirectory(),v.getCacheFileName(j));f.debug(`Archive path: ${p}`);f.debug(`Starting download of archive to: ${p}`);yield D.downloadCache(ee.signedDownloadUrl,p,i);const te=v.getArchiveFileSizeInBytes(p);f.info(`Cache Size: ~${Math.round(te/(1024*1024))} MB (${te} B)`);if(f.isDebug()){yield(0,V.listTar)(p,j)}yield(0,V.extractTar)(p,j);f.info("Cache restored successfully");return ee.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{f.warning(`Failed to restore: ${e.message}`)}}finally{try{if(p){yield v.unlinkFile(p)}}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function saveCache(e,t,n,i=false){return p(this,void 0,void 0,(function*(){const o=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${o}`);checkPaths(e);checkKey(t);switch(o){case"v2":return yield saveCacheV2(e,t,n,i);case"v1":default:return yield saveCacheV1(e,t,n,i)}}))}t.saveCache=saveCache;function saveCacheV1(e,t,n,i=false){var o,d,M,j,K;return p(this,void 0,void 0,(function*(){const p=yield v.getCompressionMethod();let ee=-1;const te=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(te)}`);if(te.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const re=yield v.createTempDirectory();const ne=y.join(re,v.getCacheFileName(p));f.debug(`Archive Path: ${ne}`);try{yield(0,V.createTar)(re,te,p);if(f.isDebug()){yield(0,V.listTar)(ne,p)}const y=10*1024*1024*1024;const ie=v.getArchiveFileSizeInBytes(ne);f.debug(`File Size: ${ie}`);if(ie>y&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(ie/(1024*1024))} MB (${ie} B) is over the 10GB limit, not saving cache.`)}f.debug("Reserving Cache");const oe=yield D.reserveCache(t,e,{compressionMethod:p,enableCrossOsArchive:i,cacheSize:ie});if((o=oe===null||oe===void 0?void 0:oe.result)===null||o===void 0?void 0:o.cacheId){ee=(d=oe===null||oe===void 0?void 0:oe.result)===null||d===void 0?void 0:d.cacheId}else if((oe===null||oe===void 0?void 0:oe.statusCode)===400){throw new Error((j=(M=oe===null||oe===void 0?void 0:oe.error)===null||M===void 0?void 0:M.message)!==null&&j!==void 0?j:`Cache size of ~${Math.round(ie/(1024*1024))} MB (${ie} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(K=oe===null||oe===void 0?void 0:oe.error)===null||K===void 0?void 0:K.message}`)}f.debug(`Saving Cache (ID: ${ee})`);yield D.saveCache(ee,ne,"",n)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}finally{try{yield v.unlinkFile(ne)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return ee}))}function saveCacheV2(e,t,n,i=false){return p(this,void 0,void 0,(function*(){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const o=yield v.getCompressionMethod();const d=M.internalCacheTwirpClient();let p=-1;const K=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(K)}`);if(K.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const ee=yield v.createTempDirectory();const te=y.join(ee,v.getCacheFileName(o));f.debug(`Archive Path: ${te}`);try{yield(0,V.createTar)(ee,K,o);if(f.isDebug()){yield(0,V.listTar)(te,o)}const y=v.getArchiveFileSizeInBytes(te);f.debug(`File Size: ${y}`);if(y>j.CacheFileSizeLimit&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`)}n.archiveSizeBytes=y;f.debug("Reserving Cache");const M=v.getCacheVersion(e,o,i);const re={key:t,version:M};let ne;try{const e=yield d.CreateCacheEntry(re);if(!e.ok){throw new Error("Response was not ok")}ne=e.signedUploadUrl}catch(e){f.debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}f.debug(`Attempting to upload cache located at: ${te}`);yield D.saveCache(p,te,ne,n);const ie={key:t,version:M,sizeBytes:`${y}`};const oe=yield d.FinalizeCacheEntryUpload(ie);f.debug(`FinalizeCacheEntryUploadResponse: ${oe.ok}`);if(!oe.ok){throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}p=parseInt(oe.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}finally{try{yield v.unlinkFile(te)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return p}))}},93156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheService=t.GetCacheEntryDownloadURLResponse=t.GetCacheEntryDownloadURLRequest=t.FinalizeCacheEntryUploadResponse=t.FinalizeCacheEntryUploadRequest=t.CreateCacheEntryResponse=t.CreateCacheEntryRequest=void 0;const i=n(44420);const o=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(68886);const v=n(89444);class CreateCacheEntryRequest$Type extends y.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>v.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheServiceClientProtobuf=t.CacheServiceClientJSON=void 0;const i=n(93156);class CacheServiceClientJSON{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=i.CreateCacheEntryRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",t);return n.then((e=>i.CreateCacheEntryResponse.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=i.FinalizeCacheEntryUploadRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return n.then((e=>i.FinalizeCacheEntryUploadResponse.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=i.GetCacheEntryDownloadURLRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return n.then((e=>i.GetCacheEntryDownloadURLResponse.fromJson(e,{ignoreUnknownFields:true})))}}t.CacheServiceClientJSON=CacheServiceClientJSON;class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=i.CreateCacheEntryRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return n.then((e=>i.CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=i.FinalizeCacheEntryUploadRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return n.then((e=>i.FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=i.GetCacheEntryDownloadURLRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return n.then((e=>i.GetCacheEntryDownloadURLResponse.fromBinary(e)))}}t.CacheServiceClientProtobuf=CacheServiceClientProtobuf},89444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheMetadata=void 0;const i=n(68886);const o=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(29425);class CacheMetadata$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>y.CacheScope}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let d=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheScope=void 0;const i=n(68886);const o=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);class CacheScope$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let d=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.posp(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(d))}))));if(y.statusCode===204){if(f.isDebug()){yield printCachesListForDiagnostics(e[0],i,o)}return null}if(!(0,ee.isSuccessStatusCode)(y.statusCode)){throw new Error(`Cache service responded with ${y.statusCode}`)}const v=y.result;const D=v===null||v===void 0?void 0:v.archiveLocation;if(!D){throw new Error("Cache not found.")}f.setSecret(D);f.debug(`Cache Result:`);f.debug(JSON.stringify(v));return v}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,n){return p(this,void 0,void 0,(function*(){const i=`caches?key=${encodeURIComponent(e)}`;const o=yield(0,ee.retryTypedResponse)("listCache",(()=>p(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(i))}))));if(o.statusCode===200){const t=o.result;const i=t===null||t===void 0?void 0:t.totalCount;if(i&&i>0){f.debug(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){f.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,n){return p(this,void 0,void 0,(function*(){const i=new M.URL(e);const o=(0,K.getDownloadOptions)(n);if(i.hostname.endsWith(".blob.core.windows.net")){if(o.useAzureSdk){yield(0,j.downloadCacheStorageSDK)(e,t,o)}else if(o.concurrentBlobDownloads){yield(0,j.downloadCacheHttpClientConcurrent)(e,t,o)}else{yield(0,j.downloadCacheHttpClient)(e,t)}}else{yield(0,j.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,n){return p(this,void 0,void 0,(function*(){const i=createHttpClient();const o=U.getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const d={key:e,version:o,cacheSize:n===null||n===void 0?void 0:n.cacheSize};const f=yield(0,ee.retryTypedResponse)("reserveCache",(()=>p(this,void 0,void 0,(function*(){return i.postJson(getCacheApiUrl("caches"),d)}))));return f}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,n,i,o){return p(this,void 0,void 0,(function*(){f.debug(`Uploading chunk of size ${o-i+1} bytes at offset ${i} with content range: ${getContentRange(i,o)}`);const d={"Content-Type":"application/octet-stream","Content-Range":getContentRange(i,o)};const y=yield(0,ee.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${o})`,(()=>p(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,n(),d)}))));if(!(0,ee.isSuccessStatusCode)(y.message.statusCode)){throw new Error(`Cache service responded with ${y.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=U.getArchiveFileSizeInBytes(n);const d=getCacheApiUrl(`caches/${t.toString()}`);const y=D.openSync(n,"r");const v=(0,K.getUploadOptions)(i);const M=U.assertDefined("uploadConcurrency",v.uploadConcurrency);const V=U.assertDefined("uploadChunkSize",v.uploadChunkSize);const j=[...new Array(M).keys()];f.debug("Awaiting all uploads");let ee=0;try{yield Promise.all(j.map((()=>p(this,void 0,void 0,(function*(){while(eeD.createReadStream(n,{fd:y,start:i,end:p,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,p)}})))))}finally{D.closeSync(y)}return}))}function commitCache(e,t,n){return p(this,void 0,void 0,(function*(){const i={size:n};return yield(0,ee.retryTypedResponse)("commitCache",(()=>p(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),i)}))))}))}function saveCache(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=(0,K.getUploadOptions)(i);if(o.useAzureSdk){if(!n){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield(0,V.uploadCacheArchiveSDK)(n,t,i)}else{const n=createHttpClient();f.debug("Upload cache");yield uploadFile(n,e,t,i);f.debug("Commiting cache");const o=U.getArchiveFileSizeInBytes(t);f.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);const d=yield commitCache(n,e,o);if(!(0,ee.isSuccessStatusCode)(d.statusCode)){throw new Error(`Cache service responded with ${d.statusCode} during commit cache.`)}f.info("Cache saved successfully")}}))}t.saveCache=saveCache},98299:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(i,o){n=e[t](n),settle(i,o,n.done,n.value)}))}}function settle(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeToken=t.getCacheVersion=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const y=d(n(37484));const v=d(n(95236));const D=d(n(47206));const M=d(n(94994));const U=d(n(76982));const V=d(n(79896));const j=d(n(16928));const K=d(n(53272));const ee=d(n(39023));const te=n(58287);const re="1.0";function createTempDirectory(){return p(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let n;if(e){n=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){n="/Users"}else{n="/home"}}t=j.join(n,"actions","temp")}const n=j.join(t,U.randomUUID());yield M.mkdirP(n);return n}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return V.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,n,i,o;var d;return p(this,void 0,void 0,(function*(){const p=[];const v=(d=process.env["GITHUB_WORKSPACE"])!==null&&d!==void 0?d:process.cwd();const M=yield D.create(e.join("\n"),{implicitDescendants:false});try{for(var U=true,V=f(M.globGenerator()),K;K=yield V.next(),t=K.done,!t;U=true){o=K.value;U=false;const e=o;const t=j.relative(v,e).replace(new RegExp(`\\${j.sep}`,"g"),"/");y.debug(`Matched: ${t}`);if(t===""){p.push(".")}else{p.push(`${t}`)}}}catch(e){n={error:e}}finally{try{if(!U&&!t&&(i=V.return))yield i.call(V)}finally{if(n)throw n.error}}return p}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return p(this,void 0,void 0,(function*(){return ee.promisify(V.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return p(this,void 0,void 0,(function*(){let n="";t.push("--version");y.debug(`Checking ${e} ${t.join(" ")}`);try{yield v.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){y.debug(e.message)}n=n.trim();y.debug(n);return n}))}function getCompressionMethod(){return p(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=K.clean(e);y.debug(`zstd version: ${t}`);if(e===""){return te.CompressionMethod.Gzip}else{return te.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===te.CompressionMethod.Gzip?te.CacheFilename.Gzip:te.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return p(this,void 0,void 0,(function*(){if(V.existsSync(te.GnuTarPathOnWindows)){return te.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?M.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function getCacheVersion(e,t,n=false){const i=e.slice();if(t){i.push(t)}if(process.platform==="win32"&&!n){i.push("windows-only")}i.push(re);return U.createHash("sha256").update(i.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken},17606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCacheServiceURL=t.getCacheServiceVersion=t.isGhes=void 0;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const i=t.endsWith(".GHE.COM");const o=t.endsWith(".LOCALHOST");return!n&&!i&&!o}t.isGhes=isGhes;function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}t.getCacheServiceVersion=getCacheServiceVersion;function getCacheServiceURL(){const e=getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}t.getCacheServiceURL=getCacheServiceURL},58287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheFileSizeLimit=t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var n;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(n||(t.CacheFilename=n={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i||(t.CompressionMethod=i={}));var o;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(o||(t.ArchiveToolType=o={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt";t.CacheFileSizeLimit=10*Math.pow(1024,3)},75067:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClientConcurrent=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const f=d(n(37484));const y=n(54844);const v=n(71400);const D=d(n(20181));const M=d(n(79896));const U=d(n(2203));const V=d(n(39023));const j=d(n(98299));const K=n(58287);const ee=n(32846);const te=n(68110);function pipeResponseToStream(e,t){return p(this,void 0,void 0,(function*(){const n=V.promisify(U.pipeline);yield n(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;f.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const i=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return p(this,void 0,void 0,(function*(){const n=M.createWriteStream(t);const i=new y.HttpClient("actions/cache");const o=yield(0,ee.retryHttpClientResponse)("downloadCache",(()=>p(this,void 0,void 0,(function*(){return i.get(e)}))));o.message.socket.setTimeout(K.SocketTimeout,(()=>{o.message.destroy();f.debug(`Aborting download, socket timed out after ${K.SocketTimeout} ms`)}));yield pipeResponseToStream(o,n);const d=o.message.headers["content-length"];if(d){const e=parseInt(d);const n=j.getArchiveFileSizeInBytes(t);if(n!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}}else{f.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(e,t,n){var i;return p(this,void 0,void 0,(function*(){const o=yield M.promises.open(t,"w");const d=new y.HttpClient("actions/cache",undefined,{socketTimeout:n.timeoutInMs,keepAlive:true});try{const t=yield(0,ee.retryHttpClientResponse)("downloadCacheMetadata",(()=>p(this,void 0,void 0,(function*(){return yield d.request("HEAD",e,null,{})}))));const f=t.message.headers["content-length"];if(f===undefined||f===null){throw new Error("Content-Length not found on blob response")}const y=parseInt(f);if(Number.isNaN(y)){throw new Error(`Could not interpret Content-Length: ${y}`)}const v=[];const D=4*1024*1024;for(let t=0;tp(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(d,e,t,n)}))})}v.reverse();let M=0;let U=0;const V=new DownloadProgress(y);V.startDisplayTimer();const j=V.onProgress();const K=[];let te;const waitAndWrite=()=>p(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(K));yield o.write(e.buffer,0,e.count,e.offset);M--;delete K[e.offset];U+=e.count;j({loadedBytes:U})}));while(te=v.pop()){K[te.offset]=te.promiseGetter();M++;if(M>=((i=n.downloadConcurrency)!==null&&i!==void 0?i:10)){yield waitAndWrite()}}while(M>0){yield waitAndWrite()}}finally{d.dispose();yield o.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=5;let d=0;while(true){try{const o=3e4;const d=yield promiseWithTimeout(o,downloadSegment(e,t,n,i));if(typeof d==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return d}catch(e){if(d>=o){throw e}d++}}}))}function downloadSegment(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=yield(0,ee.retryHttpClientResponse)("downloadCachePart",(()=>p(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${n}-${n+i-1}`})}))));if(!o.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:n,count:i,buffer:yield o.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,n){var i;return p(this,void 0,void 0,(function*(){const o=new v.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}});const d=yield o.getProperties();const p=(i=d.contentLength)!==null&&i!==void 0?i:-1;if(p<0){f.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,D.constants.MAX_LENGTH);const i=new DownloadProgress(p);const d=M.openSync(t,"w");try{i.startDisplayTimer();const t=new te.AbortController;const f=t.signal;while(!i.isDone()){const y=i.segmentOffset+i.segmentSize;const v=Math.min(e,p-y);i.nextSegment(v);const D=yield promiseWithTimeout(n.segmentTimeoutInMs||36e5,o.downloadToBuffer(y,v,{abortSignal:f,concurrency:n.downloadConcurrency,onProgress:i.onProgress()}));if(D==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(D)){M.writeFileSync(d,D)}}}finally{i.stopDisplayTimer();M.closeSync(d)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>p(void 0,void 0,void 0,(function*(){let n;const i=new Promise((t=>{n=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,i]).then((e=>{clearTimeout(n);return e}))}))},32846:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const f=d(n(37484));const y=n(54844);const v=n(58287);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[y.HttpCodes.BadGateway,y.HttpCodes.ServiceUnavailable,y.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return p(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,n,i=v.DefaultRetryAttempts,o=v.DefaultRetryDelay,d=undefined){return p(this,void 0,void 0,(function*(){let p="";let y=1;while(y<=i){let v=undefined;let D=undefined;let M=false;try{v=yield t()}catch(e){if(d){v=d(e)}M=true;p=e.message}if(v){D=n(v);if(!isServerErrorStatusCode(D)){return v}}if(D){M=isRetryableStatusCode(D);p=`Cache service responded with ${D}`}f.debug(`${e} - Attempt ${y} of ${i} failed with error: ${p}`);if(!M){f.debug(`${e} - Error is not retryable`);break}yield sleep(o);y++}throw Error(`${e} failed: ${p}`)}))}t.retry=retry;function retryTypedResponse(e,t,n=v.DefaultRetryAttempts,i=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),n,i,(e=>{if(e instanceof y.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,n=v.DefaultRetryAttempts,i=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),n,i)}))}t.retryHttpClientResponse=retryHttpClientResponse},96819:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.internalCacheTwirpClient=void 0;const o=n(37484);const d=n(41899);const p=n(50263);const f=n(17606);const y=n(98299);const v=n(44552);const D=n(54844);const M=n(11486);const U=n(27564);class CacheServiceClient{constructor(e,t,n,i){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const o=(0,y.getRuntimeToken)();this.baseUrl=(0,f.getCacheServiceURL)();if(t){this.maxAttempts=t}if(n){this.baseRetryIntervalMilliseconds=n}if(i){this.retryMultiplier=i}this.httpClient=new D.HttpClient(e,[new v.BearerCredentialHandler(o)])}request(e,t,n,d){return i(this,void 0,void 0,(function*(){const p=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,o.debug)(`[Request] ${t} ${p}`);const f={"Content-Type":n};try{const{body:e}=yield this.retryableRequest((()=>i(this,void 0,void 0,(function*(){return this.httpClient.post(p,JSON.stringify(d),f)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return i(this,void 0,void 0,(function*(){let t=0;let n="";let i="";while(t=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[D.HttpCodes.BadGateway,D.HttpCodes.GatewayTimeout,D.HttpCodes.InternalServerError,D.HttpCodes.ServiceUnavailable,D.HttpCodes.TooManyRequests];return t.includes(e)}sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient((0,d.getUserAgentString)(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new M.CacheServiceClientJSON(t)}t.internalCacheTwirpClient=internalCacheTwirpClient},50263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UsageError=t.NetworkError=t.GHESNotSupportedError=t.CacheNotFoundError=t.InvalidResponseError=t.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}t.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}t.InvalidResponseError=InvalidResponseError;class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}t.CacheNotFoundError=CacheNotFoundError;class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}t.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t);this.code=e;this.name="NetworkError"}}t.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e);this.name="UsageError"}}t.UsageError=UsageError;UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")}},41899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentString=void 0;const i=n(64012);function getUserAgentString(){return`@actions/cache-${i.version}`}t.getUserAgentString=getUserAgentString},27564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.maskSecretUrls=t.maskSigUrl=void 0;const i=n(37484);function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const n=t.searchParams.get("sig");if(n){(0,i.setSecret)(n);(0,i.setSecret)(encodeURIComponent(n))}}catch(t){(0,i.debug)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}t.maskSigUrl=maskSigUrl;function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,i.debug)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}t.maskSecretUrls=maskSecretUrls},95321:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const f=n(95236);const y=d(n(94994));const v=n(79896);const D=d(n(16928));const M=d(n(98299));const U=n(58287);const V=process.platform==="win32";function getTarPath(){return p(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield M.getGnuTarPathOnWindows();const t=U.SystemTarPathOnWindows;if(e){return{path:e,type:U.ArchiveToolType.GNU}}else if((0,v.existsSync)(t)){return{path:t,type:U.ArchiveToolType.BSD}}break}case"darwin":{const e=yield y.which("gtar",false);if(e){return{path:e,type:U.ArchiveToolType.GNU}}else{return{path:yield y.which("tar",true),type:U.ArchiveToolType.BSD}}}default:break}return{path:yield y.which("tar",true),type:U.ArchiveToolType.GNU}}))}function getTarArgs(e,t,n,i=""){return p(this,void 0,void 0,(function*(){const o=[`"${e.path}"`];const d=M.getCacheFileName(t);const p="cache.tar";const f=getWorkingDirectory();const y=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(n){case"create":o.push("--posix","-cf",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--exclude",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--files-from",U.ManifestFilename);break;case"extract":o.push("-xf",y?p:i.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"));break;case"list":o.push("-tf",y?p:i.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P");break}if(e.type===U.ArchiveToolType.GNU){switch(process.platform){case"win32":o.push("--force-local");break;case"darwin":o.push("--delay-directory-restore");break}}return o}))}function getCommands(e,t,n=""){return p(this,void 0,void 0,(function*(){let i;const o=yield getTarPath();const d=yield getTarArgs(o,e,t,n);const p=t!=="create"?yield getDecompressionProgram(o,e,n):yield getCompressionProgram(o,e);const f=o.type===U.ArchiveToolType.BSD&&e!==U.CompressionMethod.Gzip&&V;if(f&&t!=="create"){i=[[...p].join(" "),[...d].join(" ")]}else{i=[[...d].join(" "),[...p].join(" ")]}if(f){return i}return[i.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,n){return p(this,void 0,void 0,(function*(){const i=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return i?["zstd -d --long=30 --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d --long=30"':"unzstd --long=30"];case U.CompressionMethod.ZstdWithoutLong:return i?["zstd -d --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return p(this,void 0,void 0,(function*(){const n=M.getCacheFileName(t);const i=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return i?["zstd -T0 --long=30 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0 --long=30"':"zstdmt --long=30"];case U.CompressionMethod.ZstdWithoutLong:return i?["zstd -T0 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return p(this,void 0,void 0,(function*(){for(const n of e){try{yield(0,f.exec)(n,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${n.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return p(this,void 0,void 0,(function*(){const n=yield getCommands(t,"list",e);yield execCommands(n)}))}t.listTar=listTar;function extractTar(e,t){return p(this,void 0,void 0,(function*(){const n=getWorkingDirectory();yield y.mkdirP(n);const i=yield getCommands(t,"extract",e);yield execCommands(i)}))}t.extractTar=extractTar;function createTar(e,t,n){return p(this,void 0,void 0,(function*(){(0,v.writeFileSync)(D.join(e,U.ManifestFilename),t.join("\n"));const i=yield getCommands(n,"create");yield execCommands(i,e)}))}t.createTar=createTar},35268:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.uploadCacheArchiveSDK=t.UploadProgress=void 0;const f=d(n(37484));const y=n(71400);const v=n(50263);class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const i=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Sent ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.UploadProgress=UploadProgress;function uploadCacheArchiveSDK(e,t,n){var i;return p(this,void 0,void 0,(function*(){const o=new y.BlobClient(e);const d=o.getBlockBlobClient();const p=new UploadProgress((i=n===null||n===void 0?void 0:n.archiveSizeBytes)!==null&&i!==void 0?i:0);const D={blockSize:n===null||n===void 0?void 0:n.uploadChunkSize,concurrency:n===null||n===void 0?void 0:n.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:p.onProgress()};try{p.startDisplayTimer();f.debug(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);const e=yield d.uploadFile(t,D);if(e._response.status>=400){throw new v.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){f.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{p.stopDisplayTimer()}}))}t.uploadCacheArchiveSDK=uploadCacheArchiveSDK},98356:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const p=d(n(37484));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Upload concurrency: ${t.uploadConcurrency}`);p.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const n=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(n&&!isNaN(Number(n))&&isFinite(Number(n))){t.segmentTimeoutInMs=Number(n)*60*1e3}p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Download concurrency: ${t.downloadConcurrency}`);p.debug(`Request timeout (ms): ${t.timeoutInMs}`);p.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);p.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);p.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},53272:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var o=Number.MAX_SAFE_INTEGER||9007199254740991;var d=16;var p=i-6;var f=t.re=[];var y=t.safeRe=[];var v=t.src=[];var D=t.tokens={};var M=0;function tok(e){D[e]=M++}var U="[a-zA-Z0-9-]";var V=[["\\s",1],["\\d",i],[U,p]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");v[D.XRANGEIDENTIFIERLOOSE]=v[D.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");v[D.XRANGEIDENTIFIER]=v[D.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");v[D.XRANGEPLAIN]="[v=\\s]*("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:"+v[D.PRERELEASE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");v[D.XRANGEPLAINLOOSE]="[v=\\s]*("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+v[D.PRERELEASELOOSE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGE");v[D.XRANGE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAIN]+"$";tok("XRANGELOOSE");v[D.XRANGELOOSE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAINLOOSE]+"$";tok("COERCE");v[D.COERCE]="(^|[^\\d])"+"(\\d{1,"+d+"})"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");f[D.COERCERTL]=new RegExp(v[D.COERCE],"g");y[D.COERCERTL]=new RegExp(makeSafeRe(v[D.COERCE]),"g");tok("LONETILDE");v[D.LONETILDE]="(?:~>?)";tok("TILDETRIM");v[D.TILDETRIM]="(\\s*)"+v[D.LONETILDE]+"\\s+";f[D.TILDETRIM]=new RegExp(v[D.TILDETRIM],"g");y[D.TILDETRIM]=new RegExp(makeSafeRe(v[D.TILDETRIM]),"g");var j="$1~";tok("TILDE");v[D.TILDE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAIN]+"$";tok("TILDELOOSE");v[D.TILDELOOSE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAINLOOSE]+"$";tok("LONECARET");v[D.LONECARET]="(?:\\^)";tok("CARETTRIM");v[D.CARETTRIM]="(\\s*)"+v[D.LONECARET]+"\\s+";f[D.CARETTRIM]=new RegExp(v[D.CARETTRIM],"g");y[D.CARETTRIM]=new RegExp(makeSafeRe(v[D.CARETTRIM]),"g");var K="$1^";tok("CARET");v[D.CARET]="^"+v[D.LONECARET]+v[D.XRANGEPLAIN]+"$";tok("CARETLOOSE");v[D.CARETLOOSE]="^"+v[D.LONECARET]+v[D.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");v[D.COMPARATORLOOSE]="^"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");v[D.COMPARATOR]="^"+v[D.GTLT]+"\\s*("+v[D.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");v[D.COMPARATORTRIM]="(\\s*)"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+"|"+v[D.XRANGEPLAIN]+")";f[D.COMPARATORTRIM]=new RegExp(v[D.COMPARATORTRIM],"g");y[D.COMPARATORTRIM]=new RegExp(makeSafeRe(v[D.COMPARATORTRIM]),"g");var ee="$1$2$3";tok("HYPHENRANGE");v[D.HYPHENRANGE]="^\\s*("+v[D.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");v[D.HYPHENRANGELOOSE]="^\\s*("+v[D.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");v[D.STAR]="(<|>)?=?\\s*\\*";for(var te=0;tei){return null}var n=t.loose?y[D.LOOSE]:y[D.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var d=e.trim().match(t.loose?y[D.LOOSE]:y[D.FULL]);if(!d){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+d[1];this.minor=+d[2];this.patch=+d[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!d[4]){this.prerelease=[]}else{this.prerelease=d[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var o="";if(n.prerelease.length||i.prerelease.length){o="pre";var d="prerelease"}for(var p in n){if(p==="major"||p==="minor"||p==="patch"){if(n[p]!==i[p]){return o+p}}}return d}}t.compareIdentifiers=compareIdentifiers;var re=/^[0-9]+$/;function compareIdentifiers(e,t){var n=re.test(e);var i=re.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ne){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var ne={};Comparator.prototype.parse=function(e){var t=this.options.loose?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=ne}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===ne||e===ne){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var d=this.semver.version===e.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var y=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||o||d&&p||f||y};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var i=t?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(y[D.COMPARATORTRIM],ee);n("comparator trim",e,y[D.COMPARATORTRIM]);e=e.replace(y[D.TILDETRIM],j);e=e.replace(y[D.CARETTRIM],K);e=e.split(/\s+/).join(" ");var o=t?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var d=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){d=d.filter((function(e){return!!e.match(o)}))}d=d.map((function(e){return new Comparator(e,this.options)}),this);return d};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var o=i.pop();while(n&&i.length){n=i.every((function(e){return o.intersects(e,t)}));o=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?y[D.TILDELOOSE]:y[D.TILDE];return e.replace(i,(function(t,i,o,d,p){n("tilde",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else if(p){n("replaceTilde pr",p);f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}n("tilde return",f);return f}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?y[D.CARETLOOSE]:y[D.CARET];return e.replace(i,(function(t,i,o,d,p){n("caret",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){if(i==="0"){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+".0 <"+(+i+1)+".0.0"}}else if(p){n("replaceCaret pr",p);if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+" <"+(+i+1)+".0.0"}}n("caret return",f);return f}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?y[D.XRANGELOOSE]:y[D.XRANGE];return e.replace(i,(function(i,o,d,p,f,y){n("xRange",e,i,o,d,p,f,y);var v=isX(d);var D=v||isX(p);var M=D||isX(f);var U=M;if(o==="="&&U){o=""}y=t.includePrerelease?"-0":"";if(v){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&U){if(D){p=0}f=0;if(o===">"){o=">=";if(D){d=+d+1;p=0;f=0}else{p=+p+1;f=0}}else if(o==="<="){o="<";if(D){d=+d+1}else{p=+p+1}}i=o+d+"."+p+"."+f+y}else if(D){i=">="+d+".0.0"+y+" <"+(+d+1)+".0.0"+y}else if(M){i=">="+d+"."+p+".0"+y+" <"+d+"."+(+p+1)+".0"+y}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(y[D.STAR],"")}function hyphenReplace(e,t,n,i,o,d,p,f,y,v,D,M,U){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(o)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(y)){f=""}else if(isX(v)){f="<"+(+y+1)+".0.0"}else if(isX(D)){f="<"+y+"."+(+v+1)+".0"}else if(M){f="<="+y+"."+v+"."+D+"-"+M}else{f="<="+f}return(t+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var d=e[o].semver;if(d.major===t.major&&d.minor===t.minor&&d.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===-1){i=e;o=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===1){i=e;o=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var o,d,p,f,y;switch(n){case">":o=gt;d=lte;p=lt;f=">";y=">=";break;case"<":o=lt;d=gte;p=gt;f="<";y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var v=0;v=0.0.0")}M=M||e;U=U||e;if(o(e.semver,M.semver,i)){M=e}else if(p(e.semver,U.semver,i)){U=e}}));if(M.operator===f||M.operator===y){return false}if((!U.operator||U.operator===f)&&d(e,U.semver)){return false}else if(U.operator===y&&p(e,U.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(y[D.COERCE])}else{var i;while((i=y[D.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}y[D.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}y[D.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},44914:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const p=d(n(70857));const f=n(30302);function issueCommand(e,t,n){const i=new Command(e,t,n);process.stdout.write(i.toString()+p.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const y="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=y+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const i=this.properties[n];if(i){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(i)}`}}}}e+=`${y}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const f=n(44914);const y=n(24753);const v=n(30302);const D=d(n(70857));const M=d(n(16928));const U=n(35306);var V;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(V||(t.ExitCode=V={}));function exportVariable(e,t){const n=(0,v.toCommandValue)(t);process.env[e]=n;const i=process.env["GITHUB_ENV"]||"";if(i){return(0,y.issueFileCommand)("ENV",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){(0,f.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,y.issueFileCommand)("PATH",e)}else{(0,f.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${M.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const i=["false","False","FALSE"];const o=getInput(e,t);if(n.includes(o))return true;if(i.includes(o))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return(0,y.issueFileCommand)("OUTPUT",(0,y.prepareKeyValueMessage)(e,t))}process.stdout.write(D.EOL);(0,f.issueCommand)("set-output",{name:e},(0,v.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,f.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=V.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,f.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,f.issueCommand)("error",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,f.issueCommand)("warning",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,f.issueCommand)("notice",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+D.EOL)}t.info=info;function startGroup(e){(0,f.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,f.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return p(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return(0,y.issueFileCommand)("STATE",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("save-state",{name:e},(0,v.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return p(this,void 0,void 0,(function*(){return yield U.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var j=n(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return j.summary}});var K=n(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return K.markdownSummary}});var ee=n(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return ee.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return ee.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return ee.toPlatformPath}});t.platform=d(n(18968))},24753:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const p=d(n(76982));const f=d(n(79896));const y=d(n(70857));const v=n(30302);function issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!f.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}f.appendFileSync(n,`${(0,v.toCommandValue)(t)}${y.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${p.randomUUID()}`;const i=(0,v.toCommandValue)(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(i.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${y.EOL}${i}${y.EOL}${n}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const o=n(54844);const d=n(44552);const p=n(37484);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new o.HttpClient("actions/oidc-client",[new d.BearerCredentialHandler(OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const i=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const o=(t=i.result)===null||t===void 0?void 0:t.value;if(!o){throw new Error("Response json body do not have ID Token field")}return o}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}(0,p.debug)(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);(0,p.setSecret)(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const p=d(n(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,p.sep)}t.toPlatformPath=toPlatformPath},18968:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const y=f(n(70857));const v=d(n(95236));const getWindowsInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>p(void 0,void 0,void 0,(function*(){var e,t,n,i;const{stdout:o}=yield v.getExecOutput("sw_vers",undefined,{silent:true});const d=(t=(e=o.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const p=(i=(n=o.match(/ProductName:\s*(.+)/))===null||n===void 0?void 0:n[1])!==null&&i!==void 0?i:"";return{name:p,version:d}}));const getLinuxInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,n]=e.trim().split("\n");return{name:t,version:n}}));t.platform=y.default.platform();t.arch=y.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return p(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},71847:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const o=n(70857);const d=n(79896);const{access:p,appendFile:f,writeFile:y}=d.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield p(e,d.constants.R_OK|d.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const i=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${i}>`}return`<${e}${i}>${t}`}write(e){return i(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const i=t?y:f;yield i(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(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(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(o.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const o=this.wrap(n,i);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:i,rowspan:o}=e;const d=t?"th":"td";const p=Object.assign(Object.assign({},i&&{colspan:i}),o&&{rowspan:o});return this.wrap(d,n,p)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:i,height:o}=n||{};const d=Object.assign(Object.assign({},i&&{width:i}),o&&{height:o});const p=this.wrap("img",null,Object.assign({src:e,alt:t},d));return this.addRaw(p).addEOL()}addHeading(e,t){const n=`h${t}`;const i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const o=this.wrap(i,e);return this.addRaw(o).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const v=new Summary;t.markdownSummary=v;t.summary=v},30302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},95236:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const f=n(13193);const y=d(n(6665));function exec(e,t,n){return p(this,void 0,void 0,(function*(){const i=y.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=i[0];t=i.slice(1).concat(t||[]);const d=new y.ToolRunner(o,t,n);return d.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var i,o;return p(this,void 0,void 0,(function*(){let d="";let p="";const y=new f.StringDecoder("utf8");const v=new f.StringDecoder("utf8");const D=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stdout;const M=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stderr;const stdErrListener=e=>{p+=v.write(e);if(M){M(e)}};const stdOutListener=e=>{d+=y.write(e);if(D){D(e)}};const U=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const V=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:U}));d+=y.end();p+=v.end();return{exitCode:V,stdout:d,stderr:p}}))}t.getExecOutput=getExecOutput},6665:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const f=d(n(70857));const y=d(n(24434));const v=d(n(35317));const D=d(n(16928));const M=d(n(94994));const U=d(n(75207));const V=n(53557);const j=process.platform==="win32";class ToolRunner extends y.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const i=this._getSpawnArgs(e);let o=t?"":"[command]";if(j){if(this._isCmdFile()){o+=n;for(const e of i){o+=` ${e}`}}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(const e of i){o+=` ${e}`}}else{o+=this._windowsQuoteCmdArg(n);for(const e of i){o+=` ${this._windowsQuoteCmdArg(e)}`}}}else{o+=n;for(const e of i){o+=` ${e}`}}return o}_processLineBuffer(e,t,n){try{let i=t+e.toString();let o=i.indexOf(f.EOL);while(o>-1){const e=i.substring(0,o);n(e);i=i.substring(o+f.EOL.length);o=i.indexOf(f.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(j){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(j){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const i of e){if(t.some((e=>e===i))){n=true;break}}if(!n){return e}let i='"';let o=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(o&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){o=true;i+='"'}else{o=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(n&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return p(this,void 0,void 0,(function*(){if(!U.isRooted(this.toolPath)&&(this.toolPath.includes("/")||j&&this.toolPath.includes("\\"))){this.toolPath=D.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield M.which(this.toolPath,true);return new Promise(((e,t)=>p(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+f.EOL)}const i=new ExecState(n,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield U.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const o=this._getSpawnFileName();const d=v.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let p="";if(d.stdout){d.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let y="";if(d.stderr){d.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}y=this._processLineBuffer(e,y,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}d.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));d.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));d.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((n,i)=>{if(p.length>0){this.emit("stdline",p)}if(y.length>0){this.emit("errline",y)}d.removeAllListeners();if(n){t(n)}else{e(i)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let i=false;let o="";function append(e){if(i&&e!=='"'){o+="\\"}o+=e;i=false}for(let d=0;d0){t.push(o);o=""}continue}append(p)}if(o.length>0){t.push(o.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends y.EventEmitter{constructor(e,t){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(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=V.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=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){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=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",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},47206:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const o=n(10103);function create(e,t){return i(this,void 0,void 0,(function*(){return yield o.DefaultGlobber.create(e,t)}))}t.create=create},18164:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const p=d(n(37484));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;p.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;p.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;p.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},10103:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(i,o){n=e[t](n),settle(i,o,n.done,n.value)}))}}function settle(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};var y=this&&this.__await||function(e){return this instanceof y?(this.v=e,this):new y(e)};var v=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),o,d=[];return o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o;function verb(e){if(i[e])o[e]=function(t){return new Promise((function(n,i){d.push([e,t,n,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof y?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const D=d(n(37484));const M=d(n(79896));const U=d(n(18164));const V=d(n(16928));const j=d(n(98891));const K=n(62644);const ee=n(25370);const te=n(79890);const re=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=U.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return p(this,void 0,void 0,(function*(){const n=[];try{for(var i=f(this.globGenerator()),o;o=yield i.next(),!o.done;){const e=o.value;n.push(e)}}catch(t){e={error:t}}finally{try{if(o&&!o.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return n}))}globGenerator(){return v(this,arguments,(function*globGenerator_1(){const e=U.getOptions(this.options);const t=[];for(const n of this.patterns){t.push(n);if(e.implicitDescendants&&(n.trailingSeparator||n.segments[n.segments.length-1]!=="**")){t.push(new ee.Pattern(n.negate,true,n.segments.concat("**")))}}const n=[];for(const e of j.getSearchPaths(t)){D.debug(`Search path '${e}'`);try{yield y(M.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}n.unshift(new te.SearchState(e,1))}const i=[];while(n.length){const o=n.pop();const d=j.match(t,o.path);const p=!!d||j.partialMatch(t,o.path);if(!d&&!p){continue}const f=yield y(DefaultGlobber.stat(o,e,i));if(!f){continue}if(f.isDirectory()){if(d&K.MatchKind.Directory){yield yield y(o.path)}else if(!p){continue}const e=o.level+1;const t=(yield y(M.promises.readdir(o.path))).map((t=>new te.SearchState(V.join(o.path,t),e)));n.push(...t.reverse())}else if(d&K.MatchKind.File){yield yield y(o.path)}}}))}static create(e,t){return p(this,void 0,void 0,(function*(){const n=new DefaultGlobber(t);if(re){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{n.patterns.push(new ee.Pattern(e))}}n.searchPaths.push(...j.getSearchPaths(n.patterns));return n}))}static stat(e,t,n){return p(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield M.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){D.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}}else{i=yield M.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield M.promises.realpath(e.path);while(n.length>=e.level){n.pop()}if(n.some((e=>e===t))){D.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}n.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},62644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var n;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(n=t.MatchKind||(t.MatchKind={}))},84138:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const f=d(n(16928));const y=p(n(42613));const v=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(v&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=f.dirname(e);if(v&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){y.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);y.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(v){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}y.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||v&&e.endsWith("\\")){}else{e+=f.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){y.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){y.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(v){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(f.sep)){return e}if(e===f.sep){return e}if(v&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},76617:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const f=d(n(16928));const y=d(n(84138));const v=p(n(42613));const D=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){v.default(e,`Parameter 'itemPath' must not be empty`);e=y.safeTrimTrailingSeparator(e);if(!y.hasRoot(e)){this.segments=e.split(f.sep)}else{let t=e;let n=y.dirname(t);while(n!==t){const e=f.basename(t);this.segments.unshift(e);t=n;n=y.dirname(t)}this.segments.unshift(t)}}else{v.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const n of e){const e=y?n.searchPath.toUpperCase():n.searchPath;t[e]="candidate"}const n=[];for(const i of e){const e=y?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let o=false;let d=e;let f=p.dirname(d);while(f!==d){if(t[f]){o=true;break}d=f;f=p.dirname(d)}if(!o){n.push(i.searchPath);t[e]="included"}}return n}t.getSearchPaths=getSearchPaths;function match(e,t){let n=f.MatchKind.None;for(const i of e){if(i.negate){n&=~i.match(t)}else{n|=i.match(t)}}return n}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},25370:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const f=d(n(70857));const y=d(n(16928));const v=d(n(84138));const D=p(n(42613));const M=n(43772);const U=n(62644);const V=n(76617);const j=process.platform==="win32";class Pattern{constructor(e,t=false,n,i){this.negate=false;let o;if(typeof e==="string"){o=e.trim()}else{n=n||[];D.default(n.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(n[0]);D.default(t&&v.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);o=new V.Path(n).toString().trim();if(e){o=`!${o}`}}while(o.startsWith("!")){this.negate=!this.negate;o=o.substr(1).trim()}o=Pattern.fixupPattern(o,i);this.segments=new V.Path(o).segments;this.trailingSeparator=v.normalizeSeparators(o).endsWith(y.sep);o=v.safeTrimTrailingSeparator(o);let d=false;const p=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!d&&!(d=e==="")));this.searchPath=new V.Path(p).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(p[0]),j?"i":"");this.isImplicitPattern=t;const f={dot:true,nobrace:true,nocase:j,nocomment:true,noext:true,nonegate:true};o=j?o.replace(/\\/g,"/"):o;this.minimatch=new M.Minimatch(o,f)}match(e){if(this.segments[this.segments.length-1]==="**"){e=v.normalizeSeparators(e);if(!e.endsWith(y.sep)&&this.isImplicitPattern===false){e=`${e}${y.sep}`}}else{e=v.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?U.MatchKind.Directory:U.MatchKind.All}return U.MatchKind.None}partialMatch(e){e=v.safeTrimTrailingSeparator(e);if(v.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(j?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(j?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){D.default(e,"pattern cannot be empty");const n=new V.Path(e).segments.map((e=>Pattern.getLiteral(e)));D.default(n.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);D.default(!v.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=v.normalizeSeparators(e);if(e==="."||e.startsWith(`.${y.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${y.sep}`)){t=t||f.homedir();D.default(t,"Unable to determine HOME directory");D.default(v.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(j&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=v.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(j&&(e==="\\"||e.match(/^\\[^\\]/))){let t=v.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=v.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return v.normalizeSeparators(e)}static getLiteral(e){let t="";for(let n=0;n=0){if(i.length>1){return""}if(i){t+=i;n=o;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},79890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},44552:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const f=d(n(58611));const y=d(n(65692));const v=d(n(54988));const D=d(n(20770));const M=n(46752);var U;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(U||(t.HttpCodes=U={}));var V;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(V||(t.Headers=V={}));var j;(function(e){e["ApplicationJson"]="application/json"})(j||(t.MediaTypes=j={}));function getProxyUrl(e){const t=v.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const K=[U.MovedPermanently,U.ResourceMoved,U.SeeOther,U.TemporaryRedirect,U.PermanentRedirect];const ee=[U.BadGateway,U.ServiceUnavailable,U.GatewayTimeout];const te=["OPTIONS","GET","DELETE","HEAD"];const re=10;const ne=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){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=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return p(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return p(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return p(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,i){return p(this,void 0,void 0,(function*(){return this.request(e,t,n,i)}))}getJson(e,t={}){return p(this,void 0,void 0,(function*(){t[V.Accept]=this._getExistingOrDefaultHeader(t,V.Accept,j.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const o=yield this.post(e,i,n);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const o=yield this.put(e,i,n);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const o=yield this.patch(e,i,n);return this._processResponse(o,this.requestOptions)}))}request(e,t,n,i){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const o=new URL(t);let d=this._prepareRequest(e,o,i);const p=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let f=0;let y;do{y=yield this.requestRaw(d,n);if(y&&y.message&&y.message.statusCode===U.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,d,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&K.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const p=y.message.headers["location"];if(!p){break}const f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.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 y.readBody();if(f.hostname!==o.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}d=this._prepareRequest(e,f,i);y=yield this.requestRaw(d,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}f+=1;if(f{function callbackForResult(e,t){if(e){i(e)}else if(!t){i(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;function handleResult(e,t){if(!i){i=true;n(e,t)}}const o=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let d;o.on("socket",(e=>{d=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));o.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=v.getProxyUrl(t);const i=n&&n.hostname;if(!i){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const i={};i.parsedUrl=t;const o=i.parsedUrl.protocol==="https:";i.httpModule=o?y:f;const d=o?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):d;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||n}_getAgent(e){let t;const n=v.getProxyUrl(e);const i=n&&n.hostname;if(this._keepAlive&&i){t=this._proxyAgent}if(!i){t=this._agent}if(t){return t}const o=e.protocol==="https:";let d=100;if(this.requestOptions){d=this.requestOptions.maxSockets||f.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:d,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let i;const p=n.protocol==="https:";if(o){i=p?D.httpsOverHttps:D.httpsOverHttp}else{i=p?D.httpOverHttps:D.httpOverHttp}t=i(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=o?new y.Agent(e):new f.Agent(e);this._agent=t}if(o&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const i=e.protocol==="https:";n=new M.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(i&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_performExponentialBackoff(e){return p(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return p(this,void 0,void 0,(function*(){return new Promise(((n,i)=>p(this,void 0,void 0,(function*(){const o=e.message.statusCode||0;const d={statusCode:o,result:null,headers:{}};if(o===U.NotFound){n(d)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let p;let f;try{f=yield e.readBody();if(f&&f.length>0){if(t&&t.deserializeDates){p=JSON.parse(f,dateTimeDeserializer)}else{p=JSON.parse(f)}d.result=p}d.headers=e.message.headers}catch(e){}if(o>299){let e;if(p&&p.message){e=p.message}else if(f&&f.length>0){e=f}else{e=`Failed request: (${o})`}const t=new HttpClientError(e,o);t.result=d.result;i(t)}else{n(d)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},54988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let i;if(e.port){i=Number(e.port)}else if(e.protocol==="http:"){i=80}else if(e.protocol==="https:"){i=443}const o=[e.hostname.toUpperCase()];if(typeof i==="number"){o.push(`${o[0]}:${i}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||o.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75207:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const y=d(n(79896));const v=d(n(16928));f=y.promises,t.chmod=f.chmod,t.copyFile=f.copyFile,t.lstat=f.lstat,t.mkdir=f.mkdir,t.open=f.open,t.readdir=f.readdir,t.readlink=f.readlink,t.rename=f.rename,t.rm=f.rm,t.rmdir=f.rmdir,t.stat=f.stat,t.symlink=f.symlink,t.unlink=f.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=y.constants.O_RDONLY;function exists(e){return p(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,n=false){return p(this,void 0,void 0,(function*(){const i=n?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,n){return p(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=v.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const o=e;for(const d of n){e=o+d;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const n=v.dirname(e);const i=v.basename(e).toUpperCase();for(const o of yield t.readdir(n)){if(i===o.toUpperCase()){e=v.join(n,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},94994:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const f=n(42613);const y=d(n(16928));const v=d(n(75207));function cp(e,t,n={}){return p(this,void 0,void 0,(function*(){const{force:i,recursive:o,copySourceDirectory:d}=readCopyOptions(n);const p=(yield v.exists(t))?yield v.stat(t):null;if(p&&p.isFile()&&!i){return}const f=p&&p.isDirectory()&&d?y.join(t,y.basename(e)):t;if(!(yield v.exists(e))){throw new Error(`no such file or directory: ${e}`)}const D=yield v.stat(e);if(D.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,f,0,i)}}else{if(y.relative(e,f)===""){throw new Error(`'${f}' and '${e}' are the same file`)}yield copyFile(e,f,i)}}))}t.cp=cp;function mv(e,t,n={}){return p(this,void 0,void 0,(function*(){if(yield v.exists(t)){let i=true;if(yield v.isDirectory(t)){t=y.join(t,y.basename(e));i=yield v.exists(t)}if(i){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(y.dirname(t));yield v.rename(e,t)}))}t.mv=mv;function rmRF(e){return p(this,void 0,void 0,(function*(){if(v.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield v.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return p(this,void 0,void 0,(function*(){f.ok(e,"a path argument must be provided");yield v.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(v.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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: ${e}. 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 t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(v.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(y.delimiter)){if(e){t.push(e)}}}if(v.isRooted(e)){const n=yield v.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(y.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(y.delimiter)){if(e){n.push(e)}}}const i=[];for(const o of n){const n=yield v.tryGetExecutablePath(y.join(o,e),t);if(n){i.push(n)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:i}}function cpDirRecursive(e,t,n,i){return p(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const o=yield v.readdir(e);for(const d of o){const o=`${e}/${d}`;const p=`${t}/${d}`;const f=yield v.lstat(o);if(f.isDirectory()){yield cpDirRecursive(o,p,n,i)}else{yield copyFile(o,p,i)}}yield v.chmod(t,(yield v.stat(e)).mode)}))}function copyFile(e,t,n){return p(this,void 0,void 0,(function*(){if((yield v.lstat(e)).isSymbolicLink()){try{yield v.lstat(t);yield v.unlink(t)}catch(e){if(e.code==="EPERM"){yield v.chmod(t,"0666");yield v.unlink(t)}}const n=yield v.readlink(e);yield v.symlink(n,t,v.IS_WINDOWS?"junction":null)}else if(!(yield v.exists(t))||n){yield v.copyFile(e,t)}}))}},58036:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const f=d(n(46193));const y=n(37484);const v=n(70857);const D=n(35317);const M=n(79896);function _findMatch(t,n,i,o){return p(this,void 0,void 0,(function*(){const d=v.platform();let p;let D;let M;for(const p of i){const i=p.version;(0,y.debug)(`check ${i} satisfies ${t}`);if(f.satisfies(i,t)&&(!n||p.stable===n)){M=p.files.find((t=>{(0,y.debug)(`${t.arch}===${o} && ${t.platform}===${d}`);let n=t.arch===o&&t.platform===d;if(n&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){n=true}else{n=f.satisfies(i,t.platform_version)}}return n}));if(M){(0,y.debug)(`matched ${p.version}`);D=p;break}}}if(D&&M){p=Object.assign({},D);p.files=[M]}return p}))}t._findMatch=_findMatch;function _getOsVersion(){const t=v.platform();let n="";if(t==="darwin"){n=D.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let n="";if(M.existsSync(e)){n=M.readFileSync(e).toString()}else if(M.existsSync(t)){n=M.readFileSync(t).toString()}return n}t._readLinuxVersionFile=_readLinuxVersionFile},67380:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const f=d(n(37484));class RetryHelper{constructor(e,t,n){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(n);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return p(this,void 0,void 0,(function*(){let n=1;while(nsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},33472:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const f=d(n(37484));const y=d(n(94994));const v=d(n(76982));const D=d(n(79896));const M=d(n(58036));const U=d(n(70857));const V=d(n(16928));const j=d(n(54844));const K=d(n(46193));const ee=d(n(2203));const te=d(n(39023));const re=n(42613);const ne=n(95236);const ie=n(67380);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const oe=process.platform==="win32";const se=process.platform==="darwin";const ae="actions/tool-cache";function downloadTool(e,t,n,i){return p(this,void 0,void 0,(function*(){t=t||V.join(_getTempDirectory(),v.randomUUID());yield y.mkdirP(V.dirname(t));f.debug(`Downloading ${e}`);f.debug(`Destination ${t}`);const o=3;const d=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const D=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const M=new ie.RetryHelper(o,d,D);return yield M.execute((()=>p(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",n,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,n,i){return p(this,void 0,void 0,(function*(){if(D.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const o=new j.HttpClient(ae,[],{allowRetries:false});if(n){f.debug("set auth");if(i===undefined){i={}}i.authorization=n}const d=yield o.get(e,i);if(d.message.statusCode!==200){const t=new HTTPError(d.message.statusCode);f.debug(`Failed to download from "${e}". Code(${d.message.statusCode}) Message(${d.message.statusMessage})`);throw t}const p=te.promisify(ee.pipeline);const v=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>d.message));const M=v();let U=false;try{yield p(M,D.createWriteStream(t));f.debug("download complete");U=true;return t}finally{if(!U){f.debug("download failed");try{yield y.rmRF(t)}catch(e){f.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,n){return p(this,void 0,void 0,(function*(){(0,re.ok)(oe,"extract7z() not supported on current OS");(0,re.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(n){try{const t=f.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const o={silent:true};yield(0,ne.exec)(`"${n}"`,i,o)}finally{process.chdir(i)}}else{const n=V.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const p=`& '${n}' -Source '${o}' -Target '${d}'`;const f=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",p];const v={silent:true};try{const e=yield y.which("powershell",true);yield(0,ne.exec)(`"${e}"`,f,v)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,n="xz"){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);f.debug("Checking tar --version");let i="";yield(0,ne.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});f.debug(i.trim());const o=i.toUpperCase().includes("GNU TAR");let d;if(n instanceof Array){d=n}else{d=[n]}if(f.isDebug()&&!n.includes("v")){d.push("-v")}let p=t;let y=e;if(oe&&o){d.push("--force-local");p=t.replace(/\\/g,"/");y=e.replace(/\\/g,"/")}if(o){d.push("--warning=no-unknown-keyword");d.push("--overwrite")}d.push("-C",p,"-f",y);yield(0,ne.exec)(`tar`,d);return t}))}t.extractTar=extractTar;function extractXar(e,t,n=[]){return p(this,void 0,void 0,(function*(){(0,re.ok)(se,"extractXar() not supported on current OS");(0,re.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(n instanceof Array){i=n}else{i=[n]}i.push("-x","-C",t,"-f",e);if(f.isDebug()){i.push("-v")}const o=yield y.which("xar",true);yield(0,ne.exec)(`"${o}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(oe){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=yield y.which("pwsh",false);if(o){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];f.debug(`Using pwsh at path: ${o}`);yield(0,ne.exec)(`"${o}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const o=yield y.which("powershell",true);f.debug(`Using powershell at path: ${o}`);yield(0,ne.exec)(`"${o}"`,t)}}))}function extractZipNix(e,t){return p(this,void 0,void 0,(function*(){const n=yield y.which("unzip",true);const i=[e];if(!f.isDebug()){i.unshift("-q")}i.unshift("-o");yield(0,ne.exec)(`"${n}"`,i,{cwd:t})}))}function cacheDir(e,t,n,i){return p(this,void 0,void 0,(function*(){n=K.clean(n)||n;i=i||U.arch();f.debug(`Caching tool ${t} ${n} ${i}`);f.debug(`source dir: ${e}`);if(!D.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const o=yield _createToolPath(t,n,i);for(const t of D.readdirSync(e)){const n=V.join(e,t);yield y.cp(n,o,{recursive:true})}_completeToolPath(t,n,i);return o}))}t.cacheDir=cacheDir;function cacheFile(e,t,n,i,o){return p(this,void 0,void 0,(function*(){i=K.clean(i)||i;o=o||U.arch();f.debug(`Caching tool ${n} ${i} ${o}`);f.debug(`source file: ${e}`);if(!D.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const d=yield _createToolPath(n,i,o);const p=V.join(d,t);f.debug(`destination file ${p}`);yield y.cp(e,p);_completeToolPath(n,i,o);return d}))}t.cacheFile=cacheFile;function find(e,t,n){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}n=n||U.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,n);const o=evaluateVersions(i,t);t=o}let i="";if(t){t=K.clean(t)||"";const o=V.join(_getCacheDirectory(),e,t,n);f.debug(`checking cache: ${o}`);if(D.existsSync(o)&&D.existsSync(`${o}.complete`)){f.debug(`Found tool in cache ${e} ${t} ${n}`);i=o}else{f.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const n=[];t=t||U.arch();const i=V.join(_getCacheDirectory(),e);if(D.existsSync(i)){const e=D.readdirSync(i);for(const o of e){if(isExplicitVersion(o)){const e=V.join(i,o,t||"");if(D.existsSync(e)&&D.existsSync(`${e}.complete`)){n.push(o)}}}}return n}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,n,i="master"){return p(this,void 0,void 0,(function*(){let o=[];const d=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const p=new j.HttpClient("tool-cache");const y={};if(n){f.debug("set auth");y.authorization=n}const v=yield p.getJson(d,y);if(!v.result){return o}let D="";for(const e of v.result.tree){if(e.path==="versions-manifest.json"){D=e.url;break}}y["accept"]="application/vnd.github.VERSION.raw";let M=yield(yield p.get(D,y)).readBody();if(M){M=M.replace(/^\uFEFF/,"");try{o=JSON.parse(M)}catch(e){f.debug("Invalid json")}}return o}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,n,i=U.arch()){return p(this,void 0,void 0,(function*(){const o=yield M._findMatch(e,t,n,i);return o}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return p(this,void 0,void 0,(function*(){if(!e){e=V.join(_getTempDirectory(),v.randomUUID())}yield y.mkdirP(e);return e}))}function _createToolPath(e,t,n){return p(this,void 0,void 0,(function*(){const i=V.join(_getCacheDirectory(),e,K.clean(t)||t,n||"");f.debug(`destination ${i}`);const o=`${i}.complete`;yield y.rmRF(i);yield y.rmRF(o);yield y.mkdirP(i);return i}))}function _completeToolPath(e,t,n){const i=V.join(_getCacheDirectory(),e,K.clean(t)||t,n||"");const o=`${i}.complete`;D.writeFileSync(o,"");f.debug("finished caching tool")}function isExplicitVersion(e){const t=K.clean(e)||"";f.debug(`isExplicit: ${t}`);const n=K.valid(t)!=null;f.debug(`explicit? ${n}`);return n}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let n="";f.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(K.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const o=e[i];const d=K.satisfies(o,t);if(d){n=o;break}}if(n){f.debug(`matched: ${n}`)}else{f.debug("match not found")}return n}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,re.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,re.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const n=global[e];return n!==undefined?n:t}function _unique(e){return Array.from(new Set(e))}},46193:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var o=Number.MAX_SAFE_INTEGER||9007199254740991;var d=16;var p=i-6;var f=t.re=[];var y=t.safeRe=[];var v=t.src=[];var D=t.tokens={};var M=0;function tok(e){D[e]=M++}var U="[a-zA-Z0-9-]";var V=[["\\s",1],["\\d",i],[U,p]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");v[D.XRANGEIDENTIFIERLOOSE]=v[D.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");v[D.XRANGEIDENTIFIER]=v[D.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");v[D.XRANGEPLAIN]="[v=\\s]*("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:"+v[D.PRERELEASE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");v[D.XRANGEPLAINLOOSE]="[v=\\s]*("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+v[D.PRERELEASELOOSE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGE");v[D.XRANGE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAIN]+"$";tok("XRANGELOOSE");v[D.XRANGELOOSE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAINLOOSE]+"$";tok("COERCE");v[D.COERCE]="(^|[^\\d])"+"(\\d{1,"+d+"})"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");f[D.COERCERTL]=new RegExp(v[D.COERCE],"g");y[D.COERCERTL]=new RegExp(makeSafeRe(v[D.COERCE]),"g");tok("LONETILDE");v[D.LONETILDE]="(?:~>?)";tok("TILDETRIM");v[D.TILDETRIM]="(\\s*)"+v[D.LONETILDE]+"\\s+";f[D.TILDETRIM]=new RegExp(v[D.TILDETRIM],"g");y[D.TILDETRIM]=new RegExp(makeSafeRe(v[D.TILDETRIM]),"g");var j="$1~";tok("TILDE");v[D.TILDE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAIN]+"$";tok("TILDELOOSE");v[D.TILDELOOSE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAINLOOSE]+"$";tok("LONECARET");v[D.LONECARET]="(?:\\^)";tok("CARETTRIM");v[D.CARETTRIM]="(\\s*)"+v[D.LONECARET]+"\\s+";f[D.CARETTRIM]=new RegExp(v[D.CARETTRIM],"g");y[D.CARETTRIM]=new RegExp(makeSafeRe(v[D.CARETTRIM]),"g");var K="$1^";tok("CARET");v[D.CARET]="^"+v[D.LONECARET]+v[D.XRANGEPLAIN]+"$";tok("CARETLOOSE");v[D.CARETLOOSE]="^"+v[D.LONECARET]+v[D.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");v[D.COMPARATORLOOSE]="^"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");v[D.COMPARATOR]="^"+v[D.GTLT]+"\\s*("+v[D.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");v[D.COMPARATORTRIM]="(\\s*)"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+"|"+v[D.XRANGEPLAIN]+")";f[D.COMPARATORTRIM]=new RegExp(v[D.COMPARATORTRIM],"g");y[D.COMPARATORTRIM]=new RegExp(makeSafeRe(v[D.COMPARATORTRIM]),"g");var ee="$1$2$3";tok("HYPHENRANGE");v[D.HYPHENRANGE]="^\\s*("+v[D.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");v[D.HYPHENRANGELOOSE]="^\\s*("+v[D.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");v[D.STAR]="(<|>)?=?\\s*\\*";for(var te=0;tei){return null}var n=t.loose?y[D.LOOSE]:y[D.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var d=e.trim().match(t.loose?y[D.LOOSE]:y[D.FULL]);if(!d){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+d[1];this.minor=+d[2];this.patch=+d[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!d[4]){this.prerelease=[]}else{this.prerelease=d[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var o="";if(n.prerelease.length||i.prerelease.length){o="pre";var d="prerelease"}for(var p in n){if(p==="major"||p==="minor"||p==="patch"){if(n[p]!==i[p]){return o+p}}}return d}}t.compareIdentifiers=compareIdentifiers;var re=/^[0-9]+$/;function compareIdentifiers(e,t){var n=re.test(e);var i=re.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ne){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var ne={};Comparator.prototype.parse=function(e){var t=this.options.loose?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=ne}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===ne||e===ne){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var d=this.semver.version===e.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var y=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||o||d&&p||f||y};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var i=t?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(y[D.COMPARATORTRIM],ee);n("comparator trim",e,y[D.COMPARATORTRIM]);e=e.replace(y[D.TILDETRIM],j);e=e.replace(y[D.CARETTRIM],K);e=e.split(/\s+/).join(" ");var o=t?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var d=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){d=d.filter((function(e){return!!e.match(o)}))}d=d.map((function(e){return new Comparator(e,this.options)}),this);return d};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var o=i.pop();while(n&&i.length){n=i.every((function(e){return o.intersects(e,t)}));o=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?y[D.TILDELOOSE]:y[D.TILDE];return e.replace(i,(function(t,i,o,d,p){n("tilde",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else if(p){n("replaceTilde pr",p);f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}n("tilde return",f);return f}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?y[D.CARETLOOSE]:y[D.CARET];return e.replace(i,(function(t,i,o,d,p){n("caret",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){if(i==="0"){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+".0 <"+(+i+1)+".0.0"}}else if(p){n("replaceCaret pr",p);if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+" <"+(+i+1)+".0.0"}}n("caret return",f);return f}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?y[D.XRANGELOOSE]:y[D.XRANGE];return e.replace(i,(function(i,o,d,p,f,y){n("xRange",e,i,o,d,p,f,y);var v=isX(d);var D=v||isX(p);var M=D||isX(f);var U=M;if(o==="="&&U){o=""}y=t.includePrerelease?"-0":"";if(v){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&U){if(D){p=0}f=0;if(o===">"){o=">=";if(D){d=+d+1;p=0;f=0}else{p=+p+1;f=0}}else if(o==="<="){o="<";if(D){d=+d+1}else{p=+p+1}}i=o+d+"."+p+"."+f+y}else if(D){i=">="+d+".0.0"+y+" <"+(+d+1)+".0.0"+y}else if(M){i=">="+d+"."+p+".0"+y+" <"+d+"."+(+p+1)+".0"+y}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(y[D.STAR],"")}function hyphenReplace(e,t,n,i,o,d,p,f,y,v,D,M,U){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(o)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(y)){f=""}else if(isX(v)){f="<"+(+y+1)+".0.0"}else if(isX(D)){f="<"+y+"."+(+v+1)+".0"}else if(M){f="<="+y+"."+v+"."+D+"-"+M}else{f="<="+f}return(t+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var d=e[o].semver;if(d.major===t.major&&d.minor===t.minor&&d.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===-1){i=e;o=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===1){i=e;o=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var o,d,p,f,y;switch(n){case">":o=gt;d=lte;p=lt;f=">";y=">=";break;case"<":o=lt;d=gte;p=gt;f="<";y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var v=0;v=0.0.0")}M=M||e;U=U||e;if(o(e.semver,M.semver,i)){M=e}else if(p(e.semver,U.semver,i)){U=e}}));if(M.operator===f||M.operator===y){return false}if((!U.operator||U.operator===f)&&d(e,U.semver)){return false}else if(U.operator===y&&p(e,U.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(y[D.COERCE])}else{var i;while((i=y[D.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}y[D.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}y[D.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},68110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const i=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);i.set(this,false)}get aborted(){if(!i.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return i.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=n.get(this);i.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=n.get(this);const o=i.indexOf(t);if(o>-1){i.splice(o,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}i.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},37889:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=i;this.response=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:i}}))}}t.ClientStreamingCall=ClientStreamingCall},71409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},36826:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=i;this.responses=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},44420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=n(56892);Object.defineProperty(t,"ServiceType",{enumerable:true,get:function(){return i.ServiceType}});var o=n(62496);Object.defineProperty(t,"readMethodOptions",{enumerable:true,get:function(){return o.readMethodOptions}});Object.defineProperty(t,"readMethodOption",{enumerable:true,get:function(){return o.readMethodOption}});Object.defineProperty(t,"readServiceOption",{enumerable:true,get:function(){return o.readServiceOption}});var d=n(78636);Object.defineProperty(t,"RpcError",{enumerable:true,get:function(){return d.RpcError}});var p=n(28576);Object.defineProperty(t,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var f=n(72726);Object.defineProperty(t,"RpcOutputStreamController",{enumerable:true,get:function(){return f.RpcOutputStreamController}});var y=n(79122);Object.defineProperty(t,"TestTransport",{enumerable:true,get:function(){return y.TestTransport}});var v=n(71409);Object.defineProperty(t,"Deferred",{enumerable:true,get:function(){return v.Deferred}});Object.defineProperty(t,"DeferredState",{enumerable:true,get:function(){return v.DeferredState}});var D=n(36826);Object.defineProperty(t,"DuplexStreamingCall",{enumerable:true,get:function(){return D.DuplexStreamingCall}});var M=n(37889);Object.defineProperty(t,"ClientStreamingCall",{enumerable:true,get:function(){return M.ClientStreamingCall}});var U=n(46173);Object.defineProperty(t,"ServerStreamingCall",{enumerable:true,get:function(){return U.ServerStreamingCall}});var V=n(29288);Object.defineProperty(t,"UnaryCall",{enumerable:true,get:function(){return V.UnaryCall}});var j=n(52849);Object.defineProperty(t,"stackIntercept",{enumerable:true,get:function(){return j.stackIntercept}});Object.defineProperty(t,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return j.stackDuplexStreamingInterceptors}});Object.defineProperty(t,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return j.stackClientStreamingInterceptors}});Object.defineProperty(t,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return j.stackServerStreamingInterceptors}});Object.defineProperty(t,"stackUnaryInterceptors",{enumerable:true,get:function(){return j.stackUnaryInterceptors}});var K=n(43352);Object.defineProperty(t,"ServerCallContextController",{enumerable:true,get:function(){return K.ServerCallContextController}})},62496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const i=n(68886);function normalizeMethodInfo(e,t){var n,o,d;let p=e;p.service=t;p.localName=(n=p.localName)!==null&&n!==void 0?n:i.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(o=p.options)!==null&&o!==void 0?o:{};p.idempotency=(d=p.idempotency)!==null&&d!==void 0?d:undefined;return p}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,i){var o;const d=(o=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||o===void 0?void 0:o.options;return d&&d[n]?i.fromJson(d[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,i){var o;const d=(o=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||o===void 0?void 0:o.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return i?i.fromJson(p):p}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const i=e.options;if(!i){return undefined}const o=i[t];if(o===undefined){return o}return n?n.fromJson(o):o}t.readServiceOption=readServiceOption},78636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,i]of t){e.push(` ${n}: ${i}`)}}return e.join("\n")}}t.RpcError=RpcError},52849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const i=n(68886);function stackIntercept(e,t,n,o,d){var p,f,y,v;if(e=="unary"){let tail=(e,n,i)=>t.unary(e,n,i);for(const e of((p=o.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,i,o)=>e.interceptUnary(t,n,i,o)}return tail(n,d,o)}if(e=="serverStreaming"){let tail=(e,n,i)=>t.serverStreaming(e,n,i);for(const e of((f=o.interceptors)!==null&&f!==void 0?f:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,i,o)=>e.interceptServerStreaming(t,n,i,o)}return tail(n,d,o)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=o.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,i)=>e.interceptClientStreaming(t,n,i)}return tail(n,o)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((v=o.interceptors)!==null&&v!==void 0?v:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,i)=>e.interceptDuplex(t,n,i)}return tail(n,o)}i.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,i){return stackIntercept("unary",e,t,i,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,i){return stackIntercept("serverStreaming",e,t,i,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},28576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const i=n(68886);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let o of Object.keys(t)){let d=t[o];switch(o){case"jsonOptions":n.jsonOptions=i.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=i.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(d):d.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,i]of Object.entries(e)){if(i instanceof Date)n[t]=new Date(i.getTime());else if(Array.isArray(i))n[t]=i.concat();else n[t]=i}}},72726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const i=n(71409);const o=n(68886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){o.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){o.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){o.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){o.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;o.assert(e,"bad state");o.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new i.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;o.assert(n.state==i.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},43352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,i,o={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=i;this.status=o}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},46173:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=i;this.responses=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},56892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const i=n(62496);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>i.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},79122:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const o=n(78636);const d=n(68886);const p=n(72726);const f=n(28576);const y=n(29288);const v=n(46173);const D=n(37889);const M=n(36826);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof o.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof o.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){d.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}d.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return i(this,void 0,void 0,(function*(){const i=[];if(this.data.response===undefined){i.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){d.assert(e.O.is(t));i.push(t)}}else if(!(this.data.response instanceof o.RpcError)){d.assert(e.O.is(this.data.response));i.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof o.RpcError){t.notifyError(this.data.response);return}for(let e of i){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof o.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof o.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof o.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof o.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return f.mergeRpcOptions({},e)}unary(e,t,n){var i;const o=(i=n.meta)!==null&&i!==void 0?i:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=d.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),f=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),v=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(f,v);this.lastInput={single:t};return new y.UnaryCall(e,o,t,d,p,f,v)}serverStreaming(e,t,n){var i;const o=(i=n.meta)!==null&&i!==void 0?i:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),f=new p.RpcOutputStreamController,y=d.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,f,n.abort))).then(delay(this.afterResponseDelay,n.abort)),D=y.then((()=>this.promiseStatus())),M=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(D,M);this.lastInput={single:t};return new v.ServerStreamingCall(e,o,t,d,f,D,M)}clientStreaming(e,t){var n;const i=(n=t.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=o.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),f=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,t.abort);return new D.ClientStreamingCall(e,i,this.lastInput,o,d,p,f)}duplex(e,t){var n;const i=(n=t.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=new p.RpcOutputStreamController,f=o.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,d,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=f.then((()=>this.promiseStatus())),v=f.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,v);this.lastInput=new TestInputStream(this.data,t.abort);return new M.DuplexStreamingCall(e,i,this.lastInput,o,d,y,v)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((i,d)=>{if(t===null||t===void 0?void 0:t.aborted){d(new o.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>i(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(p);d(new o.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof o.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof o.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},29288:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=i;this.response=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:i}}))}}t.UnaryCall=UnaryCall},8602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,i=-34028234663852886e22,o=4294967295,d=2147483647,p=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>d||eo||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let i=[];for(let e=0;e>4;f=p;d=2;break;case 2:n[o++]=(f&15)<<4|(p&60)>>2;f=p;d=3;break;case 3:n[o++]=(f&3)<<6|p;d=0;break}}if(d==1)throw Error(`invalid base64 string.`);return n.subarray(0,o)}t.base64decode=base64decode;function base64encode(e){let t="",i=0,o,d=0;for(let p=0;p>2];d=(o&3)<<4;i=1;break;case 1:t+=n[d|o>>4];d=(o&15)<<2;i=2;break;case 2:t+=n[d|o>>6];t+=n[o&63];i=0;break}}if(i){t+=n[d];t+="=";if(i==1)t+="="}return t}t.base64encode=base64encode},54816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,i,o,d)=>{let p=is(n)?n[e.symbol]:n[e.symbol]=[];p.push({no:i,wireType:o,data:d})};e.onWrite=(t,n,i)=>{for(let{no:t,wireType:o,data:d}of e.list(n))i.tag(t,o).raw(d)};e.list=(t,n)=>{if(is(t)){let i=t[e.symbol];return n?i.filter((e=>e.no==n)):i}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var i;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(i=t.WireType||(t.WireType={}))},92889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const i=n(54816);const o=n(61753);const d=n(93223);const p={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=d.varint64read;this.uint32=d.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case i.WireType.Varint:while(this.buf[this.pos++]&128){}break;case i.WireType.Bit64:this.pos+=4;case i.WireType.Bit32:this.pos+=4;break;case i.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case i.WireType.StartGroup:let n;while((n=this.tag()[1])!==i.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new o.PbLong(...this.varint64())}uint64(){return new o.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new o.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new o.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new o.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},23957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const i=n(61753);const o=n(93223);const d=n(8602);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){d.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){d.assertInt32(e);o.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){d.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){d.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){d.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){d.assertInt32(e);e=(e<<1^e>>31)>>>0;o.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let o=i.PbLong.from(e);n.setInt32(0,o.lo,true);n.setInt32(4,o.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let o=i.PbULong.from(e);n.setInt32(0,o.lo,true);n.setInt32(4,o.hi,true);return this.raw(t)}int64(e){let t=i.PbLong.from(e);o.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=i.PbLong.from(e),n=t.hi>>31,d=t.lo<<1^n,p=(t.hi<<1|t.lo>>>31)^n;o.varint64write(d,p,this.buf);return this}uint64(e){let t=i.PbULong.from(e);o.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},70257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,i]of Object.entries(e))if(typeof i=="number")t.push({name:n,number:i});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},93223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];e|=(i&127)<>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];t|=(i&127)<>>i;const d=!(o>>>7==0&&t==0);const p=(d?o|128:o)&255;n.push(p);if(!d){return}}const i=e>>>28&15|(t&7)<<4;const o=!(t>>3==0);n.push((o?i|128:i)&255);if(!o){return}for(let e=3;e<31;e=e+7){const i=t>>>e;const o=!(i>>>7==0);const d=(o?i|128:i)&255;n.push(d);if(!o){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const i=1e6;let o=0;let d=0;function add1e6digit(t,p){const f=Number(e.slice(t,p));d*=i;o=o*i+f;if(o>=n){d=d+(o/n|0);o=o%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,o,d]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let i=e&16777215;let o=(e>>>24|t<<8)>>>0&16777215;let d=t>>16&65535;let p=i+o*6777216+d*6710656;let f=o+d*8147497;let y=d*2;let v=1e7;if(p>=v){f+=Math.floor(p/v);p%=v}if(f>=v){y+=Math.floor(f/v);f%=v}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(f,y)+decimalFrom1e7(p,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},68886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=n(49999);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return i.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return i.isJsonObject}});var o=n(26335);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return o.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return o.base64encode}});var d=n(58950);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return d.utf8read}});var p=n(54816);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var f=n(92889);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return f.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return f.binaryReadOptions}});var y=n(23957);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var v=n(61753);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return v.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return v.PbULong}});var D=n(29367);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return D.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return D.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return D.mergeJsonOptions}});var M=n(43785);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return M.MESSAGE_TYPE}});var U=n(15106);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return U.MessageType}});var V=n(67910);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return V.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return V.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return V.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return V.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return V.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return V.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return V.readMessageOption}});var j=n(25167);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return j.ReflectionTypeCheck}});var K=n(75726);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return K.reflectionCreate}});var ee=n(19526);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(98044);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(4827);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(89611);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var ie=n(66907);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return ie.ReflectionBinaryWriter}});var oe=n(46790);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return oe.ReflectionJsonReader}});var se=n(11094);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return se.ReflectionJsonWriter}});var ae=n(59946);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var Ae=n(18063);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return Ae.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return Ae.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return Ae.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return Ae.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return Ae.getSelectedOneofValue}});var ce=n(70257);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return ce.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return ce.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return ce.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return ce.isEnumObject}});var le=n(4073);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return le.lowerCamelCase}});var ue=n(8602);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return ue.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return ue.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return ue.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return ue.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return ue.assertFloat32}})},29367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},i={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},i),e):i}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,i;let o=Object.assign(Object.assign({},e),t);o.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(i=t===null||t===void 0?void 0:t.typeRegistry)!==null&&i!==void 0?i:[]];return o}t.mergeJsonOptions=mergeJsonOptions},49999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},15106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const i=n(43785);const o=n(67910);const d=n(25167);const p=n(46790);const f=n(11094);const y=n(89611);const v=n(66907);const D=n(75726);const M=n(98044);const U=n(49999);const V=n(29367);const j=n(4827);const K=n(23957);const ee=n(92889);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[i.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(o.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new d.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new f.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new v.ReflectionBinaryWriter(this)}create(e){let t=D.reflectionCreate(this);if(e!==undefined){M.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();M.reflectionMergePartial(this,t,e);return t}equals(e,t){return j.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){M.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,V.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,V.jsonWriteOptions(t))}toJsonString(e,t){var n;let i=this.toJson(e,t);return JSON.stringify(i,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=K.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let i=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,i,t);return i}throw new Error(`Unable to parse message ${this.typeName} from JSON ${U.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create();this.refBinReader.read(e,o,n,t);return o}}t.MessageType=MessageType},18063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},61753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const i=n(93223);let o;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";o=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const d=/^-?[0-9]+$/;const p=4294967296;const f=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(o)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=o.C(e);case"number":if(e===0)return this.ZERO;e=o.C(e);case"bigint":if(!e)return this.ZERO;if(eo.UMAX)throw new Error("ulong too large");o.V.setBigUint64(0,e,true);return new PbULong(o.V.getInt32(0,true),o.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,o]=i.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,o);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/p)}throw new Error("unknown value "+typeof e)}toString(){return o?this.toBigInt().toString():i.int64toString(this.lo,this.hi)}toBigInt(){assertBi(o);o.V.setInt32(0,this.lo,true);o.V.setInt32(4,this.hi,true);return o.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(o)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=o.C(e);case"number":if(e===0)return this.ZERO;e=o.C(e);case"bigint":if(!e)return this.ZERO;if(eo.MAX)throw new Error("signed long too large");o.V.setBigInt64(0,e,true);return new PbLong(o.V.getInt32(0,true),o.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,o]=i.int64fromString(e);if(t){if(o>f||o==f&&n!=0)throw new Error("signed long too small")}else if(o>=f)throw new Error("signed long too large");let y=new PbLong(n,o);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/p):new PbLong(-e,-e/p).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&f)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(o)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+i.int64toString(e.lo,e.hi)}return i.int64toString(this.lo,this.hi)}toBigInt(){assertBi(o);o.V.setInt32(0,this.lo,true);o.V.setInt32(4,this.hi,true);return o.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},58950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],i=[],o=0,d;let p=e.length;while(t191&&d<224)i[o++]=(d&31)<<6|e[t++]&63;else if(d>239&&d<365){d=((d&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;i[o++]=55296+(d>>10);i[o++]=56320+(d&1023)}else i[o++]=(d&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(o>8191){n.push(fromCharCodes(i));o=0}}if(n.length){if(o)n.push(fromCharCodes(i.slice(0,o)));return n.join("")}return fromCharCodes(i.slice(0,o))}t.utf8read=utf8read},89611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const i=n(54816);const o=n(67910);const d=n(63402);const p=n(19526);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,d){this.prepare();const p=d===undefined?e.len:e.pos+d;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const i=n(54816);const o=n(67910);const d=n(8602);const p=n(61753);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const i of this.fields){let p,f,y=i.repeat,v=i.localName;if(i.oneof){const t=e[i.oneof];if(t.oneofKind!==v)continue;p=t[v];f=true}else{p=e[v];f=false}switch(i.kind){case"scalar":case"enum":let e=i.kind=="enum"?o.ScalarType.INT32:i.T;if(y){d.assert(Array.isArray(p));if(y==o.RepeatType.PACKED)this.packed(t,e,i.no,p);else for(const n of p)this.scalar(t,e,i.no,n,true)}else if(p===undefined)d.assert(i.opt);else this.scalar(t,e,i.no,p,f||i.opt);break;case"message":if(y){d.assert(Array.isArray(p));for(const e of p)this.message(t,n,i.T(),i.no,e)}else{this.message(t,n,i.T(),i.no,p)}break;case"map":d.assert(typeof p=="object"&&p!==null);for(const[e,o]of Object.entries(p))this.mapEntry(t,n,i,e,o);break}}let p=n.writeUnknownFields;if(p!==false)(p===true?i.UnknownFieldHandler.onWrite:p)(this.info.typeName,e,t)}mapEntry(e,t,n,p,f){e.tag(n.no,i.WireType.LengthDelimited);e.fork();let y=p;switch(n.K){case o.ScalarType.INT32:case o.ScalarType.FIXED32:case o.ScalarType.UINT32:case o.ScalarType.SFIXED32:case o.ScalarType.SINT32:y=Number.parseInt(p);break;case o.ScalarType.BOOL:d.assert(p=="true"||p=="false");y=p=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,f,true);break;case"enum":this.scalar(e,o.ScalarType.INT32,2,f,true);break;case"message":this.message(e,t,n.V.T(),2,f);break}e.join()}message(e,t,n,o,d){if(d===undefined)return;n.internalBinaryWrite(d,e.tag(o,i.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,i,o){let[d,p,f]=this.scalarInfo(t,i);if(!f||o){e.tag(n,d);e[p](i)}}packed(e,t,n,p){if(!p.length)return;d.assert(t!==o.ScalarType.BYTES&&t!==o.ScalarType.STRING);e.tag(n,i.WireType.LengthDelimited);e.fork();let[,f]=this.scalarInfo(t);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const i=n(43785);function containsMessageType(e){return e[i.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},75726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const i=n(19526);const o=n(43785);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},o.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=i.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},4827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const i=n(67910);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let d of e.fields){let e=d.localName;let p=d.oneof?t[d.oneof][e]:t[e];let f=d.oneof?n[d.oneof][e]:n[e];switch(d.kind){case"enum":case"scalar":let e=d.kind=="enum"?i.ScalarType.INT32:d.T;if(!(d.repeat?repeatedPrimitiveEq(e,p,f):primitiveEq(e,p,f)))return false;break;case"map":if(!(d.V.kind=="message"?repeatedMsgEq(d.V.T(),o(p),o(f)):repeatedPrimitiveEq(d.V.kind=="enum"?i.ScalarType.INT32:d.V.T,o(p),o(f))))return false;break;case"message":let t=d.T();if(!(d.repeat?repeatedMsgEq(t,p,f):t.equals(p,f)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const o=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==i.ScalarType.BYTES)return false;let o=t;let d=n;if(o.length!==d.length)return false;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const i=n(4073);var o;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(o=t.ScalarType||(t.ScalarType={}));var d;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(d=t.LongType||(t.LongType={}));var p;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(p=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,o,d;e.localName=(t=e.localName)!==null&&t!==void 0?t:i.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:i.lowerCamelCase(e.name);e.repeat=(o=e.repeat)!==null&&o!==void 0?o:p.NO;e.opt=(d=e.opt)!==null&&d!==void 0?d:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,i){var o;const d=(o=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||o===void 0?void 0:o.options;return d&&d[n]?i.fromJson(d[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,i){var o;const d=(o=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||o===void 0?void 0:o.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return i?i.fromJson(p):p}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const i=e.options;const o=i[t];if(o===undefined){return o}return n?n.fromJson(o):o}t.readMessageOption=readMessageOption},46790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const i=n(49999);const o=n(26335);const d=n(67910);const p=n(61753);const f=n(8602);const y=n(63402);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=i.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const o=[];for(const[p,f]of Object.entries(e)){const e=this.fMap[p];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const y=e.localName;let v;if(e.oneof){if(f===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(o.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);o.push(e.oneof);v=t[e.oneof]={oneofKind:y}}else{v=t}if(e.kind=="map"){if(f===null){continue}this.assert(i.isJsonObject(f),e.name,f);const t=v[y];for(const[i,o]of Object.entries(f)){this.assert(o!==null,e.name+" map value",null);let p;switch(e.V.kind){case"message":p=e.V.T().internalJsonRead(o,n);break;case"enum":p=this.enum(e.V.T(),o,e.name,n.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(o,e.V.T,e.V.L,e.name);break}this.assert(p!==undefined,e.name+" map value",o);let f=i;if(e.K==d.ScalarType.BOOL)f=f=="true"?true:f=="false"?false:f;f=this.scalar(f,e.K,d.LongType.STRING,e.name).toString();t[f]=p}}else if(e.repeat){if(f===null)continue;this.assert(Array.isArray(f),e.name,f);const t=v[y];for(const i of f){this.assert(i!==null,e.name,null);let o;switch(e.kind){case"message":o=e.T().internalJsonRead(i,n);break;case"enum":o=this.enum(e.T(),i,e.name,n.ignoreUnknownFields);if(o===false)continue;break;case"scalar":o=this.scalar(i,e.T,e.L,e.name);break}this.assert(o!==undefined,e.name,f);t.push(o)}}else{switch(e.kind){case"message":if(f===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}v[y]=e.T().internalJsonRead(f,n,v[y]);break;case"enum":if(f===null)continue;let t=this.enum(e.T(),f,e.name,n.ignoreUnknownFields);if(t===false)continue;v[y]=t;break;case"scalar":if(f===null)continue;v[y]=this.scalar(f,e.T,e.L,e.name);break}}}}enum(e,t,n,i){if(e[0]=="google.protobuf.NullValue")f.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":f.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let o=t;if(e[2]&&t.substring(0,e[2].length)===e[2])o=t.substring(e[2].length);let d=e[1][o];if(typeof d==="undefined"&&i){return false}f.assert(typeof d=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return d}f.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,i){let v;try{switch(t){case d.ScalarType.DOUBLE:case d.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){v="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){v="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let i=Number(e);if(Number.isNaN(i)){v="not a number";break}if(!Number.isFinite(i)){v="too large or small";break}if(t==d.ScalarType.FLOAT)f.assertFloat32(i);return i;case d.ScalarType.INT32:case d.ScalarType.FIXED32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:case d.ScalarType.UINT32:if(e===null)return 0;let D;if(typeof e=="number")D=e;else if(e==="")v="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)v="extra whitespace";else D=Number(e)}if(D===undefined)break;if(t==d.ScalarType.UINT32)f.assertUInt32(D);else f.assertInt32(D);return D;case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(p.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbLong.from(e),n);case d.ScalarType.FIXED64:case d.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(p.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbULong.from(e),n);case d.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case d.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){v="extra whitespace";break}try{encodeURIComponent(e)}catch(v){v="invalid UTF8";break}return e;case d.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return o.base64decode(e)}}catch(e){v=e.message}this.assert(false,i+(v?" - "+v:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},11094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const i=n(26335);const o=n(61753);const d=n(67910);const p=n(8602);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},i=e;for(const e of this.fields){if(!e.oneof){let o=this.field(e,i[e.localName],t);if(o!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=o;continue}const o=i[e.oneof];if(o.oneofKind!==e.localName)continue;const d=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let f=this.field(e,o[e.localName],d);p.assert(f!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=f}return n}field(e,t,n){let i=undefined;if(e.kind=="map"){p.assert(typeof t=="object"&&t!==null);const o={};switch(e.V.kind){case"scalar":for(const[n,i]of Object.entries(t)){const t=this.scalar(e.V.T,i,e.name,false,true);p.assert(t!==undefined);o[n.toString()]=t}break;case"message":const i=e.V.T();for(const[d,f]of Object.entries(t)){const t=this.message(i,f,e.name,n);p.assert(t!==undefined);o[d.toString()]=t}break;case"enum":const d=e.V.T();for(const[i,f]of Object.entries(t)){p.assert(f===undefined||typeof f=="number");const t=this.enum(d,f,e.name,false,true,n.enumAsInteger);p.assert(t!==undefined);o[i.toString()]=t}break}if(n.emitDefaultValues||Object.keys(o).length>0)i=o}else if(e.repeat){p.assert(Array.isArray(t));const o=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)i=o}else{switch(e.kind){case"scalar":i=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":i=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":i=this.message(e.T(),t,e.name,n);break}}return i}enum(e,t,n,i,o,d){if(e[0]=="google.protobuf.NullValue")return!o&&!i?undefined:null;if(t===undefined){p.assert(i);return undefined}if(t===0&&!o&&!i)return undefined;p.assert(typeof t=="number");p.assert(Number.isInteger(t));if(d||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,i){if(t===undefined)return i.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,i)}scalar(e,t,n,f,y){if(t===undefined){p.assert(f);return undefined}const v=y||f;switch(e){case d.ScalarType.INT32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:if(t===0)return v?0:undefined;p.assertInt32(t);return t;case d.ScalarType.FIXED32:case d.ScalarType.UINT32:if(t===0)return v?0:undefined;p.assertUInt32(t);return t;case d.ScalarType.FLOAT:p.assertFloat32(t);case d.ScalarType.DOUBLE:if(t===0)return v?0:undefined;p.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case d.ScalarType.STRING:if(t==="")return v?"":undefined;p.assert(typeof t=="string");return t;case d.ScalarType.BOOL:if(t===false)return v?false:undefined;p.assert(typeof t=="boolean");return t;case d.ScalarType.UINT64:case d.ScalarType.FIXED64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=o.PbULong.from(t);if(e.isZero()&&!v)return undefined;return e.toString();case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=o.PbLong.from(t);if(n.isZero()&&!v)return undefined;return n.toString();case d.ScalarType.BYTES:p.assert(t instanceof Uint8Array);if(!t.byteLength)return v?"":undefined;return i.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},63402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const i=n(67910);function reflectionLongConvert(e,t){switch(t){case i.LongType.BIGINT:return e.toBigInt();case i.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},98044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let i,o=n,d;for(let n of e.fields){let e=n.localName;if(n.oneof){const p=o[n.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}i=p[e];d=t[n.oneof];d.oneofKind=p.oneofKind;if(i==undefined){delete d[e];continue}}else{i=o[e];d=t;if(i==undefined){continue}}if(n.repeat)d[e].length=i.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const i=n(67910);const o=n(63402);const d=n(61753);function reflectionScalarDefault(e,t=i.LongType.STRING){switch(e){case i.ScalarType.BOOL:return false;case i.ScalarType.UINT64:case i.ScalarType.FIXED64:return o.reflectionLongConvert(d.PbULong.ZERO,t);case i.ScalarType.INT64:case i.ScalarType.SFIXED64:case i.ScalarType.SINT64:return o.reflectionLongConvert(d.PbLong.ZERO,t);case i.ScalarType.DOUBLE:case i.ScalarType.FLOAT:return 0;case i.ScalarType.BYTES:return new Uint8Array(0);case i.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},25167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const i=n(67910);const o=n(18063);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let i of this.fields){if(i.oneof){if(!n.includes(i.oneof)){n.push(i.oneof);e.push(i.oneof);t.push(i.oneof)}}else{t.push(i.localName);switch(i.kind){case"scalar":case"enum":if(!i.opt||i.repeat)e.push(i.localName);break;case"message":if(i.repeat)e.push(i.localName);break;case"map":e.push(i.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let i=Object.keys(e),d=this.data;if(i.length!i.includes(e))))return false;if(!n){if(i.some((e=>!d.known.includes(e))))return false}if(t<1){return true}for(const i of d.oneofs){const d=e[i];if(!o.isOneofGroup(d))return false;if(d.oneofKind===undefined)continue;const p=this.fields.find((e=>e.localName===d.oneofKind));if(!p)return false;if(!this.field(d[d.oneofKind],p,n,t))return false}for(const i of this.fields){if(i.oneof!==undefined)continue;if(!this.field(e[i.localName],i,n,t))return false}return true}field(e,t,n,o){let d=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(d)return this.scalars(e,t.T,o,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(d)return this.scalars(e,i.ScalarType.INT32,o);return this.scalar(e,i.ScalarType.INT32);case"message":if(e===undefined)return true;if(d)return this.messages(e,t.T(),n,o);return this.message(e,t.T(),n,o);case"map":if(typeof e!="object"||e===null)return false;if(o<2)return true;if(!this.mapKeys(e,t.K,o))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,o,t.V.L);case"enum":return this.scalars(Object.values(e),i.ScalarType.INT32,o);case"message":return this.messages(Object.values(e),t.V.T(),n,o)}break}return true}message(e,t,n,i){if(n){return t.isAssignable(e,i)}return t.is(e,i)}messages(e,t,n,i){if(!Array.isArray(e))return false;if(i<2)return true;if(n){for(let n=0;nparseInt(e))),t,n);case i.ScalarType.BOOL:return this.scalars(o.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(o,t,n,i.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},75807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SVNClient=void 0;var i=n(15086);Object.defineProperty(t,"SVNClient",{enumerable:true,get:function(){return i.SVNClient}})},15086:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},i,o,d,p;return p={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(p[Symbol.iterator]=function(){return this}),p;function verb(e){return function(t){return step([e,t])}}function step(f){if(i)throw new TypeError("Generator is already executing.");while(p&&(p=0,f[0]&&(n=0)),n)try{if(i=1,o&&(d=f[0]&2?o["return"]:f[0]?o["throw"]||((d=o["return"])&&d.call(o),0):o.next)&&!(d=d.call(o,f[1])).done)return d;if(o=0,d)f=[f[0]&2,d.value];switch(f[0]){case 0:case 1:d=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;o=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(d=n.trys,d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]0)n.push("--search-and");n.push(i.search[p])}}}return[2,this.cmd("log",this.joinUsernameAndPassword(n))]}else{return[2,this.cmd("log",this.joinUsernameAndPassword(e))]}return[2]}))}))};SVNClient.prototype.revert=function(){var e=[];for(var t=0;t{i.once("response",e).once("error",t).end()}));i.then=o.then.bind(o);return i}t.req=req},98894:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(n(69278));const y=d(n(58611));const v=n(65692);p(n(15183),t);const D=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[D]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const i=n.indexOf(t);if(i!==-1){n.splice(i,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return v.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const i={...t,secureEndpoint:this.isSecureEndpoint(t)};const o=this.getName(i);const d=this.incrementSockets(o);Promise.resolve().then((()=>this.connect(e,i))).then((p=>{this.decrementSockets(o,d);if(p instanceof y.Agent){try{return p.addRequest(e,i)}catch(e){return n(e)}}this[D].currentSocket=p;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(o,d);n(e)}))}createConnection(){const e=this[D].currentSocket;this[D].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[D].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[D]){this[D].defaultPort=e}}get protocol(){return this[D].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[D]){this[D].protocol=e}}}t.Agent=Agent},59380:e=>{"use strict";e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var i=range(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var i,o,d,p,f;var y=n.indexOf(e);var v=n.indexOf(t,y+1);var D=y;if(y>=0&&v>0){if(e===t){return[y,v]}i=[];d=n.length;while(D>=0&&!f){if(D==y){i.push(D);y=n.indexOf(e,D+1)}else if(i.length==1){f=[i.pop(),v]}else{o=i.pop();if(o=0?y:v}if(i.length){f=[d,p]}}return f}},94691:(e,t,n)=>{var i=n(97087);var o=n(59380);e.exports=expandTop;var d="\0SLASH"+Math.random()+"\0";var p="\0OPEN"+Math.random()+"\0";var f="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var v="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(d).split("\\{").join(p).split("\\}").join(f).split("\\,").join(y).split("\\.").join(v)}function unescapeBraces(e){return e.split(d).join("\\").split(p).join("{").split(f).join("}").split(y).join(",").split(v).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=o("{","}",e);if(!n)return e.split(",");var i=n.pre;var d=n.body;var p=n.post;var f=i.split(",");f[f.length-1]+="{"+d+"}";var y=parseCommaParts(p);if(p.length){f[f.length-1]+=y.shift();f.push.apply(f,y)}t.push.apply(t,f);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var d=o("{","}",e);if(!d||/\$$/.test(d.pre))return[e];var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body);var v=p||y;var D=d.body.indexOf(",")>=0;if(!v&&!D){if(d.post.match(/,(?!,).*\}/)){e=d.pre+"{"+d.body+f+d.post;return expand(e)}return[e]}var M;if(v){M=d.body.split(/\.\./)}else{M=parseCommaParts(d.body);if(M.length===1){M=expand(M[0],false).map(embrace);if(M.length===1){var U=d.post.length?expand(d.post,false):[""];return U.map((function(e){return d.pre+M[0]+e}))}}}var V=d.pre;var U=d.post.length?expand(d.post,false):[""];var j;if(v){var K=numeric(M[0]);var ee=numeric(M[1]);var te=Math.max(M[0].length,M[1].length);var re=M.length==3?Math.abs(numeric(M[2])):1;var ne=lte;var ie=ee0){var ce=new Array(Ae+1).join("0");if(se<0)ae="-"+ce+ae.slice(1);else ae=ce+ae}}}j.push(ae)}}else{j=i(M,(function(e){return expand(e,false)}))}for(var le=0;le{e.exports=function(e,n){var i=[];for(var o=0;o{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){o=i}}));t.splice(o,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(40897)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(70744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}d++;const o=createDebug.formatters[i];if(typeof o==="function"){const i=e[d];t=o.call(n,i);e.splice(d,1);d--}return t}));createDebug.formatArgs.call(n,e);const p=n.log||createDebug.log;p.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(i!==createDebug.namespaces){i=createDebug.namespaces;o=createDebug.enabled(e)}return o},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let n=0;let i=0;let o=-1;let d=0;while(n"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(95108)}},95108:(e,t,n)=>{const i=n(52018);const o=n(39023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(21450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[n]=i;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:i}=this;if(i){const i=this.color;const o="[3"+(i<8?i:"8;5;"+i);const d=` ${o};1m${n} `;t[0]=d+t[0].split("\n").join("\n"+d);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;ie.trim())).join(" ")};d.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},83813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const i=t.indexOf(n+e);const o=t.indexOf("--");return i!==-1&&(o===-1||i0){V("Patching connection write() output buffer with updated header");n=e.outputData[0].data;i=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(i);V("Output buffer: %o",e.outputData[0].data)}let o;if(this.proxy.protocol==="https:"){V("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(this.connectOpts)}else{V("Creating `net.Socket`: %o",this.connectOpts);o=f.connect(this.connectOpts)}await(0,D.once)(o,"connect");return o}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let i;for(i in e){if(!t.includes(i)){n[i]=e[i]}}return n}},3669:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=d(n(69278));const y=d(n(64756));const v=p(n(42613));const D=p(n(2830));const M=n(98894);const U=n(87016);const V=n(37943);const j=(0,D.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends M.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};j("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:i}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let i;if(n.protocol==="https:"){j("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{j("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}const o=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const d=f.isIPv6(t.host)?`[${t.host}]`:t.host;let p=`CONNECT ${d}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}o.Host=`${d}:${t.port}`;if(!o["Proxy-Connection"]){o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(o)){p+=`${e}: ${o[e]}\r\n`}const D=(0,V.parseProxyResponse)(i);i.write(`${p}\r\n`);const{connect:M,buffered:U}=await D;e.emit("proxyConnect",M);this.emit("proxyConnect",M,e);if(M.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){j("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:i})}return i}i.destroy();const K=new f.Socket({writable:false});K.readable=true;e.once("socket",(e=>{j("Replaying proxy buffer for failed request");(0,v.default)(e.listenerCount("data")>0);e.push(U);e.push(null)}));return K}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let i;for(i in e){if(!t.includes(i)){n[i]=e[i]}}return n}},37943:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const o=i(n(2830));const d=(0,o.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let i=0;const o=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();d("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();d("onerror %o",e);n(e)}function ondata(p){o.push(p);i+=p.length;const f=Buffer.concat(o,i);const y=f.indexOf("\r\n\r\n");if(y===-1){d("have not received end of HTTP headers yet...");read();return}const v=f.slice(0,y).toString("ascii").split("\r\n");const D=v.shift();if(!D){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const M=D.split(" ");const U=+M[1];const V=M.slice(2).join(" ");const j={};for(const t of v){if(!t)continue;const i=t.indexOf(":");if(i===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const o=t.slice(0,i).toLowerCase();const d=t.slice(i+1).trimStart();const p=j[o];if(typeof p==="string"){j[o]=[p,d]}else if(Array.isArray(p)){p.push(d)}else{j[o]=d}}d("got proxy server response: %o %o",D,j);cleanup();t({connect:{statusCode:U,statusText:V,headers:j},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},43772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return n(16928)}catch(e){}}()||{sep:"/"};minimatch.sep=i.sep;var o=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var d=n(94691);var p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var f="[^/]";var y=f+"*?";var v="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var D="(?:(?!(?:\\/|^)\\.).)*?";var M=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var U=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,i,o){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,i,o){return t(n,i,ext(e,o))};n.Minimatch=function Minimatch(n,i){return new t.Minimatch(n,ext(e,i))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,i){return t.filter(n,ext(e,i))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,i){return t.makeRe(n,ext(e,i))};n.braceExpand=function braceExpand(n,i){return t.braceExpand(n,ext(e,i))};n.match=function(n,i,o){return t.match(n,i,ext(e,o))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(U)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var i=0;if(n.nonegate)return;for(var o=0,d=e.length;oV){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var j={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return o;else e="*"}if(e==="")return"";var i="";var d=!!n.nocase;var v=false;var D=[];var U=[];var V;var K=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(V){switch(V){case"*":i+=y;d=true;break;case"?":i+=f;d=true;break;default:i+="\\"+V;break}ne.debug("clearStateChar %j %j",V,i);V=false}}for(var ie=0,oe=e.length,se;ie-1;pe--){var ge=U[pe];var me=i.slice(0,ge.reStart);var he=i.slice(ge.reStart,ge.reEnd-8);var fe=i.slice(ge.reEnd-8,ge.reEnd);var Ee=i.slice(ge.reEnd);fe+=Ee;var ye=me.split("(").length-1;var Ce=Ee;for(ie=0;ie=0;p--){d=e[p];if(d)break}for(p=0;p>> no match, partial?",e,M,t,U);if(M===f)return true}return false}var j;if(typeof v==="string"){j=D===v;this.debug("string match",v,D,j)}else{j=D.match(v);this.debug("pattern match",v,D,j)}if(!j)return false}if(d===f&&p===y){return true}else if(d===f){return n}else if(p===y){return d===f-1&&e[d]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},70744:e=>{var t=1e3;var n=t*60;var i=n*60;var o=i*24;var d=o*7;var p=o*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var y=parseFloat(f[1]);var v=(f[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*p;case"weeks":case"week":case"w":return y*d;case"days":case"day":case"d":return y*o;case"hours":case"hour":case"hrs":case"hr":case"h":return y*i;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var d=Math.abs(e);if(d>=o){return Math.round(e/o)+"d"}if(d>=i){return Math.round(e/i)+"h"}if(d>=n){return Math.round(e/n)+"m"}if(d>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var d=Math.abs(e);if(d>=o){return plural(e,d,o,"day")}if(d>=i){return plural(e,d,i,"hour")}if(d>=n){return plural(e,d,n,"minute")}if(d>=t){return plural(e,d,t,"second")}return e+" ms"}function plural(e,t,n,i){var o=t>=n*1.5;return Math.round(e/n)+" "+i+(o?"s":"")}},89379:(e,t,n)=>{"use strict";const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=o(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?d[p.COMPARATORLOOSE]:d[p.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=i}else{this.semver=new v(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new D(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new D(this.value,t).test(e.semver)}t=o(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const o=n(70356);const{safeRe:d,t:p}=n(95471);const f=n(28646);const y=n(1159);const v=n(7163);const D=n(96782)},96782:(e,t,n)=>{"use strict";const i=/\s+/g;class Range{constructor(e,t){t=p(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof f){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(i," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&K)|(this.options.loose&&ee);const n=t+":"+e;const i=d.get(n);if(i){return i}const o=this.options.loose;const p=o?D[M.HYPHENRANGELOOSE]:D[M.HYPHENRANGE];e=e.replace(p,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(D[M.COMPARATORTRIM],U);y("comparator trim",e);e=e.replace(D[M.TILDETRIM],V);y("tilde trim",e);e=e.replace(D[M.CARETTRIM],j);y("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){v=v.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(D[M.COMPARATORLOOSE])}))}y("range list",v);const te=new Map;const re=v.map((e=>new f(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];d.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const i=e.slice();let o=i.pop();while(n&&i.length){n=i.every((e=>o.intersects(e,t)));o=i.pop()}return n};const parseComparator=(e,t)=>{y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?D[M.TILDELOOSE]:D[M.TILDE];return e.replace(n,((t,n,i,o,d)=>{y("tilde",e,t,n,i,o,d);let p;if(isX(n)){p=""}else if(isX(i)){p=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(o)){p=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`}else if(d){y("replaceTilde pr",d);p=`>=${n}.${i}.${o}-${d} <${n}.${+i+1}.0-0`}else{p=`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`}y("tilde return",p);return p}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?D[M.CARETLOOSE]:D[M.CARET];const i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,d,p)=>{y("caret",e,t,n,o,d,p);let f;if(isX(n)){f=""}else if(isX(o)){f=`>=${n}.0.0${i} <${+n+1}.0.0-0`}else if(isX(d)){if(n==="0"){f=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`}else{f=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`}}else if(p){y("replaceCaret pr",p);if(n==="0"){if(o==="0"){f=`>=${n}.${o}.${d}-${p} <${n}.${o}.${+d+1}-0`}else{f=`>=${n}.${o}.${d}-${p} <${n}.${+o+1}.0-0`}}else{f=`>=${n}.${o}.${d}-${p} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(o==="0"){f=`>=${n}.${o}.${d}${i} <${n}.${o}.${+d+1}-0`}else{f=`>=${n}.${o}.${d}${i} <${n}.${+o+1}.0-0`}}else{f=`>=${n}.${o}.${d} <${+n+1}.0.0-0`}}y("caret return",f);return f}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?D[M.XRANGELOOSE]:D[M.XRANGE];return e.replace(n,((n,i,o,d,p,f)=>{y("xRange",e,n,i,o,d,p,f);const v=isX(o);const D=v||isX(d);const M=D||isX(p);const U=M;if(i==="="&&U){i=""}f=t.includePrerelease?"-0":"";if(v){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&U){if(D){d=0}p=0;if(i===">"){i=">=";if(D){o=+o+1;d=0;p=0}else{d=+d+1;p=0}}else if(i==="<="){i="<";if(D){o=+o+1}else{d=+d+1}}if(i==="<"){f="-0"}n=`${i+o}.${d}.${p}${f}`}else if(D){n=`>=${o}.0.0${f} <${+o+1}.0.0-0`}else if(M){n=`>=${o}.${d}.0${f} <${o}.${+d+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(D[M.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(D[t.includePrerelease?M.GTE0PRE:M.GTE0],"")};const hyphenReplace=e=>(t,n,i,o,d,p,f,y,v,D,M,U)=>{if(isX(i)){n=""}else if(isX(o)){n=`>=${i}.0.0${e?"-0":""}`}else if(isX(d)){n=`>=${i}.${o}.0${e?"-0":""}`}else if(p){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(v)){y=""}else if(isX(D)){y=`<${+v+1}.0.0-0`}else if(isX(M)){y=`<${v}.${+D+1}.0-0`}else if(U){y=`<=${v}.${D}.${M}-${U}`}else if(e){y=`<${v}.${D}.${+M+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},7163:(e,t,n)=>{"use strict";const i=n(1159);const{MAX_LENGTH:o,MAX_SAFE_INTEGER:d}=n(45101);const{safeRe:p,t:f}=n(95471);const y=n(70356);const{compareIdentifiers:v}=n(73348);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>o){throw new TypeError(`version is longer than ${o} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?p[f.LOOSE]:p[f.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>d||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>d||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>d||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let i=[t,e];if(n===false){i=[t]}if(v(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=i}}else{this.prerelease=i}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,n)=>{"use strict";const i=n(16353);const clean=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},28646:(e,t,n)=>{"use strict";const i=n(55082);const o=n(4974);const d=n(16599);const p=n(41236);const f=n(3872);const y=n(56717);const cmp=(e,t,n,v)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return i(e,n,v);case"!=":return o(e,n,v);case">":return d(e,n,v);case">=":return p(e,n,v);case"<":return f(e,n,v);case"<=":return y(e,n,v);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},35385:(e,t,n)=>{"use strict";const i=n(7163);const o=n(16353);const{safeRe:d,t:p}=n(95471);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?d[p.COERCEFULL]:d[p.COERCE])}else{const i=t.includePrerelease?d[p.COERCERTLFULL]:d[p.COERCERTL];let o;while((o=i.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||o.index+o[0].length!==n.index+n[0].length){n=o}i.lastIndex=o.index+o[1].length+o[2].length}i.lastIndex=-1}if(n===null){return null}const f=n[2];const y=n[3]||"0";const v=n[4]||"0";const D=t.includePrerelease&&n[5]?`-${n[5]}`:"";const M=t.includePrerelease&&n[6]?`+${n[6]}`:"";return o(`${f}.${y}.${v}${D}${M}`,t)};e.exports=coerce},37648:(e,t,n)=>{"use strict";const i=n(7163);const compareBuild=(e,t,n)=>{const o=new i(e,n);const d=new i(t,n);return o.compare(d)||o.compareBuild(d)};e.exports=compareBuild},56874:(e,t,n)=>{"use strict";const i=n(78469);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},78469:(e,t,n)=>{"use strict";const i=n(7163);const compare=(e,t,n)=>new i(e,n).compare(new i(t,n));e.exports=compare},70711:(e,t,n)=>{"use strict";const i=n(16353);const diff=(e,t)=>{const n=i(e,null,true);const o=i(t,null,true);const d=n.compare(o);if(d===0){return null}const p=d>0;const f=p?n:o;const y=p?o:n;const v=!!f.prerelease.length;const D=!!y.prerelease.length;if(D&&!v){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(f)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const M=v?"pre":"";if(n.major!==o.major){return M+"major"}if(n.minor!==o.minor){return M+"minor"}if(n.patch!==o.patch){return M+"patch"}return"prerelease"};e.exports=diff},55082:(e,t,n)=>{"use strict";const i=n(78469);const eq=(e,t,n)=>i(e,t,n)===0;e.exports=eq},16599:(e,t,n)=>{"use strict";const i=n(78469);const gt=(e,t,n)=>i(e,t,n)>0;e.exports=gt},41236:(e,t,n)=>{"use strict";const i=n(78469);const gte=(e,t,n)=>i(e,t,n)>=0;e.exports=gte},62338:(e,t,n)=>{"use strict";const i=n(7163);const inc=(e,t,n,o,d)=>{if(typeof n==="string"){d=o;o=n;n=undefined}try{return new i(e instanceof i?e.version:e,n).inc(t,o,d).version}catch(e){return null}};e.exports=inc},3872:(e,t,n)=>{"use strict";const i=n(78469);const lt=(e,t,n)=>i(e,t,n)<0;e.exports=lt},56717:(e,t,n)=>{"use strict";const i=n(78469);const lte=(e,t,n)=>i(e,t,n)<=0;e.exports=lte},68511:(e,t,n)=>{"use strict";const i=n(7163);const major=(e,t)=>new i(e,t).major;e.exports=major},32603:(e,t,n)=>{"use strict";const i=n(7163);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},4974:(e,t,n)=>{"use strict";const i=n(78469);const neq=(e,t,n)=>i(e,t,n)!==0;e.exports=neq},16353:(e,t,n)=>{"use strict";const i=n(7163);const parse=(e,t,n=false)=>{if(e instanceof i){return e}try{return new i(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},48756:(e,t,n)=>{"use strict";const i=n(7163);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},15714:(e,t,n)=>{"use strict";const i=n(16353);const prerelease=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},32173:(e,t,n)=>{"use strict";const i=n(78469);const rcompare=(e,t,n)=>i(t,e,n);e.exports=rcompare},87192:(e,t,n)=>{"use strict";const i=n(37648);const rsort=(e,t)=>e.sort(((e,n)=>i(n,e,t)));e.exports=rsort},68011:(e,t,n)=>{"use strict";const i=n(96782);const satisfies=(e,t,n)=>{try{t=new i(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},29872:(e,t,n)=>{"use strict";const i=n(37648);const sort=(e,t)=>e.sort(((e,n)=>i(e,n,t)));e.exports=sort},58780:(e,t,n)=>{"use strict";const i=n(16353);const valid=(e,t)=>{const n=i(e,t);return n?n.version:null};e.exports=valid},62088:(e,t,n)=>{"use strict";const i=n(95471);const o=n(45101);const d=n(7163);const p=n(73348);const f=n(16353);const y=n(58780);const v=n(1799);const D=n(62338);const M=n(70711);const U=n(68511);const V=n(32603);const j=n(48756);const K=n(15714);const ee=n(78469);const te=n(32173);const re=n(56874);const ne=n(37648);const ie=n(29872);const oe=n(87192);const se=n(16599);const ae=n(3872);const Ae=n(55082);const ce=n(4974);const le=n(41236);const ue=n(56717);const de=n(28646);const pe=n(35385);const ge=n(89379);const me=n(96782);const he=n(68011);const fe=n(54750);const Ee=n(73193);const ye=n(68595);const Ce=n(51866);const Ie=n(64737);const Be=n(10280);const be=n(12276);const Qe=n(15213);const Se=n(23465);const Ne=n(82028);const Re=n(61489);e.exports={parse:f,valid:y,clean:v,inc:D,diff:M,major:U,minor:V,patch:j,prerelease:K,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:ie,rsort:oe,gt:se,lt:ae,eq:Ae,neq:ce,gte:le,lte:ue,cmp:de,coerce:pe,Comparator:ge,Range:me,satisfies:he,toComparators:fe,maxSatisfying:Ee,minSatisfying:ye,minVersion:Ce,validRange:Ie,outside:Be,gtr:be,ltr:Qe,intersects:Se,simplifyRange:Ne,subset:Re,SemVer:d,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:p.compareIdentifiers,rcompareIdentifiers:p.rcompareIdentifiers}},45101:e=>{"use strict";const t="2.0.0";const n=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const o=16;const d=n-6;const p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:i,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{"use strict";const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},73348:e=>{"use strict";const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{const i=t.test(e);const o=t.test(n);if(i&&o){e=+e;n=+n}return e===n?0:i&&!o?-1:o&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},61383:e=>{"use strict";class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},70356:e=>{"use strict";const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},95471:(e,t,n)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:d}=n(45101);const p=n(1159);t=e.exports={};const f=t.re=[];const y=t.safeRe=[];const v=t.src=[];const D=t.safeSrc=[];const M=t.t={};let U=0;const V="[a-zA-Z0-9-]";const j=[["\\s",1],["\\d",d],[V,o]];const makeSafeRegex=e=>{for(const[t,n]of j){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const i=makeSafeRegex(t);const o=U++;p(e,o,t);M[e]=o;v[o]=t;D[o]=i;f[o]=new RegExp(t,n?"g":undefined);y[o]=new RegExp(i,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${V}*`);createToken("MAINVERSION",`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${v[M.PRERELEASEIDENTIFIER]}(?:\\.${v[M.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${v[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[M.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${V}+`);createToken("BUILD",`(?:\\+(${v[M.BUILDIDENTIFIER]}(?:\\.${v[M.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${v[M.MAINVERSION]}${v[M.PRERELEASE]}?${v[M.BUILD]}?`);createToken("FULL",`^${v[M.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${v[M.MAINVERSIONLOOSE]}${v[M.PRERELEASELOOSE]}?${v[M.BUILD]}?`);createToken("LOOSE",`^${v[M.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${v[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${v[M.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:${v[M.PRERELEASE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:${v[M.PRERELEASELOOSE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`);createToken("COERCE",`${v[M.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",v[M.COERCEPLAIN]+`(?:${v[M.PRERELEASE]})?`+`(?:${v[M.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",v[M.COERCE],true);createToken("COERCERTLFULL",v[M.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${v[M.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${v[M.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${v[M.LONECARET]}${v[M.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${v[M.LONECARET]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${v[M.GTLT]}\\s*(${v[M.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]}|${v[M.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${v[M.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${v[M.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},12276:(e,t,n)=>{"use strict";const i=n(10280);const gtr=(e,t,n)=>i(e,t,">",n);e.exports=gtr},23465:(e,t,n)=>{"use strict";const i=n(96782);const intersects=(e,t,n)=>{e=new i(e,n);t=new i(t,n);return e.intersects(t,n)};e.exports=intersects},15213:(e,t,n)=>{"use strict";const i=n(10280);const ltr=(e,t,n)=>i(e,t,"<",n);e.exports=ltr},73193:(e,t,n)=>{"use strict";const i=n(7163);const o=n(96782);const maxSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new o(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===-1){d=e;p=new i(d,n)}}}));return d};e.exports=maxSatisfying},68595:(e,t,n)=>{"use strict";const i=n(7163);const o=n(96782);const minSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new o(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===1){d=e;p=new i(d,n)}}}));return d};e.exports=minSatisfying},51866:(e,t,n)=>{"use strict";const i=n(7163);const o=n(96782);const d=n(16599);const minVersion=(e,t)=>{e=new o(e,t);let n=new i("0.0.0");if(e.test(n)){return n}n=new i("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!p||d(t,p)){p=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(p&&(!n||d(n,p))){n=p}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},10280:(e,t,n)=>{"use strict";const i=n(7163);const o=n(89379);const{ANY:d}=o;const p=n(96782);const f=n(68011);const y=n(16599);const v=n(3872);const D=n(56717);const M=n(41236);const outside=(e,t,n,U)=>{e=new i(e,U);t=new p(t,U);let V,j,K,ee,te;switch(n){case">":V=y;j=D;K=v;ee=">";te=">=";break;case"<":V=v;j=M;K=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(e,t,U)){return false}for(let n=0;n{if(e.semver===d){e=new o(">=0.0.0")}p=p||e;f=f||e;if(V(e.semver,p.semver,U)){p=e}else if(K(e.semver,f.semver,U)){f=e}}));if(p.operator===ee||p.operator===te){return false}if((!f.operator||f.operator===ee)&&j(e,f.semver)){return false}else if(f.operator===te&&K(e,f.semver)){return false}}return true};e.exports=outside},82028:(e,t,n)=>{"use strict";const i=n(68011);const o=n(78469);e.exports=(e,t,n)=>{const d=[];let p=null;let f=null;const y=e.sort(((e,t)=>o(e,t,n)));for(const e of y){const o=i(e,t,n);if(o){f=e;if(!p){p=e}}else{if(f){d.push([p,f])}f=null;p=null}}if(p){d.push([p,null])}const v=[];for(const[e,t]of d){if(e===t){v.push(e)}else if(!t&&e===y[0]){v.push("*")}else if(!t){v.push(`>=${e}`)}else if(e===y[0]){v.push(`<=${t}`)}else{v.push(`${e} - ${t}`)}}const D=v.join(" || ");const M=typeof t.raw==="string"?t.raw:String(t);return D.length{"use strict";const i=n(96782);const o=n(89379);const{ANY:d}=o;const p=n(68011);const f=n(78469);const subset=(e,t,n={})=>{if(e===t){return true}e=new i(e,n);t=new i(t,n);let o=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,n);o=o||t!==null;if(t){continue e}}if(o){return false}}return true};const y=[new o(">=0.0.0-0")];const v=[new o(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===d){if(t.length===1&&t[0].semver===d){return true}else if(n.includePrerelease){e=y}else{e=v}}if(t.length===1&&t[0].semver===d){if(n.includePrerelease){return true}else{t=v}}const i=new Set;let o,D;for(const t of e){if(t.operator===">"||t.operator===">="){o=higherGT(o,t,n)}else if(t.operator==="<"||t.operator==="<="){D=lowerLT(D,t,n)}else{i.add(t.semver)}}if(i.size>1){return null}let M;if(o&&D){M=f(o.semver,D.semver,n);if(M>0){return null}else if(M===0&&(o.operator!==">="||D.operator!=="<=")){return null}}for(const e of i){if(o&&!p(e,String(o),n)){return null}if(D&&!p(e,String(D),n)){return null}for(const i of t){if(!p(e,String(i),n)){return false}}return true}let U,V;let j,K;let ee=D&&!n.includePrerelease&&D.semver.prerelease.length?D.semver:false;let te=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:false;if(ee&&ee.prerelease.length===1&&D.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){K=K||e.operator===">"||e.operator===">=";j=j||e.operator==="<"||e.operator==="<=";if(o){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){U=higherGT(o,e,n);if(U===e&&U!==o){return false}}else if(o.operator===">="&&!p(o.semver,String(e),n)){return false}}if(D){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){V=lowerLT(D,e,n);if(V===e&&V!==D){return false}}else if(D.operator==="<="&&!p(D.semver,String(e),n)){return false}}if(!e.operator&&(D||o)&&M!==0){return false}}if(o&&j&&!D&&M!==0){return false}if(D&&K&&!o&&M!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const i=f(e.semver,t.semver,n);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const i=f(e.semver,t.semver,n);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},54750:(e,t,n)=>{"use strict";const i=n(96782);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},64737:(e,t,n)=>{"use strict";const i=n(96782);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},21450:(e,t,n)=>{"use strict";const i=n(70857);const o=n(52018);const d=n(83813);const{env:p}=process;let f;if(d("no-color")||d("no-colors")||d("color=false")||d("color=never")){f=0}else if(d("color")||d("colors")||d("color=true")||d("color=always")){f=1}if("FORCE_COLOR"in p){if(p.FORCE_COLOR==="true"){f=1}else if(p.FORCE_COLOR==="false"){f=0}else{f=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(d("color=16m")||d("color=full")||d("color=truecolor")){return 3}if(d("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const n=f||0;if(p.TERM==="dumb"){return n}if(process.platform==="win32"){const e=i.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in p){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in p))||p.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in p){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0}if(p.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in p){const e=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(p.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)){return 1}if("COLORTERM"in p){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},61860:e=>{var t;var n;var i;var o;var d;var p;var f;var y;var v;var D;var M;var U;var V;var j;var K;var ee;var te;var re;var ne;var ie;var oe;var se;var ae;var Ae;var ce;var le;var ue;var de;var pe;var ge;var me;var he;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,i){return e[n]=t?t(n,i):i}}})((function(e){var fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fe(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;f--)if(p=e[f])d=(o<3?p(d):o>3?p(t,n,d):p(t,n))||d;return o>3&&d&&Object.defineProperty(t,n,d),d};d=function(e,t){return function(n,i){t(n,i,e)}};p=function(e,t,n,i,o,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var p=i.kind,f=p==="getter"?"get":p==="setter"?"set":"value";var y=!t&&e?i["static"]?e:e.prototype:null;var v=t||(y?Object.getOwnPropertyDescriptor(y,i.name):{});var D,M=false;for(var U=n.length-1;U>=0;U--){var V={};for(var j in i)V[j]=j==="access"?{}:i[j];for(var j in i.access)V.access[j]=i.access[j];V.addInitializer=function(e){if(M)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,n[U])(p==="accessor"?{get:v.get,set:v.set}:v[f],V);if(p==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(D=accept(K.get))v.get=D;if(D=accept(K.set))v.set=D;if(D=accept(K.init))o.unshift(D)}else if(D=accept(K)){if(p==="field")o.unshift(D);else v[f]=D}}if(y)Object.defineProperty(y,i.name,v);M=true};f=function(e,t,n){var i=arguments.length>2;for(var o=0;o0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,d=[],p;try{while((t===void 0||t-- >0)&&!(o=i.next()).done)d.push(o.value)}catch(e){p={error:e}}finally{try{if(o&&!o.done&&(n=i["return"]))n.call(i)}finally{if(p)throw p.error}}return d};ee=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)o[e]=t(o[e])}}function resume(e,t){try{step(i[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof ne?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};oe=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:ne(e[i](t)),done:false}:o?o(t):t}:o}};se=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof j==="function"?j(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(i,o){n=e[t](n),settle(i,o,n.done,n.value)}))}}function settle(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};ae=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var Ee=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};Ae=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),i=0;i{e.exports=n(20218)},20218:(e,t,n)=>{"use strict";var i=n(69278);var o=n(64756);var d=n(58611);var p=n(65692);var f=n(24434);var y=n(42613);var v=n(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||d.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,i,o){var d=toOptions(n,i,o);for(var p=0,f=t.requests.length;p=this.maxSockets){o.requests.push(d);return}o.createSocket(d,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){o.emit("free",t,d)}function onCloseOrRemove(e){o.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var i={};n.sockets.push(i);var o=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){o.localAddress=e.localAddress}if(o.proxyAuth){o.headers=o.headers||{};o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")}D("making CONNECT request");var d=n.request(o);d.useChunkedEncodingByDefault=false;d.once("response",onResponse);d.once("upgrade",onUpgrade);d.once("connect",onConnect);d.once("error",onError);d.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(o,p,f){d.removeAllListeners();p.removeAllListeners();if(o.statusCode!==200){D("tunneling socket could not be established, statusCode=%d",o.statusCode);p.destroy();var y=new Error("tunneling socket could not be established, "+"statusCode="+o.statusCode);y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(i);return}if(f.length>0){D("got illegal response body from proxy");p.destroy();var y=new Error("got illegal response body from proxy");y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(i);return}D("tunneling connection has established");n.sockets[n.sockets.indexOf(i)]=p;return t(p)}function onError(t){d.removeAllListeners();D("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, "+"cause="+t.message);o.code="ECONNRESET";e.request.emit("error",o);n.removeSocket(i)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(i){var d=e.request.getHeader("host");var p=mergeOptions({},n.options,{socket:i,servername:d?d.replace(/:.*$/,""):e.host});var f=o.connect(0,p);n.sockets[n.sockets.indexOf(i)]=f;t(f)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{"use strict";const i=n(86197);const o=n(28611);const d=n(68707);const p=n(35076);const f=n(81093);const y=n(59965);const v=n(3440);const{InvalidArgumentError:D}=d;const M=n(56615);const U=n(59136);const V=n(47365);const j=n(47501);const K=n(94004);const ee=n(52429);const te=n(22720);const re=n(53573);const{getGlobalDispatcher:ne,setGlobalDispatcher:ie}=n(32581);const oe=n(78840);const se=n(48299);const ae=n(64415);let Ae;try{n(76982);Ae=true}catch{Ae=false}Object.assign(o.prototype,M);e.exports.Dispatcher=o;e.exports.Client=i;e.exports.Pool=p;e.exports.BalancedPool=f;e.exports.Agent=y;e.exports.ProxyAgent=te;e.exports.RetryHandler=re;e.exports.DecoratorHandler=oe;e.exports.RedirectHandler=se;e.exports.createRedirectInterceptor=ae;e.exports.buildConnector=U;e.exports.errors=d;function makeDispatcher(e){return(t,n,i)=>{if(typeof n==="function"){i=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new D("invalid url")}if(n!=null&&typeof n!=="object"){throw new D("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new D("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(v.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=v.parseURL(t)}const{agent:o,dispatcher:d=ne()}=n;if(o){throw new D("unsupported opts.agent. Did you mean opts.client?")}return e.call(d,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},i)}}e.exports.setGlobalDispatcher=ie;e.exports.getGlobalDispatcher=ne;if(v.nodeMajor>16||v.nodeMajor===16&&v.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=n(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=n(26349).Headers;e.exports.Response=n(48676).Response;e.exports.Request=n(25194).Request;e.exports.FormData=n(43073).FormData;e.exports.File=n(63041).File;e.exports.FileReader=n(82160).FileReader;const{setGlobalOrigin:i,getGlobalOrigin:o}=n(75628);e.exports.setGlobalOrigin=i;e.exports.getGlobalOrigin=o;const{CacheStorage:d}=n(44738);const{kConstruct:p}=n(80296);e.exports.caches=new d(p)}if(v.nodeMajor>=16){const{deleteCookie:t,getCookies:i,getSetCookies:o,setCookie:d}=n(53168);e.exports.deleteCookie=t;e.exports.getCookies=i;e.exports.getSetCookies=o;e.exports.setCookie=d;const{parseMIMEType:p,serializeAMimeType:f}=n(94322);e.exports.parseMIMEType=p;e.exports.serializeAMimeType=f}if(v.nodeMajor>=18&&Ae){const{WebSocket:t}=n(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(M.request);e.exports.stream=makeDispatcher(M.stream);e.exports.pipeline=makeDispatcher(M.pipeline);e.exports.connect=makeDispatcher(M.connect);e.exports.upgrade=makeDispatcher(M.upgrade);e.exports.MockClient=V;e.exports.MockPool=K;e.exports.MockAgent=j;e.exports.mockErrors=ee},59965:(e,t,n)=>{"use strict";const{InvalidArgumentError:i}=n(68707);const{kClients:o,kRunning:d,kClose:p,kDestroy:f,kDispatch:y,kInterceptors:v}=n(36443);const D=n(50001);const M=n(35076);const U=n(86197);const V=n(3440);const j=n(64415);const{WeakRef:K,FinalizationRegistry:ee}=n(13194)();const te=Symbol("onConnect");const re=Symbol("onDisconnect");const ne=Symbol("onConnectionError");const ie=Symbol("maxRedirections");const oe=Symbol("onDrain");const se=Symbol("factory");const ae=Symbol("finalizer");const Ae=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new U(e,t):new M(e,t)}class Agent extends D{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...d}={}){super();if(typeof e!=="function"){throw new i("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new i("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new i("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[v]=d.interceptors&&d.interceptors.Agent&&Array.isArray(d.interceptors.Agent)?d.interceptors.Agent:[j({maxRedirections:t})];this[Ae]={...V.deepClone(d),connect:n};this[Ae].interceptors=d.interceptors?{...d.interceptors}:undefined;this[ie]=t;this[se]=e;this[o]=new Map;this[ae]=new ee((e=>{const t=this[o].get(e);if(t!==undefined&&t.deref()===undefined){this[o].delete(e)}}));const p=this;this[oe]=(e,t)=>{p.emit("drain",e,[p,...t])};this[te]=(e,t)=>{p.emit("connect",e,[p,...t])};this[re]=(e,t,n)=>{p.emit("disconnect",e,[p,...t],n)};this[ne]=(e,t,n)=>{p.emit("connectionError",e,[p,...t],n)}}get[d](){let e=0;for(const t of this[o].values()){const n=t.deref();if(n){e+=n[d]}}return e}[y](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new i("opts.origin must be a non-empty string or URL.")}const d=this[o].get(n);let p=d?d.deref():null;if(!p){p=this[se](e.origin,this[Ae]).on("drain",this[oe]).on("connect",this[te]).on("disconnect",this[re]).on("connectionError",this[ne]);this[o].set(n,new K(p));this[ae].register(p,n)}return p.dispatch(e,t)}async[p](){const e=[];for(const t of this[o].values()){const n=t.deref();if(n){e.push(n.close())}}await Promise.all(e)}async[f](e){const t=[];for(const n of this[o].values()){const i=n.deref();if(i){t.push(i.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,n)=>{const{addAbortListener:i}=n(3440);const{RequestAbortedError:o}=n(68707);const d=Symbol("kListener");const p=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new o)}}function addSignal(e,t){e[p]=null;e[d]=null;if(!t){return}if(t.aborted){abort(e);return}e[p]=t;e[d]=()=>{abort(e)};i(e[p],e[d])}function removeSignal(e){if(!e[p]){return}if("removeEventListener"in e[p]){e[p].removeEventListener("abort",e[d])}else{e[p].removeListener("abort",e[d])}e[p]=null;e[d]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,n)=>{"use strict";const{AsyncResource:i}=n(90290);const{InvalidArgumentError:o,RequestAbortedError:d,SocketError:p}=n(68707);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);class ConnectHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=i||null;this.responseHeaders=d||null;this.callback=t;this.abort=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(){throw new p("bad connect",null)}onUpgrade(e,t,n){const{callback:i,opaque:o,context:d}=this;v(this);this.callback=null;let p=t;if(p!=null){p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t)}this.runInAsyncScope(i,null,null,{statusCode:e,headers:p,socket:n,opaque:o,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,i)=>e?n(e):t(i)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const i=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:i})))}}e.exports=connect},76862:(e,t,n)=>{"use strict";const{Readable:i,Duplex:o,PassThrough:d}=n(2203);const{InvalidArgumentError:p,InvalidReturnValueError:f,RequestAbortedError:y}=n(68707);const v=n(3440);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);const V=n(42613);const j=Symbol("resume");class PipelineRequest extends i{constructor(){super({autoDestroy:true});this[j]=null}_read(){const{[j]:e}=this;if(e){this[j]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends i{constructor(e){super({autoDestroy:true});this[j]=e}_read(){this[j]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new y}t(e)}}class PipelineHandler extends D{constructor(e,t){if(!e||typeof e!=="object"){throw new p("invalid opts")}if(typeof t!=="function"){throw new p("invalid handler")}const{signal:n,method:i,opaque:d,onInfo:f,responseHeaders:D}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new p("invalid method")}if(f&&typeof f!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=d||null;this.responseHeaders=D||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=f||null;this.req=(new PipelineRequest).on("error",v.nop);this.ret=new o({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,n)=>{const{req:i}=this;if(i.push(e,t)||i._readableState.destroyed){n()}else{i[j]=n}},destroy:(e,t)=>{const{body:n,req:i,res:o,ret:d,abort:p}=this;if(!e&&!d._readableState.endEmitted){e=new y}if(p&&e){p()}v.destroy(n,e);v.destroy(i,e);v.destroy(o,e);U(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;M(this,n)}onConnect(e,t){const{ret:n,res:i}=this;V(!i,"pipeline cannot be retried");if(n.destroyed){throw new y}this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:i,handler:o,context:d}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let p;try{this.handler=null;const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);p=this.runInAsyncScope(o,null,{statusCode:e,headers:n,opaque:i,body:this.res,context:d})}catch(e){this.res.on("error",v.nop);throw e}if(!p||typeof p.on!=="function"){throw new f("expected Readable")}p.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;v.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){v.destroy(e,new y)}}));this.body=p}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;v.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new d).destroy(e)}}e.exports=pipeline},14043:(e,t,n)=>{"use strict";const i=n(49927);const{InvalidArgumentError:o,RequestAbortedError:d}=n(68707);const p=n(3440);const{getResolveErrorBodyCallback:f}=n(87655);const{AsyncResource:y}=n(90290);const{addSignal:v,removeSignal:D}=n(80158);class RequestHandler extends y{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:i,opaque:d,body:f,onInfo:y,responseHeaders:D,throwOnError:M,highWaterMark:U}=e;try{if(typeof t!=="function"){throw new o("invalid callback")}if(U&&(typeof U!=="number"||U<0)){throw new o("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new o("invalid method")}if(y&&typeof y!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(p.isStream(f)){p.destroy(f.on("error",p.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=d||null;this.callback=t;this.res=null;this.abort=null;this.body=f;this.trailers={};this.context=null;this.onInfo=y||null;this.throwOnError=M;this.highWaterMark=U;if(p.isStream(f)){f.on("error",(e=>{this.onError(e)}))}v(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(e,t,n,o){const{callback:d,opaque:y,abort:v,context:D,responseHeaders:M,highWaterMark:U}=this;const V=M==="raw"?p.parseRawHeaders(t):p.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:V})}return}const j=M==="raw"?p.parseHeaders(t):V;const K=j["content-type"];const ee=new i({resume:n,abort:v,contentType:K,highWaterMark:U});this.callback=null;this.res=ee;if(d!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(f,null,{callback:d,body:ee,contentType:K,statusCode:e,statusMessage:o,headers:V})}else{this.runInAsyncScope(d,null,null,{statusCode:e,headers:V,trailers:this.trailers,opaque:y,body:ee,context:D})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;D(this);p.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:n,body:i,opaque:o}=this;D(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(t){this.res=null;queueMicrotask((()=>{p.destroy(t,e)}))}if(i){this.body=null;p.destroy(i,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,i)=>e?n(e):t(i)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const i=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:i})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{"use strict";const{finished:i,PassThrough:o}=n(2203);const{InvalidArgumentError:d,InvalidReturnValueError:p,RequestAbortedError:f}=n(68707);const y=n(3440);const{getResolveErrorBodyCallback:v}=n(87655);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);class StreamHandler extends D{constructor(e,t,n){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:i,method:o,opaque:p,body:f,onInfo:v,responseHeaders:D,throwOnError:U}=e;try{if(typeof n!=="function"){throw new d("invalid callback")}if(typeof t!=="function"){throw new d("invalid factory")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new d("invalid method")}if(v&&typeof v!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(y.isStream(f)){y.destroy(f.on("error",y.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=p||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=f;this.onInfo=v||null;this.throwOnError=U||false;if(y.isStream(f)){f.on("error",(e=>{this.onError(e)}))}M(this,i)}onConnect(e,t){if(!this.callback){throw new f}this.abort=e;this.context=t}onHeaders(e,t,n,d){const{factory:f,opaque:D,context:M,callback:U,responseHeaders:V}=this;const j=V==="raw"?y.parseRawHeaders(t):y.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:j})}return}this.factory=null;let K;if(this.throwOnError&&e>=400){const n=V==="raw"?y.parseHeaders(t):j;const i=n["content-type"];K=new o;this.callback=null;this.runInAsyncScope(v,null,{callback:U,body:K,contentType:i,statusCode:e,statusMessage:d,headers:j})}else{if(f===null){return}K=this.runInAsyncScope(f,null,{statusCode:e,headers:j,opaque:D,context:M});if(!K||typeof K.write!=="function"||typeof K.end!=="function"||typeof K.on!=="function"){throw new p("expected Writable")}i(K,{readable:false},(e=>{const{callback:t,res:n,opaque:i,trailers:o,abort:d}=this;this.res=null;if(e||!n.readable){y.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:i,trailers:o});if(e){d()}}))}K.on("drain",n);this.res=K;const ee=K.writableNeedDrain!==undefined?K.writableNeedDrain:K._writableState&&K._writableState.needDrain;return ee!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;U(this);if(!t){return}this.trailers=y.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:i,body:o}=this;U(this);this.factory=null;if(t){this.res=null;y.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(o){this.body=null;y.destroy(o,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,i)=>{stream.call(this,e,t,((e,t)=>e?i(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const i=e&&e.opaque;queueMicrotask((()=>n(t,{opaque:i})))}}e.exports=stream},61882:(e,t,n)=>{"use strict";const{InvalidArgumentError:i,RequestAbortedError:o,SocketError:d}=n(68707);const{AsyncResource:p}=n(90290);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);const D=n(42613);class UpgradeHandler extends p{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid callback")}const{signal:n,opaque:o,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=d||null;this.opaque=o||null;this.callback=t;this.abort=null;this.context=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=null}onHeaders(){throw new d("bad upgrade",null)}onUpgrade(e,t,n){const{callback:i,opaque:o,context:d}=this;D.strictEqual(e,101);v(this);this.callback=null;const p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);this.runInAsyncScope(i,null,null,{headers:p,socket:n,opaque:o,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,i)=>e?n(e):t(i)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const i=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:i})))}}e.exports=upgrade},56615:(e,t,n)=>{"use strict";e.exports.request=n(14043);e.exports.stream=n(3560);e.exports.pipeline=n(76862);e.exports.upgrade=n(61882);e.exports.connect=n(34660)},49927:(e,t,n)=>{"use strict";const i=n(42613);const{Readable:o}=n(2203);const{RequestAbortedError:d,NotSupportedError:p,InvalidArgumentError:f}=n(68707);const y=n(3440);const{ReadableStreamFrom:v,toUSVString:D}=n(3440);let M;const U=Symbol("kConsume");const V=Symbol("kReading");const j=Symbol("kBody");const K=Symbol("abort");const ee=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends o{constructor({resume:e,abort:t,contentType:n="",highWaterMark:i=64*1024}){super({autoDestroy:true,read:e,highWaterMark:i});this._readableState.dataEmitted=false;this[K]=t;this[U]=null;this[j]=null;this[ee]=n;this[V]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new d}if(e){this[K]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[V]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[V]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[U]&&e!==null&&this.readableLength===0){consumePush(this[U],e);return this[V]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new p}get bodyUsed(){return y.isDisturbed(this)}get body(){if(!this[j]){this[j]=v(this);if(this[U]){this[j].getReader();i(this[j].locked)}}return this[j]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const n=e&&e.signal;if(n){try{if(typeof n!=="object"||!("aborted"in n)){throw new f("signal must be an AbortSignal")}y.throwIfAborted(n)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,i)=>{const o=n?y.addAbortListener(n,(()=>{this.destroy()})):noop;this.on("close",(function(){o();if(n&&n.aborted){i(n.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[j]&&e[j].locked===true||e[U]}function isUnusable(e){return y.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}i(!e[U]);return new Promise(((n,i)=>{e[U]={type:t,stream:e,resolve:n,reject:i,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[U],e)})).on("close",(function(){if(this[U].body!==null){consumeFinish(this[U],new d)}}));process.nextTick(consumeStart,e[U])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const n of t.buffer){consumePush(e,n)}if(t.endEmitted){consumeEnd(this[U])}else{e.stream.on("end",(function(){consumeEnd(this[U])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:i,resolve:o,stream:d,length:p}=e;try{if(t==="text"){o(D(Buffer.concat(i)))}else if(t==="json"){o(JSON.parse(Buffer.concat(i)))}else if(t==="arrayBuffer"){const e=new Uint8Array(p);let t=0;for(const n of i){e.set(n,t);t+=n.byteLength}o(e.buffer)}else if(t==="blob"){if(!M){M=n(20181).Blob}o(new M(i,{type:d[ee]}))}consumeFinish(e)}catch(e){d.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,n)=>{const i=n(42613);const{ResponseStatusCodeError:o}=n(68707);const{toUSVString:d}=n(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:p,statusMessage:f,headers:y}){i(t);let v=[];let D=0;for await(const e of t){v.push(e);D+=e.length;if(D>128*1024){v=null;break}}if(p===204||!n||!v){process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y));return}try{if(n.startsWith("application/json")){const t=JSON.parse(d(Buffer.concat(v)));process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}if(n.startsWith("text/")){const t=d(Buffer.concat(v));process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}}catch(e){}process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,n)=>{"use strict";const{BalancedPoolMissingUpstreamError:i,InvalidArgumentError:o}=n(68707);const{PoolBase:d,kClients:p,kNeedDrain:f,kAddClient:y,kRemoveClient:v,kGetDispatcher:D}=n(58640);const M=n(35076);const{kUrl:U,kInterceptors:V}=n(36443);const{parseOrigin:j}=n(3440);const K=Symbol("factory");const ee=Symbol("options");const te=Symbol("kGreatestCommonDivisor");const re=Symbol("kCurrentWeight");const ne=Symbol("kIndex");const ie=Symbol("kWeight");const oe=Symbol("kMaxWeightPerServer");const se=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new M(e,t)}class BalancedPool extends d{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[ee]=n;this[ne]=-1;this[re]=0;this[oe]=this[ee].maxWeightPerServer||100;this[se]=this[ee].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new o("factory must be a function.")}this[V]=n.interceptors&&n.interceptors.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[K]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=j(e).origin;if(this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[K](t,Object.assign({},this[ee]));this[y](n);n.on("connect",(()=>{n[ie]=Math.min(this[oe],n[ie]+this[se])}));n.on("connectionError",(()=>{n[ie]=Math.max(1,n[ie]-this[se]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[ie]=Math.max(1,n[ie]-this[se]);this._updateBalancedPoolStats()}}));for(const e of this[p]){e[ie]=this[oe]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[te]=this[p].map((e=>e[ie])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=j(e).origin;const n=this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[v](n)}return this}get upstreams(){return this[p].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[U].origin))}[D](){if(this[p].length===0){throw new i}const e=this[p].find((e=>!e[f]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[p].map((e=>e[f])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let o=this[p].findIndex((e=>!e[f]));while(n++this[p][o][ie]&&!e[f]){o=this[ne]}if(this[ne]===0){this[re]=this[re]-this[te];if(this[re]<=0){this[re]=this[oe]}}if(e[ie]>=this[re]&&!e[f]){return e}}this[re]=this[p][o][ie];this[ne]=o;return this[p][o]}}e.exports=BalancedPool},50479:(e,t,n)=>{"use strict";const{kConstruct:i}=n(80296);const{urlEquals:o,fieldValues:d}=n(23993);const{kEnumerableProperty:p,isDisturbed:f}=n(3440);const{kHeadersList:y}=n(36443);const{webidl:v}=n(74222);const{Response:D,cloneResponse:M}=n(48676);const{Request:U}=n(25194);const{kState:V,kHeaders:j,kGuard:K,kRealm:ee}=n(89710);const{fetching:te}=n(12315);const{urlIsHttpHttpsScheme:re,createDeferredPromise:ne,readAllBytes:ie}=n(15523);const oe=n(42613);const{getGlobalDispatcher:se}=n(32581);class Cache{#e;constructor(){if(arguments[0]!==i){v.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);const n=await this.matchAll(e,t);if(n.length===0){return}return n[0]}async matchAll(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const i=[];if(e===undefined){for(const e of this.#e){i.push(e[1])}}else{const e=this.#t(n,t);for(const t of e){i.push(t[1])}}const o=[];for(const e of i){const t=new D(e.body?.source??null);const n=t[V].body;t[V]=e;t[V].body=n;t[j][y]=e.headersList;t[j][K]="immutable";o.push(t)}return Object.freeze(o)}async add(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=v.converters.RequestInfo(e);const t=[e];const n=this.addAll(t);return await n}async addAll(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=v.converters["sequence"](e);const t=[];const n=[];for(const t of e){if(typeof t==="string"){continue}const e=t[V];if(!re(e.url)||e.method!=="GET"){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const i=[];for(const o of e){const e=new U(o)[V];if(!re(e.url)){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";n.push(e);const p=ne();i.push(te({request:e,dispatcher:se(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){p.reject(v.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=d(e.headersList.get("vary"));for(const e of t){if(e==="*"){p.reject(v.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of i){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){p.reject(new DOMException("aborted","AbortError"));return}p.resolve(e)}}));t.push(p.promise)}const o=Promise.all(t);const p=await o;const f=[];let y=0;for(const e of p){const t={type:"put",request:n[y],response:e};f.push(t);y++}const D=ne();let M=null;try{this.#r(f)}catch(e){M=e}queueMicrotask((()=>{if(M===null){D.resolve(undefined)}else{D.reject(M)}}));return D.promise}async put(e,t){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=v.converters.RequestInfo(e);t=v.converters.Response(t);let n=null;if(e instanceof U){n=e[V]}else{n=new U(e)[V]}if(!re(n.url)||n.method!=="GET"){throw v.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const i=t[V];if(i.status===206){throw v.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(i.headersList.contains("vary")){const e=d(i.headersList.get("vary"));for(const t of e){if(t==="*"){throw v.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(i.body&&(f(i.body.stream)||i.body.stream.locked)){throw v.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const o=M(i);const p=ne();if(i.body!=null){const e=i.body.stream;const t=e.getReader();ie(t).then(p.resolve,p.reject)}else{p.resolve(undefined)}const y=[];const D={type:"put",request:n,response:o};y.push(D);const j=await p.promise;if(o.body!=null){o.body.source=j}const K=ne();let ee=null;try{this.#r(y)}catch(e){ee=e}queueMicrotask((()=>{if(ee===null){K.resolve()}else{K.reject(ee)}}));return K.promise}async delete(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return false}}else{oe(typeof e==="string");n=new U(e)[V]}const i=[];const o={type:"delete",request:n,options:t};i.push(o);const d=ne();let p=null;let f;try{f=this.#r(i)}catch(e){p=e}queueMicrotask((()=>{if(p===null){d.resolve(!!f?.length)}else{d.reject(p)}}));return d.promise}async keys(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const i=ne();const o=[];if(e===undefined){for(const e of this.#e){o.push(e[0])}}else{const e=this.#t(n,t);for(const t of e){o.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of o){const n=new U("https://a");n[V]=t;n[j][y]=t.headersList;n[j][K]="immutable";n[ee]=t.client;e.push(n)}i.resolve(Object.freeze(e))}));return i.promise}#r(e){const t=this.#e;const n=[...t];const i=[];const o=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(n.request,n.options,i).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#t(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);oe(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const o=n.request;if(!re(o.url)){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(o.method!=="GET"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(n.request);for(const n of e){const e=t.indexOf(n);oe(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);i.push([n.request,n.response])}o.push([n.request,n.response])}return o}catch(e){this.#e.length=0;this.#e=n;throw e}}#t(e,t,n){const i=[];const o=n??this.#e;for(const n of o){const[o,d]=n;if(this.#n(e,o,d,t)){i.push(n)}}return i}#n(e,t,n=null,i){const p=new URL(e.url);const f=new URL(t.url);if(i?.ignoreSearch){f.search="";p.search=""}if(!o(p,f,true)){return false}if(n==null||i?.ignoreVary||!n.headersList.contains("vary")){return true}const y=d(n.headersList.get("vary"));for(const n of y){if(n==="*"){return false}const i=t.headersList.get(n);const o=e.headersList.get(n);if(i!==o){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:p,matchAll:p,add:p,addAll:p,put:p,delete:p,keys:p});const ae=[{key:"ignoreSearch",converter:v.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:v.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:v.converters.boolean,defaultValue:false}];v.converters.CacheQueryOptions=v.dictionaryConverter(ae);v.converters.MultiCacheQueryOptions=v.dictionaryConverter([...ae,{key:"cacheName",converter:v.converters.DOMString}]);v.converters.Response=v.interfaceConverter(D);v.converters["sequence"]=v.sequenceConverter(v.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,n)=>{"use strict";const{kConstruct:i}=n(80296);const{Cache:o}=n(50479);const{webidl:d}=n(74222);const{kEnumerableProperty:p}=n(3440);class CacheStorage{#i=new Map;constructor(){if(arguments[0]!==i){d.illegalConstructor()}}async match(e,t={}){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=d.converters.RequestInfo(e);t=d.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#i.has(t.cacheName)){const n=this.#i.get(t.cacheName);const d=new o(i,n);return await d.match(e,t)}}else{for(const n of this.#i.values()){const d=new o(i,n);const p=await d.match(e,t);if(p!==undefined){return p}}}}async has(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=d.converters.DOMString(e);return this.#i.has(e)}async open(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=d.converters.DOMString(e);if(this.#i.has(e)){const t=this.#i.get(e);return new o(i,t)}const t=[];this.#i.set(e,t);return new o(i,t)}async delete(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=d.converters.DOMString(e);return this.#i.delete(e)}async keys(){d.brandCheck(this,CacheStorage);const e=this.#i.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:p,has:p,open:p,delete:p,keys:p});e.exports={CacheStorage:CacheStorage}},80296:(e,t,n)=>{"use strict";e.exports={kConstruct:n(36443).kConstruct}},23993:(e,t,n)=>{"use strict";const i=n(42613);const{URLSerializer:o}=n(94322);const{isValidHeaderName:d}=n(15523);function urlEquals(e,t,n=false){const i=o(e,n);const d=o(t,n);return i===d}function fieldValues(e){i(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(!n.length){continue}else if(!d(n)){continue}t.push(n)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,n)=>{"use strict";const i=n(42613);const o=n(69278);const d=n(58611);const{pipeline:p}=n(2203);const f=n(3440);const y=n(28804);const v=n(44655);const D=n(50001);const{RequestContentLengthMismatchError:M,ResponseContentLengthMismatchError:U,InvalidArgumentError:V,RequestAbortedError:j,HeadersTimeoutError:K,HeadersOverflowError:ee,SocketError:te,InformationalError:re,BodyTimeoutError:ne,HTTPParserError:ie,ResponseExceededMaxSizeError:oe,ClientDestroyedError:se}=n(68707);const ae=n(59136);const{kUrl:Ae,kReset:ce,kServerName:le,kClient:ue,kBusy:de,kParser:pe,kConnect:ge,kBlocking:me,kResuming:he,kRunning:fe,kPending:Ee,kSize:ye,kWriting:Ce,kQueue:Ie,kConnected:Be,kConnecting:be,kNeedDrain:Qe,kNoRef:Se,kKeepAliveDefaultTimeout:Ne,kHostHeader:Re,kPendingIdx:we,kRunningIdx:ve,kError:Pe,kPipelining:xe,kSocket:De,kKeepAliveTimeoutValue:Te,kMaxHeadersSize:ke,kKeepAliveMaxTimeout:Oe,kKeepAliveTimeoutThreshold:Le,kHeadersTimeout:Me,kBodyTimeout:Fe,kStrictContentLength:Ue,kConnector:He,kMaxRedirections:_e,kMaxRequests:qe,kCounter:ze,kClose:Ve,kDestroy:Ge,kDispatch:je,kInterceptors:Ye,kLocalAddress:Je,kMaxResponseSize:We,kHTTPConnVersion:$e,kHost:Ke,kHTTP2Session:Xe,kHTTP2SessionState:Ze,kHTTP2BuildRequest:At,kHTTP2CopyHeaders:dt,kHTTP1BuildRequest:mt}=n(36443);let Et;try{Et=n(85675)}catch{Et={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:yt,HTTP2_HEADER_METHOD:Ct,HTTP2_HEADER_PATH:It,HTTP2_HEADER_SCHEME:Bt,HTTP2_HEADER_CONTENT_LENGTH:bt,HTTP2_HEADER_EXPECT:Qt,HTTP2_HEADER_STATUS:St}}=Et;let Nt=false;const Rt=Buffer[Symbol.species];const wt=Symbol("kClosedResolve");const vt={};try{const e=n(31637);vt.sendHeaders=e.channel("undici:client:sendHeaders");vt.beforeConnect=e.channel("undici:client:beforeConnect");vt.connectError=e.channel("undici:client:connectError");vt.connected=e.channel("undici:client:connected")}catch{vt.sendHeaders={hasSubscribers:false};vt.beforeConnect={hasSubscribers:false};vt.connectError={hasSubscribers:false};vt.connected={hasSubscribers:false}}class Client extends D{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:i,socketTimeout:p,requestTimeout:y,connectTimeout:v,bodyTimeout:D,idleTimeout:M,keepAlive:U,keepAliveTimeout:j,maxKeepAliveTimeout:K,keepAliveMaxTimeout:ee,keepAliveTimeoutThreshold:te,socketPath:re,pipelining:ne,tls:ie,strictContentLength:oe,maxCachedSessions:se,maxRedirections:ce,connect:ue,maxRequestsPerClient:de,localAddress:pe,maxResponseSize:ge,autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe,allowH2:Ee,maxConcurrentStreams:ye}={}){super();if(U!==undefined){throw new V("unsupported keepAlive, use pipelining=0 instead")}if(p!==undefined){throw new V("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(y!==undefined){throw new V("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(M!==undefined){throw new V("unsupported idleTimeout, use keepAliveTimeout instead")}if(K!==undefined){throw new V("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new V("invalid maxHeaderSize")}if(re!=null&&typeof re!=="string"){throw new V("invalid socketPath")}if(v!=null&&(!Number.isFinite(v)||v<0)){throw new V("invalid connectTimeout")}if(j!=null&&(!Number.isFinite(j)||j<=0)){throw new V("invalid keepAliveTimeout")}if(ee!=null&&(!Number.isFinite(ee)||ee<=0)){throw new V("invalid keepAliveMaxTimeout")}if(te!=null&&!Number.isFinite(te)){throw new V("invalid keepAliveTimeoutThreshold")}if(i!=null&&(!Number.isInteger(i)||i<0)){throw new V("headersTimeout must be a positive integer or zero")}if(D!=null&&(!Number.isInteger(D)||D<0)){throw new V("bodyTimeout must be a positive integer or zero")}if(ue!=null&&typeof ue!=="function"&&typeof ue!=="object"){throw new V("connect must be a function or an object")}if(ce!=null&&(!Number.isInteger(ce)||ce<0)){throw new V("maxRedirections must be a positive number")}if(de!=null&&(!Number.isInteger(de)||de<0)){throw new V("maxRequestsPerClient must be a positive number")}if(pe!=null&&(typeof pe!=="string"||o.isIP(pe)===0)){throw new V("localAddress must be valid string IP address")}if(ge!=null&&(!Number.isInteger(ge)||ge<-1)){throw new V("maxResponseSize must be a positive number")}if(fe!=null&&(!Number.isInteger(fe)||fe<-1)){throw new V("autoSelectFamilyAttemptTimeout must be a positive number")}if(Ee!=null&&typeof Ee!=="boolean"){throw new V("allowH2 must be a valid boolean value")}if(ye!=null&&(typeof ye!=="number"||ye<1)){throw new V("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof ue!=="function"){ue=ae({...ie,maxCachedSessions:se,allowH2:Ee,socketPath:re,timeout:v,...f.nodeHasAutoSelectFamily&&me?{autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe}:undefined,...ue})}this[Ye]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[xt({maxRedirections:ce})];this[Ae]=f.parseOrigin(e);this[He]=ue;this[De]=null;this[xe]=ne!=null?ne:1;this[ke]=n||d.maxHeaderSize;this[Ne]=j==null?4e3:j;this[Oe]=ee==null?6e5:ee;this[Le]=te==null?1e3:te;this[Te]=this[Ne];this[le]=null;this[Je]=pe!=null?pe:null;this[he]=0;this[Qe]=0;this[Re]=`host: ${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}\r\n`;this[Fe]=D!=null?D:3e5;this[Me]=i!=null?i:3e5;this[Ue]=oe==null?true:oe;this[_e]=ce;this[qe]=de;this[wt]=null;this[We]=ge>-1?ge:-1;this[$e]="h1";this[Xe]=null;this[Ze]=!Ee?null:{openStreams:0,maxConcurrentStreams:ye!=null?ye:100};this[Ke]=`${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}`;this[Ie]=[];this[ve]=0;this[we]=0}get pipelining(){return this[xe]}set pipelining(e){this[xe]=e;resume(this,true)}get[Ee](){return this[Ie].length-this[we]}get[fe](){return this[we]-this[ve]}get[ye](){return this[Ie].length-this[ve]}get[Be](){return!!this[De]&&!this[be]&&!this[De].destroyed}get[de](){const e=this[De];return e&&(e[ce]||e[Ce]||e[me])||this[ye]>=(this[xe]||1)||this[Ee]>0}[ge](e){connect(this);this.once("connect",e)}[je](e,t){const n=e.origin||this[Ae].origin;const i=this[$e]==="h2"?v[At](n,e,t):v[mt](n,e,t);this[Ie].push(i);if(this[he]){}else if(f.bodyLength(i.body)==null&&f.isIterable(i.body)){this[he]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[he]&&this[Qe]!==2&&this[de]){this[Qe]=2}return this[Qe]<2}async[Ve](){return new Promise((e=>{if(!this[ye]){e(null)}else{this[wt]=e}}))}async[Ge](e){return new Promise((t=>{const n=this[Ie].splice(this[we]);for(let t=0;t{if(this[wt]){this[wt]();this[wt]=null}t()};if(this[Xe]!=null){f.destroy(this[Xe],e);this[Xe]=null;this[Ze]=null}if(!this[De]){queueMicrotask(callback)}else{f.destroy(this[De].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){i(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[De][Pe]=e;onError(this[ue],e)}function onHttp2FrameError(e,t,n){const i=new re(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(n===0){this[De][Pe]=i;onError(this[ue],i)}}function onHttp2SessionEnd(){f.destroy(this,new te("other side closed"));f.destroy(this[De],new te("other side closed"))}function onHTTP2GoAway(e){const t=this[ue];const n=new re(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[De]=null;t[Xe]=null;if(t.destroyed){i(this[Ee]===0);const e=t[Ie].splice(t[ve]);for(let t=0;t0){const e=t[Ie][t[ve]];t[Ie][t[ve]++]=null;errorRequest(t,e,n)}t[we]=t[ve];i(t[fe]===0);t.emit("disconnect",t[Ae],[t],n);resume(t)}const Pt=n(52824);const xt=n(64415);const Dt=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(n(53434),"base64"))}catch(i){t=await WebAssembly.compile(Buffer.from(e||n(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onStatus(new Rt(Lt.buffer,o,n))||0},wasm_on_message_begin:e=>{i.strictEqual(Ot.ptr,e);return Ot.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onHeaderField(new Rt(Lt.buffer,o,n))||0},wasm_on_header_value:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onHeaderValue(new Rt(Lt.buffer,o,n))||0},wasm_on_headers_complete:(e,t,n,o)=>{i.strictEqual(Ot.ptr,e);return Ot.onHeadersComplete(t,Boolean(n),Boolean(o))||0},wasm_on_body:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onBody(new Rt(Lt.buffer,o,n))||0},wasm_on_message_complete:e=>{i.strictEqual(Ot.ptr,e);return Ot.onMessageComplete()||0}}})}let Tt=null;let kt=lazyllhttp();kt.catch();let Ot=null;let Lt=null;let Mt=0;let Ft=null;const Ut=1;const Ht=2;const _t=3;class Parser{constructor(e,t,{exports:n}){i(Number.isFinite(e[ke])&&e[ke]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(Pt.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[ke];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[We]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){y.clearTimeout(this.timeout);if(e){this.timeout=y.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}i(this.ptr!=null);i(Ot==null);this.llhttp.llhttp_resume(this.ptr);i(this.timeoutType===Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Dt);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){i(this.ptr!=null);i(Ot==null);i(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>Mt){if(Ft){n.free(Ft)}Mt=Math.ceil(e.length/4096)*4096;Ft=n.malloc(Mt)}new Uint8Array(n.memory.buffer,Ft,Mt).set(e);try{let i;try{Lt=e;Ot=this;i=n.llhttp_execute(this.ptr,Ft,e.length)}catch(e){throw e}finally{Ot=null;Lt=null}const o=n.llhttp_get_error_pos(this.ptr)-Ft;if(i===Pt.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(o))}else if(i===Pt.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(o))}else if(i!==Pt.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let d="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);d="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new ie(d,Pt.ERROR[i],e.slice(o))}}catch(e){f.destroy(t,e)}}destroy(){i(this.ptr!=null);i(Ot==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;y.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[Ie][t[ve]];if(!n){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10&&n.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(n.length===10&&n.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(n.length===14&&n.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){f.destroy(this.socket,new ee)}}onUpgrade(e){const{upgrade:t,client:n,socket:o,headers:d,statusCode:p}=this;i(t);const y=n[Ie][n[ve]];i(y);i(!o.destroyed);i(o===n[De]);i(!this.paused);i(y.upgrade||y.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;i(this.headers.length%2===0);this.headers=[];this.headersSize=0;o.unshift(e);o[pe].destroy();o[pe]=null;o[ue]=null;o[Pe]=null;o.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);n[De]=null;n[Ie][n[ve]++]=null;n.emit("disconnect",n[Ae],[n],new re("upgrade"));try{y.onUpgrade(p,d,o)}catch(e){f.destroy(o,e)}resume(n)}onHeadersComplete(e,t,n){const{client:o,socket:d,headers:p,statusText:y}=this;if(d.destroyed){return-1}const v=o[Ie][o[ve]];if(!v){return-1}i(!this.upgrade);i(this.statusCode<200);if(e===100){f.destroy(d,new te("bad response",f.getSocketInfo(d)));return-1}if(t&&!v.upgrade){f.destroy(d,new te("bad upgrade",f.getSocketInfo(d)));return-1}i.strictEqual(this.timeoutType,Ut);this.statusCode=e;this.shouldKeepAlive=n||v.method==="HEAD"&&!d[ce]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=v.bodyTimeout!=null?v.bodyTimeout:o[Fe];this.setTimeout(e,Ht)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(v.method==="CONNECT"){i(o[fe]===1);this.upgrade=true;return 2}if(t){i(o[fe]===1);this.upgrade=true;return 2}i(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&o[xe]){const e=this.keepAlive?f.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-o[Le],o[Oe]);if(t<=0){d[ce]=true}else{o[Te]=t}}else{o[Te]=o[Ne]}}else{d[ce]=true}const D=v.onHeaders(e,p,this.resume,y)===false;if(v.aborted){return-1}if(v.method==="HEAD"){return 1}if(e<200){return 1}if(d[me]){d[me]=false;resume(o)}return D?Pt.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:o,maxResponseSize:d}=this;if(n.destroyed){return-1}const p=t[Ie][t[ve]];i(p);i.strictEqual(this.timeoutType,Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}i(o>=200);if(d>-1&&this.bytesRead+e.length>d){f.destroy(n,new oe);return-1}this.bytesRead+=e.length;if(p.onData(e)===false){return Pt.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:o,headers:d,contentLength:p,bytesRead:y,shouldKeepAlive:v}=this;if(t.destroyed&&(!n||v)){return-1}if(o){return}const D=e[Ie][e[ve]];i(D);i(n>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";i(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(n<200){return}if(D.method!=="HEAD"&&p&&y!==parseInt(p,10)){f.destroy(t,new U);return-1}D.onComplete(d);e[Ie][e[ve]++]=null;if(t[Ce]){i.strictEqual(e[fe],0);f.destroy(t,new re("reset"));return Pt.ERROR.PAUSED}else if(!v){f.destroy(t,new re("reset"));return Pt.ERROR.PAUSED}else if(t[ce]&&e[fe]===0){f.destroy(t,new re("reset"));return Pt.ERROR.PAUSED}else if(e[xe]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:o}=e;if(n===Ut){if(!t[Ce]||t.writableNeedDrain||o[fe]>1){i(!e.paused,"cannot be paused while waiting for headers");f.destroy(t,new K)}}else if(n===Ht){if(!e.paused){f.destroy(t,new ne)}}else if(n===_t){i(o[fe]===0&&o[Te]);f.destroy(t,new re("socket idle timeout"))}}function onSocketReadable(){const{[pe]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[ue]:t,[pe]:n}=this;i(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[$e]!=="h2"){if(e.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}}this[Pe]=e;onError(this[ue],e)}function onError(e,t){if(e[fe]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){i(e[we]===e[ve]);const n=e[Ie].splice(e[ve]);for(let i=0;i0&&n.code!=="UND_ERR_INFO"){const t=e[Ie][e[ve]];e[Ie][e[ve]++]=null;errorRequest(e,t,n)}e[we]=e[ve];i(e[fe]===0);e.emit("disconnect",e[Ae],[e],n);resume(e)}async function connect(e){i(!e[be]);i(!e[De]);let{host:t,hostname:n,protocol:d,port:p}=e[Ae];if(n[0]==="["){const e=n.indexOf("]");i(e!==-1);const t=n.substring(1,e);i(o.isIP(t));n=t}e[be]=true;if(vt.beforeConnect.hasSubscribers){vt.beforeConnect.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He]})}try{const o=await new Promise(((i,o)=>{e[He]({host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},((e,t)=>{if(e){o(e)}else{i(t)}}))}));if(e.destroyed){f.destroy(o.on("error",(()=>{})),new se);return}e[be]=false;i(o);const y=o.alpnProtocol==="h2";if(y){if(!Nt){Nt=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Et.connect(e[Ae],{createConnection:()=>o,peerMaxConcurrentStreams:e[Ze].maxConcurrentStreams});e[$e]="h2";t[ue]=e;t[De]=o;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[Xe]=t;o[Xe]=t}else{if(!Tt){Tt=await kt;kt=null}o[Se]=false;o[Ce]=false;o[ce]=false;o[me]=false;o[pe]=new Parser(e,o,Tt)}o[ze]=0;o[qe]=e[qe];o[ue]=e;o[Pe]=null;o.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[De]=o;if(vt.connected.hasSubscribers){vt.connected.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],socket:o})}e.emit("connect",e[Ae],[e])}catch(o){if(e.destroyed){return}e[be]=false;if(vt.connectError.hasSubscribers){vt.connectError.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],error:o})}if(o.code==="ERR_TLS_CERT_ALTNAME_INVALID"){i(e[fe]===0);while(e[Ee]>0&&e[Ie][e[we]].servername===e[le]){const t=e[Ie][e[we]++];errorRequest(e,t,o)}}else{onError(e,o)}e.emit("connectionError",e[Ae],[e],o)}resume(e)}function emitDrain(e){e[Qe]=0;e.emit("drain",e[Ae],[e])}function resume(e,t){if(e[he]===2){return}e[he]=2;_resume(e,t);e[he]=0;if(e[ve]>256){e[Ie].splice(0,e[ve]);e[we]-=e[ve];e[ve]=0}}function _resume(e,t){while(true){if(e.destroyed){i(e[Ee]===0);return}if(e[wt]&&!e[ye]){e[wt]();e[wt]=null;return}const n=e[De];if(n&&!n.destroyed&&n.alpnProtocol!=="h2"){if(e[ye]===0){if(!n[Se]&&n.unref){n.unref();n[Se]=true}}else if(n[Se]&&n.ref){n.ref();n[Se]=false}if(e[ye]===0){if(n[pe].timeoutType!==_t){n[pe].setTimeout(e[Te],_t)}}else if(e[fe]>0&&n[pe].statusCode<200){if(n[pe].timeoutType!==Ut){const t=e[Ie][e[ve]];const i=t.headersTimeout!=null?t.headersTimeout:e[Me];n[pe].setTimeout(i,Ut)}}}if(e[de]){e[Qe]=2}else if(e[Qe]===2){if(t){e[Qe]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[Ee]===0){return}if(e[fe]>=(e[xe]||1)){return}const o=e[Ie][e[we]];if(e[Ae].protocol==="https:"&&e[le]!==o.servername){if(e[fe]>0){return}e[le]=o.servername;if(n&&n.servername!==o.servername){f.destroy(n,new re("servername changed"));return}}if(e[be]){return}if(!n&&!e[Xe]){connect(e);return}if(n.destroyed||n[Ce]||n[ce]||n[me]){return}if(e[fe]>0&&!o.idempotent){return}if(e[fe]>0&&(o.upgrade||o.method==="CONNECT")){return}if(e[fe]>0&&f.bodyLength(o.body)!==0&&(f.isStream(o.body)||f.isAsyncIterable(o.body))){return}if(!o.aborted&&write(e,o)){e[we]++}else{e[Ie].splice(e[we],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[$e]==="h2"){writeH2(e,e[Xe],t);return}const{body:n,method:o,path:d,host:p,upgrade:y,headers:v,blocking:D,reset:U}=t;const V=o==="PUT"||o==="POST"||o==="PATCH";if(n&&typeof n.read==="function"){n.read(0)}const K=f.bodyLength(n);let ee=K;if(ee===null){ee=t.contentLength}if(ee===0&&!V){ee=null}if(shouldSendContentLength(o)&&ee>0&&t.contentLength!==null&&t.contentLength!==ee){if(e[Ue]){errorRequest(e,t,new M);return false}process.emitWarning(new M)}const te=e[De];try{t.onConnect((n=>{if(t.aborted||t.completed){return}errorRequest(e,t,n||new j);f.destroy(te,new re("aborted"))}))}catch(n){errorRequest(e,t,n)}if(t.aborted){return false}if(o==="HEAD"){te[ce]=true}if(y||o==="CONNECT"){te[ce]=true}if(U!=null){te[ce]=U}if(e[qe]&&te[ze]++>=e[qe]){te[ce]=true}if(D){te[me]=true}let ne=`${o} ${d} HTTP/1.1\r\n`;if(typeof p==="string"){ne+=`host: ${p}\r\n`}else{ne+=e[Re]}if(y){ne+=`connection: upgrade\r\nupgrade: ${y}\r\n`}else if(e[xe]&&!te[ce]){ne+="connection: keep-alive\r\n"}else{ne+="connection: close\r\n"}if(v){ne+=v}if(vt.sendHeaders.hasSubscribers){vt.sendHeaders.publish({request:t,headers:ne,socket:te})}if(!n||K===0){if(ee===0){te.write(`${ne}content-length: 0\r\n\r\n`,"latin1")}else{i(ee===null,"no body must not have content length");te.write(`${ne}\r\n`,"latin1")}t.onRequestSent()}else if(f.isBuffer(n)){i(ee===n.byteLength,"buffer body must have content length");te.cork();te.write(`${ne}content-length: ${ee}\r\n\r\n`,"latin1");te.write(n);te.uncork();t.onBodySent(n);t.onRequestSent();if(!V){te[ce]=true}}else if(f.isBlobLike(n)){if(typeof n.stream==="function"){writeIterable({body:n.stream(),client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{writeBlob({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}}else if(f.isStream(n)){writeStream({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else if(f.isIterable(n)){writeIterable({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{i(false)}return true}function writeH2(e,t,n){const{body:o,method:d,path:p,host:y,upgrade:D,expectContinue:U,signal:V,headers:K}=n;let ee;if(typeof K==="string")ee=v[dt](K.trim());else ee=K;if(D){errorRequest(e,n,new Error("Upgrade not supported for H2"));return false}try{n.onConnect((t=>{if(n.aborted||n.completed){return}errorRequest(e,n,t||new j)}))}catch(t){errorRequest(e,n,t)}if(n.aborted){return false}let te;const ne=e[Ze];ee[yt]=y||e[Ke];ee[Ct]=d;if(d==="CONNECT"){t.ref();te=t.request(ee,{endStream:false,signal:V});if(te.id&&!te.pending){n.onUpgrade(null,null,te);++ne.openStreams}else{te.once("ready",(()=>{n.onUpgrade(null,null,te);++ne.openStreams}))}te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0)t.unref()}));return true}ee[It]=p;ee[Bt]="https";const ie=d==="PUT"||d==="POST"||d==="PATCH";if(o&&typeof o.read==="function"){o.read(0)}let oe=f.bodyLength(o);if(oe==null){oe=n.contentLength}if(oe===0||!ie){oe=null}if(shouldSendContentLength(d)&&oe>0&&n.contentLength!=null&&n.contentLength!==oe){if(e[Ue]){errorRequest(e,n,new M);return false}process.emitWarning(new M)}if(oe!=null){i(o,"no body must not have content length");ee[bt]=`${oe}`}t.ref();const se=d==="GET"||d==="HEAD";if(U){ee[Qt]="100-continue";te=t.request(ee,{endStream:se,signal:V});te.once("continue",writeBodyH2)}else{te=t.request(ee,{endStream:se,signal:V});writeBodyH2()}++ne.openStreams;te.once("response",(e=>{const{[St]:t,...i}=e;if(n.onHeaders(Number(t),i,te.resume.bind(te),"")===false){te.pause()}}));te.once("end",(()=>{n.onComplete([])}));te.on("data",(e=>{if(n.onData(e)===false){te.pause()}}));te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0){t.unref()}}));te.once("error",(function(t){if(e[Xe]&&!e[Xe].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,t)}}));te.once("frameError",((t,i)=>{const o=new re(`HTTP/2: "frameError" received - type ${t}, code ${i}`);errorRequest(e,n,o);if(e[Xe]&&!e[Xe].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,o)}}));return true;function writeBodyH2(){if(!o){n.onRequestSent()}else if(f.isBuffer(o)){i(oe===o.byteLength,"buffer body must have content length");te.cork();te.write(o);te.uncork();te.end();n.onBodySent(o);n.onRequestSent()}else if(f.isBlobLike(o)){if(typeof o.stream==="function"){writeIterable({client:e,request:n,contentLength:oe,h2stream:te,expectsPayload:ie,body:o.stream(),socket:e[De],header:""})}else{writeBlob({body:o,client:e,request:n,contentLength:oe,expectsPayload:ie,h2stream:te,header:"",socket:e[De]})}}else if(f.isStream(o)){writeStream({body:o,client:e,request:n,contentLength:oe,expectsPayload:ie,socket:e[De],h2stream:te,header:""})}else if(f.isIterable(o)){writeIterable({body:o,client:e,request:n,contentLength:oe,expectsPayload:ie,header:"",h2stream:te,socket:e[De]})}else{i(false)}}}function writeStream({h2stream:e,body:t,client:n,request:o,socket:d,contentLength:y,header:v,expectsPayload:D}){i(y!==0||n[fe]===0,"stream body cannot be pipelined");if(n[$e]==="h2"){const V=p(t,e,(n=>{if(n){f.destroy(t,n);f.destroy(e,n)}else{o.onRequestSent()}}));V.on("data",onPipeData);V.once("end",(()=>{V.removeListener("data",onPipeData);f.destroy(V)}));function onPipeData(e){o.onBodySent(e)}return}let M=false;const U=new AsyncWriter({socket:d,request:o,contentLength:y,client:n,expectsPayload:D,header:v});const onData=function(e){if(M){return}try{if(!U.write(e)&&this.pause){this.pause()}}catch(e){f.destroy(this,e)}};const onDrain=function(){if(M){return}if(t.resume){t.resume()}};const onAbort=function(){if(M){return}const e=new j;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(M){return}M=true;i(d.destroyed||d[Ce]&&n[fe]<=1);d.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{U.end()}catch(t){e=t}}U.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){f.destroy(t,e)}else{f.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}d.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:n,request:o,socket:d,contentLength:p,header:y,expectsPayload:v}){i(p===t.size,"blob body must have content length");const D=n[$e]==="h2";try{if(p!=null&&p!==t.size){throw new M}const i=Buffer.from(await t.arrayBuffer());if(D){e.cork();e.write(i);e.uncork()}else{d.cork();d.write(`${y}content-length: ${p}\r\n\r\n`,"latin1");d.write(i);d.uncork()}o.onBodySent(i);o.onRequestSent();if(!v){d[ce]=true}resume(n)}catch(t){f.destroy(D?e:d,t)}}async function writeIterable({h2stream:e,body:t,client:n,request:o,socket:d,contentLength:p,header:f,expectsPayload:y}){i(p!==0||n[fe]===0,"iterator body cannot be pipelined");let v=null;function onDrain(){if(v){const e=v;v=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{i(v===null);if(d[Pe]){t(d[Pe])}else{v=e}}));if(n[$e]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const n of t){if(d[Pe]){throw d[Pe]}const t=e.write(n);o.onBodySent(n);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{o.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}d.on("close",onDrain).on("drain",onDrain);const D=new AsyncWriter({socket:d,request:o,contentLength:p,client:n,expectsPayload:y,header:f});try{for await(const e of t){if(d[Pe]){throw d[Pe]}if(!D.write(e)){await waitForDrain()}}D.end()}catch(e){D.destroy(e)}finally{d.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:n,client:i,expectsPayload:o,header:d}){this.socket=e;this.request=t;this.contentLength=n;this.client=i;this.bytesWritten=0;this.expectsPayload=o;this.header=d;e[Ce]=true}write(e){const{socket:t,request:n,contentLength:i,client:o,bytesWritten:d,expectsPayload:p,header:f}=this;if(t[Pe]){throw t[Pe]}if(t.destroyed){return false}const y=Buffer.byteLength(e);if(!y){return true}if(i!==null&&d+y>i){if(o[Ue]){throw new M}process.emitWarning(new M)}t.cork();if(d===0){if(!p){t[ce]=true}if(i===null){t.write(`${f}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${f}content-length: ${i}\r\n\r\n`,"latin1")}}if(i===null){t.write(`\r\n${y.toString(16)}\r\n`,"latin1")}this.bytesWritten+=y;const v=t.write(e);t.uncork();n.onBodySent(e);if(!v){if(t[pe].timeout&&t[pe].timeoutType===Ut){if(t[pe].timeout.refresh){t[pe].timeout.refresh()}}}return v}end(){const{socket:e,contentLength:t,client:n,bytesWritten:i,expectsPayload:o,header:d,request:p}=this;p.onRequestSent();e[Ce]=false;if(e[Pe]){throw e[Pe]}if(e.destroyed){return}if(i===0){if(o){e.write(`${d}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${d}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&i!==t){if(n[Ue]){throw new M}else{process.emitWarning(new M)}}if(e[pe].timeout&&e[pe].timeoutType===Ut){if(e[pe].timeout.refresh){e[pe].timeout.refresh()}}resume(n)}destroy(e){const{socket:t,client:n}=this;t[Ce]=false;if(e){i(n[fe]<=1,"pipeline should only contain this request");f.destroy(t,e)}}}function errorRequest(e,t,n){try{t.onError(n);i(t.aborted)}catch(n){e.emit("error",n)}}e.exports=Client},13194:(e,t,n)=>{"use strict";const{kConnected:i,kSize:o}=n(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[i]===0&&this.value[o]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[i]===0&&e[o]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{"use strict";const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},53168:(e,t,n)=>{"use strict";const{parseSetCookie:i}=n(8915);const{stringify:o}=n(3834);const{webidl:d}=n(74222);const{Headers:p}=n(26349);function getCookies(e){d.argumentLengthCheck(arguments,1,{header:"getCookies"});d.brandCheck(e,p,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...i]=e.split("=");n[t.trim()]=i.join("=")}return n}function deleteCookie(e,t,n){d.argumentLengthCheck(arguments,2,{header:"deleteCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.DOMString(t);n=d.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){d.argumentLengthCheck(arguments,1,{header:"getSetCookies"});d.brandCheck(e,p,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>i(e)))}function setCookie(e,t){d.argumentLengthCheck(arguments,2,{header:"setCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.Cookie(t);const n=o(t);if(n){e.append("Set-Cookie",o(t))}}d.converters.DeleteCookieAttributes=d.dictionaryConverter([{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null}]);d.converters.Cookie=d.dictionaryConverter([{converter:d.converters.DOMString,key:"name"},{converter:d.converters.DOMString,key:"value"},{converter:d.nullableConverter((e=>{if(typeof e==="number"){return d.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:d.nullableConverter(d.converters["long long"]),key:"maxAge",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"secure",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"httpOnly",defaultValue:null},{converter:d.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:d.sequenceConverter(d.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,n)=>{"use strict";const{maxNameValuePairSize:i,maxAttributeValueSize:o}=n(19237);const{isCTLExcludingHtab:d}=n(3834);const{collectASequenceOfCodePointsFast:p}=n(94322);const f=n(42613);function parseSetCookie(e){if(d(e)){return null}let t="";let n="";let o="";let f="";if(e.includes(";")){const i={position:0};t=p(";",e,i);n=e.slice(i.position)}else{t=e}if(!t.includes("=")){f=t}else{const e={position:0};o=p("=",t,e);f=t.slice(e.position+1)}o=o.trim();f=f.trim();if(o.length+f.length>i){return null}return{name:o,value:f,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}f(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=p(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let i="";let d="";if(n.includes("=")){const e={position:0};i=p("=",n,e);d=n.slice(e.position+1)}else{i=n}i=i.trim();d=d.trim();if(d.length>o){return parseUnparsedAttributes(e,t)}const y=i.toLowerCase();if(y==="expires"){const e=new Date(d);t.expires=e}else if(y==="max-age"){const n=d.charCodeAt(0);if((n<48||n>57)&&d[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(d)){return parseUnparsedAttributes(e,t)}const i=Number(d);t.maxAge=i}else if(y==="domain"){let e=d;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(y==="path"){let e="";if(d.length===0||d[0]!=="/"){e="/"}else{e=d}t.path=e}else if(y==="secure"){t.secure=true}else if(y==="httponly"){t.httpOnly=true}else if(y==="samesite"){let e="Default";const n=d.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${i}=${d}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:e=>{"use strict";function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const i=t[e.getUTCDay()];const o=e.getUTCDate().toString().padStart(2,"0");const d=n[e.getUTCMonth()];const p=e.getUTCFullYear();const f=e.getUTCHours().toString().padStart(2,"0");const y=e.getUTCMinutes().toString().padStart(2,"0");const v=e.getUTCSeconds().toString().padStart(2,"0");return`${i}, ${o} ${d} ${p} ${f}:${y}:${v} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...i]=n.split("=");t.push(`${e.trim()}=${i.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},59136:(e,t,n)=>{"use strict";const i=n(69278);const o=n(42613);const d=n(3440);const{InvalidArgumentError:p,ConnectTimeoutError:f}=n(68707);let y;let v;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){v=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:f,timeout:D,...M}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxCachedSessions must be a positive integer or zero")}const U={path:f,...M};const V=new v(t==null?100:t);D=D==null?1e4:D;e=e!=null?e:false;return function connect({hostname:t,host:p,protocol:f,port:v,servername:M,localAddress:j,httpSocket:K},ee){let te;if(f==="https:"){if(!y){y=n(64756)}M=M||U.servername||d.getServerName(p)||null;const i=M||t;const f=V.get(i)||null;o(i);te=y.connect({highWaterMark:16384,...U,servername:M,session:f,localAddress:j,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:K,port:v||443,host:t});te.on("session",(function(e){V.set(i,e)}))}else{o(!K,"httpSocket can only be sent on TLS update");te=i.connect({highWaterMark:64*1024,...U,localAddress:j,port:v||80,host:t})}if(U.keepAlive==null||U.keepAlive){const e=U.keepAliveInitialDelay===undefined?6e4:U.keepAliveInitialDelay;te.setKeepAlive(true,e)}const re=setupTimeout((()=>onConnectTimeout(te)),D);te.setNoDelay(true).once(f==="https:"?"secureConnect":"connect",(function(){re();if(ee){const e=ee;ee=null;e(null,this)}})).on("error",(function(e){re();if(ee){const t=ee;ee=null;t(e)}}));return te}}function setupTimeout(e,t){if(!t){return()=>{}}let n=null;let i=null;const o=setTimeout((()=>{n=setImmediate((()=>{if(process.platform==="win32"){i=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(o);clearImmediate(n);clearImmediate(i)}}function onConnectTimeout(e){d.destroy(e,new f)}e.exports=buildConnector},10735:e=>{"use strict";const t={};const n=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,i){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=i;this.status=t;this.statusCode=t;this.headers=n}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:i}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=i;this.headers=n}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,n)=>{"use strict";const{InvalidArgumentError:i,NotSupportedError:o}=n(68707);const d=n(42613);const{kHTTP2BuildRequest:p,kHTTP2CopyHeaders:f,kHTTP1BuildRequest:y}=n(36443);const v=n(3440);const D=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const M=/[^\t\x20-\x7e\x80-\xff]/;const U=/[^\u0021-\u00ff]/;const V=Symbol("handler");const j={};let K;try{const e=n(31637);j.create=e.channel("undici:request:create");j.bodySent=e.channel("undici:request:bodySent");j.headers=e.channel("undici:request:headers");j.trailers=e.channel("undici:request:trailers");j.error=e.channel("undici:request:error")}catch{j.create={hasSubscribers:false};j.bodySent={hasSubscribers:false};j.headers={hasSubscribers:false};j.trailers={hasSubscribers:false};j.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:o,body:d,headers:p,query:f,idempotent:y,blocking:M,upgrade:ee,headersTimeout:te,bodyTimeout:re,reset:ne,throwOnError:ie,expectContinue:oe},se){if(typeof t!=="string"){throw new i("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&o!=="CONNECT"){throw new i("path must be an absolute URL or start with a slash")}else if(U.exec(t)!==null){throw new i("invalid request path")}if(typeof o!=="string"){throw new i("method must be a string")}else if(D.exec(o)===null){throw new i("invalid request method")}if(ee&&typeof ee!=="string"){throw new i("upgrade must be a string")}if(te!=null&&(!Number.isFinite(te)||te<0)){throw new i("invalid headersTimeout")}if(re!=null&&(!Number.isFinite(re)||re<0)){throw new i("invalid bodyTimeout")}if(ne!=null&&typeof ne!=="boolean"){throw new i("invalid reset")}if(oe!=null&&typeof oe!=="boolean"){throw new i("invalid expectContinue")}this.headersTimeout=te;this.bodyTimeout=re;this.throwOnError=ie===true;this.method=o;this.abort=null;if(d==null){this.body=null}else if(v.isStream(d)){this.body=d;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){v.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(v.isBuffer(d)){this.body=d.byteLength?d:null}else if(ArrayBuffer.isView(d)){this.body=d.buffer.byteLength?Buffer.from(d.buffer,d.byteOffset,d.byteLength):null}else if(d instanceof ArrayBuffer){this.body=d.byteLength?Buffer.from(d):null}else if(typeof d==="string"){this.body=d.length?Buffer.from(d):null}else if(v.isFormDataLike(d)||v.isIterable(d)||v.isBlobLike(d)){this.body=d}else{throw new i("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ee||null;this.path=f?v.buildURL(t,f):t;this.origin=e;this.idempotent=y==null?o==="HEAD"||o==="GET":y;this.blocking=M==null?false:M;this.reset=ne==null?null:ne;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=oe!=null?oe:false;if(Array.isArray(p)){if(p.length%2!==0){throw new i("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,n)=>{"use strict";const i=n(42613);const{kDestroyed:o,kBodyUsed:d}=n(36443);const{IncomingMessage:p}=n(58611);const f=n(2203);const y=n(69278);const{InvalidArgumentError:v}=n(68707);const{Blob:D}=n(20181);const M=n(39023);const{stringify:U}=n(83480);const{headerNameLowerCasedRecord:V}=n(10735);const[j,K]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return D&&e instanceof D||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=U(t);if(n){e+="?"+n}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new v("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new v("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new v("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new v("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new v("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new v("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let i=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n.endsWith("/")){n=n.substring(0,n.length-1)}if(i&&!i.startsWith("/")){i=`/${i}`}e=new URL(n+i)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new v("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");i(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}i.strictEqual(typeof e,"string");const t=getHostname(e);if(y.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[o])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===p){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[o]=true}}const ee=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(ee);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return V[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let n=0;ne.toString("utf8")))}else{t[i]=e[n+1].toString("utf8")}}else{if(!Array.isArray(o)){o=[o];t[i]=o}o.push(e[n+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let n=false;let i=-1;for(let o=0;o{e.close()}))}else{const t=Buffer.isBuffer(i)?i:Buffer.from(i);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const re=!!String.prototype.toWellFormed;function toUSVString(e){if(re){return`${e}`.toWellFormed()}else if(M.toUSVString){return M.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const ne=Object.create(null);ne.enumerable=true;e.exports={kEnumerableProperty:ne,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:j,nodeMinor:K,nodeHasAutoSelectFamily:j>18||j===18&&K>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,n)=>{"use strict";const i=n(28611);const{ClientDestroyedError:o,ClientClosedError:d,InvalidArgumentError:p}=n(68707);const{kDestroy:f,kClose:y,kDispatch:v,kInterceptors:D}=n(36443);const M=Symbol("destroyed");const U=Symbol("closed");const V=Symbol("onDestroyed");const j=Symbol("onClosed");const K=Symbol("Intercepted Dispatch");class DispatcherBase extends i{constructor(){super();this[M]=false;this[V]=null;this[U]=false;this[j]=[]}get destroyed(){return this[M]}get closed(){return this[U]}get interceptors(){return this[D]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[D][t];if(typeof e!=="function"){throw new p("interceptor must be an function")}}}this[D]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,i)=>n?t(n):e(i)))}))}if(typeof e!=="function"){throw new p("invalid callback")}if(this[M]){queueMicrotask((()=>e(new o,null)));return}if(this[U]){if(this[j]){this[j].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[U]=true;this[j].push(e);const onClosed=()=>{const e=this[j];this[j]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,i)=>e?n(e):t(i)))}))}if(typeof t!=="function"){throw new p("invalid callback")}if(this[M]){if(this[V]){this[V].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new o}this[M]=true;this[V]=this[V]||[];this[V].push(t);const onDestroyed=()=>{const e=this[V];this[V]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[K](e,t){if(!this[D]||this[D].length===0){this[K]=this[v];return this[v](e,t)}let n=this[v].bind(this);for(let e=this[D].length-1;e>=0;e--){n=this[D][e](n)}this[K]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new p("handler must be an object")}try{if(!e||typeof e!=="object"){throw new p("opts must be an object.")}if(this[M]||this[V]){throw new o}if(this[U]){throw new d}return this[K](e,t)}catch(e){if(typeof t.onError!=="function"){throw new p("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,n)=>{"use strict";const i=n(24434);class Dispatcher extends i{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,n)=>{"use strict";const i=n(89581);const o=n(3440);const{ReadableStreamFrom:d,isBlobLike:p,isReadableStreamLike:f,readableStreamClose:y,createDeferredPromise:v,fullyReadBody:D}=n(15523);const{FormData:M}=n(43073);const{kState:U}=n(89710);const{webidl:V}=n(74222);const{DOMException:j,structuredClone:K}=n(87326);const{Blob:ee,File:te}=n(20181);const{kBodyUsed:re}=n(36443);const ne=n(42613);const{isErrored:ie}=n(3440);const{isUint8Array:oe,isArrayBuffer:se}=n(98253);const{File:ae}=n(63041);const{parseMIMEType:Ae,serializeAMimeType:ce}=n(94322);let le;try{const e=n(77598);le=t=>e.randomInt(0,t)}catch{le=e=>Math.floor(Math.random(e))}let ue=globalThis.ReadableStream;const de=te??ae;const pe=new TextEncoder;const ge=new TextDecoder;function extractBody(e,t=false){if(!ue){ue=n(63774).ReadableStream}let i=null;if(e instanceof ue){i=e}else if(p(e)){i=e.stream()}else{i=new ue({async pull(e){e.enqueue(typeof D==="string"?pe.encode(D):D);queueMicrotask((()=>y(e)))},start(){},type:undefined})}ne(f(i));let v=null;let D=null;let M=null;let U=null;if(typeof e==="string"){D=e;U="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){D=e.toString();U="application/x-www-form-urlencoded;charset=UTF-8"}else if(se(e)){D=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){D=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(o.isFormDataLike(e)){const t=`----formdata-undici-0${`${le(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data` +(()=>{var e={5116:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.saveCache=t.restoreCache=t.isFeatureAvailable=t.ReserveCacheError=t.ValidationError=void 0;const f=d(n(37484));const y=d(n(16928));const v=d(n(98299));const D=d(n(73171));const M=d(n(96819));const U=n(17606);const V=n(95321);const j=n(58287);const K=n(54844);class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}t.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}t.ReserveCacheError=ReserveCacheError;function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=(0,U.getCacheServiceVersion)();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}t.isFeatureAvailable=isFeatureAvailable;function restoreCache(e,t,n,i,o=false){return p(this,void 0,void 0,(function*(){const d=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${d}`);checkPaths(e);switch(d){case"v2":return yield restoreCacheV2(e,t,n,i,o);case"v1":default:return yield restoreCacheV1(e,t,n,i,o)}}))}t.restoreCache=restoreCache;function restoreCacheV1(e,t,n,i,o=false){return p(this,void 0,void 0,(function*(){n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}const p=yield v.getCompressionMethod();let M="";try{const t=yield D.getCacheEntry(d,e,{compressionMethod:p,enableCrossOsArchive:o});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(i===null||i===void 0?void 0:i.lookupOnly){f.info("Lookup only - skipping download");return t.cacheKey}M=y.join(yield v.createTempDirectory(),v.getCacheFileName(p));f.debug(`Archive Path: ${M}`);yield D.downloadCache(t.archiveLocation,M,i);if(f.isDebug()){yield(0,V.listTar)(M,p)}const n=v.getArchiveFileSizeInBytes(M);f.info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);yield(0,V.extractTar)(M,p);f.info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to restore: ${e.message}`)}else{f.warning(`Failed to restore: ${e.message}`)}}}finally{try{yield v.unlinkFile(M)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,n,i,o=false){return p(this,void 0,void 0,(function*(){i=Object.assign(Object.assign({},i),{useAzureSdk:true});n=n||[];const d=[t,...n];f.debug("Resolved Keys:");f.debug(JSON.stringify(d));if(d.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of d){checkKey(e)}let p="";try{const U=M.internalCacheTwirpClient();const j=yield v.getCompressionMethod();const K={key:t,restoreKeys:n,version:v.getCacheVersion(e,j,o)};const ee=yield U.GetCacheEntryDownloadURL(K);if(!ee.ok){f.debug(`Cache not found for version ${K.version} of keys: ${d.join(", ")}`);return undefined}const te=K.key!==ee.matchedKey;if(te){f.info(`Cache hit for restore-key: ${ee.matchedKey}`)}else{f.info(`Cache hit for: ${ee.matchedKey}`)}if(i===null||i===void 0?void 0:i.lookupOnly){f.info("Lookup only - skipping download");return ee.matchedKey}p=y.join(yield v.createTempDirectory(),v.getCacheFileName(j));f.debug(`Archive path: ${p}`);f.debug(`Starting download of archive to: ${p}`);yield D.downloadCache(ee.signedDownloadUrl,p,i);const re=v.getArchiveFileSizeInBytes(p);f.info(`Cache Size: ~${Math.round(re/(1024*1024))} MB (${re} B)`);if(f.isDebug()){yield(0,V.listTar)(p,j)}yield(0,V.extractTar)(p,j);f.info("Cache restored successfully");return ee.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to restore: ${e.message}`)}else{f.warning(`Failed to restore: ${e.message}`)}}}finally{try{if(p){yield v.unlinkFile(p)}}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return undefined}))}function saveCache(e,t,n,i=false){return p(this,void 0,void 0,(function*(){const o=(0,U.getCacheServiceVersion)();f.debug(`Cache service version: ${o}`);checkPaths(e);checkKey(t);switch(o){case"v2":return yield saveCacheV2(e,t,n,i);case"v1":default:return yield saveCacheV1(e,t,n,i)}}))}t.saveCache=saveCache;function saveCacheV1(e,t,n,i=false){var o,d,M,j,ee;return p(this,void 0,void 0,(function*(){const p=yield v.getCompressionMethod();let te=-1;const re=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(re)}`);if(re.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const ne=yield v.createTempDirectory();const ie=y.join(ne,v.getCacheFileName(p));f.debug(`Archive Path: ${ie}`);try{yield(0,V.createTar)(ne,re,p);if(f.isDebug()){yield(0,V.listTar)(ie,p)}const y=10*1024*1024*1024;const K=v.getArchiveFileSizeInBytes(ie);f.debug(`File Size: ${K}`);if(K>y&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(K/(1024*1024))} MB (${K} B) is over the 10GB limit, not saving cache.`)}f.debug("Reserving Cache");const oe=yield D.reserveCache(t,e,{compressionMethod:p,enableCrossOsArchive:i,cacheSize:K});if((o=oe===null||oe===void 0?void 0:oe.result)===null||o===void 0?void 0:o.cacheId){te=(d=oe===null||oe===void 0?void 0:oe.result)===null||d===void 0?void 0:d.cacheId}else if((oe===null||oe===void 0?void 0:oe.statusCode)===400){throw new Error((j=(M=oe===null||oe===void 0?void 0:oe.error)===null||M===void 0?void 0:M.message)!==null&&j!==void 0?j:`Cache size of ~${Math.round(K/(1024*1024))} MB (${K} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(ee=oe===null||oe===void 0?void 0:oe.error)===null||ee===void 0?void 0:ee.message}`)}f.debug(`Saving Cache (ID: ${te})`);yield D.saveCache(te,ie,"",n)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}}finally{try{yield v.unlinkFile(ie)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return te}))}function saveCacheV2(e,t,n,i=false){return p(this,void 0,void 0,(function*(){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const o=yield v.getCompressionMethod();const d=M.internalCacheTwirpClient();let p=-1;const ee=yield v.resolvePaths(e);f.debug("Cache Paths:");f.debug(`${JSON.stringify(ee)}`);if(ee.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const te=yield v.createTempDirectory();const re=y.join(te,v.getCacheFileName(o));f.debug(`Archive Path: ${re}`);try{yield(0,V.createTar)(te,ee,o);if(f.isDebug()){yield(0,V.listTar)(re,o)}const y=v.getArchiveFileSizeInBytes(re);f.debug(`File Size: ${y}`);if(y>j.CacheFileSizeLimit&&!(0,U.isGhes)()){throw new Error(`Cache size of ~${Math.round(y/(1024*1024))} MB (${y} B) is over the 10GB limit, not saving cache.`)}n.archiveSizeBytes=y;f.debug("Reserving Cache");const M=v.getCacheVersion(e,o,i);const K={key:t,version:M};let ne;try{const e=yield d.CreateCacheEntry(K);if(!e.ok){throw new Error("Response was not ok")}ne=e.signedUploadUrl}catch(e){f.debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}f.debug(`Attempting to upload cache located at: ${re}`);yield D.saveCache(p,re,ne,n);const ie={key:t,version:M,sizeBytes:`${y}`};const oe=yield d.FinalizeCacheEntryUpload(ie);f.debug(`FinalizeCacheEntryUploadResponse: ${oe.ok}`);if(!oe.ok){throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}p=parseInt(oe.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){f.info(`Failed to save: ${t.message}`)}else{if(t instanceof K.HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){f.error(`Failed to save: ${t.message}`)}else{f.warning(`Failed to save: ${t.message}`)}}}finally{try{yield v.unlinkFile(re)}catch(e){f.debug(`Failed to delete archive: ${e}`)}}return p}))}},93156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheService=t.GetCacheEntryDownloadURLResponse=t.GetCacheEntryDownloadURLRequest=t.FinalizeCacheEntryUploadResponse=t.FinalizeCacheEntryUploadRequest=t.CreateCacheEntryResponse=t.CreateCacheEntryRequest=void 0;const i=n(44420);const o=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(68886);const v=n(89444);class CreateCacheEntryRequest$Type extends y.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>v.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.posv.CacheMetadata},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,f.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,p.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheServiceClientProtobuf=t.CacheServiceClientJSON=void 0;const i=n(93156);class CacheServiceClientJSON{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=i.CreateCacheEntryRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",t);return n.then((e=>i.CreateCacheEntryResponse.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=i.FinalizeCacheEntryUploadRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return n.then((e=>i.FinalizeCacheEntryUploadResponse.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=i.GetCacheEntryDownloadURLRequest.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return n.then((e=>i.GetCacheEntryDownloadURLResponse.fromJson(e,{ignoreUnknownFields:true})))}}t.CacheServiceClientJSON=CacheServiceClientJSON;class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=i.CreateCacheEntryRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return n.then((e=>i.CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=i.FinalizeCacheEntryUploadRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return n.then((e=>i.FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=i.GetCacheEntryDownloadURLRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return n.then((e=>i.GetCacheEntryDownloadURLResponse.fromBinary(e)))}}t.CacheServiceClientProtobuf=CacheServiceClientProtobuf},89444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheMetadata=void 0;const i=n(68886);const o=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);const y=n(29425);class CacheMetadata$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>y.CacheScope}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let d=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheScope=void 0;const i=n(68886);const o=n(68886);const d=n(68886);const p=n(68886);const f=n(68886);class CacheScope$Type extends f.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,p.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,d.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,i){let d=i!==null&&i!==void 0?i:this.create(),p=e.pos+t;while(e.posp(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(d))}))));if(y.statusCode===204){if(f.isDebug()){yield printCachesListForDiagnostics(e[0],i,o)}return null}if(!(0,ee.isSuccessStatusCode)(y.statusCode)){throw new Error(`Cache service responded with ${y.statusCode}`)}const v=y.result;const D=v===null||v===void 0?void 0:v.archiveLocation;if(!D){throw new Error("Cache not found.")}f.setSecret(D);f.debug(`Cache Result:`);f.debug(JSON.stringify(v));return v}))}t.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(e,t,n){return p(this,void 0,void 0,(function*(){const i=`caches?key=${encodeURIComponent(e)}`;const o=yield(0,ee.retryTypedResponse)("listCache",(()=>p(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(i))}))));if(o.statusCode===200){const t=o.result;const i=t===null||t===void 0?void 0:t.totalCount;if(i&&i>0){f.debug(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){f.debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,n){return p(this,void 0,void 0,(function*(){const i=new M.URL(e);const o=(0,K.getDownloadOptions)(n);if(i.hostname.endsWith(".blob.core.windows.net")){if(o.useAzureSdk){yield(0,j.downloadCacheStorageSDK)(e,t,o)}else if(o.concurrentBlobDownloads){yield(0,j.downloadCacheHttpClientConcurrent)(e,t,o)}else{yield(0,j.downloadCacheHttpClient)(e,t)}}else{yield(0,j.downloadCacheHttpClient)(e,t)}}))}t.downloadCache=downloadCache;function reserveCache(e,t,n){return p(this,void 0,void 0,(function*(){const i=createHttpClient();const o=U.getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const d={key:e,version:o,cacheSize:n===null||n===void 0?void 0:n.cacheSize};const f=yield(0,ee.retryTypedResponse)("reserveCache",(()=>p(this,void 0,void 0,(function*(){return i.postJson(getCacheApiUrl("caches"),d)}))));return f}))}t.reserveCache=reserveCache;function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,n,i,o){return p(this,void 0,void 0,(function*(){f.debug(`Uploading chunk of size ${o-i+1} bytes at offset ${i} with content range: ${getContentRange(i,o)}`);const d={"Content-Type":"application/octet-stream","Content-Range":getContentRange(i,o)};const y=yield(0,ee.retryHttpClientResponse)(`uploadChunk (start: ${i}, end: ${o})`,(()=>p(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,n(),d)}))));if(!(0,ee.isSuccessStatusCode)(y.message.statusCode)){throw new Error(`Cache service responded with ${y.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=U.getArchiveFileSizeInBytes(n);const d=getCacheApiUrl(`caches/${t.toString()}`);const y=D.openSync(n,"r");const v=(0,K.getUploadOptions)(i);const M=U.assertDefined("uploadConcurrency",v.uploadConcurrency);const V=U.assertDefined("uploadChunkSize",v.uploadChunkSize);const j=[...new Array(M).keys()];f.debug("Awaiting all uploads");let ee=0;try{yield Promise.all(j.map((()=>p(this,void 0,void 0,(function*(){while(eeD.createReadStream(n,{fd:y,start:i,end:p,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),i,p)}})))))}finally{D.closeSync(y)}return}))}function commitCache(e,t,n){return p(this,void 0,void 0,(function*(){const i={size:n};return yield(0,ee.retryTypedResponse)("commitCache",(()=>p(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),i)}))))}))}function saveCache(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=(0,K.getUploadOptions)(i);if(o.useAzureSdk){if(!n){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield(0,V.uploadCacheArchiveSDK)(n,t,i)}else{const n=createHttpClient();f.debug("Upload cache");yield uploadFile(n,e,t,i);f.debug("Commiting cache");const o=U.getArchiveFileSizeInBytes(t);f.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);const d=yield commitCache(n,e,o);if(!(0,ee.isSuccessStatusCode)(d.statusCode)){throw new Error(`Cache service responded with ${d.statusCode} during commit cache.`)}f.info("Cache saved successfully")}}))}t.saveCache=saveCache},98299:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(i,o){n=e[t](n),settle(i,o,n.done,n.value)}))}}function settle(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeToken=t.getCacheVersion=t.assertDefined=t.getGnuTarPathOnWindows=t.getCacheFileName=t.getCompressionMethod=t.unlinkFile=t.resolvePaths=t.getArchiveFileSizeInBytes=t.createTempDirectory=void 0;const y=d(n(37484));const v=d(n(95236));const D=d(n(47206));const M=d(n(94994));const U=d(n(76982));const V=d(n(79896));const j=d(n(16928));const K=d(n(53272));const ee=d(n(39023));const te=n(58287);const re="1.0";function createTempDirectory(){return p(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let n;if(e){n=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){n="/Users"}else{n="/home"}}t=j.join(n,"actions","temp")}const n=j.join(t,U.randomUUID());yield M.mkdirP(n);return n}))}t.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(e){return V.statSync(e).size}t.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(e){var t,n,i,o;var d;return p(this,void 0,void 0,(function*(){const p=[];const v=(d=process.env["GITHUB_WORKSPACE"])!==null&&d!==void 0?d:process.cwd();const M=yield D.create(e.join("\n"),{implicitDescendants:false});try{for(var U=true,V=f(M.globGenerator()),K;K=yield V.next(),t=K.done,!t;U=true){o=K.value;U=false;const e=o;const t=j.relative(v,e).replace(new RegExp(`\\${j.sep}`,"g"),"/");y.debug(`Matched: ${t}`);if(t===""){p.push(".")}else{p.push(`${t}`)}}}catch(e){n={error:e}}finally{try{if(!U&&!t&&(i=V.return))yield i.call(V)}finally{if(n)throw n.error}}return p}))}t.resolvePaths=resolvePaths;function unlinkFile(e){return p(this,void 0,void 0,(function*(){return ee.promisify(V.unlink)(e)}))}t.unlinkFile=unlinkFile;function getVersion(e,t=[]){return p(this,void 0,void 0,(function*(){let n="";t.push("--version");y.debug(`Checking ${e} ${t.join(" ")}`);try{yield v.exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){y.debug(e.message)}n=n.trim();y.debug(n);return n}))}function getCompressionMethod(){return p(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=K.clean(e);y.debug(`zstd version: ${t}`);if(e===""){return te.CompressionMethod.Gzip}else{return te.CompressionMethod.ZstdWithoutLong}}))}t.getCompressionMethod=getCompressionMethod;function getCacheFileName(e){return e===te.CompressionMethod.Gzip?te.CacheFilename.Gzip:te.CacheFilename.Zstd}t.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return p(this,void 0,void 0,(function*(){if(V.existsSync(te.GnuTarPathOnWindows)){return te.GnuTarPathOnWindows}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?M.which("tar"):""}))}t.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}t.assertDefined=assertDefined;function getCacheVersion(e,t,n=false){const i=e.slice();if(t){i.push(t)}if(process.platform==="win32"&&!n){i.push("windows-only")}i.push(re);return U.createHash("sha256").update(i.join("|")).digest("hex")}t.getCacheVersion=getCacheVersion;function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}t.getRuntimeToken=getRuntimeToken},17606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCacheServiceURL=t.getCacheServiceVersion=t.isGhes=void 0;function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const i=t.endsWith(".GHE.COM");const o=t.endsWith(".LOCALHOST");return!n&&!i&&!o}t.isGhes=isGhes;function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}t.getCacheServiceVersion=getCacheServiceVersion;function getCacheServiceURL(){const e=getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}t.getCacheServiceURL=getCacheServiceURL},58287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CacheFileSizeLimit=t.ManifestFilename=t.TarFilename=t.SystemTarPathOnWindows=t.GnuTarPathOnWindows=t.SocketTimeout=t.DefaultRetryDelay=t.DefaultRetryAttempts=t.ArchiveToolType=t.CompressionMethod=t.CacheFilename=void 0;var n;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(n||(t.CacheFilename=n={}));var i;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(i||(t.CompressionMethod=i={}));var o;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(o||(t.ArchiveToolType=o={}));t.DefaultRetryAttempts=2;t.DefaultRetryDelay=5e3;t.SocketTimeout=5e3;t.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;t.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;t.TarFilename="cache.tar";t.ManifestFilename="manifest.txt";t.CacheFileSizeLimit=10*Math.pow(1024,3)},75067:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.downloadCacheStorageSDK=t.downloadCacheHttpClientConcurrent=t.downloadCacheHttpClient=t.DownloadProgress=void 0;const f=d(n(37484));const y=n(54844);const v=n(71400);const D=d(n(20181));const M=d(n(79896));const U=d(n(2203));const V=d(n(39023));const j=d(n(98299));const K=n(58287);const ee=n(32846);const te=n(68110);function pipeResponseToStream(e,t){return p(this,void 0,void 0,(function*(){const n=V.promisify(U.pipeline);yield n(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;f.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const i=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Received ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(e,t){return p(this,void 0,void 0,(function*(){const n=M.createWriteStream(t);const i=new y.HttpClient("actions/cache");const o=yield(0,ee.retryHttpClientResponse)("downloadCache",(()=>p(this,void 0,void 0,(function*(){return i.get(e)}))));o.message.socket.setTimeout(K.SocketTimeout,(()=>{o.message.destroy();f.debug(`Aborting download, socket timed out after ${K.SocketTimeout} ms`)}));yield pipeResponseToStream(o,n);const d=o.message.headers["content-length"];if(d){const e=parseInt(d);const n=j.getArchiveFileSizeInBytes(t);if(n!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}}else{f.debug("Unable to validate download, no Content-Length header")}}))}t.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(e,t,n){var i;return p(this,void 0,void 0,(function*(){const o=yield M.promises.open(t,"w");const d=new y.HttpClient("actions/cache",undefined,{socketTimeout:n.timeoutInMs,keepAlive:true});try{const t=yield(0,ee.retryHttpClientResponse)("downloadCacheMetadata",(()=>p(this,void 0,void 0,(function*(){return yield d.request("HEAD",e,null,{})}))));const f=t.message.headers["content-length"];if(f===undefined||f===null){throw new Error("Content-Length not found on blob response")}const y=parseInt(f);if(Number.isNaN(y)){throw new Error(`Could not interpret Content-Length: ${y}`)}const v=[];const D=4*1024*1024;for(let t=0;tp(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(d,e,t,n)}))})}v.reverse();let M=0;let U=0;const V=new DownloadProgress(y);V.startDisplayTimer();const j=V.onProgress();const K=[];let te;const waitAndWrite=()=>p(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(K));yield o.write(e.buffer,0,e.count,e.offset);M--;delete K[e.offset];U+=e.count;j({loadedBytes:U})}));while(te=v.pop()){K[te.offset]=te.promiseGetter();M++;if(M>=((i=n.downloadConcurrency)!==null&&i!==void 0?i:10)){yield waitAndWrite()}}while(M>0){yield waitAndWrite()}}finally{d.dispose();yield o.close()}}))}t.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=5;let d=0;while(true){try{const o=3e4;const d=yield promiseWithTimeout(o,downloadSegment(e,t,n,i));if(typeof d==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return d}catch(e){if(d>=o){throw e}d++}}}))}function downloadSegment(e,t,n,i){return p(this,void 0,void 0,(function*(){const o=yield(0,ee.retryHttpClientResponse)("downloadCachePart",(()=>p(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${n}-${n+i-1}`})}))));if(!o.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:n,count:i,buffer:yield o.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,n){var i;return p(this,void 0,void 0,(function*(){const o=new v.BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}});const d=yield o.getProperties();const p=(i=d.contentLength)!==null&&i!==void 0?i:-1;if(p<0){f.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,D.constants.MAX_LENGTH);const i=new DownloadProgress(p);const d=M.openSync(t,"w");try{i.startDisplayTimer();const t=new te.AbortController;const f=t.signal;while(!i.isDone()){const y=i.segmentOffset+i.segmentSize;const v=Math.min(e,p-y);i.nextSegment(v);const D=yield promiseWithTimeout(n.segmentTimeoutInMs||36e5,o.downloadToBuffer(y,v,{abortSignal:f,concurrency:n.downloadConcurrency,onProgress:i.onProgress()}));if(D==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(D)){M.writeFileSync(d,D)}}}finally{i.stopDisplayTimer();M.closeSync(d)}}}))}t.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(e,t)=>p(void 0,void 0,void 0,(function*(){let n;const i=new Promise((t=>{n=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,i]).then((e=>{clearTimeout(n);return e}))}))},32846:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.retryHttpClientResponse=t.retryTypedResponse=t.retry=t.isRetryableStatusCode=t.isServerErrorStatusCode=t.isSuccessStatusCode=void 0;const f=d(n(37484));const y=n(54844);const v=n(58287);function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}t.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(e){if(!e){return true}return e>=500}t.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(e){if(!e){return false}const t=[y.HttpCodes.BadGateway,y.HttpCodes.ServiceUnavailable,y.HttpCodes.GatewayTimeout];return t.includes(e)}t.isRetryableStatusCode=isRetryableStatusCode;function sleep(e){return p(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,n,i=v.DefaultRetryAttempts,o=v.DefaultRetryDelay,d=undefined){return p(this,void 0,void 0,(function*(){let p="";let y=1;while(y<=i){let v=undefined;let D=undefined;let M=false;try{v=yield t()}catch(e){if(d){v=d(e)}M=true;p=e.message}if(v){D=n(v);if(!isServerErrorStatusCode(D)){return v}}if(D){M=isRetryableStatusCode(D);p=`Cache service responded with ${D}`}f.debug(`${e} - Attempt ${y} of ${i} failed with error: ${p}`);if(!M){f.debug(`${e} - Error is not retryable`);break}yield sleep(o);y++}throw Error(`${e} failed: ${p}`)}))}t.retry=retry;function retryTypedResponse(e,t,n=v.DefaultRetryAttempts,i=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.statusCode),n,i,(e=>{if(e instanceof y.HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}t.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(e,t,n=v.DefaultRetryAttempts,i=v.DefaultRetryDelay){return p(this,void 0,void 0,(function*(){return yield retry(e,t,(e=>e.message.statusCode),n,i)}))}t.retryHttpClientResponse=retryHttpClientResponse},96819:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.internalCacheTwirpClient=void 0;const o=n(37484);const d=n(41899);const p=n(50263);const f=n(17606);const y=n(98299);const v=n(44552);const D=n(54844);const M=n(11486);const U=n(27564);class CacheServiceClient{constructor(e,t,n,i){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const o=(0,y.getRuntimeToken)();this.baseUrl=(0,f.getCacheServiceURL)();if(t){this.maxAttempts=t}if(n){this.baseRetryIntervalMilliseconds=n}if(i){this.retryMultiplier=i}this.httpClient=new D.HttpClient(e,[new v.BearerCredentialHandler(o)])}request(e,t,n,d){return i(this,void 0,void 0,(function*(){const p=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;(0,o.debug)(`[Request] ${t} ${p}`);const f={"Content-Type":n};try{const{body:e}=yield this.retryableRequest((()=>i(this,void 0,void 0,(function*(){return this.httpClient.post(p,JSON.stringify(d),f)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return i(this,void 0,void 0,(function*(){let t=0;let n="";let i="";while(t=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[D.HttpCodes.BadGateway,D.HttpCodes.GatewayTimeout,D.HttpCodes.InternalServerError,D.HttpCodes.ServiceUnavailable,D.HttpCodes.TooManyRequests];return t.includes(e)}sleep(e){return i(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient((0,d.getUserAgentString)(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new M.CacheServiceClientJSON(t)}t.internalCacheTwirpClient=internalCacheTwirpClient},50263:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UsageError=t.NetworkError=t.GHESNotSupportedError=t.CacheNotFoundError=t.InvalidResponseError=t.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}t.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}t.InvalidResponseError=InvalidResponseError;class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}t.CacheNotFoundError=CacheNotFoundError;class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}t.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t);this.code=e;this.name="NetworkError"}}t.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e);this.name="UsageError"}}t.UsageError=UsageError;UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")}},41899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentString=void 0;const i=n(64012);function getUserAgentString(){return`@actions/cache-${i.version}`}t.getUserAgentString=getUserAgentString},27564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.maskSecretUrls=t.maskSigUrl=void 0;const i=n(37484);function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const n=t.searchParams.get("sig");if(n){(0,i.setSecret)(n);(0,i.setSecret)(encodeURIComponent(n))}}catch(t){(0,i.debug)(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}t.maskSigUrl=maskSigUrl;function maskSecretUrls(e){if(typeof e!=="object"||e===null){(0,i.debug)("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}t.maskSecretUrls=maskSecretUrls},95321:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.createTar=t.extractTar=t.listTar=void 0;const f=n(95236);const y=d(n(94994));const v=n(79896);const D=d(n(16928));const M=d(n(98299));const U=n(58287);const V=process.platform==="win32";function getTarPath(){return p(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield M.getGnuTarPathOnWindows();const t=U.SystemTarPathOnWindows;if(e){return{path:e,type:U.ArchiveToolType.GNU}}else if((0,v.existsSync)(t)){return{path:t,type:U.ArchiveToolType.BSD}}break}case"darwin":{const e=yield y.which("gtar",false);if(e){return{path:e,type:U.ArchiveToolType.GNU}}else{return{path:yield y.which("tar",true),type:U.ArchiveToolType.BSD}}}default:break}return{path:yield y.which("tar",true),type:U.ArchiveToolType.GNU}}))}function getTarArgs(e,t,n,i=""){return p(this,void 0,void 0,(function*(){const o=[`"${e.path}"`];const d=M.getCacheFileName(t);const p="cache.tar";const f=getWorkingDirectory();const y=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(n){case"create":o.push("--posix","-cf",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--exclude",y?p:d.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"--files-from",U.ManifestFilename);break;case"extract":o.push("-xf",y?p:i.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P","-C",f.replace(new RegExp(`\\${D.sep}`,"g"),"/"));break;case"list":o.push("-tf",y?p:i.replace(new RegExp(`\\${D.sep}`,"g"),"/"),"-P");break}if(e.type===U.ArchiveToolType.GNU){switch(process.platform){case"win32":o.push("--force-local");break;case"darwin":o.push("--delay-directory-restore");break}}return o}))}function getCommands(e,t,n=""){return p(this,void 0,void 0,(function*(){let i;const o=yield getTarPath();const d=yield getTarArgs(o,e,t,n);const p=t!=="create"?yield getDecompressionProgram(o,e,n):yield getCompressionProgram(o,e);const f=o.type===U.ArchiveToolType.BSD&&e!==U.CompressionMethod.Gzip&&V;if(f&&t!=="create"){i=[[...p].join(" "),[...d].join(" ")]}else{i=[[...d].join(" "),[...p].join(" ")]}if(f){return i}return[i.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,n){return p(this,void 0,void 0,(function*(){const i=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return i?["zstd -d --long=30 --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d --long=30"':"unzstd --long=30"];case U.CompressionMethod.ZstdWithoutLong:return i?["zstd -d --force -o",U.TarFilename,n.replace(new RegExp(`\\${D.sep}`,"g"),"/")]:["--use-compress-program",V?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return p(this,void 0,void 0,(function*(){const n=M.getCacheFileName(t);const i=e.type===U.ArchiveToolType.BSD&&t!==U.CompressionMethod.Gzip&&V;switch(t){case U.CompressionMethod.Zstd:return i?["zstd -T0 --long=30 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0 --long=30"':"zstdmt --long=30"];case U.CompressionMethod.ZstdWithoutLong:return i?["zstd -T0 --force -o",n.replace(new RegExp(`\\${D.sep}`,"g"),"/"),U.TarFilename]:["--use-compress-program",V?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return p(this,void 0,void 0,(function*(){for(const n of e){try{yield(0,f.exec)(n,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${n.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return p(this,void 0,void 0,(function*(){const n=yield getCommands(t,"list",e);yield execCommands(n)}))}t.listTar=listTar;function extractTar(e,t){return p(this,void 0,void 0,(function*(){const n=getWorkingDirectory();yield y.mkdirP(n);const i=yield getCommands(t,"extract",e);yield execCommands(i)}))}t.extractTar=extractTar;function createTar(e,t,n){return p(this,void 0,void 0,(function*(){(0,v.writeFileSync)(D.join(e,U.ManifestFilename),t.join("\n"));const i=yield getCommands(n,"create");yield execCommands(i,e)}))}t.createTar=createTar},35268:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.uploadCacheArchiveSDK=t.UploadProgress=void 0;const f=d(n(37484));const y=n(71400);const v=n(50263);class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const i=(e/(1024*1024)/(n/1e3)).toFixed(1);f.info(`Sent ${e} of ${this.contentLength} (${t}%), ${i} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}t.UploadProgress=UploadProgress;function uploadCacheArchiveSDK(e,t,n){var i;return p(this,void 0,void 0,(function*(){const o=new y.BlobClient(e);const d=o.getBlockBlobClient();const p=new UploadProgress((i=n===null||n===void 0?void 0:n.archiveSizeBytes)!==null&&i!==void 0?i:0);const D={blockSize:n===null||n===void 0?void 0:n.uploadChunkSize,concurrency:n===null||n===void 0?void 0:n.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:p.onProgress()};try{p.startDisplayTimer();f.debug(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);const e=yield d.uploadFile(t,D);if(e._response.status>=400){throw new v.InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){f.warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{p.stopDisplayTimer()}}))}t.uploadCacheArchiveSDK=uploadCacheArchiveSDK},98356:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDownloadOptions=t.getUploadOptions=void 0;const p=d(n(37484));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Upload concurrency: ${t.uploadConcurrency}`);p.debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}t.getUploadOptions=getUploadOptions;function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const n=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(n&&!isNaN(Number(n))&&isFinite(Number(n))){t.segmentTimeoutInMs=Number(n)*60*1e3}p.debug(`Use Azure SDK: ${t.useAzureSdk}`);p.debug(`Download concurrency: ${t.downloadConcurrency}`);p.debug(`Request timeout (ms): ${t.timeoutInMs}`);p.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);p.debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);p.debug(`Lookup only: ${t.lookupOnly}`);return t}t.getDownloadOptions=getDownloadOptions},53272:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var o=Number.MAX_SAFE_INTEGER||9007199254740991;var d=16;var p=i-6;var f=t.re=[];var y=t.safeRe=[];var v=t.src=[];var D=t.tokens={};var M=0;function tok(e){D[e]=M++}var U="[a-zA-Z0-9-]";var V=[["\\s",1],["\\d",i],[U,p]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");v[D.XRANGEIDENTIFIERLOOSE]=v[D.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");v[D.XRANGEIDENTIFIER]=v[D.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");v[D.XRANGEPLAIN]="[v=\\s]*("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:"+v[D.PRERELEASE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");v[D.XRANGEPLAINLOOSE]="[v=\\s]*("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+v[D.PRERELEASELOOSE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGE");v[D.XRANGE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAIN]+"$";tok("XRANGELOOSE");v[D.XRANGELOOSE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAINLOOSE]+"$";tok("COERCE");v[D.COERCE]="(^|[^\\d])"+"(\\d{1,"+d+"})"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");f[D.COERCERTL]=new RegExp(v[D.COERCE],"g");y[D.COERCERTL]=new RegExp(makeSafeRe(v[D.COERCE]),"g");tok("LONETILDE");v[D.LONETILDE]="(?:~>?)";tok("TILDETRIM");v[D.TILDETRIM]="(\\s*)"+v[D.LONETILDE]+"\\s+";f[D.TILDETRIM]=new RegExp(v[D.TILDETRIM],"g");y[D.TILDETRIM]=new RegExp(makeSafeRe(v[D.TILDETRIM]),"g");var j="$1~";tok("TILDE");v[D.TILDE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAIN]+"$";tok("TILDELOOSE");v[D.TILDELOOSE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAINLOOSE]+"$";tok("LONECARET");v[D.LONECARET]="(?:\\^)";tok("CARETTRIM");v[D.CARETTRIM]="(\\s*)"+v[D.LONECARET]+"\\s+";f[D.CARETTRIM]=new RegExp(v[D.CARETTRIM],"g");y[D.CARETTRIM]=new RegExp(makeSafeRe(v[D.CARETTRIM]),"g");var K="$1^";tok("CARET");v[D.CARET]="^"+v[D.LONECARET]+v[D.XRANGEPLAIN]+"$";tok("CARETLOOSE");v[D.CARETLOOSE]="^"+v[D.LONECARET]+v[D.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");v[D.COMPARATORLOOSE]="^"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");v[D.COMPARATOR]="^"+v[D.GTLT]+"\\s*("+v[D.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");v[D.COMPARATORTRIM]="(\\s*)"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+"|"+v[D.XRANGEPLAIN]+")";f[D.COMPARATORTRIM]=new RegExp(v[D.COMPARATORTRIM],"g");y[D.COMPARATORTRIM]=new RegExp(makeSafeRe(v[D.COMPARATORTRIM]),"g");var ee="$1$2$3";tok("HYPHENRANGE");v[D.HYPHENRANGE]="^\\s*("+v[D.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");v[D.HYPHENRANGELOOSE]="^\\s*("+v[D.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");v[D.STAR]="(<|>)?=?\\s*\\*";for(var te=0;tei){return null}var n=t.loose?y[D.LOOSE]:y[D.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var d=e.trim().match(t.loose?y[D.LOOSE]:y[D.FULL]);if(!d){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+d[1];this.minor=+d[2];this.patch=+d[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!d[4]){this.prerelease=[]}else{this.prerelease=d[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var o="";if(n.prerelease.length||i.prerelease.length){o="pre";var d="prerelease"}for(var p in n){if(p==="major"||p==="minor"||p==="patch"){if(n[p]!==i[p]){return o+p}}}return d}}t.compareIdentifiers=compareIdentifiers;var re=/^[0-9]+$/;function compareIdentifiers(e,t){var n=re.test(e);var i=re.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ne){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var ne={};Comparator.prototype.parse=function(e){var t=this.options.loose?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=ne}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===ne||e===ne){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var d=this.semver.version===e.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var y=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||o||d&&p||f||y};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var i=t?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(y[D.COMPARATORTRIM],ee);n("comparator trim",e,y[D.COMPARATORTRIM]);e=e.replace(y[D.TILDETRIM],j);e=e.replace(y[D.CARETTRIM],K);e=e.split(/\s+/).join(" ");var o=t?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var d=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){d=d.filter((function(e){return!!e.match(o)}))}d=d.map((function(e){return new Comparator(e,this.options)}),this);return d};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var o=i.pop();while(n&&i.length){n=i.every((function(e){return o.intersects(e,t)}));o=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?y[D.TILDELOOSE]:y[D.TILDE];return e.replace(i,(function(t,i,o,d,p){n("tilde",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else if(p){n("replaceTilde pr",p);f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}n("tilde return",f);return f}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?y[D.CARETLOOSE]:y[D.CARET];return e.replace(i,(function(t,i,o,d,p){n("caret",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){if(i==="0"){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+".0 <"+(+i+1)+".0.0"}}else if(p){n("replaceCaret pr",p);if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+" <"+(+i+1)+".0.0"}}n("caret return",f);return f}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?y[D.XRANGELOOSE]:y[D.XRANGE];return e.replace(i,(function(i,o,d,p,f,y){n("xRange",e,i,o,d,p,f,y);var v=isX(d);var D=v||isX(p);var M=D||isX(f);var U=M;if(o==="="&&U){o=""}y=t.includePrerelease?"-0":"";if(v){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&U){if(D){p=0}f=0;if(o===">"){o=">=";if(D){d=+d+1;p=0;f=0}else{p=+p+1;f=0}}else if(o==="<="){o="<";if(D){d=+d+1}else{p=+p+1}}i=o+d+"."+p+"."+f+y}else if(D){i=">="+d+".0.0"+y+" <"+(+d+1)+".0.0"+y}else if(M){i=">="+d+"."+p+".0"+y+" <"+d+"."+(+p+1)+".0"+y}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(y[D.STAR],"")}function hyphenReplace(e,t,n,i,o,d,p,f,y,v,D,M,U){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(o)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(y)){f=""}else if(isX(v)){f="<"+(+y+1)+".0.0"}else if(isX(D)){f="<"+y+"."+(+v+1)+".0"}else if(M){f="<="+y+"."+v+"."+D+"-"+M}else{f="<="+f}return(t+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var d=e[o].semver;if(d.major===t.major&&d.minor===t.minor&&d.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===-1){i=e;o=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===1){i=e;o=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var o,d,p,f,y;switch(n){case">":o=gt;d=lte;p=lt;f=">";y=">=";break;case"<":o=lt;d=gte;p=gt;f="<";y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var v=0;v=0.0.0")}M=M||e;U=U||e;if(o(e.semver,M.semver,i)){M=e}else if(p(e.semver,U.semver,i)){U=e}}));if(M.operator===f||M.operator===y){return false}if((!U.operator||U.operator===f)&&d(e,U.semver)){return false}else if(U.operator===y&&p(e,U.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(y[D.COERCE])}else{var i;while((i=y[D.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}y[D.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}y[D.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},44914:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const p=d(n(70857));const f=n(30302);function issueCommand(e,t,n){const i=new Command(e,t,n);process.stdout.write(i.toString()+p.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const y="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=y+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const i=this.properties[n];if(i){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(i)}`}}}}e+=`${y}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,f.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const f=n(44914);const y=n(24753);const v=n(30302);const D=d(n(70857));const M=d(n(16928));const U=n(35306);var V;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(V||(t.ExitCode=V={}));function exportVariable(e,t){const n=(0,v.toCommandValue)(t);process.env[e]=n;const i=process.env["GITHUB_ENV"]||"";if(i){return(0,y.issueFileCommand)("ENV",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("set-env",{name:e},n)}t.exportVariable=exportVariable;function setSecret(e){(0,f.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,y.issueFileCommand)("PATH",e)}else{(0,f.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${M.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}t.getInput=getInput;function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const n=["true","True","TRUE"];const i=["false","False","FALSE"];const o=getInput(e,t);if(n.includes(o))return true;if(i.includes(o))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return(0,y.issueFileCommand)("OUTPUT",(0,y.prepareKeyValueMessage)(e,t))}process.stdout.write(D.EOL);(0,f.issueCommand)("set-output",{name:e},(0,v.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,f.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=V.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,f.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,f.issueCommand)("error",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,f.issueCommand)("warning",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,f.issueCommand)("notice",(0,v.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+D.EOL)}t.info=info;function startGroup(e){(0,f.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,f.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return p(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}t.group=group;function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return(0,y.issueFileCommand)("STATE",(0,y.prepareKeyValueMessage)(e,t))}(0,f.issueCommand)("save-state",{name:e},(0,v.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return p(this,void 0,void 0,(function*(){return yield U.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var j=n(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return j.summary}});var K=n(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return K.markdownSummary}});var ee=n(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return ee.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return ee.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return ee.toPlatformPath}});t.platform=d(n(18968))},24753:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const p=d(n(76982));const f=d(n(79896));const y=d(n(70857));const v=n(30302);function issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!f.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}f.appendFileSync(n,`${(0,v.toCommandValue)(t)}${y.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const n=`ghadelimiter_${p.randomUUID()}`;const i=(0,v.toCommandValue)(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(i.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${y.EOL}${i}${y.EOL}${n}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const o=n(54844);const d=n(44552);const p=n(37484);class OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new o.HttpClient("actions/oidc-client",[new d.BearerCredentialHandler(OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return i(this,void 0,void 0,(function*(){const n=OidcClient.createHttpClient();const i=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const o=(t=i.result)===null||t===void 0?void 0:t.value;if(!o){throw new Error("Response json body do not have ID Token field")}return o}))}static getIDToken(e){return i(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}(0,p.debug)(`ID token url is ${t}`);const n=yield OidcClient.getCall(t);(0,p.setSecret)(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const p=d(n(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,p.sep)}t.toPlatformPath=toPlatformPath},18968:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const y=f(n(70857));const v=d(n(95236));const getWindowsInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield v.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>p(void 0,void 0,void 0,(function*(){var e,t,n,i;const{stdout:o}=yield v.getExecOutput("sw_vers",undefined,{silent:true});const d=(t=(e=o.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const p=(i=(n=o.match(/ProductName:\s*(.+)/))===null||n===void 0?void 0:n[1])!==null&&i!==void 0?i:"";return{name:p,version:d}}));const getLinuxInfo=()=>p(void 0,void 0,void 0,(function*(){const{stdout:e}=yield v.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,n]=e.trim().split("\n");return{name:t,version:n}}));t.platform=y.default.platform();t.arch=y.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return p(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},71847:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const o=n(70857);const d=n(79896);const{access:p,appendFile:f,writeFile:y}=d.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.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 i(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield p(e,d.constants.R_OK|d.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const i=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${i}>`}return`<${e}${i}>${t}`}write(e){return i(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const i=t?y:f;yield i(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return i(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(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(o.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const i=e.map((e=>this.wrap("li",e))).join("");const o=this.wrap(n,i);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:i,rowspan:o}=e;const d=t?"th":"td";const p=Object.assign(Object.assign({},i&&{colspan:i}),o&&{rowspan:o});return this.wrap(d,n,p)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:i,height:o}=n||{};const d=Object.assign(Object.assign({},i&&{width:i}),o&&{height:o});const p=this.wrap("img",null,Object.assign({src:e,alt:t},d));return this.addRaw(p).addEOL()}addHeading(e,t){const n=`h${t}`;const i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const o=this.wrap(i,e);return this.addRaw(o).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const v=new Summary;t.markdownSummary=v;t.summary=v},30302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},95236:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const f=n(13193);const y=d(n(6665));function exec(e,t,n){return p(this,void 0,void 0,(function*(){const i=y.argStringToArray(e);if(i.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const o=i[0];t=i.slice(1).concat(t||[]);const d=new y.ToolRunner(o,t,n);return d.exec()}))}t.exec=exec;function getExecOutput(e,t,n){var i,o;return p(this,void 0,void 0,(function*(){let d="";let p="";const y=new f.StringDecoder("utf8");const v=new f.StringDecoder("utf8");const D=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stdout;const M=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stderr;const stdErrListener=e=>{p+=v.write(e);if(M){M(e)}};const stdOutListener=e=>{d+=y.write(e);if(D){D(e)}};const U=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const V=yield exec(e,t,Object.assign(Object.assign({},n),{listeners:U}));d+=y.end();p+=v.end();return{exitCode:V,stdout:d,stderr:p}}))}t.getExecOutput=getExecOutput},6665:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const f=d(n(70857));const y=d(n(24434));const v=d(n(35317));const D=d(n(16928));const M=d(n(94994));const U=d(n(75207));const V=n(53557);const j=process.platform==="win32";class ToolRunner extends y.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const i=this._getSpawnArgs(e);let o=t?"":"[command]";if(j){if(this._isCmdFile()){o+=n;for(const e of i){o+=` ${e}`}}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(const e of i){o+=` ${e}`}}else{o+=this._windowsQuoteCmdArg(n);for(const e of i){o+=` ${this._windowsQuoteCmdArg(e)}`}}}else{o+=n;for(const e of i){o+=` ${e}`}}return o}_processLineBuffer(e,t,n){try{let i=t+e.toString();let o=i.indexOf(f.EOL);while(o>-1){const e=i.substring(0,o);n(e);i=i.substring(o+f.EOL.length);o=i.indexOf(f.EOL)}return i}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(j){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(j){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const i of e){if(t.some((e=>e===i))){n=true;break}}if(!n){return e}let i='"';let o=true;for(let t=e.length;t>0;t--){i+=e[t-1];if(o&&e[t-1]==="\\"){i+="\\"}else if(e[t-1]==='"'){o=true;i+='"'}else{o=false}}i+='"';return i.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let i=e.length;i>0;i--){t+=e[i-1];if(n&&e[i-1]==="\\"){t+="\\"}else if(e[i-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return p(this,void 0,void 0,(function*(){if(!U.isRooted(this.toolPath)&&(this.toolPath.includes("/")||j&&this.toolPath.includes("\\"))){this.toolPath=D.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield M.which(this.toolPath,true);return new Promise(((e,t)=>p(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+f.EOL)}const i=new ExecState(n,this.toolPath);i.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield U.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const o=this._getSpawnFileName();const d=v.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let p="";if(d.stdout){d.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}p=this._processLineBuffer(e,p,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let y="";if(d.stderr){d.stderr.on("data",(e=>{i.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}y=this._processLineBuffer(e,y,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}d.on("error",(e=>{i.processError=e.message;i.processExited=true;i.processClosed=true;i.CheckComplete()}));d.on("exit",(e=>{i.processExitCode=e;i.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);i.CheckComplete()}));d.on("close",(e=>{i.processExitCode=e;i.processExited=true;i.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);i.CheckComplete()}));i.on("done",((n,i)=>{if(p.length>0){this.emit("stdline",p)}if(y.length>0){this.emit("errline",y)}d.removeAllListeners();if(n){t(n)}else{e(i)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let n=false;let i=false;let o="";function append(e){if(i&&e!=='"'){o+="\\"}o+=e;i=false}for(let d=0;d0){t.push(o);o=""}continue}append(p)}if(o.length>0){t.push(o.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends y.EventEmitter{constructor(e,t){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(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=V.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=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){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=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",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},47206:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.create=void 0;const o=n(10103);function create(e,t){return i(this,void 0,void 0,(function*(){return yield o.DefaultGlobber.create(e,t)}))}t.create=create},18164:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOptions=void 0;const p=d(n(37484));function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;p.debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;p.debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;p.debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}}return t}t.getOptions=getOptions},10103:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(i,o){n=e[t](n),settle(i,o,n.done,n.value)}))}}function settle(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};var y=this&&this.__await||function(e){return this instanceof y?(this.v=e,this):new y(e)};var v=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),o,d=[];return o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o;function verb(e){if(i[e])o[e]=function(t){return new Promise((function(n,i){d.push([e,t,n,i])>1||resume(e,t)}))}}function resume(e,t){try{step(i[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof y?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.DefaultGlobber=void 0;const D=d(n(37484));const M=d(n(79896));const U=d(n(18164));const V=d(n(16928));const j=d(n(98891));const K=n(62644);const ee=n(25370);const te=n(79890);const re=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=U.getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){var e,t;return p(this,void 0,void 0,(function*(){const n=[];try{for(var i=f(this.globGenerator()),o;o=yield i.next(),!o.done;){const e=o.value;n.push(e)}}catch(t){e={error:t}}finally{try{if(o&&!o.done&&(t=i.return))yield t.call(i)}finally{if(e)throw e.error}}return n}))}globGenerator(){return v(this,arguments,(function*globGenerator_1(){const e=U.getOptions(this.options);const t=[];for(const n of this.patterns){t.push(n);if(e.implicitDescendants&&(n.trailingSeparator||n.segments[n.segments.length-1]!=="**")){t.push(new ee.Pattern(n.negate,true,n.segments.concat("**")))}}const n=[];for(const e of j.getSearchPaths(t)){D.debug(`Search path '${e}'`);try{yield y(M.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}n.unshift(new te.SearchState(e,1))}const i=[];while(n.length){const o=n.pop();const d=j.match(t,o.path);const p=!!d||j.partialMatch(t,o.path);if(!d&&!p){continue}const f=yield y(DefaultGlobber.stat(o,e,i));if(!f){continue}if(f.isDirectory()){if(d&K.MatchKind.Directory){yield yield y(o.path)}else if(!p){continue}const e=o.level+1;const t=(yield y(M.promises.readdir(o.path))).map((t=>new te.SearchState(V.join(o.path,t),e)));n.push(...t.reverse())}else if(d&K.MatchKind.File){yield yield y(o.path)}}}))}static create(e,t){return p(this,void 0,void 0,(function*(){const n=new DefaultGlobber(t);if(re){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const i=e.split("\n").map((e=>e.trim()));for(const e of i){if(!e||e.startsWith("#")){continue}else{n.patterns.push(new ee.Pattern(e))}}n.searchPaths.push(...j.getSearchPaths(n.patterns));return n}))}static stat(e,t,n){return p(this,void 0,void 0,(function*(){let i;if(t.followSymbolicLinks){try{i=yield M.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){D.debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}}else{i=yield M.promises.lstat(e.path)}if(i.isDirectory()&&t.followSymbolicLinks){const t=yield M.promises.realpath(e.path);while(n.length>=e.level){n.pop()}if(n.some((e=>e===t))){D.debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}n.push(t)}return i}))}}t.DefaultGlobber=DefaultGlobber},62644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MatchKind=void 0;var n;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(n=t.MatchKind||(t.MatchKind={}))},84138:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.safeTrimTrailingSeparator=t.normalizeSeparators=t.hasRoot=t.hasAbsoluteRoot=t.ensureAbsoluteRoot=t.dirname=void 0;const f=d(n(16928));const y=p(n(42613));const v=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(v&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=f.dirname(e);if(v&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}t.dirname=dirname;function ensureAbsoluteRoot(e,t){y.default(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);y.default(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(v){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();y.default(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}y.default(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||v&&e.endsWith("\\")){}else{e+=f.sep}return e+t}t.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(e){y.default(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}t.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(e){y.default(e,`isRooted parameter 'itemPath' must not be empty`);e=normalizeSeparators(e);if(v){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.hasRoot=hasRoot;function normalizeSeparators(e){e=e||"";if(v){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}t.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(e){if(!e){return""}e=normalizeSeparators(e);if(!e.endsWith(f.sep)){return e}if(e===f.sep){return e}if(v&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}t.safeTrimTrailingSeparator=safeTrimTrailingSeparator},76617:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Path=void 0;const f=d(n(16928));const y=d(n(84138));const v=p(n(42613));const D=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){v.default(e,`Parameter 'itemPath' must not be empty`);e=y.safeTrimTrailingSeparator(e);if(!y.hasRoot(e)){this.segments=e.split(f.sep)}else{let t=e;let n=y.dirname(t);while(n!==t){const e=f.basename(t);this.segments.unshift(e);t=n;n=y.dirname(t)}this.segments.unshift(t)}}else{v.default(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t!e.negate));const t={};for(const n of e){const e=y?n.searchPath.toUpperCase():n.searchPath;t[e]="candidate"}const n=[];for(const i of e){const e=y?i.searchPath.toUpperCase():i.searchPath;if(t[e]==="included"){continue}let o=false;let d=e;let f=p.dirname(d);while(f!==d){if(t[f]){o=true;break}d=f;f=p.dirname(d)}if(!o){n.push(i.searchPath);t[e]="included"}}return n}t.getSearchPaths=getSearchPaths;function match(e,t){let n=f.MatchKind.None;for(const i of e){if(i.negate){n&=~i.match(t)}else{n|=i.match(t)}}return n}t.match=match;function partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}t.partialMatch=partialMatch},25370:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Pattern=void 0;const f=d(n(70857));const y=d(n(16928));const v=d(n(84138));const D=p(n(42613));const M=n(43772);const U=n(62644);const V=n(76617);const j=process.platform==="win32";class Pattern{constructor(e,t=false,n,i){this.negate=false;let o;if(typeof e==="string"){o=e.trim()}else{n=n||[];D.default(n.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(n[0]);D.default(t&&v.hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);o=new V.Path(n).toString().trim();if(e){o=`!${o}`}}while(o.startsWith("!")){this.negate=!this.negate;o=o.substr(1).trim()}o=Pattern.fixupPattern(o,i);this.segments=new V.Path(o).segments;this.trailingSeparator=v.normalizeSeparators(o).endsWith(y.sep);o=v.safeTrimTrailingSeparator(o);let d=false;const p=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!d&&!(d=e==="")));this.searchPath=new V.Path(p).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(p[0]),j?"i":"");this.isImplicitPattern=t;const f={dot:true,nobrace:true,nocase:j,nocomment:true,noext:true,nonegate:true};o=j?o.replace(/\\/g,"/"):o;this.minimatch=new M.Minimatch(o,f)}match(e){if(this.segments[this.segments.length-1]==="**"){e=v.normalizeSeparators(e);if(!e.endsWith(y.sep)&&this.isImplicitPattern===false){e=`${e}${y.sep}`}}else{e=v.safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?U.MatchKind.Directory:U.MatchKind.All}return U.MatchKind.None}partialMatch(e){e=v.safeTrimTrailingSeparator(e);if(v.dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split(j?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return(j?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){D.default(e,"pattern cannot be empty");const n=new V.Path(e).segments.map((e=>Pattern.getLiteral(e)));D.default(n.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);D.default(!v.hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=v.normalizeSeparators(e);if(e==="."||e.startsWith(`.${y.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${y.sep}`)){t=t||f.homedir();D.default(t,"Unable to determine HOME directory");D.default(v.hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if(j&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=v.ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if(j&&(e==="\\"||e.match(/^\\[^\\]/))){let t=v.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=v.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return v.normalizeSeparators(e)}static getLiteral(e){let t="";for(let n=0;n=0){if(i.length>1){return""}if(i){t+=i;n=o;continue}}}t+=i}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}t.Pattern=Pattern},79890:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SearchState=void 0;class SearchState{constructor(e,t){this.path=e;this.level=t}}t.SearchState=SearchState},44552:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return n(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const f=d(n(58611));const y=d(n(65692));const v=d(n(54988));const D=d(n(20770));const M=n(46752);var U;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(U||(t.HttpCodes=U={}));var V;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(V||(t.Headers=V={}));var j;(function(e){e["ApplicationJson"]="application/json"})(j||(t.MediaTypes=j={}));function getProxyUrl(e){const t=v.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const K=[U.MovedPermanently,U.ResourceMoved,U.SeeOther,U.TemporaryRedirect,U.PermanentRedirect];const ee=[U.BadGateway,U.ServiceUnavailable,U.GatewayTimeout];const te=["OPTIONS","GET","DELETE","HEAD"];const re=10;const ne=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return p(this,void 0,void 0,(function*(){return new Promise((e=>p(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,n){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=e;this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return p(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return p(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return p(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return p(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return p(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,i){return p(this,void 0,void 0,(function*(){return this.request(e,t,n,i)}))}getJson(e,t={}){return p(this,void 0,void 0,(function*(){t[V.Accept]=this._getExistingOrDefaultHeader(t,V.Accept,j.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const o=yield this.post(e,i,n);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const o=yield this.put(e,i,n);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,n={}){return p(this,void 0,void 0,(function*(){const i=JSON.stringify(t,null,2);n[V.Accept]=this._getExistingOrDefaultHeader(n,V.Accept,j.ApplicationJson);n[V.ContentType]=this._getExistingOrDefaultHeader(n,V.ContentType,j.ApplicationJson);const o=yield this.patch(e,i,n);return this._processResponse(o,this.requestOptions)}))}request(e,t,n,i){return p(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const o=new URL(t);let d=this._prepareRequest(e,o,i);const p=this._allowRetries&&te.includes(e)?this._maxRetries+1:1;let f=0;let y;do{y=yield this.requestRaw(d,n);if(y&&y.message&&y.message.statusCode===U.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(y)){e=t;break}}if(e){return e.handleAuthentication(this,d,n)}else{return y}}let t=this._maxRedirects;while(y.message.statusCode&&K.includes(y.message.statusCode)&&this._allowRedirects&&t>0){const p=y.message.headers["location"];if(!p){break}const f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.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 y.readBody();if(f.hostname!==o.hostname){for(const e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}d=this._prepareRequest(e,f,i);y=yield this.requestRaw(d,n);t--}if(!y.message.statusCode||!ee.includes(y.message.statusCode)){return y}f+=1;if(f{function callbackForResult(e,t){if(e){i(e)}else if(!t){i(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;function handleResult(e,t){if(!i){i=true;n(e,t)}}const o=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let d;o.on("socket",(e=>{d=e}));o.setTimeout(this._socketTimeout||3*6e4,(()=>{if(d){d.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));o.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){o.end()}));t.pipe(o)}else{o.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=v.getProxyUrl(t);const i=n&&n.hostname;if(!i){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const i={};i.parsedUrl=t;const o=i.parsedUrl.protocol==="https:";i.httpModule=o?y:f;const d=o?443:80;i.options={};i.options.host=i.parsedUrl.hostname;i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):d;i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||"");i.options.method=e;i.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){i.options.headers["user-agent"]=this.userAgent}i.options.agent=this._getAgent(i.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(i.options)}}return i}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let i;if(this.requestOptions&&this.requestOptions.headers){i=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||i||n}_getAgent(e){let t;const n=v.getProxyUrl(e);const i=n&&n.hostname;if(this._keepAlive&&i){t=this._proxyAgent}if(!i){t=this._agent}if(t){return t}const o=e.protocol==="https:";let d=100;if(this.requestOptions){d=this.requestOptions.maxSockets||f.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:d,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let i;const p=n.protocol==="https:";if(o){i=p?D.httpsOverHttps:D.httpsOverHttp}else{i=p?D.httpOverHttps:D.httpOverHttp}t=i(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:d};t=o?new y.Agent(e):new f.Agent(e);this._agent=t}if(o&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const i=e.protocol==="https:";n=new M.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(i&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_performExponentialBackoff(e){return p(this,void 0,void 0,(function*(){e=Math.min(re,e);const t=ne*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return p(this,void 0,void 0,(function*(){return new Promise(((n,i)=>p(this,void 0,void 0,(function*(){const o=e.message.statusCode||0;const d={statusCode:o,result:null,headers:{}};if(o===U.NotFound){n(d)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let p;let f;try{f=yield e.readBody();if(f&&f.length>0){if(t&&t.deserializeDates){p=JSON.parse(f,dateTimeDeserializer)}else{p=JSON.parse(f)}d.result=p}d.headers=e.message.headers}catch(e){}if(o>299){let e;if(p&&p.message){e=p.message}else if(f&&f.length>0){e=f}else{e=`Failed request: (${o})`}const t=new HttpClientError(e,o);t.result=d.result;i(t)}else{n(d)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},54988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let i;if(e.port){i=Number(e.port)}else if(e.protocol==="http:"){i=80}else if(e.protocol==="https:"){i=443}const o=[e.hostname.toUpperCase()];if(typeof i==="number"){o.push(`${o[0]}:${i}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||o.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75207:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var f;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const y=d(n(79896));const v=d(n(16928));f=y.promises,t.chmod=f.chmod,t.copyFile=f.copyFile,t.lstat=f.lstat,t.mkdir=f.mkdir,t.open=f.open,t.readdir=f.readdir,t.readlink=f.readlink,t.rename=f.rename,t.rm=f.rm,t.rmdir=f.rmdir,t.stat=f.stat,t.symlink=f.symlink,t.unlink=f.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=y.constants.O_RDONLY;function exists(e){return p(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,n=false){return p(this,void 0,void 0,(function*(){const i=n?yield t.stat(e):yield t.lstat(e);return i.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,n){return p(this,void 0,void 0,(function*(){let i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){const t=v.extname(e).toUpperCase();if(n.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(i)){return e}}}const o=e;for(const d of n){e=o+d;i=undefined;try{i=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(i&&i.isFile()){if(t.IS_WINDOWS){try{const n=v.dirname(e);const i=v.basename(e).toUpperCase();for(const o of yield t.readdir(n)){if(i===o.toUpperCase()){e=v.join(n,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(i)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},94994:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const f=n(42613);const y=d(n(16928));const v=d(n(75207));function cp(e,t,n={}){return p(this,void 0,void 0,(function*(){const{force:i,recursive:o,copySourceDirectory:d}=readCopyOptions(n);const p=(yield v.exists(t))?yield v.stat(t):null;if(p&&p.isFile()&&!i){return}const f=p&&p.isDirectory()&&d?y.join(t,y.basename(e)):t;if(!(yield v.exists(e))){throw new Error(`no such file or directory: ${e}`)}const D=yield v.stat(e);if(D.isDirectory()){if(!o){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,f,0,i)}}else{if(y.relative(e,f)===""){throw new Error(`'${f}' and '${e}' are the same file`)}yield copyFile(e,f,i)}}))}t.cp=cp;function mv(e,t,n={}){return p(this,void 0,void 0,(function*(){if(yield v.exists(t)){let i=true;if(yield v.isDirectory(t)){t=y.join(t,y.basename(e));i=yield v.exists(t)}if(i){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(y.dirname(t));yield v.rename(e,t)}))}t.mv=mv;function rmRF(e){return p(this,void 0,void 0,(function*(){if(v.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield v.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return p(this,void 0,void 0,(function*(){f.ok(e,"a path argument must be provided");yield v.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(v.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. 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: ${e}. 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 t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}t.which=which;function findInPath(e){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(v.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(y.delimiter)){if(e){t.push(e)}}}if(v.isRooted(e)){const n=yield v.tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(y.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(y.delimiter)){if(e){n.push(e)}}}const i=[];for(const o of n){const n=yield v.tryGetExecutablePath(y.join(o,e),t);if(n){i.push(n)}}return i}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const i=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:i}}function cpDirRecursive(e,t,n,i){return p(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const o=yield v.readdir(e);for(const d of o){const o=`${e}/${d}`;const p=`${t}/${d}`;const f=yield v.lstat(o);if(f.isDirectory()){yield cpDirRecursive(o,p,n,i)}else{yield copyFile(o,p,i)}}yield v.chmod(t,(yield v.stat(e)).mode)}))}function copyFile(e,t,n){return p(this,void 0,void 0,(function*(){if((yield v.lstat(e)).isSymbolicLink()){try{yield v.lstat(t);yield v.unlink(t)}catch(e){if(e.code==="EPERM"){yield v.chmod(t,"0666");yield v.unlink(t)}}const n=yield v.readlink(e);yield v.symlink(n,t,v.IS_WINDOWS?"junction":null)}else if(!(yield v.exists(t))||n){yield v.copyFile(e,t)}}))}},58036:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t._readLinuxVersionFile=t._getOsVersion=t._findMatch=void 0;const f=d(n(46193));const y=n(37484);const v=n(70857);const D=n(35317);const M=n(79896);function _findMatch(t,n,i,o){return p(this,void 0,void 0,(function*(){const d=v.platform();let p;let D;let M;for(const p of i){const i=p.version;(0,y.debug)(`check ${i} satisfies ${t}`);if(f.satisfies(i,t)&&(!n||p.stable===n)){M=p.files.find((t=>{(0,y.debug)(`${t.arch}===${o} && ${t.platform}===${d}`);let n=t.arch===o&&t.platform===d;if(n&&t.platform_version){const i=e.exports._getOsVersion();if(i===t.platform_version){n=true}else{n=f.satisfies(i,t.platform_version)}}return n}));if(M){(0,y.debug)(`matched ${p.version}`);D=p;break}}}if(D&&M){p=Object.assign({},D);p.files=[M]}return p}))}t._findMatch=_findMatch;function _getOsVersion(){const t=v.platform();let n="";if(t==="darwin"){n=D.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&(e[0].trim()==="VERSION_ID"||e[0].trim()==="DISTRIB_RELEASE")){n=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return n}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let n="";if(M.existsSync(e)){n=M.readFileSync(e).toString()}else if(M.existsSync(t)){n=M.readFileSync(t).toString()}return n}t._readLinuxVersionFile=_readLinuxVersionFile},67380:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.RetryHelper=void 0;const f=d(n(37484));class RetryHelper{constructor(e,t,n){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(n);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return p(this,void 0,void 0,(function*(){let n=1;while(nsetTimeout(t,e*1e3)))}))}}t.RetryHelper=RetryHelper},33472:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.evaluateVersions=t.isExplicitVersion=t.findFromManifest=t.getManifestFromRepo=t.findAllVersions=t.find=t.cacheFile=t.cacheDir=t.extractZip=t.extractXar=t.extractTar=t.extract7z=t.downloadTool=t.HTTPError=void 0;const f=d(n(37484));const y=d(n(94994));const v=d(n(76982));const D=d(n(79896));const M=d(n(58036));const U=d(n(70857));const V=d(n(16928));const j=d(n(54844));const K=d(n(46193));const ee=d(n(2203));const te=d(n(39023));const re=n(42613);const ne=n(95236);const ie=n(67380);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}t.HTTPError=HTTPError;const oe=process.platform==="win32";const se=process.platform==="darwin";const ae="actions/tool-cache";function downloadTool(e,t,n,i){return p(this,void 0,void 0,(function*(){t=t||V.join(_getTempDirectory(),v.randomUUID());yield y.mkdirP(V.dirname(t));f.debug(`Downloading ${e}`);f.debug(`Destination ${t}`);const o=3;const d=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const D=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const M=new ie.RetryHelper(o,d,D);return yield M.execute((()=>p(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",n,i)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,n,i){return p(this,void 0,void 0,(function*(){if(D.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const o=new j.HttpClient(ae,[],{allowRetries:false});if(n){f.debug("set auth");if(i===undefined){i={}}i.authorization=n}const d=yield o.get(e,i);if(d.message.statusCode!==200){const t=new HTTPError(d.message.statusCode);f.debug(`Failed to download from "${e}". Code(${d.message.statusCode}) Message(${d.message.statusMessage})`);throw t}const p=te.promisify(ee.pipeline);const v=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>d.message));const M=v();let U=false;try{yield p(M,D.createWriteStream(t));f.debug("download complete");U=true;return t}finally{if(!U){f.debug("download failed");try{yield y.rmRF(t)}catch(e){f.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,n){return p(this,void 0,void 0,(function*(){(0,re.ok)(oe,"extract7z() not supported on current OS");(0,re.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);const i=process.cwd();process.chdir(t);if(n){try{const t=f.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const o={silent:true};yield(0,ne.exec)(`"${n}"`,i,o)}finally{process.chdir(i)}}else{const n=V.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const p=`& '${n}' -Source '${o}' -Target '${d}'`;const f=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",p];const v={silent:true};try{const e=yield y.which("powershell",true);yield(0,ne.exec)(`"${e}"`,f,v)}finally{process.chdir(i)}}return t}))}t.extract7z=extract7z;function extractTar(e,t,n="xz"){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);f.debug("Checking tar --version");let i="";yield(0,ne.exec)("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}});f.debug(i.trim());const o=i.toUpperCase().includes("GNU TAR");let d;if(n instanceof Array){d=n}else{d=[n]}if(f.isDebug()&&!n.includes("v")){d.push("-v")}let p=t;let y=e;if(oe&&o){d.push("--force-local");p=t.replace(/\\/g,"/");y=e.replace(/\\/g,"/")}if(o){d.push("--warning=no-unknown-keyword");d.push("--overwrite")}d.push("-C",p,"-f",y);yield(0,ne.exec)(`tar`,d);return t}))}t.extractTar=extractTar;function extractXar(e,t,n=[]){return p(this,void 0,void 0,(function*(){(0,re.ok)(se,"extractXar() not supported on current OS");(0,re.ok)(e,'parameter "file" is required');t=yield _createExtractFolder(t);let i;if(n instanceof Array){i=n}else{i=[n]}i.push("-x","-C",t,"-f",e);if(f.isDebug()){i.push("-v")}const o=yield y.which("xar",true);yield(0,ne.exec)(`"${o}"`,_unique(i));return t}))}t.extractXar=extractXar;function extractZip(e,t){return p(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(oe){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}t.extractZip=extractZip;function extractZipWin(e,t){return p(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=yield y.which("pwsh",false);if(o){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${i}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${i}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];f.debug(`Using pwsh at path: ${o}`);yield(0,ne.exec)(`"${o}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${i}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const o=yield y.which("powershell",true);f.debug(`Using powershell at path: ${o}`);yield(0,ne.exec)(`"${o}"`,t)}}))}function extractZipNix(e,t){return p(this,void 0,void 0,(function*(){const n=yield y.which("unzip",true);const i=[e];if(!f.isDebug()){i.unshift("-q")}i.unshift("-o");yield(0,ne.exec)(`"${n}"`,i,{cwd:t})}))}function cacheDir(e,t,n,i){return p(this,void 0,void 0,(function*(){n=K.clean(n)||n;i=i||U.arch();f.debug(`Caching tool ${t} ${n} ${i}`);f.debug(`source dir: ${e}`);if(!D.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const o=yield _createToolPath(t,n,i);for(const t of D.readdirSync(e)){const n=V.join(e,t);yield y.cp(n,o,{recursive:true})}_completeToolPath(t,n,i);return o}))}t.cacheDir=cacheDir;function cacheFile(e,t,n,i,o){return p(this,void 0,void 0,(function*(){i=K.clean(i)||i;o=o||U.arch();f.debug(`Caching tool ${n} ${i} ${o}`);f.debug(`source file: ${e}`);if(!D.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const d=yield _createToolPath(n,i,o);const p=V.join(d,t);f.debug(`destination file ${p}`);yield y.cp(e,p);_completeToolPath(n,i,o);return d}))}t.cacheFile=cacheFile;function find(e,t,n){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}n=n||U.arch();if(!isExplicitVersion(t)){const i=findAllVersions(e,n);const o=evaluateVersions(i,t);t=o}let i="";if(t){t=K.clean(t)||"";const o=V.join(_getCacheDirectory(),e,t,n);f.debug(`checking cache: ${o}`);if(D.existsSync(o)&&D.existsSync(`${o}.complete`)){f.debug(`Found tool in cache ${e} ${t} ${n}`);i=o}else{f.debug("not found")}}return i}t.find=find;function findAllVersions(e,t){const n=[];t=t||U.arch();const i=V.join(_getCacheDirectory(),e);if(D.existsSync(i)){const e=D.readdirSync(i);for(const o of e){if(isExplicitVersion(o)){const e=V.join(i,o,t||"");if(D.existsSync(e)&&D.existsSync(`${e}.complete`)){n.push(o)}}}}return n}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,n,i="master"){return p(this,void 0,void 0,(function*(){let o=[];const d=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const p=new j.HttpClient("tool-cache");const y={};if(n){f.debug("set auth");y.authorization=n}const v=yield p.getJson(d,y);if(!v.result){return o}let D="";for(const e of v.result.tree){if(e.path==="versions-manifest.json"){D=e.url;break}}y["accept"]="application/vnd.github.VERSION.raw";let M=yield(yield p.get(D,y)).readBody();if(M){M=M.replace(/^\uFEFF/,"");try{o=JSON.parse(M)}catch(e){f.debug("Invalid json")}}return o}))}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,n,i=U.arch()){return p(this,void 0,void 0,(function*(){const o=yield M._findMatch(e,t,n,i);return o}))}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return p(this,void 0,void 0,(function*(){if(!e){e=V.join(_getTempDirectory(),v.randomUUID())}yield y.mkdirP(e);return e}))}function _createToolPath(e,t,n){return p(this,void 0,void 0,(function*(){const i=V.join(_getCacheDirectory(),e,K.clean(t)||t,n||"");f.debug(`destination ${i}`);const o=`${i}.complete`;yield y.rmRF(i);yield y.rmRF(o);yield y.mkdirP(i);return i}))}function _completeToolPath(e,t,n){const i=V.join(_getCacheDirectory(),e,K.clean(t)||t,n||"");const o=`${i}.complete`;D.writeFileSync(o,"");f.debug("finished caching tool")}function isExplicitVersion(e){const t=K.clean(e)||"";f.debug(`isExplicit: ${t}`);const n=K.valid(t)!=null;f.debug(`explicit? ${n}`);return n}t.isExplicitVersion=isExplicitVersion;function evaluateVersions(e,t){let n="";f.debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(K.gt(e,t)){return 1}return-1}));for(let i=e.length-1;i>=0;i--){const o=e[i];const d=K.satisfies(o,t);if(d){n=o;break}}if(n){f.debug(`matched: ${n}`)}else{f.debug("match not found")}return n}t.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,re.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";(0,re.ok)(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const n=global[e];return n!==undefined?n:t}function _unique(e){return Array.from(new Set(e))}},46193:(e,t)=>{t=e.exports=SemVer;var n;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){n=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{n=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var i=256;var o=Number.MAX_SAFE_INTEGER||9007199254740991;var d=16;var p=i-6;var f=t.re=[];var y=t.safeRe=[];var v=t.src=[];var D=t.tokens={};var M=0;function tok(e){D[e]=M++}var U="[a-zA-Z0-9-]";var V=[["\\s",1],["\\d",i],[U,p]];function makeSafeRe(e){for(var t=0;t)?=?)";tok("XRANGEIDENTIFIERLOOSE");v[D.XRANGEIDENTIFIERLOOSE]=v[D.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");v[D.XRANGEIDENTIFIER]=v[D.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");v[D.XRANGEPLAIN]="[v=\\s]*("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIER]+")"+"(?:"+v[D.PRERELEASE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");v[D.XRANGEPLAINLOOSE]="[v=\\s]*("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+v[D.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+v[D.PRERELEASELOOSE]+")?"+v[D.BUILD]+"?"+")?)?";tok("XRANGE");v[D.XRANGE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAIN]+"$";tok("XRANGELOOSE");v[D.XRANGELOOSE]="^"+v[D.GTLT]+"\\s*"+v[D.XRANGEPLAINLOOSE]+"$";tok("COERCE");v[D.COERCE]="(^|[^\\d])"+"(\\d{1,"+d+"})"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:\\.(\\d{1,"+d+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");f[D.COERCERTL]=new RegExp(v[D.COERCE],"g");y[D.COERCERTL]=new RegExp(makeSafeRe(v[D.COERCE]),"g");tok("LONETILDE");v[D.LONETILDE]="(?:~>?)";tok("TILDETRIM");v[D.TILDETRIM]="(\\s*)"+v[D.LONETILDE]+"\\s+";f[D.TILDETRIM]=new RegExp(v[D.TILDETRIM],"g");y[D.TILDETRIM]=new RegExp(makeSafeRe(v[D.TILDETRIM]),"g");var j="$1~";tok("TILDE");v[D.TILDE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAIN]+"$";tok("TILDELOOSE");v[D.TILDELOOSE]="^"+v[D.LONETILDE]+v[D.XRANGEPLAINLOOSE]+"$";tok("LONECARET");v[D.LONECARET]="(?:\\^)";tok("CARETTRIM");v[D.CARETTRIM]="(\\s*)"+v[D.LONECARET]+"\\s+";f[D.CARETTRIM]=new RegExp(v[D.CARETTRIM],"g");y[D.CARETTRIM]=new RegExp(makeSafeRe(v[D.CARETTRIM]),"g");var K="$1^";tok("CARET");v[D.CARET]="^"+v[D.LONECARET]+v[D.XRANGEPLAIN]+"$";tok("CARETLOOSE");v[D.CARETLOOSE]="^"+v[D.LONECARET]+v[D.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");v[D.COMPARATORLOOSE]="^"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");v[D.COMPARATOR]="^"+v[D.GTLT]+"\\s*("+v[D.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");v[D.COMPARATORTRIM]="(\\s*)"+v[D.GTLT]+"\\s*("+v[D.LOOSEPLAIN]+"|"+v[D.XRANGEPLAIN]+")";f[D.COMPARATORTRIM]=new RegExp(v[D.COMPARATORTRIM],"g");y[D.COMPARATORTRIM]=new RegExp(makeSafeRe(v[D.COMPARATORTRIM]),"g");var ee="$1$2$3";tok("HYPHENRANGE");v[D.HYPHENRANGE]="^\\s*("+v[D.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");v[D.HYPHENRANGELOOSE]="^\\s*("+v[D.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+v[D.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");v[D.STAR]="(<|>)?=?\\s*\\*";for(var te=0;tei){return null}var n=t.loose?y[D.LOOSE]:y[D.FULL];if(!n.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var n=parse(e,t);return n?n.version:null}t.clean=clean;function clean(e,t){var n=parse(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>i){throw new TypeError("version is longer than "+i+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;var d=e.trim().match(t.loose?y[D.LOOSE]:y[D.FULL]);if(!d){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+d[1];this.minor=+d[2];this.patch=+d[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!d[4]){this.prerelease=[]}else{this.prerelease=d[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,n,i){if(typeof n==="string"){i=n;n=undefined}try{return new SemVer(e,n).inc(t,i).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var n=parse(e);var i=parse(t);var o="";if(n.prerelease.length||i.prerelease.length){o="pre";var d="prerelease"}for(var p in n){if(p==="major"||p==="minor"||p==="patch"){if(n[p]!==i[p]){return o+p}}}return d}}t.compareIdentifiers=compareIdentifiers;var re=/^[0-9]+$/;function compareIdentifiers(e,t){var n=re.test(e);var i=re.test(t);if(n&&i){e=+e;t=+t}return e===t?0:n&&!i?-1:i&&!n?1:e0}t.lt=lt;function lt(e,t,n){return compare(e,t,n)<0}t.eq=eq;function eq(e,t,n){return compare(e,t,n)===0}t.neq=neq;function neq(e,t,n){return compare(e,t,n)!==0}t.gte=gte;function gte(e,t,n){return compare(e,t,n)>=0}t.lte=lte;function lte(e,t,n){return compare(e,t,n)<=0}t.cmp=cmp;function cmp(e,t,n,i){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e===n;case"!==":if(typeof e==="object")e=e.version;if(typeof n==="object")n=n.version;return e!==n;case"":case"=":case"==":return eq(e,n,i);case"!=":return neq(e,n,i);case">":return gt(e,n,i);case">=":return gte(e,n,i);case"<":return lt(e,n,i);case"<=":return lte(e,n,i);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");n("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===ne){this.value=""}else{this.value=this.operator+this.semver.version}n("comp",this)}var ne={};Comparator.prototype.parse=function(e){var t=this.options.loose?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var n=e.match(t);if(!n){throw new TypeError("Invalid comparator: "+e)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=ne}else{this.semver=new SemVer(n[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){n("Comparator.test",e,this.options.loose);if(this.semver===ne||e===ne){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var n;if(this.operator===""){if(this.value===""){return true}n=new Range(e.value,t);return satisfies(this.value,n,t)}else if(e.operator===""){if(e.value===""){return true}n=new Range(this.value,t);return satisfies(e.semver,n,t)}var i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var o=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var d=this.semver.version===e.semver.version;var p=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var f=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var y=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return i||o||d&&p||f||y};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var i=t?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];e=e.replace(i,hyphenReplace);n("hyphen replace",e);e=e.replace(y[D.COMPARATORTRIM],ee);n("comparator trim",e,y[D.COMPARATORTRIM]);e=e.replace(y[D.TILDETRIM],j);e=e.replace(y[D.CARETTRIM],K);e=e.split(/\s+/).join(" ");var o=t?y[D.COMPARATORLOOSE]:y[D.COMPARATOR];var d=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){d=d.filter((function(e){return!!e.match(o)}))}d=d.map((function(e){return new Comparator(e,this.options)}),this);return d};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(n){return isSatisfiable(n,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var n=true;var i=e.slice();var o=i.pop();while(n&&i.length){n=i.every((function(e){return o.intersects(e,t)}));o=i.pop()}return n}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){n("comp",e,t);e=replaceCarets(e,t);n("caret",e);e=replaceTildes(e,t);n("tildes",e);e=replaceXRanges(e,t);n("xrange",e);e=replaceStars(e,t);n("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var i=t.loose?y[D.TILDELOOSE]:y[D.TILDE];return e.replace(i,(function(t,i,o,d,p){n("tilde",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else if(p){n("replaceTilde pr",p);f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}n("tilde return",f);return f}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){n("caret",e,t);var i=t.loose?y[D.CARETLOOSE]:y[D.CARET];return e.replace(i,(function(t,i,o,d,p){n("caret",e,t,i,o,d,p);var f;if(isX(i)){f=""}else if(isX(o)){f=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(isX(d)){if(i==="0"){f=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"}else{f=">="+i+"."+o+".0 <"+(+i+1)+".0.0"}}else if(p){n("replaceCaret pr",p);if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+"-"+p+" <"+(+i+1)+".0.0"}}else{n("no pr");if(i==="0"){if(o==="0"){f=">="+i+"."+o+"."+d+" <"+i+"."+o+"."+(+d+1)}else{f=">="+i+"."+o+"."+d+" <"+i+"."+(+o+1)+".0"}}else{f=">="+i+"."+o+"."+d+" <"+(+i+1)+".0.0"}}n("caret return",f);return f}))}function replaceXRanges(e,t){n("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var i=t.loose?y[D.XRANGELOOSE]:y[D.XRANGE];return e.replace(i,(function(i,o,d,p,f,y){n("xRange",e,i,o,d,p,f,y);var v=isX(d);var D=v||isX(p);var M=D||isX(f);var U=M;if(o==="="&&U){o=""}y=t.includePrerelease?"-0":"";if(v){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&U){if(D){p=0}f=0;if(o===">"){o=">=";if(D){d=+d+1;p=0;f=0}else{p=+p+1;f=0}}else if(o==="<="){o="<";if(D){d=+d+1}else{p=+p+1}}i=o+d+"."+p+"."+f+y}else if(D){i=">="+d+".0.0"+y+" <"+(+d+1)+".0.0"+y}else if(M){i=">="+d+"."+p+".0"+y+" <"+d+"."+(+p+1)+".0"+y}n("xRange return",i);return i}))}function replaceStars(e,t){n("replaceStars",e,t);return e.trim().replace(y[D.STAR],"")}function hyphenReplace(e,t,n,i,o,d,p,f,y,v,D,M,U){if(isX(n)){t=""}else if(isX(i)){t=">="+n+".0.0"}else if(isX(o)){t=">="+n+"."+i+".0"}else{t=">="+t}if(isX(y)){f=""}else if(isX(v)){f="<"+(+y+1)+".0.0"}else if(isX(D)){f="<"+y+"."+(+v+1)+".0"}else if(M){f="<="+y+"."+v+"."+D+"-"+M}else{f="<="+f}return(t+" "+f).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var d=e[o].semver;if(d.major===t.major&&d.minor===t.minor&&d.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,n){try{t=new Range(t,n)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===-1){i=e;o=new SemVer(i,n)}}}));return i}t.minSatisfying=minSatisfying;function minSatisfying(e,t,n){var i=null;var o=null;try{var d=new Range(t,n)}catch(e){return null}e.forEach((function(e){if(d.test(e)){if(!i||o.compare(e)===1){i=e;o=new SemVer(i,n)}}}));return i}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var n=new SemVer("0.0.0");if(e.test(n)){return n}n=new SemVer("0.0.0-0");if(e.test(n)){return n}n=null;for(var i=0;i":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!n||gt(n,t)){n=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n)){return n}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,n){return outside(e,t,"<",n)}t.gtr=gtr;function gtr(e,t,n){return outside(e,t,">",n)}t.outside=outside;function outside(e,t,n,i){e=new SemVer(e,i);t=new Range(t,i);var o,d,p,f,y;switch(n){case">":o=gt;d=lte;p=lt;f=">";y=">=";break;case"<":o=lt;d=gte;p=gt;f="<";y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,i)){return false}for(var v=0;v=0.0.0")}M=M||e;U=U||e;if(o(e.semver,M.semver,i)){M=e}else if(p(e.semver,U.semver,i)){U=e}}));if(M.operator===f||M.operator===y){return false}if((!U.operator||U.operator===f)&&d(e,U.semver)){return false}else if(U.operator===y&&p(e,U.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var n=parse(e,t);return n&&n.prerelease.length?n.prerelease:null}t.intersects=intersects;function intersects(e,t,n){e=new Range(e,n);t=new Range(t,n);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var n=null;if(!t.rtl){n=e.match(y[D.COERCE])}else{var i;while((i=y[D.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}y[D.COERCERTL].lastIndex=i.index+i[1].length+i[2].length}y[D.COERCERTL].lastIndex=-1}if(n===null){return null}return parse(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},68110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const i=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);i.set(this,false)}get aborted(){if(!i.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return i.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=n.get(this);i.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const i=n.get(this);const o=i.indexOf(t);if(o>-1){i.splice(o,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}i.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},37889:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=i;this.response=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:i}}))}}t.ClientStreamingCall=ClientStreamingCall},71409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},36826:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=i;this.responses=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},44420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=n(56892);Object.defineProperty(t,"ServiceType",{enumerable:true,get:function(){return i.ServiceType}});var o=n(62496);Object.defineProperty(t,"readMethodOptions",{enumerable:true,get:function(){return o.readMethodOptions}});Object.defineProperty(t,"readMethodOption",{enumerable:true,get:function(){return o.readMethodOption}});Object.defineProperty(t,"readServiceOption",{enumerable:true,get:function(){return o.readServiceOption}});var d=n(78636);Object.defineProperty(t,"RpcError",{enumerable:true,get:function(){return d.RpcError}});var p=n(28576);Object.defineProperty(t,"mergeRpcOptions",{enumerable:true,get:function(){return p.mergeRpcOptions}});var f=n(72726);Object.defineProperty(t,"RpcOutputStreamController",{enumerable:true,get:function(){return f.RpcOutputStreamController}});var y=n(79122);Object.defineProperty(t,"TestTransport",{enumerable:true,get:function(){return y.TestTransport}});var v=n(71409);Object.defineProperty(t,"Deferred",{enumerable:true,get:function(){return v.Deferred}});Object.defineProperty(t,"DeferredState",{enumerable:true,get:function(){return v.DeferredState}});var D=n(36826);Object.defineProperty(t,"DuplexStreamingCall",{enumerable:true,get:function(){return D.DuplexStreamingCall}});var M=n(37889);Object.defineProperty(t,"ClientStreamingCall",{enumerable:true,get:function(){return M.ClientStreamingCall}});var U=n(46173);Object.defineProperty(t,"ServerStreamingCall",{enumerable:true,get:function(){return U.ServerStreamingCall}});var V=n(29288);Object.defineProperty(t,"UnaryCall",{enumerable:true,get:function(){return V.UnaryCall}});var j=n(52849);Object.defineProperty(t,"stackIntercept",{enumerable:true,get:function(){return j.stackIntercept}});Object.defineProperty(t,"stackDuplexStreamingInterceptors",{enumerable:true,get:function(){return j.stackDuplexStreamingInterceptors}});Object.defineProperty(t,"stackClientStreamingInterceptors",{enumerable:true,get:function(){return j.stackClientStreamingInterceptors}});Object.defineProperty(t,"stackServerStreamingInterceptors",{enumerable:true,get:function(){return j.stackServerStreamingInterceptors}});Object.defineProperty(t,"stackUnaryInterceptors",{enumerable:true,get:function(){return j.stackUnaryInterceptors}});var K=n(43352);Object.defineProperty(t,"ServerCallContextController",{enumerable:true,get:function(){return K.ServerCallContextController}})},62496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const i=n(68886);function normalizeMethodInfo(e,t){var n,o,d;let p=e;p.service=t;p.localName=(n=p.localName)!==null&&n!==void 0?n:i.lowerCamelCase(p.name);p.serverStreaming=!!p.serverStreaming;p.clientStreaming=!!p.clientStreaming;p.options=(o=p.options)!==null&&o!==void 0?o:{};p.idempotency=(d=p.idempotency)!==null&&d!==void 0?d:undefined;return p}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,i){var o;const d=(o=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||o===void 0?void 0:o.options;return d&&d[n]?i.fromJson(d[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,i){var o;const d=(o=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||o===void 0?void 0:o.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return i?i.fromJson(p):p}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const i=e.options;if(!i){return undefined}const o=i[t];if(o===undefined){return o}return n?n.fromJson(o):o}t.readServiceOption=readServiceOption},78636:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,i]of t){e.push(` ${n}: ${i}`)}}return e.join("\n")}}t.RpcError=RpcError},52849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const i=n(68886);function stackIntercept(e,t,n,o,d){var p,f,y,v;if(e=="unary"){let tail=(e,n,i)=>t.unary(e,n,i);for(const e of((p=o.interceptors)!==null&&p!==void 0?p:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,i,o)=>e.interceptUnary(t,n,i,o)}return tail(n,d,o)}if(e=="serverStreaming"){let tail=(e,n,i)=>t.serverStreaming(e,n,i);for(const e of((f=o.interceptors)!==null&&f!==void 0?f:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,i,o)=>e.interceptServerStreaming(t,n,i,o)}return tail(n,d,o)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((y=o.interceptors)!==null&&y!==void 0?y:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,i)=>e.interceptClientStreaming(t,n,i)}return tail(n,o)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((v=o.interceptors)!==null&&v!==void 0?v:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,i)=>e.interceptDuplex(t,n,i)}return tail(n,o)}i.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,i){return stackIntercept("unary",e,t,i,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,i){return stackIntercept("serverStreaming",e,t,i,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},28576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const i=n(68886);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let o of Object.keys(t)){let d=t[o];switch(o){case"jsonOptions":n.jsonOptions=i.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=i.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(d):d.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,i]of Object.entries(e)){if(i instanceof Date)n[t]=new Date(i.getTime());else if(Array.isArray(i))n[t]=i.concat();else n[t]=i}}},72726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const i=n(71409);const o=n(68886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){o.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){o.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){o.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){o.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;o.assert(e,"bad state");o.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new i.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;o.assert(n.state==i.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},43352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,i,o={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=i;this.status=o}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},46173:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=i;this.responses=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},56892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const i=n(62496);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>i.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},79122:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const o=n(78636);const d=n(68886);const p=n(72726);const f=n(28576);const y=n(29288);const v=n(46173);const D=n(37889);const M=n(36826);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof o.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof o.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){d.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}d.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return i(this,void 0,void 0,(function*(){const i=[];if(this.data.response===undefined){i.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){d.assert(e.O.is(t));i.push(t)}}else if(!(this.data.response instanceof o.RpcError)){d.assert(e.O.is(this.data.response));i.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof o.RpcError){t.notifyError(this.data.response);return}for(let e of i){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof o.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof o.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof o.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof o.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return f.mergeRpcOptions({},e)}unary(e,t,n){var i;const o=(i=n.meta)!==null&&i!==void 0?i:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),p=d.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),f=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),v=p.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(f,v);this.lastInput={single:t};return new y.UnaryCall(e,o,t,d,p,f,v)}serverStreaming(e,t,n){var i;const o=(i=n.meta)!==null&&i!==void 0?i:{},d=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),f=new p.RpcOutputStreamController,y=d.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,f,n.abort))).then(delay(this.afterResponseDelay,n.abort)),D=y.then((()=>this.promiseStatus())),M=y.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(D,M);this.lastInput={single:t};return new v.ServerStreamingCall(e,o,t,d,f,D,M)}clientStreaming(e,t){var n;const i=(n=t.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=o.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),p=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),f=d.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,t.abort);return new D.ClientStreamingCall(e,i,this.lastInput,o,d,p,f)}duplex(e,t){var n;const i=(n=t.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),d=new p.RpcOutputStreamController,f=o.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,d,t.abort))).then(delay(this.afterResponseDelay,t.abort)),y=f.then((()=>this.promiseStatus())),v=f.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(y,v);this.lastInput=new TestInputStream(this.data,t.abort);return new M.DuplexStreamingCall(e,i,this.lastInput,o,d,y,v)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((i,d)=>{if(t===null||t===void 0?void 0:t.aborted){d(new o.RpcError("user cancel","CANCELLED"))}else{const p=setTimeout((()=>i(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(p);d(new o.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof o.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof o.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},29288:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,i,o,d,p){this.method=e;this.requestHeaders=t;this.request=n;this.headers=i;this.response=o;this.status=d;this.trailers=p}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:i}}))}}t.UnaryCall=UnaryCall},8602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,i=-34028234663852886e22,o=4294967295,d=2147483647,p=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>d||eo||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let i=[];for(let e=0;e>4;f=p;d=2;break;case 2:n[o++]=(f&15)<<4|(p&60)>>2;f=p;d=3;break;case 3:n[o++]=(f&3)<<6|p;d=0;break}}if(d==1)throw Error(`invalid base64 string.`);return n.subarray(0,o)}t.base64decode=base64decode;function base64encode(e){let t="",i=0,o,d=0;for(let p=0;p>2];d=(o&3)<<4;i=1;break;case 1:t+=n[d|o>>4];d=(o&15)<<2;i=2;break;case 2:t+=n[d|o>>6];t+=n[o&63];i=0;break}}if(i){t+=n[d];t+="=";if(i==1)t+="="}return t}t.base64encode=base64encode},54816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,i,o,d)=>{let p=is(n)?n[e.symbol]:n[e.symbol]=[];p.push({no:i,wireType:o,data:d})};e.onWrite=(t,n,i)=>{for(let{no:t,wireType:o,data:d}of e.list(n))i.tag(t,o).raw(d)};e.list=(t,n)=>{if(is(t)){let i=t[e.symbol];return n?i.filter((e=>e.no==n)):i}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var i;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(i=t.WireType||(t.WireType={}))},92889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const i=n(54816);const o=n(61753);const d=n(93223);const p={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=d.varint64read;this.uint32=d.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case i.WireType.Varint:while(this.buf[this.pos++]&128){}break;case i.WireType.Bit64:this.pos+=4;case i.WireType.Bit32:this.pos+=4;break;case i.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case i.WireType.StartGroup:let n;while((n=this.tag()[1])!==i.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new o.PbLong(...this.varint64())}uint64(){return new o.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new o.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new o.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new o.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},23957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const i=n(61753);const o=n(93223);const d=n(8602);const p={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},p),e):p}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){d.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){d.assertInt32(e);o.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){d.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){d.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){d.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){d.assertInt32(e);e=(e<<1^e>>31)>>>0;o.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let o=i.PbLong.from(e);n.setInt32(0,o.lo,true);n.setInt32(4,o.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let o=i.PbULong.from(e);n.setInt32(0,o.lo,true);n.setInt32(4,o.hi,true);return this.raw(t)}int64(e){let t=i.PbLong.from(e);o.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=i.PbLong.from(e),n=t.hi>>31,d=t.lo<<1^n,p=(t.hi<<1|t.lo>>>31)^n;o.varint64write(d,p,this.buf);return this}uint64(e){let t=i.PbULong.from(e);o.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},70257:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,i]of Object.entries(e))if(typeof i=="number")t.push({name:n,number:i});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},93223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];e|=(i&127)<>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];t|=(i&127)<>>i;const d=!(o>>>7==0&&t==0);const p=(d?o|128:o)&255;n.push(p);if(!d){return}}const i=e>>>28&15|(t&7)<<4;const o=!(t>>3==0);n.push((o?i|128:i)&255);if(!o){return}for(let e=3;e<31;e=e+7){const i=t>>>e;const o=!(i>>>7==0);const d=(o?i|128:i)&255;n.push(d);if(!o){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const i=1e6;let o=0;let d=0;function add1e6digit(t,p){const f=Number(e.slice(t,p));d*=i;o=o*i+f;if(o>=n){d=d+(o/n|0);o=o%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,o,d]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let i=e&16777215;let o=(e>>>24|t<<8)>>>0&16777215;let d=t>>16&65535;let p=i+o*6777216+d*6710656;let f=o+d*8147497;let y=d*2;let v=1e7;if(p>=v){f+=Math.floor(p/v);p%=v}if(f>=v){y+=Math.floor(f/v);f%=v}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(y,0)+decimalFrom1e7(f,y)+decimalFrom1e7(p,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},68886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=n(49999);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return i.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return i.isJsonObject}});var o=n(26335);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return o.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return o.base64encode}});var d=n(58950);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return d.utf8read}});var p=n(54816);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return p.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return p.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return p.UnknownFieldHandler}});var f=n(92889);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return f.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return f.binaryReadOptions}});var y=n(23957);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return y.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return y.binaryWriteOptions}});var v=n(61753);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return v.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return v.PbULong}});var D=n(29367);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return D.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return D.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return D.mergeJsonOptions}});var M=n(43785);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return M.MESSAGE_TYPE}});var U=n(15106);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return U.MessageType}});var V=n(67910);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return V.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return V.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return V.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return V.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return V.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return V.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return V.readMessageOption}});var j=n(25167);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return j.ReflectionTypeCheck}});var K=n(75726);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return K.reflectionCreate}});var ee=n(19526);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return ee.reflectionScalarDefault}});var te=n(98044);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return te.reflectionMergePartial}});var re=n(4827);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return re.reflectionEquals}});var ne=n(89611);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return ne.ReflectionBinaryReader}});var ie=n(66907);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return ie.ReflectionBinaryWriter}});var oe=n(46790);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return oe.ReflectionJsonReader}});var se=n(11094);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return se.ReflectionJsonWriter}});var ae=n(59946);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return ae.containsMessageType}});var Ae=n(18063);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return Ae.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return Ae.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return Ae.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return Ae.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return Ae.getSelectedOneofValue}});var ce=n(70257);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return ce.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return ce.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return ce.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return ce.isEnumObject}});var le=n(4073);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return le.lowerCamelCase}});var ue=n(8602);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return ue.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return ue.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return ue.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return ue.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return ue.assertFloat32}})},29367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},i={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},i),e):i}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,i;let o=Object.assign(Object.assign({},e),t);o.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(i=t===null||t===void 0?void 0:t.typeRegistry)!==null&&i!==void 0?i:[]];return o}t.mergeJsonOptions=mergeJsonOptions},49999:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},15106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const i=n(43785);const o=n(67910);const d=n(25167);const p=n(46790);const f=n(11094);const y=n(89611);const v=n(66907);const D=n(75726);const M=n(98044);const U=n(49999);const V=n(29367);const j=n(4827);const K=n(23957);const ee=n(92889);const te=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const re=te[i.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(o.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};re.value=this;this.messagePrototype=Object.create(null,te);this.refTypeCheck=new d.ReflectionTypeCheck(this);this.refJsonReader=new p.ReflectionJsonReader(this);this.refJsonWriter=new f.ReflectionJsonWriter(this);this.refBinReader=new y.ReflectionBinaryReader(this);this.refBinWriter=new v.ReflectionBinaryWriter(this)}create(e){let t=D.reflectionCreate(this);if(e!==undefined){M.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();M.reflectionMergePartial(this,t,e);return t}equals(e,t){return j.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){M.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=ee.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,V.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,V.jsonWriteOptions(t))}toJsonString(e,t){var n;let i=this.toJson(e,t);return JSON.stringify(i,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=K.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let i=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,i,t);return i}throw new Error(`Unable to parse message ${this.typeName} from JSON ${U.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,i){let o=i!==null&&i!==void 0?i:this.create();this.refBinReader.read(e,o,n,t);return o}}t.MessageType=MessageType},18063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},61753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const i=n(93223);let o;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";o=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const d=/^-?[0-9]+$/;const p=4294967296;const f=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*p+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(o)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=o.C(e);case"number":if(e===0)return this.ZERO;e=o.C(e);case"bigint":if(!e)return this.ZERO;if(eo.UMAX)throw new Error("ulong too large");o.V.setBigUint64(0,e,true);return new PbULong(o.V.getInt32(0,true),o.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,o]=i.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,o);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/p)}throw new Error("unknown value "+typeof e)}toString(){return o?this.toBigInt().toString():i.int64toString(this.lo,this.hi)}toBigInt(){assertBi(o);o.V.setInt32(0,this.lo,true);o.V.setInt32(4,this.hi,true);return o.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(o)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=o.C(e);case"number":if(e===0)return this.ZERO;e=o.C(e);case"bigint":if(!e)return this.ZERO;if(eo.MAX)throw new Error("signed long too large");o.V.setBigInt64(0,e,true);return new PbLong(o.V.getInt32(0,true),o.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!d.test(e))throw new Error("string is no integer");let[t,n,o]=i.int64fromString(e);if(t){if(o>f||o==f&&n!=0)throw new Error("signed long too small")}else if(o>=f)throw new Error("signed long too large");let y=new PbLong(n,o);return t?y.negate():y;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/p):new PbLong(-e,-e/p).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&f)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(o)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+i.int64toString(e.lo,e.hi)}return i.int64toString(this.lo,this.hi)}toBigInt(){assertBi(o);o.V.setInt32(0,this.lo,true);o.V.setInt32(4,this.hi,true);return o.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},58950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],i=[],o=0,d;let p=e.length;while(t191&&d<224)i[o++]=(d&31)<<6|e[t++]&63;else if(d>239&&d<365){d=((d&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;i[o++]=55296+(d>>10);i[o++]=56320+(d&1023)}else i[o++]=(d&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(o>8191){n.push(fromCharCodes(i));o=0}}if(n.length){if(o)n.push(fromCharCodes(i.slice(0,o)));return n.join("")}return fromCharCodes(i.slice(0,o))}t.utf8read=utf8read},89611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const i=n(54816);const o=n(67910);const d=n(63402);const p=n(19526);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,d){this.prepare();const p=d===undefined?e.len:e.pos+d;while(e.pos{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const i=n(54816);const o=n(67910);const d=n(8602);const p=n(61753);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const i of this.fields){let p,f,y=i.repeat,v=i.localName;if(i.oneof){const t=e[i.oneof];if(t.oneofKind!==v)continue;p=t[v];f=true}else{p=e[v];f=false}switch(i.kind){case"scalar":case"enum":let e=i.kind=="enum"?o.ScalarType.INT32:i.T;if(y){d.assert(Array.isArray(p));if(y==o.RepeatType.PACKED)this.packed(t,e,i.no,p);else for(const n of p)this.scalar(t,e,i.no,n,true)}else if(p===undefined)d.assert(i.opt);else this.scalar(t,e,i.no,p,f||i.opt);break;case"message":if(y){d.assert(Array.isArray(p));for(const e of p)this.message(t,n,i.T(),i.no,e)}else{this.message(t,n,i.T(),i.no,p)}break;case"map":d.assert(typeof p=="object"&&p!==null);for(const[e,o]of Object.entries(p))this.mapEntry(t,n,i,e,o);break}}let p=n.writeUnknownFields;if(p!==false)(p===true?i.UnknownFieldHandler.onWrite:p)(this.info.typeName,e,t)}mapEntry(e,t,n,p,f){e.tag(n.no,i.WireType.LengthDelimited);e.fork();let y=p;switch(n.K){case o.ScalarType.INT32:case o.ScalarType.FIXED32:case o.ScalarType.UINT32:case o.ScalarType.SFIXED32:case o.ScalarType.SINT32:y=Number.parseInt(p);break;case o.ScalarType.BOOL:d.assert(p=="true"||p=="false");y=p=="true";break}this.scalar(e,n.K,1,y,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,f,true);break;case"enum":this.scalar(e,o.ScalarType.INT32,2,f,true);break;case"message":this.message(e,t,n.V.T(),2,f);break}e.join()}message(e,t,n,o,d){if(d===undefined)return;n.internalBinaryWrite(d,e.tag(o,i.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,i,o){let[d,p,f]=this.scalarInfo(t,i);if(!f||o){e.tag(n,d);e[p](i)}}packed(e,t,n,p){if(!p.length)return;d.assert(t!==o.ScalarType.BYTES&&t!==o.ScalarType.STRING);e.tag(n,i.WireType.LengthDelimited);e.fork();let[,f]=this.scalarInfo(t);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const i=n(43785);function containsMessageType(e){return e[i.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},75726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const i=n(19526);const o=n(43785);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},o.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=i.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},4827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const i=n(67910);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let d of e.fields){let e=d.localName;let p=d.oneof?t[d.oneof][e]:t[e];let f=d.oneof?n[d.oneof][e]:n[e];switch(d.kind){case"enum":case"scalar":let e=d.kind=="enum"?i.ScalarType.INT32:d.T;if(!(d.repeat?repeatedPrimitiveEq(e,p,f):primitiveEq(e,p,f)))return false;break;case"map":if(!(d.V.kind=="message"?repeatedMsgEq(d.V.T(),o(p),o(f)):repeatedPrimitiveEq(d.V.kind=="enum"?i.ScalarType.INT32:d.V.T,o(p),o(f))))return false;break;case"message":let t=d.T();if(!(d.repeat?repeatedMsgEq(t,p,f):t.equals(p,f)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const o=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==i.ScalarType.BYTES)return false;let o=t;let d=n;if(o.length!==d.length)return false;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const i=n(4073);var o;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(o=t.ScalarType||(t.ScalarType={}));var d;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(d=t.LongType||(t.LongType={}));var p;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(p=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,o,d;e.localName=(t=e.localName)!==null&&t!==void 0?t:i.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:i.lowerCamelCase(e.name);e.repeat=(o=e.repeat)!==null&&o!==void 0?o:p.NO;e.opt=(d=e.opt)!==null&&d!==void 0?d:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,i){var o;const d=(o=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||o===void 0?void 0:o.options;return d&&d[n]?i.fromJson(d[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,i){var o;const d=(o=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||o===void 0?void 0:o.options;if(!d){return undefined}const p=d[n];if(p===undefined){return p}return i?i.fromJson(p):p}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const i=e.options;const o=i[t];if(o===undefined){return o}return n?n.fromJson(o):o}t.readMessageOption=readMessageOption},46790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const i=n(49999);const o=n(26335);const d=n(67910);const p=n(61753);const f=n(8602);const y=n(63402);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=i.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const o=[];for(const[p,f]of Object.entries(e)){const e=this.fMap[p];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${p}`);continue}const y=e.localName;let v;if(e.oneof){if(f===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(o.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);o.push(e.oneof);v=t[e.oneof]={oneofKind:y}}else{v=t}if(e.kind=="map"){if(f===null){continue}this.assert(i.isJsonObject(f),e.name,f);const t=v[y];for(const[i,o]of Object.entries(f)){this.assert(o!==null,e.name+" map value",null);let p;switch(e.V.kind){case"message":p=e.V.T().internalJsonRead(o,n);break;case"enum":p=this.enum(e.V.T(),o,e.name,n.ignoreUnknownFields);if(p===false)continue;break;case"scalar":p=this.scalar(o,e.V.T,e.V.L,e.name);break}this.assert(p!==undefined,e.name+" map value",o);let f=i;if(e.K==d.ScalarType.BOOL)f=f=="true"?true:f=="false"?false:f;f=this.scalar(f,e.K,d.LongType.STRING,e.name).toString();t[f]=p}}else if(e.repeat){if(f===null)continue;this.assert(Array.isArray(f),e.name,f);const t=v[y];for(const i of f){this.assert(i!==null,e.name,null);let o;switch(e.kind){case"message":o=e.T().internalJsonRead(i,n);break;case"enum":o=this.enum(e.T(),i,e.name,n.ignoreUnknownFields);if(o===false)continue;break;case"scalar":o=this.scalar(i,e.T,e.L,e.name);break}this.assert(o!==undefined,e.name,f);t.push(o)}}else{switch(e.kind){case"message":if(f===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}v[y]=e.T().internalJsonRead(f,n,v[y]);break;case"enum":if(f===null)continue;let t=this.enum(e.T(),f,e.name,n.ignoreUnknownFields);if(t===false)continue;v[y]=t;break;case"scalar":if(f===null)continue;v[y]=this.scalar(f,e.T,e.L,e.name);break}}}}enum(e,t,n,i){if(e[0]=="google.protobuf.NullValue")f.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":f.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let o=t;if(e[2]&&t.substring(0,e[2].length)===e[2])o=t.substring(e[2].length);let d=e[1][o];if(typeof d==="undefined"&&i){return false}f.assert(typeof d=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return d}f.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,i){let v;try{switch(t){case d.ScalarType.DOUBLE:case d.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){v="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){v="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let i=Number(e);if(Number.isNaN(i)){v="not a number";break}if(!Number.isFinite(i)){v="too large or small";break}if(t==d.ScalarType.FLOAT)f.assertFloat32(i);return i;case d.ScalarType.INT32:case d.ScalarType.FIXED32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:case d.ScalarType.UINT32:if(e===null)return 0;let D;if(typeof e=="number")D=e;else if(e==="")v="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)v="extra whitespace";else D=Number(e)}if(D===undefined)break;if(t==d.ScalarType.UINT32)f.assertUInt32(D);else f.assertInt32(D);return D;case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:if(e===null)return y.reflectionLongConvert(p.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbLong.from(e),n);case d.ScalarType.FIXED64:case d.ScalarType.UINT64:if(e===null)return y.reflectionLongConvert(p.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return y.reflectionLongConvert(p.PbULong.from(e),n);case d.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case d.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){v="extra whitespace";break}try{encodeURIComponent(e)}catch(v){v="invalid UTF8";break}return e;case d.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return o.base64decode(e)}}catch(e){v=e.message}this.assert(false,i+(v?" - "+v:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},11094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const i=n(26335);const o=n(61753);const d=n(67910);const p=n(8602);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},i=e;for(const e of this.fields){if(!e.oneof){let o=this.field(e,i[e.localName],t);if(o!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=o;continue}const o=i[e.oneof];if(o.oneofKind!==e.localName)continue;const d=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let f=this.field(e,o[e.localName],d);p.assert(f!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=f}return n}field(e,t,n){let i=undefined;if(e.kind=="map"){p.assert(typeof t=="object"&&t!==null);const o={};switch(e.V.kind){case"scalar":for(const[n,i]of Object.entries(t)){const t=this.scalar(e.V.T,i,e.name,false,true);p.assert(t!==undefined);o[n.toString()]=t}break;case"message":const i=e.V.T();for(const[d,f]of Object.entries(t)){const t=this.message(i,f,e.name,n);p.assert(t!==undefined);o[d.toString()]=t}break;case"enum":const d=e.V.T();for(const[i,f]of Object.entries(t)){p.assert(f===undefined||typeof f=="number");const t=this.enum(d,f,e.name,false,true,n.enumAsInteger);p.assert(t!==undefined);o[i.toString()]=t}break}if(n.emitDefaultValues||Object.keys(o).length>0)i=o}else if(e.repeat){p.assert(Array.isArray(t));const o=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)i=o}else{switch(e.kind){case"scalar":i=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":i=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":i=this.message(e.T(),t,e.name,n);break}}return i}enum(e,t,n,i,o,d){if(e[0]=="google.protobuf.NullValue")return!o&&!i?undefined:null;if(t===undefined){p.assert(i);return undefined}if(t===0&&!o&&!i)return undefined;p.assert(typeof t=="number");p.assert(Number.isInteger(t));if(d||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,i){if(t===undefined)return i.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,i)}scalar(e,t,n,f,y){if(t===undefined){p.assert(f);return undefined}const v=y||f;switch(e){case d.ScalarType.INT32:case d.ScalarType.SFIXED32:case d.ScalarType.SINT32:if(t===0)return v?0:undefined;p.assertInt32(t);return t;case d.ScalarType.FIXED32:case d.ScalarType.UINT32:if(t===0)return v?0:undefined;p.assertUInt32(t);return t;case d.ScalarType.FLOAT:p.assertFloat32(t);case d.ScalarType.DOUBLE:if(t===0)return v?0:undefined;p.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case d.ScalarType.STRING:if(t==="")return v?"":undefined;p.assert(typeof t=="string");return t;case d.ScalarType.BOOL:if(t===false)return v?false:undefined;p.assert(typeof t=="boolean");return t;case d.ScalarType.UINT64:case d.ScalarType.FIXED64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=o.PbULong.from(t);if(e.isZero()&&!v)return undefined;return e.toString();case d.ScalarType.INT64:case d.ScalarType.SFIXED64:case d.ScalarType.SINT64:p.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=o.PbLong.from(t);if(n.isZero()&&!v)return undefined;return n.toString();case d.ScalarType.BYTES:p.assert(t instanceof Uint8Array);if(!t.byteLength)return v?"":undefined;return i.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},63402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const i=n(67910);function reflectionLongConvert(e,t){switch(t){case i.LongType.BIGINT:return e.toBigInt();case i.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},98044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let i,o=n,d;for(let n of e.fields){let e=n.localName;if(n.oneof){const p=o[n.oneof];if((p===null||p===void 0?void 0:p.oneofKind)==undefined){continue}i=p[e];d=t[n.oneof];d.oneofKind=p.oneofKind;if(i==undefined){delete d[e];continue}}else{i=o[e];d=t;if(i==undefined){continue}}if(n.repeat)d[e].length=i.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const i=n(67910);const o=n(63402);const d=n(61753);function reflectionScalarDefault(e,t=i.LongType.STRING){switch(e){case i.ScalarType.BOOL:return false;case i.ScalarType.UINT64:case i.ScalarType.FIXED64:return o.reflectionLongConvert(d.PbULong.ZERO,t);case i.ScalarType.INT64:case i.ScalarType.SFIXED64:case i.ScalarType.SINT64:return o.reflectionLongConvert(d.PbLong.ZERO,t);case i.ScalarType.DOUBLE:case i.ScalarType.FLOAT:return 0;case i.ScalarType.BYTES:return new Uint8Array(0);case i.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},25167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const i=n(67910);const o=n(18063);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let i of this.fields){if(i.oneof){if(!n.includes(i.oneof)){n.push(i.oneof);e.push(i.oneof);t.push(i.oneof)}}else{t.push(i.localName);switch(i.kind){case"scalar":case"enum":if(!i.opt||i.repeat)e.push(i.localName);break;case"message":if(i.repeat)e.push(i.localName);break;case"map":e.push(i.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let i=Object.keys(e),d=this.data;if(i.length!i.includes(e))))return false;if(!n){if(i.some((e=>!d.known.includes(e))))return false}if(t<1){return true}for(const i of d.oneofs){const d=e[i];if(!o.isOneofGroup(d))return false;if(d.oneofKind===undefined)continue;const p=this.fields.find((e=>e.localName===d.oneofKind));if(!p)return false;if(!this.field(d[d.oneofKind],p,n,t))return false}for(const i of this.fields){if(i.oneof!==undefined)continue;if(!this.field(e[i.localName],i,n,t))return false}return true}field(e,t,n,o){let d=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(d)return this.scalars(e,t.T,o,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(d)return this.scalars(e,i.ScalarType.INT32,o);return this.scalar(e,i.ScalarType.INT32);case"message":if(e===undefined)return true;if(d)return this.messages(e,t.T(),n,o);return this.message(e,t.T(),n,o);case"map":if(typeof e!="object"||e===null)return false;if(o<2)return true;if(!this.mapKeys(e,t.K,o))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,o,t.V.L);case"enum":return this.scalars(Object.values(e),i.ScalarType.INT32,o);case"message":return this.messages(Object.values(e),t.V.T(),n,o)}break}return true}message(e,t,n,i){if(n){return t.isAssignable(e,i)}return t.is(e,i)}messages(e,t,n,i){if(!Array.isArray(e))return false;if(i<2)return true;if(n){for(let n=0;nparseInt(e))),t,n);case i.ScalarType.BOOL:return this.scalars(o.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(o,t,n,i.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},75807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SVNClient=void 0;var i=n(15086);Object.defineProperty(t,"SVNClient",{enumerable:true,get:function(){return i.SVNClient}})},15086:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function fulfilled(e){try{step(i.next(e))}catch(e){o(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())}))};var o=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},i,o,d,p;return p={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(p[Symbol.iterator]=function(){return this}),p;function verb(e){return function(t){return step([e,t])}}function step(f){if(i)throw new TypeError("Generator is already executing.");while(p&&(p=0,f[0]&&(n=0)),n)try{if(i=1,o&&(d=f[0]&2?o["return"]:f[0]?o["throw"]||((d=o["return"])&&d.call(o),0):o.next)&&!(d=d.call(o,f[1])).done)return d;if(o=0,d)f=[f[0]&2,d.value];switch(f[0]){case 0:case 1:d=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;o=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(d=n.trys,d=d.length>0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]0)n.push("--search-and");n.push(i.search[p])}}}return[2,this.cmd("log",this.joinUsernameAndPassword(n))]}else{return[2,this.cmd("log",this.joinUsernameAndPassword(e))]}return[2]}))}))};SVNClient.prototype.revert=function(){var e=[];for(var t=0;t{i.once("response",e).once("error",t).end()}));i.then=o.then.bind(o);return i}t.req=req},98894:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const f=d(n(69278));const y=d(n(58611));const v=n(65692);p(n(15183),t);const D=Symbol("AgentBaseInternalState");class Agent extends y.Agent{constructor(e){super(e);this[D]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new f.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const i=n.indexOf(t);if(i!==-1){n.splice(i,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return v.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const i={...t,secureEndpoint:this.isSecureEndpoint(t)};const o=this.getName(i);const d=this.incrementSockets(o);Promise.resolve().then((()=>this.connect(e,i))).then((p=>{this.decrementSockets(o,d);if(p instanceof y.Agent){try{return p.addRequest(e,i)}catch(e){return n(e)}}this[D].currentSocket=p;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(o,d);n(e)}))}createConnection(){const e=this[D].currentSocket;this[D].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[D].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[D]){this[D].defaultPort=e}}get protocol(){return this[D].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[D]){this[D].protocol=e}}}t.Agent=Agent},59380:e=>{"use strict";e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var i=range(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var i,o,d,p,f;var y=n.indexOf(e);var v=n.indexOf(t,y+1);var D=y;if(y>=0&&v>0){if(e===t){return[y,v]}i=[];d=n.length;while(D>=0&&!f){if(D==y){i.push(D);y=n.indexOf(e,D+1)}else if(i.length==1){f=[i.pop(),v]}else{o=i.pop();if(o=0?y:v}if(i.length){f=[d,p]}}return f}},94691:(e,t,n)=>{var i=n(97087);var o=n(59380);e.exports=expandTop;var d="\0SLASH"+Math.random()+"\0";var p="\0OPEN"+Math.random()+"\0";var f="\0CLOSE"+Math.random()+"\0";var y="\0COMMA"+Math.random()+"\0";var v="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(d).split("\\{").join(p).split("\\}").join(f).split("\\,").join(y).split("\\.").join(v)}function unescapeBraces(e){return e.split(d).join("\\").split(p).join("{").split(f).join("}").split(y).join(",").split(v).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=o("{","}",e);if(!n)return e.split(",");var i=n.pre;var d=n.body;var p=n.post;var f=i.split(",");f[f.length-1]+="{"+d+"}";var y=parseCommaParts(p);if(p.length){f[f.length-1]+=y.shift();f.push.apply(f,y)}t.push.apply(t,f);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var d=o("{","}",e);if(!d||/\$$/.test(d.pre))return[e];var p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(d.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(d.body);var v=p||y;var D=d.body.indexOf(",")>=0;if(!v&&!D){if(d.post.match(/,(?!,).*\}/)){e=d.pre+"{"+d.body+f+d.post;return expand(e)}return[e]}var M;if(v){M=d.body.split(/\.\./)}else{M=parseCommaParts(d.body);if(M.length===1){M=expand(M[0],false).map(embrace);if(M.length===1){var U=d.post.length?expand(d.post,false):[""];return U.map((function(e){return d.pre+M[0]+e}))}}}var V=d.pre;var U=d.post.length?expand(d.post,false):[""];var j;if(v){var K=numeric(M[0]);var ee=numeric(M[1]);var te=Math.max(M[0].length,M[1].length);var re=M.length==3?Math.abs(numeric(M[2])):1;var ne=lte;var ie=ee0){var ce=new Array(Ae+1).join("0");if(se<0)ae="-"+ce+ae.slice(1);else ae=ce+ae}}}j.push(ae)}}else{j=i(M,(function(e){return expand(e,false)}))}for(var le=0;le{e.exports=function(e,n){var i=[];for(var o=0;o{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}i++;if(e==="%c"){o=i}}));t.splice(o,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(40897)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(70744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n{if(t==="%%"){return"%"}d++;const o=createDebug.formatters[i];if(typeof o==="function"){const i=e[d];t=o.call(n,i);e.splice(d,1);d--}return t}));createDebug.formatArgs.call(n,e);const p=n.log||createDebug.log;p.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(i!==createDebug.namespaces){i=createDebug.namespaces;o=createDebug.enabled(e)}return o},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let n=0;let i=0;let o=-1;let d=0;while(n"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(95108)}},95108:(e,t,n)=>{const i=n(52018);const o=n(39023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=o.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(21450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];if(/^(yes|on|true|enabled)$/i.test(i)){i=true}else if(/^(no|off|false|disabled)$/i.test(i)){i=false}else if(i==="null"){i=null}else{i=Number(i)}e[n]=i;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:i}=this;if(i){const i=this.color;const o="[3"+(i<8?i:"8;5;"+i);const d=` ${o};1m${n} `;t[0]=d+t[0].split("\n").join("\n"+d);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;ie.trim())).join(" ")};d.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},83813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const i=t.indexOf(n+e);const o=t.indexOf("--");return i!==-1&&(o===-1||i0){V("Patching connection write() output buffer with updated header");n=e.outputData[0].data;i=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(i);V("Output buffer: %o",e.outputData[0].data)}let o;if(this.proxy.protocol==="https:"){V("Creating `tls.Socket`: %o",this.connectOpts);o=y.connect(this.connectOpts)}else{V("Creating `net.Socket`: %o",this.connectOpts);o=f.connect(this.connectOpts)}await(0,D.once)(o,"connect");return o}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let i;for(i in e){if(!t.includes(i)){n[i]=e[i]}}return n}},3669:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,o)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);o(t,e);return t};var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const f=d(n(69278));const y=d(n(64756));const v=p(n(42613));const D=p(n(2830));const M=n(98894);const U=n(87016);const V=n(37943);const j=(0,D.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!f.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends M.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new U.URL(e):e;this.proxyHeaders=t?.headers??{};j("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:i}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let i;if(n.protocol==="https:"){j("Creating `tls.Socket`: %o",this.connectOpts);i=y.connect(setServernameFromNonIpHost(this.connectOpts))}else{j("Creating `net.Socket`: %o",this.connectOpts);i=f.connect(this.connectOpts)}const o=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const d=f.isIPv6(t.host)?`[${t.host}]`:t.host;let p=`CONNECT ${d}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}o.Host=`${d}:${t.port}`;if(!o["Proxy-Connection"]){o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(o)){p+=`${e}: ${o[e]}\r\n`}const D=(0,V.parseProxyResponse)(i);i.write(`${p}\r\n`);const{connect:M,buffered:U}=await D;e.emit("proxyConnect",M);this.emit("proxyConnect",M,e);if(M.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){j("Upgrading socket connection to TLS");return y.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:i})}return i}i.destroy();const K=new f.Socket({writable:false});K.readable=true;e.once("socket",(e=>{j("Replaying proxy buffer for failed request");(0,v.default)(e.listenerCount("data")>0);e.push(U);e.push(null)}));return K}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let i;for(i in e){if(!t.includes(i)){n[i]=e[i]}}return n}},37943:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const o=i(n(2830));const d=(0,o.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let i=0;const o=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();d("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();d("onerror %o",e);n(e)}function ondata(p){o.push(p);i+=p.length;const f=Buffer.concat(o,i);const y=f.indexOf("\r\n\r\n");if(y===-1){d("have not received end of HTTP headers yet...");read();return}const v=f.slice(0,y).toString("ascii").split("\r\n");const D=v.shift();if(!D){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const M=D.split(" ");const U=+M[1];const V=M.slice(2).join(" ");const j={};for(const t of v){if(!t)continue;const i=t.indexOf(":");if(i===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const o=t.slice(0,i).toLowerCase();const d=t.slice(i+1).trimStart();const p=j[o];if(typeof p==="string"){j[o]=[p,d]}else if(Array.isArray(p)){p.push(d)}else{j[o]=d}}d("got proxy server response: %o %o",D,j);cleanup();t({connect:{statusCode:U,statusText:V,headers:j},buffered:f})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},43772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return n(16928)}catch(e){}}()||{sep:"/"};minimatch.sep=i.sep;var o=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var d=n(94691);var p={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var f="[^/]";var y=f+"*?";var v="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var D="(?:(?!(?:\\/|^)\\.).)*?";var M=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var U=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,i,o){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,i,o){return t(n,i,ext(e,o))};n.Minimatch=function Minimatch(n,i){return new t.Minimatch(n,ext(e,i))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,i){return t.filter(n,ext(e,i))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,i){return t.makeRe(n,ext(e,i))};n.braceExpand=function braceExpand(n,i){return t.braceExpand(n,ext(e,i))};n.match=function(n,i,o){return t.match(n,i,ext(e,o))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(U)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var i=0;if(n.nonegate)return;for(var o=0,d=e.length;oV){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var j={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return o;else e="*"}if(e==="")return"";var i="";var d=!!n.nocase;var v=false;var D=[];var U=[];var V;var K=false;var ee=-1;var te=-1;var re=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var ne=this;function clearStateChar(){if(V){switch(V){case"*":i+=y;d=true;break;case"?":i+=f;d=true;break;default:i+="\\"+V;break}ne.debug("clearStateChar %j %j",V,i);V=false}}for(var ie=0,oe=e.length,se;ie-1;pe--){var ge=U[pe];var me=i.slice(0,ge.reStart);var he=i.slice(ge.reStart,ge.reEnd-8);var fe=i.slice(ge.reEnd-8,ge.reEnd);var Ee=i.slice(ge.reEnd);fe+=Ee;var ye=me.split("(").length-1;var Ce=Ee;for(ie=0;ie=0;p--){d=e[p];if(d)break}for(p=0;p>> no match, partial?",e,M,t,U);if(M===f)return true}return false}var j;if(typeof v==="string"){j=D===v;this.debug("string match",v,D,j)}else{j=D.match(v);this.debug("pattern match",v,D,j)}if(!j)return false}if(d===f&&p===y){return true}else if(d===f){return n}else if(p===y){return d===f-1&&e[d]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},70744:e=>{var t=1e3;var n=t*60;var i=n*60;var o=i*24;var d=o*7;var p=o*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!f){return}var y=parseFloat(f[1]);var v=(f[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return y*p;case"weeks":case"week":case"w":return y*d;case"days":case"day":case"d":return y*o;case"hours":case"hour":case"hrs":case"hr":case"h":return y*i;case"minutes":case"minute":case"mins":case"min":case"m":return y*n;case"seconds":case"second":case"secs":case"sec":case"s":return y*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return undefined}}function fmtShort(e){var d=Math.abs(e);if(d>=o){return Math.round(e/o)+"d"}if(d>=i){return Math.round(e/i)+"h"}if(d>=n){return Math.round(e/n)+"m"}if(d>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var d=Math.abs(e);if(d>=o){return plural(e,d,o,"day")}if(d>=i){return plural(e,d,i,"hour")}if(d>=n){return plural(e,d,n,"minute")}if(d>=t){return plural(e,d,t,"second")}return e+" ms"}function plural(e,t,n,i){var o=t>=n*1.5;return Math.round(e/n)+" "+i+(o?"s":"")}},89379:(e,t,n)=>{"use strict";const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=o(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");y("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}y("comp",this)}parse(e){const t=this.options.loose?d[p.COMPARATORLOOSE]:d[p.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=i}else{this.semver=new v(n[2],this.options.loose)}}toString(){return this.value}test(e){y("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new D(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new D(this.value,t).test(e.semver)}t=o(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const o=n(70356);const{safeRe:d,t:p}=n(95471);const f=n(28646);const y=n(1159);const v=n(7163);const D=n(96782)},96782:(e,t,n)=>{"use strict";const i=/\s+/g;class Range{constructor(e,t){t=p(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof f){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(i," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&K)|(this.options.loose&&ee);const n=t+":"+e;const i=d.get(n);if(i){return i}const o=this.options.loose;const p=o?D[M.HYPHENRANGELOOSE]:D[M.HYPHENRANGE];e=e.replace(p,hyphenReplace(this.options.includePrerelease));y("hyphen replace",e);e=e.replace(D[M.COMPARATORTRIM],U);y("comparator trim",e);e=e.replace(D[M.TILDETRIM],V);y("tilde trim",e);e=e.replace(D[M.CARETTRIM],j);y("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){v=v.filter((e=>{y("loose invalid filter",e,this.options);return!!e.match(D[M.COMPARATORLOOSE])}))}y("range list",v);const te=new Map;const re=v.map((e=>new f(e,this.options)));for(const e of re){if(isNullSet(e)){return[e]}te.set(e.value,e)}if(te.size>1&&te.has("")){te.delete("")}const ne=[...te.values()];d.set(n,ne);return ne}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new v(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const i=e.slice();let o=i.pop();while(n&&i.length){n=i.every((e=>o.intersects(e,t)));o=i.pop()}return n};const parseComparator=(e,t)=>{y("comp",e,t);e=replaceCarets(e,t);y("caret",e);e=replaceTildes(e,t);y("tildes",e);e=replaceXRanges(e,t);y("xrange",e);e=replaceStars(e,t);y("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?D[M.TILDELOOSE]:D[M.TILDE];return e.replace(n,((t,n,i,o,d)=>{y("tilde",e,t,n,i,o,d);let p;if(isX(n)){p=""}else if(isX(i)){p=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(o)){p=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`}else if(d){y("replaceTilde pr",d);p=`>=${n}.${i}.${o}-${d} <${n}.${+i+1}.0-0`}else{p=`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`}y("tilde return",p);return p}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{y("caret",e,t);const n=t.loose?D[M.CARETLOOSE]:D[M.CARET];const i=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,d,p)=>{y("caret",e,t,n,o,d,p);let f;if(isX(n)){f=""}else if(isX(o)){f=`>=${n}.0.0${i} <${+n+1}.0.0-0`}else if(isX(d)){if(n==="0"){f=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`}else{f=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`}}else if(p){y("replaceCaret pr",p);if(n==="0"){if(o==="0"){f=`>=${n}.${o}.${d}-${p} <${n}.${o}.${+d+1}-0`}else{f=`>=${n}.${o}.${d}-${p} <${n}.${+o+1}.0-0`}}else{f=`>=${n}.${o}.${d}-${p} <${+n+1}.0.0-0`}}else{y("no pr");if(n==="0"){if(o==="0"){f=`>=${n}.${o}.${d}${i} <${n}.${o}.${+d+1}-0`}else{f=`>=${n}.${o}.${d}${i} <${n}.${+o+1}.0-0`}}else{f=`>=${n}.${o}.${d} <${+n+1}.0.0-0`}}y("caret return",f);return f}))};const replaceXRanges=(e,t)=>{y("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?D[M.XRANGELOOSE]:D[M.XRANGE];return e.replace(n,((n,i,o,d,p,f)=>{y("xRange",e,n,i,o,d,p,f);const v=isX(o);const D=v||isX(d);const M=D||isX(p);const U=M;if(i==="="&&U){i=""}f=t.includePrerelease?"-0":"";if(v){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&U){if(D){d=0}p=0;if(i===">"){i=">=";if(D){o=+o+1;d=0;p=0}else{d=+d+1;p=0}}else if(i==="<="){i="<";if(D){o=+o+1}else{d=+d+1}}if(i==="<"){f="-0"}n=`${i+o}.${d}.${p}${f}`}else if(D){n=`>=${o}.0.0${f} <${+o+1}.0.0-0`}else if(M){n=`>=${o}.${d}.0${f} <${o}.${+d+1}.0-0`}y("xRange return",n);return n}))};const replaceStars=(e,t)=>{y("replaceStars",e,t);return e.trim().replace(D[M.STAR],"")};const replaceGTE0=(e,t)=>{y("replaceGTE0",e,t);return e.trim().replace(D[t.includePrerelease?M.GTE0PRE:M.GTE0],"")};const hyphenReplace=e=>(t,n,i,o,d,p,f,y,v,D,M,U)=>{if(isX(i)){n=""}else if(isX(o)){n=`>=${i}.0.0${e?"-0":""}`}else if(isX(d)){n=`>=${i}.${o}.0${e?"-0":""}`}else if(p){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(v)){y=""}else if(isX(D)){y=`<${+v+1}.0.0-0`}else if(isX(M)){y=`<${v}.${+D+1}.0-0`}else if(U){y=`<=${v}.${D}.${M}-${U}`}else if(e){y=`<${v}.${D}.${+M+1}-0`}else{y=`<=${y}`}return`${n} ${y}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n0){const i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},7163:(e,t,n)=>{"use strict";const i=n(1159);const{MAX_LENGTH:o,MAX_SAFE_INTEGER:d}=n(45101);const{safeRe:p,t:f}=n(95471);const y=n(70356);const{compareIdentifiers:v}=n(73348);class SemVer{constructor(e,t){t=y(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>o){throw new TypeError(`version is longer than ${o} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?p[f.LOOSE]:p[f.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>d||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>d||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>d||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let i=[t,e];if(n===false){i=[t]}if(v(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=i}}else{this.prerelease=i}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,n)=>{"use strict";const i=n(16353);const clean=(e,t)=>{const n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},28646:(e,t,n)=>{"use strict";const i=n(55082);const o=n(4974);const d=n(16599);const p=n(41236);const f=n(3872);const y=n(56717);const cmp=(e,t,n,v)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return i(e,n,v);case"!=":return o(e,n,v);case">":return d(e,n,v);case">=":return p(e,n,v);case"<":return f(e,n,v);case"<=":return y(e,n,v);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},35385:(e,t,n)=>{"use strict";const i=n(7163);const o=n(16353);const{safeRe:d,t:p}=n(95471);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?d[p.COERCEFULL]:d[p.COERCE])}else{const i=t.includePrerelease?d[p.COERCERTLFULL]:d[p.COERCERTL];let o;while((o=i.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||o.index+o[0].length!==n.index+n[0].length){n=o}i.lastIndex=o.index+o[1].length+o[2].length}i.lastIndex=-1}if(n===null){return null}const f=n[2];const y=n[3]||"0";const v=n[4]||"0";const D=t.includePrerelease&&n[5]?`-${n[5]}`:"";const M=t.includePrerelease&&n[6]?`+${n[6]}`:"";return o(`${f}.${y}.${v}${D}${M}`,t)};e.exports=coerce},37648:(e,t,n)=>{"use strict";const i=n(7163);const compareBuild=(e,t,n)=>{const o=new i(e,n);const d=new i(t,n);return o.compare(d)||o.compareBuild(d)};e.exports=compareBuild},56874:(e,t,n)=>{"use strict";const i=n(78469);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},78469:(e,t,n)=>{"use strict";const i=n(7163);const compare=(e,t,n)=>new i(e,n).compare(new i(t,n));e.exports=compare},70711:(e,t,n)=>{"use strict";const i=n(16353);const diff=(e,t)=>{const n=i(e,null,true);const o=i(t,null,true);const d=n.compare(o);if(d===0){return null}const p=d>0;const f=p?n:o;const y=p?o:n;const v=!!f.prerelease.length;const D=!!y.prerelease.length;if(D&&!v){if(!y.patch&&!y.minor){return"major"}if(y.compareMain(f)===0){if(y.minor&&!y.patch){return"minor"}return"patch"}}const M=v?"pre":"";if(n.major!==o.major){return M+"major"}if(n.minor!==o.minor){return M+"minor"}if(n.patch!==o.patch){return M+"patch"}return"prerelease"};e.exports=diff},55082:(e,t,n)=>{"use strict";const i=n(78469);const eq=(e,t,n)=>i(e,t,n)===0;e.exports=eq},16599:(e,t,n)=>{"use strict";const i=n(78469);const gt=(e,t,n)=>i(e,t,n)>0;e.exports=gt},41236:(e,t,n)=>{"use strict";const i=n(78469);const gte=(e,t,n)=>i(e,t,n)>=0;e.exports=gte},62338:(e,t,n)=>{"use strict";const i=n(7163);const inc=(e,t,n,o,d)=>{if(typeof n==="string"){d=o;o=n;n=undefined}try{return new i(e instanceof i?e.version:e,n).inc(t,o,d).version}catch(e){return null}};e.exports=inc},3872:(e,t,n)=>{"use strict";const i=n(78469);const lt=(e,t,n)=>i(e,t,n)<0;e.exports=lt},56717:(e,t,n)=>{"use strict";const i=n(78469);const lte=(e,t,n)=>i(e,t,n)<=0;e.exports=lte},68511:(e,t,n)=>{"use strict";const i=n(7163);const major=(e,t)=>new i(e,t).major;e.exports=major},32603:(e,t,n)=>{"use strict";const i=n(7163);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},4974:(e,t,n)=>{"use strict";const i=n(78469);const neq=(e,t,n)=>i(e,t,n)!==0;e.exports=neq},16353:(e,t,n)=>{"use strict";const i=n(7163);const parse=(e,t,n=false)=>{if(e instanceof i){return e}try{return new i(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},48756:(e,t,n)=>{"use strict";const i=n(7163);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},15714:(e,t,n)=>{"use strict";const i=n(16353);const prerelease=(e,t)=>{const n=i(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},32173:(e,t,n)=>{"use strict";const i=n(78469);const rcompare=(e,t,n)=>i(t,e,n);e.exports=rcompare},87192:(e,t,n)=>{"use strict";const i=n(37648);const rsort=(e,t)=>e.sort(((e,n)=>i(n,e,t)));e.exports=rsort},68011:(e,t,n)=>{"use strict";const i=n(96782);const satisfies=(e,t,n)=>{try{t=new i(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},29872:(e,t,n)=>{"use strict";const i=n(37648);const sort=(e,t)=>e.sort(((e,n)=>i(e,n,t)));e.exports=sort},58780:(e,t,n)=>{"use strict";const i=n(16353);const valid=(e,t)=>{const n=i(e,t);return n?n.version:null};e.exports=valid},62088:(e,t,n)=>{"use strict";const i=n(95471);const o=n(45101);const d=n(7163);const p=n(73348);const f=n(16353);const y=n(58780);const v=n(1799);const D=n(62338);const M=n(70711);const U=n(68511);const V=n(32603);const j=n(48756);const K=n(15714);const ee=n(78469);const te=n(32173);const re=n(56874);const ne=n(37648);const ie=n(29872);const oe=n(87192);const se=n(16599);const ae=n(3872);const Ae=n(55082);const ce=n(4974);const le=n(41236);const ue=n(56717);const de=n(28646);const pe=n(35385);const ge=n(89379);const me=n(96782);const he=n(68011);const fe=n(54750);const Ee=n(73193);const ye=n(68595);const Ce=n(51866);const Ie=n(64737);const Be=n(10280);const be=n(12276);const Qe=n(15213);const Se=n(23465);const Ne=n(82028);const Re=n(61489);e.exports={parse:f,valid:y,clean:v,inc:D,diff:M,major:U,minor:V,patch:j,prerelease:K,compare:ee,rcompare:te,compareLoose:re,compareBuild:ne,sort:ie,rsort:oe,gt:se,lt:ae,eq:Ae,neq:ce,gte:le,lte:ue,cmp:de,coerce:pe,Comparator:ge,Range:me,satisfies:he,toComparators:fe,maxSatisfying:Ee,minSatisfying:ye,minVersion:Ce,validRange:Ie,outside:Be,gtr:be,ltr:Qe,intersects:Se,simplifyRange:Ne,subset:Re,SemVer:d,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:p.compareIdentifiers,rcompareIdentifiers:p.rcompareIdentifiers}},45101:e=>{"use strict";const t="2.0.0";const n=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const o=16;const d=n-6;const p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:i,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{"use strict";const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},73348:e=>{"use strict";const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{const i=t.test(e);const o=t.test(n);if(i&&o){e=+e;n=+n}return e===n?0:i&&!o?-1:o&&!i?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},61383:e=>{"use strict";class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},70356:e=>{"use strict";const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},95471:(e,t,n)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:d}=n(45101);const p=n(1159);t=e.exports={};const f=t.re=[];const y=t.safeRe=[];const v=t.src=[];const D=t.safeSrc=[];const M=t.t={};let U=0;const V="[a-zA-Z0-9-]";const j=[["\\s",1],["\\d",d],[V,o]];const makeSafeRegex=e=>{for(const[t,n]of j){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const i=makeSafeRegex(t);const o=U++;p(e,o,t);M[e]=o;v[o]=t;D[o]=i;f[o]=new RegExp(t,n?"g":undefined);y[o]=new RegExp(i,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${V}*`);createToken("MAINVERSION",`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})\\.`+`(${v[M.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})\\.`+`(${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${v[M.NONNUMERICIDENTIFIER]}|${v[M.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${v[M.PRERELEASEIDENTIFIER]}(?:\\.${v[M.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${v[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[M.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${V}+`);createToken("BUILD",`(?:\\+(${v[M.BUILDIDENTIFIER]}(?:\\.${v[M.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${v[M.MAINVERSION]}${v[M.PRERELEASE]}?${v[M.BUILD]}?`);createToken("FULL",`^${v[M.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${v[M.MAINVERSIONLOOSE]}${v[M.PRERELEASELOOSE]}?${v[M.BUILD]}?`);createToken("LOOSE",`^${v[M.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${v[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${v[M.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:\\.(${v[M.XRANGEIDENTIFIER]})`+`(?:${v[M.PRERELEASE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${v[M.XRANGEIDENTIFIERLOOSE]})`+`(?:${v[M.PRERELEASELOOSE]})?${v[M.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${v[M.GTLT]}\\s*${v[M.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`);createToken("COERCE",`${v[M.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",v[M.COERCEPLAIN]+`(?:${v[M.PRERELEASE]})?`+`(?:${v[M.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",v[M.COERCE],true);createToken("COERCERTLFULL",v[M.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${v[M.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${v[M.LONETILDE]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${v[M.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${v[M.LONECARET]}${v[M.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${v[M.LONECARET]}${v[M.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${v[M.GTLT]}\\s*(${v[M.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${v[M.GTLT]}\\s*(${v[M.LOOSEPLAIN]}|${v[M.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${v[M.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${v[M.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${v[M.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},12276:(e,t,n)=>{"use strict";const i=n(10280);const gtr=(e,t,n)=>i(e,t,">",n);e.exports=gtr},23465:(e,t,n)=>{"use strict";const i=n(96782);const intersects=(e,t,n)=>{e=new i(e,n);t=new i(t,n);return e.intersects(t,n)};e.exports=intersects},15213:(e,t,n)=>{"use strict";const i=n(10280);const ltr=(e,t,n)=>i(e,t,"<",n);e.exports=ltr},73193:(e,t,n)=>{"use strict";const i=n(7163);const o=n(96782);const maxSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new o(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===-1){d=e;p=new i(d,n)}}}));return d};e.exports=maxSatisfying},68595:(e,t,n)=>{"use strict";const i=n(7163);const o=n(96782);const minSatisfying=(e,t,n)=>{let d=null;let p=null;let f=null;try{f=new o(t,n)}catch(e){return null}e.forEach((e=>{if(f.test(e)){if(!d||p.compare(e)===1){d=e;p=new i(d,n)}}}));return d};e.exports=minSatisfying},51866:(e,t,n)=>{"use strict";const i=n(7163);const o=n(96782);const d=n(16599);const minVersion=(e,t)=>{e=new o(e,t);let n=new i("0.0.0");if(e.test(n)){return n}n=new i("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t{const t=new i(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!p||d(t,p)){p=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(p&&(!n||d(n,p))){n=p}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},10280:(e,t,n)=>{"use strict";const i=n(7163);const o=n(89379);const{ANY:d}=o;const p=n(96782);const f=n(68011);const y=n(16599);const v=n(3872);const D=n(56717);const M=n(41236);const outside=(e,t,n,U)=>{e=new i(e,U);t=new p(t,U);let V,j,K,ee,te;switch(n){case">":V=y;j=D;K=v;ee=">";te=">=";break;case"<":V=v;j=M;K=y;ee="<";te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(e,t,U)){return false}for(let n=0;n{if(e.semver===d){e=new o(">=0.0.0")}p=p||e;f=f||e;if(V(e.semver,p.semver,U)){p=e}else if(K(e.semver,f.semver,U)){f=e}}));if(p.operator===ee||p.operator===te){return false}if((!f.operator||f.operator===ee)&&j(e,f.semver)){return false}else if(f.operator===te&&K(e,f.semver)){return false}}return true};e.exports=outside},82028:(e,t,n)=>{"use strict";const i=n(68011);const o=n(78469);e.exports=(e,t,n)=>{const d=[];let p=null;let f=null;const y=e.sort(((e,t)=>o(e,t,n)));for(const e of y){const o=i(e,t,n);if(o){f=e;if(!p){p=e}}else{if(f){d.push([p,f])}f=null;p=null}}if(p){d.push([p,null])}const v=[];for(const[e,t]of d){if(e===t){v.push(e)}else if(!t&&e===y[0]){v.push("*")}else if(!t){v.push(`>=${e}`)}else if(e===y[0]){v.push(`<=${t}`)}else{v.push(`${e} - ${t}`)}}const D=v.join(" || ");const M=typeof t.raw==="string"?t.raw:String(t);return D.length{"use strict";const i=n(96782);const o=n(89379);const{ANY:d}=o;const p=n(68011);const f=n(78469);const subset=(e,t,n={})=>{if(e===t){return true}e=new i(e,n);t=new i(t,n);let o=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,n);o=o||t!==null;if(t){continue e}}if(o){return false}}return true};const y=[new o(">=0.0.0-0")];const v=[new o(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===d){if(t.length===1&&t[0].semver===d){return true}else if(n.includePrerelease){e=y}else{e=v}}if(t.length===1&&t[0].semver===d){if(n.includePrerelease){return true}else{t=v}}const i=new Set;let o,D;for(const t of e){if(t.operator===">"||t.operator===">="){o=higherGT(o,t,n)}else if(t.operator==="<"||t.operator==="<="){D=lowerLT(D,t,n)}else{i.add(t.semver)}}if(i.size>1){return null}let M;if(o&&D){M=f(o.semver,D.semver,n);if(M>0){return null}else if(M===0&&(o.operator!==">="||D.operator!=="<=")){return null}}for(const e of i){if(o&&!p(e,String(o),n)){return null}if(D&&!p(e,String(D),n)){return null}for(const i of t){if(!p(e,String(i),n)){return false}}return true}let U,V;let j,K;let ee=D&&!n.includePrerelease&&D.semver.prerelease.length?D.semver:false;let te=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:false;if(ee&&ee.prerelease.length===1&&D.operator==="<"&&ee.prerelease[0]===0){ee=false}for(const e of t){K=K||e.operator===">"||e.operator===">=";j=j||e.operator==="<"||e.operator==="<=";if(o){if(te){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===te.major&&e.semver.minor===te.minor&&e.semver.patch===te.patch){te=false}}if(e.operator===">"||e.operator===">="){U=higherGT(o,e,n);if(U===e&&U!==o){return false}}else if(o.operator===">="&&!p(o.semver,String(e),n)){return false}}if(D){if(ee){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch){ee=false}}if(e.operator==="<"||e.operator==="<="){V=lowerLT(D,e,n);if(V===e&&V!==D){return false}}else if(D.operator==="<="&&!p(D.semver,String(e),n)){return false}}if(!e.operator&&(D||o)&&M!==0){return false}}if(o&&j&&!D&&M!==0){return false}if(D&&K&&!o&&M!==0){return false}if(te||ee){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const i=f(e.semver,t.semver,n);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const i=f(e.semver,t.semver,n);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},54750:(e,t,n)=>{"use strict";const i=n(96782);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},64737:(e,t,n)=>{"use strict";const i=n(96782);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange},21450:(e,t,n)=>{"use strict";const i=n(70857);const o=n(52018);const d=n(83813);const{env:p}=process;let f;if(d("no-color")||d("no-colors")||d("color=false")||d("color=never")){f=0}else if(d("color")||d("colors")||d("color=true")||d("color=always")){f=1}if("FORCE_COLOR"in p){if(p.FORCE_COLOR==="true"){f=1}else if(p.FORCE_COLOR==="false"){f=0}else{f=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(f===0){return 0}if(d("color=16m")||d("color=full")||d("color=truecolor")){return 3}if(d("color=256")){return 2}if(e&&!t&&f===undefined){return 0}const n=f||0;if(p.TERM==="dumb"){return n}if(process.platform==="win32"){const e=i.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in p){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in p))||p.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in p){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0}if(p.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in p){const e=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(p.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)){return 1}if("COLORTERM"in p){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},61860:e=>{var t;var n;var i;var o;var d;var p;var f;var y;var v;var D;var M;var U;var V;var j;var K;var ee;var te;var re;var ne;var ie;var oe;var se;var ae;var Ae;var ce;var le;var ue;var de;var pe;var ge;var me;var he;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,i){return e[n]=t?t(n,i):i}}})((function(e){var fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fe(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;f--)if(p=e[f])d=(o<3?p(d):o>3?p(t,n,d):p(t,n))||d;return o>3&&d&&Object.defineProperty(t,n,d),d};d=function(e,t){return function(n,i){t(n,i,e)}};p=function(e,t,n,i,o,d){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var p=i.kind,f=p==="getter"?"get":p==="setter"?"set":"value";var y=!t&&e?i["static"]?e:e.prototype:null;var v=t||(y?Object.getOwnPropertyDescriptor(y,i.name):{});var D,M=false;for(var U=n.length-1;U>=0;U--){var V={};for(var j in i)V[j]=j==="access"?{}:i[j];for(var j in i.access)V.access[j]=i.access[j];V.addInitializer=function(e){if(M)throw new TypeError("Cannot add initializers after decoration has completed");d.push(accept(e||null))};var K=(0,n[U])(p==="accessor"?{get:v.get,set:v.set}:v[f],V);if(p==="accessor"){if(K===void 0)continue;if(K===null||typeof K!=="object")throw new TypeError("Object expected");if(D=accept(K.get))v.get=D;if(D=accept(K.set))v.set=D;if(D=accept(K.init))o.unshift(D)}else if(D=accept(K)){if(p==="field")o.unshift(D);else v[f]=D}}if(y)Object.defineProperty(y,i.name,v);M=true};f=function(e,t,n){var i=arguments.length>2;for(var o=0;o0&&d[d.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!d||f[1]>d[0]&&f[1]=e.length)e=void 0;return{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};K=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,d=[],p;try{while((t===void 0||t-- >0)&&!(o=i.next()).done)d.push(o.value)}catch(e){p={error:e}}finally{try{if(o&&!o.done&&(n=i["return"]))n.call(i)}finally{if(p)throw p.error}}return d};ee=function(){for(var e=[],t=0;t1||resume(e,t)}))};if(t)o[e]=t(o[e])}}function resume(e,t){try{step(i[e](t))}catch(e){settle(d[0][3],e)}}function step(e){e.value instanceof ne?Promise.resolve(e.value.v).then(fulfill,reject):settle(d[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),d.shift(),d.length)resume(d[0][0],d[0][1])}};oe=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:ne(e[i](t)),done:false}:o?o(t):t}:o}};se=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof j==="function"?j(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(i,o){n=e[t](n),settle(i,o,n.done,n.value)}))}}function settle(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}};ae=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var Ee=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};Ae=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),i=0;i{e.exports=n(20218)},20218:(e,t,n)=>{"use strict";var i=n(69278);var o=n(64756);var d=n(58611);var p=n(65692);var f=n(24434);var y=n(42613);var v=n(39023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||d.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,i,o){var d=toOptions(n,i,o);for(var p=0,f=t.requests.length;p=this.maxSockets){o.requests.push(d);return}o.createSocket(d,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){o.emit("free",t,d)}function onCloseOrRemove(e){o.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var i={};n.sockets.push(i);var o=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){o.localAddress=e.localAddress}if(o.proxyAuth){o.headers=o.headers||{};o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")}D("making CONNECT request");var d=n.request(o);d.useChunkedEncodingByDefault=false;d.once("response",onResponse);d.once("upgrade",onUpgrade);d.once("connect",onConnect);d.once("error",onError);d.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(o,p,f){d.removeAllListeners();p.removeAllListeners();if(o.statusCode!==200){D("tunneling socket could not be established, statusCode=%d",o.statusCode);p.destroy();var y=new Error("tunneling socket could not be established, "+"statusCode="+o.statusCode);y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(i);return}if(f.length>0){D("got illegal response body from proxy");p.destroy();var y=new Error("got illegal response body from proxy");y.code="ECONNRESET";e.request.emit("error",y);n.removeSocket(i);return}D("tunneling connection has established");n.sockets[n.sockets.indexOf(i)]=p;return t(p)}function onError(t){d.removeAllListeners();D("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, "+"cause="+t.message);o.code="ECONNRESET";e.request.emit("error",o);n.removeSocket(i)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(i){var d=e.request.getHeader("host");var p=mergeOptions({},n.options,{socket:i,servername:d?d.replace(/:.*$/,""):e.host});var f=o.connect(0,p);n.sockets[n.sockets.indexOf(i)]=f;t(f)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t{"use strict";const i=n(86197);const o=n(28611);const d=n(68707);const p=n(35076);const f=n(81093);const y=n(59965);const v=n(3440);const{InvalidArgumentError:D}=d;const M=n(56615);const U=n(59136);const V=n(47365);const j=n(47501);const K=n(94004);const ee=n(52429);const te=n(22720);const re=n(53573);const{getGlobalDispatcher:ne,setGlobalDispatcher:ie}=n(32581);const oe=n(78840);const se=n(48299);const ae=n(64415);let Ae;try{n(76982);Ae=true}catch{Ae=false}Object.assign(o.prototype,M);e.exports.Dispatcher=o;e.exports.Client=i;e.exports.Pool=p;e.exports.BalancedPool=f;e.exports.Agent=y;e.exports.ProxyAgent=te;e.exports.RetryHandler=re;e.exports.DecoratorHandler=oe;e.exports.RedirectHandler=se;e.exports.createRedirectInterceptor=ae;e.exports.buildConnector=U;e.exports.errors=d;function makeDispatcher(e){return(t,n,i)=>{if(typeof n==="function"){i=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new D("invalid url")}if(n!=null&&typeof n!=="object"){throw new D("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new D("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(v.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=v.parseURL(t)}const{agent:o,dispatcher:d=ne()}=n;if(o){throw new D("unsupported opts.agent. Did you mean opts.client?")}return e.call(d,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},i)}}e.exports.setGlobalDispatcher=ie;e.exports.getGlobalDispatcher=ne;if(v.nodeMajor>16||v.nodeMajor===16&&v.nodeMinor>=8){let t=null;e.exports.fetch=async function fetch(e){if(!t){t=n(12315).fetch}try{return await t(...arguments)}catch(e){if(typeof e==="object"){Error.captureStackTrace(e,this)}throw e}};e.exports.Headers=n(26349).Headers;e.exports.Response=n(48676).Response;e.exports.Request=n(25194).Request;e.exports.FormData=n(43073).FormData;e.exports.File=n(63041).File;e.exports.FileReader=n(82160).FileReader;const{setGlobalOrigin:i,getGlobalOrigin:o}=n(75628);e.exports.setGlobalOrigin=i;e.exports.getGlobalOrigin=o;const{CacheStorage:d}=n(44738);const{kConstruct:p}=n(80296);e.exports.caches=new d(p)}if(v.nodeMajor>=16){const{deleteCookie:t,getCookies:i,getSetCookies:o,setCookie:d}=n(53168);e.exports.deleteCookie=t;e.exports.getCookies=i;e.exports.getSetCookies=o;e.exports.setCookie=d;const{parseMIMEType:p,serializeAMimeType:f}=n(94322);e.exports.parseMIMEType=p;e.exports.serializeAMimeType=f}if(v.nodeMajor>=18&&Ae){const{WebSocket:t}=n(55171);e.exports.WebSocket=t}e.exports.request=makeDispatcher(M.request);e.exports.stream=makeDispatcher(M.stream);e.exports.pipeline=makeDispatcher(M.pipeline);e.exports.connect=makeDispatcher(M.connect);e.exports.upgrade=makeDispatcher(M.upgrade);e.exports.MockClient=V;e.exports.MockPool=K;e.exports.MockAgent=j;e.exports.mockErrors=ee},59965:(e,t,n)=>{"use strict";const{InvalidArgumentError:i}=n(68707);const{kClients:o,kRunning:d,kClose:p,kDestroy:f,kDispatch:y,kInterceptors:v}=n(36443);const D=n(50001);const M=n(35076);const U=n(86197);const V=n(3440);const j=n(64415);const{WeakRef:K,FinalizationRegistry:ee}=n(13194)();const te=Symbol("onConnect");const re=Symbol("onDisconnect");const ne=Symbol("onConnectionError");const ie=Symbol("maxRedirections");const oe=Symbol("onDrain");const se=Symbol("factory");const ae=Symbol("finalizer");const Ae=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new U(e,t):new M(e,t)}class Agent extends D{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...d}={}){super();if(typeof e!=="function"){throw new i("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new i("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new i("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[v]=d.interceptors&&d.interceptors.Agent&&Array.isArray(d.interceptors.Agent)?d.interceptors.Agent:[j({maxRedirections:t})];this[Ae]={...V.deepClone(d),connect:n};this[Ae].interceptors=d.interceptors?{...d.interceptors}:undefined;this[ie]=t;this[se]=e;this[o]=new Map;this[ae]=new ee((e=>{const t=this[o].get(e);if(t!==undefined&&t.deref()===undefined){this[o].delete(e)}}));const p=this;this[oe]=(e,t)=>{p.emit("drain",e,[p,...t])};this[te]=(e,t)=>{p.emit("connect",e,[p,...t])};this[re]=(e,t,n)=>{p.emit("disconnect",e,[p,...t],n)};this[ne]=(e,t,n)=>{p.emit("connectionError",e,[p,...t],n)}}get[d](){let e=0;for(const t of this[o].values()){const n=t.deref();if(n){e+=n[d]}}return e}[y](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new i("opts.origin must be a non-empty string or URL.")}const d=this[o].get(n);let p=d?d.deref():null;if(!p){p=this[se](e.origin,this[Ae]).on("drain",this[oe]).on("connect",this[te]).on("disconnect",this[re]).on("connectionError",this[ne]);this[o].set(n,new K(p));this[ae].register(p,n)}return p.dispatch(e,t)}async[p](){const e=[];for(const t of this[o].values()){const n=t.deref();if(n){e.push(n.close())}}await Promise.all(e)}async[f](e){const t=[];for(const n of this[o].values()){const i=n.deref();if(i){t.push(i.destroy(e))}}await Promise.all(t)}}e.exports=Agent},80158:(e,t,n)=>{const{addAbortListener:i}=n(3440);const{RequestAbortedError:o}=n(68707);const d=Symbol("kListener");const p=Symbol("kSignal");function abort(e){if(e.abort){e.abort()}else{e.onError(new o)}}function addSignal(e,t){e[p]=null;e[d]=null;if(!t){return}if(t.aborted){abort(e);return}e[p]=t;e[d]=()=>{abort(e)};i(e[p],e[d])}function removeSignal(e){if(!e[p]){return}if("removeEventListener"in e[p]){e[p].removeEventListener("abort",e[d])}else{e[p].removeListener("abort",e[d])}e[p]=null;e[d]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(e,t,n)=>{"use strict";const{AsyncResource:i}=n(90290);const{InvalidArgumentError:o,RequestAbortedError:d,SocketError:p}=n(68707);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);class ConnectHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=i||null;this.responseHeaders=d||null;this.callback=t;this.abort=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(){throw new p("bad connect",null)}onUpgrade(e,t,n){const{callback:i,opaque:o,context:d}=this;v(this);this.callback=null;let p=t;if(p!=null){p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t)}this.runInAsyncScope(i,null,null,{statusCode:e,headers:p,socket:n,opaque:o,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,i)=>e?n(e):t(i)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const i=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:i})))}}e.exports=connect},76862:(e,t,n)=>{"use strict";const{Readable:i,Duplex:o,PassThrough:d}=n(2203);const{InvalidArgumentError:p,InvalidReturnValueError:f,RequestAbortedError:y}=n(68707);const v=n(3440);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);const V=n(42613);const j=Symbol("resume");class PipelineRequest extends i{constructor(){super({autoDestroy:true});this[j]=null}_read(){const{[j]:e}=this;if(e){this[j]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends i{constructor(e){super({autoDestroy:true});this[j]=e}_read(){this[j]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new y}t(e)}}class PipelineHandler extends D{constructor(e,t){if(!e||typeof e!=="object"){throw new p("invalid opts")}if(typeof t!=="function"){throw new p("invalid handler")}const{signal:n,method:i,opaque:d,onInfo:f,responseHeaders:D}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new p("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new p("invalid method")}if(f&&typeof f!=="function"){throw new p("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=d||null;this.responseHeaders=D||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=f||null;this.req=(new PipelineRequest).on("error",v.nop);this.ret=new o({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e&&e.resume){e.resume()}},write:(e,t,n)=>{const{req:i}=this;if(i.push(e,t)||i._readableState.destroyed){n()}else{i[j]=n}},destroy:(e,t)=>{const{body:n,req:i,res:o,ret:d,abort:p}=this;if(!e&&!d._readableState.endEmitted){e=new y}if(p&&e){p()}v.destroy(n,e);v.destroy(i,e);v.destroy(o,e);U(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;M(this,n)}onConnect(e,t){const{ret:n,res:i}=this;V(!i,"pipeline cannot be retried");if(n.destroyed){throw new y}this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:i,handler:o,context:d}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let p;try{this.handler=null;const n=this.responseHeaders==="raw"?v.parseRawHeaders(t):v.parseHeaders(t);p=this.runInAsyncScope(o,null,{statusCode:e,headers:n,opaque:i,body:this.res,context:d})}catch(e){this.res.on("error",v.nop);throw e}if(!p||typeof p.on!=="function"){throw new f("expected Readable")}p.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;v.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){v.destroy(e,new y)}}));this.body=p}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;v.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new d).destroy(e)}}e.exports=pipeline},14043:(e,t,n)=>{"use strict";const i=n(49927);const{InvalidArgumentError:o,RequestAbortedError:d}=n(68707);const p=n(3440);const{getResolveErrorBodyCallback:f}=n(87655);const{AsyncResource:y}=n(90290);const{addSignal:v,removeSignal:D}=n(80158);class RequestHandler extends y{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}const{signal:n,method:i,opaque:d,body:f,onInfo:y,responseHeaders:D,throwOnError:M,highWaterMark:U}=e;try{if(typeof t!=="function"){throw new o("invalid callback")}if(U&&(typeof U!=="number"||U<0)){throw new o("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new o("invalid method")}if(y&&typeof y!=="function"){throw new o("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(p.isStream(f)){p.destroy(f.on("error",p.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=d||null;this.callback=t;this.res=null;this.abort=null;this.body=f;this.trailers={};this.context=null;this.onInfo=y||null;this.throwOnError=M;this.highWaterMark=U;if(p.isStream(f)){f.on("error",(e=>{this.onError(e)}))}v(this,n)}onConnect(e,t){if(!this.callback){throw new d}this.abort=e;this.context=t}onHeaders(e,t,n,o){const{callback:d,opaque:y,abort:v,context:D,responseHeaders:M,highWaterMark:U}=this;const V=M==="raw"?p.parseRawHeaders(t):p.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:V})}return}const j=M==="raw"?p.parseHeaders(t):V;const K=j["content-type"];const ee=new i({resume:n,abort:v,contentType:K,highWaterMark:U});this.callback=null;this.res=ee;if(d!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(f,null,{callback:d,body:ee,contentType:K,statusCode:e,statusMessage:o,headers:V})}else{this.runInAsyncScope(d,null,null,{statusCode:e,headers:V,trailers:this.trailers,opaque:y,body:ee,context:D})}}}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;D(this);p.parseHeaders(e,this.trailers);t.push(null)}onError(e){const{res:t,callback:n,body:i,opaque:o}=this;D(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(t){this.res=null;queueMicrotask((()=>{p.destroy(t,e)}))}if(i){this.body=null;p.destroy(i,e)}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,i)=>e?n(e):t(i)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const i=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:i})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{"use strict";const{finished:i,PassThrough:o}=n(2203);const{InvalidArgumentError:d,InvalidReturnValueError:p,RequestAbortedError:f}=n(68707);const y=n(3440);const{getResolveErrorBodyCallback:v}=n(87655);const{AsyncResource:D}=n(90290);const{addSignal:M,removeSignal:U}=n(80158);class StreamHandler extends D{constructor(e,t,n){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:i,method:o,opaque:p,body:f,onInfo:v,responseHeaders:D,throwOnError:U}=e;try{if(typeof n!=="function"){throw new d("invalid callback")}if(typeof t!=="function"){throw new d("invalid factory")}if(i&&typeof i.on!=="function"&&typeof i.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new d("invalid method")}if(v&&typeof v!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(y.isStream(f)){y.destroy(f.on("error",y.nop),e)}throw e}this.responseHeaders=D||null;this.opaque=p||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=f;this.onInfo=v||null;this.throwOnError=U||false;if(y.isStream(f)){f.on("error",(e=>{this.onError(e)}))}M(this,i)}onConnect(e,t){if(!this.callback){throw new f}this.abort=e;this.context=t}onHeaders(e,t,n,d){const{factory:f,opaque:D,context:M,callback:U,responseHeaders:V}=this;const j=V==="raw"?y.parseRawHeaders(t):y.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:j})}return}this.factory=null;let K;if(this.throwOnError&&e>=400){const n=V==="raw"?y.parseHeaders(t):j;const i=n["content-type"];K=new o;this.callback=null;this.runInAsyncScope(v,null,{callback:U,body:K,contentType:i,statusCode:e,statusMessage:d,headers:j})}else{if(f===null){return}K=this.runInAsyncScope(f,null,{statusCode:e,headers:j,opaque:D,context:M});if(!K||typeof K.write!=="function"||typeof K.end!=="function"||typeof K.on!=="function"){throw new p("expected Writable")}i(K,{readable:false},(e=>{const{callback:t,res:n,opaque:i,trailers:o,abort:d}=this;this.res=null;if(e||!n.readable){y.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:i,trailers:o});if(e){d()}}))}K.on("drain",n);this.res=K;const ee=K.writableNeedDrain!==undefined?K.writableNeedDrain:K._writableState&&K._writableState.needDrain;return ee!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;U(this);if(!t){return}this.trailers=y.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:i,body:o}=this;U(this);this.factory=null;if(t){this.res=null;y.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(o){this.body=null;y.destroy(o,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,i)=>{stream.call(this,e,t,((e,t)=>e?i(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const i=e&&e.opaque;queueMicrotask((()=>n(t,{opaque:i})))}}e.exports=stream},61882:(e,t,n)=>{"use strict";const{InvalidArgumentError:i,RequestAbortedError:o,SocketError:d}=n(68707);const{AsyncResource:p}=n(90290);const f=n(3440);const{addSignal:y,removeSignal:v}=n(80158);const D=n(42613);class UpgradeHandler extends p{constructor(e,t){if(!e||typeof e!=="object"){throw new i("invalid opts")}if(typeof t!=="function"){throw new i("invalid callback")}const{signal:n,opaque:o,responseHeaders:d}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new i("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=d||null;this.opaque=o||null;this.callback=t;this.abort=null;this.context=null;y(this,n)}onConnect(e,t){if(!this.callback){throw new o}this.abort=e;this.context=null}onHeaders(){throw new d("bad upgrade",null)}onUpgrade(e,t,n){const{callback:i,opaque:o,context:d}=this;D.strictEqual(e,101);v(this);this.callback=null;const p=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);this.runInAsyncScope(i,null,null,{headers:p,socket:n,opaque:o,context:d})}onError(e){const{callback:t,opaque:n}=this;v(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,i)=>e?n(e):t(i)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const i=e&&e.opaque;queueMicrotask((()=>t(n,{opaque:i})))}}e.exports=upgrade},56615:(e,t,n)=>{"use strict";e.exports.request=n(14043);e.exports.stream=n(3560);e.exports.pipeline=n(76862);e.exports.upgrade=n(61882);e.exports.connect=n(34660)},49927:(e,t,n)=>{"use strict";const i=n(42613);const{Readable:o}=n(2203);const{RequestAbortedError:d,NotSupportedError:p,InvalidArgumentError:f}=n(68707);const y=n(3440);const{ReadableStreamFrom:v,toUSVString:D}=n(3440);let M;const U=Symbol("kConsume");const V=Symbol("kReading");const j=Symbol("kBody");const K=Symbol("abort");const ee=Symbol("kContentType");const noop=()=>{};e.exports=class BodyReadable extends o{constructor({resume:e,abort:t,contentType:n="",highWaterMark:i=64*1024}){super({autoDestroy:true,read:e,highWaterMark:i});this._readableState.dataEmitted=false;this[K]=t;this[U]=null;this[j]=null;this[ee]=n;this[V]=false}destroy(e){if(this.destroyed){return this}if(!e&&!this._readableState.endEmitted){e=new d}if(e){this[K]()}return super.destroy(e)}emit(e,...t){if(e==="data"){this._readableState.dataEmitted=true}else if(e==="error"){this._readableState.errorEmitted=true}return super.emit(e,...t)}on(e,...t){if(e==="data"||e==="readable"){this[V]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[V]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[U]&&e!==null&&this.readableLength===0){consumePush(this[U],e);return this[V]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new p}get bodyUsed(){return y.isDisturbed(this)}get body(){if(!this[j]){this[j]=v(this);if(this[U]){this[j].getReader();i(this[j].locked)}}return this[j]}dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const n=e&&e.signal;if(n){try{if(typeof n!=="object"||!("aborted"in n)){throw new f("signal must be an AbortSignal")}y.throwIfAborted(n)}catch(e){return Promise.reject(e)}}if(this.closed){return Promise.resolve(null)}return new Promise(((e,i)=>{const o=n?y.addAbortListener(n,(()=>{this.destroy()})):noop;this.on("close",(function(){o();if(n&&n.aborted){i(n.reason||Object.assign(new Error("The operation was aborted"),{name:"AbortError"}))}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}};function isLocked(e){return e[j]&&e[j].locked===true||e[U]}function isUnusable(e){return y.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e)){throw new TypeError("unusable")}i(!e[U]);return new Promise(((n,i)=>{e[U]={type:t,stream:e,resolve:n,reject:i,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[U],e)})).on("close",(function(){if(this[U].body!==null){consumeFinish(this[U],new d)}}));process.nextTick(consumeStart,e[U])}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;for(const n of t.buffer){consumePush(e,n)}if(t.endEmitted){consumeEnd(this[U])}else{e.stream.on("end",(function(){consumeEnd(this[U])}))}e.stream.resume();while(e.stream.read()!=null){}}function consumeEnd(e){const{type:t,body:i,resolve:o,stream:d,length:p}=e;try{if(t==="text"){o(D(Buffer.concat(i)))}else if(t==="json"){o(JSON.parse(Buffer.concat(i)))}else if(t==="arrayBuffer"){const e=new Uint8Array(p);let t=0;for(const n of i){e.set(n,t);t+=n.byteLength}o(e.buffer)}else if(t==="blob"){if(!M){M=n(20181).Blob}o(new M(i,{type:d[ee]}))}consumeFinish(e)}catch(e){d.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}},87655:(e,t,n)=>{const i=n(42613);const{ResponseStatusCodeError:o}=n(68707);const{toUSVString:d}=n(3440);async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:p,statusMessage:f,headers:y}){i(t);let v=[];let D=0;for await(const e of t){v.push(e);D+=e.length;if(D>128*1024){v=null;break}}if(p===204||!n||!v){process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y));return}try{if(n.startsWith("application/json")){const t=JSON.parse(d(Buffer.concat(v)));process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}if(n.startsWith("text/")){const t=d(Buffer.concat(v));process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y,t));return}}catch(e){}process.nextTick(e,new o(`Response status code ${p}${f?`: ${f}`:""}`,p,y))}e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback}},81093:(e,t,n)=>{"use strict";const{BalancedPoolMissingUpstreamError:i,InvalidArgumentError:o}=n(68707);const{PoolBase:d,kClients:p,kNeedDrain:f,kAddClient:y,kRemoveClient:v,kGetDispatcher:D}=n(58640);const M=n(35076);const{kUrl:U,kInterceptors:V}=n(36443);const{parseOrigin:j}=n(3440);const K=Symbol("factory");const ee=Symbol("options");const te=Symbol("kGreatestCommonDivisor");const re=Symbol("kCurrentWeight");const ne=Symbol("kIndex");const ie=Symbol("kWeight");const oe=Symbol("kMaxWeightPerServer");const se=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(t===0)return e;return getGreatestCommonDivisor(t,e%t)}function defaultFactory(e,t){return new M(e,t)}class BalancedPool extends d{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[ee]=n;this[ne]=-1;this[re]=0;this[oe]=this[ee].maxWeightPerServer||100;this[se]=this[ee].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new o("factory must be a function.")}this[V]=n.interceptors&&n.interceptors.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[K]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=j(e).origin;if(this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[K](t,Object.assign({},this[ee]));this[y](n);n.on("connect",(()=>{n[ie]=Math.min(this[oe],n[ie]+this[se])}));n.on("connectionError",(()=>{n[ie]=Math.max(1,n[ie]-this[se]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[ie]=Math.max(1,n[ie]-this[se]);this._updateBalancedPoolStats()}}));for(const e of this[p]){e[ie]=this[oe]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){this[te]=this[p].map((e=>e[ie])).reduce(getGreatestCommonDivisor,0)}removeUpstream(e){const t=j(e).origin;const n=this[p].find((e=>e[U].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[v](n)}return this}get upstreams(){return this[p].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[U].origin))}[D](){if(this[p].length===0){throw new i}const e=this[p].find((e=>!e[f]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[p].map((e=>e[f])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let o=this[p].findIndex((e=>!e[f]));while(n++this[p][o][ie]&&!e[f]){o=this[ne]}if(this[ne]===0){this[re]=this[re]-this[te];if(this[re]<=0){this[re]=this[oe]}}if(e[ie]>=this[re]&&!e[f]){return e}}this[re]=this[p][o][ie];this[ne]=o;return this[p][o]}}e.exports=BalancedPool},50479:(e,t,n)=>{"use strict";const{kConstruct:i}=n(80296);const{urlEquals:o,fieldValues:d}=n(23993);const{kEnumerableProperty:p,isDisturbed:f}=n(3440);const{kHeadersList:y}=n(36443);const{webidl:v}=n(74222);const{Response:D,cloneResponse:M}=n(48676);const{Request:U}=n(25194);const{kState:V,kHeaders:j,kGuard:K,kRealm:ee}=n(89710);const{fetching:te}=n(12315);const{urlIsHttpHttpsScheme:re,createDeferredPromise:ne,readAllBytes:ie}=n(15523);const oe=n(42613);const{getGlobalDispatcher:se}=n(32581);class Cache{#e;constructor(){if(arguments[0]!==i){v.illegalConstructor()}this.#e=arguments[1]}async match(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.match"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);const n=await this.matchAll(e,t);if(n.length===0){return}return n[0]}async matchAll(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const i=[];if(e===undefined){for(const e of this.#e){i.push(e[1])}}else{const e=this.#t(n,t);for(const t of e){i.push(t[1])}}const o=[];for(const e of i){const t=new D(e.body?.source??null);const n=t[V].body;t[V]=e;t[V].body=n;t[j][y]=e.headersList;t[j][K]="immutable";o.push(t)}return Object.freeze(o)}async add(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.add"});e=v.converters.RequestInfo(e);const t=[e];const n=this.addAll(t);return await n}async addAll(e){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});e=v.converters["sequence"](e);const t=[];const n=[];for(const t of e){if(typeof t==="string"){continue}const e=t[V];if(!re(e.url)||e.method!=="GET"){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}}const i=[];for(const o of e){const e=new U(o)[V];if(!re(e.url)){throw v.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";n.push(e);const p=ne();i.push(te({request:e,dispatcher:se(),processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){p.reject(v.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=d(e.headersList.get("vary"));for(const e of t){if(e==="*"){p.reject(v.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of i){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){p.reject(new DOMException("aborted","AbortError"));return}p.resolve(e)}}));t.push(p.promise)}const o=Promise.all(t);const p=await o;const f=[];let y=0;for(const e of p){const t={type:"put",request:n[y],response:e};f.push(t);y++}const D=ne();let M=null;try{this.#r(f)}catch(e){M=e}queueMicrotask((()=>{if(M===null){D.resolve(undefined)}else{D.reject(M)}}));return D.promise}async put(e,t){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,2,{header:"Cache.put"});e=v.converters.RequestInfo(e);t=v.converters.Response(t);let n=null;if(e instanceof U){n=e[V]}else{n=new U(e)[V]}if(!re(n.url)||n.method!=="GET"){throw v.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"})}const i=t[V];if(i.status===206){throw v.errors.exception({header:"Cache.put",message:"Got 206 status"})}if(i.headersList.contains("vary")){const e=d(i.headersList.get("vary"));for(const t of e){if(t==="*"){throw v.errors.exception({header:"Cache.put",message:"Got * vary field value"})}}}if(i.body&&(f(i.body.stream)||i.body.stream.locked)){throw v.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"})}const o=M(i);const p=ne();if(i.body!=null){const e=i.body.stream;const t=e.getReader();ie(t).then(p.resolve,p.reject)}else{p.resolve(undefined)}const y=[];const D={type:"put",request:n,response:o};y.push(D);const j=await p.promise;if(o.body!=null){o.body.source=j}const K=ne();let ee=null;try{this.#r(y)}catch(e){ee=e}queueMicrotask((()=>{if(ee===null){K.resolve()}else{K.reject(ee)}}));return K.promise}async delete(e,t={}){v.brandCheck(this,Cache);v.argumentLengthCheck(arguments,1,{header:"Cache.delete"});e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return false}}else{oe(typeof e==="string");n=new U(e)[V]}const i=[];const o={type:"delete",request:n,options:t};i.push(o);const d=ne();let p=null;let f;try{f=this.#r(i)}catch(e){p=e}queueMicrotask((()=>{if(p===null){d.resolve(!!f?.length)}else{d.reject(p)}}));return d.promise}async keys(e=undefined,t={}){v.brandCheck(this,Cache);if(e!==undefined)e=v.converters.RequestInfo(e);t=v.converters.CacheQueryOptions(t);let n=null;if(e!==undefined){if(e instanceof U){n=e[V];if(n.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){n=new U(e)[V]}}const i=ne();const o=[];if(e===undefined){for(const e of this.#e){o.push(e[0])}}else{const e=this.#t(n,t);for(const t of e){o.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of o){const n=new U("https://a");n[V]=t;n[j][y]=t.headersList;n[j][K]="immutable";n[ee]=t.client;e.push(n)}i.resolve(Object.freeze(e))}));return i.promise}#r(e){const t=this.#e;const n=[...t];const i=[];const o=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#t(n.request,n.options,i).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#t(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);oe(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const o=n.request;if(!re(o.url)){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(o.method!=="GET"){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw v.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#t(n.request);for(const n of e){const e=t.indexOf(n);oe(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);i.push([n.request,n.response])}o.push([n.request,n.response])}return o}catch(e){this.#e.length=0;this.#e=n;throw e}}#t(e,t,n){const i=[];const o=n??this.#e;for(const n of o){const[o,d]=n;if(this.#n(e,o,d,t)){i.push(n)}}return i}#n(e,t,n=null,i){const p=new URL(e.url);const f=new URL(t.url);if(i?.ignoreSearch){f.search="";p.search=""}if(!o(p,f,true)){return false}if(n==null||i?.ignoreVary||!n.headersList.contains("vary")){return true}const y=d(n.headersList.get("vary"));for(const n of y){if(n==="*"){return false}const i=t.headersList.get(n);const o=e.headersList.get(n);if(i!==o){return false}}return true}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:p,matchAll:p,add:p,addAll:p,put:p,delete:p,keys:p});const ae=[{key:"ignoreSearch",converter:v.converters.boolean,defaultValue:false},{key:"ignoreMethod",converter:v.converters.boolean,defaultValue:false},{key:"ignoreVary",converter:v.converters.boolean,defaultValue:false}];v.converters.CacheQueryOptions=v.dictionaryConverter(ae);v.converters.MultiCacheQueryOptions=v.dictionaryConverter([...ae,{key:"cacheName",converter:v.converters.DOMString}]);v.converters.Response=v.interfaceConverter(D);v.converters["sequence"]=v.sequenceConverter(v.converters.RequestInfo);e.exports={Cache:Cache}},44738:(e,t,n)=>{"use strict";const{kConstruct:i}=n(80296);const{Cache:o}=n(50479);const{webidl:d}=n(74222);const{kEnumerableProperty:p}=n(3440);class CacheStorage{#i=new Map;constructor(){if(arguments[0]!==i){d.illegalConstructor()}}async match(e,t={}){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"});e=d.converters.RequestInfo(e);t=d.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#i.has(t.cacheName)){const n=this.#i.get(t.cacheName);const d=new o(i,n);return await d.match(e,t)}}else{for(const n of this.#i.values()){const d=new o(i,n);const p=await d.match(e,t);if(p!==undefined){return p}}}}async has(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"});e=d.converters.DOMString(e);return this.#i.has(e)}async open(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"});e=d.converters.DOMString(e);if(this.#i.has(e)){const t=this.#i.get(e);return new o(i,t)}const t=[];this.#i.set(e,t);return new o(i,t)}async delete(e){d.brandCheck(this,CacheStorage);d.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"});e=d.converters.DOMString(e);return this.#i.delete(e)}async keys(){d.brandCheck(this,CacheStorage);const e=this.#i.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:p,has:p,open:p,delete:p,keys:p});e.exports={CacheStorage:CacheStorage}},80296:(e,t,n)=>{"use strict";e.exports={kConstruct:n(36443).kConstruct}},23993:(e,t,n)=>{"use strict";const i=n(42613);const{URLSerializer:o}=n(94322);const{isValidHeaderName:d}=n(15523);function urlEquals(e,t,n=false){const i=o(e,n);const d=o(t,n);return i===d}function fieldValues(e){i(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(!n.length){continue}else if(!d(n)){continue}t.push(n)}return t}e.exports={urlEquals:urlEquals,fieldValues:fieldValues}},86197:(e,t,n)=>{"use strict";const i=n(42613);const o=n(69278);const d=n(58611);const{pipeline:p}=n(2203);const f=n(3440);const y=n(28804);const v=n(44655);const D=n(50001);const{RequestContentLengthMismatchError:M,ResponseContentLengthMismatchError:U,InvalidArgumentError:V,RequestAbortedError:j,HeadersTimeoutError:K,HeadersOverflowError:ee,SocketError:te,InformationalError:re,BodyTimeoutError:ne,HTTPParserError:ie,ResponseExceededMaxSizeError:oe,ClientDestroyedError:se}=n(68707);const ae=n(59136);const{kUrl:Ae,kReset:ce,kServerName:le,kClient:ue,kBusy:de,kParser:pe,kConnect:ge,kBlocking:me,kResuming:he,kRunning:fe,kPending:Ee,kSize:ye,kWriting:Ce,kQueue:Ie,kConnected:Be,kConnecting:be,kNeedDrain:Qe,kNoRef:Se,kKeepAliveDefaultTimeout:Ne,kHostHeader:Re,kPendingIdx:we,kRunningIdx:ve,kError:Pe,kPipelining:xe,kSocket:De,kKeepAliveTimeoutValue:Te,kMaxHeadersSize:ke,kKeepAliveMaxTimeout:Oe,kKeepAliveTimeoutThreshold:Le,kHeadersTimeout:Me,kBodyTimeout:Fe,kStrictContentLength:Ue,kConnector:He,kMaxRedirections:_e,kMaxRequests:qe,kCounter:ze,kClose:Ve,kDestroy:Ge,kDispatch:je,kInterceptors:Ye,kLocalAddress:Je,kMaxResponseSize:We,kHTTPConnVersion:$e,kHost:Ke,kHTTP2Session:Xe,kHTTP2SessionState:Ze,kHTTP2BuildRequest:At,kHTTP2CopyHeaders:dt,kHTTP1BuildRequest:mt}=n(36443);let Et;try{Et=n(85675)}catch{Et={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:yt,HTTP2_HEADER_METHOD:Ct,HTTP2_HEADER_PATH:It,HTTP2_HEADER_SCHEME:Bt,HTTP2_HEADER_CONTENT_LENGTH:bt,HTTP2_HEADER_EXPECT:Qt,HTTP2_HEADER_STATUS:St}}=Et;let Nt=false;const Rt=Buffer[Symbol.species];const wt=Symbol("kClosedResolve");const vt={};try{const e=n(31637);vt.sendHeaders=e.channel("undici:client:sendHeaders");vt.beforeConnect=e.channel("undici:client:beforeConnect");vt.connectError=e.channel("undici:client:connectError");vt.connected=e.channel("undici:client:connected")}catch{vt.sendHeaders={hasSubscribers:false};vt.beforeConnect={hasSubscribers:false};vt.connectError={hasSubscribers:false};vt.connected={hasSubscribers:false}}class Client extends D{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:i,socketTimeout:p,requestTimeout:y,connectTimeout:v,bodyTimeout:D,idleTimeout:M,keepAlive:U,keepAliveTimeout:j,maxKeepAliveTimeout:K,keepAliveMaxTimeout:ee,keepAliveTimeoutThreshold:te,socketPath:re,pipelining:ne,tls:ie,strictContentLength:oe,maxCachedSessions:se,maxRedirections:ce,connect:ue,maxRequestsPerClient:de,localAddress:pe,maxResponseSize:ge,autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe,allowH2:Ee,maxConcurrentStreams:ye}={}){super();if(U!==undefined){throw new V("unsupported keepAlive, use pipelining=0 instead")}if(p!==undefined){throw new V("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(y!==undefined){throw new V("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(M!==undefined){throw new V("unsupported idleTimeout, use keepAliveTimeout instead")}if(K!==undefined){throw new V("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new V("invalid maxHeaderSize")}if(re!=null&&typeof re!=="string"){throw new V("invalid socketPath")}if(v!=null&&(!Number.isFinite(v)||v<0)){throw new V("invalid connectTimeout")}if(j!=null&&(!Number.isFinite(j)||j<=0)){throw new V("invalid keepAliveTimeout")}if(ee!=null&&(!Number.isFinite(ee)||ee<=0)){throw new V("invalid keepAliveMaxTimeout")}if(te!=null&&!Number.isFinite(te)){throw new V("invalid keepAliveTimeoutThreshold")}if(i!=null&&(!Number.isInteger(i)||i<0)){throw new V("headersTimeout must be a positive integer or zero")}if(D!=null&&(!Number.isInteger(D)||D<0)){throw new V("bodyTimeout must be a positive integer or zero")}if(ue!=null&&typeof ue!=="function"&&typeof ue!=="object"){throw new V("connect must be a function or an object")}if(ce!=null&&(!Number.isInteger(ce)||ce<0)){throw new V("maxRedirections must be a positive number")}if(de!=null&&(!Number.isInteger(de)||de<0)){throw new V("maxRequestsPerClient must be a positive number")}if(pe!=null&&(typeof pe!=="string"||o.isIP(pe)===0)){throw new V("localAddress must be valid string IP address")}if(ge!=null&&(!Number.isInteger(ge)||ge<-1)){throw new V("maxResponseSize must be a positive number")}if(fe!=null&&(!Number.isInteger(fe)||fe<-1)){throw new V("autoSelectFamilyAttemptTimeout must be a positive number")}if(Ee!=null&&typeof Ee!=="boolean"){throw new V("allowH2 must be a valid boolean value")}if(ye!=null&&(typeof ye!=="number"||ye<1)){throw new V("maxConcurrentStreams must be a possitive integer, greater than 0")}if(typeof ue!=="function"){ue=ae({...ie,maxCachedSessions:se,allowH2:Ee,socketPath:re,timeout:v,...f.nodeHasAutoSelectFamily&&me?{autoSelectFamily:me,autoSelectFamilyAttemptTimeout:fe}:undefined,...ue})}this[Ye]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[xt({maxRedirections:ce})];this[Ae]=f.parseOrigin(e);this[He]=ue;this[De]=null;this[xe]=ne!=null?ne:1;this[ke]=n||d.maxHeaderSize;this[Ne]=j==null?4e3:j;this[Oe]=ee==null?6e5:ee;this[Le]=te==null?1e3:te;this[Te]=this[Ne];this[le]=null;this[Je]=pe!=null?pe:null;this[he]=0;this[Qe]=0;this[Re]=`host: ${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}\r\n`;this[Fe]=D!=null?D:3e5;this[Me]=i!=null?i:3e5;this[Ue]=oe==null?true:oe;this[_e]=ce;this[qe]=de;this[wt]=null;this[We]=ge>-1?ge:-1;this[$e]="h1";this[Xe]=null;this[Ze]=!Ee?null:{openStreams:0,maxConcurrentStreams:ye!=null?ye:100};this[Ke]=`${this[Ae].hostname}${this[Ae].port?`:${this[Ae].port}`:""}`;this[Ie]=[];this[ve]=0;this[we]=0}get pipelining(){return this[xe]}set pipelining(e){this[xe]=e;resume(this,true)}get[Ee](){return this[Ie].length-this[we]}get[fe](){return this[we]-this[ve]}get[ye](){return this[Ie].length-this[ve]}get[Be](){return!!this[De]&&!this[be]&&!this[De].destroyed}get[de](){const e=this[De];return e&&(e[ce]||e[Ce]||e[me])||this[ye]>=(this[xe]||1)||this[Ee]>0}[ge](e){connect(this);this.once("connect",e)}[je](e,t){const n=e.origin||this[Ae].origin;const i=this[$e]==="h2"?v[At](n,e,t):v[mt](n,e,t);this[Ie].push(i);if(this[he]){}else if(f.bodyLength(i.body)==null&&f.isIterable(i.body)){this[he]=1;process.nextTick(resume,this)}else{resume(this,true)}if(this[he]&&this[Qe]!==2&&this[de]){this[Qe]=2}return this[Qe]<2}async[Ve](){return new Promise((e=>{if(!this[ye]){e(null)}else{this[wt]=e}}))}async[Ge](e){return new Promise((t=>{const n=this[Ie].splice(this[we]);for(let t=0;t{if(this[wt]){this[wt]();this[wt]=null}t()};if(this[Xe]!=null){f.destroy(this[Xe],e);this[Xe]=null;this[Ze]=null}if(!this[De]){queueMicrotask(callback)}else{f.destroy(this[De].on("close",callback),e)}resume(this)}))}}function onHttp2SessionError(e){i(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[De][Pe]=e;onError(this[ue],e)}function onHttp2FrameError(e,t,n){const i=new re(`HTTP/2: "frameError" received - type ${e}, code ${t}`);if(n===0){this[De][Pe]=i;onError(this[ue],i)}}function onHttp2SessionEnd(){f.destroy(this,new te("other side closed"));f.destroy(this[De],new te("other side closed"))}function onHTTP2GoAway(e){const t=this[ue];const n=new re(`HTTP/2: "GOAWAY" frame received with code ${e}`);t[De]=null;t[Xe]=null;if(t.destroyed){i(this[Ee]===0);const e=t[Ie].splice(t[ve]);for(let t=0;t0){const e=t[Ie][t[ve]];t[Ie][t[ve]++]=null;errorRequest(t,e,n)}t[we]=t[ve];i(t[fe]===0);t.emit("disconnect",t[Ae],[t],n);resume(t)}const Pt=n(52824);const xt=n(64415);const Dt=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(63870):undefined;let t;try{t=await WebAssembly.compile(Buffer.from(n(53434),"base64"))}catch(i){t=await WebAssembly.compile(Buffer.from(e||n(63870),"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onStatus(new Rt(Lt.buffer,o,n))||0},wasm_on_message_begin:e=>{i.strictEqual(Ot.ptr,e);return Ot.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onHeaderField(new Rt(Lt.buffer,o,n))||0},wasm_on_header_value:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onHeaderValue(new Rt(Lt.buffer,o,n))||0},wasm_on_headers_complete:(e,t,n,o)=>{i.strictEqual(Ot.ptr,e);return Ot.onHeadersComplete(t,Boolean(n),Boolean(o))||0},wasm_on_body:(e,t,n)=>{i.strictEqual(Ot.ptr,e);const o=t-Ft+Lt.byteOffset;return Ot.onBody(new Rt(Lt.buffer,o,n))||0},wasm_on_message_complete:e=>{i.strictEqual(Ot.ptr,e);return Ot.onMessageComplete()||0}}})}let Tt=null;let kt=lazyllhttp();kt.catch();let Ot=null;let Lt=null;let Mt=0;let Ft=null;const Ut=1;const Ht=2;const _t=3;class Parser{constructor(e,t,{exports:n}){i(Number.isFinite(e[ke])&&e[ke]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(Pt.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[ke];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[We]}setTimeout(e,t){this.timeoutType=t;if(e!==this.timeoutValue){y.clearTimeout(this.timeout);if(e){this.timeout=y.setTimeout(onParserTimeout,e,this);if(this.timeout.unref){this.timeout.unref()}}else{this.timeout=null}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}}resume(){if(this.socket.destroyed||!this.paused){return}i(this.ptr!=null);i(Ot==null);this.llhttp.llhttp_resume(this.ptr);i(this.timeoutType===Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||Dt);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){i(this.ptr!=null);i(Ot==null);i(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>Mt){if(Ft){n.free(Ft)}Mt=Math.ceil(e.length/4096)*4096;Ft=n.malloc(Mt)}new Uint8Array(n.memory.buffer,Ft,Mt).set(e);try{let i;try{Lt=e;Ot=this;i=n.llhttp_execute(this.ptr,Ft,e.length)}catch(e){throw e}finally{Ot=null;Lt=null}const o=n.llhttp_get_error_pos(this.ptr)-Ft;if(i===Pt.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(o))}else if(i===Pt.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(o))}else if(i!==Pt.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let d="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);d="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new ie(d,Pt.ERROR[i],e.slice(o))}}catch(e){f.destroy(t,e)}}destroy(){i(this.ptr!=null);i(Ot==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;y.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[Ie][t[ve]];if(!n){return-1}}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10&&n.toString().toLowerCase()==="keep-alive"){this.keepAlive+=e.toString()}else if(n.length===10&&n.toString().toLowerCase()==="connection"){this.connection+=e.toString()}else if(n.length===14&&n.toString().toLowerCase()==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){f.destroy(this.socket,new ee)}}onUpgrade(e){const{upgrade:t,client:n,socket:o,headers:d,statusCode:p}=this;i(t);const y=n[Ie][n[ve]];i(y);i(!o.destroyed);i(o===n[De]);i(!this.paused);i(y.upgrade||y.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;i(this.headers.length%2===0);this.headers=[];this.headersSize=0;o.unshift(e);o[pe].destroy();o[pe]=null;o[ue]=null;o[Pe]=null;o.removeListener("error",onSocketError).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose);n[De]=null;n[Ie][n[ve]++]=null;n.emit("disconnect",n[Ae],[n],new re("upgrade"));try{y.onUpgrade(p,d,o)}catch(e){f.destroy(o,e)}resume(n)}onHeadersComplete(e,t,n){const{client:o,socket:d,headers:p,statusText:y}=this;if(d.destroyed){return-1}const v=o[Ie][o[ve]];if(!v){return-1}i(!this.upgrade);i(this.statusCode<200);if(e===100){f.destroy(d,new te("bad response",f.getSocketInfo(d)));return-1}if(t&&!v.upgrade){f.destroy(d,new te("bad upgrade",f.getSocketInfo(d)));return-1}i.strictEqual(this.timeoutType,Ut);this.statusCode=e;this.shouldKeepAlive=n||v.method==="HEAD"&&!d[ce]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=v.bodyTimeout!=null?v.bodyTimeout:o[Fe];this.setTimeout(e,Ht)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(v.method==="CONNECT"){i(o[fe]===1);this.upgrade=true;return 2}if(t){i(o[fe]===1);this.upgrade=true;return 2}i(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&o[xe]){const e=this.keepAlive?f.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-o[Le],o[Oe]);if(t<=0){d[ce]=true}else{o[Te]=t}}else{o[Te]=o[Ne]}}else{d[ce]=true}const D=v.onHeaders(e,p,this.resume,y)===false;if(v.aborted){return-1}if(v.method==="HEAD"){return 1}if(e<200){return 1}if(d[me]){d[me]=false;resume(o)}return D?Pt.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:o,maxResponseSize:d}=this;if(n.destroyed){return-1}const p=t[Ie][t[ve]];i(p);i.strictEqual(this.timeoutType,Ht);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}i(o>=200);if(d>-1&&this.bytesRead+e.length>d){f.destroy(n,new oe);return-1}this.bytesRead+=e.length;if(p.onData(e)===false){return Pt.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:o,headers:d,contentLength:p,bytesRead:y,shouldKeepAlive:v}=this;if(t.destroyed&&(!n||v)){return-1}if(o){return}const D=e[Ie][e[ve]];i(D);i(n>=100);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";i(this.headers.length%2===0);this.headers=[];this.headersSize=0;if(n<200){return}if(D.method!=="HEAD"&&p&&y!==parseInt(p,10)){f.destroy(t,new U);return-1}D.onComplete(d);e[Ie][e[ve]++]=null;if(t[Ce]){i.strictEqual(e[fe],0);f.destroy(t,new re("reset"));return Pt.ERROR.PAUSED}else if(!v){f.destroy(t,new re("reset"));return Pt.ERROR.PAUSED}else if(t[ce]&&e[fe]===0){f.destroy(t,new re("reset"));return Pt.ERROR.PAUSED}else if(e[xe]===1){setImmediate(resume,e)}else{resume(e)}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:o}=e;if(n===Ut){if(!t[Ce]||t.writableNeedDrain||o[fe]>1){i(!e.paused,"cannot be paused while waiting for headers");f.destroy(t,new K)}}else if(n===Ht){if(!e.paused){f.destroy(t,new ne)}}else if(n===_t){i(o[fe]===0&&o[Te]);f.destroy(t,new re("socket idle timeout"))}}function onSocketReadable(){const{[pe]:e}=this;if(e){e.readMore()}}function onSocketError(e){const{[ue]:t,[pe]:n}=this;i(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");if(t[$e]!=="h2"){if(e.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}}this[Pe]=e;onError(this[ue],e)}function onError(e,t){if(e[fe]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){i(e[we]===e[ve]);const n=e[Ie].splice(e[ve]);for(let i=0;i0&&n.code!=="UND_ERR_INFO"){const t=e[Ie][e[ve]];e[Ie][e[ve]++]=null;errorRequest(e,t,n)}e[we]=e[ve];i(e[fe]===0);e.emit("disconnect",e[Ae],[e],n);resume(e)}async function connect(e){i(!e[be]);i(!e[De]);let{host:t,hostname:n,protocol:d,port:p}=e[Ae];if(n[0]==="["){const e=n.indexOf("]");i(e!==-1);const t=n.substring(1,e);i(o.isIP(t));n=t}e[be]=true;if(vt.beforeConnect.hasSubscribers){vt.beforeConnect.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He]})}try{const o=await new Promise(((i,o)=>{e[He]({host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},((e,t)=>{if(e){o(e)}else{i(t)}}))}));if(e.destroyed){f.destroy(o.on("error",(()=>{})),new se);return}e[be]=false;i(o);const y=o.alpnProtocol==="h2";if(y){if(!Nt){Nt=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const t=Et.connect(e[Ae],{createConnection:()=>o,peerMaxConcurrentStreams:e[Ze].maxConcurrentStreams});e[$e]="h2";t[ue]=e;t[De]=o;t.on("error",onHttp2SessionError);t.on("frameError",onHttp2FrameError);t.on("end",onHttp2SessionEnd);t.on("goaway",onHTTP2GoAway);t.on("close",onSocketClose);t.unref();e[Xe]=t;o[Xe]=t}else{if(!Tt){Tt=await kt;kt=null}o[Se]=false;o[Ce]=false;o[ce]=false;o[me]=false;o[pe]=new Parser(e,o,Tt)}o[ze]=0;o[qe]=e[qe];o[ue]=e;o[Pe]=null;o.on("error",onSocketError).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose);e[De]=o;if(vt.connected.hasSubscribers){vt.connected.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],socket:o})}e.emit("connect",e[Ae],[e])}catch(o){if(e.destroyed){return}e[be]=false;if(vt.connectError.hasSubscribers){vt.connectError.publish({connectParams:{host:t,hostname:n,protocol:d,port:p,servername:e[le],localAddress:e[Je]},connector:e[He],error:o})}if(o.code==="ERR_TLS_CERT_ALTNAME_INVALID"){i(e[fe]===0);while(e[Ee]>0&&e[Ie][e[we]].servername===e[le]){const t=e[Ie][e[we]++];errorRequest(e,t,o)}}else{onError(e,o)}e.emit("connectionError",e[Ae],[e],o)}resume(e)}function emitDrain(e){e[Qe]=0;e.emit("drain",e[Ae],[e])}function resume(e,t){if(e[he]===2){return}e[he]=2;_resume(e,t);e[he]=0;if(e[ve]>256){e[Ie].splice(0,e[ve]);e[we]-=e[ve];e[ve]=0}}function _resume(e,t){while(true){if(e.destroyed){i(e[Ee]===0);return}if(e[wt]&&!e[ye]){e[wt]();e[wt]=null;return}const n=e[De];if(n&&!n.destroyed&&n.alpnProtocol!=="h2"){if(e[ye]===0){if(!n[Se]&&n.unref){n.unref();n[Se]=true}}else if(n[Se]&&n.ref){n.ref();n[Se]=false}if(e[ye]===0){if(n[pe].timeoutType!==_t){n[pe].setTimeout(e[Te],_t)}}else if(e[fe]>0&&n[pe].statusCode<200){if(n[pe].timeoutType!==Ut){const t=e[Ie][e[ve]];const i=t.headersTimeout!=null?t.headersTimeout:e[Me];n[pe].setTimeout(i,Ut)}}}if(e[de]){e[Qe]=2}else if(e[Qe]===2){if(t){e[Qe]=1;process.nextTick(emitDrain,e)}else{emitDrain(e)}continue}if(e[Ee]===0){return}if(e[fe]>=(e[xe]||1)){return}const o=e[Ie][e[we]];if(e[Ae].protocol==="https:"&&e[le]!==o.servername){if(e[fe]>0){return}e[le]=o.servername;if(n&&n.servername!==o.servername){f.destroy(n,new re("servername changed"));return}}if(e[be]){return}if(!n&&!e[Xe]){connect(e);return}if(n.destroyed||n[Ce]||n[ce]||n[me]){return}if(e[fe]>0&&!o.idempotent){return}if(e[fe]>0&&(o.upgrade||o.method==="CONNECT")){return}if(e[fe]>0&&f.bodyLength(o.body)!==0&&(f.isStream(o.body)||f.isAsyncIterable(o.body))){return}if(!o.aborted&&write(e,o)){e[we]++}else{e[Ie].splice(e[we],1)}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function write(e,t){if(e[$e]==="h2"){writeH2(e,e[Xe],t);return}const{body:n,method:o,path:d,host:p,upgrade:y,headers:v,blocking:D,reset:U}=t;const V=o==="PUT"||o==="POST"||o==="PATCH";if(n&&typeof n.read==="function"){n.read(0)}const K=f.bodyLength(n);let ee=K;if(ee===null){ee=t.contentLength}if(ee===0&&!V){ee=null}if(shouldSendContentLength(o)&&ee>0&&t.contentLength!==null&&t.contentLength!==ee){if(e[Ue]){errorRequest(e,t,new M);return false}process.emitWarning(new M)}const te=e[De];try{t.onConnect((n=>{if(t.aborted||t.completed){return}errorRequest(e,t,n||new j);f.destroy(te,new re("aborted"))}))}catch(n){errorRequest(e,t,n)}if(t.aborted){return false}if(o==="HEAD"){te[ce]=true}if(y||o==="CONNECT"){te[ce]=true}if(U!=null){te[ce]=U}if(e[qe]&&te[ze]++>=e[qe]){te[ce]=true}if(D){te[me]=true}let ne=`${o} ${d} HTTP/1.1\r\n`;if(typeof p==="string"){ne+=`host: ${p}\r\n`}else{ne+=e[Re]}if(y){ne+=`connection: upgrade\r\nupgrade: ${y}\r\n`}else if(e[xe]&&!te[ce]){ne+="connection: keep-alive\r\n"}else{ne+="connection: close\r\n"}if(v){ne+=v}if(vt.sendHeaders.hasSubscribers){vt.sendHeaders.publish({request:t,headers:ne,socket:te})}if(!n||K===0){if(ee===0){te.write(`${ne}content-length: 0\r\n\r\n`,"latin1")}else{i(ee===null,"no body must not have content length");te.write(`${ne}\r\n`,"latin1")}t.onRequestSent()}else if(f.isBuffer(n)){i(ee===n.byteLength,"buffer body must have content length");te.cork();te.write(`${ne}content-length: ${ee}\r\n\r\n`,"latin1");te.write(n);te.uncork();t.onBodySent(n);t.onRequestSent();if(!V){te[ce]=true}}else if(f.isBlobLike(n)){if(typeof n.stream==="function"){writeIterable({body:n.stream(),client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{writeBlob({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}}else if(f.isStream(n)){writeStream({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else if(f.isIterable(n)){writeIterable({body:n,client:e,request:t,socket:te,contentLength:ee,header:ne,expectsPayload:V})}else{i(false)}return true}function writeH2(e,t,n){const{body:o,method:d,path:p,host:y,upgrade:D,expectContinue:U,signal:V,headers:K}=n;let ee;if(typeof K==="string")ee=v[dt](K.trim());else ee=K;if(D){errorRequest(e,n,new Error("Upgrade not supported for H2"));return false}try{n.onConnect((t=>{if(n.aborted||n.completed){return}errorRequest(e,n,t||new j)}))}catch(t){errorRequest(e,n,t)}if(n.aborted){return false}let te;const ne=e[Ze];ee[yt]=y||e[Ke];ee[Ct]=d;if(d==="CONNECT"){t.ref();te=t.request(ee,{endStream:false,signal:V});if(te.id&&!te.pending){n.onUpgrade(null,null,te);++ne.openStreams}else{te.once("ready",(()=>{n.onUpgrade(null,null,te);++ne.openStreams}))}te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0)t.unref()}));return true}ee[It]=p;ee[Bt]="https";const ie=d==="PUT"||d==="POST"||d==="PATCH";if(o&&typeof o.read==="function"){o.read(0)}let oe=f.bodyLength(o);if(oe==null){oe=n.contentLength}if(oe===0||!ie){oe=null}if(shouldSendContentLength(d)&&oe>0&&n.contentLength!=null&&n.contentLength!==oe){if(e[Ue]){errorRequest(e,n,new M);return false}process.emitWarning(new M)}if(oe!=null){i(o,"no body must not have content length");ee[bt]=`${oe}`}t.ref();const se=d==="GET"||d==="HEAD";if(U){ee[Qt]="100-continue";te=t.request(ee,{endStream:se,signal:V});te.once("continue",writeBodyH2)}else{te=t.request(ee,{endStream:se,signal:V});writeBodyH2()}++ne.openStreams;te.once("response",(e=>{const{[St]:t,...i}=e;if(n.onHeaders(Number(t),i,te.resume.bind(te),"")===false){te.pause()}}));te.once("end",(()=>{n.onComplete([])}));te.on("data",(e=>{if(n.onData(e)===false){te.pause()}}));te.once("close",(()=>{ne.openStreams-=1;if(ne.openStreams===0){t.unref()}}));te.once("error",(function(t){if(e[Xe]&&!e[Xe].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,t)}}));te.once("frameError",((t,i)=>{const o=new re(`HTTP/2: "frameError" received - type ${t}, code ${i}`);errorRequest(e,n,o);if(e[Xe]&&!e[Xe].destroyed&&!this.closed&&!this.destroyed){ne.streams-=1;f.destroy(te,o)}}));return true;function writeBodyH2(){if(!o){n.onRequestSent()}else if(f.isBuffer(o)){i(oe===o.byteLength,"buffer body must have content length");te.cork();te.write(o);te.uncork();te.end();n.onBodySent(o);n.onRequestSent()}else if(f.isBlobLike(o)){if(typeof o.stream==="function"){writeIterable({client:e,request:n,contentLength:oe,h2stream:te,expectsPayload:ie,body:o.stream(),socket:e[De],header:""})}else{writeBlob({body:o,client:e,request:n,contentLength:oe,expectsPayload:ie,h2stream:te,header:"",socket:e[De]})}}else if(f.isStream(o)){writeStream({body:o,client:e,request:n,contentLength:oe,expectsPayload:ie,socket:e[De],h2stream:te,header:""})}else if(f.isIterable(o)){writeIterable({body:o,client:e,request:n,contentLength:oe,expectsPayload:ie,header:"",h2stream:te,socket:e[De]})}else{i(false)}}}function writeStream({h2stream:e,body:t,client:n,request:o,socket:d,contentLength:y,header:v,expectsPayload:D}){i(y!==0||n[fe]===0,"stream body cannot be pipelined");if(n[$e]==="h2"){const V=p(t,e,(n=>{if(n){f.destroy(t,n);f.destroy(e,n)}else{o.onRequestSent()}}));V.on("data",onPipeData);V.once("end",(()=>{V.removeListener("data",onPipeData);f.destroy(V)}));function onPipeData(e){o.onBodySent(e)}return}let M=false;const U=new AsyncWriter({socket:d,request:o,contentLength:y,client:n,expectsPayload:D,header:v});const onData=function(e){if(M){return}try{if(!U.write(e)&&this.pause){this.pause()}}catch(e){f.destroy(this,e)}};const onDrain=function(){if(M){return}if(t.resume){t.resume()}};const onAbort=function(){if(M){return}const e=new j;queueMicrotask((()=>onFinished(e)))};const onFinished=function(e){if(M){return}M=true;i(d.destroyed||d[Ce]&&n[fe]<=1);d.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("error",onFinished).removeListener("close",onAbort);if(!e){try{U.end()}catch(t){e=t}}U.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){f.destroy(t,e)}else{f.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onAbort);if(t.resume){t.resume()}d.on("drain",onDrain).on("error",onFinished)}async function writeBlob({h2stream:e,body:t,client:n,request:o,socket:d,contentLength:p,header:y,expectsPayload:v}){i(p===t.size,"blob body must have content length");const D=n[$e]==="h2";try{if(p!=null&&p!==t.size){throw new M}const i=Buffer.from(await t.arrayBuffer());if(D){e.cork();e.write(i);e.uncork()}else{d.cork();d.write(`${y}content-length: ${p}\r\n\r\n`,"latin1");d.write(i);d.uncork()}o.onBodySent(i);o.onRequestSent();if(!v){d[ce]=true}resume(n)}catch(t){f.destroy(D?e:d,t)}}async function writeIterable({h2stream:e,body:t,client:n,request:o,socket:d,contentLength:p,header:f,expectsPayload:y}){i(p!==0||n[fe]===0,"iterator body cannot be pipelined");let v=null;function onDrain(){if(v){const e=v;v=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{i(v===null);if(d[Pe]){t(d[Pe])}else{v=e}}));if(n[$e]==="h2"){e.on("close",onDrain).on("drain",onDrain);try{for await(const n of t){if(d[Pe]){throw d[Pe]}const t=e.write(n);o.onBodySent(n);if(!t){await waitForDrain()}}}catch(t){e.destroy(t)}finally{o.onRequestSent();e.end();e.off("close",onDrain).off("drain",onDrain)}return}d.on("close",onDrain).on("drain",onDrain);const D=new AsyncWriter({socket:d,request:o,contentLength:p,client:n,expectsPayload:y,header:f});try{for await(const e of t){if(d[Pe]){throw d[Pe]}if(!D.write(e)){await waitForDrain()}}D.end()}catch(e){D.destroy(e)}finally{d.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:n,client:i,expectsPayload:o,header:d}){this.socket=e;this.request=t;this.contentLength=n;this.client=i;this.bytesWritten=0;this.expectsPayload=o;this.header=d;e[Ce]=true}write(e){const{socket:t,request:n,contentLength:i,client:o,bytesWritten:d,expectsPayload:p,header:f}=this;if(t[Pe]){throw t[Pe]}if(t.destroyed){return false}const y=Buffer.byteLength(e);if(!y){return true}if(i!==null&&d+y>i){if(o[Ue]){throw new M}process.emitWarning(new M)}t.cork();if(d===0){if(!p){t[ce]=true}if(i===null){t.write(`${f}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${f}content-length: ${i}\r\n\r\n`,"latin1")}}if(i===null){t.write(`\r\n${y.toString(16)}\r\n`,"latin1")}this.bytesWritten+=y;const v=t.write(e);t.uncork();n.onBodySent(e);if(!v){if(t[pe].timeout&&t[pe].timeoutType===Ut){if(t[pe].timeout.refresh){t[pe].timeout.refresh()}}}return v}end(){const{socket:e,contentLength:t,client:n,bytesWritten:i,expectsPayload:o,header:d,request:p}=this;p.onRequestSent();e[Ce]=false;if(e[Pe]){throw e[Pe]}if(e.destroyed){return}if(i===0){if(o){e.write(`${d}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${d}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&i!==t){if(n[Ue]){throw new M}else{process.emitWarning(new M)}}if(e[pe].timeout&&e[pe].timeoutType===Ut){if(e[pe].timeout.refresh){e[pe].timeout.refresh()}}resume(n)}destroy(e){const{socket:t,client:n}=this;t[Ce]=false;if(e){i(n[fe]<=1,"pipeline should only contain this request");f.destroy(t,e)}}}function errorRequest(e,t,n){try{t.onError(n);i(t.aborted)}catch(n){e.emit("error",n)}}e.exports=Client},13194:(e,t,n)=>{"use strict";const{kConnected:i,kSize:o}=n(36443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[i]===0&&this.value[o]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[i]===0&&e[o]===0){this.finalizer(t)}}))}}}e.exports=function(){if(process.env.NODE_V8_COVERAGE){return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:global.WeakRef||CompatWeakRef,FinalizationRegistry:global.FinalizationRegistry||CompatFinalizer}}},19237:e=>{"use strict";const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},53168:(e,t,n)=>{"use strict";const{parseSetCookie:i}=n(8915);const{stringify:o}=n(3834);const{webidl:d}=n(74222);const{Headers:p}=n(26349);function getCookies(e){d.argumentLengthCheck(arguments,1,{header:"getCookies"});d.brandCheck(e,p,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...i]=e.split("=");n[t.trim()]=i.join("=")}return n}function deleteCookie(e,t,n){d.argumentLengthCheck(arguments,2,{header:"deleteCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.DOMString(t);n=d.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){d.argumentLengthCheck(arguments,1,{header:"getSetCookies"});d.brandCheck(e,p,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>i(e)))}function setCookie(e,t){d.argumentLengthCheck(arguments,2,{header:"setCookie"});d.brandCheck(e,p,{strict:false});t=d.converters.Cookie(t);const n=o(t);if(n){e.append("Set-Cookie",o(t))}}d.converters.DeleteCookieAttributes=d.dictionaryConverter([{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null}]);d.converters.Cookie=d.dictionaryConverter([{converter:d.converters.DOMString,key:"name"},{converter:d.converters.DOMString,key:"value"},{converter:d.nullableConverter((e=>{if(typeof e==="number"){return d.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:null},{converter:d.nullableConverter(d.converters["long long"]),key:"maxAge",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"domain",defaultValue:null},{converter:d.nullableConverter(d.converters.DOMString),key:"path",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"secure",defaultValue:null},{converter:d.nullableConverter(d.converters.boolean),key:"httpOnly",defaultValue:null},{converter:d.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:d.sequenceConverter(d.converters.DOMString),key:"unparsed",defaultValue:[]}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},8915:(e,t,n)=>{"use strict";const{maxNameValuePairSize:i,maxAttributeValueSize:o}=n(19237);const{isCTLExcludingHtab:d}=n(3834);const{collectASequenceOfCodePointsFast:p}=n(94322);const f=n(42613);function parseSetCookie(e){if(d(e)){return null}let t="";let n="";let o="";let f="";if(e.includes(";")){const i={position:0};t=p(";",e,i);n=e.slice(i.position)}else{t=e}if(!t.includes("=")){f=t}else{const e={position:0};o=p("=",t,e);f=t.slice(e.position+1)}o=o.trim();f=f.trim();if(o.length+f.length>i){return null}return{name:o,value:f,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}f(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=p(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let i="";let d="";if(n.includes("=")){const e={position:0};i=p("=",n,e);d=n.slice(e.position+1)}else{i=n}i=i.trim();d=d.trim();if(d.length>o){return parseUnparsedAttributes(e,t)}const y=i.toLowerCase();if(y==="expires"){const e=new Date(d);t.expires=e}else if(y==="max-age"){const n=d.charCodeAt(0);if((n<48||n>57)&&d[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(d)){return parseUnparsedAttributes(e,t)}const i=Number(d);t.maxAge=i}else if(y==="domain"){let e=d;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(y==="path"){let e="";if(d.length===0||d[0]!=="/"){e="/"}else{e=d}t.path=e}else if(y==="secure"){t.secure=true}else if(y==="httponly"){t.httpOnly=true}else if(y==="samesite"){let e="Default";const n=d.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${i}=${d}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},3834:e=>{"use strict";function isCTLExcludingHtab(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e>=0||e<=8||(e>=10||e<=31)||e===127){return false}}}function validateCookieName(e){for(const t of e){const e=t.charCodeAt(0);if(e<=32||e>127||t==="("||t===")"||t===">"||t==="<"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||e===34||e===44||e===59||e===92||e>126){throw new Error("Invalid header value")}}}function validateCookiePath(e){for(const t of e){const e=t.charCodeAt(0);if(e<33||t===";"){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const i=t[e.getUTCDay()];const o=e.getUTCDate().toString().padStart(2,"0");const d=n[e.getUTCMonth()];const p=e.getUTCFullYear();const f=e.getUTCHours().toString().padStart(2,"0");const y=e.getUTCMinutes().toString().padStart(2,"0");const v=e.getUTCSeconds().toString().padStart(2,"0");return`${i}, ${o} ${d} ${p} ${f}:${y}:${v} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...i]=n.split("=");t.push(`${e.trim()}=${i.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},59136:(e,t,n)=>{"use strict";const i=n(69278);const o=n(42613);const d=n(3440);const{InvalidArgumentError:p,ConnectTimeoutError:f}=n(68707);let y;let v;if(global.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE){v=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:f,timeout:D,...M}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxCachedSessions must be a positive integer or zero")}const U={path:f,...M};const V=new v(t==null?100:t);D=D==null?1e4:D;e=e!=null?e:false;return function connect({hostname:t,host:p,protocol:f,port:v,servername:M,localAddress:j,httpSocket:K},ee){let te;if(f==="https:"){if(!y){y=n(64756)}M=M||U.servername||d.getServerName(p)||null;const i=M||t;const f=V.get(i)||null;o(i);te=y.connect({highWaterMark:16384,...U,servername:M,session:f,localAddress:j,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:K,port:v||443,host:t});te.on("session",(function(e){V.set(i,e)}))}else{o(!K,"httpSocket can only be sent on TLS update");te=i.connect({highWaterMark:64*1024,...U,localAddress:j,port:v||80,host:t})}if(U.keepAlive==null||U.keepAlive){const e=U.keepAliveInitialDelay===undefined?6e4:U.keepAliveInitialDelay;te.setKeepAlive(true,e)}const re=setupTimeout((()=>onConnectTimeout(te)),D);te.setNoDelay(true).once(f==="https:"?"secureConnect":"connect",(function(){re();if(ee){const e=ee;ee=null;e(null,this)}})).on("error",(function(e){re();if(ee){const t=ee;ee=null;t(e)}}));return te}}function setupTimeout(e,t){if(!t){return()=>{}}let n=null;let i=null;const o=setTimeout((()=>{n=setImmediate((()=>{if(process.platform==="win32"){i=setImmediate((()=>e()))}else{e()}}))}),t);return()=>{clearTimeout(o);clearImmediate(n);clearImmediate(i)}}function onConnectTimeout(e){d.destroy(e,new f)}e.exports=buildConnector},10735:e=>{"use strict";const t={};const n=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e{"use strict";class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}}class ConnectTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ConnectTimeoutError);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersTimeoutError);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,HeadersOverflowError);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,BodyTimeoutError);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,i){super(e);Error.captureStackTrace(this,ResponseStatusCodeError);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=i;this.status=t;this.statusCode=t;this.headers=n}}class InvalidArgumentError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidArgumentError);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InvalidReturnValueError);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestAbortedError);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}}class InformationalError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,InformationalError);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,RequestContentLengthMismatchError);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseContentLengthMismatchError);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientDestroyedError);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}}class ClientClosedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ClientClosedError);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}}class SocketError extends UndiciError{constructor(e,t){super(e);Error.captureStackTrace(this,SocketError);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}}class NotSupportedError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,NotSupportedError);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError extends Error{constructor(e,t,n){super(e);Error.captureStackTrace(this,HTTPParserError);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}}class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);Error.captureStackTrace(this,ResponseExceededMaxSizeError);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:i}){super(e);Error.captureStackTrace(this,RequestRetryError);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=i;this.headers=n}}e.exports={HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError}},44655:(e,t,n)=>{"use strict";const{InvalidArgumentError:i,NotSupportedError:o}=n(68707);const d=n(42613);const{kHTTP2BuildRequest:p,kHTTP2CopyHeaders:f,kHTTP1BuildRequest:y}=n(36443);const v=n(3440);const D=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const M=/[^\t\x20-\x7e\x80-\xff]/;const U=/[^\u0021-\u00ff]/;const V=Symbol("handler");const j={};let K;try{const e=n(31637);j.create=e.channel("undici:request:create");j.bodySent=e.channel("undici:request:bodySent");j.headers=e.channel("undici:request:headers");j.trailers=e.channel("undici:request:trailers");j.error=e.channel("undici:request:error")}catch{j.create={hasSubscribers:false};j.bodySent={hasSubscribers:false};j.headers={hasSubscribers:false};j.trailers={hasSubscribers:false};j.error={hasSubscribers:false}}class Request{constructor(e,{path:t,method:o,body:d,headers:p,query:f,idempotent:y,blocking:M,upgrade:ee,headersTimeout:te,bodyTimeout:re,reset:ne,throwOnError:ie,expectContinue:oe},se){if(typeof t!=="string"){throw new i("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&o!=="CONNECT"){throw new i("path must be an absolute URL or start with a slash")}else if(U.exec(t)!==null){throw new i("invalid request path")}if(typeof o!=="string"){throw new i("method must be a string")}else if(D.exec(o)===null){throw new i("invalid request method")}if(ee&&typeof ee!=="string"){throw new i("upgrade must be a string")}if(te!=null&&(!Number.isFinite(te)||te<0)){throw new i("invalid headersTimeout")}if(re!=null&&(!Number.isFinite(re)||re<0)){throw new i("invalid bodyTimeout")}if(ne!=null&&typeof ne!=="boolean"){throw new i("invalid reset")}if(oe!=null&&typeof oe!=="boolean"){throw new i("invalid expectContinue")}this.headersTimeout=te;this.bodyTimeout=re;this.throwOnError=ie===true;this.method=o;this.abort=null;if(d==null){this.body=null}else if(v.isStream(d)){this.body=d;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){v.destroy(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(v.isBuffer(d)){this.body=d.byteLength?d:null}else if(ArrayBuffer.isView(d)){this.body=d.buffer.byteLength?Buffer.from(d.buffer,d.byteOffset,d.byteLength):null}else if(d instanceof ArrayBuffer){this.body=d.byteLength?Buffer.from(d):null}else if(typeof d==="string"){this.body=d.length?Buffer.from(d):null}else if(v.isFormDataLike(d)||v.isIterable(d)||v.isBlobLike(d)){this.body=d}else{throw new i("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ee||null;this.path=f?v.buildURL(t,f):t;this.origin=e;this.idempotent=y==null?o==="HEAD"||o==="GET":y;this.blocking=M==null?false:M;this.reset=ne==null?null:ne;this.host=null;this.contentLength=null;this.contentType=null;this.headers="";this.expectContinue=oe!=null?oe:false;if(Array.isArray(p)){if(p.length%2!==0){throw new i("headers array must be even")}for(let e=0;e{e.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable")}},3440:(e,t,n)=>{"use strict";const i=n(42613);const{kDestroyed:o,kBodyUsed:d}=n(36443);const{IncomingMessage:p}=n(58611);const f=n(2203);const y=n(69278);const{InvalidArgumentError:v}=n(68707);const{Blob:D}=n(20181);const M=n(39023);const{stringify:U}=n(83480);const{headerNameLowerCasedRecord:V}=n(10735);const[j,K]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){return D&&e instanceof D||e&&typeof e==="object"&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=U(t);if(n){e+="?"+n}return e}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new v("Invalid URL: The URL argument must be a non-null object.")}if(!/^https?:/.test(e.origin||e.protocol)){throw new v("Invalid URL protocol: the URL must start with `http:` or `https:`.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&!Number.isFinite(parseInt(e.port))){throw new v("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new v("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new v("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new v("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new v("Invalid URL origin: the origin must be a string or null/undefined.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol}//${e.hostname}:${t}`;let i=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n.endsWith("/")){n=n.substring(0,n.length-1)}if(i&&!i.startsWith("/")){i=`/${i}`}e=new URL(n+i)}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new v("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");i(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}i.strictEqual(typeof e,"string");const t=getHostname(e);if(y.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return!e||!!(e.destroyed||e[o])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===p){e.socket=null}e.destroy(t)}else if(t){process.nextTick(((e,t)=>{e.emit("error",t)}),e,t)}if(e.destroyed!==true){e[o]=true}}const ee=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(ee);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return V[e]||e.toLowerCase()}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let n=0;ne.toString("utf8")))}else{t[i]=e[n+1].toString("utf8")}}else{if(!Array.isArray(o)){o=[o];t[i]=o}o.push(e[n+1].toString("utf8"))}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=[];let n=false;let i=-1;for(let o=0;o{e.close()}))}else{const t=Buffer.isBuffer(i)?i:Buffer.from(i);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function throwIfAborted(e){if(!e){return}if(typeof e.throwIfAborted==="function"){e.throwIfAborted()}else{if(e.aborted){const e=new Error("The operation was aborted");e.name="AbortError";throw e}}}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const re=!!String.prototype.toWellFormed;function toUSVString(e){if(re){return`${e}`.toWellFormed()}else if(M.toUSVString){return M.toUSVString(e)}return`${e}`}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}const ne=Object.create(null);ne.enumerable=true;e.exports={kEnumerableProperty:ne,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted,addAbortListener:addAbortListener,parseRangeHeader:parseRangeHeader,nodeMajor:j,nodeMinor:K,nodeHasAutoSelectFamily:j>18||j===18&&K>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]}},50001:(e,t,n)=>{"use strict";const i=n(28611);const{ClientDestroyedError:o,ClientClosedError:d,InvalidArgumentError:p}=n(68707);const{kDestroy:f,kClose:y,kDispatch:v,kInterceptors:D}=n(36443);const M=Symbol("destroyed");const U=Symbol("closed");const V=Symbol("onDestroyed");const j=Symbol("onClosed");const K=Symbol("Intercepted Dispatch");class DispatcherBase extends i{constructor(){super();this[M]=false;this[V]=null;this[U]=false;this[j]=[]}get destroyed(){return this[M]}get closed(){return this[U]}get interceptors(){return this[D]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[D][t];if(typeof e!=="function"){throw new p("interceptor must be an function")}}}this[D]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,i)=>n?t(n):e(i)))}))}if(typeof e!=="function"){throw new p("invalid callback")}if(this[M]){queueMicrotask((()=>e(new o,null)));return}if(this[U]){if(this[j]){this[j].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[U]=true;this[j].push(e);const onClosed=()=>{const e=this[j];this[j]=null;for(let t=0;tthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,i)=>e?n(e):t(i)))}))}if(typeof t!=="function"){throw new p("invalid callback")}if(this[M]){if(this[V]){this[V].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new o}this[M]=true;this[V]=this[V]||[];this[V].push(t);const onDestroyed=()=>{const e=this[V];this[V]=null;for(let t=0;t{queueMicrotask(onDestroyed)}))}[K](e,t){if(!this[D]||this[D].length===0){this[K]=this[v];return this[v](e,t)}let n=this[v].bind(this);for(let e=this[D].length-1;e>=0;e--){n=this[D][e](n)}this[K]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new p("handler must be an object")}try{if(!e||typeof e!=="object"){throw new p("opts must be an object.")}if(this[M]||this[V]){throw new o}if(this[U]){throw new d}return this[K](e,t)}catch(e){if(typeof t.onError!=="function"){throw new p("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},28611:(e,t,n)=>{"use strict";const i=n(24434);class Dispatcher extends i{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}e.exports=Dispatcher},8923:(e,t,n)=>{"use strict";const i=n(89581);const o=n(3440);const{ReadableStreamFrom:d,isBlobLike:p,isReadableStreamLike:f,readableStreamClose:y,createDeferredPromise:v,fullyReadBody:D}=n(15523);const{FormData:M}=n(43073);const{kState:U}=n(89710);const{webidl:V}=n(74222);const{DOMException:j,structuredClone:K}=n(87326);const{Blob:ee,File:te}=n(20181);const{kBodyUsed:re}=n(36443);const ne=n(42613);const{isErrored:ie}=n(3440);const{isUint8Array:oe,isArrayBuffer:se}=n(98253);const{File:ae}=n(63041);const{parseMIMEType:Ae,serializeAMimeType:ce}=n(94322);let le;try{const e=n(77598);le=t=>e.randomInt(0,t)}catch{le=e=>Math.floor(Math.random(e))}let ue=globalThis.ReadableStream;const de=te??ae;const pe=new TextEncoder;const ge=new TextDecoder;function extractBody(e,t=false){if(!ue){ue=n(63774).ReadableStream}let i=null;if(e instanceof ue){i=e}else if(p(e)){i=e.stream()}else{i=new ue({async pull(e){e.enqueue(typeof D==="string"?pe.encode(D):D);queueMicrotask((()=>y(e)))},start(){},type:undefined})}ne(f(i));let v=null;let D=null;let M=null;let U=null;if(typeof e==="string"){D=e;U="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){D=e.toString();U="application/x-www-form-urlencoded;charset=UTF-8"}else if(se(e)){D=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){D=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(o.isFormDataLike(e)){const t=`----formdata-undici-0${`${le(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data` /*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const i=[];const o=new Uint8Array([13,10]);M=0;let d=false;for(const[t,p]of e){if(typeof p==="string"){const e=pe.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(p)}\r\n`);i.push(e);M+=e.byteLength}else{const e=pe.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(p.name?`; filename="${escape(p.name)}"`:"")+"\r\n"+`Content-Type: ${p.type||"application/octet-stream"}\r\n\r\n`);i.push(e,p,o);if(typeof p.size==="number"){M+=e.byteLength+p.size+o.byteLength}else{d=true}}}const p=pe.encode(`--${t}--`);i.push(p);M+=p.byteLength;if(d){M=null}D=e;v=async function*(){for(const e of i){if(e.stream){yield*e.stream()}else{yield e}}};U="multipart/form-data; boundary="+t}else if(p(e)){D=e;M=e.size;if(e.type){U=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(o.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}i=e instanceof ue?e:d(e)}if(typeof D==="string"||o.isBuffer(D)){M=Buffer.byteLength(D)}if(v!=null){let t;i=new ue({async start(){t=v(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:o}=await t.next();if(o){queueMicrotask((()=>{e.close()}))}else{if(!ie(i)){e.enqueue(new Uint8Array(n))}}return e.desiredSize>0},async cancel(e){await t.return()},type:undefined})}const V={stream:i,source:D,length:M};return[V,U]}function safelyExtractBody(e,t=false){if(!ue){ue=n(63774).ReadableStream}if(e instanceof ue){ne(!o.isDisturbed(e),"The body has already been consumed.");ne(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e){const[t,n]=e.stream.tee();const i=K(n,{transfer:[n]});const[,o]=i.tee();e.stream=t;return{stream:o,length:e.length,source:e.source}}async function*consumeBody(e){if(e){if(oe(e)){yield e}else{const t=e.stream;if(o.isDisturbed(t)){throw new TypeError("The body has already been consumed.")}if(t.locked){throw new TypeError("The stream is locked.")}t[re]=true;yield*t}}}function throwIfAborted(e){if(e.aborted){throw new j("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);if(t==="failure"){t=""}else if(t){t=ce(t)}return new ee([e],{type:t})}),e)},arrayBuffer(){return specConsumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return specConsumeBody(this,utf8DecodeBytes,e)},json(){return specConsumeBody(this,parseJSONFromBytes,e)},async formData(){V.brandCheck(this,e);throwIfAborted(this[U]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,n]of this.headers)e[t.toLowerCase()]=n;const t=new M;let n;try{n=new i({headers:e,preservePath:true})}catch(e){throw new j(`${e}`,"AbortError")}n.on("field",((e,n)=>{t.append(e,n)}));n.on("file",((e,n,i,o,d)=>{const p=[];if(o==="base64"||o.toLowerCase()==="base64"){let o="";n.on("data",(e=>{o+=e.toString().replace(/[\r\n]/gm,"");const t=o.length-o.length%4;p.push(Buffer.from(o.slice(0,t),"base64"));o=o.slice(t)}));n.on("end",(()=>{p.push(Buffer.from(o,"base64"));t.append(e,new de(p,i,{type:d}))}))}else{n.on("data",(e=>{p.push(e)}));n.on("end",(()=>{t.append(e,new de(p,i,{type:d}))}))}}));const o=new Promise(((e,t)=>{n.on("finish",e);n.on("error",(e=>t(new TypeError(e))))}));if(this.body!==null)for await(const e of consumeBody(this[U].body))n.write(e);n.end();await o;return t}else if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const n=new TextDecoder("utf-8",{ignoreBOM:true});for await(const e of consumeBody(this[U].body)){if(!oe(e)){throw new TypeError("Expected Uint8Array chunk")}t+=n.decode(e,{stream:true})}t+=n.decode();e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new M;for(const[n,i]of e){t.append(n,i)}return t}else{await Promise.resolve();throwIfAborted(this[U]);throw V.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,n){V.brandCheck(e,n);throwIfAborted(e[U]);if(bodyUnusable(e[U].body)){throw new TypeError("Body is unusable")}const i=v();const errorSteps=e=>i.reject(e);const successSteps=e=>{try{i.resolve(t(e))}catch(e){errorSteps(e)}};if(e[U].body==null){successSteps(new Uint8Array);return i.promise}await D(e[U].body,successSteps,errorSteps);return i.promise}function bodyUnusable(e){return e!=null&&(e.stream.locked||o.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=ge.decode(e);return t}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[U];const n=t.get("content-type");if(n===null){return"failure"}return Ae(n)}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody}},87326:(e,t,n)=>{"use strict";const{MessageChannel:i,receiveMessageOnPort:o}=n(28167);const d=["GET","HEAD","POST"];const p=new Set(d);const f=[101,204,205,304];const y=[301,302,303,307,308];const v=new Set(y);const D=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"];const M=new Set(D);const U=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const V=new Set(U);const j=["follow","manual","error"];const K=["GET","HEAD","OPTIONS","TRACE"];const ee=new Set(K);const te=["navigate","same-origin","no-cors","cors"];const re=["omit","same-origin","include"];const ne=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const ie=["content-encoding","content-language","content-location","content-type","content-length"];const oe=["half"];const se=["CONNECT","TRACE","TRACK"];const ae=new Set(se);const Ae=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const ce=new Set(Ae);const le=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let ue;const de=globalThis.structuredClone??function structuredClone(e,t=undefined){if(arguments.length===0){throw new TypeError("missing argument")}if(!ue){ue=new i}ue.port1.unref();ue.port2.unref();ue.port1.postMessage(e,t?.transfer);return o(ue.port2).message};e.exports={DOMException:le,structuredClone:de,subresource:Ae,forbiddenMethods:se,requestBodyHeader:ie,referrerPolicy:U,requestRedirect:j,requestMode:te,requestCredentials:re,requestCache:ne,redirectStatus:y,corsSafeListedMethods:d,nullBodyStatus:f,safeMethods:K,badPorts:D,requestDuplex:oe,subresourceSet:ce,badPortsSet:M,redirectStatusSet:v,corsSafeListedMethodsSet:p,safeMethodsSet:ee,forbiddenMethodsSet:ae,referrerPolicySet:V}},94322:(e,t,n)=>{const i=n(42613);const{atob:o}=n(20181);const{isomorphicDecode:d}=n(15523);const p=new TextEncoder;const f=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/;const y=/(\u000A|\u000D|\u0009|\u0020)/;const v=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor(e){i(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const n={position:0};let o=collectASequenceOfCodePointsFast(",",t,n);const p=o.length;o=removeASCIIWhitespace(o,true,true);if(n.position>=t.length){return"failure"}n.position++;const f=t.slice(p+1);let y=stringPercentDecode(f);if(/;(\u0020){0,}base64$/i.test(o)){const e=d(y);y=forgivingBase64(e);if(y==="failure"){return"failure"}o=o.slice(0,-6);o=o.replace(/(\u0020)+$/,"");o=o.slice(0,-1)}if(o.startsWith(";")){o="text/plain"+o}let v=parseMIMEType(o);if(v==="failure"){v=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:v,body:y}}function URLSerializer(e,t=false){if(!t){return e.href}const n=e.href;const i=e.hash.length;return i===0?n:n.substring(0,n.length-i)}function collectASequenceOfCodePoints(e,t,n){let i="";while(n.positione.length){return"failure"}t.position++;let i=collectASequenceOfCodePointsFast(";",e,t);i=removeHTTPWhitespace(i,false,true);if(i.length===0||!f.test(i)){return"failure"}const o=n.toLowerCase();const d=i.toLowerCase();const p={type:o,subtype:d,parameters:new Map,essence:`${o}/${d}`};while(t.positiony.test(e)),e,t);let n=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);n=n.toLowerCase();if(t.positione.length){break}let i=null;if(e[t.position]==='"'){i=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{i=collectASequenceOfCodePointsFast(";",e,t);i=removeHTTPWhitespace(i,false,true);if(i.length===0){continue}}if(n.length!==0&&f.test(n)&&(i.length===0||v.test(i))&&!p.parameters.has(n)){p.parameters.set(n,i)}}return p}function forgivingBase64(e){e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"");if(e.length%4===0){e=e.replace(/=?=$/,"")}if(e.length%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e)){return"failure"}const t=o(e);const n=new Uint8Array(t.length);for(let e=0;ee!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const n=e[t.position];t.position++;if(n==="\\"){if(t.position>=e.length){d+="\\";break}d+=e[t.position];t.position++}else{i(n==='"');break}}if(n){return d}return e.slice(o,t.position)}function serializeAMimeType(e){i(e!=="failure");const{parameters:t,essence:n}=e;let o=n;for(let[e,n]of t.entries()){o+=";";o+=e;o+="=";if(!f.test(n)){n=n.replace(/(\\|")/g,"\\$1");n='"'+n;n+='"'}o+=n}return o}function isHTTPWhiteSpace(e){return e==="\r"||e==="\n"||e==="\t"||e===" "}function removeHTTPWhitespace(e,t=true,n=true){let i=0;let o=e.length-1;if(t){for(;i0&&isHTTPWhiteSpace(e[o]);o--);}return e.slice(i,o+1)}function isASCIIWhitespace(e){return e==="\r"||e==="\n"||e==="\t"||e==="\f"||e===" "}function removeASCIIWhitespace(e,t=true,n=true){let i=0;let o=e.length-1;if(t){for(;i0&&isASCIIWhitespace(e[o]);o--);}return e.slice(i,o+1)}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType}},63041:(e,t,n)=>{"use strict";const{Blob:i,File:o}=n(20181);const{types:d}=n(39023);const{kState:p}=n(89710);const{isBlobLike:f}=n(15523);const{webidl:y}=n(74222);const{parseMIMEType:v,serializeAMimeType:D}=n(94322);const{kEnumerableProperty:M}=n(3440);const U=new TextEncoder;class File extends i{constructor(e,t,n={}){y.argumentLengthCheck(arguments,2,{header:"File constructor"});e=y.converters["sequence"](e);t=y.converters.USVString(t);n=y.converters.FilePropertyBag(n);const i=t;let o=n.type;let d;e:{if(o){o=v(o);if(o==="failure"){o="";break e}o=D(o).toLowerCase()}d=n.lastModified}super(processBlobParts(e,n),{type:o});this[p]={name:i,lastModified:d,type:o}}get name(){y.brandCheck(this,File);return this[p].name}get lastModified(){y.brandCheck(this,File);return this[p].lastModified}get type(){y.brandCheck(this,File);return this[p].type}}class FileLike{constructor(e,t,n={}){const i=t;const o=n.type;const d=n.lastModified??Date.now();this[p]={blobLike:e,name:i,type:o,lastModified:d}}stream(...e){y.brandCheck(this,FileLike);return this[p].blobLike.stream(...e)}arrayBuffer(...e){y.brandCheck(this,FileLike);return this[p].blobLike.arrayBuffer(...e)}slice(...e){y.brandCheck(this,FileLike);return this[p].blobLike.slice(...e)}text(...e){y.brandCheck(this,FileLike);return this[p].blobLike.text(...e)}get size(){y.brandCheck(this,FileLike);return this[p].blobLike.size}get type(){y.brandCheck(this,FileLike);return this[p].blobLike.type}get name(){y.brandCheck(this,FileLike);return this[p].name}get lastModified(){y.brandCheck(this,FileLike);return this[p].lastModified}get[Symbol.toStringTag](){return"File"}}Object.defineProperties(File.prototype,{[Symbol.toStringTag]:{value:"File",configurable:true},name:M,lastModified:M});y.converters.Blob=y.interfaceConverter(i);y.converters.BlobPart=function(e,t){if(y.util.Type(e)==="Object"){if(f(e)){return y.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||d.isAnyArrayBuffer(e)){return y.converters.BufferSource(e,t)}}return y.converters.USVString(e,t)};y.converters["sequence"]=y.sequenceConverter(y.converters.BlobPart);y.converters.FilePropertyBag=y.dictionaryConverter([{key:"lastModified",converter:y.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:y.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>{e=y.converters.DOMString(e);e=e.toLowerCase();if(e!=="native"){e="transparent"}return e},defaultValue:"transparent"}]);function processBlobParts(e,t){const n=[];for(const i of e){if(typeof i==="string"){let e=i;if(t.endings==="native"){e=convertLineEndingsNative(e)}n.push(U.encode(e))}else if(d.isAnyArrayBuffer(i)||d.isTypedArray(i)){if(!i.buffer){n.push(new Uint8Array(i))}else{n.push(new Uint8Array(i.buffer,i.byteOffset,i.byteLength))}}else if(f(i)){n.push(i)}}return n}function convertLineEndingsNative(e){let t="\n";if(process.platform==="win32"){t="\r\n"}return e.replace(/\r?\n/g,t)}function isFileLike(e){return o&&e instanceof o||e instanceof File||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={File:File,FileLike:FileLike,isFileLike:isFileLike}},43073:(e,t,n)=>{"use strict";const{isBlobLike:i,toUSVString:o,makeIterator:d}=n(15523);const{kState:p}=n(89710);const{File:f,FileLike:y,isFileLike:v}=n(63041);const{webidl:D}=n(74222);const{Blob:M,File:U}=n(20181);const V=U??f;class FormData{constructor(e){if(e!==undefined){throw D.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[p]=[]}append(e,t,n=undefined){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,2,{header:"FormData.append"});if(arguments.length===3&&!i(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=D.converters.USVString(e);t=i(t)?D.converters.Blob(t,{strict:false}):D.converters.USVString(t);n=arguments.length===3?D.converters.USVString(n):undefined;const o=makeEntry(e,t,n);this[p].push(o)}delete(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.delete"});e=D.converters.USVString(e);this[p]=this[p].filter((t=>t.name!==e))}get(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.get"});e=D.converters.USVString(e);const t=this[p].findIndex((t=>t.name===e));if(t===-1){return null}return this[p][t].value}getAll(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.getAll"});e=D.converters.USVString(e);return this[p].filter((t=>t.name===e)).map((e=>e.value))}has(e){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.has"});e=D.converters.USVString(e);return this[p].findIndex((t=>t.name===e))!==-1}set(e,t,n=undefined){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,2,{header:"FormData.set"});if(arguments.length===3&&!i(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=D.converters.USVString(e);t=i(t)?D.converters.Blob(t,{strict:false}):D.converters.USVString(t);n=arguments.length===3?o(n):undefined;const d=makeEntry(e,t,n);const f=this[p].findIndex((t=>t.name===e));if(f!==-1){this[p]=[...this[p].slice(0,f),d,...this[p].slice(f+1).filter((t=>t.name!==e))]}else{this[p].push(d)}}entries(){D.brandCheck(this,FormData);return d((()=>this[p].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){D.brandCheck(this,FormData);return d((()=>this[p].map((e=>[e.name,e.value]))),"FormData","key")}values(){D.brandCheck(this,FormData);return d((()=>this[p].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){D.brandCheck(this,FormData);D.argumentLengthCheck(arguments,1,{header:"FormData.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.")}for(const[n,i]of this){e.apply(t,[i,n,this])}}}FormData.prototype[Symbol.iterator]=FormData.prototype.entries;Object.defineProperties(FormData.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,n){e=Buffer.from(e).toString("utf8");if(typeof t==="string"){t=Buffer.from(t).toString("utf8")}else{if(!v(t)){t=t instanceof M?new V([t],"blob",{type:t.type}):new y(t,"blob",{type:t.type})}if(n!==undefined){const e={type:t.type,lastModified:t.lastModified};t=U&&t instanceof U||t instanceof f?new V([t],n,e):new y(t,n,e)}}return{name:e,value:t}}e.exports={FormData:FormData}},75628:e=>{"use strict";const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const n=new URL(e);if(n.protocol!=="http:"&&n.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${n.protocol}`)}Object.defineProperty(globalThis,t,{value:n,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26349:(e,t,n)=>{"use strict";const{kHeadersList:i,kConstruct:o}=n(36443);const{kGuard:d}=n(89710);const{kEnumerableProperty:p}=n(3440);const{makeIterator:f,isValidHeaderName:y,isValidHeaderValue:v}=n(15523);const D=n(39023);const{webidl:M}=n(74222);const U=n(42613);const V=Symbol("headers map");const j=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let n=e.length;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(n-1)))--n;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&n===e.length?e:e.substring(t,n)}function fill(e,t){if(Array.isArray(t)){for(let n=0;n>","record"]})}}function appendHeader(e,t,n){n=headerValueNormalize(n);if(!y(t)){throw M.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!v(n)){throw M.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header value"})}if(e[d]==="immutable"){throw new TypeError("immutable")}else if(e[d]==="request-no-cors"){}return e[i].append(t,n)}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[V]=new Map(e[V]);this[j]=e[j];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[V]=new Map(e);this[j]=null}}contains(e){e=e.toLowerCase();return this[V].has(e)}clear(){this[V].clear();this[j]=null;this.cookies=null}append(e,t){this[j]=null;const n=e.toLowerCase();const i=this[V].get(n);if(i){const e=n==="cookie"?"; ":", ";this[V].set(n,{name:i.name,value:`${i.value}${e}${t}`})}else{this[V].set(n,{name:e,value:t})}if(n==="set-cookie"){this.cookies??=[];this.cookies.push(t)}}set(e,t){this[j]=null;const n=e.toLowerCase();if(n==="set-cookie"){this.cookies=[t]}this[V].set(n,{name:e,value:t})}delete(e){this[j]=null;e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[V].delete(e)}get(e){const t=this[V].get(e.toLowerCase());return t===undefined?null:t.value}*[Symbol.iterator](){for(const[e,{value:t}]of this[V]){yield[e,t]}}get entries(){const e={};if(this[V].size){for(const{name:t,value:n}of this[V].values()){e[t]=n}}return e}}class Headers{constructor(e=undefined){if(e===o){return}this[i]=new HeadersList;this[d]="none";if(e!==undefined){e=M.converters.HeadersInit(e);fill(this,e)}}append(e,t){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,2,{header:"Headers.append"});e=M.converters.ByteString(e);t=M.converters.ByteString(t);return appendHeader(this,e,t)}delete(e){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.delete"});e=M.converters.ByteString(e);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this[d]==="immutable"){throw new TypeError("immutable")}else if(this[d]==="request-no-cors"){}if(!this[i].contains(e)){return}this[i].delete(e)}get(e){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.get"});e=M.converters.ByteString(e);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"})}return this[i].get(e)}has(e){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.has"});e=M.converters.ByteString(e);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"})}return this[i].contains(e)}set(e,t){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,2,{header:"Headers.set"});e=M.converters.ByteString(e);t=M.converters.ByteString(t);t=headerValueNormalize(t);if(!y(e)){throw M.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"})}else if(!v(t)){throw M.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"})}if(this[d]==="immutable"){throw new TypeError("immutable")}else if(this[d]==="request-no-cors"){}this[i].set(e,t)}getSetCookie(){M.brandCheck(this,Headers);const e=this[i].cookies;if(e){return[...e]}return[]}get[j](){if(this[i][j]){return this[i][j]}const e=[];const t=[...this[i]].sort(((e,t)=>e[0]e),"Headers","key")}return f((()=>[...this[j].values()]),"Headers","key")}values(){M.brandCheck(this,Headers);if(this[d]==="immutable"){const e=this[j];return f((()=>e),"Headers","value")}return f((()=>[...this[j].values()]),"Headers","value")}entries(){M.brandCheck(this,Headers);if(this[d]==="immutable"){const e=this[j];return f((()=>e),"Headers","key+value")}return f((()=>[...this[j].values()]),"Headers","key+value")}forEach(e,t=globalThis){M.brandCheck(this,Headers);M.argumentLengthCheck(arguments,1,{header:"Headers.forEach"});if(typeof e!=="function"){throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.")}for(const[n,i]of this){e.apply(t,[i,n,this])}}[Symbol.for("nodejs.util.inspect.custom")](){M.brandCheck(this,Headers);return this[i]}}Headers.prototype[Symbol.iterator]=Headers.prototype.entries;Object.defineProperties(Headers.prototype,{append:p,delete:p,get:p,has:p,set:p,getSetCookie:p,keys:p,values:p,entries:p,forEach:p,[Symbol.iterator]:{enumerable:false},[Symbol.toStringTag]:{value:"Headers",configurable:true},[D.inspect.custom]:{enumerable:false}});M.converters.HeadersInit=function(e){if(M.util.Type(e)==="Object"){if(e[Symbol.iterator]){return M.converters["sequence>"](e)}return M.converters["record"](e)}throw M.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};e.exports={fill:fill,Headers:Headers,HeadersList:HeadersList}},12315:(e,t,n)=>{"use strict";const{Response:i,makeNetworkError:o,makeAppropriateNetworkError:d,filterResponse:p,makeResponse:f}=n(48676);const{Headers:y}=n(26349);const{Request:v,makeRequest:D}=n(25194);const M=n(43106);const{bytesMatch:U,makePolicyContainer:V,clonePolicyContainer:j,requestBadPort:K,TAOCheck:ee,appendRequestOriginHeader:te,responseLocationURL:re,requestCurrentURL:ne,setRequestReferrerPolicyOnRedirect:ie,tryUpgradeRequestToAPotentiallyTrustworthyURL:oe,createOpaqueTimingInfo:se,appendFetchMetadata:ae,corsCheck:Ae,crossOriginResourcePolicyCheck:ce,determineRequestsReferrer:le,coarsenedSharedCurrentTime:ue,createDeferredPromise:de,isBlobLike:pe,sameOrigin:ge,isCancelled:me,isAborted:he,isErrorLike:fe,fullyReadBody:Ee,readableStreamClose:ye,isomorphicEncode:Ce,urlIsLocal:Ie,urlIsHttpHttpsScheme:Be,urlHasHttpsScheme:be}=n(15523);const{kState:Qe,kHeaders:Se,kGuard:Ne,kRealm:Re}=n(89710);const we=n(42613);const{safelyExtractBody:ve}=n(8923);const{redirectStatusSet:Pe,nullBodyStatus:xe,safeMethodsSet:De,requestBodyHeader:Te,subresourceSet:ke,DOMException:Oe}=n(87326);const{kHeadersList:Le}=n(36443);const Me=n(24434);const{Readable:Fe,pipeline:Ue}=n(2203);const{addAbortListener:He,isErrored:_e,isReadable:qe,nodeMajor:ze,nodeMinor:Ve}=n(3440);const{dataURLProcessor:Ge,serializeAMimeType:je}=n(94322);const{TransformStream:Ye}=n(63774);const{getGlobalDispatcher:Je}=n(32581);const{webidl:We}=n(74222);const{STATUS_CODES:$e}=n(58611);const Ke=["GET","HEAD"];let Xe;let Ze=globalThis.ReadableStream;class Fetch extends Me{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing";this.setMaxListeners(21)}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new Oe("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function fetch(e,t={}){We.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const n=de();let o;try{o=new v(e,t)}catch(e){n.reject(e);return n.promise}const d=o[Qe];if(o.signal.aborted){abortFetch(n,d,null,o.signal.reason);return n.promise}const p=d.client.globalObject;if(p?.constructor?.name==="ServiceWorkerGlobalScope"){d.serviceWorkers="none"}let f=null;const y=null;let D=false;let M=null;He(o.signal,(()=>{D=true;we(M!=null);M.abort(o.signal.reason);abortFetch(n,d,f,o.signal.reason)}));const handleFetchDone=e=>finalizeAndReportTiming(e,"fetch");const processResponse=e=>{if(D){return Promise.resolve()}if(e.aborted){abortFetch(n,d,f,M.serializedAbortReason);return Promise.resolve()}if(e.type==="error"){n.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error}));return Promise.resolve()}f=new i;f[Qe]=e;f[Re]=y;f[Se][Le]=e.headersList;f[Se][Ne]="immutable";f[Se][Re]=y;n.resolve(f)};M=fetching({request:d,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:t.dispatcher??Je()});return n.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const n=e.urlList[0];let i=e.timingInfo;let o=e.cacheState;if(!Be(n)){return}if(i===null){return}if(!e.timingAllowPassed){i=se({startTime:i.startTime});o=""}i.endTime=ue();e.timingInfo=i;markResourceTiming(i,n,t,globalThis,o)}function markResourceTiming(e,t,n,i,o){if(ze>18||ze===18&&Ve>=2){performance.markResourceTiming(e,t.href,n,i,o)}}function abortFetch(e,t,n,i){if(!i){i=new Oe("The operation was aborted.","AbortError")}e.reject(i);if(t.body!=null&&qe(t.body?.stream)){t.body.stream.cancel(i).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(n==null){return}const o=n[Qe];if(o.body!=null&&qe(o.body?.stream)){o.body.stream.cancel(i).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:i,processResponseEndOfBody:o,processResponseConsumeBody:d,useParallelQueue:p=false,dispatcher:f}){let y=null;let v=false;if(e.client!=null){y=e.client.globalObject;v=e.client.crossOriginIsolatedCapability}const D=ue(v);const M=se({startTime:D});const U={controller:new Fetch(f),request:e,timingInfo:M,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:i,processResponseConsumeBody:d,processResponseEndOfBody:o,taskDestination:y,crossOriginIsolatedCapability:v};we(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client?.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=j(e.client.policyContainer)}else{e.policyContainer=V()}}if(!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}if(!e.headersList.contains("accept-language")){e.headersList.append("accept-language","*")}if(e.priority===null){}if(ke.has(e.destination)){}mainFetch(U).catch((e=>{U.controller.terminate(e)}));return U.controller}async function mainFetch(e,t=false){const n=e.request;let i=null;if(n.localURLsOnly&&!Ie(ne(n))){i=o("local URLs only")}oe(n);if(K(n)==="blocked"){i=o("bad port")}if(n.referrerPolicy===""){n.referrerPolicy=n.policyContainer.referrerPolicy}if(n.referrer!=="no-referrer"){n.referrer=le(n)}if(i===null){i=await(async()=>{const t=ne(n);if(ge(t,n.url)&&n.responseTainting==="basic"||t.protocol==="data:"||(n.mode==="navigate"||n.mode==="websocket")){n.responseTainting="basic";return await schemeFetch(e)}if(n.mode==="same-origin"){return o('request mode cannot be "same-origin"')}if(n.mode==="no-cors"){if(n.redirect!=="follow"){return o('redirect mode cannot be "follow" for "no-cors" request')}n.responseTainting="opaque";return await schemeFetch(e)}if(!Be(ne(n))){return o("URL scheme must be a HTTP(S) scheme")}n.responseTainting="cors";return await httpFetch(e)})()}if(t){return i}if(i.status!==0&&!i.internalResponse){if(n.responseTainting==="cors"){}if(n.responseTainting==="basic"){i=p(i,"basic")}else if(n.responseTainting==="cors"){i=p(i,"cors")}else if(n.responseTainting==="opaque"){i=p(i,"opaque")}else{we(false)}}let d=i.status===0?i:i.internalResponse;if(d.urlList.length===0){d.urlList.push(...n.urlList)}if(!n.timingAllowFailed){i.timingAllowPassed=true}if(i.type==="opaque"&&d.status===206&&d.rangeRequested&&!n.headers.contains("range")){i=d=o()}if(i.status!==0&&(n.method==="HEAD"||n.method==="CONNECT"||xe.includes(d.status))){d.body=null;e.controller.dump=true}if(n.integrity){const processBodyError=t=>fetchFinale(e,o(t));if(n.responseTainting==="opaque"||i.body==null){processBodyError(i.error);return}const processBody=t=>{if(!U(t,n.integrity)){processBodyError("integrity mismatch");return}i.body=ve(t)[0];fetchFinale(e,i)};await Ee(i.body,processBody,processBodyError)}else{fetchFinale(e,i)}}function schemeFetch(e){if(me(e)&&e.request.redirectCount===0){return Promise.resolve(d(e))}const{request:t}=e;const{protocol:i}=ne(t);switch(i){case"about:":{return Promise.resolve(o("about scheme is not supported"))}case"blob:":{if(!Xe){Xe=n(20181).resolveObjectURL}const e=ne(t);if(e.search.length!==0){return Promise.resolve(o("NetworkError when attempting to fetch resource."))}const i=Xe(e.toString());if(t.method!=="GET"||!pe(i)){return Promise.resolve(o("invalid method"))}const d=ve(i);const p=d[0];const y=Ce(`${p.length}`);const v=d[1]??"";const D=f({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:y}],["content-type",{name:"Content-Type",value:v}]]});D.body=p;return Promise.resolve(D)}case"data:":{const e=ne(t);const n=Ge(e);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}const i=je(n.mimeType);return Promise.resolve(f({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:ve(n.body)[0]}))}case"file:":{return Promise.resolve(o("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>o(e)))}default:{return Promise.resolve(o("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){if(t.type==="error"){t.urlList=[e.request.urlList[0]];t.timingInfo=se({startTime:e.timingInfo.startTime})}const processResponseEndOfBody=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}};if(e.processResponse!=null){queueMicrotask((()=>e.processResponse(t)))}if(t.body==null){processResponseEndOfBody()}else{const identityTransformAlgorithm=(e,t)=>{t.enqueue(e)};const e=new Ye({start(){},transform:identityTransformAlgorithm,flush:processResponseEndOfBody},{size(){return 1}},{size(){return 1}});t.body={stream:t.body.stream.pipeThrough(e)}}if(e.processResponseConsumeBody!=null){const processBody=n=>e.processResponseConsumeBody(t,n);const processBodyError=n=>e.processResponseConsumeBody(t,n);if(t.body==null){queueMicrotask((()=>processBody(null)))}else{return Ee(t.body,processBody,processBodyError)}return Promise.resolve()}}async function httpFetch(e){const t=e.request;let n=null;let i=null;const d=e.timingInfo;if(t.serviceWorkers==="all"){}if(n===null){if(t.redirect==="follow"){t.serviceWorkers="none"}i=n=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&Ae(t,n)==="failure"){return o("cors failure")}if(ee(t,n)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||n.type==="opaque")&&ce(t.origin,t.client,t.destination,i)==="blocked"){return o("blocked")}if(Pe.has(i.status)){if(t.redirect!=="manual"){e.controller.connection.destroy()}if(t.redirect==="error"){n=o("unexpected redirect")}else if(t.redirect==="manual"){n=i}else if(t.redirect==="follow"){n=await httpRedirectFetch(e,n)}else{we(false)}}n.timingInfo=d;return n}function httpRedirectFetch(e,t){const n=e.request;const i=t.internalResponse?t.internalResponse:t;let d;try{d=re(i,ne(n).hash);if(d==null){return t}}catch(e){return Promise.resolve(o(e))}if(!Be(d)){return Promise.resolve(o("URL scheme must be a HTTP(S) scheme"))}if(n.redirectCount===20){return Promise.resolve(o("redirect count exceeded"))}n.redirectCount+=1;if(n.mode==="cors"&&(d.username||d.password)&&!ge(n,d)){return Promise.resolve(o('cross origin not allowed for request mode "cors"'))}if(n.responseTainting==="cors"&&(d.username||d.password)){return Promise.resolve(o('URL cannot contain credentials for request mode "cors"'))}if(i.status!==303&&n.body!=null&&n.body.source==null){return Promise.resolve(o())}if([301,302].includes(i.status)&&n.method==="POST"||i.status===303&&!Ke.includes(n.method)){n.method="GET";n.body=null;for(const e of Te){n.headersList.delete(e)}}if(!ge(ne(n),d)){n.headersList.delete("authorization");n.headersList.delete("proxy-authorization",true);n.headersList.delete("cookie");n.headersList.delete("host")}if(n.body!=null){we(n.body.source!=null);n.body=ve(n.body.source)[0]}const p=e.timingInfo;p.redirectEndTime=p.postRedirectStartTime=ue(e.crossOriginIsolatedCapability);if(p.redirectStartTime===0){p.redirectStartTime=p.startTime}n.urlList.push(d);ie(n,i);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,n=false){const i=e.request;let p=null;let f=null;let y=null;const v=null;const M=false;if(i.window==="no-window"&&i.redirect==="error"){p=e;f=i}else{f=D(i);p={...e};p.request=f}const U=i.credentials==="include"||i.credentials==="same-origin"&&i.responseTainting==="basic";const V=f.body?f.body.length:null;let j=null;if(f.body==null&&["POST","PUT"].includes(f.method)){j="0"}if(V!=null){j=Ce(`${V}`)}if(j!=null){f.headersList.append("content-length",j)}if(V!=null&&f.keepalive){}if(f.referrer instanceof URL){f.headersList.append("referer",Ce(f.referrer.href))}te(f);ae(f);if(!f.headersList.contains("user-agent")){f.headersList.append("user-agent",typeof esbuildDetection==="undefined"?"undici":"node")}if(f.cache==="default"&&(f.headersList.contains("if-modified-since")||f.headersList.contains("if-none-match")||f.headersList.contains("if-unmodified-since")||f.headersList.contains("if-match")||f.headersList.contains("if-range"))){f.cache="no-store"}if(f.cache==="no-cache"&&!f.preventNoCacheCacheControlHeaderModification&&!f.headersList.contains("cache-control")){f.headersList.append("cache-control","max-age=0")}if(f.cache==="no-store"||f.cache==="reload"){if(!f.headersList.contains("pragma")){f.headersList.append("pragma","no-cache")}if(!f.headersList.contains("cache-control")){f.headersList.append("cache-control","no-cache")}}if(f.headersList.contains("range")){f.headersList.append("accept-encoding","identity")}if(!f.headersList.contains("accept-encoding")){if(be(ne(f))){f.headersList.append("accept-encoding","br, gzip, deflate")}else{f.headersList.append("accept-encoding","gzip, deflate")}}f.headersList.delete("host");if(U){}if(v==null){f.cache="no-store"}if(f.mode!=="no-store"&&f.mode!=="reload"){}if(y==null){if(f.mode==="only-if-cached"){return o("only if cached")}const e=await httpNetworkFetch(p,U,n);if(!De.has(f.method)&&e.status>=200&&e.status<=399){}if(M&&e.status===304){}if(y==null){y=e}}y.urlList=[...f.urlList];if(f.headersList.contains("range")){y.rangeRequested=true}y.requestIncludesCredentials=U;if(y.status===407){if(i.window==="no-window"){return o()}if(me(e)){return d(e)}return o("proxy authentication required")}if(y.status===421&&!n&&(i.body==null||i.body.source!=null)){if(me(e)){return d(e)}e.controller.connection.destroy();y=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return y}async function httpNetworkFetch(e,t=false,i=false){we(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e){if(!this.destroyed){this.destroyed=true;this.abort?.(e??new Oe("The operation was aborted.","AbortError"))}}};const p=e.request;let v=null;const D=e.timingInfo;const U=null;if(U==null){p.cache="no-store"}const V=i?"yes":"no";if(p.mode==="websocket"){}else{}let j=null;if(p.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(p.body!=null){const processBodyChunk=async function*(t){if(me(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(me(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(me(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};j=async function*(){try{for await(const e of p.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:n,statusText:i,headersList:o,socket:d}=await dispatch({body:j});if(d){v=f({status:n,statusText:i,headersList:o,socket:d})}else{const d=t[Symbol.asyncIterator]();e.controller.next=()=>d.next();v=f({status:n,statusText:i,headersList:o})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return d(e,t)}return o(t)}const pullAlgorithm=()=>{e.controller.resume()};const cancelAlgorithm=t=>{e.controller.abort(t)};if(!Ze){Ze=n(63774).ReadableStream}const K=new Ze({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)}},{highWaterMark:0,size(){return 1}});v.body={stream:K};e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let n;try{const{done:n,value:i}=await e.controller.next();if(he(e)){break}t=n?undefined:i}catch(i){if(e.controller.ended&&!D.encodedBodySize){t=undefined}else{t=i;n=true}}if(t===undefined){ye(e.controller.controller);finalizeResponse(e,v);return}D.decodedBodySize+=t?.byteLength??0;if(n){e.controller.terminate(t);return}e.controller.controller.enqueue(new Uint8Array(t));if(_e(K)){e.controller.terminate();return}if(!e.controller.controller.desiredSize){return}}};function onAborted(t){if(he(e)){v.aborted=true;if(qe(K)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(qe(K)){e.controller.controller.error(new TypeError("terminated",{cause:fe(t)?t:undefined}))}}e.controller.connection.destroy()}return v;async function dispatch({body:t}){const n=ne(p);const i=e.controller.dispatcher;return new Promise(((o,d)=>i.dispatch({path:n.pathname+n.search,origin:n.origin,method:p.method,body:e.controller.dispatcher.isMockActive?p.body&&(p.body.source||p.body.stream):t,headers:p.headersList.entries,maxRedirections:0,upgrade:p.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:n}=e.controller;if(n.destroyed){t(new Oe("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=n.abort=t}},onHeaders(e,t,n,i){if(e<200){return}let d=[];let f="";const v=new y;if(Array.isArray(t)){for(let e=0;ee.trim()))}else if(n.toLowerCase()==="location"){f=i}v[Le].append(n,i)}}else{const e=Object.keys(t);for(const n of e){const e=t[n];if(n.toLowerCase()==="content-encoding"){d=e.toLowerCase().split(",").map((e=>e.trim())).reverse()}else if(n.toLowerCase()==="location"){f=e}v[Le].append(n,e)}}this.body=new Fe({read:n});const D=[];const U=p.redirect==="follow"&&f&&Pe.has(e);if(p.method!=="HEAD"&&p.method!=="CONNECT"&&!xe.includes(e)&&!U){for(const e of d){if(e==="x-gzip"||e==="gzip"){D.push(M.createGunzip({flush:M.constants.Z_SYNC_FLUSH,finishFlush:M.constants.Z_SYNC_FLUSH}))}else if(e==="deflate"){D.push(M.createInflate())}else if(e==="br"){D.push(M.createBrotliDecompress())}else{D.length=0;break}}}o({status:e,statusText:i,headersList:v[Le],body:D.length?Ue(this.body,...D,(()=>{})):this.body.on("error",(()=>{}))});return true},onData(t){if(e.controller.dump){return}const n=t;D.encodedBodySize+=n.byteLength;return this.body.push(n)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);d(t)},onUpgrade(e,t,n){if(e!==101){return}const i=new y;for(let e=0;e{"use strict";const{extractBody:i,mixinBody:o,cloneBody:d}=n(8923);const{Headers:p,fill:f,HeadersList:y}=n(26349);const{FinalizationRegistry:v}=n(13194)();const D=n(3440);const{isValidHTTPToken:M,sameOrigin:U,normalizeMethod:V,makePolicyContainer:j,normalizeMethodRecord:K}=n(15523);const{forbiddenMethodsSet:ee,corsSafeListedMethodsSet:te,referrerPolicy:re,requestRedirect:ne,requestMode:ie,requestCredentials:oe,requestCache:se,requestDuplex:ae}=n(87326);const{kEnumerableProperty:Ae}=D;const{kHeaders:ce,kSignal:le,kState:ue,kGuard:de,kRealm:pe}=n(89710);const{webidl:ge}=n(74222);const{getGlobalOrigin:me}=n(75628);const{URLSerializer:he}=n(94322);const{kHeadersList:fe,kConstruct:Ee}=n(36443);const ye=n(42613);const{getMaxListeners:Ce,setMaxListeners:Ie,getEventListeners:Be,defaultMaxListeners:be}=n(24434);let Qe=globalThis.TransformStream;const Se=Symbol("abortController");const Ne=new v((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request{constructor(e,t={}){if(e===Ee){return}ge.argumentLengthCheck(arguments,1,{header:"Request constructor"});e=ge.converters.RequestInfo(e);t=ge.converters.RequestInit(t);this[pe]={settingsObject:{baseUrl:me(),get origin(){return this.baseUrl?.origin},policyContainer:j()}};let o=null;let d=null;const v=this[pe].settingsObject.baseUrl;let re=null;if(typeof e==="string"){let t;try{t=new URL(e,v)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}o=makeRequest({urlList:[t]});d="cors"}else{ye(e instanceof Request);o=e[ue];re=e[le]}const ne=this[pe].settingsObject.origin;let ie="client";if(o.window?.constructor?.name==="EnvironmentSettingsObject"&&U(o.window,ne)){ie=o.window}if(t.window!=null){throw new TypeError(`'window' option '${ie}' must be null`)}if("window"in t){ie="no-window"}o=makeRequest({method:o.method,headersList:o.headersList,unsafeRequest:o.unsafeRequest,client:this[pe].settingsObject,window:ie,priority:o.priority,origin:o.origin,referrer:o.referrer,referrerPolicy:o.referrerPolicy,mode:o.mode,credentials:o.credentials,cache:o.cache,redirect:o.redirect,integrity:o.integrity,keepalive:o.keepalive,reloadNavigation:o.reloadNavigation,historyNavigation:o.historyNavigation,urlList:[...o.urlList]});const oe=Object.keys(t).length!==0;if(oe){if(o.mode==="navigate"){o.mode="same-origin"}o.reloadNavigation=false;o.historyNavigation=false;o.origin="client";o.referrer="client";o.referrerPolicy="";o.url=o.urlList[o.urlList.length-1];o.urlList=[o.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){o.referrer="no-referrer"}else{let t;try{t=new URL(e,v)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||ne&&!U(t,this[pe].settingsObject.baseUrl)){o.referrer="client"}else{o.referrer=t}}}if(t.referrerPolicy!==undefined){o.referrerPolicy=t.referrerPolicy}let se;if(t.mode!==undefined){se=t.mode}else{se=d}if(se==="navigate"){throw ge.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(se!=null){o.mode=se}if(t.credentials!==undefined){o.credentials=t.credentials}if(t.cache!==undefined){o.cache=t.cache}if(o.cache==="only-if-cached"&&o.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){o.redirect=t.redirect}if(t.integrity!=null){o.integrity=String(t.integrity)}if(t.keepalive!==undefined){o.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;if(!M(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}if(ee.has(e.toUpperCase())){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=K[e]??V(e);o.method=e}if(t.signal!==undefined){re=t.signal}this[ue]=o;const ae=new AbortController;this[le]=ae.signal;this[le][pe]=this[pe];if(re!=null){if(!re||typeof re.aborted!=="boolean"||typeof re.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(re.aborted){ae.abort(re.reason)}else{this[Se]=ae;const e=new WeakRef(ae);const abort=function(){const t=e.deref();if(t!==undefined){t.abort(this.reason)}};try{if(typeof Ce==="function"&&Ce(re)===be){Ie(100,re)}else if(Be(re,"abort").length>=be){Ie(100,re)}}catch{}D.addAbortListener(re,abort);Ne.register(ae,{signal:re,abort:abort})}}this[ce]=new p(Ee);this[ce][fe]=o.headersList;this[ce][de]="request";this[ce][pe]=this[pe];if(se==="no-cors"){if(!te.has(o.method)){throw new TypeError(`'${o.method} is unsupported in no-cors mode.`)}this[ce][de]="request-no-cors"}if(oe){const e=this[ce][fe];const n=t.headers!==undefined?t.headers:new y(e);e.clear();if(n instanceof y){for(const[t,i]of n){e.append(t,i)}e.cookies=n.cookies}else{f(this[ce],n)}}const Ae=e instanceof Request?e[ue].body:null;if((t.body!=null||Ae!=null)&&(o.method==="GET"||o.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let he=null;if(t.body!=null){const[e,n]=i(t.body,o.keepalive);he=e;if(n&&!this[ce][fe].contains("content-type")){this[ce].append("content-type",n)}}const Re=he??Ae;if(Re!=null&&Re.source==null){if(he!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(o.mode!=="same-origin"&&o.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}o.useCORSPreflightFlag=true}let we=Re;if(he==null&&Ae!=null){if(D.isDisturbed(Ae.stream)||Ae.stream.locked){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}if(!Qe){Qe=n(63774).TransformStream}const e=new Qe;Ae.stream.pipeThrough(e);we={source:Ae.source,length:Ae.length,stream:e.readable}}this[ue].body=we}get method(){ge.brandCheck(this,Request);return this[ue].method}get url(){ge.brandCheck(this,Request);return he(this[ue].url)}get headers(){ge.brandCheck(this,Request);return this[ce]}get destination(){ge.brandCheck(this,Request);return this[ue].destination}get referrer(){ge.brandCheck(this,Request);if(this[ue].referrer==="no-referrer"){return""}if(this[ue].referrer==="client"){return"about:client"}return this[ue].referrer.toString()}get referrerPolicy(){ge.brandCheck(this,Request);return this[ue].referrerPolicy}get mode(){ge.brandCheck(this,Request);return this[ue].mode}get credentials(){return this[ue].credentials}get cache(){ge.brandCheck(this,Request);return this[ue].cache}get redirect(){ge.brandCheck(this,Request);return this[ue].redirect}get integrity(){ge.brandCheck(this,Request);return this[ue].integrity}get keepalive(){ge.brandCheck(this,Request);return this[ue].keepalive}get isReloadNavigation(){ge.brandCheck(this,Request);return this[ue].reloadNavigation}get isHistoryNavigation(){ge.brandCheck(this,Request);return this[ue].historyNavigation}get signal(){ge.brandCheck(this,Request);return this[le]}get body(){ge.brandCheck(this,Request);return this[ue].body?this[ue].body.stream:null}get bodyUsed(){ge.brandCheck(this,Request);return!!this[ue].body&&D.isDisturbed(this[ue].body.stream)}get duplex(){ge.brandCheck(this,Request);return"half"}clone(){ge.brandCheck(this,Request);if(this.bodyUsed||this.body?.locked){throw new TypeError("unusable")}const e=cloneRequest(this[ue]);const t=new Request(Ee);t[ue]=e;t[pe]=this[pe];t[ce]=new p(Ee);t[ce][fe]=e.headersList;t[ce][de]=this[ce][de];t[ce][pe]=this[ce][pe];const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{D.addAbortListener(this.signal,(()=>{n.abort(this.signal.reason)}))}t[le]=n.signal;return t}}o(Request);function makeRequest(e){const t={method:"GET",localURLsOnly:false,unsafeRequest:false,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:false,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:false,credentials:"same-origin",useCredentials:false,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:false,historyNavigation:false,userActivation:false,taintedOrigin:false,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:false,done:false,timingAllowFailed:false,...e,headersList:e.headersList?new y(e.headersList):new y};t.url=t.urlList[0];return t}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=d(e.body)}return t}Object.defineProperties(Request.prototype,{method:Ae,url:Ae,headers:Ae,redirect:Ae,clone:Ae,signal:Ae,duplex:Ae,destination:Ae,body:Ae,bodyUsed:Ae,isHistoryNavigation:Ae,isReloadNavigation:Ae,keepalive:Ae,integrity:Ae,cache:Ae,credentials:Ae,attribute:Ae,referrerPolicy:Ae,referrer:Ae,mode:Ae,[Symbol.toStringTag]:{value:"Request",configurable:true}});ge.converters.Request=ge.interfaceConverter(Request);ge.converters.RequestInfo=function(e){if(typeof e==="string"){return ge.converters.USVString(e)}if(e instanceof Request){return ge.converters.Request(e)}return ge.converters.USVString(e)};ge.converters.AbortSignal=ge.interfaceConverter(AbortSignal);ge.converters.RequestInit=ge.dictionaryConverter([{key:"method",converter:ge.converters.ByteString},{key:"headers",converter:ge.converters.HeadersInit},{key:"body",converter:ge.nullableConverter(ge.converters.BodyInit)},{key:"referrer",converter:ge.converters.USVString},{key:"referrerPolicy",converter:ge.converters.DOMString,allowedValues:re},{key:"mode",converter:ge.converters.DOMString,allowedValues:ie},{key:"credentials",converter:ge.converters.DOMString,allowedValues:oe},{key:"cache",converter:ge.converters.DOMString,allowedValues:se},{key:"redirect",converter:ge.converters.DOMString,allowedValues:ne},{key:"integrity",converter:ge.converters.DOMString},{key:"keepalive",converter:ge.converters.boolean},{key:"signal",converter:ge.nullableConverter((e=>ge.converters.AbortSignal(e,{strict:false})))},{key:"window",converter:ge.converters.any},{key:"duplex",converter:ge.converters.DOMString,allowedValues:ae}]);e.exports={Request:Request,makeRequest:makeRequest}},48676:(e,t,n)=>{"use strict";const{Headers:i,HeadersList:o,fill:d}=n(26349);const{extractBody:p,cloneBody:f,mixinBody:y}=n(8923);const v=n(3440);const{kEnumerableProperty:D}=v;const{isValidReasonPhrase:M,isCancelled:U,isAborted:V,isBlobLike:j,serializeJavascriptValueToJSONString:K,isErrorLike:ee,isomorphicEncode:te}=n(15523);const{redirectStatusSet:re,nullBodyStatus:ne,DOMException:ie}=n(87326);const{kState:oe,kHeaders:se,kGuard:ae,kRealm:Ae}=n(89710);const{webidl:ce}=n(74222);const{FormData:le}=n(43073);const{getGlobalOrigin:ue}=n(75628);const{URLSerializer:de}=n(94322);const{kHeadersList:pe,kConstruct:ge}=n(36443);const me=n(42613);const{types:he}=n(39023);const fe=globalThis.ReadableStream||n(63774).ReadableStream;const Ee=new TextEncoder("utf-8");class Response{static error(){const e={settingsObject:{}};const t=new Response;t[oe]=makeNetworkError();t[Ae]=e;t[se][pe]=t[oe].headersList;t[se][ae]="immutable";t[se][Ae]=e;return t}static json(e,t={}){ce.argumentLengthCheck(arguments,1,{header:"Response.json"});if(t!==null){t=ce.converters.ResponseInit(t)}const n=Ee.encode(K(e));const i=p(n);const o={settingsObject:{}};const d=new Response;d[Ae]=o;d[se][ae]="response";d[se][Ae]=o;initializeResponse(d,t,{body:i[0],type:"application/json"});return d}static redirect(e,t=302){const n={settingsObject:{}};ce.argumentLengthCheck(arguments,1,{header:"Response.redirect"});e=ce.converters.USVString(e);t=ce.converters["unsigned short"](t);let i;try{i=new URL(e,ue())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!re.has(t)){throw new RangeError("Invalid status code "+t)}const o=new Response;o[Ae]=n;o[se][ae]="immutable";o[se][Ae]=n;o[oe].status=t;const d=te(de(i));o[oe].headersList.append("location",d);return o}constructor(e=null,t={}){if(e!==null){e=ce.converters.BodyInit(e)}t=ce.converters.ResponseInit(t);this[Ae]={settingsObject:{}};this[oe]=makeResponse({});this[se]=new i(ge);this[se][ae]="response";this[se][pe]=this[oe].headersList;this[se][Ae]=this[Ae];let n=null;if(e!=null){const[t,i]=p(e);n={body:t,type:i}}initializeResponse(this,t,n)}get type(){ce.brandCheck(this,Response);return this[oe].type}get url(){ce.brandCheck(this,Response);const e=this[oe].urlList;const t=e[e.length-1]??null;if(t===null){return""}return de(t,true)}get redirected(){ce.brandCheck(this,Response);return this[oe].urlList.length>1}get status(){ce.brandCheck(this,Response);return this[oe].status}get ok(){ce.brandCheck(this,Response);return this[oe].status>=200&&this[oe].status<=299}get statusText(){ce.brandCheck(this,Response);return this[oe].statusText}get headers(){ce.brandCheck(this,Response);return this[se]}get body(){ce.brandCheck(this,Response);return this[oe].body?this[oe].body.stream:null}get bodyUsed(){ce.brandCheck(this,Response);return!!this[oe].body&&v.isDisturbed(this[oe].body.stream)}clone(){ce.brandCheck(this,Response);if(this.bodyUsed||this.body&&this.body.locked){throw ce.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[oe]);const t=new Response;t[oe]=e;t[Ae]=this[Ae];t[se][pe]=e.headersList;t[se][ae]=this[se][ae];t[se][Ae]=this[se][Ae];return t}}y(Response);Object.defineProperties(Response.prototype,{type:D,url:D,status:D,ok:D,redirected:D,statusText:D,headers:D,clone:D,body:D,bodyUsed:D,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:D,redirect:D,error:D});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=f(e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new o(e.headersList):new o,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=ee(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,i){me(!(n in t));e[n]=i;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{me(false)}}function makeAppropriateNetworkError(e,t=null){me(U(e));return V(e)?makeNetworkError(Object.assign(new ie("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new ie("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,n){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!M(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[oe].status=t.status}if("statusText"in t&&t.statusText!=null){e[oe].statusText=t.statusText}if("headers"in t&&t.headers!=null){d(e[se],t.headers)}if(n){if(ne.includes(e.status)){throw ce.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status})}e[oe].body=n.body;if(n.type!=null&&!e[oe].headersList.contains("Content-Type")){e[oe].headersList.append("content-type",n.type)}}}ce.converters.ReadableStream=ce.interfaceConverter(fe);ce.converters.FormData=ce.interfaceConverter(le);ce.converters.URLSearchParams=ce.interfaceConverter(URLSearchParams);ce.converters.XMLHttpRequestBodyInit=function(e){if(typeof e==="string"){return ce.converters.USVString(e)}if(j(e)){return ce.converters.Blob(e,{strict:false})}if(he.isArrayBuffer(e)||he.isTypedArray(e)||he.isDataView(e)){return ce.converters.BufferSource(e)}if(v.isFormDataLike(e)){return ce.converters.FormData(e,{strict:false})}if(e instanceof URLSearchParams){return ce.converters.URLSearchParams(e)}return ce.converters.DOMString(e)};ce.converters.BodyInit=function(e){if(e instanceof fe){return ce.converters.ReadableStream(e)}if(e?.[Symbol.asyncIterator]){return e}return ce.converters.XMLHttpRequestBodyInit(e)};ce.converters.ResponseInit=ce.dictionaryConverter([{key:"status",converter:ce.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:ce.converters.ByteString,defaultValue:""},{key:"headers",converter:ce.converters.HeadersInit}]);e.exports={makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse}},89710:e=>{"use strict";e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")}},15523:(e,t,n)=>{"use strict";const{redirectStatusSet:i,referrerPolicySet:o,badPortsSet:d}=n(87326);const{getGlobalOrigin:p}=n(75628);const{performance:f}=n(82987);const{isBlobLike:y,toUSVString:v,ReadableStreamFrom:D}=n(3440);const M=n(42613);const{isUint8Array:U}=n(98253);let V=[];let j;try{j=n(76982);const e=["sha256","sha384","sha512"];V=j.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const n=t.length;return n===0?null:t[n-1].toString()}function responseLocationURL(e,t){if(!i.has(e.status)){return null}let n=e.headersList.get("location");if(n!==null&&isValidHeaderValue(n)){n=new URL(n,responseURL(e))}if(n&&!n.hash){n.hash=t}return n}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&d.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255)){return false}}return true}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t0){for(let e=i.length;e!==0;e--){const t=i[e-1].trim();if(o.has(t)){d=t;break}}}if(d!==""){e.referrerPolicy=d}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader(e){let t=e.origin;if(e.responseTainting==="cors"||e.mode==="websocket"){if(t){e.headersList.append("origin",t)}}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}if(t){e.headersList.append("origin",t)}}}function coarsenedSharedCurrentTime(e){return f.now()}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;M(t);let n=null;if(e.referrer==="client"){const e=p();if(!e||e.origin==="null"){return"no-referrer"}n=new URL(e)}else if(e.referrer instanceof URL){n=e.referrer}let i=stripURLForReferrer(n);const o=stripURLForReferrer(n,true);if(i.toString().length>4096){i=o}const d=sameOrigin(e,i);const f=isURLPotentiallyTrustworthy(i)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return o!=null?o:stripURLForReferrer(n,true);case"unsafe-url":return i;case"same-origin":return d?o:"no-referrer";case"origin-when-cross-origin":return d?i:o;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(i,t)){return i}if(isURLPotentiallyTrustworthy(i)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return o}case"strict-origin":case"no-referrer-when-downgrade":default:return f?"no-referrer":o}}function stripURLForReferrer(e,t){M(e instanceof URL);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(j===undefined){return true}const n=parseMetadata(t);if(n==="no metadata"){return true}if(n.length===0){return true}const i=getStrongestMetadata(n);const o=filterMetadataListByAlgorithm(n,i);for(const t of o){const n=t.algo;const i=t.hash;let o=j.createHash(n).update(e).digest("base64");if(o[o.length-1]==="="){if(o[o.length-2]==="="){o=o.slice(0,-2)}else{o=o.slice(0,-1)}}if(compareBase64Mixed(o,i)){return true}}return false}const K=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let n=true;for(const i of e.split(" ")){n=false;const e=K.exec(i);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const o=e.groups.algo.toLowerCase();if(V.includes(o)){t.push(e.groups)}}if(n===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let n=1;n{e=n;t=i}));return{promise:n,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}const ee={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(ee,null);function normalizeMethod(e){return ee[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}M(typeof t==="string");return t}const te=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator(e,t,n){const i={index:0,kind:n,target:e};const o={next(){if(Object.getPrototypeOf(this)!==o){throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`)}const{index:e,kind:n,target:d}=i;const p=d();const f=p.length;if(e>=f){return{value:undefined,done:true}}const y=p[e];i.index=e+1;return iteratorResult(y,n)},[Symbol.toStringTag]:`${t} Iterator`};Object.setPrototypeOf(o,te);return Object.setPrototypeOf({},o)}function iteratorResult(e,t){let n;switch(t){case"key":{n=e[0];break}case"value":{n=e[1];break}case"key+value":{n=e;break}}return{value:n,done:false}}async function fullyReadBody(e,t,n){const i=t;const o=n;let d;try{d=e.stream.getReader()}catch(e){o(e);return}try{const e=await readAllBytes(d);i(e)}catch(e){o(e)}}let re=globalThis.ReadableStream;function isReadableStreamLike(e){if(!re){re=n(63774).ReadableStream}return e instanceof re||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}const ne=65535;function isomorphicDecode(e){if(e.lengthe+String.fromCharCode(t)),"")}function readableStreamClose(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed")){throw e}}}function isomorphicEncode(e){for(let t=0;tObject.prototype.hasOwnProperty.call(e,t));e.exports={isAborted:isAborted,isCancelled:isCancelled,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:D,toUSVString:v,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:isValidHTTPToken,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:y,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,makeIterator:makeIterator,isValidHeaderName:isValidHeaderName,isValidHeaderValue:isValidHeaderValue,hasOwn:ie,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,isomorphicDecode:isomorphicDecode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,normalizeMethodRecord:ee,parseMetadata:parseMetadata}},74222:(e,t,n)=>{"use strict";const{types:i}=n(39023);const{hasOwn:o,toUSVString:d}=n(15523);const p={};p.converters={};p.util={};p.errors={};p.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};p.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const n=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return p.errors.exception({header:e.prefix,message:n})};p.errors.invalidArgument=function(e){return p.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};p.brandCheck=function(e,t,n=undefined){if(n?.strict!==false&&!(e instanceof t)){throw new TypeError("Illegal invocation")}else{return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag]}};p.argumentLengthCheck=function({length:e},t,n){if(eo){throw p.errors.exception({header:"Integer conversion",message:`Value must be between ${d}-${o}, got ${f}.`})}return f}if(!Number.isNaN(f)&&i.clamp===true){f=Math.min(Math.max(f,d),o);if(Math.floor(f)%2===0){f=Math.floor(f)}else{f=Math.ceil(f)}return f}if(Number.isNaN(f)||f===0&&Object.is(0,f)||f===Number.POSITIVE_INFINITY||f===Number.NEGATIVE_INFINITY){return 0}f=p.util.IntegerPart(f);f=f%Math.pow(2,t);if(n==="signed"&&f>=Math.pow(2,t)-1){return f-Math.pow(2,t)}return f};p.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};p.sequenceConverter=function(e){return t=>{if(p.util.Type(t)!=="Object"){throw p.errors.exception({header:"Sequence",message:`Value of type ${p.util.Type(t)} is not an Object.`})}const n=t?.[Symbol.iterator]?.();const i=[];if(n===undefined||typeof n.next!=="function"){throw p.errors.exception({header:"Sequence",message:"Object is not an iterator."})}while(true){const{done:t,value:o}=n.next();if(t){break}i.push(e(o))}return i}};p.recordConverter=function(e,t){return n=>{if(p.util.Type(n)!=="Object"){throw p.errors.exception({header:"Record",message:`Value of type ${p.util.Type(n)} is not an Object.`})}const o={};if(!i.isProxy(n)){const i=Object.keys(n);for(const d of i){const i=e(d);const p=t(n[d]);o[i]=p}return o}const d=Reflect.ownKeys(n);for(const i of d){const d=Reflect.getOwnPropertyDescriptor(n,i);if(d?.enumerable){const d=e(i);const p=t(n[i]);o[d]=p}}return o}};p.interfaceConverter=function(e){return(t,n={})=>{if(n.strict!==false&&!(t instanceof e)){throw p.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`})}return t}};p.dictionaryConverter=function(e){return t=>{const n=p.util.Type(t);const i={};if(n==="Null"||n==="Undefined"){return i}else if(n!=="Object"){throw p.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const n of e){const{key:e,defaultValue:d,required:f,converter:y}=n;if(f===true){if(!o(t,e)){throw p.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`})}}let v=t[e];const D=o(n,"defaultValue");if(D&&v!==null){v=v??d}if(f||D||v!==undefined){v=y(v);if(n.allowedValues&&!n.allowedValues.includes(v)){throw p.errors.exception({header:"Dictionary",message:`${v} is not an accepted type. Expected one of ${n.allowedValues.join(", ")}.`})}i[e]=v}}return i}};p.nullableConverter=function(e){return t=>{if(t===null){return t}return e(t)}};p.converters.DOMString=function(e,t={}){if(e===null&&t.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw new TypeError("Could not convert argument of type symbol to string.")}return String(e)};p.converters.ByteString=function(e){const t=p.converters.DOMString(e);for(let e=0;e255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${t.charCodeAt(e)} which is greater than 255.`)}}return t};p.converters.USVString=d;p.converters.boolean=function(e){const t=Boolean(e);return t};p.converters.any=function(e){return e};p.converters["long long"]=function(e){const t=p.util.ConvertToInt(e,64,"signed");return t};p.converters["unsigned long long"]=function(e){const t=p.util.ConvertToInt(e,64,"unsigned");return t};p.converters["unsigned long"]=function(e){const t=p.util.ConvertToInt(e,32,"unsigned");return t};p.converters["unsigned short"]=function(e,t){const n=p.util.ConvertToInt(e,16,"unsigned",t);return n};p.converters.ArrayBuffer=function(e,t={}){if(p.util.Type(e)!=="Object"||!i.isAnyArrayBuffer(e)){throw p.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]})}if(t.allowShared===false&&i.isSharedArrayBuffer(e)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};p.converters.TypedArray=function(e,t,n={}){if(p.util.Type(e)!=="Object"||!i.isTypedArray(e)||e.constructor.name!==t.name){throw p.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]})}if(n.allowShared===false&&i.isSharedArrayBuffer(e.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};p.converters.DataView=function(e,t={}){if(p.util.Type(e)!=="Object"||!i.isDataView(e)){throw p.errors.exception({header:"DataView",message:"Object is not a DataView."})}if(t.allowShared===false&&i.isSharedArrayBuffer(e.buffer)){throw p.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}return e};p.converters.BufferSource=function(e,t={}){if(i.isAnyArrayBuffer(e)){return p.converters.ArrayBuffer(e,t)}if(i.isTypedArray(e)){return p.converters.TypedArray(e,e.constructor)}if(i.isDataView(e)){return p.converters.DataView(e,t)}throw new TypeError(`Could not convert ${e} to a BufferSource.`)};p.converters["sequence"]=p.sequenceConverter(p.converters.ByteString);p.converters["sequence>"]=p.sequenceConverter(p.converters["sequence"]);p.converters["record"]=p.recordConverter(p.converters.ByteString,p.converters.ByteString);e.exports={webidl:p}},40396:e=>{"use strict";function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},82160:(e,t,n)=>{"use strict";const{staticPropertyDescriptors:i,readOperation:o,fireAProgressEvent:d}=n(10165);const{kState:p,kError:f,kResult:y,kEvents:v,kAborted:D}=n(86812);const{webidl:M}=n(74222);const{kEnumerableProperty:U}=n(3440);class FileReader extends EventTarget{constructor(){super();this[p]="empty";this[y]=null;this[f]=null;this[v]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"});e=M.converters.Blob(e,{strict:false});o(this,e,"ArrayBuffer")}readAsBinaryString(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"});e=M.converters.Blob(e,{strict:false});o(this,e,"BinaryString")}readAsText(e,t=undefined){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"});e=M.converters.Blob(e,{strict:false});if(t!==undefined){t=M.converters.DOMString(t)}o(this,e,"Text",t)}readAsDataURL(e){M.brandCheck(this,FileReader);M.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"});e=M.converters.Blob(e,{strict:false});o(this,e,"DataURL")}abort(){if(this[p]==="empty"||this[p]==="done"){this[y]=null;return}if(this[p]==="loading"){this[p]="done";this[y]=null}this[D]=true;d("abort",this);if(this[p]!=="loading"){d("loadend",this)}}get readyState(){M.brandCheck(this,FileReader);switch(this[p]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){M.brandCheck(this,FileReader);return this[y]}get error(){M.brandCheck(this,FileReader);return this[f]}get onloadend(){M.brandCheck(this,FileReader);return this[v].loadend}set onloadend(e){M.brandCheck(this,FileReader);if(this[v].loadend){this.removeEventListener("loadend",this[v].loadend)}if(typeof e==="function"){this[v].loadend=e;this.addEventListener("loadend",e)}else{this[v].loadend=null}}get onerror(){M.brandCheck(this,FileReader);return this[v].error}set onerror(e){M.brandCheck(this,FileReader);if(this[v].error){this.removeEventListener("error",this[v].error)}if(typeof e==="function"){this[v].error=e;this.addEventListener("error",e)}else{this[v].error=null}}get onloadstart(){M.brandCheck(this,FileReader);return this[v].loadstart}set onloadstart(e){M.brandCheck(this,FileReader);if(this[v].loadstart){this.removeEventListener("loadstart",this[v].loadstart)}if(typeof e==="function"){this[v].loadstart=e;this.addEventListener("loadstart",e)}else{this[v].loadstart=null}}get onprogress(){M.brandCheck(this,FileReader);return this[v].progress}set onprogress(e){M.brandCheck(this,FileReader);if(this[v].progress){this.removeEventListener("progress",this[v].progress)}if(typeof e==="function"){this[v].progress=e;this.addEventListener("progress",e)}else{this[v].progress=null}}get onload(){M.brandCheck(this,FileReader);return this[v].load}set onload(e){M.brandCheck(this,FileReader);if(this[v].load){this.removeEventListener("load",this[v].load)}if(typeof e==="function"){this[v].load=e;this.addEventListener("load",e)}else{this[v].load=null}}get onabort(){M.brandCheck(this,FileReader);return this[v].abort}set onabort(e){M.brandCheck(this,FileReader);if(this[v].abort){this.removeEventListener("abort",this[v].abort)}if(typeof e==="function"){this[v].abort=e;this.addEventListener("abort",e)}else{this[v].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:i,LOADING:i,DONE:i,readAsArrayBuffer:U,readAsBinaryString:U,readAsText:U,readAsDataURL:U,abort:U,readyState:U,result:U,error:U,onloadstart:U,onprogress:U,onload:U,onabort:U,onerror:U,onloadend:U,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:i,LOADING:i,DONE:i});e.exports={FileReader:FileReader}},15976:(e,t,n)=>{"use strict";const{webidl:i}=n(74222);const o=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=i.converters.DOMString(e);t=i.converters.ProgressEventInit(t??{});super(e,t);this[o]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){i.brandCheck(this,ProgressEvent);return this[o].lengthComputable}get loaded(){i.brandCheck(this,ProgressEvent);return this[o].loaded}get total(){i.brandCheck(this,ProgressEvent);return this[o].total}}i.converters.ProgressEventInit=i.dictionaryConverter([{key:"lengthComputable",converter:i.converters.boolean,defaultValue:false},{key:"loaded",converter:i.converters["unsigned long long"],defaultValue:0},{key:"total",converter:i.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:i.converters.boolean,defaultValue:false},{key:"cancelable",converter:i.converters.boolean,defaultValue:false},{key:"composed",converter:i.converters.boolean,defaultValue:false}]);e.exports={ProgressEvent:ProgressEvent}},86812:e=>{"use strict";e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},10165:(e,t,n)=>{"use strict";const{kState:i,kError:o,kResult:d,kAborted:p,kLastProgressEventFired:f}=n(86812);const{ProgressEvent:y}=n(15976);const{getEncoding:v}=n(40396);const{DOMException:D}=n(87326);const{serializeAMimeType:M,parseMIMEType:U}=n(94322);const{types:V}=n(39023);const{StringDecoder:j}=n(13193);const{btoa:K}=n(20181);const ee={enumerable:true,writable:false,configurable:false};function readOperation(e,t,n,y){if(e[i]==="loading"){throw new D("Invalid state","InvalidStateError")}e[i]="loading";e[d]=null;e[o]=null;const v=t.stream();const M=v.getReader();const U=[];let j=M.read();let K=true;(async()=>{while(!e[p]){try{const{done:v,value:D}=await j;if(K&&!e[p]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}K=false;if(!v&&V.isUint8Array(D)){U.push(D);if((e[f]===undefined||Date.now()-e[f]>=50)&&!e[p]){e[f]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}j=M.read()}else if(v){queueMicrotask((()=>{e[i]="done";try{const i=packageData(U,n,t.type,y);if(e[p]){return}e[d]=i;fireAProgressEvent("load",e)}catch(t){e[o]=t;fireAProgressEvent("error",e)}if(e[i]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[p]){return}queueMicrotask((()=>{e[i]="done";e[o]=t;fireAProgressEvent("error",e);if(e[i]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const n=new y(e,{bubbles:false,cancelable:false});t.dispatchEvent(n)}function packageData(e,t,n,i){switch(t){case"DataURL":{let t="data:";const i=U(n||"application/octet-stream");if(i!=="failure"){t+=M(i)}t+=";base64,";const o=new j("latin1");for(const n of e){t+=K(o.write(n))}t+=K(o.end());return t}case"Text":{let t="failure";if(i){t=v(i)}if(t==="failure"&&n){const e=U(n);if(e!=="failure"){t=v(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const n=new j("latin1");for(const i of e){t+=n.write(i)}t+=n.end();return t}}}function decode(e,t){const n=combineByteSequences(e);const i=BOMSniffing(n);let o=0;if(i!==null){t=i;o=i==="UTF-8"?3:2}const d=n.slice(o);return new TextDecoder(t).decode(d)}function BOMSniffing(e){const[t,n,i]=e;if(t===239&&n===187&&i===191){return"UTF-8"}else if(t===254&&n===255){return"UTF-16BE"}else if(t===255&&n===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let n=0;return e.reduce(((e,t)=>{e.set(t,n);n+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:ee,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},32581:(e,t,n)=>{"use strict";const i=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:o}=n(68707);const d=n(59965);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new d)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new o("Argument agent must implement Agent")}Object.defineProperty(globalThis,i,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[i]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},78840:e=>{"use strict";e.exports=class DecoratorHandler{constructor(e){this.handler=e}onConnect(...e){return this.handler.onConnect(...e)}onError(...e){return this.handler.onError(...e)}onUpgrade(...e){return this.handler.onUpgrade(...e)}onHeaders(...e){return this.handler.onHeaders(...e)}onData(...e){return this.handler.onData(...e)}onComplete(...e){return this.handler.onComplete(...e)}onBodySent(...e){return this.handler.onBodySent(...e)}}},48299:(e,t,n)=>{"use strict";const i=n(3440);const{kBodyUsed:o}=n(36443);const d=n(42613);const{InvalidArgumentError:p}=n(68707);const f=n(24434);const y=[300,301,302,303,307,308];const v=Symbol("body");class BodyAsyncIterable{constructor(e){this[v]=e;this[o]=false}async*[Symbol.asyncIterator](){d(!this[o],"disturbed");this[o]=true;yield*this[v]}}class RedirectHandler{constructor(e,t,n,y){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new p("maxRedirections must be a positive number")}i.validateHandler(y,n.method,n.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...n,maxRedirections:0};this.maxRedirections=t;this.handler=y;this.history=[];if(i.isStream(this.opts.body)){if(i.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){d(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[o]=false;f.prototype.on.call(this.opts.body,"data",(function(){this[o]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&i.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,o){this.location=this.history.length>=this.maxRedirections||i.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,n,o)}const{origin:d,pathname:p,search:f}=i.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const y=f?`${p}${f}`:p;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==d);this.opts.path=y;this.opts.origin=d;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(y.indexOf(e)===-1){return null}for(let e=0;e{const i=n(42613);const{kRetryHandlerDefaultRetry:o}=n(36443);const{RequestRetryError:d}=n(68707);const{isDisturbed:p,parseHeaders:f,parseRangeHeader:y}=n(3440);function calculateRetryAfterHeader(e){const t=Date.now();const n=new Date(e).getTime()-t;return n}class RetryHandler{constructor(e,t){const{retryOptions:n,...i}=e;const{retry:d,maxRetries:p,maxTimeout:f,minTimeout:y,timeoutFactor:v,methods:D,errorCodes:M,retryAfter:U,statusCodes:V}=n??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts=i;this.abort=null;this.aborted=false;this.retryOpts={retry:d??RetryHandler[o],retryAfter:U??true,maxTimeout:f??30*1e3,timeout:y??500,timeoutFactor:v??2,maxRetries:p??5,methods:D??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:V??[500,502,503,504,429],errorCodes:M??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]};this.retryCount=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,n){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,n)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[o](e,{state:t,opts:n},i){const{statusCode:o,code:d,headers:p}=e;const{method:f,retryOptions:y}=n;const{maxRetries:v,timeout:D,maxTimeout:M,timeoutFactor:U,statusCodes:V,errorCodes:j,methods:K}=y;let{counter:ee,currentTimeout:te}=t;te=te!=null&&te>0?te:D;if(d&&d!=="UND_ERR_REQ_RETRY"&&d!=="UND_ERR_SOCKET"&&!j.includes(d)){i(e);return}if(Array.isArray(K)&&!K.includes(f)){i(e);return}if(o!=null&&Array.isArray(V)&&!V.includes(o)){i(e);return}if(ee>v){i(e);return}let re=p!=null&&p["retry-after"];if(re){re=Number(re);re=isNaN(re)?calculateRetryAfterHeader(re):re*1e3}const ne=re>0?Math.min(re,M):Math.min(te*U**ee,M);t.currentTimeout=ne;setTimeout((()=>i(null)),ne)}onHeaders(e,t,n,o){const p=f(t);this.retryCount+=1;if(e>=300){this.abort(new d("Request failed",e,{headers:p,count:this.retryCount}));return false}if(this.resume!=null){this.resume=null;if(e!==206){return true}const t=y(p["content-range"]);if(!t){this.abort(new d("Content-Range mismatch",e,{headers:p,count:this.retryCount}));return false}if(this.etag!=null&&this.etag!==p.etag){this.abort(new d("ETag mismatch",e,{headers:p,count:this.retryCount}));return false}const{start:o,size:f,end:v=f}=t;i(this.start===o,"content-range mismatch");i(this.end==null||this.end===v,"content-range mismatch");this.resume=n;return true}if(this.end==null){if(e===206){const d=y(p["content-range"]);if(d==null){return this.handler.onHeaders(e,t,n,o)}const{start:f,size:v,end:D=v}=d;i(f!=null&&Number.isFinite(f)&&this.start!==f,"content-range mismatch");i(Number.isFinite(f));i(D!=null&&Number.isFinite(D)&&this.end!==D,"invalid content-length");this.start=f;this.end=D}if(this.end==null){const e=p["content-length"];this.end=e!=null?Number(e):null}i(Number.isFinite(this.start));i(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=n;this.etag=p.etag!=null?p.etag:null;return this.handler.onHeaders(e,t,n,o)}const v=new d("Request failed",e,{headers:p,count:this.retryCount});this.abort(v);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||p(this.opts.body)){return this.handler.onError(e)}this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||p(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${this.end??""}`}}}try{this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},64415:(e,t,n)=>{"use strict";const i=n(48299);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(n,o){const{maxRedirections:d=e}=n;if(!d){return t(n,o)}const p=new i(t,d,n,o);n={...n,maxRedirections:0};return t(n,p)}}e.exports=createRedirectInterceptor},52824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const i=n(50172);var o;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(o=t.ERROR||(t.ERROR={}));var d;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(d=t.TYPE||(t.TYPE={}));var p;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(p=t.FLAGS||(t.FLAGS={}));var f;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(f=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var y;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(y=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[y.DELETE,y.GET,y.HEAD,y.POST,y.PUT,y.CONNECT,y.OPTIONS,y.TRACE,y.COPY,y.LOCK,y.MKCOL,y.MOVE,y.PROPFIND,y.PROPPATCH,y.SEARCH,y.UNLOCK,y.BIND,y.REBIND,y.UNBIND,y.ACL,y.REPORT,y.MKACTIVITY,y.CHECKOUT,y.MERGE,y["M-SEARCH"],y.NOTIFY,y.SUBSCRIBE,y.UNSUBSCRIBE,y.PATCH,y.PURGE,y.MKCALENDAR,y.LINK,y.UNLINK,y.PRI,y.SOURCE];t.METHODS_ICE=[y.SOURCE];t.METHODS_RTSP=[y.OPTIONS,y.DESCRIBE,y.ANNOUNCE,y.SETUP,y.PLAY,y.PAUSE,y.TEARDOWN,y.GET_PARAMETER,y.SET_PARAMETER,y.REDIRECT,y.RECORD,y.FLUSH,y.GET,y.POST];t.METHOD_MAP=i.enumToMap(y);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var v;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(v=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var D;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(D=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:D.CONNECTION,"content-length":D.CONTENT_LENGTH,"proxy-connection":D.CONNECTION,"transfer-encoding":D.TRANSFER_ENCODING,upgrade:D.UPGRADE}},63870:e=>{e.exports="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAA0ZFAwMEAAAFAAAAAAAABQEFAAUFBQAABgAAAAAGBgYGAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAAABAQcAAAUFAwABBAUBcAESEgUDAQACBggBfwFBgNQECwfRBSIGbWVtb3J5AgALX2luaXRpYWxpemUACRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQALbGxodHRwX2luaXQAChhsbGh0dHBfc2hvdWxkX2tlZXBfYWxpdmUAQQxsbGh0dHBfYWxsb2MADAZtYWxsb2MARgtsbGh0dHBfZnJlZQANBGZyZWUASA9sbGh0dHB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IABBMGpCADcDACAAQShqQgA3AwAgAEEgakIANwMAIABBEGpCADcDACAAQQhqQgA3AwAgAEHdATYCHEEAC3sBAX8CQCAAKAIMIgMNAAJAIAAoAgRFDQAgACABNgIECwJAIAAgASACEMSAgIAAIgMNACAAKAIMDwsgACADNgIcQQAhAyAAKAIEIgFFDQAgACABIAIgACgCCBGBgICAAAAiAUUNACAAIAI2AhQgACABNgIMIAEhAwsgAwvk8wEDDn8DfgR/I4CAgIAAQRBrIgMkgICAgAAgASEEIAEhBSABIQYgASEHIAEhCCABIQkgASEKIAEhCyABIQwgASENIAEhDiABIQ8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgACgCHCIQQX9qDt0B2gEB2QECAwQFBgcICQoLDA0O2AEPENcBERLWARMUFRYXGBkaG+AB3wEcHR7VAR8gISIjJCXUASYnKCkqKyzTAdIBLS7RAdABLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVG2wFHSElKzwHOAUvNAUzMAU1OT1BRUlNUVVZXWFlaW1xdXl9gY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BrgEhEAwWC0EBIRAMFQtBrwEhEAwUC0GwASEQDBMLQbEBIRAMEgtBswEhEAwRC0GyASEQDBALQbQBIRAMDwtBtQEhEAwOC0G2ASEQDA0LQbcBIRAMDAtBuAEhEAwLC0G5ASEQDAoLQboBIRAMCQtBuwEhEAwIC0HGASEQDAcLQbwBIRAMBgtBvQEhEAwFC0G+ASEQDAQLQb8BIRAMAwtBwAEhEAwCC0HCASEQDAELQcEBIRALA0ACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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lADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0wA2AhwgACAUNgIUIAAgATYCDEEAIRAMowELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDEMLIABB5QA2AhwgACAUNgIUIAAgATYCDEEAIRAMogELIABBADYCHCAAIBQ2AhQgAEHDj4CAADYCECAAQQc2AgxBACEQDKEBCyAAQQA2AhwgACABNgIUIABBw4+AgAA2AhAgAEEHNgIMQQAhEAygAQtBACEQIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgwMnwELIABBADYCHCAAIBQ2AhQgAEGMnICAADYCECAAQQc2AgxBACEQDJ4BCyAAQQA2AhwgACAUNgIUIABB/pGAgAA2AhAgAEEHNgIMQQAhEAydAQsgAEEANgIcIAAgATYCFCAAQY6bgIAANgIQIABBBjYCDEEAIRAMnAELIBBBFUYNVyAAQQA2AhwgACABNgIUIABBzI6AgAA2AhAgAEEgNgIMQQAhEAybAQsgAEEANgIAIBBBAWohAUEkIRAL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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIBAOxwEAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB4fICEjJSg/QEFERUZHSElKS0xNT1BRUlPeA1dZW1xd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DEEAIRAMswELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMsgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDE0LIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMsQELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDFELIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMsAELIABBADYCHCAAIAE2AhQgAEHGioCAADYCECAAQQc2AgxBACEQDK8BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDK4BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxJCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDK0BCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDKwBCyAAQQA2AhwgACABNgIUIABB3IiAgAA2AhAgAEEHNgIMQQAhEAyrAQsgEEE/Rw0BIAFBAWohAQtBBSEQDJABC0EAIRAgAEEANgIcIAAgATYCFCAAQf2SgIAANgIQIABBBzYCDAyoAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAynAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMQgsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAymAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMRgsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAylAQsgACgCBCEBIABBADYCBAJAIAAgASAUEKeAgIAAIgENACAUIQEMPwsgAEHSADYCHCAAIBQ2AhQgACABNgIMQQAhEAykAQsgACgCB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AAAAAAAAAAAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAgAAAAACAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw=="},50172:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((n=>{const i=e[n];if(typeof i==="number"){t[n]=i}}));return t}t.enumToMap=enumToMap},47501:(e,t,n)=>{"use strict";const{kClients:i}=n(36443);const o=n(59965);const{kAgent:d,kMockAgentSet:p,kMockAgentGet:f,kDispatches:y,kIsMockActive:v,kNetConnect:D,kGetNetConnect:M,kOptions:U,kFactory:V}=n(91117);const j=n(47365);const K=n(94004);const{matchValue:ee,buildMockOptions:te}=n(53397);const{InvalidArgumentError:re,UndiciError:ne}=n(68707);const ie=n(28611);const oe=n(91529);const se=n(56142);class FakeWeakRef{constructor(e){this.value=e}deref(){return this.value}}class MockAgent extends ie{constructor(e){super(e);this[D]=true;this[v]=true;if(e&&e.agent&&typeof e.agent.dispatch!=="function"){throw new re("Argument opts.agent must implement Agent")}const t=e&&e.agent?e.agent:new o(e);this[d]=t;this[i]=t[i];this[U]=te(e)}get(e){let t=this[f](e);if(!t){t=this[V](e);this[p](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[d].dispatch(e,t)}async close(){await this[d].close();this[i].clear()}deactivate(){this[v]=false}activate(){this[v]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[D])){this[D].push(e)}else{this[D]=[e]}}else if(typeof e==="undefined"){this[D]=true}else{throw new re("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[D]=false}get isMockActive(){return this[v]}[p](e,t){this[i].set(e,new FakeWeakRef(t))}[V](e){const t=Object.assign({agent:this},this[U]);return this[U]&&this[U].connections===1?new j(e,t):new K(e,t)}[f](e){const t=this[i].get(e);if(t){return t.deref()}if(typeof e!=="string"){const t=this[V]("http://localhost:9999");this[p](e,t);return t}for(const[t,n]of Array.from(this[i])){const i=n.deref();if(i&&typeof t!=="string"&&ee(t,e)){const t=this[V](e);this[p](e,t);t[y]=i[y];return t}}}[M](){return this[D]}pendingInterceptors(){const e=this[i];return Array.from(e.entries()).flatMap((([e,t])=>t.deref()[y].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new se}={}){const t=this.pendingInterceptors();if(t.length===0){return}const n=new oe("interceptor","interceptors").pluralize(t.length);throw new ne(`\n${n.count} ${n.noun} ${n.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},47365:(e,t,n)=>{"use strict";const{promisify:i}=n(39023);const o=n(86197);const{buildMockDispatch:d}=n(53397);const{kDispatches:p,kMockAgent:f,kClose:y,kOriginalClose:v,kOrigin:D,kOriginalDispatch:M,kConnected:U}=n(91117);const{MockInterceptor:V}=n(31511);const j=n(36443);const{InvalidArgumentError:K}=n(68707);class MockClient extends o{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new K("Argument opts.agent must implement Agent")}this[f]=t.agent;this[D]=e;this[p]=[];this[U]=1;this[M]=this.dispatch;this[v]=this.close.bind(this);this.dispatch=d.call(this);this.close=this[y]}get[j.kConnected](){return this[U]}intercept(e){return new V(e,this[p])}async[y](){await i(this[v])();this[U]=0;this[f][j.kClients].delete(this[D])}}e.exports=MockClient},52429:(e,t,n)=>{"use strict";const{UndiciError:i}=n(68707);class MockNotMatchedError extends i{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}}e.exports={MockNotMatchedError:MockNotMatchedError}},31511:(e,t,n)=>{"use strict";const{getResponseData:i,buildKey:o,addMockDispatch:d}=n(53397);const{kDispatches:p,kDispatchKey:f,kDefaultHeaders:y,kDefaultTrailers:v,kContentLength:D,kMockDispatch:M}=n(91117);const{InvalidArgumentError:U}=n(68707);const{buildURL:V}=n(3440);class MockScope{constructor(e){this[M]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new U("waitInMs must be a valid integer > 0")}this[M].delay=e;return this}persist(){this[M].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new U("repeatTimes must be a valid integer > 0")}this[M].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new U("opts must be an object")}if(typeof e.path==="undefined"){throw new U("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=V(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[f]=o(e);this[p]=t;this[y]={};this[v]={};this[D]=false}createMockScopeDispatchData(e,t,n={}){const o=i(t);const d=this[D]?{"content-length":o.length}:{};const p={...this[y],...d,...n.headers};const f={...this[v],...n.trailers};return{statusCode:e,data:t,headers:p,trailers:f}}validateReplyParameters(e,t,n){if(typeof e==="undefined"){throw new U("statusCode must be defined")}if(typeof t==="undefined"){throw new U("data must be defined")}if(typeof n!=="object"){throw new U("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const n=e(t);if(typeof n!=="object"){throw new U("reply options callback must return an object")}const{statusCode:i,data:o="",responseOptions:d={}}=n;this.validateReplyParameters(i,o,d);return{...this.createMockScopeDispatchData(i,o,d)}};const t=d(this[p],this[f],wrappedDefaultsCallback);return new MockScope(t)}const[t,n="",i={}]=[...arguments];this.validateReplyParameters(t,n,i);const o=this.createMockScopeDispatchData(t,n,i);const y=d(this[p],this[f],o);return new MockScope(y)}replyWithError(e){if(typeof e==="undefined"){throw new U("error must be defined")}const t=d(this[p],this[f],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new U("headers must be defined")}this[y]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new U("trailers must be defined")}this[v]=e;return this}replyContentLength(){this[D]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},94004:(e,t,n)=>{"use strict";const{promisify:i}=n(39023);const o=n(35076);const{buildMockDispatch:d}=n(53397);const{kDispatches:p,kMockAgent:f,kClose:y,kOriginalClose:v,kOrigin:D,kOriginalDispatch:M,kConnected:U}=n(91117);const{MockInterceptor:V}=n(31511);const j=n(36443);const{InvalidArgumentError:K}=n(68707);class MockPool extends o{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new K("Argument opts.agent must implement Agent")}this[f]=t.agent;this[D]=e;this[p]=[];this[U]=1;this[M]=this.dispatch;this[v]=this.close.bind(this);this.dispatch=d.call(this);this.close=this[y]}get[j.kConnected](){return this[U]}intercept(e){return new V(e,this[p])}async[y](){await i(this[v])();this[U]=0;this[f][j.kClients].delete(this[D])}}e.exports=MockPool},91117:e=>{"use strict";e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(e,t,n)=>{"use strict";const{MockNotMatchedError:i}=n(52429);const{kDispatches:o,kMockAgent:d,kOriginalDispatch:p,kOrigin:f,kGetNetConnect:y}=n(91117);const{buildURL:v,nop:D}=n(3440);const{STATUS_CODES:M}=n(58611);const{types:{isPromise:U}}=n(39023);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let n=0;n!e)).filter((({path:e})=>matchValue(safeUrl(e),o)));if(d.length===0){throw new i(`Mock dispatch not matched for path '${o}'`)}d=d.filter((({method:e})=>matchValue(e,t.method)));if(d.length===0){throw new i(`Mock dispatch not matched for method '${t.method}'`)}d=d.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(d.length===0){throw new i(`Mock dispatch not matched for body '${t.body}'`)}d=d.filter((e=>matchHeaders(e,t.headers)));if(d.length===0){throw new i(`Mock dispatch not matched for headers '${typeof t.headers==="object"?JSON.stringify(t.headers):t.headers}'`)}return d[0]}function addMockDispatch(e,t,n){const i={timesInvoked:0,times:1,persist:false,consumed:false};const o=typeof n==="function"?{callback:n}:{...n};const d={...i,...t,pending:true,data:{error:null,...o}};e.push(d);return d}function deleteMockDispatch(e,t){const n=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(n!==-1){e.splice(n,1)}}function buildKey(e){const{path:t,method:n,body:i,headers:o,query:d}=e;return{path:t,method:n,body:i,headers:o,query:d}}function generateKeyValues(e){return Object.entries(e).reduce(((e,[t,n])=>[...e,Buffer.from(`${t}`),Array.isArray(n)?n.map((e=>Buffer.from(`${e}`))):Buffer.from(`${n}`)]),[])}function getStatusText(e){return M[e]||"unknown"}async function getResponse(e){const t=[];for await(const n of e){t.push(n)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const n=buildKey(e);const i=getMockDispatch(this[o],n);i.timesInvoked++;if(i.data.callback){i.data={...i.data,...i.data.callback(e)}}const{data:{statusCode:d,data:p,headers:f,trailers:y,error:v},delay:M,persist:V}=i;const{timesInvoked:j,times:K}=i;i.consumed=!V&&j>=K;i.pending=j0){setTimeout((()=>{handleReply(this[o])}),M)}else{handleReply(this[o])}function handleReply(i,o=p){const v=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const M=typeof o==="function"?o({...e,headers:v}):o;if(U(M)){M.then((e=>handleReply(i,e)));return}const V=getResponseData(M);const j=generateKeyValues(f);const K=generateKeyValues(y);t.abort=D;t.onHeaders(d,j,resume,getStatusText(d));t.onData(Buffer.from(V));t.onComplete(K);deleteMockDispatch(i,n)}function resume(){}return true}function buildMockDispatch(){const e=this[d];const t=this[f];const n=this[p];return function dispatch(o,d){if(e.isMockActive){try{mockDispatch.call(this,o,d)}catch(p){if(p instanceof i){const f=e[y]();if(f===false){throw new i(`${p.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(f,t)){n.call(this,o,d)}else{throw new i(`${p.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw p}}}else{n.call(this,o,d)}}}function checkNetConnect(e,t){const n=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,n.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...n}=e;return n}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},56142:(e,t,n)=>{"use strict";const{Transform:i}=n(2203);const{Console:o}=n(64236);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new i({transform(e,t,n){n(null,e)}});this.logger=new o({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:n},persist:i,times:o,timesInvoked:d,origin:p})=>({Method:e,Origin:p,Path:t,"Status code":n,Persistent:i?"✅":"❌",Invocations:d,Remaining:i?Infinity:o-d})));this.logger.table(t);return this.transform.read().toString()}}},91529:e=>{"use strict";const t={pronoun:"it",is:"is",was:"was",this:"this"};const n={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const i=e===1;const o=i?t:n;const d=i?this.singular:this.plural;return{...o,count:e,noun:d}}}},34869:e=>{"use strict";const t=2048;const n=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&n)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&n}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&n;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},58640:(e,t,n)=>{"use strict";const i=n(50001);const o=n(34869);const{kConnected:d,kSize:p,kRunning:f,kPending:y,kQueued:v,kBusy:D,kFree:M,kUrl:U,kClose:V,kDestroy:j,kDispatch:K}=n(36443);const ee=n(24622);const te=Symbol("clients");const re=Symbol("needDrain");const ne=Symbol("queue");const ie=Symbol("closed resolve");const oe=Symbol("onDrain");const se=Symbol("onConnect");const ae=Symbol("onDisconnect");const Ae=Symbol("onConnectionError");const ce=Symbol("get dispatcher");const le=Symbol("add client");const ue=Symbol("remove client");const de=Symbol("stats");class PoolBase extends i{constructor(){super();this[ne]=new o;this[te]=[];this[v]=0;const e=this;this[oe]=function onDrain(t,n){const i=e[ne];let o=false;while(!o){const t=i.shift();if(!t){break}e[v]--;o=!this.dispatch(t.opts,t.handler)}this[re]=o;if(!this[re]&&e[re]){e[re]=false;e.emit("drain",t,[e,...n])}if(e[ie]&&i.isEmpty()){Promise.all(e[te].map((e=>e.close()))).then(e[ie])}};this[se]=(t,n)=>{e.emit("connect",t,[e,...n])};this[ae]=(t,n,i)=>{e.emit("disconnect",t,[e,...n],i)};this[Ae]=(t,n,i)=>{e.emit("connectionError",t,[e,...n],i)};this[de]=new ee(this)}get[D](){return this[re]}get[d](){return this[te].filter((e=>e[d])).length}get[M](){return this[te].filter((e=>e[d]&&!e[re])).length}get[y](){let e=this[v];for(const{[y]:t}of this[te]){e+=t}return e}get[f](){let e=0;for(const{[f]:t}of this[te]){e+=t}return e}get[p](){let e=this[v];for(const{[p]:t}of this[te]){e+=t}return e}get stats(){return this[de]}async[V](){if(this[ne].isEmpty()){return Promise.all(this[te].map((e=>e.close())))}else{return new Promise((e=>{this[ie]=e}))}}async[j](e){while(true){const t=this[ne].shift();if(!t){break}t.handler.onError(e)}return Promise.all(this[te].map((t=>t.destroy(e))))}[K](e,t){const n=this[ce]();if(!n){this[re]=true;this[ne].push({opts:e,handler:t});this[v]++}else if(!n.dispatch(e,t)){n[re]=true;this[re]=!this[ce]()}return!this[re]}[le](e){e.on("drain",this[oe]).on("connect",this[se]).on("disconnect",this[ae]).on("connectionError",this[Ae]);this[te].push(e);if(this[re]){process.nextTick((()=>{if(this[re]){this[oe](e[U],[this,e])}}))}return this}[ue](e){e.close((()=>{const t=this[te].indexOf(e);if(t!==-1){this[te].splice(t,1)}}));this[re]=this[te].some((e=>!e[re]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:te,kNeedDrain:re,kAddClient:le,kRemoveClient:ue,kGetDispatcher:ce}},24622:(e,t,n)=>{const{kFree:i,kConnected:o,kPending:d,kQueued:p,kRunning:f,kSize:y}=n(36443);const v=Symbol("pool");class PoolStats{constructor(e){this[v]=e}get connected(){return this[v][o]}get free(){return this[v][i]}get pending(){return this[v][d]}get queued(){return this[v][p]}get running(){return this[v][f]}get size(){return this[v][y]}}e.exports=PoolStats},35076:(e,t,n)=>{"use strict";const{PoolBase:i,kClients:o,kNeedDrain:d,kAddClient:p,kGetDispatcher:f}=n(58640);const y=n(86197);const{InvalidArgumentError:v}=n(68707);const D=n(3440);const{kUrl:M,kInterceptors:U}=n(36443);const V=n(59136);const j=Symbol("options");const K=Symbol("connections");const ee=Symbol("factory");function defaultFactory(e,t){return new y(e,t)}class Pool extends i{constructor(e,{connections:t,factory:n=defaultFactory,connect:i,connectTimeout:d,tls:p,maxCachedSessions:f,socketPath:y,autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re,allowH2:ne,...ie}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new v("invalid connections")}if(typeof n!=="function"){throw new v("factory must be a function.")}if(i!=null&&typeof i!=="function"&&typeof i!=="object"){throw new v("connect must be a function or an object")}if(typeof i!=="function"){i=V({...p,maxCachedSessions:f,allowH2:ne,socketPath:y,timeout:d,...D.nodeHasAutoSelectFamily&&te?{autoSelectFamily:te,autoSelectFamilyAttemptTimeout:re}:undefined,...i})}this[U]=ie.interceptors&&ie.interceptors.Pool&&Array.isArray(ie.interceptors.Pool)?ie.interceptors.Pool:[];this[K]=t||null;this[M]=D.parseOrigin(e);this[j]={...D.deepClone(ie),connect:i,allowH2:ne};this[j].interceptors=ie.interceptors?{...ie.interceptors}:undefined;this[ee]=n;this.on("connectionError",((e,t,n)=>{for(const e of t){const t=this[o].indexOf(e);if(t!==-1){this[o].splice(t,1)}}}))}[f](){let e=this[o].find((e=>!e[d]));if(e){return e}if(!this[K]||this[o].length{"use strict";const{kProxy:i,kClose:o,kDestroy:d,kInterceptors:p}=n(36443);const{URL:f}=n(87016);const y=n(59965);const v=n(35076);const D=n(50001);const{InvalidArgumentError:M,RequestAbortedError:U}=n(68707);const V=n(59136);const j=Symbol("proxy agent");const K=Symbol("proxy client");const ee=Symbol("proxy headers");const te=Symbol("request tls settings");const re=Symbol("proxy tls settings");const ne=Symbol("connect endpoint function");function defaultProtocolPort(e){return e==="https:"?443:80}function buildProxyOptions(e){if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new M("Proxy opts.uri is mandatory")}return{uri:e.uri,protocol:e.protocol||"https"}}function defaultFactory(e,t){return new v(e,t)}class ProxyAgent extends D{constructor(e){super(e);this[i]=buildProxyOptions(e);this[j]=new y(e);this[p]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];if(typeof e==="string"){e={uri:e}}if(!e||!e.uri){throw new M("Proxy opts.uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new M("Proxy opts.clientFactory must be a function.")}this[te]=e.requestTls;this[re]=e.proxyTls;this[ee]=e.headers||{};const n=new f(e.uri);const{origin:o,port:d,host:v,username:D,password:ie}=n;if(e.auth&&e.token){throw new M("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[ee]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[ee]["proxy-authorization"]=e.token}else if(D&&ie){this[ee]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(D)}:${decodeURIComponent(ie)}`).toString("base64")}`}const oe=V({...e.proxyTls});this[ne]=V({...e.requestTls});this[K]=t(n,{connect:oe});this[j]=new y({...e,connect:async(e,t)=>{let n=e.host;if(!e.port){n+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:i,statusCode:p}=await this[K].connect({origin:o,port:d,path:n,signal:e.signal,headers:{...this[ee],host:v}});if(p!==200){i.on("error",(()=>{})).destroy();t(new U(`Proxy response (${p}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,i);return}let f;if(this[te]){f=this[te].servername}else{f=e.servername}this[ne]({...e,servername:f,httpSocket:i},t)}catch(e){t(e)}}})}dispatch(e,t){const{host:n}=new f(e.origin);const i=buildHeaders(e.headers);throwIfProxyAuthIsSent(i);return this[j].dispatch({...e,headers:{...i,host:n}},t)}async[o](){await this[j].close();await this[K].close()}async[d](){await this[j].destroy();await this[K].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let n=0;ne.toLowerCase()==="proxy-authorization"));if(t){throw new M("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},28804:e=>{"use strict";let t=Date.now();let n;const i=[];function onTimeout(){t=Date.now();let e=i.length;let n=0;while(n0&&t>=o.state){o.state=-1;o.callback(o.opaque)}if(o.state===-1){o.state=-2;if(n!==e-1){i[n]=i.pop()}else{i.pop()}e-=1}else{n+=1}}if(i.length>0){refreshTimeout()}}function refreshTimeout(){if(n&&n.refresh){n.refresh()}else{clearTimeout(n);n=setTimeout(onTimeout,1e3);if(n.unref){n.unref()}}}class Timeout{constructor(e,t,n){this.callback=e;this.delay=t;this.opaque=n;this.state=-2;this.refresh()}refresh(){if(this.state===-2){i.push(this);if(!n||i.length===1){refreshTimeout()}}this.state=0}clear(){this.state=-1}}e.exports={setTimeout(e,t,n){return t<1e3?setTimeout(e,t,n):new Timeout(e,t,n)},clearTimeout(e){if(e instanceof Timeout){e.clear()}else{clearTimeout(e)}}}},68550:(e,t,n)=>{"use strict";const i=n(31637);const{uid:o,states:d}=n(45913);const{kReadyState:p,kSentClose:f,kByteParser:y,kReceivedClose:v}=n(62933);const{fireEvent:D,failWebsocketConnection:M}=n(3574);const{CloseEvent:U}=n(46255);const{makeRequest:V}=n(25194);const{fetching:j}=n(12315);const{Headers:K}=n(26349);const{getGlobalDispatcher:ee}=n(32581);const{kHeadersList:te}=n(36443);const re={};re.open=i.channel("undici:websocket:open");re.close=i.channel("undici:websocket:close");re.socketError=i.channel("undici:websocket:socket_error");let ne;try{ne=n(76982)}catch{}function establishWebSocketConnection(e,t,n,i,d){const p=e;p.protocol=e.protocol==="ws:"?"http:":"https:";const f=V({urlList:[p],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(d.headers){const e=new K(d.headers)[te];f.headersList=e}const y=ne.randomBytes(16).toString("base64");f.headersList.append("sec-websocket-key",y);f.headersList.append("sec-websocket-version","13");for(const e of t){f.headersList.append("sec-websocket-protocol",e)}const v="";const D=j({request:f,useParallelQueue:true,dispatcher:d.dispatcher??ee(),processResponse(e){if(e.type==="error"||e.status!==101){M(n,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){M(n,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){M(n,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){M(n,'Server did not set Connection header to "upgrade".');return}const d=e.headersList.get("Sec-WebSocket-Accept");const p=ne.createHash("sha1").update(y+o).digest("base64");if(d!==p){M(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const D=e.headersList.get("Sec-WebSocket-Extensions");if(D!==null&&D!==v){M(n,"Received different permessage-deflate than the one set.");return}const U=e.headersList.get("Sec-WebSocket-Protocol");if(U!==null&&U!==f.headersList.get("Sec-WebSocket-Protocol")){M(n,"Protocol was not set in the opening handshake.");return}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(re.open.hasSubscribers){re.open.publish({address:e.socket.address(),protocol:U,extensions:D})}i(e)}});return D}function onSocketData(e){if(!this.ws[y].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const t=e[f]&&e[v];let n=1005;let i="";const o=e[y].closingInfo;if(o){n=o.code??1005;i=o.reason}else if(!e[f]){n=1006}e[p]=d.CLOSED;D("close",e,U,{wasClean:t,code:n,reason:i});if(re.close.hasSubscribers){re.close.publish({websocket:e,code:n,reason:i})}}function onSocketError(e){const{ws:t}=this;t[p]=d.CLOSING;if(re.socketError.hasSubscribers){re.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection}},45913:e=>{"use strict";const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const n={enumerable:true,writable:false,configurable:false};const i={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const o={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const d=2**16-1;const p={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const f=Buffer.allocUnsafe(0);e.exports={uid:t,staticPropertyDescriptors:n,states:i,opcodes:o,maxUnsigned16Bit:d,parserStates:p,emptyBuffer:f}},46255:(e,t,n)=>{"use strict";const{webidl:i}=n(74222);const{kEnumerableProperty:o}=n(3440);const{MessagePort:d}=n(28167);class MessageEvent extends Event{#o;constructor(e,t={}){i.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"});e=i.converters.DOMString(e);t=i.converters.MessageEventInit(t);super(e,t);this.#o=t}get data(){i.brandCheck(this,MessageEvent);return this.#o.data}get origin(){i.brandCheck(this,MessageEvent);return this.#o.origin}get lastEventId(){i.brandCheck(this,MessageEvent);return this.#o.lastEventId}get source(){i.brandCheck(this,MessageEvent);return this.#o.source}get ports(){i.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#o.ports)){Object.freeze(this.#o.ports)}return this.#o.ports}initMessageEvent(e,t=false,n=false,o=null,d="",p="",f=null,y=[]){i.brandCheck(this,MessageEvent);i.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"});return new MessageEvent(e,{bubbles:t,cancelable:n,data:o,origin:d,lastEventId:p,source:f,ports:y})}}class CloseEvent extends Event{#o;constructor(e,t={}){i.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"});e=i.converters.DOMString(e);t=i.converters.CloseEventInit(t);super(e,t);this.#o=t}get wasClean(){i.brandCheck(this,CloseEvent);return this.#o.wasClean}get code(){i.brandCheck(this,CloseEvent);return this.#o.code}get reason(){i.brandCheck(this,CloseEvent);return this.#o.reason}}class ErrorEvent extends Event{#o;constructor(e,t){i.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"});super(e,t);e=i.converters.DOMString(e);t=i.converters.ErrorEventInit(t??{});this.#o=t}get message(){i.brandCheck(this,ErrorEvent);return this.#o.message}get filename(){i.brandCheck(this,ErrorEvent);return this.#o.filename}get lineno(){i.brandCheck(this,ErrorEvent);return this.#o.lineno}get colno(){i.brandCheck(this,ErrorEvent);return this.#o.colno}get error(){i.brandCheck(this,ErrorEvent);return this.#o.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:o,origin:o,lastEventId:o,source:o,ports:o,initMessageEvent:o});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:o,code:o,wasClean:o});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:o,filename:o,lineno:o,colno:o,error:o});i.converters.MessagePort=i.interfaceConverter(d);i.converters["sequence"]=i.sequenceConverter(i.converters.MessagePort);const p=[{key:"bubbles",converter:i.converters.boolean,defaultValue:false},{key:"cancelable",converter:i.converters.boolean,defaultValue:false},{key:"composed",converter:i.converters.boolean,defaultValue:false}];i.converters.MessageEventInit=i.dictionaryConverter([...p,{key:"data",converter:i.converters.any,defaultValue:null},{key:"origin",converter:i.converters.USVString,defaultValue:""},{key:"lastEventId",converter:i.converters.DOMString,defaultValue:""},{key:"source",converter:i.nullableConverter(i.converters.MessagePort),defaultValue:null},{key:"ports",converter:i.converters["sequence"],get defaultValue(){return[]}}]);i.converters.CloseEventInit=i.dictionaryConverter([...p,{key:"wasClean",converter:i.converters.boolean,defaultValue:false},{key:"code",converter:i.converters["unsigned short"],defaultValue:0},{key:"reason",converter:i.converters.USVString,defaultValue:""}]);i.converters.ErrorEventInit=i.dictionaryConverter([...p,{key:"message",converter:i.converters.DOMString,defaultValue:""},{key:"filename",converter:i.converters.USVString,defaultValue:""},{key:"lineno",converter:i.converters["unsigned long"],defaultValue:0},{key:"colno",converter:i.converters["unsigned long"],defaultValue:0},{key:"error",converter:i.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent}},31237:(e,t,n)=>{"use strict";const{maxUnsigned16Bit:i}=n(45913);let o;try{o=n(76982)}catch{}class WebsocketFrameSend{constructor(e){this.frameData=e;this.maskKey=o.randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let n=t;let o=6;if(t>i){o+=8;n=127}else if(t>125){o+=2;n=126}const d=Buffer.allocUnsafe(t+o);d[0]=d[1]=0;d[0]|=128;d[0]=(d[0]&240)+e; -/*! ws. MIT License. Einar Otto Stangvik */d[o-4]=this.maskKey[0];d[o-3]=this.maskKey[1];d[o-2]=this.maskKey[2];d[o-1]=this.maskKey[3];d[1]=n;if(n===126){d.writeUInt16BE(t,2)}else if(n===127){d[2]=d[3]=0;d.writeUIntBE(t,4,6)}d[1]|=128;for(let e=0;e{"use strict";const{Writable:i}=n(2203);const o=n(31637);const{parserStates:d,opcodes:p,states:f,emptyBuffer:y}=n(45913);const{kReadyState:v,kSentClose:D,kResponse:M,kReceivedClose:U}=n(62933);const{isValidStatusCode:V,failWebsocketConnection:j,websocketMessageReceived:K}=n(3574);const{WebsocketFrameSend:ee}=n(31237);const te={};te.ping=o.channel("undici:websocket:ping");te.pong=o.channel("undici:websocket:pong");class ByteParser extends i{#s=[];#a=0;#A=d.INFO;#c={};#l=[];constructor(e){super();this.ws=e}_write(e,t,n){this.#s.push(e);this.#a+=e.length;this.run(n)}run(e){while(true){if(this.#A===d.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#c.fin=(t[0]&128)!==0;this.#c.opcode=t[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==p.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==p.BINARY&&this.#c.opcode!==p.TEXT){j(this.ws,"Invalid frame type was fragmented.");return}const n=t[1]&127;if(n<=125){this.#c.payloadLength=n;this.#A=d.READ_DATA}else if(n===126){this.#A=d.PAYLOADLENGTH_16}else if(n===127){this.#A=d.PAYLOADLENGTH_64}if(this.#c.fragmented&&n>125){j(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===p.PING||this.#c.opcode===p.PONG||this.#c.opcode===p.CLOSE)&&n>125){j(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===p.CLOSE){if(n===1){j(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(n);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[D]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const t=new ee(e);this.ws[M].socket.write(t.createFrame(p.CLOSE),(e=>{if(!e){this.ws[D]=true}}))}this.ws[v]=f.CLOSING;this.ws[U]=true;this.end();return}else if(this.#c.opcode===p.PING){const t=this.consume(n);if(!this.ws[U]){const e=new ee(t);this.ws[M].socket.write(e.createFrame(p.PONG));if(te.ping.hasSubscribers){te.ping.publish({payload:t})}}this.#A=d.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#c.opcode===p.PONG){const t=this.consume(n);if(te.pong.hasSubscribers){te.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#A===d.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0);this.#A=d.READ_DATA}else if(this.#A===d.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){j(this.ws,"Received payload length > 2^31 bytes.");return}const i=t.readUInt32BE(4);this.#c.payloadLength=(n<<8)+i;this.#A=d.READ_DATA}else if(this.#A===d.READ_DATA){if(this.#a=this.#c.payloadLength){const e=this.consume(this.#c.payloadLength);this.#l.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===p.CONTINUATION){const e=Buffer.concat(this.#l);K(this.ws,this.#c.originalOpcode,e);this.#c={};this.#l.length=0}this.#A=d.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return y}if(this.#s[0].length===e){this.#a-=this.#s[0].length;return this.#s.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const i=this.#s[0];const{length:o}=i;if(o+n===e){t.set(this.#s.shift(),n);break}else if(o+n>e){t.set(i.subarray(0,e-n),n);this.#s[0]=i.subarray(e-n);break}else{t.set(this.#s.shift(),n);n+=i.length}}this.#a-=e;return t}parseCloseBody(e,t){let n;if(t.length>=2){n=t.readUInt16BE(0)}if(e){if(!V(n)){return null}return{code:n}}let i=t.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}if(n!==undefined&&!V(n)){return null}try{i=new TextDecoder("utf-8",{fatal:true}).decode(i)}catch{return null}return{code:n,reason:i}}get closingInfo(){return this.#c.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{"use strict";e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,n)=>{"use strict";const{kReadyState:i,kController:o,kResponse:d,kBinaryType:p,kWebSocketURL:f}=n(62933);const{states:y,opcodes:v}=n(45913);const{MessageEvent:D,ErrorEvent:M}=n(46255);function isEstablished(e){return e[i]===y.OPEN}function isClosing(e){return e[i]===y.CLOSING}function isClosed(e){return e[i]===y.CLOSED}function fireEvent(e,t,n=Event,i){const o=new n(e,i);t.dispatchEvent(o)}function websocketMessageReceived(e,t,n){if(e[i]!==y.OPEN){return}let o;if(t===v.TEXT){try{o=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===v.BINARY){if(e[p]==="blob"){o=new Blob([n])}else{o=new Uint8Array(n).buffer}}fireEvent("message",e,D,{origin:e[f].origin,data:o})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[o]:n,[d]:i}=e;n.abort();if(i?.socket&&!i.socket.destroyed){i.socket.destroy()}if(t){fireEvent("error",e,M,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,n)=>{"use strict";const{webidl:i}=n(74222);const{DOMException:o}=n(87326);const{URLSerializer:d}=n(94322);const{getGlobalOrigin:p}=n(75628);const{staticPropertyDescriptors:f,states:y,opcodes:v,emptyBuffer:D}=n(45913);const{kWebSocketURL:M,kReadyState:U,kController:V,kBinaryType:j,kResponse:K,kSentClose:ee,kByteParser:te}=n(62933);const{isEstablished:re,isClosing:ne,isValidSubprotocol:ie,failWebsocketConnection:oe,fireEvent:se}=n(3574);const{establishWebSocketConnection:ae}=n(68550);const{WebsocketFrameSend:Ae}=n(31237);const{ByteParser:ce}=n(43171);const{kEnumerableProperty:le,isBlobLike:ue}=n(3440);const{getGlobalDispatcher:de}=n(32581);const{types:pe}=n(39023);let ge=false;class WebSocket extends EventTarget{#u={open:null,error:null,close:null,message:null};#d=0;#p="";#g="";constructor(e,t=[]){super();i.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!ge){ge=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const n=i.converters["DOMString or sequence or WebSocketInit"](t);e=i.converters.USVString(e);t=n.protocols;const d=p();let f;try{f=new URL(e,d)}catch(e){throw new o(e,"SyntaxError")}if(f.protocol==="http:"){f.protocol="ws:"}else if(f.protocol==="https:"){f.protocol="wss:"}if(f.protocol!=="ws:"&&f.protocol!=="wss:"){throw new o(`Expected a ws: or wss: protocol, got ${f.protocol}`,"SyntaxError")}if(f.hash||f.href.endsWith("#")){throw new o("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new o("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>ie(e)))){throw new o("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[M]=new URL(f.href);this[V]=ae(f,t,this,(e=>this.#m(e)),n);this[U]=WebSocket.CONNECTING;this[j]="blob"}close(e=undefined,t=undefined){i.brandCheck(this,WebSocket);if(e!==undefined){e=i.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=i.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new o("invalid code","InvalidAccessError")}}let n=0;if(t!==undefined){n=Buffer.byteLength(t);if(n>123){throw new o(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError")}}if(this[U]===WebSocket.CLOSING||this[U]===WebSocket.CLOSED){}else if(!re(this)){oe(this,"Connection was closed before it was established.");this[U]=WebSocket.CLOSING}else if(!ne(this)){const i=new Ae;if(e!==undefined&&t===undefined){i.frameData=Buffer.allocUnsafe(2);i.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){i.frameData=Buffer.allocUnsafe(2+n);i.frameData.writeUInt16BE(e,0);i.frameData.write(t,2,"utf-8")}else{i.frameData=D}const o=this[K].socket;o.write(i.createFrame(v.CLOSE),(e=>{if(!e){this[ee]=true}}));this[U]=y.CLOSING}else{this[U]=WebSocket.CLOSING}}send(e){i.brandCheck(this,WebSocket);i.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=i.converters.WebSocketSendData(e);if(this[U]===WebSocket.CONNECTING){throw new o("Sent before connected.","InvalidStateError")}if(!re(this)||ne(this)){return}const t=this[K].socket;if(typeof e==="string"){const n=Buffer.from(e);const i=new Ae(n);const o=i.createFrame(v.TEXT);this.#d+=n.byteLength;t.write(o,(()=>{this.#d-=n.byteLength}))}else if(pe.isArrayBuffer(e)){const n=Buffer.from(e);const i=new Ae(n);const o=i.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(o,(()=>{this.#d-=n.byteLength}))}else if(ArrayBuffer.isView(e)){const n=Buffer.from(e,e.byteOffset,e.byteLength);const i=new Ae(n);const o=i.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(o,(()=>{this.#d-=n.byteLength}))}else if(ue(e)){const n=new Ae;e.arrayBuffer().then((e=>{const i=Buffer.from(e);n.frameData=i;const o=n.createFrame(v.BINARY);this.#d+=i.byteLength;t.write(o,(()=>{this.#d-=i.byteLength}))}))}}get readyState(){i.brandCheck(this,WebSocket);return this[U]}get bufferedAmount(){i.brandCheck(this,WebSocket);return this.#d}get url(){i.brandCheck(this,WebSocket);return d(this[M])}get extensions(){i.brandCheck(this,WebSocket);return this.#g}get protocol(){i.brandCheck(this,WebSocket);return this.#p}get onopen(){i.brandCheck(this,WebSocket);return this.#u.open}set onopen(e){i.brandCheck(this,WebSocket);if(this.#u.open){this.removeEventListener("open",this.#u.open)}if(typeof e==="function"){this.#u.open=e;this.addEventListener("open",e)}else{this.#u.open=null}}get onerror(){i.brandCheck(this,WebSocket);return this.#u.error}set onerror(e){i.brandCheck(this,WebSocket);if(this.#u.error){this.removeEventListener("error",this.#u.error)}if(typeof e==="function"){this.#u.error=e;this.addEventListener("error",e)}else{this.#u.error=null}}get onclose(){i.brandCheck(this,WebSocket);return this.#u.close}set onclose(e){i.brandCheck(this,WebSocket);if(this.#u.close){this.removeEventListener("close",this.#u.close)}if(typeof e==="function"){this.#u.close=e;this.addEventListener("close",e)}else{this.#u.close=null}}get onmessage(){i.brandCheck(this,WebSocket);return this.#u.message}set onmessage(e){i.brandCheck(this,WebSocket);if(this.#u.message){this.removeEventListener("message",this.#u.message)}if(typeof e==="function"){this.#u.message=e;this.addEventListener("message",e)}else{this.#u.message=null}}get binaryType(){i.brandCheck(this,WebSocket);return this[j]}set binaryType(e){i.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[j]="blob"}else{this[j]=e}}#m(e){this[K]=e;const t=new ce(this);t.on("drain",(function onParserDrain(){this.ws[K].socket.resume()}));e.socket.ws=this;this[te]=t;this[U]=y.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#g=n}const i=e.headersList.get("sec-websocket-protocol");if(i!==null){this.#p=i}se("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=y.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=y.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=y.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=y.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f,url:le,readyState:le,bufferedAmount:le,onopen:le,onerror:le,onclose:le,close:le,onmessage:le,binaryType:le,send:le,extensions:le,protocol:le,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f});i.converters["sequence"]=i.sequenceConverter(i.converters.DOMString);i.converters["DOMString or sequence"]=function(e){if(i.util.Type(e)==="Object"&&Symbol.iterator in e){return i.converters["sequence"](e)}return i.converters.DOMString(e)};i.converters.WebSocketInit=i.dictionaryConverter([{key:"protocols",converter:i.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return de()}},{key:"headers",converter:i.nullableConverter(i.converters.HeadersInit)}]);i.converters["DOMString or sequence or WebSocketInit"]=function(e){if(i.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return i.converters.WebSocketInit(e)}return{protocols:i.converters["DOMString or sequence"](e)}};i.converters.WebSocketSendData=function(e){if(i.util.Type(e)==="Object"){if(ue(e)){return i.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||pe.isAnyArrayBuffer(e)){return i.converters.BufferSource(e)}}return i.converters.USVString(e)};e.exports={WebSocket:WebSocket}},71798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sortVersions=sortVersions;t.isDir=isDir;t.downloadAsText=downloadAsText;t.isGHES=isGHES;const i=n(51455);const o=n(54844);function sortVersions(e){return e.sort(((e,t)=>{const n=e.split(".");const i=t.split(".");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLatestVersion=getLatestVersion;t.getLatestBranchVersion=getLatestBranchVersion;const i=n(54844);const o=n(71798);async function getLatestVersion(){const e=new i.HttpClient;const t=await e.getJson("http://api.wordpress.org/core/version-check/1.7/");if(t.statusCode===200&&t.result){return t.result.offers[0].version}throw new Error(`Failed to fetch WordPress versions: error ${t.statusCode}`)}async function getLatestBranchVersion(e){const t=new i.HttpClient;const n=await t.getJson("https://api.wordpress.org/core/version-check/1.7/");if(n.statusCode===200&&n.result){const t=n.result.offers.filter((t=>t.version.startsWith(e))).map((e=>e.version));const i=(0,o.sortVersions)(t);return i[0]}throw new Error(`Failed to fetch WordPress versions: error ${n.statusCode}`)}},3967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWordPressVersion=resolveWordPressVersion;t.getWordPressDownloadUrl=getWordPressDownloadUrl;t.getWordPressTestLibraryBaseUrl=getWordPressTestLibraryBaseUrl;const i=n(41974);const o="https://wordpress.org/nightly-builds/wordpress-latest.zip";const d="https://wordpress.org/wordpress-";const p="https://develop.svn.wordpress.org/";function resolveWordPressVersion(e){if(e==="nightly"||e==="trunk"){return Promise.resolve("nightly")}if(e==="latest"){return(0,i.getLatestVersion)()}if(e.endsWith(".x")){return(0,i.getLatestBranchVersion)(e.slice(0,-2))}return Promise.resolve(e)}function getWordPressDownloadUrl(e){if(e==="nightly"){return o}return`${d}${e}.zip`}function getWordPressTestLibraryBaseUrl(e){const t=e==="nightly"?"trunk":`tags/${e}`;return`${p}${t}`}},42613:e=>{"use strict";e.exports=require("assert")},90290:e=>{"use strict";e.exports=require("async_hooks")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},64236:e=>{"use strict";e.exports=require("console")},76982:e=>{"use strict";e.exports=require("crypto")},31637:e=>{"use strict";e.exports=require("diagnostics_channel")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},85675:e=>{"use strict";e.exports=require("http2")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},4573:e=>{"use strict";e.exports=require("node:buffer")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},51455:e=>{"use strict";e.exports=require("node:fs/promises")},37067:e=>{"use strict";e.exports=require("node:http")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},76760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},82987:e=>{"use strict";e.exports=require("perf_hooks")},83480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},63774:e=>{"use strict";e.exports=require("stream/web")},13193:e=>{"use strict";e.exports=require("string_decoder")},53557:e=>{"use strict";e.exports=require("timers")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},98253:e=>{"use strict";e.exports=require("util/types")},28167:e=>{"use strict";e.exports=require("worker_threads")},43106:e=>{"use strict";e.exports=require("zlib")},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const i=n(87779);class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,i.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const i=n(87779);class AzureSASCredential{get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,i.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var i=n(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return i.AzureKeyCredential}});var o=n(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return o.isKeyCredential}});var d=n(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var p=n(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return p.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return p.isSASCredential}});var f=n(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return f.isTokenCredential}})},99155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const i=n(87779);function isKeyCredential(e){return(0,i.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}},17698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const i=n(89994);const o=n(20741);function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}))}async function authorizeRequestOnClaimChallenge(e){var t;const{scopes:n,response:d}=e;const p=e.logger||i.logger;const f=d.headers.get("WWW-Authenticate");if(!f){p.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const y=parseCAEChallenge(f)||[];const v=y.find((e=>e.claims));if(!v){p.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const D=await e.getAccessToken(v.scope?[v.scope]:n,{claims:(0,o.decodeStringToString)(v.claims)});if(!D){return false}e.request.headers.set("Authorization",`${(t=D.tokenType)!==null&&t!==void 0?t:"Bearer"} ${D.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const n={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{var t;const i=requestToOptions(e.request);const o=getChallenge(e.response);if(o){const d=parseChallenge(o);const p=buildScopes(e,d);const f=extractTenantId(d);if(!f){return false}const y=await e.getAccessToken(p,Object.assign(Object.assign({},i),{tenantId:f}));if(!y){return false}e.request.headers.set(n.HeaderConstants.AUTHORIZATION,`${(t=y.tokenType)!==null&&t!==void 0?t:"Bearer"} ${y.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const i=n[1];if(i&&isUuid(i)){return i}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const i=new URL(t.resource_id);i.pathname=n.DefaultScope;let o=i.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const i=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const i=n(56058);const o=n(20778);const d=n(31530);const p=n(19688);const f=["application/json","text/json"];const y=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){var n,o,d,p,v,D,M;const U=(o=(n=e.expectedContentTypes)===null||n===void 0?void 0:n.json)!==null&&o!==void 0?o:f;const V=(p=(d=e.expectedContentTypes)===null||d===void 0?void 0:d.xml)!==null&&p!==void 0?p:y;const j=e.parseXML;const K=e.serializerOptions;const ee={xml:{rootName:(v=K===null||K===void 0?void 0:K.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=K===null||K===void 0?void 0:K.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=K===null||K===void 0?void 0:K.xml.xmlCharKey)!==null&&M!==void 0?M:i.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const n=await t(e);return deserializeResponseBody(U,V,n,ee,j)}}}function getOperationResponseMap(e){let t;const n=e.request;const i=(0,p.getOperationRequestInfo)(n);const o=i===null||i===void 0?void 0:i.operationSpec;if(o){if(!(i===null||i===void 0?void 0:i.operationResponseGetter)){t=o.responses[e.status]}else{t=i===null||i===void 0?void 0:i.operationResponseGetter(o,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=(0,p.getOperationRequestInfo)(t);const i=n===null||n===void 0?void 0:n.shouldDeserialize;let o;if(i===undefined){o=true}else if(typeof i==="boolean"){o=i}else{o=i(e)}return o}async function deserializeResponseBody(e,t,n,i,f){const y=await parse(e,t,n,i,f);if(!shouldDeserializeResponse(y)){return y}const v=(0,p.getOperationRequestInfo)(y.request);const D=v===null||v===void 0?void 0:v.operationSpec;if(!D||!D.responses){return y}const M=getOperationResponseMap(y);const{error:U,shouldReturnResponse:V}=handleErrorResponse(y,D,M,i);if(U){throw U}else if(V){return y}if(M){if(M.bodyMapper){let e=y.parsedBody;if(D.isXML&&M.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[M.bodyMapper.xmlElementName]:[]}try{y.parsedBody=D.serializer.deserialize(M.bodyMapper,e,"operationRes.parsedBody",i)}catch(e){const t=new o.RestError(`Error ${e} occurred in deserializing the responseBody - ${y.bodyAsText}`,{statusCode:y.status,request:y.request,response:y});throw t}}else if(D.httpMethod==="HEAD"){y.parsedBody=n.status>=200&&n.status<300}if(M.headersMapper){y.parsedHeaders=D.serializer.deserialize(M.headersMapper,y.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return y}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,i){var p,f,y,v,D;const M=200<=e.status&&e.status<300;const U=isOperationSpecEmpty(t)?M:!!n;if(U){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const V=n!==null&&n!==void 0?n:t.responses.default;const j=((p=e.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(e.status))?`Unexpected status code: ${e.status}`:e.bodyAsText;const K=new o.RestError(j,{statusCode:e.status,request:e.request,response:e});if(!V&&!(((y=(f=e.parsedBody)===null||f===void 0?void 0:f.error)===null||y===void 0?void 0:y.code)&&((D=(v=e.parsedBody)===null||v===void 0?void 0:v.error)===null||D===void 0?void 0:D.message))){throw K}const ee=V===null||V===void 0?void 0:V.bodyMapper;const te=V===null||V===void 0?void 0:V.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let o;if(ee){let e=n;if(t.isXML&&ee.type.name===d.MapperTypeNames.Sequence){e=[];const t=ee.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}o=t.serializer.deserialize(ee,e,"error.response.parsedBody",i)}const p=n.error||o||n;K.code=p.code;if(p.message){K.message=p.message}if(ee){K.response.parsedBody=o}}if(e.headers&&te){K.response.parsedHeaders=t.serializer.deserialize(te,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){K.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:K,shouldReturnResponse:false}}async function parse(e,t,n,i,d){var p;if(!((p=n.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(n.status))&&n.bodyAsText){const p=n.bodyAsText;const f=n.headers.get("Content-Type")||"";const y=!f?[]:f.split(";").map((e=>e.toLowerCase()));try{if(y.length===0||y.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(p);return n}else if(y.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(p,i.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const i=e.code||o.RestError.PARSE_ERROR;const d=new o.RestError(t,{code:i,statusCode:n.status,request:n.request,response:n});throw d}}return n}},26323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const i=n(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,i.createDefaultHttpClient)()}return o}},60160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var i=n(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return i.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return i.MapperTypeNames}});var o=n(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return o.ServiceClient}});var d=n(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var p=n(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return p.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return p.XML_CHARKEY}});var f=n(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return f.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return f.deserializationPolicyName}});var y=n(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return y.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return y.serializationPolicyName}});var v=n(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return v.authorizeRequestOnClaimChallenge}});var D=n(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return D.authorizeRequestOnTenantChallenge}})},92066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const i=n(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const o=e.responses[n];if(o.bodyMapper&&o.bodyMapper.type.name===i.MapperTypeNames.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let i;if(typeof t==="string"){i=t}else if(Array.isArray(t)){i=t.join(".")}else{i=n.serializedName}return i}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("core-client")},19688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const i=n(33345);function getOperationArgumentValueFromParameter(e,t,n){let i=t.parameterPath;const o=t.mapper;let d;if(typeof i==="string"){i=[i]}if(Array.isArray(i)){if(i.length>0){if(o.isConstant){d=o.defaultValue}else{let t=getPropertyFromParameterPath(e,i);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,i)}let p=false;if(!t.propertyFound){p=o.required||i[0]==="options"&&i.length===2}d=p?o.defaultValue:t.propertyValue}}}else{if(o.required){d={}}for(const t in i){const p=o.type.modelProperties[t];const f=i[t];const y=getOperationArgumentValueFromParameter(e,{parameterPath:f,mapper:p},n);if(y!==undefined){if(!d){d={}}d[t]=y}}}return d}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let i=0;for(;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const i=n(90111);const o=n(20778);const d=n(56234);function createClientPipeline(e={}){const t=(0,o.createPipelineFromOptions)(e!==null&&e!==void 0?e:{});if(e.credentialOptions){t.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,i.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const i=n(56058);const o=n(19688);const d=n(31530);const p=n(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const n=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const i=(0,o.getOperationRequestInfo)(e);const d=i===null||i===void 0?void 0:i.operationSpec;const p=i===null||i===void 0?void 0:i.operationArguments;if(d&&p){serializeHeaders(e,p,d);serializeRequestBody(e,p,d,n)}return t(e)}}}function serializeHeaders(e,t,n){var i,d;if(n.headerParameters){for(const i of n.headerParameters){let d=(0,o.getOperationArgumentValueFromParameter)(t,i);if(d!==null&&d!==undefined||i.mapper.required){d=n.serializer.serialize(i.mapper,d,(0,p.getPathStringFromParameter)(i));const t=i.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(d)){e.headers.set(t+n,d[n])}}else{e.headers.set(i.mapper.serializedName||(0,p.getPathStringFromParameter)(i),d)}}}}const f=(d=(i=t.options)===null||i===void 0?void 0:i.requestOptions)===null||d===void 0?void 0:d.customHeaders;if(f){for(const t of Object.keys(f)){e.headers.set(t,f[t])}}}function serializeRequestBody(e,t,n,f=function(){throw new Error("XML serialization unsupported!")}){var y,v,D,M,U;const V=(y=t.options)===null||y===void 0?void 0:y.serializerOptions;const j={xml:{rootName:(v=V===null||V===void 0?void 0:V.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=V===null||V===void 0?void 0:V.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=V===null||V===void 0?void 0:V.xml.xmlCharKey)!==null&&M!==void 0?M:i.XML_CHARKEY}};const K=j.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=(0,o.getOperationArgumentValueFromParameter)(t,n.requestBody);const i=n.requestBody.mapper;const{required:y,serializedName:v,xmlName:D,xmlElementName:M,xmlNamespace:V,xmlNamespacePrefix:ee,nullable:te}=i;const re=i.type.name;try{if(e.body!==undefined&&e.body!==null||te&&e.body===null||y){const t=(0,p.getPathStringFromParameter)(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,j);const o=re===d.MapperTypeNames.Stream;if(n.isXML){const t=ee?`xmlns:${ee}`:"xmlns";const n=getXmlValueWithNamespace(V,t,re,e.body,j);if(re===d.MapperTypeNames.Sequence){e.body=f(prepareXMLRootList(n,M||D||v,t,V),{rootName:D||v,xmlCharKey:K})}else if(!o){e.body=f(n,{rootName:D||v,xmlCharKey:K})}}else if(re===d.MapperTypeNames.String&&(((U=n.contentType)===null||U===void 0?void 0:U.match("text/plain"))||n.mediaType==="text")){return}else if(!o){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(v,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const i of n.formDataParameters){const d=(0,o.getOperationArgumentValueFromParameter)(t,i);if(d!==undefined&&d!==null){const t=i.mapper.serializedName||(0,p.getPathStringFromParameter)(i);e.formData[t]=n.serializer.serialize(i.mapper,d,(0,p.getPathStringFromParameter)(i),j)}}}}function getXmlValueWithNamespace(e,t,n,o,d){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[d.xml.xmlCharKey]=o;n[i.XML_ATTRKEY]={[t]:e};return n}return o}function prepareXMLRootList(e,t,n,o){if(!Array.isArray(e)){e=[e]}if(!n||!o){return{[t]:e}}const d={[t]:e};d[i.XML_ATTRKEY]={[n]:o};return d}},31530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const i=n(61860);const o=i.__importStar(n(20741));const d=n(56058);const p=n(31193);class SerializerImpl{constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,i)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${i}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:o,InclusiveMinimum:d,MaxItems:p,MaxLength:f,MinItems:y,MinLength:v,MultipleOf:D,Pattern:M,UniqueItems:U}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(i!==undefined&&t<=i){failValidation("ExclusiveMinimum",i)}if(o!==undefined&&t>o){failValidation("InclusiveMaximum",o)}if(d!==undefined&&tp){failValidation("MaxItems",p)}if(f!==undefined&&t.length>f){failValidation("MaxLength",f)}if(y!==undefined&&t.lengthn.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,n,i={xml:{}}){var o,p,f;const y={xml:{rootName:(o=i.xml.rootName)!==null&&o!==void 0?o:"",includeRoot:(p=i.xml.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(f=i.xml.xmlCharKey)!==null&&f!==void 0?f:d.XML_CHARKEY}};let v={};const D=e.type.name;if(!n){n=e.serializedName}if(D.match(/^Sequence$/i)!==null){v=[]}if(e.isConstant){t=e.defaultValue}const{required:M,nullable:U}=e;if(M&&U&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(M&&!U&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!M&&U===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){v=t}else{if(D.match(/^any$/i)!==null){v=t}else if(D.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){v=serializeBasicTypes(D,n,t)}else if(D.match(/^Enum$/i)!==null){const i=e;v=serializeEnumType(n,i.type.allowedValues,t)}else if(D.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){v=serializeDateTypes(D,t,n)}else if(D.match(/^ByteArray$/i)!==null){v=serializeByteArrayType(n,t)}else if(D.match(/^Base64Url$/i)!==null){v=serializeBase64UrlType(n,t)}else if(D.match(/^Sequence$/i)!==null){v=serializeSequenceType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Dictionary$/i)!==null){v=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Composite$/i)!==null){v=serializeCompositeType(this,e,t,n,Boolean(this.isXML),y)}}return v}deserialize(e,t,n,i={xml:{}}){var p,f,y,v;const D={xml:{rootName:(p=i.xml.rootName)!==null&&p!==void 0?p:"",includeRoot:(f=i.xml.includeRoot)!==null&&f!==void 0?f:false,xmlCharKey:(y=i.xml.xmlCharKey)!==null&&y!==void 0?y:d.XML_CHARKEY},ignoreUnknownProperties:(v=i.ignoreUnknownProperties)!==null&&v!==void 0?v:false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let M;const U=e.type.name;if(!n){n=e.serializedName}if(U.match(/^Composite$/i)!==null){M=deserializeCompositeType(this,e,t,n,D)}else{if(this.isXML){const e=D.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(U.match(/^Number$/i)!==null){M=parseFloat(t);if(isNaN(M)){M=t}}else if(U.match(/^Boolean$/i)!==null){if(t==="true"){M=true}else if(t==="false"){M=false}else{M=t}}else if(U.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){M=t}else if(U.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){M=new Date(t)}else if(U.match(/^UnixTime$/i)!==null){M=unixTimeToDate(t)}else if(U.match(/^ByteArray$/i)!==null){M=o.decodeString(t)}else if(U.match(/^Base64Url$/i)!==null){M=base64UrlToByteArray(t)}else if(U.match(/^Sequence$/i)!==null){M=deserializeSequenceType(this,e,t,n,D)}else if(U.match(/^Dictionary$/i)!==null){M=deserializeDictionaryType(this,e,t,n,D)}}if(e.isConstant){M=e.defaultValue}return M}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=o.encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return o.decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const i=e.split(".");for(const e of i){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&(0,p.isValidUuid)(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const i=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!i){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=o.encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!(0,p.isDuration)(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,i,o,p){var f;if(!Array.isArray(n)){throw new Error(`${i} must be of type Array.`)}let y=t.type.element;if(!y||typeof y!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}.`)}if(y.type.name==="Composite"&&y.type.className){y=(f=e.modelMappers[y.type.className])!==null&&f!==void 0?f:y}const v=[];for(let t=0;te!==o));if(d){f[o]=e.serialize(v,n[o],i+'["'+o+'"]',p)}}}return f}return n}function getXmlObjectValue(e,t,n,i){if(!n||!e.xmlNamespace){return t}const o=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const p={[o]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e=Object.assign({},t);e[d.XML_ATTRKEY]=p;return e}}const f={};f[i.xml.xmlCharKey]=t;f[d.XML_ATTRKEY]=p;return f}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,i,o){var p,f;const y=(p=o.xml.xmlCharKey)!==null&&p!==void 0?p:d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const v=resolveModelProperties(e,t,i);let D={};const M=[];for(const p of Object.keys(v)){const U=v[p];const V=splitSerializeName(v[p].serializedName);M.push(V[0]);const{serializedName:j,xmlName:K,xmlElementName:ee}=U;let te=i;if(j!==""&&j!==undefined){te=i+"."+j}const re=U.headerCollectionPrefix;if(re){const t={};for(const i of Object.keys(n)){if(i.startsWith(re)){t[i.substring(re.length)]=e.deserialize(U.type.value,n[i],te,o)}M.push(i)}D[p]=t}else if(e.isXML){if(U.xmlIsAttribute&&n[d.XML_ATTRKEY]){D[p]=e.deserialize(U,n[d.XML_ATTRKEY][K],te,o)}else if(U.xmlIsMsText){if(n[y]!==undefined){D[p]=n[y]}else if(typeof n==="string"){D[p]=n}}else{const t=ee||K||j;if(U.xmlIsWrapped){const t=n[K];const i=(f=t===null||t===void 0?void 0:t[ee])!==null&&f!==void 0?f:[];D[p]=e.deserialize(U,i,te,o);M.push(K)}else{const i=n[t];D[p]=e.deserialize(U,i,te,o);M.push(t)}}}else{let i;let d=n;let f=0;for(const e of V){if(!d)break;f++;d=d[e]}if(d===null&&f{for(const t in v){const n=splitSerializeName(v[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){D[t]=e.deserialize(U,n[t],i+'["'+t+'"]',o)}}}else if(n&&!o.ignoreUnknownProperties){for(const e of Object.keys(n)){if(D[e]===undefined&&!M.includes(e)&&!isSpecialXmlProperty(e,o)){D[e]=n[e]}}}return D}function deserializeDictionaryType(e,t,n,i,o){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(n){const t={};for(const p of Object.keys(n)){t[p]=e.deserialize(d,n[p],i,o)}return t}return n}function deserializeSequenceType(e,t,n,i,o){var d;let p=t.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(n){if(!Array.isArray(n)){n=[n]}if(p.type.name==="Composite"&&p.type.className){p=(d=e.modelMappers[p.type.className])!==null&&d!==void 0?d:p}const t=[];for(let d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const i=n(20778);const o=n(74136);const d=n(31193);const p=n(26323);const f=n(19688);const y=n(61752);const v=n(92066);const D=n(89994);class ServiceClient{constructor(e={}){var t,n;this._requestContentType=e.requestContentType;this._endpoint=(t=e.endpoint)!==null&&t!==void 0?t:e.baseUri;if(e.baseUri){D.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,p.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if((n=e.additionalPolicies)===null||n===void 0?void 0:n.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const o=(0,y.getRequestUrl)(n,t,e,this);const p=(0,i.createPipelineRequest)({url:o});p.method=t.httpMethod;const D=(0,f.getOperationRequestInfo)(p);D.operationSpec=t;D.operationArguments=e;const M=t.contentType||this._requestContentType;if(M&&t.requestBody){p.headers.set("Content-Type",M)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){p.timeout=e.timeout}if(e.onUploadProgress){p.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){p.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){D.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){p.allowInsecureConnection=true}}if(U.abortSignal){p.abortSignal=U.abortSignal}if(U.tracingOptions){p.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){p.allowInsecureConnection=true}if(p.streamResponseStatusCodes===undefined){p.streamResponseStatusCodes=(0,v.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(p);const n=(0,d.flattenResponse)(e,t.responses[e.status]);if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&(e===null||e===void 0?void 0:e.response)){const n=e.response;const i=(0,d.flattenResponse)(n,t.responses[e.statusCode]||t.responses["default"]);e.details=i;if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(n,i,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,o.createClientPipeline)(Object.assign(Object.assign({},e),{credentialOptions:n}))}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const i=n(19688);const o=n(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,i){const o=calculateUrlReplacements(t,n,i);let d=false;let p=replaceAll(e,o);if(t.path){let e=replaceAll(t.path,o);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){p=e;d=true}else{p=appendPath(p,e)}}const{queryParams:f,sequenceParams:y}=calculateQueryParameters(t,n,i);p=appendQueryParams(p,f,y,d);return p}function replaceAll(e,t){let n=e;for(const[e,i]of t){n=n.split(e).join(i)}return n}function calculateUrlReplacements(e,t,n){var d;const p=new Map;if((d=e.urlParameters)===null||d===void 0?void 0:d.length){for(const d of e.urlParameters){let f=(0,i.getOperationArgumentValueFromParameter)(t,d,n);const y=(0,o.getPathStringFromParameter)(d);f=e.serializer.serialize(d.mapper,f,y);if(!d.skipEncoding){f=encodeURIComponent(f)}p.set(`{${d.mapper.serializedName||y}}`,f)}}return p}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let i=n.pathname;if(!i.endsWith("/")){i=`${i}/`}if(t.startsWith("/")){t=t.substring(1)}const o=t.indexOf("?");if(o!==-1){const e=t.substring(0,o);const d=t.substring(o+1);i=i+e;if(d){n.search=n.search?`${n.search}&${d}`:d}}else{i=i+t}n.pathname=i;return n.toString()}function calculateQueryParameters(e,t,n){var p;const f=new Map;const y=new Set;if((p=e.queryParameters)===null||p===void 0?void 0:p.length){for(const p of e.queryParameters){if(p.mapper.type.name==="Sequence"&&p.mapper.serializedName){y.add(p.mapper.serializedName)}let v=(0,i.getOperationArgumentValueFromParameter)(t,p,n);if(v!==undefined&&v!==null||p.mapper.required){v=e.serializer.serialize(p.mapper,v,(0,o.getPathStringFromParameter)(p));const t=p.collectionFormat?d[p.collectionFormat]:"";if(Array.isArray(v)){v=v.map((e=>{if(e===null||e===undefined){return""}return e}))}if(p.collectionFormat==="Multi"&&v.length===0){continue}else if(Array.isArray(v)&&(p.collectionFormat==="SSV"||p.collectionFormat==="TSV")){v=v.join(t)}if(!p.skipEncoding){if(Array.isArray(v)){v=v.map((e=>encodeURIComponent(e)))}else{v=encodeURIComponent(v)}}if(Array.isArray(v)&&(p.collectionFormat==="CSV"||p.collectionFormat==="Pipes")){v=v.join(t)}f.set(p.mapper.serializedName||(0,o.getPathStringFromParameter)(p),v)}}}return{queryParams:f,sequenceParams:y}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,i]=e.split("=",2);const o=t.get(n);if(o){if(Array.isArray(o)){o.push(i)}else{t.set(n,[o,i])}}else{t.set(n,i)}}return t}function appendQueryParams(e,t,n,i=false){if(t.size===0){return e}const o=new URL(e);const d=simpleParseQueryParams(o.search);for(const[e,o]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(o)){t.push(...o);const n=new Set(t);d.set(e,Array.from(n))}else{t.push(o)}}else if(t){if(Array.isArray(o)){o.unshift(t)}else if(n.has(e)){d.set(e,[t,o])}if(!i){d.set(e,o)}}else{d.set(e,o)}}const p=[];for(const[e,t]of d){if(typeof t==="string"){p.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){p.push(`${e}=${n}`)}}else{p.push(`${e}=${t}`)}}o.search=p.length?`?${p.join("&")}`:"";return o.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||(t===null||t===void 0?void 0:t.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i))!==null||e===undefined||e===null)}const n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return n.test(e)}const i=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return i.test(e)}function handleNullableResponseAndWrappableBody(e){const t=Object.assign(Object.assign({},e.headers),e.body);if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?Object.assign(Object.assign({},e.headers),{body:e.body}):t}}function flattenResponse(e,t){var n,i;const o=e.parsedHeaders;if(e.request.method==="HEAD"){return Object.assign(Object.assign({},o),{body:e.parsedBody})}const d=t&&t.bodyMapper;const p=Boolean(d===null||d===void 0?void 0:d.nullable);const f=d===null||d===void 0?void 0:d.type.name;if(f==="Stream"){return Object.assign(Object.assign({},o),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody})}const y=f==="Composite"&&d.type.modelProperties||{};const v=Object.keys(y).some((e=>y[e].serializedName===""));if(f==="Sequence"||v){const t=(n=e.parsedBody)!==null&&n!==void 0?n:[];for(const n of Object.keys(y)){if(y[n].serializedName){t[n]=(i=e.parsedBody)===null||i===void 0?void 0:i[n]}}if(o){for(const e of Object.keys(o)){t[e]=o[e]}}return p&&!e.parsedBody&&!o&&Object.getOwnPropertyNames(y).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:o,hasNullableType:p,shouldWrapBody:isPrimitiveBody(e.parsedBody,f)})}},95492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExtendedServiceClient=void 0;const i=n(32639);const o=n(20778);const d=n(60160);const p=n(38153);class ExtendedServiceClient extends d.ServiceClient{constructor(e){var t,n;super(e);if(((t=e.keepAliveOptions)===null||t===void 0?void 0:t.enable)===false&&!(0,i.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,i.createDisableKeepAlivePolicy)())}if(((n=e.redirectOptions)===null||n===void 0?void 0:n.handleRedirects)===false){this.pipeline.removePolicy({name:o.redirectPolicyName})}}async sendOperationRequest(e,t){var n;const i=(n=e===null||e===void 0?void 0:e.options)===null||n===void 0?void 0:n.onResponse;let o;function onResponse(e,t,n){o=e;if(i){i(e,t,n)}}e.options=Object.assign(Object.assign({},e.options),{onResponse:onResponse});const d=await super.sendOperationRequest(e,t);if(o){Object.defineProperty(d,"_response",{value:(0,p.toCompatResponse)(o)})}return d}}t.ExtendedServiceClient=ExtendedServiceClient},2078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertHttpClient=convertHttpClient;const i=n(38153);const o=n(33850);function convertHttpClient(e){return{sendRequest:async t=>{const n=await e.sendRequest((0,o.toWebResourceLike)(t,{createProxy:true}));return(0,i.toPipelineResponse)(n)}}}},61584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHttpHeadersLike=t.convertHttpClient=t.disableKeepAlivePolicyName=t.HttpPipelineLogLevel=t.createRequestPolicyFactoryPolicy=t.requestPolicyFactoryPolicyName=t.ExtendedServiceClient=void 0;var i=n(95492);Object.defineProperty(t,"ExtendedServiceClient",{enumerable:true,get:function(){return i.ExtendedServiceClient}});var o=n(3466);Object.defineProperty(t,"requestPolicyFactoryPolicyName",{enumerable:true,get:function(){return o.requestPolicyFactoryPolicyName}});Object.defineProperty(t,"createRequestPolicyFactoryPolicy",{enumerable:true,get:function(){return o.createRequestPolicyFactoryPolicy}});Object.defineProperty(t,"HttpPipelineLogLevel",{enumerable:true,get:function(){return o.HttpPipelineLogLevel}});var d=n(32639);Object.defineProperty(t,"disableKeepAlivePolicyName",{enumerable:true,get:function(){return d.disableKeepAlivePolicyName}});var p=n(2078);Object.defineProperty(t,"convertHttpClient",{enumerable:true,get:function(){return p.convertHttpClient}});var f=n(33850);Object.defineProperty(t,"toHttpHeadersLike",{enumerable:true,get:function(){return f.toHttpHeadersLike}})},32639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.disableKeepAlivePolicyName=void 0;t.createDisableKeepAlivePolicy=createDisableKeepAlivePolicy;t.pipelineContainsDisableKeepAlivePolicy=pipelineContainsDisableKeepAlivePolicy;t.disableKeepAlivePolicyName="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:t.disableKeepAlivePolicyName,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===t.disableKeepAlivePolicyName))}},3466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.requestPolicyFactoryPolicyName=t.HttpPipelineLogLevel=void 0;t.createRequestPolicyFactoryPolicy=createRequestPolicyFactoryPolicy;const i=n(33850);const o=n(38153);var d;(function(e){e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING"})(d||(t.HttpPipelineLogLevel=d={}));const p={log(e,t){},shouldLog(e){return false}};t.requestPolicyFactoryPolicyName="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const n=e.slice().reverse();return{name:t.requestPolicyFactoryPolicyName,async sendRequest(e,t){let d={async sendRequest(e){const n=await t((0,i.toPipelineRequest)(e));return(0,o.toCompatResponse)(n,{createProxy:true})}};for(const e of n){d=e.create(d,p)}const f=(0,i.toWebResourceLike)(e,{createProxy:true});const y=await d.sendRequest(f);return(0,o.toPipelineResponse)(y)}}}},38153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCompatResponse=toCompatResponse;t.toPipelineResponse=toPipelineResponse;const i=n(20778);const o=n(33850);const d=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let n=(0,o.toWebResourceLike)(e.request);let i=(0,o.toHttpHeadersLike)(e.headers);if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(e,{get(t,o,p){if(o==="headers"){return i}else if(o==="request"){return n}else if(o===d){return e}return Reflect.get(t,o,p)},set(e,t,o,d){if(t==="headers"){i=o}else if(t==="request"){n=o}return Reflect.set(e,t,o,d)}})}else{return Object.assign(Object.assign({},e),{request:n,headers:i})}}function toPipelineResponse(e){const t=e;const n=t[d];const p=(0,i.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(n){n.headers=p;return n}else{return Object.assign(Object.assign({},e),{headers:p,request:(0,o.toPipelineRequest)(e.request)})}}},33850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpHeaders=void 0;t.toPipelineRequest=toPipelineRequest;t.toWebResourceLike=toWebResourceLike;t.toHttpHeadersLike=toHttpHeadersLike;const i=n(20778);const o=Symbol("Original PipelineRequest");const d=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const n=e;const p=n[o];const f=(0,i.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(p){p.headers=f;return p}else{const n=(0,i.createPipelineRequest)({url:e.url,method:e.method,headers:f,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){n[d]=t.originalRequest}return n}}function toWebResourceLike(e,t){var n;const i=(n=t===null||t===void 0?void 0:t.originalRequest)!==null&&n!==void 0?n:e;const d={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(d,{get(t,n,p){if(n===o){return e}else if(n==="clone"){return()=>toWebResourceLike(toPipelineRequest(d,{originalRequest:i}),{createProxy:true,originalRequest:i})}return Reflect.get(t,n,p)},set(t,n,i,o){if(n==="keepAlive"){e.disableKeepAlive=!i}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof n==="string"&&d.includes(n)){e[n]=i}return Reflect.set(t,n,i,o)}})}else{return d}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const i=n(30736);const o=n(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:n,requestMethod:i,requestPath:o,resourceLocationConfig:d}=e;switch(i){case"PUT":{return o}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:o}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return n}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:i,resourceLocationConfig:o}=e;const d=getOperationLocationHeader(t);const p=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:p});const y=getLocationHeader(t);const v=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:v,location:y,requestPath:i,resourceLocationConfig:o})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(v==="PUT"&&i){return{mode:"Body",operationLocation:i}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{o.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:i,provisioningState:o}=(t=e.body)!==null&&t!==void 0?t:{};const d=(n=i===null||i===void 0?void 0:i.provisioningState)!==null&&n!==void 0?n:o;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){o.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){o.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:p})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var n;const i=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(i){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var n;const i=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(i){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},n){var i,o;return(i=e===null||e===void 0?void 0:e[n])!==null&&i!==void 0?i:(o=t.body)===null||o===void 0?void 0:o[n]}function getResourceLocation(e,t){const n=accessBodyProperty(e,"resourceLocation");if(n&&typeof n==="string"){t.config.resourceLocation=n}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:d,updateState:p,setDelay:f,state:y,setErrorAsResult:v}=e;return(0,i.pollOperation)({state:y,stateProxy:n,setDelay:f,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:p,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:v})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const i=n(93878);const o=n(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:d,processResult:p,restoreFrom:f,updateState:y,withOperationLocation:v,resolveOnUnsuccessful:D=false}=t||{};return(0,o.buildCreatePoller)({getStatusFromInitialResponse:i.getStatusFromInitialResponse,getStatusFromPollResponse:i.getOperationStatus,isOperationError:i.isOperationError,getOperationLocation:i.getOperationLocation,getResourceLocation:i.getResourceLocation,getPollingInterval:i.parseRetryAfter,getError:i.getErrorFromResponse,resolveOnUnsuccessful:D})({init:async()=>{const t=await e.sendInitialRequest();const o=(0,i.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:v,restoreFrom:f,updateState:y,processResult:p?({flatResponse:e},t)=>p(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const i=n(61860);var o=n(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return o.createHttpPoller}});i.__exportStar(n(55454),t);i.__exportStar(n(36272),t);i.__exportStar(n(82670),t)},55454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var i=n(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return i.LroEngine}})},91607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const i=n(54267);const o=n(55044);const d=n(36272);const p=n(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:n=o.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:f=false,isDone:y,lroResourceLocationConfig:v,processResult:D,updateState:M}=t||{};const U=d?(0,p.deserializeState)(d):{};const V=new i.GenericPollOperation(U,e,!f,v,D,M,y);super(V);this.resolveOnUnsuccessful=f;this.config={intervalInMs:n};V.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const i=n(93878);const o=n(50480);const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,i,o,d,p){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=i;this.processResult=o;this.updateState=d;this.isDone=p}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,i.initHttpOperation)({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,i.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){o.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}t.Poller=Poller},50480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const i=n(50480);const o=n(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:n,isOperationError:i}=e;return e=>{if(i(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let i=e;while(i.innererror){i=i.innererror;n=i.code;t=appendReadableErrorMessage(t,i.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:d,processResult:p,getError:f,response:y,setErrorAsResult:v}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=f===null||f===void 0?void 0:f(y);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const d=`The long-running operation has failed${o}`;n.setError(t,new Error(d));n.setFailed(t);i.logger.warning(d);break}case"canceled":{n.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(y,t))||d===undefined&&["succeeded","canceled"].concat(v?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:y,state:t,processResult:p}))}}function buildResult(e){const{processResult:t,response:n,state:i}=e;return t?t(n,i):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:d,withOperationLocation:p,setErrorAsResult:f}=e;const{operationLocation:y,resourceLocation:v,metadata:D,response:M}=await t();if(y)p===null||p===void 0?void 0:p(y,false);const U={metadata:D,operationLocation:y,resourceLocation:v};i.logger.verbose(`LRO: Operation description:`,U);const V=n.initState(U);const j=d({response:M,state:V,operationLocation:y});processOperationStatus({state:V,status:j,stateProxy:n,response:M,setErrorAsResult:f,processResult:o});return V}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:d,operationLocation:p,getOperationStatus:f,getResourceLocation:y,isOperationError:v,options:D}=e;const M=await t(p,D).catch(setStateError({state:n,stateProxy:d,isOperationError:v}));const U=f(M,n);i.logger.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${o.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=y(M,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:d,isOperationError:v})),status:U}}}return{response:M,status:U}}async function pollOperation(e){const{poll:t,state:n,stateProxy:i,options:d,getOperationStatus:p,getResourceLocation:f,getOperationLocation:y,isOperationError:v,withOperationLocation:D,getPollingInterval:M,processResult:U,getError:V,updateState:j,setDelay:K,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:p,state:n,stateProxy:i,operationLocation:re,getResourceLocation:f,isOperationError:v,options:d});processOperationStatus({status:ne,response:e,state:n,stateProxy:i,isDone:ee,processResult:U,getError:V,setErrorAsResult:te});if(!o.terminalStates.includes(ne)){const t=M===null||M===void 0?void 0:M(e);if(t)K(t);const i=y===null||y===void 0?void 0:y(e,n);if(i!==undefined){const e=re!==i;n.config.operationLocation=i;D===null||D===void 0?void 0:D(i,e)}else D===null||D===void 0?void 0:D(re,false)}j===null||j===void 0?void 0:j(n,e)}}t.pollOperation=pollOperation},18835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const i=n(30736);const o=n(55044);const d=n(87779);const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:p,isOperationError:f,getResourceLocation:y,getPollingInterval:v,getError:D,resolveOnUnsuccessful:M}=e;return async({init:e,poll:U},V)=>{const{processResult:j,updateState:K,withOperationLocation:ee,intervalInMs:te=o.POLL_INTERVAL_IN_MS,restoreFrom:re}=V||{};const ne=createStateProxy();const ie=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const oe=re?(0,i.deserializeState)(re):await(0,i.initOperation)({init:e,stateProxy:ne,processResult:j,getOperationStatus:n,withOperationLocation:ie,setErrorAsResult:!M});let se;const ae=new AbortController;const Ae=new Map;const handleProgressEvents=async()=>Ae.forEach((e=>e(oe)));const ce="Operation was canceled";let le=te;const ue={getOperationState:()=>oe,getResult:()=>oe.result,isDone:()=>["succeeded","failed","canceled"].includes(oe.status),isStopped:()=>se===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:oe}),onProgress:e=>{const t=Symbol();Ae.set(t,e);return()=>Ae.delete(t)},pollUntilDone:e=>se!==null&&se!==void 0?se:se=(async()=>{const{abortSignal:t}=e||{};function abortListener(){ae.abort()}const n=ae.signal;if(t===null||t===void 0?void 0:t.aborted){ae.abort()}else if(!n.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!ue.isDone()){await ue.poll({abortSignal:n});while(!ue.isDone()){await(0,d.delay)(le,{abortSignal:n});await ue.poll({abortSignal:n})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(M){return ue.getResult()}else{switch(oe.status){case"succeeded":return ue.getResult();case"canceled":throw new Error(ce);case"failed":throw oe.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{se=undefined})),async poll(e){if(M){if(ue.isDone())return}else{switch(oe.status){case"succeeded":return;case"canceled":throw new Error(ce);case"failed":throw oe.error}}await(0,i.pollOperation)({poll:U,state:oe,stateProxy:ne,getOperationLocation:t,isOperationError:f,withOperationLocation:ie,getPollingInterval:v,getOperationStatus:p,getResourceLocation:y,processResult:j,getError:D,updateState:K,options:e,setDelay:e=>{le=e},setErrorAsResult:!M});await handleProgressEvents();if(!M){switch(oe.status){case"canceled":throw new Error(ce);case"failed":throw oe.error}}}};return ue}}t.buildCreatePoller=buildCreatePoller},66427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="1.22.0";t.DEFAULT_RETRY_POLICY_COUNT=3},90862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const i=n(53253);const o=n(29590);const d=n(64087);const p=n(32799);const f=n(45807);const y=n(39295);const v=n(48170);const D=n(75497);const M=n(87779);const U=n(32815);const V=n(95686);const j=n(18554);const K=n(75798);const ee=n(93237);const te=n(37466);function createPipelineFromOptions(e){var t;const n=(0,o.createEmptyPipeline)();if(M.isNodeLike){if(e.agent){n.addPolicy((0,j.agentPolicy)(e.agent))}if(e.tlsOptions){n.addPolicy((0,K.tlsPolicy)(e.tlsOptions))}n.addPolicy((0,U.proxyPolicy)(e.proxyOptions));n.addPolicy((0,y.decompressResponsePolicy)())}n.addPolicy((0,te.wrapAbortSignalLikePolicy)());n.addPolicy((0,D.formDataPolicy)(),{beforePolicies:[f.multipartPolicyName]});n.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));n.addPolicy((0,V.setClientRequestIdPolicy)((t=e.telemetryOptions)===null||t===void 0?void 0:t.clientRequestIdHeaderName));n.addPolicy((0,f.multipartPolicy)(),{afterPhase:"Deserialize"});n.addPolicy((0,v.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});n.addPolicy((0,ee.tracingPolicy)(Object.assign(Object.assign({},e.userAgentOptions),e.loggingOptions)),{afterPhase:"Retry"});if(M.isNodeLike){n.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}n.addPolicy((0,i.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return n}},7960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const i=n(41958);const o=n(91297);function createDefaultHttpClient(){const e=(0,i.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:n,cleanup:i}=t.abortSignal?(0,o.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{i===null||i===void 0?void 0:i()}}}}},192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;const i=n(41958);function createHttpHeaders(e){return(0,i.createHttpHeaders)(e)}},20778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileFromStream=t.createFile=t.agentPolicyName=t.agentPolicy=t.auxiliaryAuthenticationHeaderPolicyName=t.auxiliaryAuthenticationHeaderPolicy=t.ndJsonPolicyName=t.ndJsonPolicy=t.bearerTokenAuthenticationPolicyName=t.bearerTokenAuthenticationPolicy=t.formDataPolicyName=t.formDataPolicy=t.tlsPolicyName=t.tlsPolicy=t.userAgentPolicyName=t.userAgentPolicy=t.defaultRetryPolicy=t.tracingPolicyName=t.tracingPolicy=t.retryPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.setClientRequestIdPolicyName=t.setClientRequestIdPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.isRestError=t.RestError=t.createPipelineRequest=t.createHttpHeaders=t.createDefaultHttpClient=t.createPipelineFromOptions=t.createEmptyPipeline=void 0;var i=n(29590);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return i.createEmptyPipeline}});var o=n(90862);Object.defineProperty(t,"createPipelineFromOptions",{enumerable:true,get:function(){return o.createPipelineFromOptions}});var d=n(7960);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return d.createDefaultHttpClient}});var p=n(192);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});var f=n(95709);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(8666);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return y.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return y.isRestError}});var v=n(39295);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return v.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return v.decompressResponsePolicyName}});var D=n(16708);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return D.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return D.exponentialRetryPolicyName}});var M=n(95686);Object.defineProperty(t,"setClientRequestIdPolicy",{enumerable:true,get:function(){return M.setClientRequestIdPolicy}});Object.defineProperty(t,"setClientRequestIdPolicyName",{enumerable:true,get:function(){return M.setClientRequestIdPolicyName}});var U=n(53253);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return U.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return U.logPolicyName}});var V=n(45807);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return V.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return V.multipartPolicyName}});var j=n(32815);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return j.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return j.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return j.getDefaultProxySettings}});var K=n(64087);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return K.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return K.redirectPolicyName}});var ee=n(96518);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return ee.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return ee.systemErrorRetryPolicyName}});var te=n(97540);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return te.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return te.throttlingRetryPolicyName}});var re=n(56085);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return re.retryPolicy}});var ne=n(93237);Object.defineProperty(t,"tracingPolicy",{enumerable:true,get:function(){return ne.tracingPolicy}});Object.defineProperty(t,"tracingPolicyName",{enumerable:true,get:function(){return ne.tracingPolicyName}});var ie=n(48170);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return ie.defaultRetryPolicy}});var oe=n(32799);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return oe.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return oe.userAgentPolicyName}});var se=n(75798);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return se.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return se.tlsPolicyName}});var ae=n(75497);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return ae.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return ae.formDataPolicyName}});var Ae=n(26925);Object.defineProperty(t,"bearerTokenAuthenticationPolicy",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicy}});Object.defineProperty(t,"bearerTokenAuthenticationPolicyName",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicyName}});var ce=n(36827);Object.defineProperty(t,"ndJsonPolicy",{enumerable:true,get:function(){return ce.ndJsonPolicy}});Object.defineProperty(t,"ndJsonPolicyName",{enumerable:true,get:function(){return ce.ndJsonPolicyName}});var le=n(42262);Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicy",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicy}});Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicyName",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicyName}});var ue=n(18554);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return ue.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return ue.agentPolicyName}});var de=n(97073);Object.defineProperty(t,"createFile",{enumerable:true,get:function(){return de.createFile}});Object.defineProperty(t,"createFileFromStream",{enumerable:true,get:function(){return de.createFileFromStream}})},80544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("core-rest-pipeline")},29590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const i=n(41958);function createEmptyPipeline(){return(0,i.createEmptyPipeline)()}},95709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const i=n(41958);function createPipelineRequest(e){return(0,i.createPipelineRequest)(e)}},18554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;const i=n(44960);t.agentPolicyName=i.agentPolicyName;function agentPolicy(e){return(0,i.agentPolicy)(e)}},42262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auxiliaryAuthenticationHeaderPolicyName=void 0;t.auxiliaryAuthenticationHeaderPolicy=auxiliaryAuthenticationHeaderPolicy;const i=n(39202);const o=n(80544);t.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";const d="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){var t,n;const{scopes:i,getAccessToken:o,request:d}=e;const p={abortSignal:d.abortSignal,tracingOptions:d.tracingOptions};return(n=(t=await o(i,p))===null||t===void 0?void 0:t.token)!==null&&n!==void 0?n:""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:n,scopes:p}=e;const f=e.logger||o.logger;const y=new WeakMap;return{name:t.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(e,o){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!n||n.length===0){f.info(`${t.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`);return o(e)}const v=[];for(const t of n){let n=y.get(t);if(!n){n=(0,i.createTokenCycler)(t);y.set(t,n)}v.push(sendAuthorizeRequest({scopes:Array.isArray(p)?p:[p],request:e,getAccessToken:n,logger:f}))}const D=(await Promise.all(v)).filter((e=>Boolean(e)));if(D.length===0){f.warning(`None of the auxiliary tokens are valid. ${d} header will not be set.`);return o(e)}e.headers.set(d,D.map((e=>`Bearer ${e}`)).join(", "));return o(e)}}}},26925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerTokenAuthenticationPolicyName=void 0;t.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;t.parseChallenges=parseChallenges;const i=n(39202);const o=n(80544);const d=n(8666);t.bearerTokenAuthenticationPolicyName="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if((0,d.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:i}=e;const o={abortSignal:i.abortSignal,tracingOptions:i.tracingOptions,enableCae:true};const d=await n(t,o);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){var n;const{scopes:i}=e;const o=await e.getAccessToken(i,{enableCae:true,claims:t});if(!o){return false}e.request.headers.set("Authorization",`${(n=o.tokenType)!==null&&n!==void 0?n:"Bearer"} ${o.token}`);return true}function bearerTokenAuthenticationPolicy(e){var n,d,p;const{credential:f,scopes:y,challengeCallbacks:v}=e;const D=e.logger||o.logger;const M={authorizeRequest:(d=(n=v===null||v===void 0?void 0:v.authorizeRequest)===null||n===void 0?void 0:n.bind(v))!==null&&d!==void 0?d:defaultAuthorizeRequest,authorizeRequestOnChallenge:(p=v===null||v===void 0?void 0:v.authorizeRequestOnChallenge)===null||p===void 0?void 0:p.bind(v)};const U=f?(0,i.createTokenCycler)(f):()=>Promise.resolve(null);return{name:t.bearerTokenAuthenticationPolicyName,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await M.authorizeRequest({scopes:Array.isArray(y)?y:[y],request:e,getAccessToken:U,logger:D});let n;let i;let o;[n,i]=await trySendRequest(e,t);if(isChallengeResponse(n)){let d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}o=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(o){[n,i]=await trySendRequest(e,t)}}else if(M.authorizeRequestOnChallenge){o=await M.authorizeRequestOnChallenge({scopes:Array.isArray(y)?y:[y],request:e,response:n,getAccessToken:U,logger:D});if(o){[n,i]=await trySendRequest(e,t)}if(isChallengeResponse(n)){d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}o=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(o){[n,i]=await trySendRequest(e,t)}}}}}if(i){throw i}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const i=[];let o;while((o=t.exec(e))!==null){const e=o[1];const t=o[2];const d={};let p;while((p=n.exec(t))!==null){d[p[1]]=p[2]}i.push({scheme:e,params:d})}return i}function getCaeChallengeClaims(e){var t;if(!e){return}const n=parseChallenges(e);return(t=n.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims")))===null||t===void 0?void 0:t.params.claims}},39295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;const i=n(44960);t.decompressResponsePolicyName=i.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,i.decompressResponsePolicy)()}},48170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const i=n(44960);t.defaultRetryPolicyName=i.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,i.defaultRetryPolicy)(e)}},16708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const i=n(44960);t.exponentialRetryPolicyName=i.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,i.exponentialRetryPolicy)(e)}},75497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const i=n(44960);t.formDataPolicyName=i.formDataPolicyName;function formDataPolicy(){return(0,i.formDataPolicy)()}},53253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const i=n(80544);const o=n(44960);t.logPolicyName=o.logPolicyName;function logPolicy(e={}){return(0,o.logPolicy)(Object.assign({logger:i.logger.info},e))}},45807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const i=n(44960);const o=n(97073);t.multipartPolicyName=i.multipartPolicyName;function multipartPolicy(){const e=(0,i.multipartPolicy)();return{name:t.multipartPolicyName,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,o.hasRawContent)(e.body)){e.body=(0,o.getRawContent)(e.body)}}}return e.sendRequest(t,n)}}}},36827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ndJsonPolicyName=void 0;t.ndJsonPolicy=ndJsonPolicy;t.ndJsonPolicyName="ndJsonPolicy";function ndJsonPolicy(){return{name:t.ndJsonPolicyName,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}},32815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.proxyPolicyName=void 0;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const i=n(44960);t.proxyPolicyName=i.proxyPolicyName;function getDefaultProxySettings(e){return(0,i.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,i.proxyPolicy)(e,t)}},64087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;const i=n(44960);t.redirectPolicyName=i.redirectPolicyName;function redirectPolicy(e={}){return(0,i.redirectPolicy)(e)}},56085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const i=n(26515);const o=n(66427);const d=n(44960);const p=(0,i.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:o.DEFAULT_RETRY_POLICY_COUNT}){return(0,d.retryPolicy)(e,Object.assign({logger:p},t))}},95686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setClientRequestIdPolicyName=void 0;t.setClientRequestIdPolicy=setClientRequestIdPolicy;t.setClientRequestIdPolicyName="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:t.setClientRequestIdPolicyName,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}},96518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const i=n(44960);t.systemErrorRetryPolicyName=i.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,i.systemErrorRetryPolicy)(e)}},97540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const i=n(44960);t.throttlingRetryPolicyName=i.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,i.throttlingRetryPolicy)(e)}},75798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;const i=n(44960);t.tlsPolicyName=i.tlsPolicyName;function tlsPolicy(e){return(0,i.tlsPolicy)(e)}},93237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingPolicyName=void 0;t.tracingPolicy=tracingPolicy;const i=n(20623);const o=n(66427);const d=n(28431);const p=n(80544);const f=n(87779);const y=n(8666);const v=n(95750);t.tracingPolicyName="tracingPolicy";function tracingPolicy(e={}){const n=(0,d.getUserAgentValue)(e.userAgentPrefix);const i=new v.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const o=tryCreateTracingClient();return{name:t.tracingPolicyName,async sendRequest(e,t){var d;if(!o){return t(e)}const p=await n;const f={"http.url":i.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":p,requestId:e.requestId};if(p){f["http.user_agent"]=p}const{span:y,tracingContext:v}=(d=tryCreateSpan(o,e,f))!==null&&d!==void 0?d:{};if(!y||!v){return t(e)}try{const n=await o.withContext(v,t,e);tryProcessResponse(y,n);return n}catch(e){tryProcessError(y,e);throw e}}}}function tryCreateTracingClient(){try{return(0,i.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:o.SDK_VERSION})}catch(e){p.logger.warning(`Error when creating the TracingClient: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:i,updatedOptions:o}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!i.isRecording()){i.end();return undefined}const d=e.createRequestHeaders(o.tracingOptions.tracingContext);for(const[e,n]of Object.entries(d)){t.headers.set(e,n)}return{span:i,tracingContext:o.tracingOptions.tracingContext}}catch(e){p.logger.warning(`Skipping creating a tracing span due to an error: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,f.isError)(t)?t:undefined});if((0,y.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}},32799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const i=n(28431);const o=(0,i.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,i.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(o)){e.headers.set(o,await n)}return t(e)}}}},37466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLikePolicyName=void 0;t.wrapAbortSignalLikePolicy=wrapAbortSignalLikePolicy;const i=n(91297);t.wrapAbortSignalLikePolicyName="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:t.wrapAbortSignalLikePolicyName,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:o}=(0,i.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{o===null||o===void 0?void 0:o()}}}}},8666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const i=n(41958);t.RestError=i.RestError;function isRestError(e){return(0,i.isRestError)(e)}},97073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasRawContent=hasRawContent;t.getRawContent=getRawContent;t.createFileFromStream=createFileFromStream;t.createFile=createFile;const i=n(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const o={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const d=Symbol("rawContent");function hasRawContent(e){return typeof e[d]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[d]()}else{return e}}function createFileFromStream(e,t,n={}){var i,p,f,y;return Object.assign(Object.assign({},o),{type:(i=n.type)!==null&&i!==void 0?i:"",lastModified:(p=n.lastModified)!==null&&p!==void 0?p:(new Date).getTime(),webkitRelativePath:(f=n.webkitRelativePath)!==null&&f!==void 0?f:"",size:(y=n.size)!==null&&y!==void 0?y:-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[d]:e})}function createFile(e,t,n={}){var p,f,y;if(i.isNodeLike){return Object.assign(Object.assign({},o),{type:(p=n.type)!==null&&p!==void 0?p:"",lastModified:(f=n.lastModified)!==null&&f!==void 0?f:(new Date).getTime(),webkitRelativePath:(y=n.webkitRelativePath)!==null&&y!==void 0?y:"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([e]).stream(),[d]:()=>e})}else{return new File([e],t,n)}}},39202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_CYCLER_OPTIONS=void 0;t.createTokenCycler=createTokenCycler;const i=n(87779);t.DEFAULT_CYCLER_OPTIONS={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()e.getToken(t,n);i=beginRefresh(tryGetAccessToken,p.retryIntervalInMs,(y=o===null||o===void 0?void 0:o.expiresOnTimestamp)!==null&&y!==void 0?y:Date.now()).then((e=>{i=null;o=e;d=n.tenantId;return o})).catch((e=>{i=null;o=null;d=undefined;throw e}))}return i}return async(e,t)=>{const n=Boolean(t.claims);const i=d!==t.tenantId;if(n){o=null}const p=i||n||f.mustRefresh;if(p){return refresh(e,t)}if(f.shouldRefresh){refresh(e,t)}return o}}},28431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const i=n(31848);const o=n(66427);function getUserAgentString(e){const t=[];for(const[n,i]of e){const e=i?`${n}/${i}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,i.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",o.SDK_VERSION);await(0,i.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},31848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const i=n(61860);const o=i.__importStar(n(48161));const d=i.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${o.arch()}-${o.type()}-${o.release()})`)}},91297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLike=wrapAbortSignalLike;function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}},20623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var i=n(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return i.useInstrumenter}});var o=n(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return o.createTracingClient}})},48729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const i=n(79186);const o=n(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,i.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){o.state.instrumenterImplementation=e}function getInstrumenter(){if(!o.state.instrumenterImplementation){o.state.instrumenterImplementation=createDefaultInstrumenter()}return o.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const i=n(48729);const o=n(79186);function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:d}=e;function startSpan(e,p,f){var y;const v=(0,i.getInstrumenter)().startSpan(e,Object.assign(Object.assign({},f),{packageName:n,packageVersion:d,tracingContext:(y=p===null||p===void 0?void 0:p.tracingOptions)===null||y===void 0?void 0:y.tracingContext}));let D=v.tracingContext;const M=v.span;if(!D.getValue(o.knownContextKeys.namespace)){D=D.setValue(o.knownContextKeys.namespace,t)}M.setAttribute("az.namespace",D.getValue(o.knownContextKeys.namespace));const U=Object.assign({},p,{tracingOptions:Object.assign(Object.assign({},p===null||p===void 0?void 0:p.tracingOptions),{tracingContext:D})});return{span:M,updatedOptions:U}}async function withSpan(e,t,n,i){const{span:o,updatedOptions:d}=startSpan(e,t,i);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(n(d,o))));o.setStatus({status:"success"});return e}catch(e){o.setStatus({status:"error",error:e});throw e}finally{o.end()}}function withContext(e,t,...n){return(0,i.getInstrumenter)().withContext(e,t,...n)}function parseTraceparentHeader(e){return(0,i.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,i.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let n=new TracingContextImpl(e.parentContext);if(e.span){n=n.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){n=n.setValue(t.knownContextKeys.namespace,e.namespace)}return n}class TracingContextImpl{constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){var n,i;const o=new AbortController;function abortHandler(){o.abort()}(n=t===null||t===void 0?void 0:t.abortSignal)===null||n===void 0?void 0:n.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:o.signal}))))}finally{o.abort();(i=t===null||t===void 0?void 0:t.abortSignal)===null||i===void 0?void 0:i.removeEventListener("abort",abortHandler)}}},63128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const i=n(16492);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:o,abortErrorMsg:d}=t!==null&&t!==void 0?t:{};return new Promise(((t,p)=>{function rejectOnAbort(){p(new i.AbortError(d!==null&&d!==void 0?d:"The operation was aborted."))}function removeListeners(){o===null||o===void 0?void 0:o.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(o===null||o===void 0?void 0:o.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();p(e)}))}catch(e){p(e)}o===null||o===void 0?void 0:o.addEventListener("abort",onAbort)}))}},90636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const i=n(63128);const o=n(95750);const d="The delay was aborted.";function delay(e,t){let n;const{abortSignal:o,abortErrorMsg:p}=t!==null&&t!==void 0?t:{};return(0,i.createAbortablePromise)((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:p!==null&&p!==void 0?p:d})}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const i=Math.min(t.maxRetryDelayInMs,n);const d=i/2+(0,o.getRandomIntegerInclusive)(0,i/2);return{retryAfterInMs:d}}},99945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const i=n(95750);function getErrorMessage(e){if((0,i.isError)(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}},87779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const i=n(61860);const o=i.__importStar(n(95750));var d=n(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var p=n(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return p.createAbortablePromise}});var f=n(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return f.delay}});var y=n(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return y.getErrorMessage}});var v=n(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return v.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return v.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return v.objectHasProperty}});function calculateRetryDelay(e,t){return o.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return o.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,n){return o.computeSha256Hmac(e,t,n)}function getRandomIntegerInclusive(e,t){return o.getRandomIntegerInclusive(e,t)}function isError(e){return o.isError(e)}function isObject(e){return o.isObject(e)}function randomUUID(){return o.randomUUID()}t.isBrowser=o.isBrowser;t.isBun=o.isBun;t.isDeno=o.isDeno;t.isNode=o.isNodeLike;t.isNodeLike=o.isNodeLike;t.isNodeRuntime=o.isNodeRuntime;t.isReactNative=o.isReactNative;t.isWebWorker=o.isWebWorker;function uint8ArrayToString(e,t){return o.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return o.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},31658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},16492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=n(31658);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},78756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=t.parseXML=t.stringifyXML=void 0;var i=n(48133);Object.defineProperty(t,"stringifyXML",{enumerable:true,get:function(){return i.stringifyXML}});Object.defineProperty(t,"parseXML",{enumerable:true,get:function(){return i.parseXML}});var o=n(93406);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return o.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return o.XML_CHARKEY}})},93406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},48133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringifyXML=stringifyXML;t.parseXML=parseXML;const i=n(50591);const o=n(93406);function getCommonOptions(e){var t;return{attributesGroupName:o.XML_ATTRKEY,textNodeName:(t=e.xmlCharKey)!==null&&t!==void 0?t:o.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){var t,n;return Object.assign(Object.assign({},getCommonOptions(e)),{attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:(t=e.rootName)!==null&&t!==void 0?t:"root",cdataPropName:(n=e.cdataPropName)!==null&&n!==void 0?n:"__cdata"})}function getParserOptions(e={}){return Object.assign(Object.assign({},getCommonOptions(e)),{parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false})}function stringifyXML(e,t={}){const n=getSerializerOptions(t);const o=new i.XMLBuilder(n);const d={[n.rootNodeName]:e};const p=o.build(d);return`${p}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const n=i.XMLValidator.validate(e);if(n!==true){throw n}const o=new i.XMLParser(getParserOptions(t));const d=o.parse(e);if(d["?xml"]){delete d["?xml"]}if(!t.includeRoot){for(const e of Object.keys(d)){const t=d[e];return typeof t==="object"?Object.assign({},t):t}}return d}},26515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const i=n(82490);const o=(0,i.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=o.logger;function setLogLevel(e){o.setLogLevel(e)}function getLogLevel(){return o.getLogLevel()}function createClientLogger(e){return o.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const i=n(20778);const o=n(61584);const d=n(27323);const p=n(72995);const f=n(46370);const y=": ";const v=" ";const D=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,p.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const n=t.length;if(n!==this.subRequests.size&&n!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const M=new Array(n);let U=0;let V=0;for(let e=0;e=0&&re{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const i=n(53563);const o=n(27323);async function getBodyAsText(e){let t=Buffer.alloc(o.BATCH_MAX_PAYLOAD_IN_BYTES);const n=await(0,i.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,n);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const i=n(87779);const o=n(50417);const d=n(20778);const p=n(87779);const f=n(35345);const y=n(90372);const v=n(58913);const D=n(25984);const M=n(47764);const U=n(78756);const V=n(27323);const j=n(68999);const K=n(53952);const ee=n(60160);const te=n(97999);class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await v.Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await v.Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,n){let i;let d;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,o.isTokenCredential)(t))){i=e;d=t}else if(e instanceof y.BlobClient){i=e.url;d=e.credential;n=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return K.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",n,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:i,credential:d},(async()=>{await new y.BlobClient(i,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,n,i){let d;let v;let D;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,o.isTokenCredential)(t))){d=e;v=t;D=n}else if(e instanceof y.BlobClient){d=e.url;v=e.credential;D=t;i=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}return K.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",i,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:v},(async()=>{await new y.BlobClient(d,this.batchRequest.createPipeline(v)).setAccessTier(D,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,i.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TYPE}: application/http${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,ee.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,o.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:V.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:ee.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof j.StorageSharedKeyCredential){t.addPolicy((0,te.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const n=new D.Pipeline([]);n._credential=e;n._corePipeline=t;return n}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${V.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,M.getURLPathAndQuery)(e.url)} ${V.HTTP_VERSION_1_1}${V.HTTP_LINE_ENDING}`].join(V.HTTP_LINE_ENDING);for(const[t,n]of e.headers){this.body+=`${t}: ${n}${V.HTTP_LINE_ENDING}`}this.body+=V.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=V.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${V.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,M.getURLPath)(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${V.HTTP_LINE_ENDING}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let n="";for(const[t]of e.headers){if((0,M.iEqual)(t,V.HeaderConstants.X_MS_VERSION)){n=t}}if(n!==""){e.headers.delete(n)}return t(e)}}}},12094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const i=n(41564);const o=n(72995);const d=n(95561);const p=n(53952);const f=n(35345);const y=n(53789);const v=n(25984);const D=n(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,n){let i;if((0,v.isPipelineLike)(t)){i=t}else if(!t){i=(0,v.newPipeline)(new f.AnonymousCredential,n)}else{i=(0,v.newPipeline)(t,n)}const o=new y.StorageContextClient(e,(0,v.getCoreClientOptions)(i));const d=(0,D.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=o.container}else{this.serviceOrContainerContext=o.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,n){const i=new d.BlobBatch;for(const o of e){if(typeof o==="string"){await i.deleteBlob(o,t,n)}else{await i.deleteBlob(o,t)}}return this.submitBatch(i)}async setBlobsAccessTier(e,t,n,i){const o=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await o.setBlobAccessTier(d,t,n,i)}else{await o.setBlobAccessTier(d,t,n)}}return this.submitBatch(o)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return p.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const n=e.getHttpRequestBody();const d=(0,D.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,o.utf8ByteLength)(n),e.getMultiPartContentType(),n,{...t}));const p=new i.BatchResponseParser(d,e.getSubRequests());const f=await p.parseBatchResponse();const y={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:f.subResponses,subResponsesSucceededCount:f.subResponsesSucceededCount,subResponsesFailedCount:f.subResponsesFailedCount};return y}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const i=n(87779);const o=n(98684);class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return i.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,i,d={}){this.originalResponse=e;this.blobDownloadStream=new o.RetriableReadableStream(this.originalResponse.readableStreamBody,t,n,i,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const i=n(87779);const o=n(27323);const d=n(53952);const p=n(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const n=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=n.container}else{this._isContainer=false;this._containerOrBlobOperation=n.blob}if(!t){t=(0,i.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async n=>(0,p.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async n=>{const i=(0,p.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));this._leaseId=e;return i}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,p.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async n=>{const i={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return(0,p.assertResponse)(await this._containerOrBlobOperation.breakLease(i))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const i=n(87779);const o=n(36426);class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return i.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new o.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const i=n(50417);const o=n(20778);const d=n(87779);const p=n(25984);const f=n(81884);const y=n(47764);const v=n(68999);const D=n(35345);const M=n(47764);const U=n(53952);const V=n(12094);const j=n(73542);const K=n(6358);const ee=n(85238);const te=n(46940);class BlobServiceClient extends j.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const n=(0,y.extractConnectionStringParts)(e);if(n.kind==="AccountConnString"){if(d.isNodeLike){const e=new v.StorageSharedKeyCredential(n.accountName,n.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,o.getDefaultProxySettings)(n.proxyUri)}const i=(0,p.newPipeline)(e,t);return new BlobServiceClient(n.url,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(n.kind==="SASConnString"){const e=(0,p.newPipeline)(new D.AnonymousCredential,t);return new BlobServiceClient(n.url+"?"+n.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,n){let o;if((0,p.isPipelineLike)(t)){o=t}else if(d.isNodeLike&&t instanceof v.StorageSharedKeyCredential||t instanceof D.AnonymousCredential||(0,i.isTokenCredential)(t)){o=(0,p.newPipeline)(t,n)}else{o=(0,p.newPipeline)(new D.AnonymousCredential,n)}super(e,o);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new f.ContainerClient((0,y.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const n=this.getContainerClient(e);const i=await n.create(t);return{containerClient:n,containerCreateResponse:i}}))}async deleteContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const n=this.getContainerClient(e);return n.delete(t)}))}async undeleteContainer(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,(async i=>{const o=this.getContainerClient(n.destinationContainerName||e);const d=o["storageClientContext"].container;const p=(0,M.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:i.tracingOptions}));return{containerClient:o,containerUndeleteResponse:p}}))}async getProperties(e={}){return U.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async n=>(0,M.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async getStatistics(e={}){return U.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return U.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async n=>(0,M.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:n.tracingOptions}))))}async findBlobsByTagsSegment(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,(async i=>{const o=(0,M.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:i.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,y.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let i;if(!!t||t===undefined){do{i=await this.findBlobsByTagsSegment(e,t,n);i.blobs=i.blobs||[];t=i.continuationToken;yield i}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const i of this.findBlobsByTagsSegments(e,n,t)){yield*i.blobs}}findBlobsByTags(e,t={}){const n={...t};const i=this.findBlobsByTagsItems(e,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listContainersSegment(e,t);n.containerItems=n.containerItems||[];e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const n={...e,...t.length>0?{include:t}:{}};const i=this.listItems(n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async getUserDelegationKey(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",n,(async i=>{const o=(0,M.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,M.truncatedISO8061Date)(e,false),expiresOn:(0,M.truncatedISO8061Date)(t,false)},{abortSignal:n.abortSignal,tracingOptions:i.tracingOptions}));const d={signedObjectId:o.signedObjectId,signedTenantId:o.signedTenantId,signedStartsOn:new Date(o.signedStartsOn),signedExpiresOn:new Date(o.signedExpiresOn),signedService:o.signedService,signedVersion:o.signedVersion,value:o.value};const p={_response:o._response,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,date:o.date,errorCode:o.errorCode,...d};return p}))}getBlobBatchClient(){return new V.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=K.AccountSASPermissions.parse("r"),n="sco",i={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const o=(0,ee.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...i},this.credential).toString();return(0,y.appendToURLQuery)(this.url,o)}generateSasStringToSign(e,t=K.AccountSASPermissions.parse("r"),n="sco",i={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return(0,ee.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...i},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const i=n(20778);const o=n(50417);const d=n(87779);const p=n(87779);const f=n(4894);const y=n(95602);const v=n(35345);const D=n(68999);const M=n(58560);const U=n(95302);const V=n(25984);const j=n(73145);const K=n(52045);const ee=n(73542);const te=n(81582);const re=n(51382);const ne=n(27323);const ie=n(53952);const oe=n(47764);const se=n(53563);const ae=n(656);const Ae=n(23276);class BlobClient extends ee.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,p){p=p||{};let f;let y;if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,oe.getURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,oe.getURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,n={}){n.conditions=n.conditions||{};n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-download",n,(async i=>{const o=(0,oe.assertResponse)(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:n.onProgress},range:e===0&&!t?undefined:(0,K.rangeToString)({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:i.tracingOptions}));const p={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:(0,oe.parseObjectReplicationRecord)(o.objectReplicationRules)};if(!d.isNodeLike){return p}if(n.maxRetryRequests===undefined||n.maxRetryRequests<0){n.maxRetryRequests=ne.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(o.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!o.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new f.BlobDownloadResponse(p,(async t=>{const i={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({count:e+o.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...i})).readableStreamBody}),e,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))}async exists(e={}){return ie.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===ne.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===ne.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const n=(0,oe.assertResponse)(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:(0,oe.parseObjectReplicationRecord)(n.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return ie.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,oe.assertResponse)(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return ie.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,oe.assertResponse)(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return ie.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,oe.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-setMetadata",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async setTags(e,t={}){return ie.tracingClient.withSpan("BlobClient-setTags",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions,tags:(0,oe.toBlobTags)(e)}))))}async getTags(e={}){return ie.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const n=(0,oe.assertResponse)(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}));const i={...n,_response:n._response,tags:(0,oe.toTags)({blobTagSet:n.blobTagSet})||{}};return i}))}getBlobLeaseClient(e){return new Ae.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,oe.assertResponse)(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const n={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const i=new j.BlobBeginCopyFromUrlPoller({blobClient:n,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await i.poll();return i}async abortCopyFromURL(e,t={}){return ie.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async n=>(0,oe.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return ie.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async n=>(0,oe.assertResponse)(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:(0,oe.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async setAccessTier(e,t={}){return ie.tracingClient.withSpan("BlobClient-setAccessTier",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setTier((0,M.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions}))))}async downloadToBuffer(e,t,n,i={}){let o;let d=0;let p=0;let f=i;if(e instanceof Buffer){o=e;d=t||0;p=typeof n==="number"?n:0}else{d=typeof e==="number"?e:0;p=typeof t==="number"?t:0;f=n||{}}let y=f.blockSize??0;if(y<0){throw new RangeError("blockSize option must be >= 0")}if(y===0){y=ne.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(p&&p<=0){throw new RangeError("count option must be greater than 0")}if(!f.conditions){f.conditions={}}return ie.tracingClient.withSpan("BlobClient-downloadToBuffer",f,(async e=>{if(!p){const t=await this.getProperties({...f,tracingOptions:e.tracingOptions});p=t.contentLength-d;if(p<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!o){try{o=Buffer.alloc(p)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${p}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(o.length{let n=d+p;if(i+y{const d=await this.download(t,n,{...i,tracingOptions:o.tracingOptions});if(d.readableStreamBody){await(0,se.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const n=new URL(this.url);if(n.host.split(".")[1]==="blob"){const i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1];t=i[3]}else if((0,oe.isIpEndpointStyle)(n)){const i=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2];t=i[4]}else{const i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1];t=i[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return ie.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async n=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,oe.assertResponse)(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,oe.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const i=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n((0,oe.appendToURLQuery)(this.url,i))}))}generateUserDelegationSasStringToSign(e,t){return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ie.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,oe.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return ie.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,oe.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return ie.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,oe.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return ie.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,oe.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,oe.assertResponse)(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:(0,oe.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:ne.ETagAny};return ie.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const n=(0,oe.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...n,_response:n._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return ie.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,oe.assertResponse)(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("AppendBlobClient-appendBlock",n,(async i=>(0,oe.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions}))))}async appendBlockFromURL(e,t,n,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",i,(async o=>(0,oe.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:(0,K.rangeToString)({offset:t,count:n}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,oe.httpAuthorizationToString)(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return ie.tracingClient.withSpan("BlockBlobClient-query",t,(async n=>{const i=(0,oe.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,oe.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,oe.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return new y.BlobQueryResponse(i,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-upload",n,(async i=>(0,oe.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:(0,M.toAccessTier)(n.tier),blobTagsString:(0,oe.toBlobTagsString)(n.tags),tracingOptions:i.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async n=>(0,oe.assertResponse)(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:(0,oe.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async stageBlock(e,t,n,i={}){(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-stageBlock",i,(async o=>(0,oe.assertResponse)(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}))))}async stageBlockFromURL(e,t,n=0,i,o={}){(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",o,(async d=>(0,oe.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!i?undefined:(0,K.rangeToString)({offset:n,count:i}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,oe.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async n=>(0,oe.assertResponse)(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async getBlockList(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async n=>{const i=(0,oe.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));if(!i.committedBlocks){i.committedBlocks=[]}if(!i.uncommittedBlocks){i.uncommittedBlocks=[]}return i}))}async uploadData(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let n;if(e instanceof Buffer){n=e}else if(e instanceof ArrayBuffer){n=Buffer.from(e)}else{e=e;n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.byteLength,t)}else{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}}))}async uploadBrowserData(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}))}async uploadSeekableInternal(e,t,n={}){let i=n.blockSize??0;if(i<0||i>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const o=n.maxSingleShotSize??ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(o<0||o>ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(i===0){if(t>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>o){i=Math.ceil(t/ne.BLOCK_BLOB_MAX_BLOCKS);if(i{if(t<=o){return(0,oe.assertResponse)(await this.upload(e(0,t),t,d))}const f=Math.floor((t-1)/i)+1;if(f>ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${ne.BLOCK_BLOB_MAX_BLOCKS}`)}const y=[];const v=(0,p.randomUUID)();let D=0;const M=new te.Batch(n.concurrency);for(let o=0;o{const p=(0,oe.generateBlockID)(v,o);const M=i*o;const U=o===f-1?t:M+i;const V=U-M;y.push(p);await this.stageBlock(p,e(M,V),V,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:d.tracingOptions});D+=V;if(n.onProgress){n.onProgress({loadedBytes:D})}}))}await M.do();return this.commitBlockList(y,d)}))}async uploadFile(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async n=>{const i=(await(0,se.fsStat)(e)).size;return this.uploadSeekableInternal(((t,n)=>()=>(0,se.fsCreateReadStream)(e,{autoClose:true,end:n?t+n-1:Infinity,start:t})),i,{...t,tracingOptions:n.tracingOptions})}))}async uploadStream(e,t=ne.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,n=5,i={}){if(!i.blobHTTPHeaders){i.blobHTTPHeaders={}}if(!i.conditions){i.conditions={}}return ie.tracingClient.withSpan("BlockBlobClient-uploadStream",i,(async o=>{let d=0;const f=(0,p.randomUUID)();let y=0;const v=[];const D=new re.BufferScheduler(e,t,n,(async(e,t)=>{const n=(0,oe.generateBlockID)(f,d);v.push(n);d++;await this.stageBlock(n,e,t,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions});y+=t;if(i.onProgress){i.onProgress({loadedBytes:y})}}),Math.ceil(n/4*3));await D.do();return(0,oe.assertResponse)(await this.commitBlockList(v,{...i,tracingOptions:o.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("PageBlobClient-create",t,(async n=>(0,oe.assertResponse)(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(e,t={}){return ie.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async n=>{try{const i={ifNoneMatch:ne.ETagAny};const o=(0,oe.assertResponse)(await this.create(e,{...t,conditions:i,tracingOptions:n.tracingOptions}));return{succeeded:true,...o,_response:o._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,n,i={}){i.conditions=i.conditions||{};(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("PageBlobClient-uploadPages",i,(async o=>(0,oe.assertResponse)(await this.pageBlobContext.uploadPages(n,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:(0,K.rangeToString)({offset:t,count:n}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}))))}async uploadPagesFromURL(e,t,n,i,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",o,(async d=>(0,oe.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,K.rangeToString)({offset:t,count:i}),0,(0,K.rangeToString)({offset:n,count:i}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,oe.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,n={}){n.conditions=n.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-clearPages",n,(async i=>(0,oe.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions}))))}async getPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-getPageRanges",n,(async i=>{const o=(0,oe.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,U.rangeResponseFromModel)(o)}))}async listPageRangesSegment(e=0,t,n,i={}){return ie.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",i,(async o=>(0,oe.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),marker:n,maxPageSize:i.maxPageSize,tracingOptions:o.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,n,i={}){let o;if(!!n||n===undefined){do{o=await this.listPageRangesSegment(e,t,n,i);n=o.continuationToken;yield await o}while(n)}}async*listPageRangeItems(e=0,t,n={}){let i;for await(const o of this.listPageRangeItemSegments(e,t,i,n)){yield*(0,oe.ExtractPageRangeInfoItems)(o)}}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};const i=this.listPageRangeItems(e,t,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeItemSegments(e,t,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,i={}){i.conditions=i.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",i,(async o=>{const d=(0,oe.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,n,i,o={}){return ie.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",o,(async d=>(0,oe.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),marker:i,maxPageSize:o?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,n,i,o){let d;if(!!i||i===undefined){do{d=await this.listPageRangesDiffSegment(e,t,n,i,o);i=d.continuationToken;yield await d}while(i)}}async*listPageRangeDiffItems(e,t,n,i){let o;for await(const d of this.listPageRangeDiffItemSegments(e,t,n,o,i)){yield*(0,oe.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,n,i={}){i.conditions=i.conditions||{};const o=this.listPageRangeDiffItems(e,t,n,{...i});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeDiffItemSegments(e,t,n,o.continuationToken,{maxPageSize:o.maxPageSize,...i})}}async getPageRangesDiffForManagedDisks(e,t,n,i={}){i.conditions=i.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,(async o=>{const d=(0,oe.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-resize",t,(async n=>(0,oe.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async updateSequenceNumber(e,t,n={}){n.conditions=n.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",n,(async i=>(0,oe.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}async startCopyIncremental(e,t={}){return ie.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async n=>(0,oe.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const i=n(20778);const o=n(87779);const d=n(50417);const p=n(35345);const f=n(68999);const y=n(25984);const v=n(73542);const D=n(53952);const M=n(47764);const U=n(656);const V=n(23276);const j=n(90372);const K=n(12094);class ContainerClient extends v.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,n){let v;let D;n=n||{};if((0,y.isPipelineLike)(t)){D=e;v=t}else if(o.isNodeLike&&t instanceof f.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,d.isTokenCredential)(t)){D=e;v=(0,y.newPipeline)(t,n)}else if(!t&&typeof t!=="string"){D=e;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else if(t&&typeof t==="string"){const d=t;const U=(0,M.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(o.isNodeLike){const e=new f.StorageSharedKeyCredential(U.accountName,U.accountKey);D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d));if(!n.proxyOptions){n.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}v=(0,y.newPipeline)(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d))+"?"+U.accountSas;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(D,v);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return D.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,M.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return D.tracingClient.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return D.tracingClient.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new j.BlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new j.AppendBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new j.BlockBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new j.PageBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,M.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return D.tracingClient.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return D.tracingClient.withSpan("ContainerClient-setMetadata",t,(async n=>(0,M.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const n=(0,M.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const i={_response:n._response,blobPublicAccess:n.blobPublicAccess,date:n.date,etag:n.etag,errorCode:n.errorCode,lastModified:n.lastModified,requestId:n.requestId,clientRequestId:n.clientRequestId,signedIdentifiers:[],version:n.version};for(const e of n){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}i.signedIdentifiers.push({accessPolicy:t,id:e.id})}return i}))}async setAccessPolicy(e,t,n={}){n.conditions=n.conditions||{};return D.tracingClient.withSpan("ContainerClient-setAccessPolicy",n,(async i=>{const o=[];for(const e of t||[]){o.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,M.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,M.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,M.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:n.abortSignal,access:e,containerAcl:o,leaseAccessConditions:n.conditions,modifiedAccessConditions:n.conditions,tracingOptions:i.tracingOptions}))}))}getBlobLeaseClient(e){return new V.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,n,i={}){return D.tracingClient.withSpan("ContainerClient-uploadBlockBlob",i,(async i=>{const o=this.getBlockBlobClient(e);const d=await o.upload(t,n,i);return{blockBlobClient:o,response:d}}))}async deleteBlob(e,t={}){return D.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async n=>{let i=this.getBlobClient(e);if(t.versionId){i=i.withVersion(t.versionId)}return i.delete(n)}))}async listBlobFlatSegment(e,t={}){return D.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async n=>{const i=(0,M.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:n.tracingOptions}));const o={...i,_response:{...i._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobFlat)(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return o}))}async listBlobHierarchySegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",n,(async i=>{const o=(0,M.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...n,tracingOptions:i.tracingOptions}));const d={...o,_response:{...o._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobHierarchy)(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:o.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listBlobFlatSegment(e,t);e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const n={...e,...t.length>0?{include:t}:{}};const i=this.listItems(n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async*listHierarchySegments(e,t,n={}){let i;if(!!t||t===undefined){do{i=await this.listBlobHierarchySegment(e,t,n);t=i.continuationToken;yield await i}while(t)}}async*listItemsByHierarchy(e,t={}){let n;for await(const i of this.listHierarchySegments(e,n,t)){const e=i.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const n=[];if(t.includeCopy){n.push("copy")}if(t.includeDeleted){n.push("deleted")}if(t.includeMetadata){n.push("metadata")}if(t.includeSnapshots){n.push("snapshots")}if(t.includeVersions){n.push("versions")}if(t.includeUncommitedBlobs){n.push("uncommittedblobs")}if(t.includeTags){n.push("tags")}if(t.includeDeletedWithVersions){n.push("deletedwithversions")}if(t.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(t.includeLegalHold){n.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const i={...t,...n.length>0?{include:n}:{}};const o=this.listItemsByHierarchy(e,i);return{async next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async findBlobsByTagsSegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",n,(async i=>{const o=(0,M.assertResponse)(await this.containerContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:i.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,M.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let i;if(!!t||t===undefined){do{i=await this.findBlobsByTagsSegment(e,t,n);i.blobs=i.blobs||[];t=i.continuationToken;yield i}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const i of this.findBlobsByTagsSegments(e,n,t)){yield*i.blobs}}findBlobsByTags(e,t={}){const n={...t};const i=this.findBlobsByTagsItems(e,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async getAccountInfo(e={}){return D.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if((0,M.isIpEndpointStyle)(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,M.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const i=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();n((0,M.appendToURLQuery)(this.url,i))}))}generateUserDelegationSasStringToSign(e,t){return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new K.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const n=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}},25984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const i=n(61584);const o=n(20778);const d=n(60160);const p=n(78756);const f=n(50417);const y=n(46370);const v=n(98335);const D=n(68999);const M=n(35345);const U=n(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return U.StorageOAuthScopes}});const V=n(51382);const j=n(490);const K=n(31160);const ee=n(97999);const te=n(31821);const re=n(99359);function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new M.AnonymousCredential}const n=new Pipeline([],t);n._credential=e;return n}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const n=e.factories.filter((e=>!t.some((t=>t(e)))));if(n.length){const e=n.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,i.createRequestPolicyFactoryPolicy)(n),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...n}=e.options;let v=e._coreHttpClient;if(!v){v=t?(0,i.convertHttpClient)(t):(0,V.getCachedDefaultHttpClient)();e._coreHttpClient=v}let M=e._corePipeline;if(!M){const t=`azsdk-js-azure-storage-blob/${U.SDK_VERSION}`;const i=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;M=(0,d.createClientPipeline)({...n,loggingOptions:{additionalAllowedHeaderNames:U.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:U.StorageBlobLoggingAllowedQueryParameters,logger:y.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:p.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:p.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});M.removePolicy({phase:"Retry"});M.removePolicy({name:o.decompressResponsePolicyName});M.addPolicy((0,re.storageCorrectContentLengthPolicy)());M.addPolicy((0,K.storageRetryPolicy)(n.retryOptions),{phase:"Retry"});M.addPolicy((0,j.storageBrowserPolicy)());const v=processDownlevelPipeline(e);if(v){M.addPolicy(v.wrappedPolicies,v.afterRetry?{afterPhase:"Retry"}:undefined)}const V=getCredentialFromPipeline(e);if((0,f.isTokenCredential)(V)){M.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:V,scopes:n.audience??U.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(V instanceof D.StorageSharedKeyCredential){M.addPolicy((0,ee.storageSharedKeyCredentialPolicy)({accountName:V.accountName,accountKey:V.accountKey}),{phase:"Sign"})}e._corePipeline=M}return{...n,allowInsecureConnection:true,httpClient:v,pipeline:M}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new M.AnonymousCredential;for(const n of e.factories){if((0,f.isTokenCredential)(n.credential)){t=n.credential}else if(isStorageSharedKeyCredential(n)){return n}}return t}function isStorageSharedKeyCredential(e){if(e instanceof D.StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof M.AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return(0,f.isTokenCredential)(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof te.StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof v.StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const n={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const i={log(e,t){},shouldLog(e){return false}};const o=e.create(n,i);const d=o.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}},31821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const i=n(78654);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return i.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new i.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},73542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=n(53789);const o=n(25984);const d=n(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new i.StorageContextClient(this.url,(0,o.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,o.getCredentialFromPipeline)(t);const n=this.storageClientContext;n.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const i=n(30247);class StorageContextClient extends i.StorageClient{async sendOperationRequest(e,t){const n={...t};if(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}"){n.path=""}return super.sendOperationRequest(e,n)}}t.StorageContextClient=StorageContextClient},98335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const i=n(57996);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return i.StorageRetryPolicy}});const o=n(16308);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return o.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new i.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},35345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const i=n(13501);const o=n(52596);class AnonymousCredential extends o.Credential{create(e,t){return new i.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},52596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},68999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const i=n(77598);const o=n(45511);const d=n(52596);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new o.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},10992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const i=n(77598);class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},30247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=n(61860);i.__exportStar(n(12362),t);var o=n(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return o.StorageClient}});i.__exportStar(n(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}));var i;(function(e){e["Backup"]="backup"})(i||(t.KnownFileShareTokenIntent=i={}));var o;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(o||(t.KnownBlobExpiryOptions=o={}));var d;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};t.Logging={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.RetentionPolicy={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};t.Metrics={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.CorsRule={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};t.StaticWebsite={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};t.StorageError={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};t.ListContainersSegmentResponse={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.ContainerItem={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};t.ContainerProperties={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};t.KeyInfo={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};t.UserDelegationKey={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.FilterBlobSegment={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.FilterBlobItem={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};t.BlobTags={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};t.BlobTag={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.SignedIdentifier={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};t.AccessPolicy={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};t.ListBlobsFlatSegmentResponse={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobFlatListSegment={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobItemInternal={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};t.BlobName={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};t.BlobPropertiesInternal={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};t.ListBlobsHierarchySegmentResponse={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobHierarchyListSegment={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};t.BlockList={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};t.Block={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};t.PageList={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.PageRange={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.ClearRange={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.QueryRequest={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};t.DelimitedTextConfiguration={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};t.ArrowField={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};t.ServiceSetPropertiesHeaders={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLExceptionHeaders={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLHeaders={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLExceptionHeaders={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLHeaders={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesHeaders={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobSealHeaders={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockHeaders={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListHeaders={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.fileRequestIntent=t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=void 0;const i=n(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:i.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2025-07-05",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:i.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:i.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:i.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:i.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},y)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},D)}seal(e){return this.client.sendOperationRequest({options:e},M)}}t.AppendBlobImpl=AppendBlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.blobTagsString,p.legalHold1,p.blobType1],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.maxSize,p.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.transactionalContentMD5,p.sourceUrl,p.sourceContentCrc64,p.maxSize,p.appendPosition,p.sourceRange1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp23],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.appendPosition],isXML:true,serializer:f}},57559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}undelete(e){return this.client.sendOperationRequest({options:e},M)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},V)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},j)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},ee)}setMetadata(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ie)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},oe)}breakLease(e){return this.client.sendOperationRequest({options:e},se)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ae)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Ae)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ce)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},le)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ue)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},de)}query(e){return this.client.sendOperationRequest({options:e},pe)}getTags(e){return this.client.sendOperationRequest({options:e},ge)}setTags(e){return this.client.sendOperationRequest({options:e},me)}}t.BlobImpl=BlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.rangeGetContentMD5,p.rangeGetContentCRC64,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.blobDeleteType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.deleteSnapshots],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp11],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.expiryOptions,p.expiresOn],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifUnmodifiedSince,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp13],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.legalHold],isXML:true,serializer:f};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ie={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const oe={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const se={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp14],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const Ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.tier,p.rehydratePriority,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sealBlob,p.legalHold1],isXML:true,serializer:f};const ce={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.copySource,p.blobTagsString,p.legalHold1,p.xMsRequiresSync,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent],isXML:true,serializer:f};const le={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp15,p.copyId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.copyActionAbortConstant],isXML:true,serializer:f};const ue={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp16],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags,p.rehydratePriority,p.tier1],isXML:true,serializer:f};const de={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const pe={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:p.queryRequest,queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp17],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const ge={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f};const me={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:p.tags,queryParameters:[p.timeoutInSeconds,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifTags,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f}},95440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},y)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},v)}stageBlock(e,t,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:i},D)}stageBlockFromURL(e,t,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:i},M)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},V)}}t.BlockBlobImpl=BlockBlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent,p.transactionalContentMD5,p.blobType2,p.copySourceBlobProperties],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.sourceUrl,p.sourceContentCrc64,p.sourceRange1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:p.blocks,queryParameters:[p.timeoutInSeconds,p.comp25],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp25,p.listType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f}},14509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}setMetadata(e){return this.client.sendOperationRequest({options:e},M)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},V)}restore(e){return this.client.sendOperationRequest({options:e},j)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},K)}submitBatch(e,t,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:i},ee)}filterBlobs(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ie)}breakLease(e){return this.client.sendOperationRequest({options:e},oe)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},se)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ae)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Ae)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ce)}}t.ContainerImpl=ContainerImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.access,p.defaultEncryptionScope,p.preventEncryptionScopeOverride],isXML:true,serializer:f};const v={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const D={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,serializer:f};const M={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince],isXML:true,serializer:f};const U={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const V={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:p.containerAcl,queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.access,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const j={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.deletedContainerName,p.deletedContainerVersion],isXML:true,serializer:f};const K={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp9],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.sourceContainerName,p.sourceLeaseId],isXML:true,serializer:f};const ee={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4,p.restype2],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const re={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId],isXML:true,serializer:f};const ne={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1],isXML:true,serializer:f};const ie={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2],isXML:true,serializer:f};const oe={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod],isXML:true,serializer:f};const se={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1],isXML:true,serializer:f};const ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const Ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1,p.delimiter],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ce={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},37878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(61860);i.__exportStar(n(44181),t);i.__exportStar(n(14509),t);i.__exportStar(n(57559),t);i.__exportStar(n(69156),t);i.__exportStar(n(40535),t);i.__exportStar(n(95440),t)},69156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},y)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},D)}uploadPagesFromURL(e,t,n,i,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:i,options:o},M)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},V)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},j)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},K)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ee)}}t.PageBlobImpl=PageBlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.blobType,p.blobContentLength,p.blobSequenceNumber],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.pageWrite1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.sourceUrl,p.sourceRange,p.sourceContentCrc64,p.range1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20,p.prevsnapshot],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags,p.prevSnapshotUrl],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.blobContentLength],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobSequenceNumber,p.sequenceNumberAction],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp21],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.copySource],isXML:true,serializer:f}},44181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}getStatistics(e){return this.client.sendOperationRequest({options:e},D)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},M)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},V)}submitBatch(e,t,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:i},j)}filterBlobs(e){return this.client.sendOperationRequest({options:e},K)}}t.ServiceImpl=ServiceImpl;const f=o.createSerializer(d,true);const y={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:p.blobServiceProperties,queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const v={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const D={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[p.restype,p.timeoutInSeconds,p.comp1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const M={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.include],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:p.keyInfo,queryParameters:[p.restype,p.timeoutInSeconds,p.comp3],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const j={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const K={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(61860);i.__exportStar(n(26865),t);i.__exportStar(n(15337),t);i.__exportStar(n(68355),t);i.__exportStar(n(14400),t);i.__exportStar(n(56635),t);i.__exportStar(n(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=n(61860);const o=i.__importStar(n(61584));const d=n(37878);class StorageClient extends o.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const n={requestContentType:"application/json; charset=utf-8"};const i=`azsdk-js-azure-storage-blob/12.28.0`;const o=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;const p={...n,...t,userAgentOptions:{userAgentPrefix:o},endpoint:t.endpoint??t.baseUri??"{url}"};super(p);this.url=e;this.version=t.version||"2025-07-05";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}))},71400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.BaseRequestPolicy=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const i=n(61860);const o=n(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return o.RestError}});i.__exportStar(n(96341),t);i.__exportStar(n(90372),t);i.__exportStar(n(81884),t);i.__exportStar(n(23276),t);i.__exportStar(n(6358),t);i.__exportStar(n(91267),t);i.__exportStar(n(46940),t);var d=n(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});i.__exportStar(n(95561),t);i.__exportStar(n(12094),t);i.__exportStar(n(48175),t);i.__exportStar(n(2232),t);var p=n(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return p.generateBlobSASQueryParameters}});i.__exportStar(n(31821),t);i.__exportStar(n(51622),t);i.__exportStar(n(35345),t);i.__exportStar(n(52596),t);i.__exportStar(n(68999),t);var f=n(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return f.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return f.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return f.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return f.getBlobServiceAccountAudience}});var y=n(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return y.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return y.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return y.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return y.StorageOAuthScopes}});i.__exportStar(n(98335),t);var v=n(70336);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return v.BaseRequestPolicy}});i.__exportStar(n(13501),t);i.__exportStar(n(63064),t);i.__exportStar(n(98335),t);i.__exportStar(n(45511),t);i.__exportStar(n(26823),t);i.__exportStar(n(83627),t);var D=n(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return D.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,n={}){const i=await e.read(t,{abortSignal:n.abortSignal});if(i.length!==t){throw new Error("Hit stream end.")}return i}static async readByte(e,t={}){const n=await AvroParser.readFixedBytes(e,1,t);return n[0]}static async readZigZagLong(e,t={}){let n=0;let i=0;let o,d,p;do{o=await AvroParser.readByte(e,t);d=o&128;n|=(o&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return i}return n>>1^-(n&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const n=await AvroParser.readByte(e,t);if(n===1){return true}else if(n===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const n=await AvroParser.readFixedBytes(e,4,t);const i=new DataView(n.buffer,n.byteOffset,n.byteLength);return i.getFloat32(0,true)}static async readDouble(e,t={}){const n=await AvroParser.readFixedBytes(e,8,t);const i=new DataView(n.buffer,n.byteOffset,n.byteLength);return i.getFloat64(0,true)}static async readBytes(e,t={}){const n=await AvroParser.readLong(e,t);if(n<0){throw new Error("Bytes size was negative.")}return e.read(n,{abortSignal:t.abortSignal})}static async readString(e,t={}){const n=await AvroParser.readBytes(e,t);const i=new TextDecoder;return i.decode(n)}static async readMapPair(e,t,n={}){const i=await AvroParser.readString(e,n);const o=await t(e,n);return{key:i,value:o}}static async readMap(e,t,n={}){const readPairMethod=(e,n={})=>AvroParser.readMapPair(e,t,n);const i=await AvroParser.readArray(e,readPairMethod,n);const o={};for(const e of i){o[e.key]=e.value}return o}static async readArray(e,t,n={}){const i=[];for(let o=await AvroParser.readLong(e,n);o!==0;o=await AvroParser.readLong(e,n)){if(o<0){await AvroParser.readLong(e,n);o=-o}while(o--){const o=await t(e,n);i.push(o)}}return i}}t.AvroParser=AvroParser;var n;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(n||(n={}));var i;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(i||(i={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case i.NULL:case i.BOOLEAN:case i.INT:case i.LONG:case i.FLOAT:case i.DOUBLE:case i.BYTES:case i.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case n.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const i={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){i[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(i,e.name);case n.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case n.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case n.ARRAY:case n.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case i.NULL:return AvroParser.readNull();case i.BOOLEAN:return AvroParser.readBoolean(e,t);case i.INT:return AvroParser.readInt(e,t);case i.LONG:return AvroParser.readLong(e,t);case i.FLOAT:return AvroParser.readFloat(e,t);case i.DOUBLE:return AvroParser.readDouble(e,t);case i.BYTES:return AvroParser.readBytes(e,t);case i.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._symbols[n]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._types[n].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const n={};n["$schema"]=this._name;for(const i in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,i)){n[i]=await this._fields[i].read(e,t)}}return n}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const i=n(41675);const o=n(24517);const d=n(20181);const p=new o.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends i.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw p}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const n=this._readable.read(e);if(n){this._position+=n.length;return this.toUint8Array(n)}else{return new Promise(((n,i)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();n(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();i()};const abortHandler=()=>{cleanUp();i(p)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const i=n(11326);const o=n(35652);const d=n(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,n,i){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=n||0;this._objectIndex=i||0;this._initialBlockOffset=n||0}async initialize(e={}){const t=await o.AvroParser.readFixedBytes(this._headerStream,i.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,i.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await o.AvroParser.readMap(this._headerStream,o.AvroParser.readString,{abortSignal:e.abortSignal});const n=this._metadata[i.AVRO_CODEC_KEY];if(!(n===undefined||n===null||n==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await o.AvroParser.readFixedBytes(this._headerStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const p=JSON.parse(this._metadata[i.AVRO_SCHEMA_KEY]);this._itemType=o.AvroType.fromSchema(p);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await o.AvroParser.readFixedBytes(this._dataStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var i=n(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return i.AvroReader}});var o=n(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return o.AvroReadable}});var d=n(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("storage-blob")},58560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const i=n(27323);var o;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(o||(t.BlockBlobTier=o={}));var d;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(d||(t.PremiumPageBlobTier=d={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=i.EncryptionAlgorithmAES25}}var p;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(p||(t.StorageBlobAudience=p={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},13501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const i=n(63064);class AnonymousCredentialPolicy extends i.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},63064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const i=n(70336);class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},70336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},78654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const i=n(70336);const o=n(87779);const d=n(27323);const p=n(47764);class StorageBrowserPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(o.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const i=n(87779);const o=n(27323);const d=n(47764);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(i.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,o.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(o.HeaderConstants.COOKIE);e.headers.delete(o.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},99359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const i=n(27323);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},57996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const i=n(24517);const o=n(70336);const d=n(27323);const p=n(47764);const f=n(46370);const y=n(16308);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new i.AbortError("The operation was aborted.");class StorageRetryPolicy extends o.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const i=e.clone();const o=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!o){i.url=(0,p.setURLHost)(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=(0,p.setURLParameter)(i.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(o,n,y)){return y}t=t||!o&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(o,n,y,e)){throw e}}await this.delay(o,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,i){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of o){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||i){const t=n?n.status:i?i.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let i=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs;break}}else{i=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${i}ms`);return(0,p.delay)(i,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},16308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},31160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const i=n(24517);const o=n(20778);const d=n(87779);const p=n(98335);const f=n(27323);const y=n(47764);const v=n(46370);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new i.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const i=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:o}){if(t>=i){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${i}, no further try.`);return false}if(o){for(const e of M){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||o){const t=n?.status??o?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let i=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:i=V;break}}else{i=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const i=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!i||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:i;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,o.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new o.RestError("RetryPolicy failed without known error.")}}}},45511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const i=n(27323);const o=n(47764);const d=n(63064);const p=n(21902);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,i.HeaderConstants.DATE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,o.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const i=(0,o.getURLQueries)(e.url);const d={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();d[n]=i[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},97999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const i=n(77598);const o=n(27323);const d=n(47764);const p=n(21902);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,o.HeaderConstants.DATE),getHeaderValueToSign(t,o.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,i.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,i]of e.headers){if(n.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:i})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let i="";i+=`/${e.accountName}${n}`;const o=(0,d.getURLQueries)(t.url);const p={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();p[n]=o[t];e.push(n)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(p[t])}`}}return i}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},73145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const i=n(87779);const o=n(91754);class BlobBeginCopyFromUrlPoller extends o.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:n,intervalInMs:i=15e3,onProgress:o,resumeFrom:d,startCopyFromURLOptions:p}=e;let f;if(d){f=JSON.parse(d).state}const y=makeBlobBeginCopyFromURLPollOperation({...f,blobClient:t,copySource:n,startCopyFromURLOptions:p});super(y);if(typeof o==="function"){this.onProgress(o)}this.intervalInMs=i}delay(){return(0,i.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:n}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!n){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const p=async function update(e={}){const t=this.state;const{blobClient:n,copySource:i,startCopyFromURLOptions:o}=t;if(!t.isStarted){t.isStarted=true;const e=await n.startCopyFromURL(i,o);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const n=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:i,copyProgress:o}=n;const d=t.copyProgress;if(o){t.copyProgress=o}if(i==="pending"&&o!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(i==="success"){t.result=n;t.isCompleted=true}else if(i==="failed"){t.error=new Error(`Blob copy failed with reason: "${n.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const f=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:f,update:p}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${n}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const n of e){switch(n){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${n}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const n of e){switch(n){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${n}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const i=n(6358);const o=n(91267);const d=n(46940);const p=n(2977);const f=n(26823);const y=n(27323);const v=n(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const n=e.version?e.version:y.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const D=i.AccountSASPermissions.parse(e.permissions.toString());const M=d.AccountSASServices.parse(e.services).toString();const U=o.AccountSASResourceTypes.parse(e.resourceTypes).toString();let V;if(n>="2020-12-06"){V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n")}const j=t.computeHMACSHA256(V);return{sasQueryParameters:new f.SASQueryParameters(n,j,D.toString(),M,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:V}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${n}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const i=n(2232);const o=n(51622);const d=n(68999);const p=n(10992);const f=n(2977);const y=n(26823);const v=n(27323);const D=n(47764);function generateBlobSASQueryParameters(e,t,n){return generateBlobSASQueryParametersInternal(e,t,n).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,n){const i=e.version?e.version:v.SERVICE_VERSION;const o=t instanceof d.StorageSharedKeyCredential?t:undefined;let f;if(o===undefined&&n!==undefined){f=new p.UserDelegationKeyCredential(n,t)}if(o===undefined&&f===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(i>="2020-12-06"){if(o!==undefined){return generateBlobSASQueryParameters20201206(e,o)}else{if(i>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,f)}else{return generateBlobSASQueryParametersUDK20201206(e,f)}}}if(i>="2018-11-09"){if(o!==undefined){return generateBlobSASQueryParameters20181109(e,o)}else{if(i>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,f)}else{return generateBlobSASQueryParametersUDK20181109(e,f)}}}if(i>="2015-04-05"){if(o!==undefined){return generateBlobSASQueryParameters20150405(e,o)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";if(e.blobName){n="b"}let d;if(e.permissions){if(e.blobName){d=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const p=[d?d:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const v=t.computeHMACSHA256(p);return{sasQueryParameters:new y.SASQueryParameters(e.version,v,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:p}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:v}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:v}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:v}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,undefined,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function getCanonicalName(e,t,n){const i=[`/blob/${e}/${t}`];if(n){i.push(`/${n}`)}return i.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:v.SERVICE_VERSION;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${n}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const i=n(2977);const o=n(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,n,i,o,d,p,f,y,v,D,M,U,V,j,K,ee,te,re,ne){this.version=e;this.signature=t;if(n!==undefined&&typeof n!=="string"){this.permissions=n.permissions;this.services=n.services;this.resourceTypes=n.resourceTypes;this.protocol=n.protocol;this.startsOn=n.startsOn;this.expiresOn=n.expiresOn;this.ipRangeInner=n.ipRange;this.identifier=n.identifier;this.encryptionScope=n.encryptionScope;this.resource=n.resource;this.cacheControl=n.cacheControl;this.contentDisposition=n.contentDisposition;this.contentEncoding=n.contentEncoding;this.contentLanguage=n.contentLanguage;this.contentType=n.contentType;if(n.userDelegationKey){this.signedOid=n.userDelegationKey.signedObjectId;this.signedTenantId=n.userDelegationKey.signedTenantId;this.signedStartsOn=n.userDelegationKey.signedStartsOn;this.signedExpiresOn=n.userDelegationKey.signedExpiresOn;this.signedService=n.userDelegationKey.signedService;this.signedVersion=n.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId;this.correlationId=n.correlationId}}else{this.services=i;this.resourceTypes=o;this.expiresOn=f;this.permissions=n;this.protocol=d;this.startsOn=p;this.ipRangeInner=y;this.encryptionScope=ne;this.identifier=v;this.resource=D;this.cacheControl=M;this.contentDisposition=U;this.contentEncoding=V;this.contentLanguage=j;this.contentType=K;if(ee){this.signedOid=ee.signedObjectId;this.signedTenantId=ee.signedTenantId;this.signedStartsOn=ee.signedStartsOn;this.signedExpiresOn=ee.signedExpiresOn;this.signedService=ee.signedService;this.signedVersion=ee.signedVersion;this.preauthorizedAgentObjectId=te;this.correlationId=re}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const t=[];for(const n of e){switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?(0,o.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?(0,o.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?(0,i.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?(0,o.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?(0,o.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break}}return t.join("&")}tryAppendQueryParameter(e,t,n){if(!n){return}t=encodeURIComponent(t);n=encodeURIComponent(n);if(t.length>0&&n.length>0){e.push(`${t}=${n}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const i=n(24434);var o;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(o||(o={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=o.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new i.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=o.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const i=n(57075);const o=n(96147);class BlobQuickQueryStream extends i.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new o.AvroReader(new o.AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const n=t.$schema;if(typeof n!=="string"){throw Error("Missing schema in avro record.")}switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const n=t.name;if(typeof n!=="string"){throw Error("Invalid name in avro error record.")}const i=t.description;if(typeof i!=="string"){throw Error("Invalid description in avro error record.")}const o=t.position;if(typeof o!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:o,name:n,isFatal:e,description:i})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var n;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(n||(n={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===n.UNLOCKED){this.keys[e]=n.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=n.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===n.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}t.Mutex=Mutex},98684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const i=n(24517);const o=n(57075);class RetriableReadableStream extends o.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,i,o={}){super({highWaterMark:o.highWaterMark});this.getter=t;this.source=e;this.start=n;this.offset=n;this.end=n+i-1;this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0;this.onProgress=o.onProgress;this.options=o;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new i.AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}t.RetriableReadableStream=RetriableReadableStream},21902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const i=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const o=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,i,o];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.28.0";t.SERVICE_VERSION="2025-07-05";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];t.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const i=n(20623);const o=n(27323);t.tracingClient=(0,i.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:o.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const i=n(20778);const o=n(87779);const d=n(27323);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let o="";let d=Buffer.from("accountKey","base64");let p="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${i}://${o}.blob.${p}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let i=getValueInConnString(e,"AccountName");if(!i){i=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let i=n.pathname;i=i?i.endsWith("/")?`${i}${t}`:`${i}/${t}`:t;n.pathname=i;return n.toString()}function setURLParameter(e,t,n){const i=new URL(e);const o=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=i.search===""?"?":i.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){f.push(e)}}}if(d){f.push(`${o}=${d}`)}i.search=f.length?`?${f.join("&")}`:"";return i.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let i=t.search||"";i=i.trim();if(i!==""){i=i.startsWith("?")?i:`?${i}`}return`${n}${i}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&no){e=e.slice(0,o)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((i,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,i.createHttpHeaders)();for(const[n,i]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(i))}else{t.set(n,i)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const i=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(i)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const i=e[n];t.blobTagSet.push({key:n,value:i})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const n of e.blobTagSet){t[n.key]=n.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const n in e){const i=n.split("_");const o="or-";if(i[0].startsWith(o)){i[0]=i[0].substring(o.length)}const d={ruleId:i[1],replicationStatus:e[n]};const p=t.findIndex((e=>e.policyId===i[0]));if(p>-1){t[p].rules.push(d)}else{t.push({policyId:i[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let n=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)n=e.clearRange;let i=0;let o=0;while(i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const i=n(61860);const o=i.__importDefault(n(73024));const d=i.__importDefault(n(57975));const p=n(27323);async function streamToBuffer(e,t,n,i,o){let d=0;const f=i-n;return new Promise(((i,y)=>{const v=setTimeout((()=>y(new Error(`The operation cannot be completed in timeout.`))),p.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=f){clearTimeout(v);i();return}let p=e.read();if(!p){return}if(typeof p==="string"){p=Buffer.from(p,o)}const y=d+p.length>f?f-d:p.length;t.fill(p.slice(0,y),n+d,n+d+y);d+=y}));e.on("end",(()=>{clearTimeout(v);if(d{clearTimeout(v);y(e)}))}))}async function streamToBuffer2(e,t,n){let i=0;const o=t.length;return new Promise(((d,p)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,n)}if(i+d.length>o){p(new Error(`Stream exceeds buffer size. Buffer size: ${o}`));return}t.fill(d,i,i+d.length);i+=d.length}));e.on("end",(()=>{d(i)}));e.on("error",p)}))}async function streamToBuffer3(e,t){return new Promise(((n,i)=>{const o=[];e.on("data",(e=>{o.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{n(Buffer.concat(o))}));e.on("error",i)}))}async function readStreamToLocalFile(e,t){return new Promise(((n,i)=>{const d=o.default.createWriteStream(t);e.on("error",(e=>{i(e)}));d.on("error",(e=>{i(e)}));d.on("close",n);e.pipe(d)}))}t.fsStat=d.default.promisify(o.default.stat);t.fsCreateReadStream=o.default.createReadStream},24841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},24517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=n(24841);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},86381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const i=n(24434);const o=n(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new i.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,i,o,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(n<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`)}if(o<=0){throw new RangeError(`concurrency must be larger than 0, current is ${o}`)}this.bufferSize=t;this.maxBuffers=n;this.readable=e;this.outgoingHandler=i;this.concurrency=o;this.encoding=d}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new o.PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const i=n(57075);class BuffersStream extends i.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let i=0;for(const e of this.buffers){i+=e.byteLength}if(i=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(ne-n){const i=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,i));this.pushedBytesLength+=e-n;this.byteOffsetInCurrentBuffer=i;n=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===o){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;n+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const i=n(61860);const o=n(66093);const d=i.__importDefault(n(4573));const p=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e;this._size=0;const i=Math.ceil(e/p);for(let t=0;t0){e[0]=e[0].slice(d)}}getReadableStream(){return new o.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const i=n(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return i.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new i.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const i=n(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return i.StorageRetryPolicy}});const o=n(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return o.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new i.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const i=n(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,i.createDefaultHttpClient)()}return o}},32159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const i=n(63611);const o=n(450);class AnonymousCredential extends o.Credential{create(e,t){return new i.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const i=n(77598);const o=n(35369);const d=n(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new o.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},51382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const i=n(61860);i.__exportStar(n(86381),t);var o=n(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return o.getCachedDefaultHttpClient}});i.__exportStar(n(4399),t);i.__exportStar(n(32159),t);i.__exportStar(n(450),t);i.__exportStar(n(30849),t);i.__exportStar(n(77321),t);var d=n(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});i.__exportStar(n(63611),t);i.__exportStar(n(74238),t);i.__exportStar(n(22312),t);i.__exportStar(n(83100),t);i.__exportStar(n(92505),t);i.__exportStar(n(38622),t);i.__exportStar(n(27734),t);i.__exportStar(n(78178),t);i.__exportStar(n(35369),t);i.__exportStar(n(53233),t);i.__exportStar(n(77321),t)},32780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("storage-common")},63611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const i=n(74238);class AnonymousCredentialPolicy extends i.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const i=n(40590);class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const i=n(40590);const o=n(87779);const d=n(77925);const p=n(58218);class StorageBrowserPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(o.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const i=n(87779);const o=n(77925);const d=n(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(i.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,o.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(o.HeaderConstants.COOKIE);e.headers.delete(o.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const i=n(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},27734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const i=n(18251);const o=n(40590);const d=n(77925);const p=n(58218);const f=n(32780);const y=n(38622);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new i.AbortError("The operation was aborted.");class StorageRetryPolicy extends o.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const i=e.clone();const o=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!o){i.url=(0,p.setURLHost)(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=(0,p.setURLParameter)(i.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(o,n,y)){return y}t=t||!o&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(o,n,y,e)){throw e}}await this.delay(o,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,i){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of o){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||i){const t=n?n.status:i?i.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let i=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs;break}}else{i=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${i}ms`);return(0,p.delay)(i,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},78178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const i=n(18251);const o=n(20778);const d=n(87779);const p=n(77321);const f=n(77925);const y=n(58218);const v=n(32780);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new i.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const i=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:o}){if(t>=i){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${i}, no further try.`);return false}if(o){for(const e of M){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||o){const t=n?.status??o?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let i=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:i=V;break}}else{i=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const i=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!i||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:i;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,o.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new o.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const i=n(77925);const o=n(58218);const d=n(74238);const p=n(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,i.HeaderConstants.DATE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,o.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const i=(0,o.getURLQueries)(e.url);const d={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();d[n]=i[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const i=n(77598);const o=n(77925);const d=n(58218);const p=n(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,o.HeaderConstants.DATE),getHeaderValueToSign(t,o.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,i.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,i]of e.headers){if(n.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:i})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let i="";i+=`/${e.accountName}${n}`;const o=(0,d.getURLQueries)(t.url);const p={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();p[n]=o[t];e.push(n)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(p[t])}`}}return i}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const i=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const o=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,i,o];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const i=n(20778);const o=n(87779);const d=n(77925);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let o="";let d=Buffer.from("accountKey","base64");let p="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${i}://${o}.blob.${p}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let i=getValueInConnString(e,"AccountName");if(!i){i=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let i=n.pathname;i=i?i.endsWith("/")?`${i}${t}`:`${i}/${t}`:t;n.pathname=i;return n.toString()}function setURLParameter(e,t,n){const i=new URL(e);const o=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=i.search===""?"?":i.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){f.push(e)}}}if(d){f.push(`${o}=${d}`)}i.search=f.length?`?${f.join("&")}`:"";return i.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let i=t.search||"";i=i.trim();if(i!==""){i=i.startsWith("?")?i:`?${i}`}return`${n}${i}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&no){e=e.slice(0,o)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((i,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,i.createHttpHeaders)();for(const[n,i]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(i))}else{t.set(n,i)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},18251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=n(6675);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},27182:(e,t,n)=>{"use strict";const i=n(57075).Writable;const o=n(57975).inherits;const d=n(84136);const p=n(50612);const f=n(62271);const y=45;const v=Buffer.from("-");const D=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}i.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new f(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}o(Dicer,i);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{i.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,n){if(!this._hparser&&!this._bparser){return n()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new p(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{"use strict";const i=n(78474).EventEmitter;const o=n(57975).inherits;const d=n(22393);const p=n(84136);const f=Buffer.from("\r\n\r\n");const y=/\r\n/g;const v=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){i.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=d(e,"maxHeaderPairs",2e3);this.maxHeaderSize=d(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new p(f);this.ss.on("info",(function(e,n,i,o){if(n&&!t.maxed){if(t.nread+o-i>=t.maxHeaderSize){o=t.maxHeaderSize-t.nread+i;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=o-i}t.buffer+=n.toString("binary",i,o)}if(e){t._finish()}}))}o(HeaderParser,i);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(y);const t=e.length;let n,i;for(var o=0;o{"use strict";const i=n(57975).inherits;const o=n(57075).Readable;function PartStream(e){o.call(this,e)}i(PartStream,o);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,n)=>{"use strict";const i=n(78474).EventEmitter;const o=n(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var n=0;n=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const n=this._lookbehind_size+d;if(n>0){this.emit("info",false,this._lookbehind,0,n)}this._lookbehind.copy(this._lookbehind,0,n,this._lookbehind_size-n);this._lookbehind_size-=n;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}d+=(d>=0)*this._bufpos;if(e.indexOf(n,d)!==-1){d=e.indexOf(n,d);++this.matches;if(d>0){this.emit("info",true,e,this._bufpos,d)}else{this.emit("info",true)}return this._bufpos=d+i}else{d=t-i}while(d0){this.emit("info",false,e,this._bufpos,d{"use strict";const i=n(57075).Writable;const{inherits:o}=n(57975);const d=n(27182);const p=n(41192);const f=n(80855);const y=n(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...n}=e;this.opts={autoDestroy:false,...n};i.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}o(Busboy,i);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}i.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=y(e["content-type"]);const n={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(p.detect.test(t[0])){return new p(this,n)}if(f.detect.test(t[0])){return new f(this,n)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,n){this._parser.write(e,n)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=d},41192:(e,t,n)=>{"use strict";const{Readable:i}=n(57075);const{inherits:o}=n(57975);const d=n(27182);const p=n(8929);const f=n(72747);const y=n(20692);const v=n(22393);const D=/^boundary$/i;const M=/^form-data$/i;const U=/^charset$/i;const V=/^filename$/i;const j=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let n;let i;const o=this;let K;const ee=t.limits;const te=t.isPartAFile||((e,t,n)=>t==="application/octet-stream"||n!==undefined);const re=t.parsedConType||[];const ne=t.defCharset||"utf8";const ie=t.preservePath;const oe={highWaterMark:t.fileHwm};for(n=0,i=re.length;nle){o.parser.removeListener("part",onPart);o.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(fe){const e=fe;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(d){let v;let D;let K;let ee;let re;let le;let ue=0;if(d["content-type"]){K=p(d["content-type"][0]);if(K[0]){v=K[0].toLowerCase();for(n=0,i=K.length;nae){const i=ae-ue+e.length;if(i>0){n.push(e.slice(0,i))}n.truncated=true;n.bytesRead=ae;t.removeAllListeners("data");n.emit("limit");return}else if(!n.push(e)){o._pause=true}n.bytesRead=ue};Ee=function(){he=undefined;n.push(null)}}else{if(ge===ce){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++ge;++me;let n="";let i=false;fe=t;de=function(e){if((ue+=e.length)>se){const o=se-(ue-e.length);n+=e.toString("binary",0,o);i=true;t.removeAllListeners("data")}else{n+=e.toString("binary")}};Ee=function(){fe=undefined;if(n.length){n=f(n,"binary",ee)}e.emit("field",D,n,false,i,re,v);--me;checkFinished()}}t._readableState.sync=false;t.on("data",de);t.on("end",Ee)})).on("error",(function(e){if(he){he.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){Ee=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const n=this.parser.write(e);if(n&&!this._pause){t()}else{this._needDrain=!n;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){i.call(this,e);this.bytesRead=0;this.truncated=false}o(FileStream,i);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,n)=>{"use strict";const i=n(11496);const o=n(72747);const d=n(22393);const p=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const n=t.limits;const o=t.parsedConType;this.boy=e;this.fieldSizeLimit=d(n,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=d(n,"fieldNameSize",100);this.fieldsLimit=d(n,"fields",Infinity);let f;for(var y=0,v=o.length;yp){this._key+=this.decoder.write(e.toString("binary",p,n))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();p=n+1}else if(i!==undefined){++this._fields;let n;const d=this._keyTrunc;if(i>p){n=this._key+=this.decoder.write(e.toString("binary",p,i))}else{n=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(n.length){this.boy.emit("field",o(n,"binary",this.charset),"",d,false)}p=i+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._key+=this.decoder.write(e.toString("binary",p,d))}p=d;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(pp){this._val+=this.decoder.write(e.toString("binary",p,i))}this.boy.emit("field",o(this._key,"binary",this.charset),o(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();p=i+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._val+=this.decoder.write(e.toString("binary",p,d))}p=d;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(p0){this.boy.emit("field",o(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",o(this._key,"binary",this.charset),o(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{"use strict";const t=/\+/g;const n=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,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,1,1,1,1,1,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];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let i="";let o=0;let d=0;const p=e.length;for(;od){i+=e.substring(d,o);d=o}this.buffer="";++d}}if(d{"use strict";e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){"use strict";const t=new TextDecoder("utf-8");const n=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return i.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return i.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return i.utf16le;case"base64":return i.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return i.other.bind(e)}}}const i={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(n.has(this.toString())){try{return n.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,n){if(e){return getDecoder(n)(e,t)}return e}e.exports=decodeText},22393:e=>{"use strict";e.exports=function getLimit(e,t,n){if(!e||e[t]===undefined||e[t]===null){return n}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,n)=>{"use strict";const i=n(72747);const o=/%[a-fA-F0-9][a-fA-F0-9]/g;const d={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return d[e]}const p=0;const f=1;const y=2;const v=3;function parseParams(e){const t=[];let n=p;let d="";let D=false;let M=false;let U=0;let V="";const j=e.length;for(var K=0;K{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},36227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isOAuth2TokenCredential=isOAuth2TokenCredential;t.isBearerTokenCredential=isBearerTokenCredential;t.isBasicCredential=isBasicCredential;t.isApiKeyCredential=isApiKeyCredential;function isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function isBearerTokenCredential(e){return"getBearerToken"in e}function isBasicCredential(e){return"username"in e&&"password"in e}function isApiKeyCredential(e){return"key"in e}},43097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71408:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiVersionPolicyName=void 0;t.apiVersionPolicy=apiVersionPolicy;t.apiVersionPolicyName="ApiVersionPolicy";function apiVersionPolicy(e){return{name:t.apiVersionPolicyName,sendRequest:(t,n)=>{const i=new URL(t.url);if(!i.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(i.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return n(t)}}}},88728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultPipeline=createDefaultPipeline;t.getCachedDefaultHttpsClient=getCachedDefaultHttpsClient;const i=n(69468);const o=n(91810);const d=n(71408);const p=n(36227);const f=n(42095);const y=n(15756);const v=n(89709);const D=n(20219);let M;function createDefaultPipeline(e={}){const t=(0,o.createPipelineFromOptions)(e);t.addPolicy((0,d.apiVersionPolicy)(e));const{credential:n,authSchemes:i,allowInsecureConnection:M}=e;if(n){if((0,p.isApiKeyCredential)(n)){t.addPolicy((0,f.apiKeyAuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}else if((0,p.isBasicCredential)(n)){t.addPolicy((0,y.basicAuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}else if((0,p.isBearerTokenCredential)(n)){t.addPolicy((0,v.bearerAuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}else if((0,p.isOAuth2TokenCredential)(n)){t.addPolicy((0,D.oauth2AuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}}return t}function getCachedDefaultHttpsClient(){if(!M){M=(0,i.createDefaultHttpClient)()}return M}},86191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getClient=getClient;const i=n(88728);const o=n(16311);const d=n(37088);const p=n(85086);function getClient(e,t={}){var n,o,p;const f=(n=t.pipeline)!==null&&n!==void 0?n:(0,i.createDefaultPipeline)(t);if((o=t.additionalPolicies)===null||o===void 0?void 0:o.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;f.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:y,httpClient:v}=t;const D=(p=t.endpoint)!==null&&p!==void 0?p:e;const client=(e,...t)=>{const getUrl=n=>(0,d.buildRequestUrl)(D,e,t,Object.assign({allowInsecureConnection:y},n));return{get:(e={})=>buildOperation("GET",getUrl(e),f,e,y,v),post:(e={})=>buildOperation("POST",getUrl(e),f,e,y,v),put:(e={})=>buildOperation("PUT",getUrl(e),f,e,y,v),patch:(e={})=>buildOperation("PATCH",getUrl(e),f,e,y,v),delete:(e={})=>buildOperation("DELETE",getUrl(e),f,e,y,v),head:(e={})=>buildOperation("HEAD",getUrl(e),f,e,y,v),options:(e={})=>buildOperation("OPTIONS",getUrl(e),f,e,y,v),trace:(e={})=>buildOperation("TRACE",getUrl(e),f,e,y,v)}};return{path:client,pathUnchecked:client,pipeline:f}}function buildOperation(e,t,n,i,d,f){var y;d=(y=i.allowInsecureConnection)!==null&&y!==void 0?y:d;return{then:function(p,y){return(0,o.sendRequest)(e,t,n,Object.assign(Object.assign({},i),{allowInsecureConnection:d}),f).then(p,y)},async asBrowserStream(){if(p.isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return(0,o.sendRequest)(e,t,n,Object.assign(Object.assign({},i),{allowInsecureConnection:d,responseAsStream:true}),f)}},async asNodeStream(){if(p.isNodeLike){return(0,o.sendRequest)(e,t,n,Object.assign(Object.assign({},i),{allowInsecureConnection:d,responseAsStream:true}),f)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}},18240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildBodyPart=buildBodyPart;t.buildMultipartBody=buildMultipartBody;const i=n(9758);const o=n(4220);const d=n(82921);const p=n(48505);function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if((0,p.isBinaryBody)(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){var t;const n=getHeaderValue(e,"content-disposition");if(n){return n}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const i=(t=e.dispositionType)!==null&&t!==void 0?t:"form-data";let o=i;if(e.name){o+=`; name=${escapeDispositionField(e.name)}`}let d=undefined;if(e.filename){d=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){d=t}}if(d){o+=`; filename=${escapeDispositionField(d)}`}return o}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if((0,p.isBinaryBody)(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return(0,d.stringToUint8Array)(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return(0,d.stringToUint8Array)(JSON.stringify(e),"utf-8")}throw new i.RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){var t;const n=getPartContentType(e);const i=getContentDisposition(e);const d=(0,o.createHttpHeaders)((t=e.headers)!==null&&t!==void 0?t:{});if(n){d.set("content-type",n)}if(i){d.set("content-disposition",i)}const p=normalizeBody(e.body,n);return{headers:d,body:p}}function buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}},19635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.operationOptionsToRequestParameters=operationOptionsToRequestParameters;function operationOptionsToRequestParameters(e){var t,n,i,o,d,p;return{allowInsecureConnection:(t=e.requestOptions)===null||t===void 0?void 0:t.allowInsecureConnection,timeout:(n=e.requestOptions)===null||n===void 0?void 0:n.timeout,skipUrlEncoding:(i=e.requestOptions)===null||i===void 0?void 0:i.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:(o=e.requestOptions)===null||o===void 0?void 0:o.onUploadProgress,onDownloadProgress:(d=e.requestOptions)===null||d===void 0?void 0:d.onDownloadProgress,headers:Object.assign({},(p=e.requestOptions)===null||p===void 0?void 0:p.headers),onResponse:e.onResponse}}},97332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=createRestError;const i=n(9758);const o=n(4220);function createRestError(e,t){var n,o,d;const p=typeof e==="string"?t:e;const f=(o=(n=p.body)===null||n===void 0?void 0:n.error)!==null&&o!==void 0?o:p.body;const y=typeof e==="string"?e:(d=f===null||f===void 0?void 0:f.message)!==null&&d!==void 0?d:`Unexpected status code: ${p.status}`;return new i.RestError(y,{statusCode:statusCodeToNumber(p.status),code:f===null||f===void 0?void 0:f.code,request:p.request,response:toPipelineResponse(p)})}function toPipelineResponse(e){var t;return{headers:(0,o.createHttpHeaders)(e.headers),request:e.request,status:(t=statusCodeToNumber(e.status))!==null&&t!==void 0?t:-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}},16311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sendRequest=sendRequest;const i=n(9758);const o=n(4220);const d=n(72305);const p=n(88728);const f=n(48505);const y=n(18240);async function sendRequest(e,t,n,o={},d){var f;const y=d!==null&&d!==void 0?d:(0,p.getCachedDefaultHttpsClient)();const v=buildPipelineRequest(e,t,o);try{const e=await n.sendRequest(y,v);const t=e.headers.toJSON();const i=(f=e.readableStreamBody)!==null&&f!==void 0?f:e.browserStreamBody;const d=o.responseAsStream||i!==undefined?undefined:getResponseBody(e);const p=i!==null&&i!==void 0?i:d;if(o===null||o===void 0?void 0:o.onResponse){o.onResponse(Object.assign(Object.assign({},e),{request:v,rawHeaders:t,parsedBody:d}))}return{request:v,headers:t,status:`${e.status}`,body:p}}catch(e){if((0,i.isRestError)(e)&&e.response&&o.onResponse){const{response:t}=e;const n=t.headers.toJSON();o===null||o===void 0?void 0:o.onResponse(Object.assign(Object.assign({},t),{request:v,rawHeaders:n}),e)}throw e}}function getRequestContentType(e={}){var t,n,i;return(i=(t=e.contentType)!==null&&t!==void 0?t:(n=e.headers)===null||n===void 0?void 0:n["content-type"])!==null&&i!==void 0?i:getContentType(e.body)}function getContentType(e){if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){var i,p,f;const y=getRequestContentType(n);const{body:v,multipartBody:D}=getRequestBody(n.body,y);const M=v!==undefined||D!==undefined;const U=(0,o.createHttpHeaders)(Object.assign(Object.assign(Object.assign({},n.headers?n.headers:{}),{accept:(f=(i=n.accept)!==null&&i!==void 0?i:(p=n.headers)===null||p===void 0?void 0:p.accept)!==null&&f!==void 0?f:"application/json"}),M&&y&&{"content-type":y}));return(0,d.createPipelineRequest)({url:t,method:e,body:v,multipartBody:D,headers:U,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if((0,f.isReadableStream)(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:(0,y.buildMultipartBody)(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){var t,n;const i=(t=e.headers.get("content-type"))!==null&&t!==void 0?t:"";const o=i.split(";")[0];const d=(n=e.bodyAsText)!==null&&n!==void 0?n:"";if(o==="text/plain"){return String(d)}try{return d?JSON.parse(d):undefined}catch(t){if(o==="application/json"){throw createParseError(e,t)}return String(d)}}function createParseError(e,t){var n;const o=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const d=(n=t.code)!==null&&n!==void 0?n:i.RestError.PARSE_ERROR;return new i.RestError(o,{code:d,statusCode:e.status,request:e.request,response:e})}},37088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildRequestUrl=buildRequestUrl;t.buildBaseUrl=buildBaseUrl;t.replaceAll=replaceAll;function isQueryParameterWithOptions(e){const t=e.value;return t!==undefined&&t.toString!==undefined&&typeof t.toString==="function"}function buildRequestUrl(e,t,n,i={}){if(t.startsWith("https://")||t.startsWith("http://")){return t}e=buildBaseUrl(e,i);t=buildRoutePath(t,n,i);const o=appendQueryParams(`${e}/${t}`,i);const d=new URL(o);return d.toString().replace(/([^:]\/)\/+/g,"$1")}function getQueryParamValue(e,t,n,i){let o;if(n==="pipeDelimited"){o="|"}else if(n==="spaceDelimited"){o="%20"}else{o=","}let d;if(Array.isArray(i)){d=i}else if(typeof i==="object"&&i.toString===Object.prototype.toString){d=Object.entries(i).flat()}else{d=[i]}const p=d.map((n=>{if(n===null||n===undefined){return""}if(!n.toString||typeof n.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const i=n.toISOString!==undefined?n.toISOString():n.toString();return t?i:encodeURIComponent(i)})).join(o);return`${t?e:encodeURIComponent(e)}=${p}`}function appendQueryParams(e,t={}){var n,i,o,d;if(!t.queryParameters){return e}const p=new URL(e);const f=t.queryParameters;const y=[];for(const e of Object.keys(f)){const p=f[e];if(p===undefined||p===null){continue}const v=isQueryParameterWithOptions(p);const D=v?p.value:p;const M=v?(n=p.explode)!==null&&n!==void 0?n:false:false;const U=v&&p.style?p.style:"form";if(M){if(Array.isArray(D)){for(const n of D){y.push(getQueryParamValue(e,(i=t.skipUrlEncoding)!==null&&i!==void 0?i:false,U,n))}}else if(typeof D==="object"){for(const[e,n]of Object.entries(D)){y.push(getQueryParamValue(e,(o=t.skipUrlEncoding)!==null&&o!==void 0?o:false,U,n))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{y.push(getQueryParamValue(e,(d=t.skipUrlEncoding)!==null&&d!==void 0?d:false,U,D))}}if(p.search!==""){p.search+="&"}p.search+=y.join("&");return p.toString()}function buildBaseUrl(e,t){var n;if(!t.pathParameters){return e}const i=t.pathParameters;for(const[o,d]of Object.entries(i)){if(d===undefined||d===null){throw new Error(`Path parameters ${o} must not be undefined or null`)}if(!d.toString||typeof d.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${o} can't`)}let i=d.toISOString!==undefined?d.toISOString():String(d);if(!t.skipUrlEncoding){i=encodeURIComponent(d)}e=(n=replaceAll(e,`{${o}}`,i))!==null&&n!==void 0?n:""}return e}function buildRoutePath(e,t,n={}){var i;for(const o of t){const t=typeof o==="object"&&((i=o.allowReserved)!==null&&i!==void 0?i:false);let d=typeof o==="object"?o.value:o;if(!n.skipUrlEncoding&&!t){d=encodeURIComponent(d)}e=e.replace(/\{[\w-]+\}/,String(d))}return e}function replaceAll(e,t,n){return!e||!t?e:e.split(t).join(n||"")}},31255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="0.3.0";t.DEFAULT_RETRY_POLICY_COUNT=3},91810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const i=n(47129);const o=n(22338);const d=n(92187);const p=n(91691);const f=n(35035);const y=n(32462);const v=n(14197);const D=n(85086);const M=n(80067);const U=n(85366);const V=n(96690);const j=n(27427);function createPipelineFromOptions(e){const t=(0,o.createEmptyPipeline)();if(D.isNodeLike){if(e.agent){t.addPolicy((0,U.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,V.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,M.proxyPolicy)(e.proxyOptions));t.addPolicy((0,f.decompressResponsePolicy)())}t.addPolicy((0,v.formDataPolicy)(),{beforePolicies:[j.multipartPolicyName]});t.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,j.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,y.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});if(D.isNodeLike){t.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,i.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}},69468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const i=n(21167);function createDefaultHttpClient(){return(0,i.createNodeHttpClient)()}},4220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){var t;return(t=this._headersMap.get(normalizeName(e)))===null||t===void 0?void 0:t.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function createHttpHeaders(e){return new HttpHeadersImpl(e)}},41958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=t.operationOptionsToRequestParameters=t.getClient=t.createDefaultHttpClient=t.uint8ArrayToString=t.stringToUint8Array=t.isRestError=t.RestError=t.createEmptyPipeline=t.createPipelineRequest=t.createHttpHeaders=t.TypeSpecRuntimeLogger=t.setLogLevel=t.getLogLevel=t.createClientLogger=t.AbortError=void 0;const i=n(61860);var o=n(99992);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}});var d=n(18459);Object.defineProperty(t,"createClientLogger",{enumerable:true,get:function(){return d.createClientLogger}});Object.defineProperty(t,"getLogLevel",{enumerable:true,get:function(){return d.getLogLevel}});Object.defineProperty(t,"setLogLevel",{enumerable:true,get:function(){return d.setLogLevel}});Object.defineProperty(t,"TypeSpecRuntimeLogger",{enumerable:true,get:function(){return d.TypeSpecRuntimeLogger}});var p=n(4220);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});i.__exportStar(n(92097),t);i.__exportStar(n(43097),t);var f=n(72305);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(22338);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return y.createEmptyPipeline}});var v=n(9758);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return v.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return v.isRestError}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(69468);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return M.createDefaultHttpClient}});var U=n(86191);Object.defineProperty(t,"getClient",{enumerable:true,get:function(){return U.getClient}});var V=n(19635);Object.defineProperty(t,"operationOptionsToRequestParameters",{enumerable:true,get:function(){return V.operationOptionsToRequestParameters}});var j=n(97332);Object.defineProperty(t,"createRestError",{enumerable:true,get:function(){return j.createRestError}})},3644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(18459);t.logger=(0,i.createClientLogger)("ts-http-runtime")},36836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(38029);const o=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let p=[];let f=[];const y=[];if(o){enable(o)}const v=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:i.log});function enable(e){d=e;p=[];f=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){f.push(new RegExp(`^${e.substr(1)}$`))}else{p.push(new RegExp(`^${e}$`))}}for(const e of y){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of f){if(t.test(e)){return false}}for(const t of p){if(t.test(e)){return true}}return false}function disable(){const e=d||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:v.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}y.push(t);return t}function destroy(){const e=y.indexOf(this);if(e>=0){y.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}t["default"]=v},82490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLoggerContext=void 0;var i=n(18459);Object.defineProperty(t,"createLoggerContext",{enumerable:true,get:function(){return i.createLoggerContext}})},38029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.log=log;const i=n(61860);const o=n(48161);const d=i.__importDefault(n(57975));const p=i.__importStar(n(1708));function log(e,...t){p.stderr.write(`${d.default.format(e,...t)}${o.EOL}`)}},18459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TypeSpecRuntimeLogger=void 0;t.createLoggerContext=createLoggerContext;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const i=n(61860);const o=i.__importDefault(n(36836));const d=["verbose","info","warning","error"];const p={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return d.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let i;const f=(0,o.default)(e.namespace);f.log=(...e)=>{o.default.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${d.join(",")}`)}i=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}o.default.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${d.join(", ")}.`)}}function shouldEnable(e){return Boolean(i&&p[e.level]<=p[i])}function createLogger(e,n){const i=Object.assign(e.extend(n),{level:n});patchLogMethod(e,i);if(shouldEnable(i)){const e=o.default.disable();o.default.enable(e+","+i.namespace)}t.add(i);return i}function contextGetLogLevel(){return i}function contextCreateClientLogger(e){const t=f.extend(e);patchLogMethod(f,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:f}}const f=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});t.TypeSpecRuntimeLogger=f.logger;function setLogLevel(e){f.setLogLevel(e)}function getLogLevel(){return f.getLogLevel()}function createClientLogger(e){return f.createClientLogger(e)}},21167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyLength=getBodyLength;t.createNodeHttpClient=createNodeHttpClient;const i=n(61860);const o=i.__importStar(n(37067));const d=i.__importStar(n(44708));const p=i.__importStar(n(38522));const f=n(57075);const y=n(99992);const v=n(4220);const D=n(9758);const M=n(3644);const U=n(7784);const V={};function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends f.Transform{_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.loadedBytes=0;this.progressCallback=e}}class NodeHttpClient{constructor(){this.cachedHttpsAgents=new WeakMap}async sendRequest(e){var t,n,i;const o=new AbortController;let d;if(e.abortSignal){if(e.abortSignal.aborted){throw new y.AbortError("The operation was aborted. Request has already been canceled.")}d=e=>{if(e.type==="abort"){o.abort()}};e.abortSignal.addEventListener("abort",d)}let p;if(e.timeout>0){p=setTimeout((()=>{const t=new U.Sanitizer;M.logger.info(`request to '${t.sanitizeUrl(e.url)}' timed out. canceling...`);o.abort()}),e.timeout)}const f=e.headers.get("Accept-Encoding");const v=(f===null||f===void 0?void 0:f.includes("gzip"))||(f===null||f===void 0?void 0:f.includes("deflate"));let D=typeof e.body==="function"?e.body():e.body;if(D&&!e.headers.has("Content-Length")){const t=getBodyLength(D);if(t!==null){e.headers.set("Content-Length",t)}}let V;try{if(D&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{M.logger.error("Error in upload progress",e)}));if(isReadableStream(D)){D.pipe(n)}else{n.end(D)}D=n}const d=await this.makeRequest(e,o,D);if(p!==undefined){clearTimeout(p)}const f=getResponseHeaders(d);const y=(t=d.statusCode)!==null&&t!==void 0?t:0;const U={status:y,headers:f,request:e};if(e.method==="HEAD"){d.resume();return U}V=v?getDecodedResponseStream(d,f):d;const j=e.onDownloadProgress;if(j){const e=new ReportTransform(j);e.on("error",(e=>{M.logger.error("Error in download progress",e)}));V.pipe(e);V=e}if(((n=e.streamResponseStatusCodes)===null||n===void 0?void 0:n.has(Number.POSITIVE_INFINITY))||((i=e.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(U.status))){U.readableStreamBody=V}else{U.bodyAsText=await streamToText(V)}return U}finally{if(e.abortSignal&&d){let t=Promise.resolve();if(isReadableStream(D)){t=isStreamComplete(D)}let n=Promise.resolve();if(isReadableStream(V)){n=isStreamComplete(V)}Promise.all([t,n]).then((()=>{var t;if(d){(t=e.abortSignal)===null||t===void 0?void 0:t.removeEventListener("abort",d)}})).catch((e=>{M.logger.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){var i;const p=new URL(e.url);const f=p.protocol!=="https:";if(f&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const v=(i=e.agent)!==null&&i!==void 0?i:this.getOrCreateAgent(e,f);const U=Object.assign({agent:v,hostname:p.hostname,path:`${p.pathname}${p.search}`,port:p.port,method:e.method,headers:e.headers.toJSON({preserveCase:true})},e.requestOverrides);return new Promise(((i,p)=>{const v=f?o.request(U,i):d.request(U,i);v.once("error",(t=>{var n;p(new D.RestError(t.message,{code:(n=t.code)!==null&&n!==void 0?n:D.RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new y.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");v.destroy(e);p(e)}));if(n&&isReadableStream(n)){n.pipe(v)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){v.end(n)}else if(isArrayBuffer(n)){v.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{M.logger.error("Unrecognized body type",n);p(new D.RestError("Unrecognized body type"))}}else{v.end()}}))}getOrCreateAgent(e,t){var n;const i=e.disableKeepAlive;if(t){if(i){return o.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new o.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(i&&!e.tlsSettings){return d.globalAgent}const t=(n=e.tlsSettings)!==null&&n!==void 0?n:V;let o=this.cachedHttpsAgents.get(t);if(o&&o.options.keepAlive===!i){return o}M.logger.info("No cached TLS Agent exist, creating a new Agent");o=new d.Agent(Object.assign({keepAlive:!i},t));this.cachedHttpsAgents.set(t,o);return o}}}function getResponseHeaders(e){const t=(0,v.createHttpHeaders)();for(const n of Object.keys(e.headers)){const i=e.headers[n];if(Array.isArray(i)){if(i.length>0){t.set(n,i[0])}}else if(i){t.set(n,i)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=p.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=p.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const i=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){i.push(e)}else{i.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(i).toString("utf8"))}));e.on("error",(e=>{if(e&&(e===null||e===void 0?void 0:e.name)==="AbortError"){n(e)}else{n(new D.RestError(`Error reading response as text: ${e.message}`,{code:D.RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}},22338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const n=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{constructor(e){var t;this._policies=[];this._policies=(t=e===null||e===void 0?void 0:e.slice(0))!==null&&t!==void 0?t:[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!n.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!n.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const i=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return i(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const i=createPhase("None");const o=createPhase("Deserialize");const d=createPhase("Retry");const p=createPhase("Sign");const f=[n,i,o,d,p];function getPhase(e){if(e==="Retry"){return d}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return o}else if(e==="Sign"){return p}else{return i}}for(const e of this._policies){const n=e.policy;const i=e.options;const o=n.name;if(t.has(o)){throw new Error("Duplicate policy names not allowed in pipeline")}const d={policy:n,dependsOn:new Set,dependants:new Set};if(i.afterPhase){d.afterPhase=getPhase(i.afterPhase);d.afterPhase.hasAfterPolicies=true}t.set(o,d);const p=getPhase(i.phase);p.policies.add(d)}for(const e of this._policies){const{policy:n,options:i}=e;const o=n.name;const d=t.get(o);if(!d){throw new Error(`Missing node for policy ${o}`)}if(i.afterPolicies){for(const e of i.afterPolicies){const n=t.get(e);if(n){d.dependsOn.add(n);n.dependants.add(d)}}}if(i.beforePolicies){for(const e of i.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(d);d.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const i of n.policies){if(i.afterPhase&&(!i.afterPhase.hasRun||i.afterPhase.policies.size)){continue}if(i.dependsOn.size===0){e.push(i.policy);for(const e of i.dependants){e.dependsOn.delete(i)}t.delete(i.policy.name);n.policies.delete(i)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==i){if(!i.hasRun){walkPhase(i)}return}if(e.hasAfterPolicies){walkPhase(i)}}}let y=0;while(t.size>0){y++;const t=e.length;walkPhases();if(e.length<=t&&y>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function createEmptyPipeline(){return HttpPipeline.create()}},72305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const i=n(4220);const o=n(5023);class PipelineRequestImpl{constructor(e){var t,n,d,p,f,y,v;this.url=e.url;this.body=e.body;this.headers=(t=e.headers)!==null&&t!==void 0?t:(0,i.createHttpHeaders)();this.method=(n=e.method)!==null&&n!==void 0?n:"GET";this.timeout=(d=e.timeout)!==null&&d!==void 0?d:0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=(p=e.disableKeepAlive)!==null&&p!==void 0?p:false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=(f=e.withCredentials)!==null&&f!==void 0?f:false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||(0,o.randomUUID)();this.allowInsecureConnection=(y=e.allowInsecureConnection)!==null&&y!==void 0?y:false;this.enableBrowserStreams=(v=e.enableBrowserStreams)!==null&&v!==void 0?v:false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function createPipelineRequest(e){return new PipelineRequestImpl(e)}},85366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;t.agentPolicyName="agentPolicy";function agentPolicy(e){return{name:t.agentPolicyName,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}},42095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiKeyAuthenticationPolicyName=void 0;t.apiKeyAuthenticationPolicy=apiKeyAuthenticationPolicy;const i=n(42302);t.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy(e){return{name:t.apiKeyAuthenticationPolicyName,async sendRequest(t,n){var o,d;(0,i.ensureSecureConnection)(t,e);const p=(d=(o=t.authSchemes)!==null&&o!==void 0?o:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="apiKey"));if(!p){return n(t)}if(p.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${p.apiKeyLocation}`)}t.headers.set(p.name,e.credential.key);return n(t)}}}},15756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.basicAuthenticationPolicyName=void 0;t.basicAuthenticationPolicy=basicAuthenticationPolicy;const i=n(82921);const o=n(42302);t.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function basicAuthenticationPolicy(e){return{name:t.basicAuthenticationPolicyName,async sendRequest(t,n){var d,p;(0,o.ensureSecureConnection)(t,e);const f=(p=(d=t.authSchemes)!==null&&d!==void 0?d:e.authSchemes)===null||p===void 0?void 0:p.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!f){return n(t)}const{username:y,password:v}=e.credential;const D=(0,i.uint8ArrayToString)((0,i.stringToUint8Array)(`${y}:${v}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${D}`);return n(t)}}}},89709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerAuthenticationPolicyName=void 0;t.bearerAuthenticationPolicy=bearerAuthenticationPolicy;const i=n(42302);t.bearerAuthenticationPolicyName="bearerAuthenticationPolicy";function bearerAuthenticationPolicy(e){return{name:t.bearerAuthenticationPolicyName,async sendRequest(t,n){var o,d;(0,i.ensureSecureConnection)(t,e);const p=(d=(o=t.authSchemes)!==null&&o!==void 0?o:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!p){return n(t)}const f=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ensureSecureConnection=ensureSecureConnection;const i=n(3644);let o=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";i.logger.warning(e);if(typeof(process===null||process===void 0?void 0:process.emitWarning)==="function"&&!o){o=true;process.emitWarning(e)}}function ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}},20219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oauth2AuthenticationPolicyName=void 0;t.oauth2AuthenticationPolicy=oauth2AuthenticationPolicy;const i=n(42302);t.oauth2AuthenticationPolicyName="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy(e){return{name:t.oauth2AuthenticationPolicyName,async sendRequest(t,n){var o,d;(0,i.ensureSecureConnection)(t,e);const p=(d=(o=t.authSchemes)!==null&&o!==void 0?o:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="oauth2"));if(!p){return n(t)}const f=await e.credential.getOAuth2Token(p.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},35035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;t.decompressResponsePolicyName="decompressResponsePolicy";function decompressResponsePolicy(){return{name:t.decompressResponsePolicyName,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}},32462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const i=n(98102);const o=n(21112);const d=n(43345);const p=n(31255);t.defaultRetryPolicyName="defaultRetryPolicy";function defaultRetryPolicy(e={}){var n;return{name:t.defaultRetryPolicyName,sendRequest:(0,d.retryPolicy)([(0,o.throttlingRetryStrategy)(),(0,i.exponentialRetryStrategy)(e)],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:p.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},74656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const i=n(98102);const o=n(43345);const d=n(31255);t.exponentialRetryPolicyName="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){var t;return(0,o.retryPolicy)([(0,i.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreSystemErrors:true}))],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:d.DEFAULT_RETRY_POLICY_COUNT})}},14197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const i=n(82921);const o=n(85086);const d=n(4220);t.formDataPolicyName="formDataPolicy";function formDataToFormDataMap(e){var t;const n={};for(const[i,o]of e.entries()){(t=n[i])!==null&&t!==void 0?t:n[i]=[];n[i].push(o)}return n}function formDataPolicy(){return{name:t.formDataPolicyName,async sendRequest(e,t){if(o.isNodeLike&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,i]of Object.entries(e)){if(Array.isArray(i)){for(const e of i){t.append(n,e.toString())}}else{t.append(n,i.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n!==null&&n!==void 0?n:"multipart/form-data");const o=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){o.push({headers:(0,d.createHttpHeaders)({"Content-Disposition":`form-data; name="${t}"`}),body:(0,i.stringToUint8Array)(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const i=(0,d.createHttpHeaders)();i.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);i.set("Content-Type",e.type||"application/octet-stream");o.push({headers:i,body:e})}}}t.multipartBody={parts:o}}},44960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=t.userAgentPolicy=t.tlsPolicyName=t.tlsPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.formDataPolicyName=t.formDataPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.retryPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.defaultRetryPolicyName=t.defaultRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.agentPolicyName=t.agentPolicy=void 0;var i=n(85366);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return i.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return i.agentPolicyName}});var o=n(35035);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return o.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return o.decompressResponsePolicyName}});var d=n(32462);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return d.defaultRetryPolicy}});Object.defineProperty(t,"defaultRetryPolicyName",{enumerable:true,get:function(){return d.defaultRetryPolicyName}});var p=n(74656);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return p.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return p.exponentialRetryPolicyName}});var f=n(43345);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return f.retryPolicy}});var y=n(92418);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return y.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return y.systemErrorRetryPolicyName}});var v=n(24728);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return v.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return v.throttlingRetryPolicyName}});var D=n(14197);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return D.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return D.formDataPolicyName}});var M=n(47129);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return M.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return M.logPolicyName}});var U=n(27427);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return U.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return U.multipartPolicyName}});var V=n(80067);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return V.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return V.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return V.getDefaultProxySettings}});var j=n(92187);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return j.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return j.redirectPolicyName}});var K=n(96690);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return K.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return K.tlsPolicyName}});var ee=n(91691);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return ee.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return ee.userAgentPolicyName}})},47129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const i=n(3644);const o=n(7784);t.logPolicyName="logPolicy";function logPolicy(e={}){var n;const d=(n=e.logger)!==null&&n!==void 0?n:i.logger.info;const p=new o.Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:t.logPolicyName,async sendRequest(e,t){if(!d.enabled){return t(e)}d(`Request: ${p.sanitize(e)}`);const n=await t(e);d(`Response status code: ${n.status}`);d(`Headers: ${p.sanitize(n.headers)}`);return n}}}},27427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const i=n(82921);const o=n(48505);const d=n(5023);const p=n(20547);function generateBoundary(){return`----AzSDKFormBoundary${(0,d.randomUUID)()}`}function encodeHeaders(e){let t="";for(const[n,i]of e){t+=`${n}: ${i}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if((0,o.isBlob)(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const o=[(0,i.stringToUint8Array)(`--${n}`,"utf-8"),...t.flatMap((e=>[(0,i.stringToUint8Array)("\r\n","utf-8"),(0,i.stringToUint8Array)(encodeHeaders(e.headers),"utf-8"),(0,i.stringToUint8Array)("\r\n","utf-8"),e.body,(0,i.stringToUint8Array)(`\r\n--${n}`,"utf-8")])),(0,i.stringToUint8Array)("--\r\n\r\n","utf-8")];const d=getTotalLength(o);if(d){e.headers.set("Content-Length",d)}e.body=await(0,p.concat)(o)}t.multipartPolicyName="multipartPolicy";const f=70;const y=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>f){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!y.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy(){return{name:t.multipartPolicyName,async sendRequest(e,t){var n;if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let i=e.multipartBody.boundary;const o=(n=e.headers.get("Content-Type"))!==null&&n!==void 0?n:"multipart/mixed";const d=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!d){throw new Error(`Got multipart request body, but content-type header was not multipart: ${o}`)}const[,p,f]=d;if(f&&i&&f!==i){throw new Error(`Multipart boundary was specified as ${f} in the header, but got ${i} in the request body`)}i!==null&&i!==void 0?i:i=f;if(i){assertValidBoundary(i)}else{i=generateBoundary()}e.headers.set("Content-Type",`${p}; boundary=${i}`);await buildRequestBody(e,e.multipartBody.parts,i);e.multipartBody=undefined;return t(e)}}}},80067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.globalNoProxyList=t.proxyPolicyName=void 0;t.loadNoProxy=loadNoProxy;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const i=n(3669);const o=n(81970);const d=n(3644);const p="HTTPS_PROXY";const f="HTTP_PROXY";const y="ALL_PROXY";const v="NO_PROXY";t.proxyPolicyName="proxyPolicy";t.globalNoProxyList=[];let D=false;const M=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(p);const t=getEnvironmentValue(y);const n=getEnvironmentValue(f);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const i=new URL(e).hostname;if(n===null||n===void 0?void 0:n.has(i)){return n.get(i)}let o=false;for(const e of t){if(e[0]==="."){if(i.endsWith(e)){o=true}else{if(i.length===e.length-1&&i===e.slice(1)){o=true}}}else{if(i===e){o=true}}}n===null||n===void 0?void 0:n.set(i,o);return o}function loadNoProxy(){const e=getEnvironmentValue(v);D=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch(t){throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const p=new URL(e.url);const f=p.protocol!=="https:";if(e.tlsSettings){d.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const y=e.headers.toJSON();if(f){if(!t.httpProxyAgent){t.httpProxyAgent=new o.HttpProxyAgent(n,{headers:y})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new i.HttpsProxyAgent(n,{headers:y})}e.agent=t.httpsProxyAgent}}function proxyPolicy(e,n){if(!D){t.globalNoProxyList.push(...loadNoProxy())}const i=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const o={};return{name:t.proxyPolicyName,async sendRequest(e,d){var p;if(!e.proxySettings&&i&&!isBypassed(e.url,(p=n===null||n===void 0?void 0:n.customNoProxyList)!==null&&p!==void 0?p:t.globalNoProxyList,(n===null||n===void 0?void 0:n.customNoProxyList)?undefined:M)){setProxyAgentOnRequest(e,o,i)}else if(e.proxySettings){setProxyAgentOnRequest(e,o,getUrlFromProxySettings(e.proxySettings))}return d(e)}}}},92187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;t.redirectPolicyName="redirectPolicy";const n=["GET","HEAD"];function redirectPolicy(e={}){const{maxRetries:n=20}=e;return{name:t.redirectPolicyName,async sendRequest(e,t){const i=await t(e);return handleRedirect(t,i,n)}}}async function handleRedirect(e,t,i,o=0){const{request:d,status:p,headers:f}=t;const y=f.get("location");if(y&&(p===300||p===301&&n.includes(d.method)||p===302&&n.includes(d.method)||p===303&&d.method==="POST"||p===307)&&o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const i=n(77566);const o=n(99992);const d=n(18459);const p=n(31255);const f=(0,d.createClientLogger)("ts-http-runtime retryPolicy");const y="retryPolicy";function retryPolicy(e,t={maxRetries:p.DEFAULT_RETRY_POLICY_COUNT}){const n=t.logger||f;return{name:y,async sendRequest(d,f){var y,v;let D;let M;let U=-1;e:while(true){U+=1;D=undefined;M=undefined;try{n.info(`Retry ${U}: Attempting to send request`,d.requestId);D=await f(d);n.info(`Retry ${U}: Received a response from request`,d.requestId)}catch(e){n.error(`Retry ${U}: Received an error from request`,d.requestId);M=e;if(!e||M.name!=="RestError"){throw e}D=M.response}if((y=d.abortSignal)===null||y===void 0?void 0:y.aborted){n.error(`Retry ${U}: Request aborted.`);const e=new o.AbortError;throw e}if(U>=((v=t.maxRetries)!==null&&v!==void 0?v:p.DEFAULT_RETRY_POLICY_COUNT)){n.info(`Retry ${U}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(M){throw M}else if(D){return D}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${U}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${U}: Processing retry strategy ${t.name}.`);const o=t.retry({retryCount:U,response:D,responseError:M});if(o.skipStrategy){e.info(`Retry ${U}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:f,redirectTo:y}=o;if(p){e.error(`Retry ${U}: Retry strategy ${t.name} throws error:`,p);throw p}if(f||f===0){e.info(`Retry ${U}: Retry strategy ${t.name} retries after ${f}`);await(0,i.delay)(f,undefined,{abortSignal:d.abortSignal});continue e}if(y){e.info(`Retry ${U}: Retry strategy ${t.name} redirects to ${y}`);d.url=y;continue e}}if(M){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw M}if(D){n.info(`None of the retry strategies could work with the received response. Returning it.`);return D}}}}}},92418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const i=n(98102);const o=n(43345);const d=n(31255);t.systemErrorRetryPolicyName="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){var n;return{name:t.systemErrorRetryPolicyName,sendRequest:(0,o.retryPolicy)([(0,i.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreHttpStatusCodes:true}))],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},24728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const i=n(21112);const o=n(43345);const d=n(31255);t.throttlingRetryPolicyName="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){var n;return{name:t.throttlingRetryPolicyName,sendRequest:(0,o.retryPolicy)([(0,i.throttlingRetryStrategy)()],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},96690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;t.tlsPolicyName="tlsPolicy";function tlsPolicy(e){return{name:t.tlsPolicyName,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}},91691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const i=n(62731);const o=(0,i.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,i.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(o)){e.headers.set(o,await n)}return t(e)}}}},9758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const i=n(52573);const o=n(37639);const d=n(7784);const p=new d.Sanitizer;class RestError extends Error{constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});Object.defineProperty(this,o.custom,{value:()=>`RestError: ${this.message} \n ${p.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,enumerable:false});Object.setPrototypeOf(this,RestError.prototype)}}t.RestError=RestError;RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";function isRestError(e){if(e instanceof RestError){return true}return(0,i.isError)(e)&&e.name==="RestError"}},98102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryStrategy=exponentialRetryStrategy;t.isExponentialRetryResponse=isExponentialRetryResponse;t.isSystemError=isSystemError;const i=n(66776);const o=n(21112);const d=1e3;const p=1e3*64;function exponentialRetryStrategy(e={}){var t,n;const f=(t=e.retryDelayInMs)!==null&&t!==void 0?t:d;const y=(n=e.maxRetryDelayInMs)!==null&&n!==void 0?n:p;return{name:"exponentialRetryStrategy",retry({retryCount:t,response:n,responseError:d}){const p=isSystemError(d);const v=p&&e.ignoreSystemErrors;const D=isExponentialRetryResponse(n);const M=D&&e.ignoreHttpStatusCodes;const U=n&&((0,o.isThrottlingRetryResponse)(n)||!D);if(U||M||v){return{skipStrategy:true}}if(d&&!p&&!D){return{errorToThrow:d}}return(0,i.calculateRetryDelay)(t,{retryDelayInMs:f,maxRetryDelayInMs:y})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}},21112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isThrottlingRetryResponse=isThrottlingRetryResponse;t.throttlingRetryStrategy=throttlingRetryStrategy;const i=n(77566);const o="Retry-After";const d=["retry-after-ms","x-ms-retry-after-ms",o];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of d){const n=(0,i.parseHeaderValueAsNumber)(e,t);if(n===0||n){const e=t===o?1e3:1;return n*e}}const t=e.headers.get(o);if(!t)return;const n=Date.parse(t);const p=n-Date.now();return Number.isFinite(p)?Math.max(0,p):undefined}catch(e){return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}},82921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;function uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function stringToUint8Array(e,t){return Buffer.from(e,t)}},85086:(e,t)=>{"use strict";var n,i,o,d;Object.defineProperty(t,"__esModule",{value:true});t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isDeno=t.isWebWorker=t.isBrowser=void 0;t.isBrowser=typeof window!=="undefined"&&typeof window.document!=="undefined";t.isWebWorker=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((n=self.constructor)===null||n===void 0?void 0:n.name)==="DedicatedWorkerGlobalScope"||((i=self.constructor)===null||i===void 0?void 0:i.name)==="ServiceWorkerGlobalScope"||((o=self.constructor)===null||o===void 0?void 0:o.name)==="SharedWorkerGlobalScope");t.isDeno=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";t.isBun=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";t.isNodeLike=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean((d=globalThis.process.versions)===null||d===void 0?void 0:d.node);t.isNodeRuntime=t.isNodeLike&&!t.isBun&&!t.isDeno;t.isReactNative=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative"},20547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concat=concat;const i=n(61860);const o=n(2203);const d=n(48505);function streamAsyncIterator(){return i.__asyncGenerator(this,arguments,(function*streamAsyncIterator_1(){const e=this.getReader();try{while(true){const{done:t,value:n}=yield i.__await(e.read());if(t){return yield i.__await(void 0)}yield yield i.__await(n)}}finally{e.releaseLock()}}))}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return o.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return o.Readable.from(Buffer.from(e))}else if((0,d.isBlob)(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return o.Readable.from(function(){return i.__asyncGenerator(this,arguments,(function*(){var e,n,o,d;for(const v of t){try{for(var p=true,f=(n=void 0,i.__asyncValues(v)),y;y=yield i.__await(f.next()),e=y.done,!e;p=true){d=y.value;p=false;const e=d;yield yield i.__await(e)}}catch(e){n={error:e}}finally{try{if(!p&&!e&&(o=f.return))yield i.__await(o.call(f))}finally{if(n)throw n.error}}}}))}())}}},66776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateRetryDelay=calculateRetryDelay;const i=n(78640);function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const d=o/2+(0,i.getRandomIntegerInclusive)(0,o/2);return{retryAfterInMs:d}}},52573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isError=isError;const i=n(53632);function isError(e){if((0,i.isObject)(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}},77566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.parseHeaderValueAsNumber=parseHeaderValueAsNumber;const i=n(99992);const o="The operation was aborted.";function delay(e,t,n){return new Promise(((d,p)=>{let f=undefined;let y=undefined;const rejectOnAbort=()=>p(new i.AbortError((n===null||n===void 0?void 0:n.abortErrorMsg)?n===null||n===void 0?void 0:n.abortErrorMsg:o));const removeListeners=()=>{if((n===null||n===void 0?void 0:n.abortSignal)&&y){n.abortSignal.removeEventListener("abort",y)}};y=()=>{if(f){clearTimeout(f)}removeListeners();return rejectOnAbort()};if((n===null||n===void 0?void 0:n.abortSignal)&&n.abortSignal.aborted){return rejectOnAbort()}f=setTimeout((()=>{removeListeners();d(t)}),e);if(n===null||n===void 0?void 0:n.abortSignal){n.abortSignal.addEventListener("abort",y)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const i=Number(n);if(Number.isNaN(i))return;return i}},37639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.custom=void 0;const i=n(57975);t.custom=i.inspect.custom},95750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=t.uint8ArrayToString=t.stringToUint8Array=t.isWebWorker=t.isReactNative=t.isDeno=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isBrowser=t.randomUUID=t.computeSha256Hmac=t.computeSha256Hash=t.isError=t.isObject=t.getRandomIntegerInclusive=t.calculateRetryDelay=void 0;var i=n(66776);Object.defineProperty(t,"calculateRetryDelay",{enumerable:true,get:function(){return i.calculateRetryDelay}});var o=n(78640);Object.defineProperty(t,"getRandomIntegerInclusive",{enumerable:true,get:function(){return o.getRandomIntegerInclusive}});var d=n(53632);Object.defineProperty(t,"isObject",{enumerable:true,get:function(){return d.isObject}});var p=n(52573);Object.defineProperty(t,"isError",{enumerable:true,get:function(){return p.isError}});var f=n(2016);Object.defineProperty(t,"computeSha256Hash",{enumerable:true,get:function(){return f.computeSha256Hash}});Object.defineProperty(t,"computeSha256Hmac",{enumerable:true,get:function(){return f.computeSha256Hmac}});var y=n(5023);Object.defineProperty(t,"randomUUID",{enumerable:true,get:function(){return y.randomUUID}});var v=n(85086);Object.defineProperty(t,"isBrowser",{enumerable:true,get:function(){return v.isBrowser}});Object.defineProperty(t,"isBun",{enumerable:true,get:function(){return v.isBun}});Object.defineProperty(t,"isNodeLike",{enumerable:true,get:function(){return v.isNodeLike}});Object.defineProperty(t,"isNodeRuntime",{enumerable:true,get:function(){return v.isNodeRuntime}});Object.defineProperty(t,"isDeno",{enumerable:true,get:function(){return v.isDeno}});Object.defineProperty(t,"isReactNative",{enumerable:true,get:function(){return v.isReactNative}});Object.defineProperty(t,"isWebWorker",{enumerable:true,get:function(){return v.isWebWorker}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(7784);Object.defineProperty(t,"Sanitizer",{enumerable:true,get:function(){return M.Sanitizer}})},53632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isObject=isObject;function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}},78640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRandomIntegerInclusive=getRandomIntegerInclusive;function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}},7784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=void 0;const i=n(53632);const o="REDACTED";const d=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const p=["api-version"];class Sanitizer{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=d.concat(e);t=p.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return Object.assign(Object.assign({},n),{name:n.name,message:n.message})}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||(0,i.isObject)(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,o)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=o}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=o}}return t}}t.Sanitizer=Sanitizer},2016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.computeSha256Hmac=computeSha256Hmac;t.computeSha256Hash=computeSha256Hash;const i=n(77598);async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return(0,i.createHmac)("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return(0,i.createHash)("sha256").update(e).digest(t)}},48505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isNodeReadableStream=isNodeReadableStream;t.isWebReadableStream=isWebReadableStream;t.isBinaryBody=isBinaryBody;t.isReadableStream=isReadableStream;t.isBlob=isBlob;function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}},62731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const i=n(83196);const o=n(31255);function getUserAgentString(e){const t=[];for(const[n,i]of e){const e=i?`${n}/${i}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,i.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",o.SDK_VERSION);await(0,i.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},83196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const i=n(61860);const o=i.__importStar(n(48161));const d=i.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${o.arch()}-${o.type()}-${o.release()})`)}},5023:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=randomUUID;const o=n(77598);const d=typeof((i=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||i===void 0?void 0:i.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):o.randomUUID;function randomUUID(){return d()}},50591:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>ft,XMLParser:()=>st,XMLValidator:()=>re});const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let i=t.exec(e);for(;i;){const o=[];o.startIndex=t.lastIndex-i[0].length;const d=i.length;for(let e=0;e"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)y+=e[d];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),d--),!r(y)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",x("InvalidTag",t,N(e,d))}const v=c(e,d);if(!1===v)return x("InvalidAttr","Attributes for '"+y+"' have open quote.",N(e,d));let D=v.value;if(d=v.index,"/"===D[D.length-1]){const n=d-D.length;D=D.substring(0,D.length-1);const o=g(D,t);if(!0!==o)return x(o.err.code,o.err.msg,N(e,n+o.err.line));i=!0}else if(f){if(!v.tagClosed)return x("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",N(e,d));if(D.trim().length>0)return x("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",N(e,p));if(0===n.length)return x("InvalidTag","Closing tag '"+y+"' has not been opened.",N(e,p));{const t=n.pop();if(y!==t.tagName){let n=N(e,t.tagStartPos);return x("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",N(e,p))}0==n.length&&(o=!0)}}else{const f=g(D,t);if(!0!==f)return x(f.err.code,f.err.msg,N(e,d-D.length+f.err.line));if(!0===o)return x("InvalidXml","Multiple possible root nodes found.",N(e,d));-1!==t.unpairedTags.indexOf(y)||n.push({tagName:y,tagStartPos:p}),i=!0}for(d++;d0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function l(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t5&&"xml"===i)return x("InvalidXml","XML declaration allowed only at the start of the document.",N(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function h(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}const p='"',f="'";function c(e,t){let n="",i="",o=!1;for(;t"===e[t]&&""===i){o=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:o}}const y=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(e,t){const n=s(e,y),i={};for(let e=0;e!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1};let D;D="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class T{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}function w(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let i=1,o=!1,d=!1,p="";for(;t"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,i--):i--,0===i)break}else"["===e[t]?o=!0:p+=e[t];else{if(o&&C(e,"!ENTITY",t)){let i,o;t+=7,[i,o,t]=O(e,t+1),-1===o.indexOf("&")&&(n[i]={regx:RegExp(`&${i};`,"g"),val:o})}else if(o&&C(e,"!ELEMENT",t)){t+=8;const{index:n}=S(e,t+1);t=n}else if(o&&C(e,"!ATTLIST",t))t+=8;else if(o&&C(e,"!NOTATION",t)){t+=9;const{index:n}=A(e,t+1);t=n}else{if(!C(e,"!--",t))throw new Error("Invalid DOCTYPE");d=!0}i++,p=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}const P=(e,t)=>{for(;t{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}class k{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,16))}},this.addExternalEntities=F,this.parseXml=X,this.parseTextData=L,this.resolveNameSpace=B,this.buildAttributesMap=G,this.isItStopNode=Z,this.replaceEntitiesValue=R,this.readStopNodeData=J,this.saveTextToParentTag=q,this.addChild=Y,this.ignoreAttributesFn=_(this.options.ignoreAttributes)}}function F(e){const t=Object.keys(e);for(let n=0;n0)){p||(e=this.replaceEntitiesValue(e));const i=this.options.tagValueProcessor(t,e,n,o,d);return null==i?e:typeof i!=typeof e||i!==e?i:this.options.trimValues||e.trim()===e?H(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function B(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const K=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function G(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=s(e,K),i=n.length,o={};for(let e=0;e",d,"Closing Tag is not closed.");let p=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=p.indexOf(":");-1!==e&&(p=p.substr(e+1))}this.options.transformTagName&&(p=this.options.transformTagName(p)),n&&(i=this.saveTextToParentTag(i,n,o));const f=o.substring(o.lastIndexOf(".")+1);if(p&&-1!==this.options.unpairedTags.indexOf(p))throw new Error(`Unpaired tag can not be used as closing tag: `);let y=0;f&&-1!==this.options.unpairedTags.indexOf(f)?(y=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=o.lastIndexOf("."),o=o.substring(0,y),n=this.tagsNodeStack.pop(),i="",d=t}else if("?"===e[d+1]){let t=z(e,d,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,o),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new T(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,o,t.tagName)),this.addChild(n,e,o,d)}d=t.closeIndex+1}else if("!--"===e.substr(d+1,3)){const t=W(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const p=e.substring(d+4,t-2);i=this.saveTextToParentTag(i,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:p}])}d=t}else if("!D"===e.substr(d+1,2)){const t=w(e,d);this.docTypeEntities=t.entities,d=t.i}else if("!["===e.substr(d+1,2)){const t=W(e,"]]>",d,"CDATA is not closed.")-2,p=e.substring(d+9,t);i=this.saveTextToParentTag(i,n,o);let f=this.parseTextData(p,n.tagname,o,!0,!1,!0,!0);null==f&&(f=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:p}]):n.add(this.options.textNodeName,f),d=t+2}else{let p=z(e,d,this.options.removeNSPrefix),f=p.tagName;const y=p.rawTagName;let v=p.tagExp,D=p.attrExpPresent,M=p.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,o,!1));const U=n;U&&-1!==this.options.unpairedTags.indexOf(U.tagname)&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),f!==t.tagname&&(o+=o?"."+f:f);const V=d;if(this.isItStopNode(this.options.stopNodes,o,f)){let t="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)"/"===f[f.length-1]?(f=f.substr(0,f.length-1),o=o.substr(0,o.length-1),v=f):v=v.substr(0,v.length-1),d=p.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(f))d=p.closeIndex;else{const n=this.readStopNodeData(e,y,M+1);if(!n)throw new Error(`Unexpected end of ${y}`);d=n.i,t=n.tagContent}const i=new T(f);f!==v&&D&&(i[":@"]=this.buildAttributesMap(v,o,f)),t&&(t=this.parseTextData(t,f,o,!0,D,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),i.add(this.options.textNodeName,t),this.addChild(n,i,o,V)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){"/"===f[f.length-1]?(f=f.substr(0,f.length-1),o=o.substr(0,o.length-1),v=f):v=v.substr(0,v.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const e=new T(f);f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,o,f)),this.addChild(n,e,o,V),o=o.substr(0,o.lastIndexOf("."))}else{const e=new T(f);this.tagsNodeStack.push(n),f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,o,f)),this.addChild(n,e,o,V),n=e}i="",d=M}}else i+=e[d];return t.child};function Y(e,t,n,i){this.options.captureMetaData||(i=void 0);const o=this.options.updateTag(t.tagname,n,t[":@"]);!1===o||("string"==typeof o?(t.tagname=o,e.addChild(t,i)):e.addChild(t,i))}const R=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function q(e,t,n,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function Z(e,t,n){const i="*."+n;for(const n in e){const o=e[n];if(i===o||t===o)return!0}return!1}function W(e,t,n,i){const o=e.indexOf(t,n);if(-1===o)throw new Error(i);return o+t.length-1}function z(e,t,n,i=">"){const o=function(e,t,n=">"){let i,o="";for(let d=t;d",n,`${t} is not closed`);if(e.substring(n+2,d).trim()===t&&(o--,0===o))return{tagContent:e.substring(i,n),i:d};n=d}else if("?"===e[n+1])n=W(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=W(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=W(e,"]]>",n,"StopNode is not closed.")-2;else{const i=z(e,n,">");i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&o++,n=i.closeIndex)}}function H(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},V,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&M.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(-1!==n.search(/.+[eE].+/))return function(e,t,n){if(!n.eNotation)return e;const i=t.match(j);if(i){let o=i[1]||"";const d=-1===i[3].indexOf("e")?"E":"e",p=i[2],f=o?e[p.length+1]===d:e[p.length]===d;return p.length>1&&f?e:1!==p.length||!i[3].startsWith(`.${d}`)&&i[3][0]!==d?n.leadingZeros&&!f?(t=(i[1]||"")+i[3],Number(t)):e:Number(t)}return e}(e,n,t);{const o=U.exec(n);if(o){const d=o[1]||"",p=o[2];let f=(i=o[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const y=d?"."===e[p.length+1]:"."===e[p.length];if(!t.leadingZeros&&(p.length>1||1===p.length&&!y))return e;{const i=Number(n),o=String(i);if(0===i||-0===i)return i;if(-1!==o.search(/[eE]/))return t.eNotation?i:e;if(-1!==n.indexOf("."))return"0"===o||o===f||o===`${d}${f}`?i:e;let y=p?f:n;return p?y===o||d+y===o?i:e:y===o||y===d+o?i:e}}return e}var i}(e,n)}return void 0!==e?e:""}const ee=T.getMetaDataSymbol();function Q(e,t){return tt(e,t)}function tt(e,t,n){let i;const o={};for(let d=0;d0&&(o[t.textNodeName]=i):void 0!==i&&(o[t.textNodeName]=i),o}function et(e){const t=Object.keys(e);for(let e=0;e0&&(n="\n"),ot(e,t,"",n)}function ot(e,t,n,i){let o="",d=!1;for(let p=0;p`,d=!1;continue}if(y===t.commentPropName){o+=i+`\x3c!--${f[y][0][t.textNodeName]}--\x3e`,d=!0;continue}if("?"===y[0]){const e=lt(f[":@"],t),n="?xml"===y?"":i;let p=f[y][0][t.textNodeName];p=0!==p.length?" "+p:"",o+=n+`<${y}${p}${e}?>`,d=!0;continue}let D=i;""!==D&&(D+=t.indentBy);const M=i+`<${y}${lt(f[":@"],t)}`,U=ot(f[y],t,v,D);-1!==t.unpairedTags.indexOf(y)?t.suppressUnpairedNode?o+=M+">":o+=M+"/>":U&&0!==U.length||!t.suppressEmptyNode?U&&U.endsWith(">")?o+=M+`>${U}${i}`:(o+=M+">",U&&""!==i&&(U.includes("/>")||U.includes("`):o+=M+"/>",d=!0}return o}function at(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ft(e){this.options=Object.assign({},te,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gt),this.processTextOrObjNode=ct,this.options.format?(this.indentate=pt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ct(e,t,n,i){const o=this.j2x(e,n+1,i.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n):this.buildObjectNode(o.val,t,o.attrStr,n)}function pt(e){return this.options.indentBy.repeat(e)}function gt(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ft.prototype.build=function(e){return this.options.preserveOrder?rt(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},ft.prototype.j2x=function(e,t,n){let i="",o="";const d=n.join(".");for(let p in e)if(Object.prototype.hasOwnProperty.call(e,p))if(void 0===e[p])this.isAttribute(p)&&(o+="");else if(null===e[p])this.isAttribute(p)||p===this.options.cdataPropName?o+="":"?"===p[0]?o+=this.indentate(t)+"<"+p+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+p+"/"+this.tagEndChar;else if(e[p]instanceof Date)o+=this.buildTextValNode(e[p],p,"",t);else if("object"!=typeof e[p]){const n=this.isAttribute(p);if(n&&!this.ignoreAttributesFn(n,d))i+=this.buildAttrPairStr(n,""+e[p]);else if(!n)if(p===this.options.textNodeName){let t=this.options.tagValueProcessor(p,""+e[p]);o+=this.replaceEntitiesValue(t)}else o+=this.buildTextValNode(e[p],p,"",t)}else if(Array.isArray(e[p])){const i=e[p].length;let d="",f="";for(let y=0;y"+e+o}},ft.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+o+"0&&this.options.processEntities)for(let t=0;t{"use strict";e.exports=JSON.parse('{"name":"@actions/cache","version":"4.0.3","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","typescript":"^5.2.2"}}')}};var t={};function __nccwpck_require__(n){var i=t[n];if(i!==undefined){return i.exports}var o=t[n]={exports:{}};var d=true;try{e[n].call(o.exports,o,o.exports,__nccwpck_require__);d=false}finally{if(d)delete t[n]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n={};(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(48161);const i=__nccwpck_require__(76760);const o=__nccwpck_require__(51455);const d=__nccwpck_require__(37484);const p=__nccwpck_require__(5116);const f=__nccwpck_require__(33472);const y=__nccwpck_require__(94994);const v=__nccwpck_require__(62088);const D=__nccwpck_require__(75807);const M=__nccwpck_require__(71798);const U=__nccwpck_require__(3967);function getInputs(){const e={required:false,trimWhitespace:true};return{version:(0,d.getInput)("version",e)||"latest",cache_prefix:(0,d.getInput)("cache_prefix",e)||"",dir:(0,i.resolve)((0,d.getInput)("dir",e)||(0,t.tmpdir)()),db_user:(0,d.getInput)("db_user",e)||"wordpress",db_password:(0,d.getInput)("db_password",e)||"wordpress",db_name:(0,d.getInput)("db_name",e)||"wordpress_test",db_host:(0,d.getInput)("db_host",e)||"127.0.0.1",has_cache:(0,p.isFeatureAvailable)()&&!(0,M.isGHES)(),has_toolcache:process.env.RUNNER_TOOL_CACHE!==undefined,semver:undefined}}function resolveSemVer(e,t){t.semver=(0,v.coerce)(e)?.format();if(!t.semver){t.has_cache=false;t.has_toolcache=false}}async function cacheTool(e,t,n){if(n.has_toolcache){(0,d.info)(`📦 Caching ${e} as ${t} ${n.semver}…`);const i=await(0,f.cacheDir)(e,t,n.semver);(0,d.info)(`ℹ️ Saved cache to ${i}`)}}async function findCached(e,t,n){if(n.has_toolcache&&n.semver){(0,d.info)(`ℹ️ Checking tool cache for ${t} ${n.semver}…`);const p=(0,f.find)(t,n.semver);if(p){const f=(0,i.resolve)(p);(0,d.info)(`🚀 Using cached ${e} from ${f}`);await(0,o.symlink)(f,`${n.dir}/${t}`);return true}(0,d.info)(`😔 ${t} ${n.semver} was not found in the tool cache`)}if(n.has_cache){const o=`2:${n.cache_prefix}:${t}:${n.semver}`;(0,d.info)(`ℹ️ Checking cache key ${o} for ${t}…`);const f=await(0,p.restoreCache)([t],o);if(f){(0,d.info)(`🚀 Using cached ${e}, key is ${o}`);await cacheTool((0,i.join)(n.dir,t),t,n);return true}(0,d.saveState)(`dir_${t}`,n.dir);(0,d.saveState)(`cache_key_${t}`,o)}return false}async function downloadWordPress(e,t){const n=(0,i.join)(t.dir,"wordpress.zip");try{if(await findCached("WordPress","wordpress",t)){return}(0,d.info)(`📥 Downloading WordPress…`);const i=await(0,f.downloadTool)(e,n);const o=await(0,f.extractZip)(i,t.dir);await cacheTool(`${o}/wordpress`,"wordpress",t)}finally{await(0,y.rmRF)(n)}}async function downloadTestLibrary(e,t){if(await findCached("WordPress Test Library","wordpress-tests-lib",t)){return}(0,d.info)(`📥 Downloading WordPress Test Library…`);await(0,y.mkdirP)((0,i.join)(t.dir,"wordpress-tests-lib"));const n=new D.SVNClient;n.setConfig({silent:true});const[,,p]=await Promise.all([n.checkout(`${e}/tests/phpunit/includes/`,`${t.dir}/wordpress-tests-lib/includes`),n.checkout(`${e}/tests/phpunit/data/`,`${t.dir}/wordpress-tests-lib/data`),(0,M.downloadAsText)(`${e}/wp-tests-config-sample.php`)]);await Promise.all([(0,y.rmRF)(`${t.dir}/wordpress-tests-lib/includes/.svn`),(0,y.rmRF)(`${t.dir}/wordpress-tests-lib/data/.svn`),(0,o.writeFile)((0,i.join)(t.dir,"wordpress-tests-lib","wp-tests-config-sample.php"),p)]);await cacheTool(`${t.dir}/wordpress-tests-lib`,"wordpress-tests-lib",t)}async function configureWordPress(e){const t=(0,i.join)(e.dir,"wordpress-tests-lib");const n=(await(0,o.readFile)((0,i.join)(t,"wp-tests-config-sample.php"),"utf8")).replace("youremptytestdbnamehere",e.db_name).replace("yourusernamehere",e.db_user).replace("yourpasswordhere",e.db_password).replace("localhost",e.db_host).replace("dirname( __FILE__ ) . '/src/'",`'${e.dir}/wordpress/'`);return(0,o.writeFile)((0,i.join)(e.dir,"wordpress-tests-lib","wp-tests-config.php"),n)}async function run(){try{const e=getInputs();if(!await(0,M.isDir)(e.dir)){throw new Error(`Directory ${e.dir} does not exist`)}(0,d.info)("🤔 Determining WordPress version…");const t=await(0,U.resolveWordPressVersion)(e.version);(0,d.info)(`ℹ️ WordPress version: ${t}`);(0,d.setOutput)("wp_version",t);resolveSemVer(t,e);await Promise.all([(0,y.rmRF)((0,i.join)(e.dir,"wordpress")),(0,y.rmRF)((0,i.join)(e.dir,"wordpress-tests-lib")),(0,y.rmRF)((0,i.join)(e.dir,"wordpress.zip"))]);(0,d.info)(`ℹ️ Cache is available: ${e.has_cache?"yes":"no"}`);(0,d.info)(`ℹ️ Tool cache is available: ${e.has_toolcache?"yes":"no"}`);const n=(0,U.getWordPressDownloadUrl)(t);const o=(0,U.getWordPressTestLibraryBaseUrl)(t);const p=process.env.GITHUB_WORKSPACE;try{process.env.GITHUB_WORKSPACE=e.dir;await Promise.all([downloadWordPress(n,e),downloadTestLibrary(o,e)])}finally{process.env.GITHUB_WORKSPACE=p}(0,d.info)("⚙️ Configuring WordPress…");await configureWordPress(e);(0,d.exportVariable)("WP_TESTS_DIR",(0,i.join)(e.dir,"wordpress-tests-lib"));(0,d.setOutput)("wp_directory",(0,i.join)(e.dir,"wordpress"));(0,d.setOutput)("wptl_directory",(0,i.join)(e.dir,"wordpress-tests-lib"));(0,d.saveState)("ok_to_save_cache","yes");(0,d.info)("✅ Success")}catch(e){const t=e instanceof Error?e:new Error("An unknown error occurred",{cause:e});(0,d.setFailed)(`❌ ${t.message}`)}}void run()})();module.exports=n})(); \ No newline at end of file +/*! ws. MIT License. Einar Otto Stangvik */d[o-4]=this.maskKey[0];d[o-3]=this.maskKey[1];d[o-2]=this.maskKey[2];d[o-1]=this.maskKey[3];d[1]=n;if(n===126){d.writeUInt16BE(t,2)}else if(n===127){d[2]=d[3]=0;d.writeUIntBE(t,4,6)}d[1]|=128;for(let e=0;e{"use strict";const{Writable:i}=n(2203);const o=n(31637);const{parserStates:d,opcodes:p,states:f,emptyBuffer:y}=n(45913);const{kReadyState:v,kSentClose:D,kResponse:M,kReceivedClose:U}=n(62933);const{isValidStatusCode:V,failWebsocketConnection:j,websocketMessageReceived:K}=n(3574);const{WebsocketFrameSend:ee}=n(31237);const te={};te.ping=o.channel("undici:websocket:ping");te.pong=o.channel("undici:websocket:pong");class ByteParser extends i{#s=[];#a=0;#A=d.INFO;#c={};#l=[];constructor(e){super();this.ws=e}_write(e,t,n){this.#s.push(e);this.#a+=e.length;this.run(n)}run(e){while(true){if(this.#A===d.INFO){if(this.#a<2){return e()}const t=this.consume(2);this.#c.fin=(t[0]&128)!==0;this.#c.opcode=t[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==p.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==p.BINARY&&this.#c.opcode!==p.TEXT){j(this.ws,"Invalid frame type was fragmented.");return}const n=t[1]&127;if(n<=125){this.#c.payloadLength=n;this.#A=d.READ_DATA}else if(n===126){this.#A=d.PAYLOADLENGTH_16}else if(n===127){this.#A=d.PAYLOADLENGTH_64}if(this.#c.fragmented&&n>125){j(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#c.opcode===p.PING||this.#c.opcode===p.PONG||this.#c.opcode===p.CLOSE)&&n>125){j(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#c.opcode===p.CLOSE){if(n===1){j(this.ws,"Received close frame with a 1-byte body.");return}const e=this.consume(n);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[D]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const t=new ee(e);this.ws[M].socket.write(t.createFrame(p.CLOSE),(e=>{if(!e){this.ws[D]=true}}))}this.ws[v]=f.CLOSING;this.ws[U]=true;this.end();return}else if(this.#c.opcode===p.PING){const t=this.consume(n);if(!this.ws[U]){const e=new ee(t);this.ws[M].socket.write(e.createFrame(p.PONG));if(te.ping.hasSubscribers){te.ping.publish({payload:t})}}this.#A=d.INFO;if(this.#a>0){continue}else{e();return}}else if(this.#c.opcode===p.PONG){const t=this.consume(n);if(te.pong.hasSubscribers){te.pong.publish({payload:t})}if(this.#a>0){continue}else{e();return}}}else if(this.#A===d.PAYLOADLENGTH_16){if(this.#a<2){return e()}const t=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0);this.#A=d.READ_DATA}else if(this.#A===d.PAYLOADLENGTH_64){if(this.#a<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);if(n>2**31-1){j(this.ws,"Received payload length > 2^31 bytes.");return}const i=t.readUInt32BE(4);this.#c.payloadLength=(n<<8)+i;this.#A=d.READ_DATA}else if(this.#A===d.READ_DATA){if(this.#a=this.#c.payloadLength){const e=this.consume(this.#c.payloadLength);this.#l.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===p.CONTINUATION){const e=Buffer.concat(this.#l);K(this.ws,this.#c.originalOpcode,e);this.#c={};this.#l.length=0}this.#A=d.INFO}}if(this.#a>0){continue}else{e();break}}}consume(e){if(e>this.#a){return null}else if(e===0){return y}if(this.#s[0].length===e){this.#a-=this.#s[0].length;return this.#s.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const i=this.#s[0];const{length:o}=i;if(o+n===e){t.set(this.#s.shift(),n);break}else if(o+n>e){t.set(i.subarray(0,e-n),n);this.#s[0]=i.subarray(e-n);break}else{t.set(this.#s.shift(),n);n+=i.length}}this.#a-=e;return t}parseCloseBody(e,t){let n;if(t.length>=2){n=t.readUInt16BE(0)}if(e){if(!V(n)){return null}return{code:n}}let i=t.subarray(2);if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}if(n!==undefined&&!V(n)){return null}try{i=new TextDecoder("utf-8",{fatal:true}).decode(i)}catch{return null}return{code:n,reason:i}}get closingInfo(){return this.#c.closeInfo}}e.exports={ByteParser:ByteParser}},62933:e=>{"use strict";e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(e,t,n)=>{"use strict";const{kReadyState:i,kController:o,kResponse:d,kBinaryType:p,kWebSocketURL:f}=n(62933);const{states:y,opcodes:v}=n(45913);const{MessageEvent:D,ErrorEvent:M}=n(46255);function isEstablished(e){return e[i]===y.OPEN}function isClosing(e){return e[i]===y.CLOSING}function isClosed(e){return e[i]===y.CLOSED}function fireEvent(e,t,n=Event,i){const o=new n(e,i);t.dispatchEvent(o)}function websocketMessageReceived(e,t,n){if(e[i]!==y.OPEN){return}let o;if(t===v.TEXT){try{o=new TextDecoder("utf-8",{fatal:true}).decode(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===v.BINARY){if(e[p]==="blob"){o=new Blob([n])}else{o=new Uint8Array(n).buffer}}fireEvent("message",e,D,{origin:e[f].origin,data:o})}function isValidSubprotocol(e){if(e.length===0){return false}for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||t==="("||t===")"||t==="<"||t===">"||t==="@"||t===","||t===";"||t===":"||t==="\\"||t==='"'||t==="/"||t==="["||t==="]"||t==="?"||t==="="||t==="{"||t==="}"||e===32||e===9){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[o]:n,[d]:i}=e;n.abort();if(i?.socket&&!i.socket.destroyed){i.socket.destroy()}if(t){fireEvent("error",e,M,{error:new Error(t)})}}e.exports={isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived}},55171:(e,t,n)=>{"use strict";const{webidl:i}=n(74222);const{DOMException:o}=n(87326);const{URLSerializer:d}=n(94322);const{getGlobalOrigin:p}=n(75628);const{staticPropertyDescriptors:f,states:y,opcodes:v,emptyBuffer:D}=n(45913);const{kWebSocketURL:M,kReadyState:U,kController:V,kBinaryType:j,kResponse:K,kSentClose:ee,kByteParser:te}=n(62933);const{isEstablished:re,isClosing:ne,isValidSubprotocol:ie,failWebsocketConnection:oe,fireEvent:se}=n(3574);const{establishWebSocketConnection:ae}=n(68550);const{WebsocketFrameSend:Ae}=n(31237);const{ByteParser:ce}=n(43171);const{kEnumerableProperty:le,isBlobLike:ue}=n(3440);const{getGlobalDispatcher:de}=n(32581);const{types:pe}=n(39023);let ge=false;class WebSocket extends EventTarget{#u={open:null,error:null,close:null,message:null};#d=0;#p="";#g="";constructor(e,t=[]){super();i.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"});if(!ge){ge=true;process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"})}const n=i.converters["DOMString or sequence or WebSocketInit"](t);e=i.converters.USVString(e);t=n.protocols;const d=p();let f;try{f=new URL(e,d)}catch(e){throw new o(e,"SyntaxError")}if(f.protocol==="http:"){f.protocol="ws:"}else if(f.protocol==="https:"){f.protocol="wss:"}if(f.protocol!=="ws:"&&f.protocol!=="wss:"){throw new o(`Expected a ws: or wss: protocol, got ${f.protocol}`,"SyntaxError")}if(f.hash||f.href.endsWith("#")){throw new o("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new o("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>ie(e)))){throw new o("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[M]=new URL(f.href);this[V]=ae(f,t,this,(e=>this.#m(e)),n);this[U]=WebSocket.CONNECTING;this[j]="blob"}close(e=undefined,t=undefined){i.brandCheck(this,WebSocket);if(e!==undefined){e=i.converters["unsigned short"](e,{clamp:true})}if(t!==undefined){t=i.converters.USVString(t)}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new o("invalid code","InvalidAccessError")}}let n=0;if(t!==undefined){n=Buffer.byteLength(t);if(n>123){throw new o(`Reason must be less than 123 bytes; received ${n}`,"SyntaxError")}}if(this[U]===WebSocket.CLOSING||this[U]===WebSocket.CLOSED){}else if(!re(this)){oe(this,"Connection was closed before it was established.");this[U]=WebSocket.CLOSING}else if(!ne(this)){const i=new Ae;if(e!==undefined&&t===undefined){i.frameData=Buffer.allocUnsafe(2);i.frameData.writeUInt16BE(e,0)}else if(e!==undefined&&t!==undefined){i.frameData=Buffer.allocUnsafe(2+n);i.frameData.writeUInt16BE(e,0);i.frameData.write(t,2,"utf-8")}else{i.frameData=D}const o=this[K].socket;o.write(i.createFrame(v.CLOSE),(e=>{if(!e){this[ee]=true}}));this[U]=y.CLOSING}else{this[U]=WebSocket.CLOSING}}send(e){i.brandCheck(this,WebSocket);i.argumentLengthCheck(arguments,1,{header:"WebSocket.send"});e=i.converters.WebSocketSendData(e);if(this[U]===WebSocket.CONNECTING){throw new o("Sent before connected.","InvalidStateError")}if(!re(this)||ne(this)){return}const t=this[K].socket;if(typeof e==="string"){const n=Buffer.from(e);const i=new Ae(n);const o=i.createFrame(v.TEXT);this.#d+=n.byteLength;t.write(o,(()=>{this.#d-=n.byteLength}))}else if(pe.isArrayBuffer(e)){const n=Buffer.from(e);const i=new Ae(n);const o=i.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(o,(()=>{this.#d-=n.byteLength}))}else if(ArrayBuffer.isView(e)){const n=Buffer.from(e,e.byteOffset,e.byteLength);const i=new Ae(n);const o=i.createFrame(v.BINARY);this.#d+=n.byteLength;t.write(o,(()=>{this.#d-=n.byteLength}))}else if(ue(e)){const n=new Ae;e.arrayBuffer().then((e=>{const i=Buffer.from(e);n.frameData=i;const o=n.createFrame(v.BINARY);this.#d+=i.byteLength;t.write(o,(()=>{this.#d-=i.byteLength}))}))}}get readyState(){i.brandCheck(this,WebSocket);return this[U]}get bufferedAmount(){i.brandCheck(this,WebSocket);return this.#d}get url(){i.brandCheck(this,WebSocket);return d(this[M])}get extensions(){i.brandCheck(this,WebSocket);return this.#g}get protocol(){i.brandCheck(this,WebSocket);return this.#p}get onopen(){i.brandCheck(this,WebSocket);return this.#u.open}set onopen(e){i.brandCheck(this,WebSocket);if(this.#u.open){this.removeEventListener("open",this.#u.open)}if(typeof e==="function"){this.#u.open=e;this.addEventListener("open",e)}else{this.#u.open=null}}get onerror(){i.brandCheck(this,WebSocket);return this.#u.error}set onerror(e){i.brandCheck(this,WebSocket);if(this.#u.error){this.removeEventListener("error",this.#u.error)}if(typeof e==="function"){this.#u.error=e;this.addEventListener("error",e)}else{this.#u.error=null}}get onclose(){i.brandCheck(this,WebSocket);return this.#u.close}set onclose(e){i.brandCheck(this,WebSocket);if(this.#u.close){this.removeEventListener("close",this.#u.close)}if(typeof e==="function"){this.#u.close=e;this.addEventListener("close",e)}else{this.#u.close=null}}get onmessage(){i.brandCheck(this,WebSocket);return this.#u.message}set onmessage(e){i.brandCheck(this,WebSocket);if(this.#u.message){this.removeEventListener("message",this.#u.message)}if(typeof e==="function"){this.#u.message=e;this.addEventListener("message",e)}else{this.#u.message=null}}get binaryType(){i.brandCheck(this,WebSocket);return this[j]}set binaryType(e){i.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[j]="blob"}else{this[j]=e}}#m(e){this[K]=e;const t=new ce(this);t.on("drain",(function onParserDrain(){this.ws[K].socket.resume()}));e.socket.ws=this;this[te]=t;this[U]=y.OPEN;const n=e.headersList.get("sec-websocket-extensions");if(n!==null){this.#g=n}const i=e.headersList.get("sec-websocket-protocol");if(i!==null){this.#p=i}se("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=y.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=y.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=y.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=y.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f,url:le,readyState:le,bufferedAmount:le,onopen:le,onerror:le,onclose:le,close:le,onmessage:le,binaryType:le,send:le,extensions:le,protocol:le,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:f,OPEN:f,CLOSING:f,CLOSED:f});i.converters["sequence"]=i.sequenceConverter(i.converters.DOMString);i.converters["DOMString or sequence"]=function(e){if(i.util.Type(e)==="Object"&&Symbol.iterator in e){return i.converters["sequence"](e)}return i.converters.DOMString(e)};i.converters.WebSocketInit=i.dictionaryConverter([{key:"protocols",converter:i.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return de()}},{key:"headers",converter:i.nullableConverter(i.converters.HeadersInit)}]);i.converters["DOMString or sequence or WebSocketInit"]=function(e){if(i.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return i.converters.WebSocketInit(e)}return{protocols:i.converters["DOMString or sequence"](e)}};i.converters.WebSocketSendData=function(e){if(i.util.Type(e)==="Object"){if(ue(e)){return i.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||pe.isAnyArrayBuffer(e)){return i.converters.BufferSource(e)}}return i.converters.USVString(e)};e.exports={WebSocket:WebSocket}},71798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sortVersions=sortVersions;t.isDir=isDir;t.downloadAsText=downloadAsText;t.isGHES=isGHES;const i=n(51455);const o=n(54844);function sortVersions(e){return e.sort(((e,t)=>{const n=e.split(".");const i=t.split(".");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLatestVersion=getLatestVersion;t.getLatestBranchVersion=getLatestBranchVersion;const i=n(54844);const o=n(71798);async function getLatestVersion(){const e=new i.HttpClient;const t=await e.getJson("http://api.wordpress.org/core/version-check/1.7/");if(t.statusCode===200&&t.result){return t.result.offers[0].version}throw new Error(`Failed to fetch WordPress versions: error ${t.statusCode}`)}async function getLatestBranchVersion(e){const t=new i.HttpClient;const n=await t.getJson("https://api.wordpress.org/core/version-check/1.7/");if(n.statusCode===200&&n.result){const t=n.result.offers.filter((t=>t.version.startsWith(e))).map((e=>e.version));const i=(0,o.sortVersions)(t);return i[0]}throw new Error(`Failed to fetch WordPress versions: error ${n.statusCode}`)}},3967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveWordPressVersion=resolveWordPressVersion;t.getWordPressDownloadUrl=getWordPressDownloadUrl;t.getWordPressTestLibraryBaseUrl=getWordPressTestLibraryBaseUrl;const i=n(41974);const o="https://wordpress.org/nightly-builds/wordpress-latest.zip";const d="https://wordpress.org/wordpress-";const p="https://develop.svn.wordpress.org/";function resolveWordPressVersion(e){if(e==="nightly"||e==="trunk"){return Promise.resolve("nightly")}if(e==="latest"){return(0,i.getLatestVersion)()}if(e.endsWith(".x")){return(0,i.getLatestBranchVersion)(e.slice(0,-2))}return Promise.resolve(e)}function getWordPressDownloadUrl(e){if(e==="nightly"){return o}return`${d}${e}.zip`}function getWordPressTestLibraryBaseUrl(e){const t=e==="nightly"?"trunk":`tags/${e}`;return`${p}${t}`}},42613:e=>{"use strict";e.exports=require("assert")},90290:e=>{"use strict";e.exports=require("async_hooks")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},64236:e=>{"use strict";e.exports=require("console")},76982:e=>{"use strict";e.exports=require("crypto")},31637:e=>{"use strict";e.exports=require("diagnostics_channel")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},85675:e=>{"use strict";e.exports=require("http2")},65692:e=>{"use strict";e.exports=require("https")},69278:e=>{"use strict";e.exports=require("net")},4573:e=>{"use strict";e.exports=require("node:buffer")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},51455:e=>{"use strict";e.exports=require("node:fs/promises")},37067:e=>{"use strict";e.exports=require("node:http")},44708:e=>{"use strict";e.exports=require("node:https")},48161:e=>{"use strict";e.exports=require("node:os")},76760:e=>{"use strict";e.exports=require("node:path")},1708:e=>{"use strict";e.exports=require("node:process")},57075:e=>{"use strict";e.exports=require("node:stream")},57975:e=>{"use strict";e.exports=require("node:util")},38522:e=>{"use strict";e.exports=require("node:zlib")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},82987:e=>{"use strict";e.exports=require("perf_hooks")},83480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},63774:e=>{"use strict";e.exports=require("stream/web")},13193:e=>{"use strict";e.exports=require("string_decoder")},53557:e=>{"use strict";e.exports=require("timers")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},98253:e=>{"use strict";e.exports=require("util/types")},28167:e=>{"use strict";e.exports=require("worker_threads")},43106:e=>{"use strict";e.exports=require("zlib")},50198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureKeyCredential=void 0;class AzureKeyCredential{get key(){return this._key}constructor(e){if(!e){throw new Error("key must be a non-empty string")}this._key=e}update(e){this._key=e}}t.AzureKeyCredential=AzureKeyCredential},41295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureNamedKeyCredential=void 0;t.isNamedKeyCredential=isNamedKeyCredential;const i=n(87779);class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}t.AzureNamedKeyCredential=AzureNamedKeyCredential;function isNamedKeyCredential(e){return(0,i.isObjectWithProperties)(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}},56608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureSASCredential=void 0;t.isSASCredential=isSASCredential;const i=n(87779);class AzureSASCredential{get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}t.AzureSASCredential=AzureSASCredential;function isSASCredential(e){return(0,i.isObjectWithProperties)(e,["signature"])&&typeof e.signature==="string"}},50417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTokenCredential=t.isSASCredential=t.AzureSASCredential=t.isNamedKeyCredential=t.AzureNamedKeyCredential=t.isKeyCredential=t.AzureKeyCredential=void 0;var i=n(50198);Object.defineProperty(t,"AzureKeyCredential",{enumerable:true,get:function(){return i.AzureKeyCredential}});var o=n(99155);Object.defineProperty(t,"isKeyCredential",{enumerable:true,get:function(){return o.isKeyCredential}});var d=n(41295);Object.defineProperty(t,"AzureNamedKeyCredential",{enumerable:true,get:function(){return d.AzureNamedKeyCredential}});Object.defineProperty(t,"isNamedKeyCredential",{enumerable:true,get:function(){return d.isNamedKeyCredential}});var p=n(56608);Object.defineProperty(t,"AzureSASCredential",{enumerable:true,get:function(){return p.AzureSASCredential}});Object.defineProperty(t,"isSASCredential",{enumerable:true,get:function(){return p.isSASCredential}});var f=n(86881);Object.defineProperty(t,"isTokenCredential",{enumerable:true,get:function(){return f.isTokenCredential}})},99155:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyCredential=isKeyCredential;const i=n(87779);function isKeyCredential(e){return(0,i.isObjectWithProperties)(e,["key"])&&typeof e.key==="string"}},86881:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBearerToken=isBearerToken;t.isPopToken=isPopToken;t.isTokenCredential=isTokenCredential;function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}},17698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCAEChallenge=parseCAEChallenge;t.authorizeRequestOnClaimChallenge=authorizeRequestOnClaimChallenge;const i=n(89994);const o=n(20741);function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}))}async function authorizeRequestOnClaimChallenge(e){var t;const{scopes:n,response:d}=e;const p=e.logger||i.logger;const f=d.headers.get("WWW-Authenticate");if(!f){p.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const y=parseCAEChallenge(f)||[];const v=y.find((e=>e.claims));if(!v){p.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const D=await e.getAccessToken(v.scope?[v.scope]:n,{claims:(0,o.decodeStringToString)(v.claims)});if(!D){return false}e.request.headers.set("Authorization",`${(t=D.tokenType)!==null&&t!==void 0?t:"Bearer"} ${D.token}`);return true}},97454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=void 0;const n={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{var t;const i=requestToOptions(e.request);const o=getChallenge(e.response);if(o){const d=parseChallenge(o);const p=buildScopes(e,d);const f=extractTenantId(d);if(!f){return false}const y=await e.getAccessToken(p,Object.assign(Object.assign({},i),{tenantId:f}));if(!y){return false}e.request.headers.set(n.HeaderConstants.AUTHORIZATION,`${(t=y.tokenType)!==null&&t!==void 0?t:"Bearer"} ${y.token}`);return true}return false};t.authorizeRequestOnTenantChallenge=authorizeRequestOnTenantChallenge;function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const i=n[1];if(i&&isUuid(i)){return i}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const i=new URL(t.resource_id);i.pathname=n.DefaultScope;let o=i.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const i=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}},20741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.encodeString=encodeString;t.encodeByteArray=encodeByteArray;t.decodeString=decodeString;t.decodeStringToString=decodeStringToString;function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function decodeStringToString(e){return Buffer.from(e,"base64").toString()}},90111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deserializationPolicyName=void 0;t.deserializationPolicy=deserializationPolicy;const i=n(56058);const o=n(20778);const d=n(31530);const p=n(19688);const f=["application/json","text/json"];const y=["application/xml","application/atom+xml"];t.deserializationPolicyName="deserializationPolicy";function deserializationPolicy(e={}){var n,o,d,p,v,D,M;const U=(o=(n=e.expectedContentTypes)===null||n===void 0?void 0:n.json)!==null&&o!==void 0?o:f;const V=(p=(d=e.expectedContentTypes)===null||d===void 0?void 0:d.xml)!==null&&p!==void 0?p:y;const j=e.parseXML;const K=e.serializerOptions;const ee={xml:{rootName:(v=K===null||K===void 0?void 0:K.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=K===null||K===void 0?void 0:K.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=K===null||K===void 0?void 0:K.xml.xmlCharKey)!==null&&M!==void 0?M:i.XML_CHARKEY}};return{name:t.deserializationPolicyName,async sendRequest(e,t){const n=await t(e);return deserializeResponseBody(U,V,n,ee,j)}}}function getOperationResponseMap(e){let t;const n=e.request;const i=(0,p.getOperationRequestInfo)(n);const o=i===null||i===void 0?void 0:i.operationSpec;if(o){if(!(i===null||i===void 0?void 0:i.operationResponseGetter)){t=o.responses[e.status]}else{t=i===null||i===void 0?void 0:i.operationResponseGetter(o,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=(0,p.getOperationRequestInfo)(t);const i=n===null||n===void 0?void 0:n.shouldDeserialize;let o;if(i===undefined){o=true}else if(typeof i==="boolean"){o=i}else{o=i(e)}return o}async function deserializeResponseBody(e,t,n,i,f){const y=await parse(e,t,n,i,f);if(!shouldDeserializeResponse(y)){return y}const v=(0,p.getOperationRequestInfo)(y.request);const D=v===null||v===void 0?void 0:v.operationSpec;if(!D||!D.responses){return y}const M=getOperationResponseMap(y);const{error:U,shouldReturnResponse:V}=handleErrorResponse(y,D,M,i);if(U){throw U}else if(V){return y}if(M){if(M.bodyMapper){let e=y.parsedBody;if(D.isXML&&M.bodyMapper.type.name===d.MapperTypeNames.Sequence){e=typeof e==="object"?e[M.bodyMapper.xmlElementName]:[]}try{y.parsedBody=D.serializer.deserialize(M.bodyMapper,e,"operationRes.parsedBody",i)}catch(e){const t=new o.RestError(`Error ${e} occurred in deserializing the responseBody - ${y.bodyAsText}`,{statusCode:y.status,request:y.request,response:y});throw t}}else if(D.httpMethod==="HEAD"){y.parsedBody=n.status>=200&&n.status<300}if(M.headersMapper){y.parsedHeaders=D.serializer.deserialize(M.headersMapper,y.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return y}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,i){var p,f,y,v,D;const M=200<=e.status&&e.status<300;const U=isOperationSpecEmpty(t)?M:!!n;if(U){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const V=n!==null&&n!==void 0?n:t.responses.default;const j=((p=e.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(e.status))?`Unexpected status code: ${e.status}`:e.bodyAsText;const K=new o.RestError(j,{statusCode:e.status,request:e.request,response:e});if(!V&&!(((y=(f=e.parsedBody)===null||f===void 0?void 0:f.error)===null||y===void 0?void 0:y.code)&&((D=(v=e.parsedBody)===null||v===void 0?void 0:v.error)===null||D===void 0?void 0:D.message))){throw K}const ee=V===null||V===void 0?void 0:V.bodyMapper;const te=V===null||V===void 0?void 0:V.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let o;if(ee){let e=n;if(t.isXML&&ee.type.name===d.MapperTypeNames.Sequence){e=[];const t=ee.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}o=t.serializer.deserialize(ee,e,"error.response.parsedBody",i)}const p=n.error||o||n;K.code=p.code;if(p.message){K.message=p.message}if(ee){K.response.parsedBody=o}}if(e.headers&&te){K.response.parsedHeaders=t.serializer.deserialize(te,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){K.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:K,shouldReturnResponse:false}}async function parse(e,t,n,i,d){var p;if(!((p=n.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(n.status))&&n.bodyAsText){const p=n.bodyAsText;const f=n.headers.get("Content-Type")||"";const y=!f?[]:f.split(";").map((e=>e.toLowerCase()));try{if(y.length===0||y.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(p);return n}else if(y.some((e=>t.indexOf(e)!==-1))){if(!d){throw new Error("Parsing XML not supported.")}const e=await d(p,i.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const i=e.code||o.RestError.PARSE_ERROR;const d=new o.RestError(t,{code:i,statusCode:n.status,request:n.request,response:n});throw d}}return n}},26323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const i=n(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,i.createDefaultHttpClient)()}return o}},60160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authorizeRequestOnTenantChallenge=t.authorizeRequestOnClaimChallenge=t.serializationPolicyName=t.serializationPolicy=t.deserializationPolicyName=t.deserializationPolicy=t.XML_CHARKEY=t.XML_ATTRKEY=t.createClientPipeline=t.ServiceClient=t.MapperTypeNames=t.createSerializer=void 0;var i=n(31530);Object.defineProperty(t,"createSerializer",{enumerable:true,get:function(){return i.createSerializer}});Object.defineProperty(t,"MapperTypeNames",{enumerable:true,get:function(){return i.MapperTypeNames}});var o=n(89544);Object.defineProperty(t,"ServiceClient",{enumerable:true,get:function(){return o.ServiceClient}});var d=n(74136);Object.defineProperty(t,"createClientPipeline",{enumerable:true,get:function(){return d.createClientPipeline}});var p=n(56058);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return p.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return p.XML_CHARKEY}});var f=n(90111);Object.defineProperty(t,"deserializationPolicy",{enumerable:true,get:function(){return f.deserializationPolicy}});Object.defineProperty(t,"deserializationPolicyName",{enumerable:true,get:function(){return f.deserializationPolicyName}});var y=n(56234);Object.defineProperty(t,"serializationPolicy",{enumerable:true,get:function(){return y.serializationPolicy}});Object.defineProperty(t,"serializationPolicyName",{enumerable:true,get:function(){return y.serializationPolicyName}});var v=n(17698);Object.defineProperty(t,"authorizeRequestOnClaimChallenge",{enumerable:true,get:function(){return v.authorizeRequestOnClaimChallenge}});var D=n(97454);Object.defineProperty(t,"authorizeRequestOnTenantChallenge",{enumerable:true,get:function(){return D.authorizeRequestOnTenantChallenge}})},92066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getStreamingResponseStatusCodes=getStreamingResponseStatusCodes;t.getPathStringFromParameter=getPathStringFromParameter;const i=n(31530);function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const o=e.responses[n];if(o.bodyMapper&&o.bodyMapper.type.name===i.MapperTypeNames.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let i;if(typeof t==="string"){i=t}else if(Array.isArray(t)){i=t.join(".")}else{i=n.serializedName}return i}},56058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},89994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("core-client")},19688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOperationArgumentValueFromParameter=getOperationArgumentValueFromParameter;t.getOperationRequestInfo=getOperationRequestInfo;const i=n(33345);function getOperationArgumentValueFromParameter(e,t,n){let i=t.parameterPath;const o=t.mapper;let d;if(typeof i==="string"){i=[i]}if(Array.isArray(i)){if(i.length>0){if(o.isConstant){d=o.defaultValue}else{let t=getPropertyFromParameterPath(e,i);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,i)}let p=false;if(!t.propertyFound){p=o.required||i[0]==="options"&&i.length===2}d=p?o.defaultValue:t.propertyValue}}}else{if(o.required){d={}}for(const t in i){const p=o.type.modelProperties[t];const f=i[t];const y=getOperationArgumentValueFromParameter(e,{parameterPath:f,mapper:p},n);if(y!==undefined){if(!d){d={}}d[t]=y}}}return d}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let i=0;for(;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createClientPipeline=createClientPipeline;const i=n(90111);const o=n(20778);const d=n(56234);function createClientPipeline(e={}){const t=(0,o.createPipelineFromOptions)(e!==null&&e!==void 0?e:{});if(e.credentialOptions){t.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy((0,d.serializationPolicy)(e.serializationOptions),{phase:"Serialize"});t.addPolicy((0,i.deserializationPolicy)(e.deserializationOptions),{phase:"Deserialize"});return t}},56234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serializationPolicyName=void 0;t.serializationPolicy=serializationPolicy;t.serializeHeaders=serializeHeaders;t.serializeRequestBody=serializeRequestBody;const i=n(56058);const o=n(19688);const d=n(31530);const p=n(92066);t.serializationPolicyName="serializationPolicy";function serializationPolicy(e={}){const n=e.stringifyXML;return{name:t.serializationPolicyName,async sendRequest(e,t){const i=(0,o.getOperationRequestInfo)(e);const d=i===null||i===void 0?void 0:i.operationSpec;const p=i===null||i===void 0?void 0:i.operationArguments;if(d&&p){serializeHeaders(e,p,d);serializeRequestBody(e,p,d,n)}return t(e)}}}function serializeHeaders(e,t,n){var i,d;if(n.headerParameters){for(const i of n.headerParameters){let d=(0,o.getOperationArgumentValueFromParameter)(t,i);if(d!==null&&d!==undefined||i.mapper.required){d=n.serializer.serialize(i.mapper,d,(0,p.getPathStringFromParameter)(i));const t=i.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(d)){e.headers.set(t+n,d[n])}}else{e.headers.set(i.mapper.serializedName||(0,p.getPathStringFromParameter)(i),d)}}}}const f=(d=(i=t.options)===null||i===void 0?void 0:i.requestOptions)===null||d===void 0?void 0:d.customHeaders;if(f){for(const t of Object.keys(f)){e.headers.set(t,f[t])}}}function serializeRequestBody(e,t,n,f=function(){throw new Error("XML serialization unsupported!")}){var y,v,D,M,U;const V=(y=t.options)===null||y===void 0?void 0:y.serializerOptions;const j={xml:{rootName:(v=V===null||V===void 0?void 0:V.xml.rootName)!==null&&v!==void 0?v:"",includeRoot:(D=V===null||V===void 0?void 0:V.xml.includeRoot)!==null&&D!==void 0?D:false,xmlCharKey:(M=V===null||V===void 0?void 0:V.xml.xmlCharKey)!==null&&M!==void 0?M:i.XML_CHARKEY}};const K=j.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=(0,o.getOperationArgumentValueFromParameter)(t,n.requestBody);const i=n.requestBody.mapper;const{required:y,serializedName:v,xmlName:D,xmlElementName:M,xmlNamespace:V,xmlNamespacePrefix:ee,nullable:te}=i;const re=i.type.name;try{if(e.body!==undefined&&e.body!==null||te&&e.body===null||y){const t=(0,p.getPathStringFromParameter)(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,j);const o=re===d.MapperTypeNames.Stream;if(n.isXML){const t=ee?`xmlns:${ee}`:"xmlns";const n=getXmlValueWithNamespace(V,t,re,e.body,j);if(re===d.MapperTypeNames.Sequence){e.body=f(prepareXMLRootList(n,M||D||v,t,V),{rootName:D||v,xmlCharKey:K})}else if(!o){e.body=f(n,{rootName:D||v,xmlCharKey:K})}}else if(re===d.MapperTypeNames.String&&(((U=n.contentType)===null||U===void 0?void 0:U.match("text/plain"))||n.mediaType==="text")){return}else if(!o){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(v,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const i of n.formDataParameters){const d=(0,o.getOperationArgumentValueFromParameter)(t,i);if(d!==undefined&&d!==null){const t=i.mapper.serializedName||(0,p.getPathStringFromParameter)(i);e.formData[t]=n.serializer.serialize(i.mapper,d,(0,p.getPathStringFromParameter)(i),j)}}}}function getXmlValueWithNamespace(e,t,n,o,d){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[d.xml.xmlCharKey]=o;n[i.XML_ATTRKEY]={[t]:e};return n}return o}function prepareXMLRootList(e,t,n,o){if(!Array.isArray(e)){e=[e]}if(!n||!o){return{[t]:e}}const d={[t]:e};d[i.XML_ATTRKEY]={[n]:o};return d}},31530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MapperTypeNames=void 0;t.createSerializer=createSerializer;const i=n(61860);const o=i.__importStar(n(20741));const d=n(56058);const p=n(31193);class SerializerImpl{constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,i)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${i}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:o,InclusiveMinimum:d,MaxItems:p,MaxLength:f,MinItems:y,MinLength:v,MultipleOf:D,Pattern:M,UniqueItems:U}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(i!==undefined&&t<=i){failValidation("ExclusiveMinimum",i)}if(o!==undefined&&t>o){failValidation("InclusiveMaximum",o)}if(d!==undefined&&tp){failValidation("MaxItems",p)}if(f!==undefined&&t.length>f){failValidation("MaxLength",f)}if(y!==undefined&&t.lengthn.indexOf(e)!==t))){failValidation("UniqueItems",U)}}}serialize(e,t,n,i={xml:{}}){var o,p,f;const y={xml:{rootName:(o=i.xml.rootName)!==null&&o!==void 0?o:"",includeRoot:(p=i.xml.includeRoot)!==null&&p!==void 0?p:false,xmlCharKey:(f=i.xml.xmlCharKey)!==null&&f!==void 0?f:d.XML_CHARKEY}};let v={};const D=e.type.name;if(!n){n=e.serializedName}if(D.match(/^Sequence$/i)!==null){v=[]}if(e.isConstant){t=e.defaultValue}const{required:M,nullable:U}=e;if(M&&U&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(M&&!U&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!M&&U===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){v=t}else{if(D.match(/^any$/i)!==null){v=t}else if(D.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){v=serializeBasicTypes(D,n,t)}else if(D.match(/^Enum$/i)!==null){const i=e;v=serializeEnumType(n,i.type.allowedValues,t)}else if(D.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){v=serializeDateTypes(D,t,n)}else if(D.match(/^ByteArray$/i)!==null){v=serializeByteArrayType(n,t)}else if(D.match(/^Base64Url$/i)!==null){v=serializeBase64UrlType(n,t)}else if(D.match(/^Sequence$/i)!==null){v=serializeSequenceType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Dictionary$/i)!==null){v=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),y)}else if(D.match(/^Composite$/i)!==null){v=serializeCompositeType(this,e,t,n,Boolean(this.isXML),y)}}return v}deserialize(e,t,n,i={xml:{}}){var p,f,y,v;const D={xml:{rootName:(p=i.xml.rootName)!==null&&p!==void 0?p:"",includeRoot:(f=i.xml.includeRoot)!==null&&f!==void 0?f:false,xmlCharKey:(y=i.xml.xmlCharKey)!==null&&y!==void 0?y:d.XML_CHARKEY},ignoreUnknownProperties:(v=i.ignoreUnknownProperties)!==null&&v!==void 0?v:false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let M;const U=e.type.name;if(!n){n=e.serializedName}if(U.match(/^Composite$/i)!==null){M=deserializeCompositeType(this,e,t,n,D)}else{if(this.isXML){const e=D.xml.xmlCharKey;if(t[d.XML_ATTRKEY]!==undefined&&t[e]!==undefined){t=t[e]}}if(U.match(/^Number$/i)!==null){M=parseFloat(t);if(isNaN(M)){M=t}}else if(U.match(/^Boolean$/i)!==null){if(t==="true"){M=true}else if(t==="false"){M=false}else{M=t}}else if(U.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){M=t}else if(U.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){M=new Date(t)}else if(U.match(/^UnixTime$/i)!==null){M=unixTimeToDate(t)}else if(U.match(/^ByteArray$/i)!==null){M=o.decodeString(t)}else if(U.match(/^Base64Url$/i)!==null){M=base64UrlToByteArray(t)}else if(U.match(/^Sequence$/i)!==null){M=deserializeSequenceType(this,e,t,n,D)}else if(U.match(/^Dictionary$/i)!==null){M=deserializeDictionaryType(this,e,t,n,D)}}if(e.isConstant){M=e.defaultValue}return M}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=o.encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return o.decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const i=e.split(".");for(const e of i){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&(0,p.isValidUuid)(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const i=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!i){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=o.encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!(0,p.isDuration)(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,i,o,p){var f;if(!Array.isArray(n)){throw new Error(`${i} must be of type Array.`)}let y=t.type.element;if(!y||typeof y!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}.`)}if(y.type.name==="Composite"&&y.type.className){y=(f=e.modelMappers[y.type.className])!==null&&f!==void 0?f:y}const v=[];for(let t=0;te!==o));if(d){f[o]=e.serialize(v,n[o],i+'["'+o+'"]',p)}}}return f}return n}function getXmlObjectValue(e,t,n,i){if(!n||!e.xmlNamespace){return t}const o=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const p={[o]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[d.XML_ATTRKEY]){return t}else{const e=Object.assign({},t);e[d.XML_ATTRKEY]=p;return e}}const f={};f[i.xml.xmlCharKey]=t;f[d.XML_ATTRKEY]=p;return f}function isSpecialXmlProperty(e,t){return[d.XML_ATTRKEY,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,i,o){var p,f;const y=(p=o.xml.xmlCharKey)!==null&&p!==void 0?p:d.XML_CHARKEY;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const v=resolveModelProperties(e,t,i);let D={};const M=[];for(const p of Object.keys(v)){const U=v[p];const V=splitSerializeName(v[p].serializedName);M.push(V[0]);const{serializedName:j,xmlName:K,xmlElementName:ee}=U;let te=i;if(j!==""&&j!==undefined){te=i+"."+j}const re=U.headerCollectionPrefix;if(re){const t={};for(const i of Object.keys(n)){if(i.startsWith(re)){t[i.substring(re.length)]=e.deserialize(U.type.value,n[i],te,o)}M.push(i)}D[p]=t}else if(e.isXML){if(U.xmlIsAttribute&&n[d.XML_ATTRKEY]){D[p]=e.deserialize(U,n[d.XML_ATTRKEY][K],te,o)}else if(U.xmlIsMsText){if(n[y]!==undefined){D[p]=n[y]}else if(typeof n==="string"){D[p]=n}}else{const t=ee||K||j;if(U.xmlIsWrapped){const t=n[K];const i=(f=t===null||t===void 0?void 0:t[ee])!==null&&f!==void 0?f:[];D[p]=e.deserialize(U,i,te,o);M.push(K)}else{const i=n[t];D[p]=e.deserialize(U,i,te,o);M.push(t)}}}else{let i;let d=n;let f=0;for(const e of V){if(!d)break;f++;d=d[e]}if(d===null&&f{for(const t in v){const n=splitSerializeName(v[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){D[t]=e.deserialize(U,n[t],i+'["'+t+'"]',o)}}}else if(n&&!o.ignoreUnknownProperties){for(const e of Object.keys(n)){if(D[e]===undefined&&!M.includes(e)&&!isSpecialXmlProperty(e,o)){D[e]=n[e]}}}return D}function deserializeDictionaryType(e,t,n,i,o){const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(n){const t={};for(const p of Object.keys(n)){t[p]=e.deserialize(d,n[p],i,o)}return t}return n}function deserializeSequenceType(e,t,n,i,o){var d;let p=t.type.element;if(!p||typeof p!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${i}`)}if(n){if(!Array.isArray(n)){n=[n]}if(p.type.name==="Composite"&&p.type.className){p=(d=e.modelMappers[p.type.className])!==null&&d!==void 0?d:p}const t=[];for(let d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceClient=void 0;const i=n(20778);const o=n(74136);const d=n(31193);const p=n(26323);const f=n(19688);const y=n(61752);const v=n(92066);const D=n(89994);class ServiceClient{constructor(e={}){var t,n;this._requestContentType=e.requestContentType;this._endpoint=(t=e.endpoint)!==null&&t!==void 0?t:e.baseUri;if(e.baseUri){D.logger.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||(0,p.getCachedDefaultHttpClient)();this.pipeline=e.pipeline||createDefaultPipeline(e);if((n=e.additionalPolicies)===null||n===void 0?void 0:n.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const o=(0,y.getRequestUrl)(n,t,e,this);const p=(0,i.createPipelineRequest)({url:o});p.method=t.httpMethod;const D=(0,f.getOperationRequestInfo)(p);D.operationSpec=t;D.operationArguments=e;const M=t.contentType||this._requestContentType;if(M&&t.requestBody){p.headers.set("Content-Type",M)}const U=e.options;if(U){const e=U.requestOptions;if(e){if(e.timeout){p.timeout=e.timeout}if(e.onUploadProgress){p.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){p.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){D.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){p.allowInsecureConnection=true}}if(U.abortSignal){p.abortSignal=U.abortSignal}if(U.tracingOptions){p.tracingOptions=U.tracingOptions}}if(this._allowInsecureConnection){p.allowInsecureConnection=true}if(p.streamResponseStatusCodes===undefined){p.streamResponseStatusCodes=(0,v.getStreamingResponseStatusCodes)(t)}try{const e=await this.sendRequest(p);const n=(0,d.flattenResponse)(e,t.responses[e.status]);if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&(e===null||e===void 0?void 0:e.response)){const n=e.response;const i=(0,d.flattenResponse)(n,t.responses[e.statusCode]||t.responses["default"]);e.details=i;if(U===null||U===void 0?void 0:U.onResponse){U.onResponse(n,i,e)}}throw e}}}t.ServiceClient=ServiceClient;function createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return(0,o.createClientPipeline)(Object.assign(Object.assign({},e),{credentialOptions:n}))}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}},33345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={operationRequestMap:new WeakMap}},61752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRequestUrl=getRequestUrl;t.appendQueryParams=appendQueryParams;const i=n(19688);const o=n(92066);const d={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,i){const o=calculateUrlReplacements(t,n,i);let d=false;let p=replaceAll(e,o);if(t.path){let e=replaceAll(t.path,o);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){p=e;d=true}else{p=appendPath(p,e)}}const{queryParams:f,sequenceParams:y}=calculateQueryParameters(t,n,i);p=appendQueryParams(p,f,y,d);return p}function replaceAll(e,t){let n=e;for(const[e,i]of t){n=n.split(e).join(i)}return n}function calculateUrlReplacements(e,t,n){var d;const p=new Map;if((d=e.urlParameters)===null||d===void 0?void 0:d.length){for(const d of e.urlParameters){let f=(0,i.getOperationArgumentValueFromParameter)(t,d,n);const y=(0,o.getPathStringFromParameter)(d);f=e.serializer.serialize(d.mapper,f,y);if(!d.skipEncoding){f=encodeURIComponent(f)}p.set(`{${d.mapper.serializedName||y}}`,f)}}return p}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let i=n.pathname;if(!i.endsWith("/")){i=`${i}/`}if(t.startsWith("/")){t=t.substring(1)}const o=t.indexOf("?");if(o!==-1){const e=t.substring(0,o);const d=t.substring(o+1);i=i+e;if(d){n.search=n.search?`${n.search}&${d}`:d}}else{i=i+t}n.pathname=i;return n.toString()}function calculateQueryParameters(e,t,n){var p;const f=new Map;const y=new Set;if((p=e.queryParameters)===null||p===void 0?void 0:p.length){for(const p of e.queryParameters){if(p.mapper.type.name==="Sequence"&&p.mapper.serializedName){y.add(p.mapper.serializedName)}let v=(0,i.getOperationArgumentValueFromParameter)(t,p,n);if(v!==undefined&&v!==null||p.mapper.required){v=e.serializer.serialize(p.mapper,v,(0,o.getPathStringFromParameter)(p));const t=p.collectionFormat?d[p.collectionFormat]:"";if(Array.isArray(v)){v=v.map((e=>{if(e===null||e===undefined){return""}return e}))}if(p.collectionFormat==="Multi"&&v.length===0){continue}else if(Array.isArray(v)&&(p.collectionFormat==="SSV"||p.collectionFormat==="TSV")){v=v.join(t)}if(!p.skipEncoding){if(Array.isArray(v)){v=v.map((e=>encodeURIComponent(e)))}else{v=encodeURIComponent(v)}}if(Array.isArray(v)&&(p.collectionFormat==="CSV"||p.collectionFormat==="Pipes")){v=v.join(t)}f.set(p.mapper.serializedName||(0,o.getPathStringFromParameter)(p),v)}}}return{queryParams:f,sequenceParams:y}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,i]=e.split("=",2);const o=t.get(n);if(o){if(Array.isArray(o)){o.push(i)}else{t.set(n,[o,i])}}else{t.set(n,i)}}return t}function appendQueryParams(e,t,n,i=false){if(t.size===0){return e}const o=new URL(e);const d=simpleParseQueryParams(o.search);for(const[e,o]of t){const t=d.get(e);if(Array.isArray(t)){if(Array.isArray(o)){t.push(...o);const n=new Set(t);d.set(e,Array.from(n))}else{t.push(o)}}else if(t){if(Array.isArray(o)){o.unshift(t)}else if(n.has(e)){d.set(e,[t,o])}if(!i){d.set(e,o)}}else{d.set(e,o)}}const p=[];for(const[e,t]of d){if(typeof t==="string"){p.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){p.push(`${e}=${n}`)}}else{p.push(`${e}=${t}`)}}o.search=p.length?`?${p.join("&")}`:"";return o.toString()}},31193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPrimitiveBody=isPrimitiveBody;t.isDuration=isDuration;t.isValidUuid=isValidUuid;t.flattenResponse=flattenResponse;function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||(t===null||t===void 0?void 0:t.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i))!==null||e===undefined||e===null)}const n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return n.test(e)}const i=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return i.test(e)}function handleNullableResponseAndWrappableBody(e){const t=Object.assign(Object.assign({},e.headers),e.body);if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?Object.assign(Object.assign({},e.headers),{body:e.body}):t}}function flattenResponse(e,t){var n,i;const o=e.parsedHeaders;if(e.request.method==="HEAD"){return Object.assign(Object.assign({},o),{body:e.parsedBody})}const d=t&&t.bodyMapper;const p=Boolean(d===null||d===void 0?void 0:d.nullable);const f=d===null||d===void 0?void 0:d.type.name;if(f==="Stream"){return Object.assign(Object.assign({},o),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody})}const y=f==="Composite"&&d.type.modelProperties||{};const v=Object.keys(y).some((e=>y[e].serializedName===""));if(f==="Sequence"||v){const t=(n=e.parsedBody)!==null&&n!==void 0?n:[];for(const n of Object.keys(y)){if(y[n].serializedName){t[n]=(i=e.parsedBody)===null||i===void 0?void 0:i[n]}}if(o){for(const e of Object.keys(o)){t[e]=o[e]}}return p&&!e.parsedBody&&!o&&Object.getOwnPropertyNames(y).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:o,hasNullableType:p,shouldWrapBody:isPrimitiveBody(e.parsedBody,f)})}},95492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExtendedServiceClient=void 0;const i=n(32639);const o=n(20778);const d=n(60160);const p=n(38153);class ExtendedServiceClient extends d.ServiceClient{constructor(e){var t,n;super(e);if(((t=e.keepAliveOptions)===null||t===void 0?void 0:t.enable)===false&&!(0,i.pipelineContainsDisableKeepAlivePolicy)(this.pipeline)){this.pipeline.addPolicy((0,i.createDisableKeepAlivePolicy)())}if(((n=e.redirectOptions)===null||n===void 0?void 0:n.handleRedirects)===false){this.pipeline.removePolicy({name:o.redirectPolicyName})}}async sendOperationRequest(e,t){var n;const i=(n=e===null||e===void 0?void 0:e.options)===null||n===void 0?void 0:n.onResponse;let o;function onResponse(e,t,n){o=e;if(i){i(e,t,n)}}e.options=Object.assign(Object.assign({},e.options),{onResponse:onResponse});const d=await super.sendOperationRequest(e,t);if(o){Object.defineProperty(d,"_response",{value:(0,p.toCompatResponse)(o)})}return d}}t.ExtendedServiceClient=ExtendedServiceClient},2078:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertHttpClient=convertHttpClient;const i=n(38153);const o=n(33850);function convertHttpClient(e){return{sendRequest:async t=>{const n=await e.sendRequest((0,o.toWebResourceLike)(t,{createProxy:true}));return(0,i.toPipelineResponse)(n)}}}},61584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toHttpHeadersLike=t.convertHttpClient=t.disableKeepAlivePolicyName=t.HttpPipelineLogLevel=t.createRequestPolicyFactoryPolicy=t.requestPolicyFactoryPolicyName=t.ExtendedServiceClient=void 0;var i=n(95492);Object.defineProperty(t,"ExtendedServiceClient",{enumerable:true,get:function(){return i.ExtendedServiceClient}});var o=n(3466);Object.defineProperty(t,"requestPolicyFactoryPolicyName",{enumerable:true,get:function(){return o.requestPolicyFactoryPolicyName}});Object.defineProperty(t,"createRequestPolicyFactoryPolicy",{enumerable:true,get:function(){return o.createRequestPolicyFactoryPolicy}});Object.defineProperty(t,"HttpPipelineLogLevel",{enumerable:true,get:function(){return o.HttpPipelineLogLevel}});var d=n(32639);Object.defineProperty(t,"disableKeepAlivePolicyName",{enumerable:true,get:function(){return d.disableKeepAlivePolicyName}});var p=n(2078);Object.defineProperty(t,"convertHttpClient",{enumerable:true,get:function(){return p.convertHttpClient}});var f=n(33850);Object.defineProperty(t,"toHttpHeadersLike",{enumerable:true,get:function(){return f.toHttpHeadersLike}})},32639:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.disableKeepAlivePolicyName=void 0;t.createDisableKeepAlivePolicy=createDisableKeepAlivePolicy;t.pipelineContainsDisableKeepAlivePolicy=pipelineContainsDisableKeepAlivePolicy;t.disableKeepAlivePolicyName="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:t.disableKeepAlivePolicyName,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===t.disableKeepAlivePolicyName))}},3466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.requestPolicyFactoryPolicyName=t.HttpPipelineLogLevel=void 0;t.createRequestPolicyFactoryPolicy=createRequestPolicyFactoryPolicy;const i=n(33850);const o=n(38153);var d;(function(e){e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING"})(d||(t.HttpPipelineLogLevel=d={}));const p={log(e,t){},shouldLog(e){return false}};t.requestPolicyFactoryPolicyName="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const n=e.slice().reverse();return{name:t.requestPolicyFactoryPolicyName,async sendRequest(e,t){let d={async sendRequest(e){const n=await t((0,i.toPipelineRequest)(e));return(0,o.toCompatResponse)(n,{createProxy:true})}};for(const e of n){d=e.create(d,p)}const f=(0,i.toWebResourceLike)(e,{createProxy:true});const y=await d.sendRequest(f);return(0,o.toPipelineResponse)(y)}}}},38153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCompatResponse=toCompatResponse;t.toPipelineResponse=toPipelineResponse;const i=n(20778);const o=n(33850);const d=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let n=(0,o.toWebResourceLike)(e.request);let i=(0,o.toHttpHeadersLike)(e.headers);if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(e,{get(t,o,p){if(o==="headers"){return i}else if(o==="request"){return n}else if(o===d){return e}return Reflect.get(t,o,p)},set(e,t,o,d){if(t==="headers"){i=o}else if(t==="request"){n=o}return Reflect.set(e,t,o,d)}})}else{return Object.assign(Object.assign({},e),{request:n,headers:i})}}function toPipelineResponse(e){const t=e;const n=t[d];const p=(0,i.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(n){n.headers=p;return n}else{return Object.assign(Object.assign({},e),{headers:p,request:(0,o.toPipelineRequest)(e.request)})}}},33850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HttpHeaders=void 0;t.toPipelineRequest=toPipelineRequest;t.toWebResourceLike=toWebResourceLike;t.toHttpHeadersLike=toHttpHeadersLike;const i=n(20778);const o=Symbol("Original PipelineRequest");const d=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const n=e;const p=n[o];const f=(0,i.createHttpHeaders)(e.headers.toJson({preserveCase:true}));if(p){p.headers=f;return p}else{const n=(0,i.createPipelineRequest)({url:e.url,method:e.method,headers:f,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){n[d]=t.originalRequest}return n}}function toWebResourceLike(e,t){var n;const i=(n=t===null||t===void 0?void 0:t.originalRequest)!==null&&n!==void 0?n:e;const d={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t===null||t===void 0?void 0:t.createProxy){return new Proxy(d,{get(t,n,p){if(n===o){return e}else if(n==="clone"){return()=>toWebResourceLike(toPipelineRequest(d,{originalRequest:i}),{createProxy:true,originalRequest:i})}return Reflect.get(t,n,p)},set(t,n,i,o){if(n==="keepAlive"){e.disableKeepAlive=!i}const d=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof n==="string"&&d.includes(n)){e[n]=i}return Reflect.set(t,n,i,o)}})}else{return d}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollHttpOperation=t.isOperationError=t.getResourceLocation=t.getOperationStatus=t.getOperationLocation=t.initHttpOperation=t.getStatusFromInitialResponse=t.getErrorFromResponse=t.parseRetryAfter=t.inferLroMode=void 0;const i=n(30736);const o=n(50480);function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){var t;const{location:n,requestMethod:i,requestPath:o,resourceLocationConfig:d}=e;switch(i){case"PUT":{return o}case"DELETE":{return undefined}case"PATCH":{return(t=getDefault())!==null&&t!==void 0?t:o}default:{return getDefault()}}function getDefault(){switch(d){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return n}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:i,resourceLocationConfig:o}=e;const d=getOperationLocationHeader(t);const p=getAzureAsyncOperationHeader(t);const f=getOperationLocationPollingUrl({operationLocation:d,azureAsyncOperation:p});const y=getLocationHeader(t);const v=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(f!==undefined){return{mode:"OperationLocation",operationLocation:f,resourceLocation:findResourceLocation({requestMethod:v,location:y,requestPath:i,resourceLocationConfig:o})}}else if(y!==undefined){return{mode:"ResourceLocation",operationLocation:y}}else if(v==="PUT"&&i){return{mode:"Body",operationLocation:i}}else{return undefined}}t.inferLroMode=inferLroMode;function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{o.logger.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:i,provisioningState:o}=(t=e.body)!==null&&t!==void 0?t:{};const d=(n=i===null||i===void 0?void 0:i.provisioningState)!==null&&n!==void 0?n:o;return transformStatus({status:d,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}t.parseRetryAfter=parseRetryAfter;function getErrorFromResponse(e){const t=accessBodyProperty(e,"error");if(!t){o.logger.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){o.logger.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}t.getErrorFromResponse=getErrorFromResponse;function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t{const e=await d.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:d.requestPath,requestMethod:d.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:p})}t.initHttpOperation=initHttpOperation;function getOperationLocation({rawResponse:e},t){var n;const i=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(i){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}t.getOperationLocation=getOperationLocation;function getOperationStatus({rawResponse:e},t){var n;const i=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(i){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${i}`)}}t.getOperationStatus=getOperationStatus;function accessBodyProperty({flatResponse:e,rawResponse:t},n){var i,o;return(i=e===null||e===void 0?void 0:e[n])!==null&&i!==void 0?i:(o=t.body)===null||o===void 0?void 0:o[n]}function getResourceLocation(e,t){const n=accessBodyProperty(e,"resourceLocation");if(n&&typeof n==="string"){t.config.resourceLocation=n}return t.config.resourceLocation}t.getResourceLocation=getResourceLocation;function isOperationError(e){return e.name==="RestError"}t.isOperationError=isOperationError;async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:d,updateState:p,setDelay:f,state:y,setErrorAsResult:v}=e;return(0,i.pollOperation)({state:y,stateProxy:n,setDelay:f,processResult:d?({flatResponse:e},t)=>d(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:p,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:v})}t.pollHttpOperation=pollHttpOperation},57421:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const i=n(93878);const o=n(18835);async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:d,processResult:p,restoreFrom:f,updateState:y,withOperationLocation:v,resolveOnUnsuccessful:D=false}=t||{};return(0,o.buildCreatePoller)({getStatusFromInitialResponse:i.getStatusFromInitialResponse,getStatusFromPollResponse:i.getOperationStatus,isOperationError:i.isOperationError,getOperationLocation:i.getOperationLocation,getResourceLocation:i.getResourceLocation,getPollingInterval:i.parseRetryAfter,getError:i.getErrorFromResponse,resolveOnUnsuccessful:D})({init:async()=>{const t=await e.sendInitialRequest();const o=(0,i.inferLroMode)({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:d,withOperationLocation:v,restoreFrom:f,updateState:y,processResult:p?({flatResponse:e},t)=>p(e,t):({flatResponse:e})=>e})}t.createHttpPoller=createHttpPoller},91754:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpPoller=void 0;const i=n(61860);var o=n(57421);Object.defineProperty(t,"createHttpPoller",{enumerable:true,get:function(){return o.createHttpPoller}});i.__exportStar(n(55454),t);i.__exportStar(n(36272),t);i.__exportStar(n(82670),t)},55454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;var i=n(91607);Object.defineProperty(t,"LroEngine",{enumerable:true,get:function(){return i.LroEngine}})},91607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LroEngine=void 0;const i=n(54267);const o=n(55044);const d=n(36272);const p=n(30736);class LroEngine extends d.Poller{constructor(e,t){const{intervalInMs:n=o.POLL_INTERVAL_IN_MS,resumeFrom:d,resolveOnUnsuccessful:f=false,isDone:y,lroResourceLocationConfig:v,processResult:D,updateState:M}=t||{};const U=d?(0,p.deserializeState)(d):{};const V=new i.GenericPollOperation(U,e,!f,v,D,M,y);super(V);this.resolveOnUnsuccessful=f;this.config={intervalInMs:n};V.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}t.LroEngine=LroEngine},54267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GenericPollOperation=void 0;const i=n(93878);const o=n(50480);const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,i,o,d,p){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=i;this.processResult=o;this.updateState=d;this.isDone=p}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await(0,i.initHttpOperation)({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const d=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await(0,i.pollHttpOperation)({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:d?({flatResponse:e},t)=>d(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){o.logger.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}t.GenericPollOperation=GenericPollOperation},82670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},36272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Poller=t.PollerCancelledError=t.PollerStoppedError=void 0;class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}t.PollerStoppedError=PollerStoppedError;class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}t.PollerCancelledError=PollerCancelledError;class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}t.Poller=Poller},50480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("core-lro")},55044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.terminalStates=t.POLL_INTERVAL_IN_MS=void 0;t.POLL_INTERVAL_IN_MS=2e3;t.terminalStates=["succeeded","canceled","failed"]},30736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pollOperation=t.initOperation=t.deserializeState=void 0;const i=n(50480);const o=n(55044);function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}t.deserializeState=deserializeState;function setStateError(e){const{state:t,stateProxy:n,isOperationError:i}=e;return e=>{if(i(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let i=e;while(i.innererror){i=i.innererror;n=i.code;t=appendReadableErrorMessage(t,i.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:d,processResult:p,getError:f,response:y,setErrorAsResult:v}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=f===null||f===void 0?void 0:f(y);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const d=`The long-running operation has failed${o}`;n.setError(t,new Error(d));n.setFailed(t);i.logger.warning(d);break}case"canceled":{n.setCanceled(t);break}}if((d===null||d===void 0?void 0:d(y,t))||d===undefined&&["succeeded","canceled"].concat(v?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:y,state:t,processResult:p}))}}function buildResult(e){const{processResult:t,response:n,state:i}=e;return t?t(n,i):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:d,withOperationLocation:p,setErrorAsResult:f}=e;const{operationLocation:y,resourceLocation:v,metadata:D,response:M}=await t();if(y)p===null||p===void 0?void 0:p(y,false);const U={metadata:D,operationLocation:y,resourceLocation:v};i.logger.verbose(`LRO: Operation description:`,U);const V=n.initState(U);const j=d({response:M,state:V,operationLocation:y});processOperationStatus({state:V,status:j,stateProxy:n,response:M,setErrorAsResult:f,processResult:o});return V}t.initOperation=initOperation;async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:d,operationLocation:p,getOperationStatus:f,getResourceLocation:y,isOperationError:v,options:D}=e;const M=await t(p,D).catch(setStateError({state:n,stateProxy:d,isOperationError:v}));const U=f(M,n);i.logger.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${U}\n\tPolling status: ${o.terminalStates.includes(U)?"Stopped":"Running"}`);if(U==="succeeded"){const e=y(M,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:d,isOperationError:v})),status:U}}}return{response:M,status:U}}async function pollOperation(e){const{poll:t,state:n,stateProxy:i,options:d,getOperationStatus:p,getResourceLocation:f,getOperationLocation:y,isOperationError:v,withOperationLocation:D,getPollingInterval:M,processResult:U,getError:V,updateState:j,setDelay:K,isDone:ee,setErrorAsResult:te}=e;const{operationLocation:re}=n.config;if(re!==undefined){const{response:e,status:ne}=await pollOperationHelper({poll:t,getOperationStatus:p,state:n,stateProxy:i,operationLocation:re,getResourceLocation:f,isOperationError:v,options:d});processOperationStatus({status:ne,response:e,state:n,stateProxy:i,isDone:ee,processResult:U,getError:V,setErrorAsResult:te});if(!o.terminalStates.includes(ne)){const t=M===null||M===void 0?void 0:M(e);if(t)K(t);const i=y===null||y===void 0?void 0:y(e,n);if(i!==undefined){const e=re!==i;n.config.operationLocation=i;D===null||D===void 0?void 0:D(i,e)}else D===null||D===void 0?void 0:D(re,false)}j===null||j===void 0?void 0:j(n,e)}}t.pollOperation=pollOperation},18835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCreatePoller=void 0;const i=n(30736);const o=n(55044);const d=n(87779);const createStateProxy=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:p,isOperationError:f,getResourceLocation:y,getPollingInterval:v,getError:D,resolveOnUnsuccessful:M}=e;return async({init:e,poll:U},V)=>{const{processResult:j,updateState:K,withOperationLocation:ee,intervalInMs:te=o.POLL_INTERVAL_IN_MS,restoreFrom:re}=V||{};const ne=createStateProxy();const ie=ee?(()=>{let e=false;return(t,n)=>{if(n)ee(t);else if(!e)ee(t);e=true}})():undefined;const oe=re?(0,i.deserializeState)(re):await(0,i.initOperation)({init:e,stateProxy:ne,processResult:j,getOperationStatus:n,withOperationLocation:ie,setErrorAsResult:!M});let se;const ae=new AbortController;const Ae=new Map;const handleProgressEvents=async()=>Ae.forEach((e=>e(oe)));const ce="Operation was canceled";let le=te;const ue={getOperationState:()=>oe,getResult:()=>oe.result,isDone:()=>["succeeded","failed","canceled"].includes(oe.status),isStopped:()=>se===undefined,stopPolling:()=>{ae.abort()},toString:()=>JSON.stringify({state:oe}),onProgress:e=>{const t=Symbol();Ae.set(t,e);return()=>Ae.delete(t)},pollUntilDone:e=>se!==null&&se!==void 0?se:se=(async()=>{const{abortSignal:t}=e||{};function abortListener(){ae.abort()}const n=ae.signal;if(t===null||t===void 0?void 0:t.aborted){ae.abort()}else if(!n.aborted){t===null||t===void 0?void 0:t.addEventListener("abort",abortListener,{once:true})}try{if(!ue.isDone()){await ue.poll({abortSignal:n});while(!ue.isDone()){await(0,d.delay)(le,{abortSignal:n});await ue.poll({abortSignal:n})}}}finally{t===null||t===void 0?void 0:t.removeEventListener("abort",abortListener)}if(M){return ue.getResult()}else{switch(oe.status){case"succeeded":return ue.getResult();case"canceled":throw new Error(ce);case"failed":throw oe.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{se=undefined})),async poll(e){if(M){if(ue.isDone())return}else{switch(oe.status){case"succeeded":return;case"canceled":throw new Error(ce);case"failed":throw oe.error}}await(0,i.pollOperation)({poll:U,state:oe,stateProxy:ne,getOperationLocation:t,isOperationError:f,withOperationLocation:ie,getPollingInterval:v,getOperationStatus:p,getResourceLocation:y,processResult:j,getError:D,updateState:K,options:e,setDelay:e=>{le=e},setErrorAsResult:!M});await handleProgressEvents();if(!M){switch(oe.status){case"canceled":throw new Error(ce);case"failed":throw oe.error}}}};return ue}}t.buildCreatePoller=buildCreatePoller},66427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="1.22.0";t.DEFAULT_RETRY_POLICY_COUNT=3},90862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const i=n(53253);const o=n(29590);const d=n(64087);const p=n(32799);const f=n(45807);const y=n(39295);const v=n(48170);const D=n(75497);const M=n(87779);const U=n(32815);const V=n(95686);const j=n(18554);const K=n(75798);const ee=n(93237);const te=n(37466);function createPipelineFromOptions(e){var t;const n=(0,o.createEmptyPipeline)();if(M.isNodeLike){if(e.agent){n.addPolicy((0,j.agentPolicy)(e.agent))}if(e.tlsOptions){n.addPolicy((0,K.tlsPolicy)(e.tlsOptions))}n.addPolicy((0,U.proxyPolicy)(e.proxyOptions));n.addPolicy((0,y.decompressResponsePolicy)())}n.addPolicy((0,te.wrapAbortSignalLikePolicy)());n.addPolicy((0,D.formDataPolicy)(),{beforePolicies:[f.multipartPolicyName]});n.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));n.addPolicy((0,V.setClientRequestIdPolicy)((t=e.telemetryOptions)===null||t===void 0?void 0:t.clientRequestIdHeaderName));n.addPolicy((0,f.multipartPolicy)(),{afterPhase:"Deserialize"});n.addPolicy((0,v.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});n.addPolicy((0,ee.tracingPolicy)(Object.assign(Object.assign({},e.userAgentOptions),e.loggingOptions)),{afterPhase:"Retry"});if(M.isNodeLike){n.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}n.addPolicy((0,i.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return n}},7960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const i=n(41958);const o=n(91297);function createDefaultHttpClient(){const e=(0,i.createDefaultHttpClient)();return{async sendRequest(t){const{abortSignal:n,cleanup:i}=t.abortSignal?(0,o.wrapAbortSignalLike)(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{i===null||i===void 0?void 0:i()}}}}},192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;const i=n(41958);function createHttpHeaders(e){return(0,i.createHttpHeaders)(e)}},20778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileFromStream=t.createFile=t.agentPolicyName=t.agentPolicy=t.auxiliaryAuthenticationHeaderPolicyName=t.auxiliaryAuthenticationHeaderPolicy=t.ndJsonPolicyName=t.ndJsonPolicy=t.bearerTokenAuthenticationPolicyName=t.bearerTokenAuthenticationPolicy=t.formDataPolicyName=t.formDataPolicy=t.tlsPolicyName=t.tlsPolicy=t.userAgentPolicyName=t.userAgentPolicy=t.defaultRetryPolicy=t.tracingPolicyName=t.tracingPolicy=t.retryPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.setClientRequestIdPolicyName=t.setClientRequestIdPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.isRestError=t.RestError=t.createPipelineRequest=t.createHttpHeaders=t.createDefaultHttpClient=t.createPipelineFromOptions=t.createEmptyPipeline=void 0;var i=n(29590);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return i.createEmptyPipeline}});var o=n(90862);Object.defineProperty(t,"createPipelineFromOptions",{enumerable:true,get:function(){return o.createPipelineFromOptions}});var d=n(7960);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return d.createDefaultHttpClient}});var p=n(192);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});var f=n(95709);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(8666);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return y.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return y.isRestError}});var v=n(39295);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return v.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return v.decompressResponsePolicyName}});var D=n(16708);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return D.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return D.exponentialRetryPolicyName}});var M=n(95686);Object.defineProperty(t,"setClientRequestIdPolicy",{enumerable:true,get:function(){return M.setClientRequestIdPolicy}});Object.defineProperty(t,"setClientRequestIdPolicyName",{enumerable:true,get:function(){return M.setClientRequestIdPolicyName}});var U=n(53253);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return U.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return U.logPolicyName}});var V=n(45807);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return V.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return V.multipartPolicyName}});var j=n(32815);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return j.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return j.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return j.getDefaultProxySettings}});var K=n(64087);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return K.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return K.redirectPolicyName}});var ee=n(96518);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return ee.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return ee.systemErrorRetryPolicyName}});var te=n(97540);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return te.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return te.throttlingRetryPolicyName}});var re=n(56085);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return re.retryPolicy}});var ne=n(93237);Object.defineProperty(t,"tracingPolicy",{enumerable:true,get:function(){return ne.tracingPolicy}});Object.defineProperty(t,"tracingPolicyName",{enumerable:true,get:function(){return ne.tracingPolicyName}});var ie=n(48170);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return ie.defaultRetryPolicy}});var oe=n(32799);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return oe.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return oe.userAgentPolicyName}});var se=n(75798);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return se.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return se.tlsPolicyName}});var ae=n(75497);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return ae.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return ae.formDataPolicyName}});var Ae=n(26925);Object.defineProperty(t,"bearerTokenAuthenticationPolicy",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicy}});Object.defineProperty(t,"bearerTokenAuthenticationPolicyName",{enumerable:true,get:function(){return Ae.bearerTokenAuthenticationPolicyName}});var ce=n(36827);Object.defineProperty(t,"ndJsonPolicy",{enumerable:true,get:function(){return ce.ndJsonPolicy}});Object.defineProperty(t,"ndJsonPolicyName",{enumerable:true,get:function(){return ce.ndJsonPolicyName}});var le=n(42262);Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicy",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicy}});Object.defineProperty(t,"auxiliaryAuthenticationHeaderPolicyName",{enumerable:true,get:function(){return le.auxiliaryAuthenticationHeaderPolicyName}});var ue=n(18554);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return ue.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return ue.agentPolicyName}});var de=n(97073);Object.defineProperty(t,"createFile",{enumerable:true,get:function(){return de.createFile}});Object.defineProperty(t,"createFileFromStream",{enumerable:true,get:function(){return de.createFileFromStream}})},80544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("core-rest-pipeline")},29590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const i=n(41958);function createEmptyPipeline(){return(0,i.createEmptyPipeline)()}},95709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const i=n(41958);function createPipelineRequest(e){return(0,i.createPipelineRequest)(e)}},18554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;const i=n(44960);t.agentPolicyName=i.agentPolicyName;function agentPolicy(e){return(0,i.agentPolicy)(e)}},42262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auxiliaryAuthenticationHeaderPolicyName=void 0;t.auxiliaryAuthenticationHeaderPolicy=auxiliaryAuthenticationHeaderPolicy;const i=n(39202);const o=n(80544);t.auxiliaryAuthenticationHeaderPolicyName="auxiliaryAuthenticationHeaderPolicy";const d="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){var t,n;const{scopes:i,getAccessToken:o,request:d}=e;const p={abortSignal:d.abortSignal,tracingOptions:d.tracingOptions};return(n=(t=await o(i,p))===null||t===void 0?void 0:t.token)!==null&&n!==void 0?n:""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:n,scopes:p}=e;const f=e.logger||o.logger;const y=new WeakMap;return{name:t.auxiliaryAuthenticationHeaderPolicyName,async sendRequest(e,o){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!n||n.length===0){f.info(`${t.auxiliaryAuthenticationHeaderPolicyName} header will not be set due to empty credentials.`);return o(e)}const v=[];for(const t of n){let n=y.get(t);if(!n){n=(0,i.createTokenCycler)(t);y.set(t,n)}v.push(sendAuthorizeRequest({scopes:Array.isArray(p)?p:[p],request:e,getAccessToken:n,logger:f}))}const D=(await Promise.all(v)).filter((e=>Boolean(e)));if(D.length===0){f.warning(`None of the auxiliary tokens are valid. ${d} header will not be set.`);return o(e)}e.headers.set(d,D.map((e=>`Bearer ${e}`)).join(", "));return o(e)}}}},26925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerTokenAuthenticationPolicyName=void 0;t.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;t.parseChallenges=parseChallenges;const i=n(39202);const o=n(80544);const d=n(8666);t.bearerTokenAuthenticationPolicyName="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if((0,d.isRestError)(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:i}=e;const o={abortSignal:i.abortSignal,tracingOptions:i.tracingOptions,enableCae:true};const d=await n(t,o);if(d){e.request.headers.set("Authorization",`Bearer ${d.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){var n;const{scopes:i}=e;const o=await e.getAccessToken(i,{enableCae:true,claims:t});if(!o){return false}e.request.headers.set("Authorization",`${(n=o.tokenType)!==null&&n!==void 0?n:"Bearer"} ${o.token}`);return true}function bearerTokenAuthenticationPolicy(e){var n,d,p;const{credential:f,scopes:y,challengeCallbacks:v}=e;const D=e.logger||o.logger;const M={authorizeRequest:(d=(n=v===null||v===void 0?void 0:v.authorizeRequest)===null||n===void 0?void 0:n.bind(v))!==null&&d!==void 0?d:defaultAuthorizeRequest,authorizeRequestOnChallenge:(p=v===null||v===void 0?void 0:v.authorizeRequestOnChallenge)===null||p===void 0?void 0:p.bind(v)};const U=f?(0,i.createTokenCycler)(f):()=>Promise.resolve(null);return{name:t.bearerTokenAuthenticationPolicyName,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await M.authorizeRequest({scopes:Array.isArray(y)?y:[y],request:e,getAccessToken:U,logger:D});let n;let i;let o;[n,i]=await trySendRequest(e,t);if(isChallengeResponse(n)){let d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}o=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(o){[n,i]=await trySendRequest(e,t)}}else if(M.authorizeRequestOnChallenge){o=await M.authorizeRequestOnChallenge({scopes:Array.isArray(y)?y:[y],request:e,response:n,getAccessToken:U,logger:D});if(o){[n,i]=await trySendRequest(e,t)}if(isChallengeResponse(n)){d=getCaeChallengeClaims(n.headers.get("WWW-Authenticate"));if(d){let p;try{p=atob(d)}catch(e){D.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${d}`);return n}o=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(y)?y:[y],response:n,request:e,getAccessToken:U,logger:D},p);if(o){[n,i]=await trySendRequest(e,t)}}}}}if(i){throw i}else{return n}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const i=[];let o;while((o=t.exec(e))!==null){const e=o[1];const t=o[2];const d={};let p;while((p=n.exec(t))!==null){d[p[1]]=p[2]}i.push({scheme:e,params:d})}return i}function getCaeChallengeClaims(e){var t;if(!e){return}const n=parseChallenges(e);return(t=n.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims")))===null||t===void 0?void 0:t.params.claims}},39295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;const i=n(44960);t.decompressResponsePolicyName=i.decompressResponsePolicyName;function decompressResponsePolicy(){return(0,i.decompressResponsePolicy)()}},48170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const i=n(44960);t.defaultRetryPolicyName=i.defaultRetryPolicyName;function defaultRetryPolicy(e={}){return(0,i.defaultRetryPolicy)(e)}},16708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const i=n(44960);t.exponentialRetryPolicyName=i.exponentialRetryPolicyName;function exponentialRetryPolicy(e={}){return(0,i.exponentialRetryPolicy)(e)}},75497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const i=n(44960);t.formDataPolicyName=i.formDataPolicyName;function formDataPolicy(){return(0,i.formDataPolicy)()}},53253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const i=n(80544);const o=n(44960);t.logPolicyName=o.logPolicyName;function logPolicy(e={}){return(0,o.logPolicy)(Object.assign({logger:i.logger.info},e))}},45807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const i=n(44960);const o=n(97073);t.multipartPolicyName=i.multipartPolicyName;function multipartPolicy(){const e=(0,i.multipartPolicy)();return{name:t.multipartPolicyName,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if((0,o.hasRawContent)(e.body)){e.body=(0,o.getRawContent)(e.body)}}}return e.sendRequest(t,n)}}}},36827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ndJsonPolicyName=void 0;t.ndJsonPolicy=ndJsonPolicy;t.ndJsonPolicyName="ndJsonPolicy";function ndJsonPolicy(){return{name:t.ndJsonPolicyName,async sendRequest(e,t){if(typeof e.body==="string"&&e.body.startsWith("[")){const t=JSON.parse(e.body);if(Array.isArray(t)){e.body=t.map((e=>JSON.stringify(e)+"\n")).join("")}}return t(e)}}}},32815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.proxyPolicyName=void 0;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const i=n(44960);t.proxyPolicyName=i.proxyPolicyName;function getDefaultProxySettings(e){return(0,i.getDefaultProxySettings)(e)}function proxyPolicy(e,t){return(0,i.proxyPolicy)(e,t)}},64087:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;const i=n(44960);t.redirectPolicyName=i.redirectPolicyName;function redirectPolicy(e={}){return(0,i.redirectPolicy)(e)}},56085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const i=n(26515);const o=n(66427);const d=n(44960);const p=(0,i.createClientLogger)("core-rest-pipeline retryPolicy");function retryPolicy(e,t={maxRetries:o.DEFAULT_RETRY_POLICY_COUNT}){return(0,d.retryPolicy)(e,Object.assign({logger:p},t))}},95686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setClientRequestIdPolicyName=void 0;t.setClientRequestIdPolicy=setClientRequestIdPolicy;t.setClientRequestIdPolicyName="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:t.setClientRequestIdPolicyName,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}},96518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const i=n(44960);t.systemErrorRetryPolicyName=i.systemErrorRetryPolicyName;function systemErrorRetryPolicy(e={}){return(0,i.systemErrorRetryPolicy)(e)}},97540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const i=n(44960);t.throttlingRetryPolicyName=i.throttlingRetryPolicyName;function throttlingRetryPolicy(e={}){return(0,i.throttlingRetryPolicy)(e)}},75798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;const i=n(44960);t.tlsPolicyName=i.tlsPolicyName;function tlsPolicy(e){return(0,i.tlsPolicy)(e)}},93237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingPolicyName=void 0;t.tracingPolicy=tracingPolicy;const i=n(20623);const o=n(66427);const d=n(28431);const p=n(80544);const f=n(87779);const y=n(8666);const v=n(95750);t.tracingPolicyName="tracingPolicy";function tracingPolicy(e={}){const n=(0,d.getUserAgentValue)(e.userAgentPrefix);const i=new v.Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const o=tryCreateTracingClient();return{name:t.tracingPolicyName,async sendRequest(e,t){var d;if(!o){return t(e)}const p=await n;const f={"http.url":i.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":p,requestId:e.requestId};if(p){f["http.user_agent"]=p}const{span:y,tracingContext:v}=(d=tryCreateSpan(o,e,f))!==null&&d!==void 0?d:{};if(!y||!v){return t(e)}try{const n=await o.withContext(v,t,e);tryProcessResponse(y,n);return n}catch(e){tryProcessError(y,e);throw e}}}}function tryCreateTracingClient(){try{return(0,i.createTracingClient)({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:o.SDK_VERSION})}catch(e){p.logger.warning(`Error when creating the TracingClient: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:i,updatedOptions:o}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!i.isRecording()){i.end();return undefined}const d=e.createRequestHeaders(o.tracingOptions.tracingContext);for(const[e,n]of Object.entries(d)){t.headers.set(e,n)}return{span:i,tracingContext:o.tracingOptions.tracingContext}}catch(e){p.logger.warning(`Skipping creating a tracing span due to an error: ${(0,f.getErrorMessage)(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:(0,f.isError)(t)?t:undefined});if((0,y.isRestError)(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){p.logger.warning(`Skipping tracing span processing due to an error: ${(0,f.getErrorMessage)(e)}`)}}},32799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const i=n(28431);const o=(0,i.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,i.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(o)){e.headers.set(o,await n)}return t(e)}}}},37466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLikePolicyName=void 0;t.wrapAbortSignalLikePolicy=wrapAbortSignalLikePolicy;const i=n(91297);t.wrapAbortSignalLikePolicyName="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:t.wrapAbortSignalLikePolicyName,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:o}=(0,i.wrapAbortSignalLike)(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{o===null||o===void 0?void 0:o()}}}}},8666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const i=n(41958);t.RestError=i.RestError;function isRestError(e){return(0,i.isRestError)(e)}},97073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasRawContent=hasRawContent;t.getRawContent=getRawContent;t.createFileFromStream=createFileFromStream;t.createFile=createFile;const i=n(87779);function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const o={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const d=Symbol("rawContent");function hasRawContent(e){return typeof e[d]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[d]()}else{return e}}function createFileFromStream(e,t,n={}){var i,p,f,y;return Object.assign(Object.assign({},o),{type:(i=n.type)!==null&&i!==void 0?i:"",lastModified:(p=n.lastModified)!==null&&p!==void 0?p:(new Date).getTime(),webkitRelativePath:(f=n.webkitRelativePath)!==null&&f!==void 0?f:"",size:(y=n.size)!==null&&y!==void 0?y:-1,name:t,stream:()=>{const t=e();if(isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[d]:e})}function createFile(e,t,n={}){var p,f,y;if(i.isNodeLike){return Object.assign(Object.assign({},o),{type:(p=n.type)!==null&&p!==void 0?p:"",lastModified:(f=n.lastModified)!==null&&f!==void 0?f:(new Date).getTime(),webkitRelativePath:(y=n.webkitRelativePath)!==null&&y!==void 0?y:"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([e]).stream(),[d]:()=>e})}else{return new File([e],t,n)}}},39202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_CYCLER_OPTIONS=void 0;t.createTokenCycler=createTokenCycler;const i=n(87779);t.DEFAULT_CYCLER_OPTIONS={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()e.getToken(t,n);i=beginRefresh(tryGetAccessToken,p.retryIntervalInMs,(y=o===null||o===void 0?void 0:o.expiresOnTimestamp)!==null&&y!==void 0?y:Date.now()).then((e=>{i=null;o=e;d=n.tenantId;return o})).catch((e=>{i=null;o=null;d=undefined;throw e}))}return i}return async(e,t)=>{const n=Boolean(t.claims);const i=d!==t.tenantId;if(n){o=null}const p=i||n||f.mustRefresh;if(p){return refresh(e,t)}if(f.shouldRefresh){refresh(e,t)}return o}}},28431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const i=n(31848);const o=n(66427);function getUserAgentString(e){const t=[];for(const[n,i]of e){const e=i?`${n}/${i}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,i.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",o.SDK_VERSION);await(0,i.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},31848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const i=n(61860);const o=i.__importStar(n(48161));const d=i.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${o.arch()}-${o.type()}-${o.release()})`)}},91297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.wrapAbortSignalLike=wrapAbortSignalLike;function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}},20623:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=t.useInstrumenter=void 0;var i=n(48729);Object.defineProperty(t,"useInstrumenter",{enumerable:true,get:function(){return i.useInstrumenter}});var o=n(93438);Object.defineProperty(t,"createTracingClient",{enumerable:true,get:function(){return o.createTracingClient}})},48729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultTracingSpan=createDefaultTracingSpan;t.createDefaultInstrumenter=createDefaultInstrumenter;t.useInstrumenter=useInstrumenter;t.getInstrumenter=getInstrumenter;const i=n(79186);const o=n(38914);function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:(0,i.createTracingContext)({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){o.state.instrumenterImplementation=e}function getInstrumenter(){if(!o.state.instrumenterImplementation){o.state.instrumenterImplementation=createDefaultInstrumenter()}return o.state.instrumenterImplementation}},38914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.state=void 0;t.state={instrumenterImplementation:undefined}},93438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createTracingClient=createTracingClient;const i=n(48729);const o=n(79186);function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:d}=e;function startSpan(e,p,f){var y;const v=(0,i.getInstrumenter)().startSpan(e,Object.assign(Object.assign({},f),{packageName:n,packageVersion:d,tracingContext:(y=p===null||p===void 0?void 0:p.tracingOptions)===null||y===void 0?void 0:y.tracingContext}));let D=v.tracingContext;const M=v.span;if(!D.getValue(o.knownContextKeys.namespace)){D=D.setValue(o.knownContextKeys.namespace,t)}M.setAttribute("az.namespace",D.getValue(o.knownContextKeys.namespace));const U=Object.assign({},p,{tracingOptions:Object.assign(Object.assign({},p===null||p===void 0?void 0:p.tracingOptions),{tracingContext:D})});return{span:M,updatedOptions:U}}async function withSpan(e,t,n,i){const{span:o,updatedOptions:d}=startSpan(e,t,i);try{const e=await withContext(d.tracingOptions.tracingContext,(()=>Promise.resolve(n(d,o))));o.setStatus({status:"success"});return e}catch(e){o.setStatus({status:"error",error:e});throw e}finally{o.end()}}function withContext(e,t,...n){return(0,i.getInstrumenter)().withContext(e,t,...n)}function parseTraceparentHeader(e){return(0,i.getInstrumenter)().parseTraceparentHeader(e)}function createRequestHeaders(e){return(0,i.getInstrumenter)().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}},79186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TracingContextImpl=t.knownContextKeys=void 0;t.createTracingContext=createTracingContext;t.knownContextKeys={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let n=new TracingContextImpl(e.parentContext);if(e.span){n=n.setValue(t.knownContextKeys.span,e.span)}if(e.namespace){n=n.setValue(t.knownContextKeys.namespace,e.namespace)}return n}class TracingContextImpl{constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}t.TracingContextImpl=TracingContextImpl},95209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cancelablePromiseRace=cancelablePromiseRace;async function cancelablePromiseRace(e,t){var n,i;const o=new AbortController;function abortHandler(){o.abort()}(n=t===null||t===void 0?void 0:t.abortSignal)===null||n===void 0?void 0:n.addEventListener("abort",abortHandler);try{return await Promise.race(e.map((e=>e({abortSignal:o.signal}))))}finally{o.abort();(i=t===null||t===void 0?void 0:t.abortSignal)===null||i===void 0?void 0:i.removeEventListener("abort",abortHandler)}}},63128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createAbortablePromise=createAbortablePromise;const i=n(16492);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:o,abortErrorMsg:d}=t!==null&&t!==void 0?t:{};return new Promise(((t,p)=>{function rejectOnAbort(){p(new i.AbortError(d!==null&&d!==void 0?d:"The operation was aborted."))}function removeListeners(){o===null||o===void 0?void 0:o.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(o===null||o===void 0?void 0:o.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();p(e)}))}catch(e){p(e)}o===null||o===void 0?void 0:o.addEventListener("abort",onAbort)}))}},90636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.calculateRetryDelay=calculateRetryDelay;const i=n(63128);const o=n(95750);const d="The delay was aborted.";function delay(e,t){let n;const{abortSignal:o,abortErrorMsg:p}=t!==null&&t!==void 0?t:{};return(0,i.createAbortablePromise)((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:p!==null&&p!==void 0?p:d})}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const i=Math.min(t.maxRetryDelayInMs,n);const d=i/2+(0,o.getRandomIntegerInclusive)(0,i/2);return{retryAfterInMs:d}}},99945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getErrorMessage=getErrorMessage;const i=n(95750);function getErrorMessage(e){if((0,i.isError)(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}},87779:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isWebWorker=t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isNode=t.isDeno=t.isBun=t.isBrowser=t.objectHasProperty=t.isObjectWithProperties=t.isDefined=t.getErrorMessage=t.delay=t.createAbortablePromise=t.cancelablePromiseRace=void 0;t.calculateRetryDelay=calculateRetryDelay;t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isError=isError;t.isObject=isObject;t.randomUUID=randomUUID;t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;const i=n(61860);const o=i.__importStar(n(95750));var d=n(95209);Object.defineProperty(t,"cancelablePromiseRace",{enumerable:true,get:function(){return d.cancelablePromiseRace}});var p=n(63128);Object.defineProperty(t,"createAbortablePromise",{enumerable:true,get:function(){return p.createAbortablePromise}});var f=n(90636);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return f.delay}});var y=n(99945);Object.defineProperty(t,"getErrorMessage",{enumerable:true,get:function(){return y.getErrorMessage}});var v=n(66277);Object.defineProperty(t,"isDefined",{enumerable:true,get:function(){return v.isDefined}});Object.defineProperty(t,"isObjectWithProperties",{enumerable:true,get:function(){return v.isObjectWithProperties}});Object.defineProperty(t,"objectHasProperty",{enumerable:true,get:function(){return v.objectHasProperty}});function calculateRetryDelay(e,t){return o.calculateRetryDelay(e,t)}function computeSha256Hash(e,t){return o.computeSha256Hash(e,t)}function computeSha256Hmac(e,t,n){return o.computeSha256Hmac(e,t,n)}function getRandomIntegerInclusive(e,t){return o.getRandomIntegerInclusive(e,t)}function isError(e){return o.isError(e)}function isObject(e){return o.isObject(e)}function randomUUID(){return o.randomUUID()}t.isBrowser=o.isBrowser;t.isBun=o.isBun;t.isDeno=o.isDeno;t.isNode=o.isNodeLike;t.isNodeLike=o.isNodeLike;t.isNodeRuntime=o.isNodeRuntime;t.isReactNative=o.isReactNative;t.isWebWorker=o.isWebWorker;function uint8ArrayToString(e,t){return o.uint8ArrayToString(e,t)}function stringToUint8Array(e,t){return o.stringToUint8Array(e,t)}},66277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDefined=isDefined;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}},31658:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},16492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=n(31658);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},78756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=t.parseXML=t.stringifyXML=void 0;var i=n(48133);Object.defineProperty(t,"stringifyXML",{enumerable:true,get:function(){return i.stringifyXML}});Object.defineProperty(t,"parseXML",{enumerable:true,get:function(){return i.parseXML}});var o=n(93406);Object.defineProperty(t,"XML_ATTRKEY",{enumerable:true,get:function(){return o.XML_ATTRKEY}});Object.defineProperty(t,"XML_CHARKEY",{enumerable:true,get:function(){return o.XML_CHARKEY}})},93406:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XML_CHARKEY=t.XML_ATTRKEY=void 0;t.XML_ATTRKEY="$";t.XML_CHARKEY="_"},48133:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringifyXML=stringifyXML;t.parseXML=parseXML;const i=n(50591);const o=n(93406);function getCommonOptions(e){var t;return{attributesGroupName:o.XML_ATTRKEY,textNodeName:(t=e.xmlCharKey)!==null&&t!==void 0?t:o.XML_CHARKEY,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){var t,n;return Object.assign(Object.assign({},getCommonOptions(e)),{attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:(t=e.rootName)!==null&&t!==void 0?t:"root",cdataPropName:(n=e.cdataPropName)!==null&&n!==void 0?n:"__cdata"})}function getParserOptions(e={}){return Object.assign(Object.assign({},getCommonOptions(e)),{parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false})}function stringifyXML(e,t={}){const n=getSerializerOptions(t);const o=new i.XMLBuilder(n);const d={[n.rootNodeName]:e};const p=o.build(d);return`${p}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const n=i.XMLValidator.validate(e);if(n!==true){throw n}const o=new i.XMLParser(getParserOptions(t));const d=o.parse(e);if(d["?xml"]){delete d["?xml"]}if(!t.includeRoot){for(const e of Object.keys(d)){const t=d[e];return typeof t==="object"?Object.assign({},t):t}}return d}},26515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AzureLogger=void 0;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const i=n(82490);const o=(0,i.createLoggerContext)({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});t.AzureLogger=o.logger;function setLogLevel(e){o.setLogLevel(e)}function getLogLevel(){return o.getLogLevel()}function createClientLogger(e){return o.createClientLogger(e)}},48175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},41564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BatchResponseParser=void 0;const i=n(20778);const o=n(61584);const d=n(27323);const p=n(72995);const f=n(46370);const y=": ";const v=" ";const D=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${d.HTTP_LINE_ENDING}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==d.HTTPURLConnection.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await(0,p.getBodyAsText)(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const n=t.length;if(n!==this.subRequests.size&&n!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const M=new Array(n);let U=0;let V=0;for(let e=0;e=0&&re{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyAsText=getBodyAsText;t.utf8ByteLength=utf8ByteLength;const i=n(53563);const o=n(27323);async function getBodyAsText(e){let t=Buffer.alloc(o.BATCH_MAX_PAYLOAD_IN_BYTES);const n=await(0,i.streamToBuffer2)(e.readableStreamBody,t);t=t.slice(0,n);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}},95561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatch=void 0;const i=n(87779);const o=n(50417);const d=n(20778);const p=n(87779);const f=n(35345);const y=n(90372);const v=n(58913);const D=n(25984);const M=n(47764);const U=n(78756);const V=n(27323);const j=n(68999);const K=n(53952);const ee=n(60160);const te=n(97999);class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await v.Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await v.Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,n){let i;let d;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,o.isTokenCredential)(t))){i=e;d=t}else if(e instanceof y.BlobClient){i=e.url;d=e.credential;n=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return K.tracingClient.withSpan("BatchDeleteRequest-addSubRequest",n,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:i,credential:d},(async()=>{await new y.BlobClient(i,this.batchRequest.createPipeline(d)).delete(e)}))}))}async setBlobAccessTier(e,t,n,i){let d;let v;let D;if(typeof e==="string"&&(p.isNodeLike&&t instanceof j.StorageSharedKeyCredential||t instanceof f.AnonymousCredential||(0,o.isTokenCredential)(t))){d=e;v=t;D=n}else if(e instanceof y.BlobClient){d=e.url;v=e.credential;D=t;i=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!i){i={}}return K.tracingClient.withSpan("BatchSetTierRequest-addSubRequest",i,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:v},(async()=>{await new y.BlobClient(d,this.batchRequest.createPipeline(v)).setAccessTier(D,e)}))}))}}t.BlobBatch=BlobBatch;class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=(0,i.randomUUID)();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TYPE}: application/http${V.HTTP_LINE_ENDING}${V.HeaderConstants.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=(0,d.createEmptyPipeline)();t.addPolicy((0,ee.serializationPolicy)({stringifyXML:U.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if((0,o.isTokenCredential)(e)){t.addPolicy((0,d.bearerTokenAuthenticationPolicy)({credential:e,scopes:V.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:ee.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof j.StorageSharedKeyCredential){t.addPolicy((0,te.storageSharedKeyCredentialPolicy)({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const n=new D.Pipeline([]);n._credential=e;n._corePipeline=t;return n}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${V.HeaderConstants.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${(0,M.getURLPathAndQuery)(e.url)} ${V.HTTP_VERSION_1_1}${V.HTTP_LINE_ENDING}`].join(V.HTTP_LINE_ENDING);for(const[t,n]of e.headers){this.body+=`${t}: ${n}${V.HTTP_LINE_ENDING}`}this.body+=V.HTTP_LINE_ENDING}preAddSubRequest(e){if(this.operationCount>=V.BATCH_MAX_REQUEST){throw new RangeError(`Cannot exceed ${V.BATCH_MAX_REQUEST} sub requests in a single batch`)}const t=(0,M.getURLPath)(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${V.HTTP_LINE_ENDING}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:(0,d.createHttpHeaders)()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let n="";for(const[t]of e.headers){if((0,M.iEqual)(t,V.HeaderConstants.X_MS_VERSION)){n=t}}if(n!==""){e.headers.delete(n)}return t(e)}}}},12094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBatchClient=void 0;const i=n(41564);const o=n(72995);const d=n(95561);const p=n(53952);const f=n(35345);const y=n(53789);const v=n(25984);const D=n(47764);class BlobBatchClient{serviceOrContainerContext;constructor(e,t,n){let i;if((0,v.isPipelineLike)(t)){i=t}else if(!t){i=(0,v.newPipeline)(new f.AnonymousCredential,n)}else{i=(0,v.newPipeline)(t,n)}const o=new y.StorageContextClient(e,(0,v.getCoreClientOptions)(i));const d=(0,D.getURLPath)(e);if(d&&d!=="/"){this.serviceOrContainerContext=o.container}else{this.serviceOrContainerContext=o.service}}createBatch(){return new d.BlobBatch}async deleteBlobs(e,t,n){const i=new d.BlobBatch;for(const o of e){if(typeof o==="string"){await i.deleteBlob(o,t,n)}else{await i.deleteBlob(o,t)}}return this.submitBatch(i)}async setBlobsAccessTier(e,t,n,i){const o=new d.BlobBatch;for(const d of e){if(typeof d==="string"){await o.setBlobAccessTier(d,t,n,i)}else{await o.setBlobAccessTier(d,t,n)}}return this.submitBatch(o)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return p.tracingClient.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const n=e.getHttpRequestBody();const d=(0,D.assertResponse)(await this.serviceOrContainerContext.submitBatch((0,o.utf8ByteLength)(n),e.getMultiPartContentType(),n,{...t}));const p=new i.BatchResponseParser(d,e.getSubRequests());const f=await p.parseBatchResponse();const y={_response:d._response,contentType:d.contentType,errorCode:d.errorCode,requestId:d.requestId,clientRequestId:d.clientRequestId,version:d.version,subResponses:f.subResponses,subResponsesSucceededCount:f.subResponsesSucceededCount,subResponsesFailedCount:f.subResponsesFailedCount};return y}))}}t.BlobBatchClient=BlobBatchClient},4894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobDownloadResponse=void 0;const i=n(87779);const o=n(98684);class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return i.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,i,d={}){this.originalResponse=e;this.blobDownloadStream=new o.RetriableReadableStream(this.originalResponse.readableStreamBody,t,n,i,d)}}t.BlobDownloadResponse=BlobDownloadResponse},23276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobLeaseClient=void 0;const i=n(87779);const o=n(27323);const d=n(53952);const p=n(47764);class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const n=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=n.container}else{this._isContainer=false;this._containerOrBlobOperation=n.blob}if(!t){t=(0,i.randomUUID)()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-acquireLease",t,(async n=>(0,p.assertResponse)(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-changeLease",t,(async n=>{const i=(0,p.assertResponse)(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));this._leaseId=e;return i}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-releaseLease",e,(async t=>(0,p.assertResponse)(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==o.ETagNone||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==o.ETagNone||e.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==o.ETagNone||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==o.ETagNone||t.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return d.tracingClient.withSpan("BlobLeaseClient-breakLease",t,(async n=>{const i={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return(0,p.assertResponse)(await this._containerOrBlobOperation.breakLease(i))}))}}t.BlobLeaseClient=BlobLeaseClient},95602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQueryResponse=void 0;const i=n(87779);const o=n(36426);class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return i.isNodeLike?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new o.BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}t.BlobQueryResponse=BlobQueryResponse},96341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobServiceClient=void 0;const i=n(50417);const o=n(20778);const d=n(87779);const p=n(25984);const f=n(81884);const y=n(47764);const v=n(68999);const D=n(35345);const M=n(47764);const U=n(53952);const V=n(12094);const j=n(73542);const K=n(6358);const ee=n(85238);const te=n(46940);class BlobServiceClient extends j.StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const n=(0,y.extractConnectionStringParts)(e);if(n.kind==="AccountConnString"){if(d.isNodeLike){const e=new v.StorageSharedKeyCredential(n.accountName,n.accountKey);if(!t.proxyOptions){t.proxyOptions=(0,o.getDefaultProxySettings)(n.proxyUri)}const i=(0,p.newPipeline)(e,t);return new BlobServiceClient(n.url,i)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(n.kind==="SASConnString"){const e=(0,p.newPipeline)(new D.AnonymousCredential,t);return new BlobServiceClient(n.url+"?"+n.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,n){let o;if((0,p.isPipelineLike)(t)){o=t}else if(d.isNodeLike&&t instanceof v.StorageSharedKeyCredential||t instanceof D.AnonymousCredential||(0,i.isTokenCredential)(t)){o=(0,p.newPipeline)(t,n)}else{o=(0,p.newPipeline)(new D.AnonymousCredential,n)}super(e,o);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new f.ContainerClient((0,y.appendToURLPath)(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-createContainer",t,(async t=>{const n=this.getContainerClient(e);const i=await n.create(t);return{containerClient:n,containerCreateResponse:i}}))}async deleteContainer(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const n=this.getContainerClient(e);return n.delete(t)}))}async undeleteContainer(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-undeleteContainer",n,(async i=>{const o=this.getContainerClient(n.destinationContainerName||e);const d=o["storageClientContext"].container;const p=(0,M.assertResponse)(await d.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:i.tracingOptions}));return{containerClient:o,containerUndeleteResponse:p}}))}async getProperties(e={}){return U.tracingClient.withSpan("BlobServiceClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-setProperties",t,(async n=>(0,M.assertResponse)(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async getStatistics(e={}){return U.tracingClient.withSpan("BlobServiceClient-getStatistics",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return U.tracingClient.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return U.tracingClient.withSpan("BlobServiceClient-listContainersSegment",t,(async n=>(0,M.assertResponse)(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:n.tracingOptions}))))}async findBlobsByTagsSegment(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,(async i=>{const o=(0,M.assertResponse)(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:i.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,y.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let i;if(!!t||t===undefined){do{i=await this.findBlobsByTagsSegment(e,t,n);i.blobs=i.blobs||[];t=i.continuationToken;yield i}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const i of this.findBlobsByTagsSegments(e,n,t)){yield*i.blobs}}findBlobsByTags(e,t={}){const n={...t};const i=this.findBlobsByTagsItems(e,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listContainersSegment(e,t);n.containerItems=n.containerItems||[];e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const n={...e,...t.length>0?{include:t}:{}};const i=this.listItems(n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async getUserDelegationKey(e,t,n={}){return U.tracingClient.withSpan("BlobServiceClient-getUserDelegationKey",n,(async i=>{const o=(0,M.assertResponse)(await this.serviceContext.getUserDelegationKey({startsOn:(0,M.truncatedISO8061Date)(e,false),expiresOn:(0,M.truncatedISO8061Date)(t,false)},{abortSignal:n.abortSignal,tracingOptions:i.tracingOptions}));const d={signedObjectId:o.signedObjectId,signedTenantId:o.signedTenantId,signedStartsOn:new Date(o.signedStartsOn),signedExpiresOn:new Date(o.signedExpiresOn),signedService:o.signedService,signedVersion:o.signedVersion,value:o.value};const p={_response:o._response,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,date:o.date,errorCode:o.errorCode,...d};return p}))}getBlobBatchClient(){return new V.BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=K.AccountSASPermissions.parse("r"),n="sco",i={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const o=(0,ee.generateAccountSASQueryParameters)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...i},this.credential).toString();return(0,y.appendToURLQuery)(this.url,o)}generateSasStringToSign(e,t=K.AccountSASPermissions.parse("r"),n="sco",i={}){if(!(this.credential instanceof v.StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return(0,ee.generateAccountSASQueryParametersInternal)({permissions:t,expiresOn:e,resourceTypes:n,services:te.AccountSASServices.parse("b").toString(),...i},this.credential).stringToSign}}t.BlobServiceClient=BlobServiceClient},90372:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobClient=t.BlockBlobClient=t.AppendBlobClient=t.BlobClient=void 0;const i=n(20778);const o=n(50417);const d=n(87779);const p=n(87779);const f=n(4894);const y=n(95602);const v=n(35345);const D=n(68999);const M=n(58560);const U=n(95302);const V=n(25984);const j=n(73145);const K=n(52045);const ee=n(73542);const te=n(81582);const re=n(51382);const ne=n(27323);const ie=n(53952);const oe=n(47764);const se=n(53563);const ae=n(656);const Ae=n(23276);class BlobClient extends ee.StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,p){p=p||{};let f;let y;if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=(0,oe.getURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT);this._versionId=(0,oe.getURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,n={}){n.conditions=n.conditions||{};n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-download",n,(async i=>{const o=(0,oe.assertResponse)(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:d.isNodeLike?undefined:n.onProgress},range:e===0&&!t?undefined:(0,K.rangeToString)({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:i.tracingOptions}));const p={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:(0,oe.parseObjectReplicationRecord)(o.objectReplicationRules)};if(!d.isNodeLike){return p}if(n.maxRetryRequests===undefined||n.maxRetryRequests<0){n.maxRetryRequests=ne.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS}if(o.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!o.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new f.BlobDownloadResponse(p,(async t=>{const i={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({count:e+o.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...i})).readableStreamBody}),e,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))}async exists(e={}){return ie.tracingClient.withSpan("BlobClient-exists",e,(async t=>{try{(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===ne.BlobUsesCustomerSpecifiedEncryptionMsg||e.details.errorCode===ne.BlobDoesNotUseCustomerSpecifiedEncryption)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-getProperties",e,(async t=>{const n=(0,oe.assertResponse)(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:(0,oe.parseObjectReplicationRecord)(n.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return ie.tracingClient.withSpan("BlobClient-delete",e,(async t=>(0,oe.assertResponse)(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return ie.tracingClient.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=(0,oe.assertResponse)(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return ie.tracingClient.withSpan("BlobClient-undelete",e,(async t=>(0,oe.assertResponse)(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-setHTTPHeaders",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-setMetadata",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async setTags(e,t={}){return ie.tracingClient.withSpan("BlobClient-setTags",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions,tags:(0,oe.toBlobTags)(e)}))))}async getTags(e={}){return ie.tracingClient.withSpan("BlobClient-getTags",e,(async t=>{const n=(0,oe.assertResponse)(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}));const i={...n,_response:n._response,tags:(0,oe.toTags)({blobTagSet:n.blobTagSet})||{}};return i}))}getBlobLeaseClient(e){return new Ae.BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlobClient-createSnapshot",e,(async t=>(0,oe.assertResponse)(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const n={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const i=new j.BlobBeginCopyFromUrlPoller({blobClient:n,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await i.poll();return i}async abortCopyFromURL(e,t={}){return ie.tracingClient.withSpan("BlobClient-abortCopyFromURL",t,(async n=>(0,oe.assertResponse)(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return ie.tracingClient.withSpan("BlobClient-syncCopyFromURL",t,(async n=>(0,oe.assertResponse)(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:(0,oe.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async setAccessTier(e,t={}){return ie.tracingClient.withSpan("BlobClient-setAccessTier",t,(async n=>(0,oe.assertResponse)(await this.blobContext.setTier((0,M.toAccessTier)(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions}))))}async downloadToBuffer(e,t,n,i={}){let o;let d=0;let p=0;let f=i;if(e instanceof Buffer){o=e;d=t||0;p=typeof n==="number"?n:0}else{d=typeof e==="number"?e:0;p=typeof t==="number"?t:0;f=n||{}}let y=f.blockSize??0;if(y<0){throw new RangeError("blockSize option must be >= 0")}if(y===0){y=ne.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES}if(d<0){throw new RangeError("offset option must be >= 0")}if(p&&p<=0){throw new RangeError("count option must be greater than 0")}if(!f.conditions){f.conditions={}}return ie.tracingClient.withSpan("BlobClient-downloadToBuffer",f,(async e=>{if(!p){const t=await this.getProperties({...f,tracingOptions:e.tracingOptions});p=t.contentLength-d;if(p<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${t.contentLength}`)}}if(!o){try{o=Buffer.alloc(p)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${p}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(o.length{let n=d+p;if(i+y{const d=await this.download(t,n,{...i,tracingOptions:o.tracingOptions});if(d.readableStreamBody){await(0,se.readStreamToLocalFile)(d.readableStreamBody,e)}d.blobDownloadStream=undefined;return d}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const n=new URL(this.url);if(n.host.split(".")[1]==="blob"){const i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1];t=i[3]}else if((0,oe.isIpEndpointStyle)(n)){const i=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=i[2];t=i[4]}else{const i=n.pathname.match("/([^/]*)(/(.*))?");e=i[1];t=i[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return ie.tracingClient.withSpan("BlobClient-startCopyFromURL",t,(async n=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return(0,oe.assertResponse)(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t((0,oe.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof D.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const i=(0,ae.generateBlobSASQueryParameters)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n((0,oe.appendToURLQuery)(this.url,i))}))}generateUserDelegationSasStringToSign(e,t){return(0,ae.generateBlobSASQueryParametersInternal)({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ie.tracingClient.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>(0,oe.assertResponse)(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return ie.tracingClient.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>(0,oe.assertResponse)(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return ie.tracingClient.withSpan("BlobClient-setLegalHold",t,(async t=>(0,oe.assertResponse)(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return ie.tracingClient.withSpan("BlobClient-getAccountInfo",e,(async t=>(0,oe.assertResponse)(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}t.BlobClient=BlobClient;class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};(0,M.ensureCpkIfSpecified)(e.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("AppendBlobClient-create",e,(async t=>(0,oe.assertResponse)(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:(0,oe.toBlobTagsString)(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:ne.ETagAny};return ie.tracingClient.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const n=(0,oe.assertResponse)(await this.create({...e,conditions:t}));return{succeeded:true,...n,_response:n._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return ie.tracingClient.withSpan("AppendBlobClient-seal",e,(async t=>(0,oe.assertResponse)(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("AppendBlobClient-appendBlock",n,(async i=>(0,oe.assertResponse)(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions}))))}async appendBlockFromURL(e,t,n,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("AppendBlobClient-appendBlockFromURL",i,(async o=>(0,oe.assertResponse)(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:i.abortSignal,sourceRange:(0,K.rangeToString)({offset:t,count:n}),sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,appendPositionAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:(0,oe.httpAuthorizationToString)(i.sourceAuthorization),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:o.tracingOptions}))))}}t.AppendBlobClient=AppendBlobClient;class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;if(n&&typeof n!=="string"){p=n}f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);if(!d.isNodeLike){throw new Error("This operation currently is only supported in Node.js.")}return ie.tracingClient.withSpan("BlockBlobClient-query",t,(async n=>{const i=(0,oe.assertResponse)(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:(0,oe.toQuerySerialization)(t.inputTextConfiguration),outputSerialization:(0,oe.toQuerySerialization)(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return new y.BlobQueryResponse(i,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,n={}){n.conditions=n.conditions||{};(0,M.ensureCpkIfSpecified)(n.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-upload",n,(async i=>(0,oe.assertResponse)(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:(0,M.toAccessTier)(n.tier),blobTagsString:(0,oe.toBlobTagsString)(n.tags),tracingOptions:i.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-syncUploadFromURL",t,(async n=>(0,oe.assertResponse)(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:(0,oe.httpAuthorizationToString)(t.sourceAuthorization),tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async stageBlock(e,t,n,i={}){(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-stageBlock",i,(async o=>(0,oe.assertResponse)(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,requestOptions:{onUploadProgress:i.onProgress},transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}))))}async stageBlockFromURL(e,t,n=0,i,o={}){(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-stageBlockFromURL",o,(async d=>(0,oe.assertResponse)(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!i?undefined:(0,K.rangeToString)({offset:n,count:i}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,oe.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("BlockBlobClient-commitBlockList",t,(async n=>(0,oe.assertResponse)(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async getBlockList(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-getBlockList",t,(async n=>{const i=(0,oe.assertResponse)(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));if(!i.committedBlocks){i.committedBlocks=[]}if(!i.uncommittedBlocks){i.uncommittedBlocks=[]}return i}))}async uploadData(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(d.isNodeLike){let n;if(e instanceof Buffer){n=e}else if(e instanceof ArrayBuffer){n=Buffer.from(e)}else{e=e;n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.byteLength,t)}else{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}}))}async uploadBrowserData(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}))}async uploadSeekableInternal(e,t,n={}){let i=n.blockSize??0;if(i<0||i>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES){throw new RangeError(`blockSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES}`)}const o=n.maxSingleShotSize??ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES;if(o<0||o>ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ne.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`)}if(i===0){if(t>ne.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES*ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>o){i=Math.ceil(t/ne.BLOCK_BLOB_MAX_BLOCKS);if(i{if(t<=o){return(0,oe.assertResponse)(await this.upload(e(0,t),t,d))}const f=Math.floor((t-1)/i)+1;if(f>ne.BLOCK_BLOB_MAX_BLOCKS){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${ne.BLOCK_BLOB_MAX_BLOCKS}`)}const y=[];const v=(0,p.randomUUID)();let D=0;const M=new te.Batch(n.concurrency);for(let o=0;o{const p=(0,oe.generateBlockID)(v,o);const M=i*o;const U=o===f-1?t:M+i;const V=U-M;y.push(p);await this.stageBlock(p,e(M,V),V,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:d.tracingOptions});D+=V;if(n.onProgress){n.onProgress({loadedBytes:D})}}))}await M.do();return this.commitBlockList(y,d)}))}async uploadFile(e,t={}){return ie.tracingClient.withSpan("BlockBlobClient-uploadFile",t,(async n=>{const i=(await(0,se.fsStat)(e)).size;return this.uploadSeekableInternal(((t,n)=>()=>(0,se.fsCreateReadStream)(e,{autoClose:true,end:n?t+n-1:Infinity,start:t})),i,{...t,tracingOptions:n.tracingOptions})}))}async uploadStream(e,t=ne.DEFAULT_BLOCK_BUFFER_SIZE_BYTES,n=5,i={}){if(!i.blobHTTPHeaders){i.blobHTTPHeaders={}}if(!i.conditions){i.conditions={}}return ie.tracingClient.withSpan("BlockBlobClient-uploadStream",i,(async o=>{let d=0;const f=(0,p.randomUUID)();let y=0;const v=[];const D=new re.BufferScheduler(e,t,n,(async(e,t)=>{const n=(0,oe.generateBlockID)(f,d);v.push(n);d++;await this.stageBlock(n,e,t,{customerProvidedKey:i.customerProvidedKey,conditions:i.conditions,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions});y+=t;if(i.onProgress){i.onProgress({loadedBytes:y})}}),Math.ceil(n/4*3));await D.do();return(0,oe.assertResponse)(await this.commitBlockList(v,{...i,tracingOptions:o.tracingOptions}))}))}}t.BlockBlobClient=BlockBlobClient;class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,n,p){let f;let y;p=p||{};if((0,V.isPipelineLike)(t)){y=e;f=t}else if(d.isNodeLike&&t instanceof D.StorageSharedKeyCredential||t instanceof v.AnonymousCredential||(0,o.isTokenCredential)(t)){y=e;p=n;f=(0,V.newPipeline)(t,p)}else if(!t&&typeof t!=="string"){y=e;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const o=t;const M=n;const U=(0,oe.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(d.isNodeLike){const e=new D.StorageSharedKeyCredential(U.accountName,U.accountKey);y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M));if(!p.proxyOptions){p.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}f=(0,V.newPipeline)(e,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){y=(0,oe.appendToURLPath)((0,oe.appendToURLPath)(U.url,encodeURIComponent(o)),encodeURIComponent(M))+"?"+U.accountSas;f=(0,V.newPipeline)(new v.AnonymousCredential,p)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(y,f);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient((0,oe.setURLParameter)(this.url,ne.URLConstants.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};(0,M.ensureCpkIfSpecified)(t.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("PageBlobClient-create",t,(async n=>(0,oe.assertResponse)(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:(0,M.toAccessTier)(t.tier),blobTagsString:(0,oe.toBlobTagsString)(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(e,t={}){return ie.tracingClient.withSpan("PageBlobClient-createIfNotExists",t,(async n=>{try{const i={ifNoneMatch:ne.ETagAny};const o=(0,oe.assertResponse)(await this.create(e,{...t,conditions:i,tracingOptions:n.tracingOptions}));return{succeeded:true,...o,_response:o._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,n,i={}){i.conditions=i.conditions||{};(0,M.ensureCpkIfSpecified)(i.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("PageBlobClient-uploadPages",i,(async o=>(0,oe.assertResponse)(await this.pageBlobContext.uploadPages(n,e,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},requestOptions:{onUploadProgress:i.onProgress},range:(0,K.rangeToString)({offset:t,count:n}),sequenceNumberAccessConditions:i.conditions,transactionalContentMD5:i.transactionalContentMD5,transactionalContentCrc64:i.transactionalContentCrc64,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,tracingOptions:o.tracingOptions}))))}async uploadPagesFromURL(e,t,n,i,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};(0,M.ensureCpkIfSpecified)(o.customerProvidedKey,this.isHttps);return ie.tracingClient.withSpan("PageBlobClient-uploadPagesFromURL",o,(async d=>(0,oe.assertResponse)(await this.pageBlobContext.uploadPagesFromURL(e,(0,K.rangeToString)({offset:t,count:i}),0,(0,K.rangeToString)({offset:n,count:i}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:(0,oe.httpAuthorizationToString)(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:d.tracingOptions}))))}async clearPages(e=0,t,n={}){n.conditions=n.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-clearPages",n,(async i=>(0,oe.assertResponse)(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:i.tracingOptions}))))}async getPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-getPageRanges",n,(async i=>{const o=(0,oe.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:i.tracingOptions}));return(0,U.rangeResponseFromModel)(o)}))}async listPageRangesSegment(e=0,t,n,i={}){return ie.tracingClient.withSpan("PageBlobClient-getPageRangesSegment",i,(async o=>(0,oe.assertResponse)(await this.pageBlobContext.getPageRanges({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},range:(0,K.rangeToString)({offset:e,count:t}),marker:n,maxPageSize:i.maxPageSize,tracingOptions:o.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,n,i={}){let o;if(!!n||n===undefined){do{o=await this.listPageRangesSegment(e,t,n,i);n=o.continuationToken;yield await o}while(n)}}async*listPageRangeItems(e=0,t,n={}){let i;for await(const o of this.listPageRangeItemSegments(e,t,i,n)){yield*(0,oe.ExtractPageRangeInfoItems)(o)}}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};const i=this.listPageRangeItems(e,t,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeItemSegments(e,t,i.continuationToken,{maxPageSize:i.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,i={}){i.conditions=i.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-getPageRangesDiff",i,(async o=>{const d=(0,oe.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async listPageRangesDiffSegment(e,t,n,i,o={}){return ie.tracingClient.withSpan("PageBlobClient-getPageRangesDiffSegment",o,(async d=>(0,oe.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:(0,K.rangeToString)({offset:e,count:t}),marker:i,maxPageSize:o?.maxPageSize,tracingOptions:d.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,n,i,o){let d;if(!!i||i===undefined){do{d=await this.listPageRangesDiffSegment(e,t,n,i,o);i=d.continuationToken;yield await d}while(i)}}async*listPageRangeDiffItems(e,t,n,i){let o;for await(const d of this.listPageRangeDiffItemSegments(e,t,n,o,i)){yield*(0,oe.ExtractPageRangeInfoItems)(d)}}listPageRangesDiff(e,t,n,i={}){i.conditions=i.conditions||{};const o=this.listPageRangeDiffItems(e,t,n,{...i});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeDiffItemSegments(e,t,n,o.continuationToken,{maxPageSize:o.maxPageSize,...i})}}async getPageRangesDiffForManagedDisks(e,t,n,i={}){i.conditions=i.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",i,(async o=>{const d=(0,oe.assertResponse)(await this.pageBlobContext.getPageRangesDiff({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},prevSnapshotUrl:n,range:(0,K.rangeToString)({offset:e,count:t}),tracingOptions:o.tracingOptions}));return(0,U.rangeResponseFromModel)(d)}))}async resize(e,t={}){t.conditions=t.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-resize",t,(async n=>(0,oe.assertResponse)(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async updateSequenceNumber(e,t,n={}){n.conditions=n.conditions||{};return ie.tracingClient.withSpan("PageBlobClient-updateSequenceNumber",n,(async i=>(0,oe.assertResponse)(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:i.tracingOptions}))))}async startCopyIncremental(e,t={}){return ie.tracingClient.withSpan("PageBlobClient-startCopyIncremental",t,(async n=>(0,oe.assertResponse)(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}}t.PageBlobClient=PageBlobClient},81884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerClient=void 0;const i=n(20778);const o=n(87779);const d=n(50417);const p=n(35345);const f=n(68999);const y=n(25984);const v=n(73542);const D=n(53952);const M=n(47764);const U=n(656);const V=n(23276);const j=n(90372);const K=n(12094);class ContainerClient extends v.StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,n){let v;let D;n=n||{};if((0,y.isPipelineLike)(t)){D=e;v=t}else if(o.isNodeLike&&t instanceof f.StorageSharedKeyCredential||t instanceof p.AnonymousCredential||(0,d.isTokenCredential)(t)){D=e;v=(0,y.newPipeline)(t,n)}else if(!t&&typeof t!=="string"){D=e;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else if(t&&typeof t==="string"){const d=t;const U=(0,M.extractConnectionStringParts)(e);if(U.kind==="AccountConnString"){if(o.isNodeLike){const e=new f.StorageSharedKeyCredential(U.accountName,U.accountKey);D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d));if(!n.proxyOptions){n.proxyOptions=(0,i.getDefaultProxySettings)(U.proxyUri)}v=(0,y.newPipeline)(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(U.kind==="SASConnString"){D=(0,M.appendToURLPath)(U.url,encodeURIComponent(d))+"?"+U.accountSas;v=(0,y.newPipeline)(new p.AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(D,v);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return D.tracingClient.withSpan("ContainerClient-create",e,(async e=>(0,M.assertResponse)(await this.containerContext.create(e))))}async createIfNotExists(e={}){return D.tracingClient.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return D.tracingClient.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new j.BlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getAppendBlobClient(e){return new j.AppendBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getBlockBlobClient(e){return new j.BlockBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}getPageBlobClient(e){return new j.PageBlobClient((0,M.appendToURLPath)(this.url,(0,M.EscapePath)(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getProperties",e,(async t=>(0,M.assertResponse)(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-delete",e,(async t=>(0,M.assertResponse)(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return D.tracingClient.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return D.tracingClient.withSpan("ContainerClient-setMetadata",t,(async n=>(0,M.assertResponse)(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return D.tracingClient.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const n=(0,M.assertResponse)(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const i={_response:n._response,blobPublicAccess:n.blobPublicAccess,date:n.date,etag:n.etag,errorCode:n.errorCode,lastModified:n.lastModified,requestId:n.requestId,clientRequestId:n.clientRequestId,signedIdentifiers:[],version:n.version};for(const e of n){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}i.signedIdentifiers.push({accessPolicy:t,id:e.id})}return i}))}async setAccessPolicy(e,t,n={}){n.conditions=n.conditions||{};return D.tracingClient.withSpan("ContainerClient-setAccessPolicy",n,(async i=>{const o=[];for(const e of t||[]){o.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?(0,M.truncatedISO8061Date)(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?(0,M.truncatedISO8061Date)(e.accessPolicy.startsOn):""},id:e.id})}return(0,M.assertResponse)(await this.containerContext.setAccessPolicy({abortSignal:n.abortSignal,access:e,containerAcl:o,leaseAccessConditions:n.conditions,modifiedAccessConditions:n.conditions,tracingOptions:i.tracingOptions}))}))}getBlobLeaseClient(e){return new V.BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,n,i={}){return D.tracingClient.withSpan("ContainerClient-uploadBlockBlob",i,(async i=>{const o=this.getBlockBlobClient(e);const d=await o.upload(t,n,i);return{blockBlobClient:o,response:d}}))}async deleteBlob(e,t={}){return D.tracingClient.withSpan("ContainerClient-deleteBlob",t,(async n=>{let i=this.getBlobClient(e);if(t.versionId){i=i.withVersion(t.versionId)}return i.delete(n)}))}async listBlobFlatSegment(e,t={}){return D.tracingClient.withSpan("ContainerClient-listBlobFlatSegment",t,(async n=>{const i=(0,M.assertResponse)(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:n.tracingOptions}));const o={...i,_response:{...i._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobFlat)(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t}))}};return o}))}async listBlobHierarchySegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-listBlobHierarchySegment",n,(async i=>{const o=(0,M.assertResponse)(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...n,tracingOptions:i.tracingOptions}));const d={...o,_response:{...o._response,parsedBody:(0,M.ConvertInternalResponseOfListBlobHierarchy)(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name),tags:(0,M.toTags)(e.blobTags),objectReplicationSourceProperties:(0,M.parseObjectReplicationRecord)(e.objectReplicationMetadata)};return t})),blobPrefixes:o.segment.blobPrefixes?.map((e=>{const t={...e,name:(0,M.BlobNameToString)(e.name)};return t}))}};return d}))}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listBlobFlatSegment(e,t);e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const n={...e,...t.length>0?{include:t}:{}};const i=this.listItems(n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async*listHierarchySegments(e,t,n={}){let i;if(!!t||t===undefined){do{i=await this.listBlobHierarchySegment(e,t,n);t=i.continuationToken;yield await i}while(t)}}async*listItemsByHierarchy(e,t={}){let n;for await(const i of this.listHierarchySegments(e,n,t)){const e=i.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const n=[];if(t.includeCopy){n.push("copy")}if(t.includeDeleted){n.push("deleted")}if(t.includeMetadata){n.push("metadata")}if(t.includeSnapshots){n.push("snapshots")}if(t.includeVersions){n.push("versions")}if(t.includeUncommitedBlobs){n.push("uncommittedblobs")}if(t.includeTags){n.push("tags")}if(t.includeDeletedWithVersions){n.push("deletedwithversions")}if(t.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(t.includeLegalHold){n.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const i={...t,...n.length>0?{include:n}:{}};const o=this.listItemsByHierarchy(e,i);return{async next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...i})}}async findBlobsByTagsSegment(e,t,n={}){return D.tracingClient.withSpan("ContainerClient-findBlobsByTagsSegment",n,(async i=>{const o=(0,M.assertResponse)(await this.containerContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:i.tracingOptions}));const d={...o,_response:o._response,blobs:o.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:(0,M.toTags)(e.tags),tagValue:t}}))};return d}))}async*findBlobsByTagsSegments(e,t,n={}){let i;if(!!t||t===undefined){do{i=await this.findBlobsByTagsSegment(e,t,n);i.blobs=i.blobs||[];t=i.continuationToken;yield i}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const i of this.findBlobsByTagsSegments(e,n,t)){yield*i.blobs}}findBlobsByTags(e,t={}){const n={...t};const i=this.findBlobsByTagsItems(e,n);return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async getAccountInfo(e={}){return D.tracingClient.withSpan("ContainerClient-getAccountInfo",e,(async t=>(0,M.assertResponse)(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if((0,M.isIpEndpointStyle)(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},this.credential).toString();t((0,M.appendToURLQuery)(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof f.StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const i=(0,U.generateBlobSASQueryParameters)({containerName:this._containerName,...e},t,this.accountName).toString();n((0,M.appendToURLQuery)(this.url,i))}))}generateUserDelegationSasStringToSign(e,t){return(0,U.generateBlobSASQueryParametersInternal)({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new K.BlobBatchClient(this.url,this.pipeline)}}t.ContainerClient=ContainerClient},95302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeResponseFromModel=rangeResponseFromModel;function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const n=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}},25984:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Pipeline=t.StorageOAuthScopes=void 0;t.isPipelineLike=isPipelineLike;t.newPipeline=newPipeline;t.getCoreClientOptions=getCoreClientOptions;t.getCredentialFromPipeline=getCredentialFromPipeline;const i=n(61584);const o=n(20778);const d=n(60160);const p=n(78756);const f=n(50417);const y=n(46370);const v=n(98335);const D=n(68999);const M=n(35345);const U=n(27323);Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return U.StorageOAuthScopes}});const V=n(51382);const j=n(490);const K=n(31160);const ee=n(97999);const te=n(31821);const re=n(99359);function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}t.Pipeline=Pipeline;function newPipeline(e,t={}){if(!e){e=new M.AnonymousCredential}const n=new Pipeline([],t);n._credential=e;return n}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const n=e.factories.filter((e=>!t.some((t=>t(e)))));if(n.length){const e=n.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:(0,i.createRequestPolicyFactoryPolicy)(n),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...n}=e.options;let v=e._coreHttpClient;if(!v){v=t?(0,i.convertHttpClient)(t):(0,V.getCachedDefaultHttpClient)();e._coreHttpClient=v}let M=e._corePipeline;if(!M){const t=`azsdk-js-azure-storage-blob/${U.SDK_VERSION}`;const i=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;M=(0,d.createClientPipeline)({...n,loggingOptions:{additionalAllowedHeaderNames:U.StorageBlobLoggingAllowedHeaderNames,additionalAllowedQueryParameters:U.StorageBlobLoggingAllowedQueryParameters,logger:y.logger.info},userAgentOptions:{userAgentPrefix:i},serializationOptions:{stringifyXML:p.stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:p.parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});M.removePolicy({phase:"Retry"});M.removePolicy({name:o.decompressResponsePolicyName});M.addPolicy((0,re.storageCorrectContentLengthPolicy)());M.addPolicy((0,K.storageRetryPolicy)(n.retryOptions),{phase:"Retry"});M.addPolicy((0,j.storageBrowserPolicy)());const v=processDownlevelPipeline(e);if(v){M.addPolicy(v.wrappedPolicies,v.afterRetry?{afterPhase:"Retry"}:undefined)}const V=getCredentialFromPipeline(e);if((0,f.isTokenCredential)(V)){M.addPolicy((0,o.bearerTokenAuthenticationPolicy)({credential:V,scopes:n.audience??U.StorageOAuthScopes,challengeCallbacks:{authorizeRequestOnChallenge:d.authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(V instanceof D.StorageSharedKeyCredential){M.addPolicy((0,ee.storageSharedKeyCredentialPolicy)({accountName:V.accountName,accountKey:V.accountKey}),{phase:"Sign"})}e._corePipeline=M}return{...n,allowInsecureConnection:true,httpClient:v,pipeline:M}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new M.AnonymousCredential;for(const n of e.factories){if((0,f.isTokenCredential)(n.credential)){t=n.credential}else if(isStorageSharedKeyCredential(n)){return n}}return t}function isStorageSharedKeyCredential(e){if(e instanceof D.StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof M.AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return(0,f.isTokenCredential)(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof te.StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof v.StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const n={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const i={log(e,t){},shouldLog(e){return false}};const o=e.create(n,i);const d=o.constructor.name;return t.some((e=>d.startsWith(e)))}},52045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rangeToString=rangeToString;function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}},31821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const i=n(78654);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return i.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new i.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},73542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=n(53789);const o=n(25984);const d=n(47764);class StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=(0,d.escapeURLPath)(e);this.accountName=(0,d.getAccountNameFromUrl)(e);this.pipeline=t;this.storageClientContext=new i.StorageContextClient(this.url,(0,o.getCoreClientOptions)(t));this.isHttps=(0,d.iEqual)((0,d.getURLScheme)(this.url)||"","https");this.credential=(0,o.getCredentialFromPipeline)(t);const n=this.storageClientContext;n.requestContentType=undefined}}t.StorageClient=StorageClient},53789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageContextClient=void 0;const i=n(30247);class StorageContextClient extends i.StorageClient{async sendOperationRequest(e,t){const n={...t};if(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}"){n.path=""}return super.sendOperationRequest(e,n)}}t.StorageContextClient=StorageContextClient},98335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const i=n(57996);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return i.StorageRetryPolicy}});const o=n(16308);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return o.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new i.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},35345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const i=n(13501);const o=n(52596);class AnonymousCredential extends o.Credential{create(e,t){return new i.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},52596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},68999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const i=n(77598);const o=n(45511);const d=n(52596);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new o.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},10992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserDelegationKeyCredential=void 0;const i=n(77598);class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}t.UserDelegationKeyCredential=UserDelegationKeyCredential},30247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=n(61860);i.__exportStar(n(12362),t);var o=n(5313);Object.defineProperty(t,"StorageClient",{enumerable:true,get:function(){return o.StorageClient}});i.__exportStar(n(82354),t)},12362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownStorageErrorCode=t.KnownBlobExpiryOptions=t.KnownFileShareTokenIntent=t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}));var i;(function(e){e["Backup"]="backup"})(i||(t.KnownFileShareTokenIntent=i={}));var o;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(o||(t.KnownBlobExpiryOptions=o={}));var d;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(d||(t.KnownStorageErrorCode=d={}))},84424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceGetUserDelegationKeyHeaders=t.ServiceListContainersSegmentExceptionHeaders=t.ServiceListContainersSegmentHeaders=t.ServiceGetStatisticsExceptionHeaders=t.ServiceGetStatisticsHeaders=t.ServiceGetPropertiesExceptionHeaders=t.ServiceGetPropertiesHeaders=t.ServiceSetPropertiesExceptionHeaders=t.ServiceSetPropertiesHeaders=t.ArrowField=t.ArrowConfiguration=t.JsonTextConfiguration=t.DelimitedTextConfiguration=t.QueryFormat=t.QuerySerialization=t.QueryRequest=t.ClearRange=t.PageRange=t.PageList=t.Block=t.BlockList=t.BlockLookupList=t.BlobPrefix=t.BlobHierarchyListSegment=t.ListBlobsHierarchySegmentResponse=t.BlobPropertiesInternal=t.BlobName=t.BlobItemInternal=t.BlobFlatListSegment=t.ListBlobsFlatSegmentResponse=t.AccessPolicy=t.SignedIdentifier=t.BlobTag=t.BlobTags=t.FilterBlobItem=t.FilterBlobSegment=t.UserDelegationKey=t.KeyInfo=t.ContainerProperties=t.ContainerItem=t.ListContainersSegmentResponse=t.GeoReplication=t.BlobServiceStatistics=t.StorageError=t.StaticWebsite=t.CorsRule=t.Metrics=t.RetentionPolicy=t.Logging=t.BlobServiceProperties=void 0;t.BlobUndeleteHeaders=t.BlobDeleteExceptionHeaders=t.BlobDeleteHeaders=t.BlobGetPropertiesExceptionHeaders=t.BlobGetPropertiesHeaders=t.BlobDownloadExceptionHeaders=t.BlobDownloadHeaders=t.ContainerGetAccountInfoExceptionHeaders=t.ContainerGetAccountInfoHeaders=t.ContainerListBlobHierarchySegmentExceptionHeaders=t.ContainerListBlobHierarchySegmentHeaders=t.ContainerListBlobFlatSegmentExceptionHeaders=t.ContainerListBlobFlatSegmentHeaders=t.ContainerChangeLeaseExceptionHeaders=t.ContainerChangeLeaseHeaders=t.ContainerBreakLeaseExceptionHeaders=t.ContainerBreakLeaseHeaders=t.ContainerRenewLeaseExceptionHeaders=t.ContainerRenewLeaseHeaders=t.ContainerReleaseLeaseExceptionHeaders=t.ContainerReleaseLeaseHeaders=t.ContainerAcquireLeaseExceptionHeaders=t.ContainerAcquireLeaseHeaders=t.ContainerFilterBlobsExceptionHeaders=t.ContainerFilterBlobsHeaders=t.ContainerSubmitBatchExceptionHeaders=t.ContainerSubmitBatchHeaders=t.ContainerRenameExceptionHeaders=t.ContainerRenameHeaders=t.ContainerRestoreExceptionHeaders=t.ContainerRestoreHeaders=t.ContainerSetAccessPolicyExceptionHeaders=t.ContainerSetAccessPolicyHeaders=t.ContainerGetAccessPolicyExceptionHeaders=t.ContainerGetAccessPolicyHeaders=t.ContainerSetMetadataExceptionHeaders=t.ContainerSetMetadataHeaders=t.ContainerDeleteExceptionHeaders=t.ContainerDeleteHeaders=t.ContainerGetPropertiesExceptionHeaders=t.ContainerGetPropertiesHeaders=t.ContainerCreateExceptionHeaders=t.ContainerCreateHeaders=t.ServiceFilterBlobsExceptionHeaders=t.ServiceFilterBlobsHeaders=t.ServiceSubmitBatchExceptionHeaders=t.ServiceSubmitBatchHeaders=t.ServiceGetAccountInfoExceptionHeaders=t.ServiceGetAccountInfoHeaders=t.ServiceGetUserDelegationKeyExceptionHeaders=void 0;t.PageBlobGetPageRangesHeaders=t.PageBlobUploadPagesFromURLExceptionHeaders=t.PageBlobUploadPagesFromURLHeaders=t.PageBlobClearPagesExceptionHeaders=t.PageBlobClearPagesHeaders=t.PageBlobUploadPagesExceptionHeaders=t.PageBlobUploadPagesHeaders=t.PageBlobCreateExceptionHeaders=t.PageBlobCreateHeaders=t.BlobSetTagsExceptionHeaders=t.BlobSetTagsHeaders=t.BlobGetTagsExceptionHeaders=t.BlobGetTagsHeaders=t.BlobQueryExceptionHeaders=t.BlobQueryHeaders=t.BlobGetAccountInfoExceptionHeaders=t.BlobGetAccountInfoHeaders=t.BlobSetTierExceptionHeaders=t.BlobSetTierHeaders=t.BlobAbortCopyFromURLExceptionHeaders=t.BlobAbortCopyFromURLHeaders=t.BlobCopyFromURLExceptionHeaders=t.BlobCopyFromURLHeaders=t.BlobStartCopyFromURLExceptionHeaders=t.BlobStartCopyFromURLHeaders=t.BlobCreateSnapshotExceptionHeaders=t.BlobCreateSnapshotHeaders=t.BlobBreakLeaseExceptionHeaders=t.BlobBreakLeaseHeaders=t.BlobChangeLeaseExceptionHeaders=t.BlobChangeLeaseHeaders=t.BlobRenewLeaseExceptionHeaders=t.BlobRenewLeaseHeaders=t.BlobReleaseLeaseExceptionHeaders=t.BlobReleaseLeaseHeaders=t.BlobAcquireLeaseExceptionHeaders=t.BlobAcquireLeaseHeaders=t.BlobSetMetadataExceptionHeaders=t.BlobSetMetadataHeaders=t.BlobSetLegalHoldExceptionHeaders=t.BlobSetLegalHoldHeaders=t.BlobDeleteImmutabilityPolicyExceptionHeaders=t.BlobDeleteImmutabilityPolicyHeaders=t.BlobSetImmutabilityPolicyExceptionHeaders=t.BlobSetImmutabilityPolicyHeaders=t.BlobSetHttpHeadersExceptionHeaders=t.BlobSetHttpHeadersHeaders=t.BlobSetExpiryExceptionHeaders=t.BlobSetExpiryHeaders=t.BlobUndeleteExceptionHeaders=void 0;t.BlockBlobGetBlockListExceptionHeaders=t.BlockBlobGetBlockListHeaders=t.BlockBlobCommitBlockListExceptionHeaders=t.BlockBlobCommitBlockListHeaders=t.BlockBlobStageBlockFromURLExceptionHeaders=t.BlockBlobStageBlockFromURLHeaders=t.BlockBlobStageBlockExceptionHeaders=t.BlockBlobStageBlockHeaders=t.BlockBlobPutBlobFromUrlExceptionHeaders=t.BlockBlobPutBlobFromUrlHeaders=t.BlockBlobUploadExceptionHeaders=t.BlockBlobUploadHeaders=t.AppendBlobSealExceptionHeaders=t.AppendBlobSealHeaders=t.AppendBlobAppendBlockFromUrlExceptionHeaders=t.AppendBlobAppendBlockFromUrlHeaders=t.AppendBlobAppendBlockExceptionHeaders=t.AppendBlobAppendBlockHeaders=t.AppendBlobCreateExceptionHeaders=t.AppendBlobCreateHeaders=t.PageBlobCopyIncrementalExceptionHeaders=t.PageBlobCopyIncrementalHeaders=t.PageBlobUpdateSequenceNumberExceptionHeaders=t.PageBlobUpdateSequenceNumberHeaders=t.PageBlobResizeExceptionHeaders=t.PageBlobResizeHeaders=t.PageBlobGetPageRangesDiffExceptionHeaders=t.PageBlobGetPageRangesDiffHeaders=t.PageBlobGetPageRangesExceptionHeaders=void 0;t.BlobServiceProperties={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};t.Logging={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.RetentionPolicy={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};t.Metrics={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};t.CorsRule={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};t.StaticWebsite={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};t.StorageError={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};t.BlobServiceStatistics={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};t.GeoReplication={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};t.ListContainersSegmentResponse={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.ContainerItem={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};t.ContainerProperties={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};t.KeyInfo={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};t.UserDelegationKey={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.FilterBlobSegment={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.FilterBlobItem={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};t.BlobTags={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};t.BlobTag={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};t.SignedIdentifier={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};t.AccessPolicy={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};t.ListBlobsFlatSegmentResponse={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobFlatListSegment={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobItemInternal={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};t.BlobName={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};t.BlobPropertiesInternal={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};t.ListBlobsHierarchySegmentResponse={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.BlobHierarchyListSegment={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};t.BlobPrefix={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};t.BlockLookupList={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};t.BlockList={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};t.Block={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};t.PageList={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};t.PageRange={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.ClearRange={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};t.QueryRequest={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};t.QuerySerialization={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};t.QueryFormat={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};t.DelimitedTextConfiguration={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};t.JsonTextConfiguration={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};t.ArrowConfiguration={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};t.ArrowField={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};t.ServiceSetPropertiesHeaders={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSetPropertiesExceptionHeaders={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesHeaders={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetPropertiesExceptionHeaders={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsHeaders={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetStatisticsExceptionHeaders={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentHeaders={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceListContainersSegmentExceptionHeaders={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyHeaders={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetUserDelegationKeyExceptionHeaders={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoHeaders={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceGetAccountInfoExceptionHeaders={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchHeaders={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceSubmitBatchExceptionHeaders={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsHeaders={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ServiceFilterBlobsExceptionHeaders={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateHeaders={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerCreateExceptionHeaders={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesHeaders={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetPropertiesExceptionHeaders={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteHeaders={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerDeleteExceptionHeaders={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataHeaders={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetMetadataExceptionHeaders={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyHeaders={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccessPolicyExceptionHeaders={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyHeaders={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSetAccessPolicyExceptionHeaders={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreHeaders={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRestoreExceptionHeaders={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameHeaders={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenameExceptionHeaders={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerSubmitBatchHeaders={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};t.ContainerSubmitBatchExceptionHeaders={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerFilterBlobsHeaders={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerFilterBlobsExceptionHeaders={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerAcquireLeaseHeaders={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerAcquireLeaseExceptionHeaders={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerReleaseLeaseHeaders={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerReleaseLeaseExceptionHeaders={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerRenewLeaseHeaders={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerRenewLeaseExceptionHeaders={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerBreakLeaseHeaders={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerBreakLeaseExceptionHeaders={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerChangeLeaseHeaders={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.ContainerChangeLeaseExceptionHeaders={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentHeaders={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobFlatSegmentExceptionHeaders={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentHeaders={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerListBlobHierarchySegmentExceptionHeaders={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.ContainerGetAccountInfoHeaders={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.ContainerGetAccountInfoExceptionHeaders={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDownloadHeaders={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobDownloadExceptionHeaders={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesHeaders={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetPropertiesExceptionHeaders={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteHeaders={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteExceptionHeaders={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteHeaders={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobUndeleteExceptionHeaders={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetExpiryHeaders={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobSetExpiryExceptionHeaders={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersHeaders={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetHttpHeadersExceptionHeaders={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetImmutabilityPolicyHeaders={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};t.BlobSetImmutabilityPolicyExceptionHeaders={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobDeleteImmutabilityPolicyHeaders={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobDeleteImmutabilityPolicyExceptionHeaders={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetLegalHoldHeaders={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};t.BlobSetLegalHoldExceptionHeaders={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataHeaders={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetMetadataExceptionHeaders={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAcquireLeaseHeaders={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobAcquireLeaseExceptionHeaders={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobReleaseLeaseHeaders={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobReleaseLeaseExceptionHeaders={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobRenewLeaseHeaders={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobRenewLeaseExceptionHeaders={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobChangeLeaseHeaders={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobChangeLeaseExceptionHeaders={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobBreakLeaseHeaders={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};t.BlobBreakLeaseExceptionHeaders={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotHeaders={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCreateSnapshotExceptionHeaders={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLHeaders={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobStartCopyFromURLExceptionHeaders={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLHeaders={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobCopyFromURLExceptionHeaders={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLHeaders={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobAbortCopyFromURLExceptionHeaders={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierHeaders={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTierExceptionHeaders={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetAccountInfoHeaders={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};t.BlobGetAccountInfoExceptionHeaders={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobQueryHeaders={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};t.BlobQueryExceptionHeaders={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsHeaders={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobGetTagsExceptionHeaders={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsHeaders={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlobSetTagsExceptionHeaders={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateHeaders={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCreateExceptionHeaders={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesHeaders={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesExceptionHeaders={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesHeaders={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobClearPagesExceptionHeaders={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLHeaders={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUploadPagesFromURLExceptionHeaders={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesHeaders={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesExceptionHeaders={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffHeaders={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobGetPageRangesDiffExceptionHeaders={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeHeaders={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobResizeExceptionHeaders={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberHeaders={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobUpdateSequenceNumberExceptionHeaders={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalHeaders={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.PageBlobCopyIncrementalExceptionHeaders={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateHeaders={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobCreateExceptionHeaders={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockHeaders={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockExceptionHeaders={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlHeaders={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobAppendBlockFromUrlExceptionHeaders={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.AppendBlobSealHeaders={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};t.AppendBlobSealExceptionHeaders={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadHeaders={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobUploadExceptionHeaders={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlHeaders={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobPutBlobFromUrlExceptionHeaders={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockHeaders={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockExceptionHeaders={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLHeaders={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobStageBlockFromURLExceptionHeaders={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListHeaders={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobCommitBlockListExceptionHeaders={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListHeaders={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};t.BlockBlobGetBlockListExceptionHeaders={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}}},6088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.action3=t.action2=t.leaseId1=t.action1=t.proposedLeaseId=t.duration=t.action=t.comp10=t.sourceLeaseId=t.sourceContainerName=t.comp9=t.deletedContainerVersion=t.deletedContainerName=t.comp8=t.containerAcl=t.comp7=t.comp6=t.ifUnmodifiedSince=t.ifModifiedSince=t.leaseId=t.preventEncryptionScopeOverride=t.defaultEncryptionScope=t.access=t.metadata=t.restype2=t.where=t.comp5=t.multipartContentType=t.contentLength=t.comp4=t.body=t.restype1=t.comp3=t.keyInfo=t.include=t.maxPageSize=t.marker=t.prefix=t.comp2=t.comp1=t.accept1=t.requestId=t.version=t.timeoutInSeconds=t.comp=t.restype=t.url=t.accept=t.blobServiceProperties=t.contentType=void 0;t.fileRequestIntent=t.copySourceTags=t.copySourceAuthorization=t.sourceContentMD5=t.xMsRequiresSync=t.legalHold1=t.sealBlob=t.blobTagsString=t.copySource=t.sourceIfTags=t.sourceIfNoneMatch=t.sourceIfMatch=t.sourceIfUnmodifiedSince=t.sourceIfModifiedSince=t.rehydratePriority=t.tier=t.comp14=t.encryptionScope=t.legalHold=t.comp13=t.immutabilityPolicyMode=t.immutabilityPolicyExpiry=t.comp12=t.blobContentDisposition=t.blobContentLanguage=t.blobContentEncoding=t.blobContentMD5=t.blobContentType=t.blobCacheControl=t.expiresOn=t.expiryOptions=t.comp11=t.blobDeleteType=t.deleteSnapshots=t.ifTags=t.ifNoneMatch=t.ifMatch=t.encryptionAlgorithm=t.encryptionKeySha256=t.encryptionKey=t.rangeGetContentCRC64=t.rangeGetContentMD5=t.range=t.versionId=t.snapshot=t.delimiter=t.include1=t.proposedLeaseId1=t.action4=t.breakPeriod=void 0;t.listType=t.comp25=t.blocks=t.blockId=t.comp24=t.copySourceBlobProperties=t.blobType2=t.comp23=t.sourceRange1=t.appendPosition=t.maxSize=t.comp22=t.blobType1=t.comp21=t.sequenceNumberAction=t.prevSnapshotUrl=t.prevsnapshot=t.comp20=t.range1=t.sourceContentCrc64=t.sourceRange=t.sourceUrl=t.pageWrite1=t.ifSequenceNumberEqualTo=t.ifSequenceNumberLessThan=t.ifSequenceNumberLessThanOrEqualTo=t.pageWrite=t.comp19=t.accept2=t.body1=t.contentType1=t.blobSequenceNumber=t.blobContentLength=t.blobType=t.transactionalContentCrc64=t.transactionalContentMD5=t.tags=t.comp18=t.comp17=t.queryRequest=t.tier1=t.comp16=t.copyId=t.copyActionAbortConstant=t.comp15=void 0;const i=n(84424);t.contentType={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.blobServiceProperties={parameterPath:"blobServiceProperties",mapper:i.BlobServiceProperties};t.accept={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.url={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};t.restype={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.comp={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.timeoutInSeconds={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};t.version={parameterPath:"version",mapper:{defaultValue:"2025-07-05",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};t.requestId={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};t.accept1={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp1={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp2={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prefix={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};t.marker={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};t.maxPageSize={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};t.include={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};t.keyInfo={parameterPath:"keyInfo",mapper:i.KeyInfo};t.comp3={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.restype1={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.body={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.comp4={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.contentLength={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};t.multipartContentType={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};t.comp5={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.where={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};t.restype2={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};t.metadata={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};t.access={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};t.defaultEncryptionScope={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};t.preventEncryptionScopeOverride={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};t.leaseId={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};t.ifModifiedSince={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};t.ifUnmodifiedSince={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};t.comp6={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp7={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.containerAcl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};t.comp8={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.deletedContainerName={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};t.deletedContainerVersion={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};t.comp9={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.sourceContainerName={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};t.sourceLeaseId={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};t.comp10={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.action={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.duration={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};t.proposedLeaseId={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.action1={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.leaseId1={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};t.action2={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.action3={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.breakPeriod={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};t.action4={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};t.proposedLeaseId1={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};t.include1={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};t.delimiter={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};t.snapshot={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};t.versionId={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};t.range={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};t.rangeGetContentMD5={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};t.rangeGetContentCRC64={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};t.encryptionKey={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};t.encryptionKeySha256={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};t.encryptionAlgorithm={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};t.ifMatch={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};t.ifNoneMatch={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};t.ifTags={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};t.deleteSnapshots={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};t.blobDeleteType={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};t.comp11={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.expiryOptions={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};t.expiresOn={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};t.blobCacheControl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};t.blobContentType={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};t.blobContentMD5={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};t.blobContentEncoding={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};t.blobContentLanguage={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};t.blobContentDisposition={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};t.comp12={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.immutabilityPolicyExpiry={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};t.immutabilityPolicyMode={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};t.comp13={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.legalHold={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.encryptionScope={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};t.comp14={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.rehydratePriority={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};t.sourceIfModifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfUnmodifiedSince={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};t.sourceIfMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};t.sourceIfNoneMatch={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};t.sourceIfTags={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};t.copySource={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.blobTagsString={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};t.sealBlob={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};t.legalHold1={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};t.xMsRequiresSync={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};t.sourceContentMD5={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};t.copySourceAuthorization={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};t.copySourceTags={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};t.fileRequestIntent={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};t.comp15={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.copyActionAbortConstant={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};t.copyId={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};t.comp16={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tier1={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};t.queryRequest={parameterPath:["options","queryRequest"],mapper:i.QueryRequest};t.comp17={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.comp18={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.tags={parameterPath:["options","tags"],mapper:i.BlobTags};t.transactionalContentMD5={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};t.transactionalContentCrc64={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};t.blobType={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.blobContentLength={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};t.blobSequenceNumber={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};t.contentType1={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};t.body1={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};t.accept2={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};t.comp19={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.pageWrite={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.ifSequenceNumberLessThanOrEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};t.ifSequenceNumberLessThan={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};t.ifSequenceNumberEqualTo={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};t.pageWrite1={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};t.sourceUrl={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};t.sourceRange={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};t.sourceContentCrc64={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};t.range1={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};t.comp20={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.prevsnapshot={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};t.prevSnapshotUrl={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};t.sequenceNumberAction={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};t.comp21={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType1={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.comp22={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.maxSize={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};t.appendPosition={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};t.sourceRange1={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};t.comp23={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blobType2={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};t.copySourceBlobProperties={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};t.comp24={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.blockId={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};t.blocks={parameterPath:"blocks",mapper:i.BlockLookupList};t.comp25={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};t.listType={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}},40535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AppendBlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},y)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},D)}seal(e){return this.client.sendOperationRequest({options:e},M)}}t.AppendBlobImpl=AppendBlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.blobTagsString,p.legalHold1,p.blobType1],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.maxSize,p.appendPosition],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.AppendBlobAppendBlockFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobAppendBlockFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp22],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.transactionalContentMD5,p.sourceUrl,p.sourceContentCrc64,p.maxSize,p.appendPosition,p.sourceRange1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.AppendBlobSealHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.AppendBlobSealExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp23],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.appendPosition],isXML:true,serializer:f}},57559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}undelete(e){return this.client.sendOperationRequest({options:e},M)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},U)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},V)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},j)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},K)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},ee)}setMetadata(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ie)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},oe)}breakLease(e){return this.client.sendOperationRequest({options:e},se)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ae)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Ae)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ce)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},le)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},ue)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},de)}query(e){return this.client.sendOperationRequest({options:e},pe)}getTags(e){return this.client.sendOperationRequest({options:e},ge)}setTags(e){return this.client.sendOperationRequest({options:e},me)}}t.BlobImpl=BlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobDownloadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDownloadExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.rangeGetContentMD5,p.rangeGetContentCRC64,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:d.BlobGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:d.BlobDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.blobDeleteType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.deleteSnapshots],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobUndeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobUndeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetExpiryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetExpiryExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp11],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.expiryOptions,p.expiresOn],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetHttpHeadersHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetHttpHeadersExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifUnmodifiedSince,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:d.BlobDeleteImmutabilityPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobDeleteImmutabilityPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp12],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetLegalHoldHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetLegalHoldExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp13],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.legalHold],isXML:true,serializer:f};const te={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const re={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ne={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ie={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const oe={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const se={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlobCreateSnapshotHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCreateSnapshotExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp14],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope],isXML:true,serializer:f};const Ae={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobStartCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobStartCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.tier,p.rehydratePriority,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sealBlob,p.legalHold1],isXML:true,serializer:f};const ce={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.BlobCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.copySource,p.blobTagsString,p.legalHold1,p.xMsRequiresSync,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent],isXML:true,serializer:f};const le={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobAbortCopyFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobAbortCopyFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp15,p.copyId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.copyActionAbortConstant],isXML:true,serializer:f};const ue={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.BlobSetTierHeaders},202:{headersMapper:d.BlobSetTierHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTierExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp16],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags,p.rehydratePriority,p.tier1],isXML:true,serializer:f};const de={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:d.BlobGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const pe={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.BlobQueryHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobQueryExceptionHeaders}},requestBody:p.queryRequest,queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp17],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const ge={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobTags,headersMapper:d.BlobGetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobGetTagsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f};const me={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:d.BlobSetTagsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlobSetTagsExceptionHeaders}},requestBody:p.tags,queryParameters:[p.timeoutInSeconds,p.versionId,p.comp18],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.leaseId,p.ifTags,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f}},95440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockBlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},y)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},v)}stageBlock(e,t,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:i},D)}stageBlockFromURL(e,t,n,i){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:i},M)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},U)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},V)}}t.BlockBlobImpl=BlockBlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobUploadHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobUploadExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.blobType2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobPutBlobFromUrlHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobPutBlobFromUrlExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.encryptionScope,p.tier,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceIfTags,p.copySource,p.blobTagsString,p.sourceContentMD5,p.copySourceAuthorization,p.copySourceTags,p.fileRequestIntent,p.transactionalContentMD5,p.blobType2,p.copySourceBlobProperties],isXML:true,serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobStageBlockFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobStageBlockFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp24,p.blockId],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.sourceUrl,p.sourceContentCrc64,p.sourceRange1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.BlockBlobCommitBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobCommitBlockListExceptionHeaders}},requestBody:p.blocks,queryParameters:[p.timeoutInSeconds,p.comp25],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.transactionalContentMD5,p.transactionalContentCrc64],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.BlockList,headersMapper:d.BlockBlobGetBlockListHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.BlockBlobGetBlockListExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.snapshot,p.comp25,p.listType],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifTags],isXML:true,serializer:f}},14509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}delete(e){return this.client.sendOperationRequest({options:e},D)}setMetadata(e){return this.client.sendOperationRequest({options:e},M)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},U)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},V)}restore(e){return this.client.sendOperationRequest({options:e},j)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},K)}submitBatch(e,t,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:i},ee)}filterBlobs(e){return this.client.sendOperationRequest({options:e},te)}acquireLease(e){return this.client.sendOperationRequest({options:e},re)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ne)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},ie)}breakLease(e){return this.client.sendOperationRequest({options:e},oe)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},se)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ae)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Ae)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ce)}}t.ContainerImpl=ContainerImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.access,p.defaultEncryptionScope,p.preventEncryptionScopeOverride],isXML:true,serializer:f};const v={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetPropertiesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const D={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:d.ContainerDeleteHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerDeleteExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,serializer:f};const M={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetMetadataHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetMetadataExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp6],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.metadata,p.leaseId,p.ifModifiedSince],isXML:true,serializer:f};const U={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:d.ContainerGetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccessPolicyExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId],isXML:true,serializer:f};const V={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerSetAccessPolicyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSetAccessPolicyExceptionHeaders}},requestBody:p.containerAcl,queryParameters:[p.timeoutInSeconds,p.restype2,p.comp7],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId,p.access,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const j={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerRestoreHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRestoreExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp8],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.deletedContainerName,p.deletedContainerVersion],isXML:true,serializer:f};const K={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenameHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenameExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp9],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.sourceContainerName,p.sourceLeaseId],isXML:true,serializer:f};const ee={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ContainerSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4,p.restype2],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const te={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ContainerFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where,p.restype2],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const re={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:d.ContainerAcquireLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerAcquireLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action,p.duration,p.proposedLeaseId],isXML:true,serializer:f};const ne={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerReleaseLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerReleaseLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action1,p.leaseId1],isXML:true,serializer:f};const ie={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerRenewLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerRenewLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action2],isXML:true,serializer:f};const oe={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:d.ContainerBreakLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerBreakLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.action3,p.breakPeriod],isXML:true,serializer:f};const se={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d.ContainerChangeLeaseHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerChangeLeaseExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.restype2,p.comp10],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.leaseId1,p.action4,p.proposedLeaseId1],isXML:true,serializer:f};const ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsFlatSegmentResponse,headersMapper:d.ContainerListBlobFlatSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobFlatSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const Ae={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:d.ListBlobsHierarchySegmentResponse,headersMapper:d.ContainerListBlobHierarchySegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerListBlobHierarchySegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.restype2,p.include1,p.delimiter],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const ce={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:d.ContainerGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ContainerGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},37878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(61860);i.__exportStar(n(44181),t);i.__exportStar(n(14509),t);i.__exportStar(n(57559),t);i.__exportStar(n(69156),t);i.__exportStar(n(40535),t);i.__exportStar(n(95440),t)},69156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PageBlobImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},y)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},v)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},D)}uploadPagesFromURL(e,t,n,i,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:i,options:o},M)}getPageRanges(e){return this.client.sendOperationRequest({options:e},U)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},V)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},j)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},K)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},ee)}}t.PageBlobImpl=PageBlobImpl;const f=o.createSerializer(d,true);const y={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobCreateHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCreateExceptionHeaders}},queryParameters:[p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.metadata,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobCacheControl,p.blobContentType,p.blobContentMD5,p.blobContentEncoding,p.blobContentLanguage,p.blobContentDisposition,p.immutabilityPolicyExpiry,p.immutabilityPolicyMode,p.encryptionScope,p.tier,p.blobTagsString,p.legalHold1,p.blobType,p.blobContentLength,p.blobSequenceNumber],isXML:true,serializer:f};const v={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesExceptionHeaders}},requestBody:p.body1,queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.transactionalContentMD5,p.transactionalContentCrc64,p.contentType1,p.accept2,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:f};const D={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobClearPagesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobClearPagesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.pageWrite1],isXML:true,serializer:f};const M={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:d.PageBlobUploadPagesFromURLHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUploadPagesFromURLExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp19],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.contentLength,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.sourceIfModifiedSince,p.sourceIfUnmodifiedSince,p.sourceIfMatch,p.sourceIfNoneMatch,p.sourceContentMD5,p.copySourceAuthorization,p.fileRequestIntent,p.pageWrite,p.ifSequenceNumberLessThanOrEqualTo,p.ifSequenceNumberLessThan,p.ifSequenceNumberEqualTo,p.sourceUrl,p.sourceRange,p.sourceContentCrc64,p.range1],isXML:true,serializer:f};const U={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags],isXML:true,serializer:f};const V={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:d.PageList,headersMapper:d.PageBlobGetPageRangesDiffHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobGetPageRangesDiffExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.snapshot,p.comp20,p.prevsnapshot],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.range,p.ifMatch,p.ifNoneMatch,p.ifTags,p.prevSnapshotUrl],isXML:true,serializer:f};const j={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobResizeHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobResizeExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.encryptionKey,p.encryptionKeySha256,p.encryptionAlgorithm,p.ifMatch,p.ifNoneMatch,p.ifTags,p.encryptionScope,p.blobContentLength],isXML:true,serializer:f};const K={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:d.PageBlobUpdateSequenceNumberHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobUpdateSequenceNumberExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.leaseId,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.blobSequenceNumber,p.sequenceNumberAction],isXML:true,serializer:f};const ee={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:d.PageBlobCopyIncrementalHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.PageBlobCopyIncrementalExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp21],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1,p.ifModifiedSince,p.ifUnmodifiedSince,p.ifMatch,p.ifNoneMatch,p.ifTags,p.copySource],isXML:true,serializer:f}},44181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceImpl=void 0;const i=n(61860);const o=i.__importStar(n(60160));const d=i.__importStar(n(84424));const p=i.__importStar(n(6088));class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},y)}getProperties(e){return this.client.sendOperationRequest({options:e},v)}getStatistics(e){return this.client.sendOperationRequest({options:e},D)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},M)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},U)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},V)}submitBatch(e,t,n,i){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:i},j)}filterBlobs(e){return this.client.sendOperationRequest({options:e},K)}}t.ServiceImpl=ServiceImpl;const f=o.createSerializer(d,true);const y={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:d.ServiceSetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSetPropertiesExceptionHeaders}},requestBody:p.blobServiceProperties,queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const v={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceProperties,headersMapper:d.ServiceGetPropertiesHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetPropertiesExceptionHeaders}},queryParameters:[p.restype,p.comp,p.timeoutInSeconds],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const D={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.BlobServiceStatistics,headersMapper:d.ServiceGetStatisticsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetStatisticsExceptionHeaders}},queryParameters:[p.restype,p.timeoutInSeconds,p.comp1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const M={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.ListContainersSegmentResponse,headersMapper:d.ServiceListContainersSegmentHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceListContainersSegmentExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.comp2,p.prefix,p.marker,p.maxPageSize,p.include],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const U={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:d.UserDelegationKey,headersMapper:d.ServiceGetUserDelegationKeyHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetUserDelegationKeyExceptionHeaders}},requestBody:p.keyInfo,queryParameters:[p.restype,p.timeoutInSeconds,p.comp3],urlParameters:[p.url],headerParameters:[p.contentType,p.accept,p.version,p.requestId],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const V={path:"/",httpMethod:"GET",responses:{200:{headersMapper:d.ServiceGetAccountInfoHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceGetAccountInfoExceptionHeaders}},queryParameters:[p.comp,p.timeoutInSeconds,p.restype1],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f};const j={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:d.ServiceSubmitBatchHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceSubmitBatchExceptionHeaders}},requestBody:p.body,queryParameters:[p.timeoutInSeconds,p.comp4],urlParameters:[p.url],headerParameters:[p.accept,p.version,p.requestId,p.contentLength,p.multipartContentType],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:f};const K={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:d.FilterBlobSegment,headersMapper:d.ServiceFilterBlobsHeaders},default:{bodyMapper:d.StorageError,headersMapper:d.ServiceFilterBlobsExceptionHeaders}},queryParameters:[p.timeoutInSeconds,p.marker,p.maxPageSize,p.comp5,p.where],urlParameters:[p.url],headerParameters:[p.version,p.requestId,p.accept1],isXML:true,serializer:f}},56635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},68355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},17188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},15337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},82354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(61860);i.__exportStar(n(26865),t);i.__exportStar(n(15337),t);i.__exportStar(n(68355),t);i.__exportStar(n(14400),t);i.__exportStar(n(56635),t);i.__exportStar(n(17188),t)},14400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26865:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},5313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageClient=void 0;const i=n(61860);const o=i.__importStar(n(61584));const d=n(37878);class StorageClient extends o.ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const n={requestContentType:"application/json; charset=utf-8"};const i=`azsdk-js-azure-storage-blob/12.28.0`;const o=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;const p={...n,...t,userAgentOptions:{userAgentPrefix:o},endpoint:t.endpoint??t.baseUri??"{url}"};super(p);this.url=e;this.version=t.version||"2025-07-05";this.service=new d.ServiceImpl(this);this.container=new d.ContainerImpl(this);this.blob=new d.BlobImpl(this);this.pageBlob=new d.PageBlobImpl(this);this.appendBlob=new d.AppendBlobImpl(this);this.blockBlob=new d.BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}t.StorageClient=StorageClient},83627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KnownEncryptionAlgorithmType=void 0;var n;(function(e){e["AES256"]="AES256"})(n||(t.KnownEncryptionAlgorithmType=n={}))},71400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=t.RestError=t.BaseRequestPolicy=t.StorageOAuthScopes=t.newPipeline=t.isPipelineLike=t.Pipeline=t.getBlobServiceAccountAudience=t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=t.generateBlobSASQueryParameters=t.generateAccountSASQueryParameters=void 0;const i=n(61860);const o=n(20778);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return o.RestError}});i.__exportStar(n(96341),t);i.__exportStar(n(90372),t);i.__exportStar(n(81884),t);i.__exportStar(n(23276),t);i.__exportStar(n(6358),t);i.__exportStar(n(91267),t);i.__exportStar(n(46940),t);var d=n(85238);Object.defineProperty(t,"generateAccountSASQueryParameters",{enumerable:true,get:function(){return d.generateAccountSASQueryParameters}});i.__exportStar(n(95561),t);i.__exportStar(n(12094),t);i.__exportStar(n(48175),t);i.__exportStar(n(2232),t);var p=n(656);Object.defineProperty(t,"generateBlobSASQueryParameters",{enumerable:true,get:function(){return p.generateBlobSASQueryParameters}});i.__exportStar(n(31821),t);i.__exportStar(n(51622),t);i.__exportStar(n(35345),t);i.__exportStar(n(52596),t);i.__exportStar(n(68999),t);var f=n(58560);Object.defineProperty(t,"BlockBlobTier",{enumerable:true,get:function(){return f.BlockBlobTier}});Object.defineProperty(t,"PremiumPageBlobTier",{enumerable:true,get:function(){return f.PremiumPageBlobTier}});Object.defineProperty(t,"StorageBlobAudience",{enumerable:true,get:function(){return f.StorageBlobAudience}});Object.defineProperty(t,"getBlobServiceAccountAudience",{enumerable:true,get:function(){return f.getBlobServiceAccountAudience}});var y=n(25984);Object.defineProperty(t,"Pipeline",{enumerable:true,get:function(){return y.Pipeline}});Object.defineProperty(t,"isPipelineLike",{enumerable:true,get:function(){return y.isPipelineLike}});Object.defineProperty(t,"newPipeline",{enumerable:true,get:function(){return y.newPipeline}});Object.defineProperty(t,"StorageOAuthScopes",{enumerable:true,get:function(){return y.StorageOAuthScopes}});i.__exportStar(n(98335),t);var v=n(70336);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return v.BaseRequestPolicy}});i.__exportStar(n(13501),t);i.__exportStar(n(63064),t);i.__exportStar(n(98335),t);i.__exportStar(n(45511),t);i.__exportStar(n(26823),t);i.__exportStar(n(83627),t);var D=n(46370);Object.defineProperty(t,"logger",{enumerable:true,get:function(){return D.logger}})},11326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AVRO_SCHEMA_KEY=t.AVRO_CODEC_KEY=t.AVRO_INIT_BYTES=t.AVRO_SYNC_MARKER_SIZE=void 0;t.AVRO_SYNC_MARKER_SIZE=16;t.AVRO_INIT_BYTES=new Uint8Array([79,98,106,1]);t.AVRO_CODEC_KEY="avro.codec";t.AVRO_SCHEMA_KEY="avro.schema"},35652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroType=t.AvroParser=void 0;class AvroParser{static async readFixedBytes(e,t,n={}){const i=await e.read(t,{abortSignal:n.abortSignal});if(i.length!==t){throw new Error("Hit stream end.")}return i}static async readByte(e,t={}){const n=await AvroParser.readFixedBytes(e,1,t);return n[0]}static async readZigZagLong(e,t={}){let n=0;let i=0;let o,d,p;do{o=await AvroParser.readByte(e,t);d=o&128;n|=(o&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return i}return n>>1^-(n&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const n=await AvroParser.readByte(e,t);if(n===1){return true}else if(n===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const n=await AvroParser.readFixedBytes(e,4,t);const i=new DataView(n.buffer,n.byteOffset,n.byteLength);return i.getFloat32(0,true)}static async readDouble(e,t={}){const n=await AvroParser.readFixedBytes(e,8,t);const i=new DataView(n.buffer,n.byteOffset,n.byteLength);return i.getFloat64(0,true)}static async readBytes(e,t={}){const n=await AvroParser.readLong(e,t);if(n<0){throw new Error("Bytes size was negative.")}return e.read(n,{abortSignal:t.abortSignal})}static async readString(e,t={}){const n=await AvroParser.readBytes(e,t);const i=new TextDecoder;return i.decode(n)}static async readMapPair(e,t,n={}){const i=await AvroParser.readString(e,n);const o=await t(e,n);return{key:i,value:o}}static async readMap(e,t,n={}){const readPairMethod=(e,n={})=>AvroParser.readMapPair(e,t,n);const i=await AvroParser.readArray(e,readPairMethod,n);const o={};for(const e of i){o[e.key]=e.value}return o}static async readArray(e,t,n={}){const i=[];for(let o=await AvroParser.readLong(e,n);o!==0;o=await AvroParser.readLong(e,n)){if(o<0){await AvroParser.readLong(e,n);o=-o}while(o--){const o=await t(e,n);i.push(o)}}return i}}t.AvroParser=AvroParser;var n;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(n||(n={}));var i;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(i||(i={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case i.NULL:case i.BOOLEAN:case i.INT:case i.LONG:case i.FLOAT:case i.DOUBLE:case i.BYTES:case i.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case n.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const i={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){i[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(i,e.name);case n.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case n.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case n.ARRAY:case n.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}t.AvroType=AvroType;class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case i.NULL:return AvroParser.readNull();case i.BOOLEAN:return AvroParser.readBoolean(e,t);case i.INT:return AvroParser.readInt(e,t);case i.LONG:return AvroParser.readLong(e,t);case i.FLOAT:return AvroParser.readFloat(e,t);case i.DOUBLE:return AvroParser.readDouble(e,t);case i.BYTES:return AvroParser.readBytes(e,t);case i.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._symbols[n]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._types[n].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const n={};n["$schema"]=this._name;for(const i in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,i)){n[i]=await this._fields[i].read(e,t)}}return n}}},41675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadable=void 0;class AvroReadable{}t.AvroReadable=AvroReadable},48059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=void 0;const i=n(41675);const o=n(24517);const d=n(20181);const p=new o.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends i.AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return d.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw p}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const n=this._readable.read(e);if(n){this._position+=n.length;return this.toUint8Array(n)}else{return new Promise(((n,i)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();n(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();i()};const abortHandler=()=>{cleanUp();i(p)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}t.AvroReadableFromStream=AvroReadableFromStream},52888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReader=void 0;const i=n(11326);const o=n(35652);const d=n(4337);class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,n,i){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=n||0;this._objectIndex=i||0;this._initialBlockOffset=n||0}async initialize(e={}){const t=await o.AvroParser.readFixedBytes(this._headerStream,i.AVRO_INIT_BYTES.length,{abortSignal:e.abortSignal});if(!(0,d.arraysEqual)(t,i.AVRO_INIT_BYTES)){throw new Error("Stream is not an Avro file.")}this._metadata=await o.AvroParser.readMap(this._headerStream,o.AvroParser.readString,{abortSignal:e.abortSignal});const n=this._metadata[i.AVRO_CODEC_KEY];if(!(n===undefined||n===null||n==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await o.AvroParser.readFixedBytes(this._headerStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});const p=JSON.parse(this._metadata[i.AVRO_SCHEMA_KEY]);this._itemType=o.AvroType.fromSchema(p);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await o.AvroParser.readFixedBytes(this._dataStream,i.AVRO_SYNC_MARKER_SIZE,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!(0,d.arraysEqual)(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await o.AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}t.AvroReader=AvroReader},96147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AvroReadableFromStream=t.AvroReadable=t.AvroReader=void 0;var i=n(52888);Object.defineProperty(t,"AvroReader",{enumerable:true,get:function(){return i.AvroReader}});var o=n(41675);Object.defineProperty(t,"AvroReadable",{enumerable:true,get:function(){return o.AvroReadable}});var d=n(48059);Object.defineProperty(t,"AvroReadableFromStream",{enumerable:true,get:function(){return d.AvroReadableFromStream}})},4337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arraysEqual=arraysEqual;function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("storage-blob")},58560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBlobAudience=t.PremiumPageBlobTier=t.BlockBlobTier=void 0;t.toAccessTier=toAccessTier;t.ensureCpkIfSpecified=ensureCpkIfSpecified;t.getBlobServiceAccountAudience=getBlobServiceAccountAudience;const i=n(27323);var o;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(o||(t.BlockBlobTier=o={}));var d;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(d||(t.PremiumPageBlobTier=d={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=i.EncryptionAlgorithmAES25}}var p;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(p||(t.StorageBlobAudience=p={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}},13501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const i=n(63064);class AnonymousCredentialPolicy extends i.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},63064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const i=n(70336);class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},70336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},78654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const i=n(70336);const o=n(87779);const d=n(27323);const p=n(47764);class StorageBrowserPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(o.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const i=n(87779);const o=n(27323);const d=n(47764);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(i.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,o.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(o.HeaderConstants.COOKIE);e.headers.delete(o.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},99359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const i=n(27323);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},57996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const i=n(24517);const o=n(70336);const d=n(27323);const p=n(47764);const f=n(46370);const y=n(16308);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new i.AbortError("The operation was aborted.");class StorageRetryPolicy extends o.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const i=e.clone();const o=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!o){i.url=(0,p.setURLHost)(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=(0,p.setURLParameter)(i.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(o,n,y)){return y}t=t||!o&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(o,n,y,e)){throw e}}await this.delay(o,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,i){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of o){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||i){const t=n?n.status:i?i.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let i=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs;break}}else{i=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${i}ms`);return(0,p.delay)(i,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},16308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},31160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const i=n(24517);const o=n(20778);const d=n(87779);const p=n(98335);const f=n(27323);const y=n(47764);const v=n(46370);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new i.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const i=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:o}){if(t>=i){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${i}, no further try.`);return false}if(o){for(const e of M){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||o){const t=n?.status??o?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let i=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:i=V;break}}else{i=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const i=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!i||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:i;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,o.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new o.RestError("RetryPolicy failed without known error.")}}}},45511:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const i=n(27323);const o=n(47764);const d=n(63064);const p=n(21902);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,i.HeaderConstants.DATE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,o.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const i=(0,o.getURLQueries)(e.url);const d={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();d[n]=i[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},97999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const i=n(77598);const o=n(27323);const d=n(47764);const p=n(21902);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,o.HeaderConstants.DATE),getHeaderValueToSign(t,o.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,i.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,i]of e.headers){if(n.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:i})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let i="";i+=`/${e.accountName}${n}`;const o=(0,d.getURLQueries)(t.url);const p={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();p[n]=o[t];e.push(n)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(p[t])}`}}return i}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},73145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobBeginCopyFromUrlPoller=void 0;const i=n(87779);const o=n(91754);class BlobBeginCopyFromUrlPoller extends o.Poller{intervalInMs;constructor(e){const{blobClient:t,copySource:n,intervalInMs:i=15e3,onProgress:o,resumeFrom:d,startCopyFromURLOptions:p}=e;let f;if(d){f=JSON.parse(d).state}const y=makeBlobBeginCopyFromURLPollOperation({...f,blobClient:t,copySource:n,startCopyFromURLOptions:p});super(y);if(typeof o==="function"){this.onProgress(o)}this.intervalInMs=i}delay(){return(0,i.delay)(this.intervalInMs)}}t.BlobBeginCopyFromUrlPoller=BlobBeginCopyFromUrlPoller;const d=async function cancel(e={}){const t=this.state;const{copyId:n}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!n){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const p=async function update(e={}){const t=this.state;const{blobClient:n,copySource:i,startCopyFromURLOptions:o}=t;if(!t.isStarted){t.isStarted=true;const e=await n.startCopyFromURL(i,o);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const n=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:i,copyProgress:o}=n;const d=t.copyProgress;if(o){t.copyProgress=o}if(i==="pending"&&o!==d&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(i==="success"){t.result=n;t.isCompleted=true}else if(i==="failed"){t.error=new Error(`Blob copy failed with reason: "${n.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const f=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:d,toString:f,update:p}}},6358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASPermissions=void 0;class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${n}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.AccountSASPermissions=AccountSASPermissions},91267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASResourceTypes=void 0;class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const n of e){switch(n){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${n}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}t.AccountSASResourceTypes=AccountSASResourceTypes},46940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountSASServices=void 0;class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const n of e){switch(n){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${n}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}t.AccountSASServices=AccountSASServices},85238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateAccountSASQueryParameters=generateAccountSASQueryParameters;t.generateAccountSASQueryParametersInternal=generateAccountSASQueryParametersInternal;const i=n(6358);const o=n(91267);const d=n(46940);const p=n(2977);const f=n(26823);const y=n(27323);const v=n(47764);function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const n=e.version?e.version:y.SERVICE_VERSION;if(e.permissions&&e.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const D=i.AccountSASPermissions.parse(e.permissions.toString());const M=d.AccountSASServices.parse(e.services).toString();const U=o.AccountSASResourceTypes.parse(e.resourceTypes).toString();let V;if(n>="2020-12-06"){V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{V=[t.accountName,D,M,U,e.startsOn?(0,v.truncatedISO8061Date)(e.startsOn,false):"",(0,v.truncatedISO8061Date)(e.expiresOn,false),e.ipRange?(0,p.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n")}const j=t.computeHMACSHA256(V);return{sasQueryParameters:new f.SASQueryParameters(n,j,D.toString(),M,U,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:V}}},2232:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobSASPermissions=void 0;class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${n}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}t.BlobSASPermissions=BlobSASPermissions},656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.generateBlobSASQueryParameters=generateBlobSASQueryParameters;t.generateBlobSASQueryParametersInternal=generateBlobSASQueryParametersInternal;const i=n(2232);const o=n(51622);const d=n(68999);const p=n(10992);const f=n(2977);const y=n(26823);const v=n(27323);const D=n(47764);function generateBlobSASQueryParameters(e,t,n){return generateBlobSASQueryParametersInternal(e,t,n).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,n){const i=e.version?e.version:v.SERVICE_VERSION;const o=t instanceof d.StorageSharedKeyCredential?t:undefined;let f;if(o===undefined&&n!==undefined){f=new p.UserDelegationKeyCredential(n,t)}if(o===undefined&&f===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(i>="2020-12-06"){if(o!==undefined){return generateBlobSASQueryParameters20201206(e,o)}else{if(i>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,f)}else{return generateBlobSASQueryParametersUDK20201206(e,f)}}}if(i>="2018-11-09"){if(o!==undefined){return generateBlobSASQueryParameters20181109(e,o)}else{if(i>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,f)}else{return generateBlobSASQueryParametersUDK20181109(e,f)}}}if(i>="2015-04-05"){if(o!==undefined){return generateBlobSASQueryParameters20150405(e,o)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";if(e.blobName){n="b"}let d;if(e.permissions){if(e.blobName){d=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{d=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const p=[d?d:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const v=t.computeHMACSHA256(p);return{sasQueryParameters:new y.SASQueryParameters(e.version,v,d,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:p}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:v}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:v}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:v}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let d=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";d=e.versionId}}let p;if(e.permissions){if(e.blobName){p=i.BlobSASPermissions.parse(e.permissions.toString()).toString()}else{p=o.ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const v=[p?p:"",e.startsOn?(0,D.truncatedISO8061Date)(e.startsOn,false):"",e.expiresOn?(0,D.truncatedISO8061Date)(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?(0,D.truncatedISO8061Date)(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,undefined,e.ipRange?(0,f.ipRangeToString)(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,d,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const M=t.computeHMACSHA256(v);return{sasQueryParameters:new y.SASQueryParameters(e.version,M,p,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:v}}function getCanonicalName(e,t,n){const i=[`/blob/${e}/${t}`];if(n){i.push(`/${n}`)}return i.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:v.SERVICE_VERSION;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}},51622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ContainerSASPermissions=void 0;class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${n}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}t.ContainerSASPermissions=ContainerSASPermissions},26823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SASQueryParameters=t.SASProtocol=void 0;const i=n(2977);const o=n(47764);var d;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(d||(t.SASProtocol=d={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,n,i,o,d,p,f,y,v,D,M,U,V,j,K,ee,te,re,ne){this.version=e;this.signature=t;if(n!==undefined&&typeof n!=="string"){this.permissions=n.permissions;this.services=n.services;this.resourceTypes=n.resourceTypes;this.protocol=n.protocol;this.startsOn=n.startsOn;this.expiresOn=n.expiresOn;this.ipRangeInner=n.ipRange;this.identifier=n.identifier;this.encryptionScope=n.encryptionScope;this.resource=n.resource;this.cacheControl=n.cacheControl;this.contentDisposition=n.contentDisposition;this.contentEncoding=n.contentEncoding;this.contentLanguage=n.contentLanguage;this.contentType=n.contentType;if(n.userDelegationKey){this.signedOid=n.userDelegationKey.signedObjectId;this.signedTenantId=n.userDelegationKey.signedTenantId;this.signedStartsOn=n.userDelegationKey.signedStartsOn;this.signedExpiresOn=n.userDelegationKey.signedExpiresOn;this.signedService=n.userDelegationKey.signedService;this.signedVersion=n.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId;this.correlationId=n.correlationId}}else{this.services=i;this.resourceTypes=o;this.expiresOn=f;this.permissions=n;this.protocol=d;this.startsOn=p;this.ipRangeInner=y;this.encryptionScope=ne;this.identifier=v;this.resource=D;this.cacheControl=M;this.contentDisposition=U;this.contentEncoding=V;this.contentLanguage=j;this.contentType=K;if(ee){this.signedOid=ee.signedObjectId;this.signedTenantId=ee.signedTenantId;this.signedStartsOn=ee.signedStartsOn;this.signedExpiresOn=ee.signedExpiresOn;this.signedService=ee.signedService;this.signedVersion=ee.signedVersion;this.preauthorizedAgentObjectId=te;this.correlationId=re}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const t=[];for(const n of e){switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?(0,o.truncatedISO8061Date)(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?(0,o.truncatedISO8061Date)(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?(0,i.ipRangeToString)(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?(0,o.truncatedISO8061Date)(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?(0,o.truncatedISO8061Date)(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break}}return t.join("&")}tryAppendQueryParameter(e,t,n){if(!n){return}t=encodeURIComponent(t);n=encodeURIComponent(n);if(t.length>0&&n.length>0){e.push(`${t}=${n}`)}}}t.SASQueryParameters=SASQueryParameters},2977:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ipRangeToString=ipRangeToString;function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}},81582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Batch=void 0;const i=n(24434);var o;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(o||(o={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=o.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new i.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=o.Error;t(e)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlobQuickQueryStream=void 0;const i=n(57075);const o=n(96147);class BlobQuickQueryStream extends i.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new o.AvroReader(new o.AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const n=t.$schema;if(typeof n!=="string"){throw Error("Missing schema in avro record.")}switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const n=t.name;if(typeof n!=="string"){throw Error("Invalid name in avro error record.")}const i=t.description;if(typeof i!=="string"){throw Error("Invalid description in avro error record.")}const o=t.position;if(typeof o!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:o,name:n,isFatal:e,description:i})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}t.BlobQuickQueryStream=BlobQuickQueryStream},58913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Mutex=void 0;var n;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(n||(n={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===n.UNLOCKED){this.keys[e]=n.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=n.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===n.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}t.Mutex=Mutex},98684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RetriableReadableStream=void 0;const i=n(24517);const o=n(57075);class RetriableReadableStream extends o.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,i,o={}){super({highWaterMark:o.highWaterMark});this.getter=t;this.source=e;this.start=n;this.offset=n;this.end=n+i-1;this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0;this.onProgress=o.onProgress;this.options=o;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new i.AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}t.RetriableReadableStream=RetriableReadableStream},21902:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const i=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const o=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,i,o];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.BlobDoesNotUseCustomerSpecifiedEncryption=t.BlobUsesCustomerSpecifiedEncryptionMsg=t.StorageBlobLoggingAllowedQueryParameters=t.StorageBlobLoggingAllowedHeaderNames=t.DevelopmentConnectionString=t.EncryptionAlgorithmAES25=t.HTTP_VERSION_1_1=t.HTTP_LINE_ENDING=t.BATCH_MAX_PAYLOAD_IN_BYTES=t.BATCH_MAX_REQUEST=t.SIZE_1_MB=t.ETagAny=t.ETagNone=t.HeaderConstants=t.HTTPURLConnection=t.URLConstants=t.StorageOAuthScopes=t.REQUEST_TIMEOUT=t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=t.BLOCK_BLOB_MAX_BLOCKS=t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=t.SERVICE_VERSION=t.SDK_VERSION=void 0;t.SDK_VERSION="12.28.0";t.SERVICE_VERSION="2025-07-05";t.BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES=256*1024*1024;t.BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES=4e3*1024*1024;t.BLOCK_BLOB_MAX_BLOCKS=5e4;t.DEFAULT_BLOCK_BUFFER_SIZE_BYTES=8*1024*1024;t.DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES=4*1024*1024;t.DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS=5;t.REQUEST_TIMEOUT=100*1e3;t.StorageOAuthScopes="https://storage.azure.com/.default";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HTTPURLConnection={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.ETagNone="";t.ETagAny="*";t.SIZE_1_MB=1*1024*1024;t.BATCH_MAX_REQUEST=256;t.BATCH_MAX_PAYLOAD_IN_BYTES=4*t.SIZE_1_MB;t.HTTP_LINE_ENDING="\r\n";t.HTTP_VERSION_1_1="HTTP/1.1";t.EncryptionAlgorithmAES25="AES256";t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.StorageBlobLoggingAllowedHeaderNames=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];t.StorageBlobLoggingAllowedQueryParameters=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];t.BlobUsesCustomerSpecifiedEncryptionMsg="BlobUsesCustomerSpecifiedEncryption";t.BlobDoesNotUseCustomerSpecifiedEncryption="BlobDoesNotUseCustomerSpecifiedEncryption";t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},53952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tracingClient=void 0;const i=n(20623);const o=n(27323);t.tracingClient=(0,i.createTracingClient)({packageName:"@azure/storage-blob",packageVersion:o.SDK_VERSION,namespace:"Microsoft.Storage"})},47764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.toBlobTagsString=toBlobTagsString;t.toBlobTags=toBlobTags;t.toTags=toTags;t.toQuerySerialization=toQuerySerialization;t.parseObjectReplicationRecord=parseObjectReplicationRecord;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.BlobNameToString=BlobNameToString;t.ConvertInternalResponseOfListBlobFlat=ConvertInternalResponseOfListBlobFlat;t.ConvertInternalResponseOfListBlobHierarchy=ConvertInternalResponseOfListBlobHierarchy;t.ExtractPageRangeInfoItems=ExtractPageRangeInfoItems;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const i=n(20778);const o=n(87779);const d=n(27323);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let o="";let d=Buffer.from("accountKey","base64");let p="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${i}://${o}.blob.${p}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let i=getValueInConnString(e,"AccountName");if(!i){i=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let i=n.pathname;i=i?i.endsWith("/")?`${i}${t}`:`${i}/${t}`:t;n.pathname=i;return n.toString()}function setURLParameter(e,t,n){const i=new URL(e);const o=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=i.search===""?"?":i.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){f.push(e)}}}if(d){f.push(`${o}=${d}`)}i.search=f.length?`?${f.join("&")}`:"";return i.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let i=t.search||"";i=i.trim();if(i!==""){i=i.startsWith("?")?i:`?${i}`}return`${n}${i}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&no){e=e.slice(0,o)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((i,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,i.createHttpHeaders)();for(const[n,i]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(i))}else{t.set(n,i)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const i=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(i)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const i=e[n];t.blobTagSet.push({key:n,value:i})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const n of e.blobTagSet){t[n.key]=n.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const n in e){const i=n.split("_");const o="or-";if(i[0].startsWith(o)){i[0]=i[0].substring(o.length)}const d={ruleId:i[1],replicationStatus:e[n]};const p=t.findIndex((e=>e.policyId===i[0]));if(p>-1){t[p].rules.push(d)}else{t.push({policyId:i[0],rules:[d]})}}return t}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let n=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)n=e.clearRange;let i=0;let o=0;while(i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsCreateReadStream=t.fsStat=void 0;t.streamToBuffer=streamToBuffer;t.streamToBuffer2=streamToBuffer2;t.streamToBuffer3=streamToBuffer3;t.readStreamToLocalFile=readStreamToLocalFile;const i=n(61860);const o=i.__importDefault(n(73024));const d=i.__importDefault(n(57975));const p=n(27323);async function streamToBuffer(e,t,n,i,o){let d=0;const f=i-n;return new Promise(((i,y)=>{const v=setTimeout((()=>y(new Error(`The operation cannot be completed in timeout.`))),p.REQUEST_TIMEOUT);e.on("readable",(()=>{if(d>=f){clearTimeout(v);i();return}let p=e.read();if(!p){return}if(typeof p==="string"){p=Buffer.from(p,o)}const y=d+p.length>f?f-d:p.length;t.fill(p.slice(0,y),n+d,n+d+y);d+=y}));e.on("end",(()=>{clearTimeout(v);if(d{clearTimeout(v);y(e)}))}))}async function streamToBuffer2(e,t,n){let i=0;const o=t.length;return new Promise(((d,p)=>{e.on("readable",(()=>{let d=e.read();if(!d){return}if(typeof d==="string"){d=Buffer.from(d,n)}if(i+d.length>o){p(new Error(`Stream exceeds buffer size. Buffer size: ${o}`));return}t.fill(d,i,i+d.length);i+=d.length}));e.on("end",(()=>{d(i)}));e.on("error",p)}))}async function streamToBuffer3(e,t){return new Promise(((n,i)=>{const o=[];e.on("data",(e=>{o.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{n(Buffer.concat(o))}));e.on("error",i)}))}async function readStreamToLocalFile(e,t){return new Promise(((n,i)=>{const d=o.default.createWriteStream(t);e.on("error",(e=>{i(e)}));d.on("error",(e=>{i(e)}));d.on("close",n);e.pipe(d)}))}t.fsStat=d.default.promisify(o.default.stat);t.fsCreateReadStream=o.default.createReadStream},24841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},24517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=n(24841);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},86381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BufferScheduler=void 0;const i=n(24434);const o=n(52121);class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new i.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,i,o,d){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(n<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`)}if(o<=0){throw new RangeError(`concurrency must be larger than 0, current is ${o}`)}this.bufferSize=t;this.maxBuffers=n;this.readable=e;this.outgoingHandler=i;this.concurrency=o;this.encoding=d}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new o.PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}t.BufferScheduler=BufferScheduler},66093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuffersStream=void 0;const i=n(57075);class BuffersStream extends i.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let i=0;for(const e of this.buffers){i+=e.byteLength}if(i=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(ne-n){const i=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,i));this.pushedBytesLength+=e-n;this.byteOffsetInCurrentBuffer=i;n=e;break}else{const e=this.byteOffsetInCurrentBuffer+d;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(d===o){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=d;n+=d}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}t.BuffersStream=BuffersStream},52121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PooledBuffer=void 0;const i=n(61860);const o=n(66093);const d=i.__importDefault(n(4573));const p=d.default.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e;this._size=0;const i=Math.ceil(e/p);for(let t=0;t0){e[0]=e[0].slice(d)}}getReadableStream(){return new o.BuffersStream(this.buffers,this.size)}}t.PooledBuffer=PooledBuffer},4399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicyFactory=t.StorageBrowserPolicy=void 0;const i=n(22312);Object.defineProperty(t,"StorageBrowserPolicy",{enumerable:true,get:function(){return i.StorageBrowserPolicy}});class StorageBrowserPolicyFactory{create(e,t){return new i.StorageBrowserPolicy(e,t)}}t.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory},77321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyFactory=t.StorageRetryPolicy=t.StorageRetryPolicyType=void 0;const i=n(27734);Object.defineProperty(t,"StorageRetryPolicy",{enumerable:true,get:function(){return i.StorageRetryPolicy}});const o=n(38622);Object.defineProperty(t,"StorageRetryPolicyType",{enumerable:true,get:function(){return o.StorageRetryPolicyType}});class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new i.StorageRetryPolicy(e,t,this.retryOptions)}}t.StorageRetryPolicyFactory=StorageRetryPolicyFactory},68376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getCachedDefaultHttpClient=getCachedDefaultHttpClient;const i=n(20778);let o;function getCachedDefaultHttpClient(){if(!o){o=(0,i.createDefaultHttpClient)()}return o}},32159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredential=void 0;const i=n(63611);const o=n(450);class AnonymousCredential extends o.Credential{create(e,t){return new i.AnonymousCredentialPolicy(e,t)}}t.AnonymousCredential=AnonymousCredential},450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Credential=void 0;class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}t.Credential=Credential},30849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredential=void 0;const i=n(77598);const o=n(35369);const d=n(450);class StorageSharedKeyCredential extends d.Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new o.StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,i.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}t.StorageSharedKeyCredential=StorageSharedKeyCredential},51382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=t.getCachedDefaultHttpClient=void 0;const i=n(61860);i.__exportStar(n(86381),t);var o=n(68376);Object.defineProperty(t,"getCachedDefaultHttpClient",{enumerable:true,get:function(){return o.getCachedDefaultHttpClient}});i.__exportStar(n(4399),t);i.__exportStar(n(32159),t);i.__exportStar(n(450),t);i.__exportStar(n(30849),t);i.__exportStar(n(77321),t);var d=n(40590);Object.defineProperty(t,"BaseRequestPolicy",{enumerable:true,get:function(){return d.BaseRequestPolicy}});i.__exportStar(n(63611),t);i.__exportStar(n(74238),t);i.__exportStar(n(22312),t);i.__exportStar(n(83100),t);i.__exportStar(n(92505),t);i.__exportStar(n(38622),t);i.__exportStar(n(27734),t);i.__exportStar(n(78178),t);i.__exportStar(n(35369),t);i.__exportStar(n(53233),t);i.__exportStar(n(77321),t)},32780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(26515);t.logger=(0,i.createClientLogger)("storage-common")},63611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnonymousCredentialPolicy=void 0;const i=n(74238);class AnonymousCredentialPolicy extends i.CredentialPolicy{constructor(e,t){super(e,t)}}t.AnonymousCredentialPolicy=AnonymousCredentialPolicy},74238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CredentialPolicy=void 0;const i=n(40590);class CredentialPolicy extends i.BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}t.CredentialPolicy=CredentialPolicy},40590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRequestPolicy=void 0;class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}t.BaseRequestPolicy=BaseRequestPolicy},22312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageBrowserPolicy=void 0;const i=n(40590);const o=n(87779);const d=n(77925);const p=n(58218);class StorageBrowserPolicy extends i.BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(o.isNodeLike){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=(0,p.setURLParameter)(e.url,d.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(d.HeaderConstants.COOKIE);e.headers.remove(d.HeaderConstants.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}t.StorageBrowserPolicy=StorageBrowserPolicy},83100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageBrowserPolicyName=void 0;t.storageBrowserPolicy=storageBrowserPolicy;const i=n(87779);const o=n(77925);const d=n(58218);t.storageBrowserPolicyName="storageBrowserPolicy";function storageBrowserPolicy(){return{name:t.storageBrowserPolicyName,async sendRequest(e,t){if(i.isNodeLike){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=(0,d.setURLParameter)(e.url,o.URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(o.HeaderConstants.COOKIE);e.headers.delete(o.HeaderConstants.CONTENT_LENGTH);return t(e)}}}},92505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageCorrectContentLengthPolicyName=void 0;t.storageCorrectContentLengthPolicy=storageCorrectContentLengthPolicy;const i=n(77925);t.storageCorrectContentLengthPolicyName="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:t.storageCorrectContentLengthPolicyName,async sendRequest(e,t){correctContentLength(e);return t(e)}}}},27734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicy=void 0;t.NewRetryPolicyFactory=NewRetryPolicyFactory;const i=n(18251);const o=n(40590);const d=n(77925);const p=n(58218);const f=n(32780);const y=n(38622);function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const v={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:y.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const D=new i.AbortError("The operation was aborted.");class StorageRetryPolicy extends o.BaseRequestPolicy{retryOptions;constructor(e,t,n=v){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:v.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):v.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:v.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:v.maxRetryDelayInMs):v.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:v.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:v.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const i=e.clone();const o=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!o){i.url=(0,p.setURLHost)(i.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){i.url=(0,p.setURLParameter)(i.url,d.URLConstants.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let y;try{f.logger.info(`RetryPolicy: =====> Try=${n} ${o?"Primary":"Secondary"}`);y=await this._nextPolicy.sendRequest(i);if(!this.shouldRetry(o,n,y)){return y}t=t||!o&&y.status===404}catch(e){f.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(o,n,y,e)){throw e}}await this.delay(o,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,i){if(t>=this.retryOptions.maxTries){f.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(const e of o){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){f.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||i){const t=n?n.status:i?i.statusCode:0;if(!e&&t===404){f.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){f.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){f.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let i=0;if(e){switch(this.retryOptions.retryPolicyType){case y.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case y.StorageRetryPolicyType.FIXED:i=this.retryOptions.retryDelayInMs;break}}else{i=Math.random()*1e3}f.logger.info(`RetryPolicy: Delay for ${i}ms`);return(0,p.delay)(i,n,D)}}t.StorageRetryPolicy=StorageRetryPolicy},38622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageRetryPolicyType=void 0;var n;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(n||(t.StorageRetryPolicyType=n={}))},78178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageRetryPolicyName=void 0;t.storageRetryPolicy=storageRetryPolicy;const i=n(18251);const o=n(20778);const d=n(87779);const p=n(77321);const f=n(77925);const y=n(58218);const v=n(32780);t.storageRetryPolicyName="storageRetryPolicy";const D={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:p.StorageRetryPolicyType.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const M=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const U=new i.AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const n=e.retryPolicyType??D.retryPolicyType;const i=e.maxTries??D.maxTries;const V=e.retryDelayInMs??D.retryDelayInMs;const j=e.maxRetryDelayInMs??D.maxRetryDelayInMs;const K=e.secondaryHost??D.secondaryHost;const ee=e.tryTimeoutInMs??D.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:n,error:o}){if(t>=i){v.logger.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${i}, no further try.`);return false}if(o){for(const e of M){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){v.logger.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){v.logger.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(n||o){const t=n?.status??o?.statusCode??0;if(!e&&t===404){v.logger.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){v.logger.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}return false}function calculateDelay(e,t){let i=0;if(e){switch(n){case p.StorageRetryPolicyType.EXPONENTIAL:i=Math.min((Math.pow(2,t-1)-1)*V,j);break;case p.StorageRetryPolicyType.FIXED:i=V;break}}else{i=Math.random()*1e3}v.logger.info(`RetryPolicy: Delay for ${i}ms`);return i}return{name:t.storageRetryPolicyName,async sendRequest(e,t){if(ee){e.url=(0,y.setURLParameter)(e.url,f.URLConstants.Parameters.TIMEOUT,String(Math.floor(ee/1e3)))}const n=e.url;const i=K?(0,y.setURLHost)(e.url,K):undefined;let p=false;let D=1;let M=true;let V;let j;while(M){const f=p||!i||!["GET","HEAD","OPTIONS"].includes(e.method)||D%2===1;e.url=f?n:i;V=undefined;j=undefined;try{v.logger.info(`RetryPolicy: =====> Try=${D} ${f?"Primary":"Secondary"}`);V=await t(e);p=p||!f&&V.status===404}catch(e){if((0,o.isRestError)(e)){v.logger.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);j=e}else{v.logger.error(`RetryPolicy: Caught error, message: ${(0,d.getErrorMessage)(e)}`);throw e}}M=shouldRetry({isPrimaryRetry:f,attempt:D,response:V,error:j});if(M){await(0,y.delay)(calculateDelay(f,D),e.abortSignal,U)}D++}if(V){return V}throw j??new o.RestError("RetryPolicy failed without known error.")}}}},35369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StorageSharedKeyCredentialPolicy=void 0;const i=n(77925);const o=n(58218);const d=n(74238);const p=n(16576);class StorageSharedKeyCredentialPolicy extends d.CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(i.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(i.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_ENCODING),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_LENGTH),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_MD5),this.getHeaderValueToSign(e,i.HeaderConstants.CONTENT_TYPE),this.getHeaderValueToSign(e,i.HeaderConstants.DATE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.IF_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_NONE_MATCH),this.getHeaderValueToSign(e,i.HeaderConstants.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,i.HeaderConstants.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(i.HeaderConstants.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===i.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(i.HeaderConstants.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=(0,o.getURLPath)(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const i=(0,o.getURLQueries)(e.url);const d={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();d[n]=i[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(d[t])}`}}return n}}t.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy},53233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storageSharedKeyCredentialPolicyName=void 0;t.storageSharedKeyCredentialPolicy=storageSharedKeyCredentialPolicy;const i=n(77598);const o=n(77925);const d=n(58218);const p=n(16576);t.storageSharedKeyCredentialPolicyName="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(o.HeaderConstants.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(o.HeaderConstants.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LANGUAGE),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_ENCODING),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_LENGTH),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_MD5),getHeaderValueToSign(t,o.HeaderConstants.CONTENT_TYPE),getHeaderValueToSign(t,o.HeaderConstants.DATE),getHeaderValueToSign(t,o.HeaderConstants.IF_MODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.IF_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_NONE_MATCH),getHeaderValueToSign(t,o.HeaderConstants.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,o.HeaderConstants.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const d=(0,i.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(o.HeaderConstants.AUTHORIZATION,`SharedKey ${e.accountName}:${d}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===o.HeaderConstants.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,i]of e.headers){if(n.toLowerCase().startsWith(o.HeaderConstants.PREFIX_FOR_STORAGE)){t.push({name:n,value:i})}}t.sort(((e,t)=>(0,p.compareHeader)(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=(0,d.getURLPath)(t.url)||"/";let i="";i+=`/${e.accountName}${n}`;const o=(0,d.getURLQueries)(t.url);const p={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();p[n]=o[t];e.push(n)}}e.sort();for(const t of e){i+=`\n${t}:${decodeURIComponent(p[t])}`}}return i}return{name:t.storageSharedKeyCredentialPolicyName,async sendRequest(e,t){signRequest(e);return t(e)}}}},16576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compareHeader=compareHeader;const n=new Uint32Array([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,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const i=new Uint32Array([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,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,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,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,0,0,0,0]);const o=new Uint32Array([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,0,0,0,0,0,0,32786,0,0,0,0,0,33298,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const d=[n,i,o];let p=0;let f=0;let y=0;while(py}const n=f{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathStylePorts=t.DevelopmentConnectionString=t.HeaderConstants=t.URLConstants=t.SDK_VERSION=void 0;t.SDK_VERSION="1.0.0";t.URLConstants={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};t.HeaderConstants={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};t.DevelopmentConnectionString=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;t.PathStylePorts=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"]},58218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeURLPath=escapeURLPath;t.getValueInConnString=getValueInConnString;t.extractConnectionStringParts=extractConnectionStringParts;t.appendToURLPath=appendToURLPath;t.setURLParameter=setURLParameter;t.getURLParameter=getURLParameter;t.setURLHost=setURLHost;t.getURLPath=getURLPath;t.getURLScheme=getURLScheme;t.getURLPathAndQuery=getURLPathAndQuery;t.getURLQueries=getURLQueries;t.appendToURLQuery=appendToURLQuery;t.truncatedISO8061Date=truncatedISO8061Date;t.base64encode=base64encode;t.base64decode=base64decode;t.generateBlockID=generateBlockID;t.delay=delay;t.padStart=padStart;t.sanitizeURL=sanitizeURL;t.sanitizeHeaders=sanitizeHeaders;t.iEqual=iEqual;t.getAccountNameFromUrl=getAccountNameFromUrl;t.isIpEndpointStyle=isIpEndpointStyle;t.attachCredential=attachCredential;t.httpAuthorizationToString=httpAuthorizationToString;t.EscapePath=EscapePath;t.assertResponse=assertResponse;const i=n(20778);const o=n(87779);const d=n(77925);function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=d.DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let i="";let o="";let d=Buffer.from("accountKey","base64");let p="";o=getValueInConnString(e,"AccountName");d=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){i=getValueInConnString(e,"DefaultEndpointsProtocol");const t=i.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}p=getValueInConnString(e,"EndpointSuffix");if(!p){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${i}://${o}.blob.${p}`}if(!o){throw new Error("Invalid AccountName in the provided Connection String")}else if(d.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:o,accountKey:d,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let i=getValueInConnString(e,"AccountName");if(!i){i=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:i,accountSas:t}}}function escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let i=n.pathname;i=i?i.endsWith("/")?`${i}${t}`:`${i}/${t}`:t;n.pathname=i;return n.toString()}function setURLParameter(e,t,n){const i=new URL(e);const o=encodeURIComponent(t);const d=n?encodeURIComponent(n):undefined;const p=i.search===""?"?":i.search;const f=[];for(const e of p.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==o){f.push(e)}}}if(d){f.push(`${o}=${d}`)}i.search=f.length?`?${f.join("&")}`:"";return i.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let i=t.search||"";i=i.trim();if(i!==""){i=i.startsWith("?")?i:`?${i}`}return`${n}${i}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&no){e=e.slice(0,o)}const d=e+padStart(t.toString(),n-e.length,"0");return base64encode(d)}async function delay(e,t,n){return new Promise(((i,o)=>{let d;const abortHandler=()=>{if(d!==undefined){clearTimeout(d)}o(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}i()};d=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,d.URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,d.URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=(0,i.createHttpHeaders)();for(const[n,i]of e){if(n.toLowerCase()===d.HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===d.HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(i))}else{t.set(n,i)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&d.PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},18251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;var i=n(6675);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return i.AbortError}})},27182:(e,t,n)=>{"use strict";const i=n(57075).Writable;const o=n(57975).inherits;const d=n(84136);const p=n(50612);const f=n(62271);const y=45;const v=Buffer.from("-");const D=Buffer.from("\r\n");const EMPTY_FN=function(){};function Dicer(e){if(!(this instanceof Dicer)){return new Dicer(e)}i.call(this,e);if(!e||!e.headerFirst&&typeof e.boundary!=="string"){throw new TypeError("Boundary required")}if(typeof e.boundary==="string"){this.setBoundary(e.boundary)}else{this._bparser=undefined}this._headerFirst=e.headerFirst;this._dashes=0;this._parts=0;this._finished=false;this._realFinish=false;this._isPreamble=true;this._justMatched=false;this._firstWrite=true;this._inHeader=true;this._part=undefined;this._cb=undefined;this._ignoreData=false;this._partOpts={highWaterMark:e.partHwm};this._pause=false;const t=this;this._hparser=new f(e);this._hparser.on("header",(function(e){t._inHeader=false;t._part.emit("header",e)}))}o(Dicer,i);Dicer.prototype.emit=function(e){if(e==="finish"&&!this._realFinish){if(!this._finished){const e=this;process.nextTick((function(){e.emit("error",new Error("Unexpected end of multipart data"));if(e._part&&!e._ignoreData){const t=e._isPreamble?"Preamble":"Part";e._part.emit("error",new Error(t+" terminated early due to unexpected end of multipart data"));e._part.push(null);process.nextTick((function(){e._realFinish=true;e.emit("finish");e._realFinish=false}));return}e._realFinish=true;e.emit("finish");e._realFinish=false}))}}else{i.prototype.emit.apply(this,arguments)}};Dicer.prototype._write=function(e,t,n){if(!this._hparser&&!this._bparser){return n()}if(this._headerFirst&&this._isPreamble){if(!this._part){this._part=new p(this._partOpts);if(this.listenerCount("preamble")!==0){this.emit("preamble",this._part)}else{this._ignore()}}const t=this._hparser.push(e);if(!this._inHeader&&t!==undefined&&t{"use strict";const i=n(78474).EventEmitter;const o=n(57975).inherits;const d=n(22393);const p=n(84136);const f=Buffer.from("\r\n\r\n");const y=/\r\n/g;const v=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/;function HeaderParser(e){i.call(this);e=e||{};const t=this;this.nread=0;this.maxed=false;this.npairs=0;this.maxHeaderPairs=d(e,"maxHeaderPairs",2e3);this.maxHeaderSize=d(e,"maxHeaderSize",80*1024);this.buffer="";this.header={};this.finished=false;this.ss=new p(f);this.ss.on("info",(function(e,n,i,o){if(n&&!t.maxed){if(t.nread+o-i>=t.maxHeaderSize){o=t.maxHeaderSize-t.nread+i;t.nread=t.maxHeaderSize;t.maxed=true}else{t.nread+=o-i}t.buffer+=n.toString("binary",i,o)}if(e){t._finish()}}))}o(HeaderParser,i);HeaderParser.prototype.push=function(e){const t=this.ss.push(e);if(this.finished){return t}};HeaderParser.prototype.reset=function(){this.finished=false;this.buffer="";this.header={};this.ss.reset()};HeaderParser.prototype._finish=function(){if(this.buffer){this._parseHeader()}this.ss.matches=this.ss.maxMatches;const e=this.header;this.header={};this.buffer="";this.finished=true;this.nread=this.npairs=0;this.maxed=false;this.emit("header",e)};HeaderParser.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs){return}const e=this.buffer.split(y);const t=e.length;let n,i;for(var o=0;o{"use strict";const i=n(57975).inherits;const o=n(57075).Readable;function PartStream(e){o.call(this,e)}i(PartStream,o);PartStream.prototype._read=function(e){};e.exports=PartStream},84136:(e,t,n)=>{"use strict";const i=n(78474).EventEmitter;const o=n(57975).inherits;function SBMH(e){if(typeof e==="string"){e=Buffer.from(e)}if(!Buffer.isBuffer(e)){throw new TypeError("The needle has to be a String or a Buffer.")}const t=e.length;if(t===0){throw new Error("The needle cannot be an empty String/Buffer.")}if(t>256){throw new Error("The needle cannot have a length bigger than 256.")}this.maxMatches=Infinity;this.matches=0;this._occ=new Array(256).fill(t);this._lookbehind_size=0;this._needle=e;this._bufpos=0;this._lookbehind=Buffer.alloc(t);for(var n=0;n=0){this.emit("info",false,this._lookbehind,0,this._lookbehind_size);this._lookbehind_size=0}else{const n=this._lookbehind_size+d;if(n>0){this.emit("info",false,this._lookbehind,0,n)}this._lookbehind.copy(this._lookbehind,0,n,this._lookbehind_size-n);this._lookbehind_size-=n;e.copy(this._lookbehind,this._lookbehind_size);this._lookbehind_size+=t;this._bufpos=t;return t}}d+=(d>=0)*this._bufpos;if(e.indexOf(n,d)!==-1){d=e.indexOf(n,d);++this.matches;if(d>0){this.emit("info",true,e,this._bufpos,d)}else{this.emit("info",true)}return this._bufpos=d+i}else{d=t-i}while(d0){this.emit("info",false,e,this._bufpos,d{"use strict";const i=n(57075).Writable;const{inherits:o}=n(57975);const d=n(27182);const p=n(41192);const f=n(80855);const y=n(8929);function Busboy(e){if(!(this instanceof Busboy)){return new Busboy(e)}if(typeof e!=="object"){throw new TypeError("Busboy expected an options-Object.")}if(typeof e.headers!=="object"){throw new TypeError("Busboy expected an options-Object with headers-attribute.")}if(typeof e.headers["content-type"]!=="string"){throw new TypeError("Missing Content-Type-header.")}const{headers:t,...n}=e;this.opts={autoDestroy:false,...n};i.call(this,this.opts);this._done=false;this._parser=this.getParserByHeaders(t);this._finished=false}o(Busboy,i);Busboy.prototype.emit=function(e){if(e==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished){return}this._finished=true}i.prototype.emit.apply(this,arguments)};Busboy.prototype.getParserByHeaders=function(e){const t=y(e["content-type"]);const n={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:t,preservePath:this.opts.preservePath};if(p.detect.test(t[0])){return new p(this,n)}if(f.detect.test(t[0])){return new f(this,n)}throw new Error("Unsupported Content-Type.")};Busboy.prototype._write=function(e,t,n){this._parser.write(e,n)};e.exports=Busboy;e.exports["default"]=Busboy;e.exports.Busboy=Busboy;e.exports.Dicer=d},41192:(e,t,n)=>{"use strict";const{Readable:i}=n(57075);const{inherits:o}=n(57975);const d=n(27182);const p=n(8929);const f=n(72747);const y=n(20692);const v=n(22393);const D=/^boundary$/i;const M=/^form-data$/i;const U=/^charset$/i;const V=/^filename$/i;const j=/^name$/i;Multipart.detect=/^multipart\/form-data/i;function Multipart(e,t){let n;let i;const o=this;let K;const ee=t.limits;const te=t.isPartAFile||((e,t,n)=>t==="application/octet-stream"||n!==undefined);const re=t.parsedConType||[];const ne=t.defCharset||"utf8";const ie=t.preservePath;const oe={highWaterMark:t.fileHwm};for(n=0,i=re.length;nle){o.parser.removeListener("part",onPart);o.parser.on("part",skipPart);e.hitPartsLimit=true;e.emit("partsLimit");return skipPart(t)}if(fe){const e=fe;e.emit("end");e.removeAllListeners("end")}t.on("header",(function(d){let v;let D;let K;let ee;let re;let le;let ue=0;if(d["content-type"]){K=p(d["content-type"][0]);if(K[0]){v=K[0].toLowerCase();for(n=0,i=K.length;nae){const i=ae-ue+e.length;if(i>0){n.push(e.slice(0,i))}n.truncated=true;n.bytesRead=ae;t.removeAllListeners("data");n.emit("limit");return}else if(!n.push(e)){o._pause=true}n.bytesRead=ue};Ee=function(){he=undefined;n.push(null)}}else{if(ge===ce){if(!e.hitFieldsLimit){e.hitFieldsLimit=true;e.emit("fieldsLimit")}return skipPart(t)}++ge;++me;let n="";let i=false;fe=t;de=function(e){if((ue+=e.length)>se){const o=se-(ue-e.length);n+=e.toString("binary",0,o);i=true;t.removeAllListeners("data")}else{n+=e.toString("binary")}};Ee=function(){fe=undefined;if(n.length){n=f(n,"binary",ee)}e.emit("field",D,n,false,i,re,v);--me;checkFinished()}}t._readableState.sync=false;t.on("data",de);t.on("end",Ee)})).on("error",(function(e){if(he){he.emit("error",e)}}))})).on("error",(function(t){e.emit("error",t)})).on("finish",(function(){Ee=true;checkFinished()}))}Multipart.prototype.write=function(e,t){const n=this.parser.write(e);if(n&&!this._pause){t()}else{this._needDrain=!n;this._cb=t}};Multipart.prototype.end=function(){const e=this;if(e.parser.writable){e.parser.end()}else if(!e._boy._done){process.nextTick((function(){e._boy._done=true;e._boy.emit("finish")}))}};function skipPart(e){e.resume()}function FileStream(e){i.call(this,e);this.bytesRead=0;this.truncated=false}o(FileStream,i);FileStream.prototype._read=function(e){};e.exports=Multipart},80855:(e,t,n)=>{"use strict";const i=n(11496);const o=n(72747);const d=n(22393);const p=/^charset$/i;UrlEncoded.detect=/^application\/x-www-form-urlencoded/i;function UrlEncoded(e,t){const n=t.limits;const o=t.parsedConType;this.boy=e;this.fieldSizeLimit=d(n,"fieldSize",1*1024*1024);this.fieldNameSizeLimit=d(n,"fieldNameSize",100);this.fieldsLimit=d(n,"fields",Infinity);let f;for(var y=0,v=o.length;yp){this._key+=this.decoder.write(e.toString("binary",p,n))}this._state="val";this._hitLimit=false;this._checkingBytes=true;this._val="";this._bytesVal=0;this._valTrunc=false;this.decoder.reset();p=n+1}else if(i!==undefined){++this._fields;let n;const d=this._keyTrunc;if(i>p){n=this._key+=this.decoder.write(e.toString("binary",p,i))}else{n=this._key}this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();if(n.length){this.boy.emit("field",o(n,"binary",this.charset),"",d,false)}p=i+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._key+=this.decoder.write(e.toString("binary",p,d))}p=d;if((this._bytesKey=this._key.length)===this.fieldNameSizeLimit){this._checkingBytes=false;this._keyTrunc=true}}else{if(pp){this._val+=this.decoder.write(e.toString("binary",p,i))}this.boy.emit("field",o(this._key,"binary",this.charset),o(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this._state="key";this._hitLimit=false;this._checkingBytes=true;this._key="";this._bytesKey=0;this._keyTrunc=false;this.decoder.reset();p=i+1;if(this._fields===this.fieldsLimit){return t()}}else if(this._hitLimit){if(d>p){this._val+=this.decoder.write(e.toString("binary",p,d))}p=d;if(this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit){this._checkingBytes=false;this._valTrunc=true}}else{if(p0){this.boy.emit("field",o(this._key,"binary",this.charset),"",this._keyTrunc,false)}else if(this._state==="val"){this.boy.emit("field",o(this._key,"binary",this.charset),o(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc)}this.boy._done=true;this.boy.emit("finish")};e.exports=UrlEncoded},11496:e=>{"use strict";const t=/\+/g;const n=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,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,1,1,1,1,1,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];function Decoder(){this.buffer=undefined}Decoder.prototype.write=function(e){e=e.replace(t," ");let i="";let o=0;let d=0;const p=e.length;for(;od){i+=e.substring(d,o);d=o}this.buffer="";++d}}if(d{"use strict";e.exports=function basename(e){if(typeof e!=="string"){return""}for(var t=e.length-1;t>=0;--t){switch(e.charCodeAt(t)){case 47:case 92:e=e.slice(t+1);return e===".."||e==="."?"":e}}return e===".."||e==="."?"":e}},72747:function(e){"use strict";const t=new TextDecoder("utf-8");const n=new Map([["utf-8",t],["utf8",t]]);function getDecoder(e){let t;while(true){switch(e){case"utf-8":case"utf8":return i.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return i.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return i.utf16le;case"base64":return i.base64;default:if(t===undefined){t=true;e=e.toLowerCase();continue}return i.other.bind(e)}}}const i={utf8:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.utf8Slice(0,e.length)},latin1:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){return e}return e.latin1Slice(0,e.length)},utf16le:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.ucs2Slice(0,e.length)},base64:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}return e.base64Slice(0,e.length)},other:(e,t)=>{if(e.length===0){return""}if(typeof e==="string"){e=Buffer.from(e,t)}if(n.has(this.toString())){try{return n.get(this).decode(e)}catch{}}return typeof e==="string"?e:e.toString()}};function decodeText(e,t,n){if(e){return getDecoder(n)(e,t)}return e}e.exports=decodeText},22393:e=>{"use strict";e.exports=function getLimit(e,t,n){if(!e||e[t]===undefined||e[t]===null){return n}if(typeof e[t]!=="number"||isNaN(e[t])){throw new TypeError("Limit "+t+" is not a valid number")}return e[t]}},8929:(e,t,n)=>{"use strict";const i=n(72747);const o=/%[a-fA-F0-9][a-fA-F0-9]/g;const d={"%00":"\0","%01":"","%02":"","%03":"","%04":"","%05":"","%06":"","%07":"","%08":"\b","%09":"\t","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"","%0E":"","%0f":"","%0F":"","%10":"","%11":"","%12":"","%13":"","%14":"","%15":"","%16":"","%17":"","%18":"","%19":"","%1a":"","%1A":"","%1b":"","%1B":"","%1c":"","%1C":"","%1d":"","%1D":"","%1e":"","%1E":"","%1f":"","%1F":"","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function encodedReplacer(e){return d[e]}const p=0;const f=1;const y=2;const v=3;function parseParams(e){const t=[];let n=p;let d="";let D=false;let M=false;let U=0;let V="";const j=e.length;for(var K=0;K{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbortError=void 0;class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}t.AbortError=AbortError},36227:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isOAuth2TokenCredential=isOAuth2TokenCredential;t.isBearerTokenCredential=isBearerTokenCredential;t.isBasicCredential=isBasicCredential;t.isApiKeyCredential=isApiKeyCredential;function isOAuth2TokenCredential(e){return"getOAuth2Token"in e}function isBearerTokenCredential(e){return"getBearerToken"in e}function isBasicCredential(e){return"username"in e&&"password"in e}function isApiKeyCredential(e){return"key"in e}},43097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},92097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71408:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiVersionPolicyName=void 0;t.apiVersionPolicy=apiVersionPolicy;t.apiVersionPolicyName="ApiVersionPolicy";function apiVersionPolicy(e){return{name:t.apiVersionPolicyName,sendRequest:(t,n)=>{const i=new URL(t.url);if(!i.searchParams.get("api-version")&&e.apiVersion){t.url=`${t.url}${Array.from(i.searchParams.keys()).length>0?"&":"?"}api-version=${e.apiVersion}`}return n(t)}}}},88728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultPipeline=createDefaultPipeline;t.getCachedDefaultHttpsClient=getCachedDefaultHttpsClient;const i=n(69468);const o=n(91810);const d=n(71408);const p=n(36227);const f=n(42095);const y=n(15756);const v=n(89709);const D=n(20219);let M;function createDefaultPipeline(e={}){const t=(0,o.createPipelineFromOptions)(e);t.addPolicy((0,d.apiVersionPolicy)(e));const{credential:n,authSchemes:i,allowInsecureConnection:M}=e;if(n){if((0,p.isApiKeyCredential)(n)){t.addPolicy((0,f.apiKeyAuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}else if((0,p.isBasicCredential)(n)){t.addPolicy((0,y.basicAuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}else if((0,p.isBearerTokenCredential)(n)){t.addPolicy((0,v.bearerAuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}else if((0,p.isOAuth2TokenCredential)(n)){t.addPolicy((0,D.oauth2AuthenticationPolicy)({authSchemes:i,credential:n,allowInsecureConnection:M}))}}return t}function getCachedDefaultHttpsClient(){if(!M){M=(0,i.createDefaultHttpClient)()}return M}},86191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getClient=getClient;const i=n(88728);const o=n(16311);const d=n(37088);const p=n(85086);function getClient(e,t={}){var n,o,p;const f=(n=t.pipeline)!==null&&n!==void 0?n:(0,i.createDefaultPipeline)(t);if((o=t.additionalPolicies)===null||o===void 0?void 0:o.length){for(const{policy:e,position:n}of t.additionalPolicies){const t=n==="perRetry"?"Sign":undefined;f.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:y,httpClient:v}=t;const D=(p=t.endpoint)!==null&&p!==void 0?p:e;const client=(e,...t)=>{const getUrl=n=>(0,d.buildRequestUrl)(D,e,t,Object.assign({allowInsecureConnection:y},n));return{get:(e={})=>buildOperation("GET",getUrl(e),f,e,y,v),post:(e={})=>buildOperation("POST",getUrl(e),f,e,y,v),put:(e={})=>buildOperation("PUT",getUrl(e),f,e,y,v),patch:(e={})=>buildOperation("PATCH",getUrl(e),f,e,y,v),delete:(e={})=>buildOperation("DELETE",getUrl(e),f,e,y,v),head:(e={})=>buildOperation("HEAD",getUrl(e),f,e,y,v),options:(e={})=>buildOperation("OPTIONS",getUrl(e),f,e,y,v),trace:(e={})=>buildOperation("TRACE",getUrl(e),f,e,y,v)}};return{path:client,pathUnchecked:client,pipeline:f}}function buildOperation(e,t,n,i,d,f){var y;d=(y=i.allowInsecureConnection)!==null&&y!==void 0?y:d;return{then:function(p,y){return(0,o.sendRequest)(e,t,n,Object.assign(Object.assign({},i),{allowInsecureConnection:d}),f).then(p,y)},async asBrowserStream(){if(p.isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return(0,o.sendRequest)(e,t,n,Object.assign(Object.assign({},i),{allowInsecureConnection:d,responseAsStream:true}),f)}},async asNodeStream(){if(p.isNodeLike){return(0,o.sendRequest)(e,t,n,Object.assign(Object.assign({},i),{allowInsecureConnection:d,responseAsStream:true}),f)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}},18240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildBodyPart=buildBodyPart;t.buildMultipartBody=buildMultipartBody;const i=n(9758);const o=n(4220);const d=n(82921);const p=n(48505);function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if((0,p.isBinaryBody)(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){var t;const n=getHeaderValue(e,"content-disposition");if(n){return n}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const i=(t=e.dispositionType)!==null&&t!==void 0?t:"form-data";let o=i;if(e.name){o+=`; name=${escapeDispositionField(e.name)}`}let d=undefined;if(e.filename){d=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){d=t}}if(d){o+=`; filename=${escapeDispositionField(d)}`}return o}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if((0,p.isBinaryBody)(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return(0,d.stringToUint8Array)(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return(0,d.stringToUint8Array)(JSON.stringify(e),"utf-8")}throw new i.RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){var t;const n=getPartContentType(e);const i=getContentDisposition(e);const d=(0,o.createHttpHeaders)((t=e.headers)!==null&&t!==void 0?t:{});if(n){d.set("content-type",n)}if(i){d.set("content-disposition",i)}const p=normalizeBody(e.body,n);return{headers:d,body:p}}function buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}},19635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.operationOptionsToRequestParameters=operationOptionsToRequestParameters;function operationOptionsToRequestParameters(e){var t,n,i,o,d,p;return{allowInsecureConnection:(t=e.requestOptions)===null||t===void 0?void 0:t.allowInsecureConnection,timeout:(n=e.requestOptions)===null||n===void 0?void 0:n.timeout,skipUrlEncoding:(i=e.requestOptions)===null||i===void 0?void 0:i.skipUrlEncoding,abortSignal:e.abortSignal,onUploadProgress:(o=e.requestOptions)===null||o===void 0?void 0:o.onUploadProgress,onDownloadProgress:(d=e.requestOptions)===null||d===void 0?void 0:d.onDownloadProgress,headers:Object.assign({},(p=e.requestOptions)===null||p===void 0?void 0:p.headers),onResponse:e.onResponse}}},97332:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=createRestError;const i=n(9758);const o=n(4220);function createRestError(e,t){var n,o,d;const p=typeof e==="string"?t:e;const f=(o=(n=p.body)===null||n===void 0?void 0:n.error)!==null&&o!==void 0?o:p.body;const y=typeof e==="string"?e:(d=f===null||f===void 0?void 0:f.message)!==null&&d!==void 0?d:`Unexpected status code: ${p.status}`;return new i.RestError(y,{statusCode:statusCodeToNumber(p.status),code:f===null||f===void 0?void 0:f.code,request:p.request,response:toPipelineResponse(p)})}function toPipelineResponse(e){var t;return{headers:(0,o.createHttpHeaders)(e.headers),request:e.request,status:(t=statusCodeToNumber(e.status))!==null&&t!==void 0?t:-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}},16311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sendRequest=sendRequest;const i=n(9758);const o=n(4220);const d=n(72305);const p=n(88728);const f=n(48505);const y=n(18240);async function sendRequest(e,t,n,o={},d){var f;const y=d!==null&&d!==void 0?d:(0,p.getCachedDefaultHttpsClient)();const v=buildPipelineRequest(e,t,o);try{const e=await n.sendRequest(y,v);const t=e.headers.toJSON();const i=(f=e.readableStreamBody)!==null&&f!==void 0?f:e.browserStreamBody;const d=o.responseAsStream||i!==undefined?undefined:getResponseBody(e);const p=i!==null&&i!==void 0?i:d;if(o===null||o===void 0?void 0:o.onResponse){o.onResponse(Object.assign(Object.assign({},e),{request:v,rawHeaders:t,parsedBody:d}))}return{request:v,headers:t,status:`${e.status}`,body:p}}catch(e){if((0,i.isRestError)(e)&&e.response&&o.onResponse){const{response:t}=e;const n=t.headers.toJSON();o===null||o===void 0?void 0:o.onResponse(Object.assign(Object.assign({},t),{request:v,rawHeaders:n}),e)}throw e}}function getRequestContentType(e={}){var t,n,i;return(i=(t=e.contentType)!==null&&t!==void 0?t:(n=e.headers)===null||n===void 0?void 0:n["content-type"])!==null&&i!==void 0?i:getContentType(e.body)}function getContentType(e){if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){var i,p,f;const y=getRequestContentType(n);const{body:v,multipartBody:D}=getRequestBody(n.body,y);const M=v!==undefined||D!==undefined;const U=(0,o.createHttpHeaders)(Object.assign(Object.assign(Object.assign({},n.headers?n.headers:{}),{accept:(f=(i=n.accept)!==null&&i!==void 0?i:(p=n.headers)===null||p===void 0?void 0:p.accept)!==null&&f!==void 0?f:"application/json"}),M&&y&&{"content-type":y}));return(0,d.createPipelineRequest)({url:t,method:e,body:v,multipartBody:D,headers:U,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if((0,f.isReadableStream)(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:(0,y.buildMultipartBody)(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){var t,n;const i=(t=e.headers.get("content-type"))!==null&&t!==void 0?t:"";const o=i.split(";")[0];const d=(n=e.bodyAsText)!==null&&n!==void 0?n:"";if(o==="text/plain"){return String(d)}try{return d?JSON.parse(d):undefined}catch(t){if(o==="application/json"){throw createParseError(e,t)}return String(d)}}function createParseError(e,t){var n;const o=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const d=(n=t.code)!==null&&n!==void 0?n:i.RestError.PARSE_ERROR;return new i.RestError(o,{code:d,statusCode:e.status,request:e.request,response:e})}},37088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildRequestUrl=buildRequestUrl;t.buildBaseUrl=buildBaseUrl;t.replaceAll=replaceAll;function isQueryParameterWithOptions(e){const t=e.value;return t!==undefined&&t.toString!==undefined&&typeof t.toString==="function"}function buildRequestUrl(e,t,n,i={}){if(t.startsWith("https://")||t.startsWith("http://")){return t}e=buildBaseUrl(e,i);t=buildRoutePath(t,n,i);const o=appendQueryParams(`${e}/${t}`,i);const d=new URL(o);return d.toString().replace(/([^:]\/)\/+/g,"$1")}function getQueryParamValue(e,t,n,i){let o;if(n==="pipeDelimited"){o="|"}else if(n==="spaceDelimited"){o="%20"}else{o=","}let d;if(Array.isArray(i)){d=i}else if(typeof i==="object"&&i.toString===Object.prototype.toString){d=Object.entries(i).flat()}else{d=[i]}const p=d.map((n=>{if(n===null||n===undefined){return""}if(!n.toString||typeof n.toString!=="function"){throw new Error(`Query parameters must be able to be represented as string, ${e} can't`)}const i=n.toISOString!==undefined?n.toISOString():n.toString();return t?i:encodeURIComponent(i)})).join(o);return`${t?e:encodeURIComponent(e)}=${p}`}function appendQueryParams(e,t={}){var n,i,o,d;if(!t.queryParameters){return e}const p=new URL(e);const f=t.queryParameters;const y=[];for(const e of Object.keys(f)){const p=f[e];if(p===undefined||p===null){continue}const v=isQueryParameterWithOptions(p);const D=v?p.value:p;const M=v?(n=p.explode)!==null&&n!==void 0?n:false:false;const U=v&&p.style?p.style:"form";if(M){if(Array.isArray(D)){for(const n of D){y.push(getQueryParamValue(e,(i=t.skipUrlEncoding)!==null&&i!==void 0?i:false,U,n))}}else if(typeof D==="object"){for(const[e,n]of Object.entries(D)){y.push(getQueryParamValue(e,(o=t.skipUrlEncoding)!==null&&o!==void 0?o:false,U,n))}}else{throw new Error("explode can only be set to true for objects and arrays")}}else{y.push(getQueryParamValue(e,(d=t.skipUrlEncoding)!==null&&d!==void 0?d:false,U,D))}}if(p.search!==""){p.search+="&"}p.search+=y.join("&");return p.toString()}function buildBaseUrl(e,t){var n;if(!t.pathParameters){return e}const i=t.pathParameters;for(const[o,d]of Object.entries(i)){if(d===undefined||d===null){throw new Error(`Path parameters ${o} must not be undefined or null`)}if(!d.toString||typeof d.toString!=="function"){throw new Error(`Path parameters must be able to be represented as string, ${o} can't`)}let i=d.toISOString!==undefined?d.toISOString():String(d);if(!t.skipUrlEncoding){i=encodeURIComponent(d)}e=(n=replaceAll(e,`{${o}}`,i))!==null&&n!==void 0?n:""}return e}function buildRoutePath(e,t,n={}){var i;for(const o of t){const t=typeof o==="object"&&((i=o.allowReserved)!==null&&i!==void 0?i:false);let d=typeof o==="object"?o.value:o;if(!n.skipUrlEncoding&&!t){d=encodeURIComponent(d)}e=e.replace(/\{[\w-]+\}/,String(d))}return e}function replaceAll(e,t,n){return!e||!t?e:e.split(t).join(n||"")}},31255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_RETRY_POLICY_COUNT=t.SDK_VERSION=void 0;t.SDK_VERSION="0.3.0";t.DEFAULT_RETRY_POLICY_COUNT=3},91810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineFromOptions=createPipelineFromOptions;const i=n(47129);const o=n(22338);const d=n(92187);const p=n(91691);const f=n(35035);const y=n(32462);const v=n(14197);const D=n(85086);const M=n(80067);const U=n(85366);const V=n(96690);const j=n(27427);function createPipelineFromOptions(e){const t=(0,o.createEmptyPipeline)();if(D.isNodeLike){if(e.agent){t.addPolicy((0,U.agentPolicy)(e.agent))}if(e.tlsOptions){t.addPolicy((0,V.tlsPolicy)(e.tlsOptions))}t.addPolicy((0,M.proxyPolicy)(e.proxyOptions));t.addPolicy((0,f.decompressResponsePolicy)())}t.addPolicy((0,v.formDataPolicy)(),{beforePolicies:[j.multipartPolicyName]});t.addPolicy((0,p.userAgentPolicy)(e.userAgentOptions));t.addPolicy((0,j.multipartPolicy)(),{afterPhase:"Deserialize"});t.addPolicy((0,y.defaultRetryPolicy)(e.retryOptions),{phase:"Retry"});if(D.isNodeLike){t.addPolicy((0,d.redirectPolicy)(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy((0,i.logPolicy)(e.loggingOptions),{afterPhase:"Sign"});return t}},69468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDefaultHttpClient=createDefaultHttpClient;const i=n(21167);function createDefaultHttpClient(){return(0,i.createNodeHttpClient)()}},4220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createHttpHeaders=createHttpHeaders;function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){var t;return(t=this._headersMap.get(normalizeName(e)))===null||t===void 0?void 0:t.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function createHttpHeaders(e){return new HttpHeadersImpl(e)}},41958:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRestError=t.operationOptionsToRequestParameters=t.getClient=t.createDefaultHttpClient=t.uint8ArrayToString=t.stringToUint8Array=t.isRestError=t.RestError=t.createEmptyPipeline=t.createPipelineRequest=t.createHttpHeaders=t.TypeSpecRuntimeLogger=t.setLogLevel=t.getLogLevel=t.createClientLogger=t.AbortError=void 0;const i=n(61860);var o=n(99992);Object.defineProperty(t,"AbortError",{enumerable:true,get:function(){return o.AbortError}});var d=n(18459);Object.defineProperty(t,"createClientLogger",{enumerable:true,get:function(){return d.createClientLogger}});Object.defineProperty(t,"getLogLevel",{enumerable:true,get:function(){return d.getLogLevel}});Object.defineProperty(t,"setLogLevel",{enumerable:true,get:function(){return d.setLogLevel}});Object.defineProperty(t,"TypeSpecRuntimeLogger",{enumerable:true,get:function(){return d.TypeSpecRuntimeLogger}});var p=n(4220);Object.defineProperty(t,"createHttpHeaders",{enumerable:true,get:function(){return p.createHttpHeaders}});i.__exportStar(n(92097),t);i.__exportStar(n(43097),t);var f=n(72305);Object.defineProperty(t,"createPipelineRequest",{enumerable:true,get:function(){return f.createPipelineRequest}});var y=n(22338);Object.defineProperty(t,"createEmptyPipeline",{enumerable:true,get:function(){return y.createEmptyPipeline}});var v=n(9758);Object.defineProperty(t,"RestError",{enumerable:true,get:function(){return v.RestError}});Object.defineProperty(t,"isRestError",{enumerable:true,get:function(){return v.isRestError}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(69468);Object.defineProperty(t,"createDefaultHttpClient",{enumerable:true,get:function(){return M.createDefaultHttpClient}});var U=n(86191);Object.defineProperty(t,"getClient",{enumerable:true,get:function(){return U.getClient}});var V=n(19635);Object.defineProperty(t,"operationOptionsToRequestParameters",{enumerable:true,get:function(){return V.operationOptionsToRequestParameters}});var j=n(97332);Object.defineProperty(t,"createRestError",{enumerable:true,get:function(){return j.createRestError}})},3644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logger=void 0;const i=n(18459);t.logger=(0,i.createClientLogger)("ts-http-runtime")},36836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const i=n(38029);const o=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let d;let p=[];let f=[];const y=[];if(o){enable(o)}const v=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:i.log});function enable(e){d=e;p=[];f=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){f.push(new RegExp(`^${e.substr(1)}$`))}else{p.push(new RegExp(`^${e}$`))}}for(const e of y){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of f){if(t.test(e)){return false}}for(const t of p){if(t.test(e)){return true}}return false}function disable(){const e=d||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:v.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}y.push(t);return t}function destroy(){const e=y.indexOf(this);if(e>=0){y.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}t["default"]=v},82490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createLoggerContext=void 0;var i=n(18459);Object.defineProperty(t,"createLoggerContext",{enumerable:true,get:function(){return i.createLoggerContext}})},38029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.log=log;const i=n(61860);const o=n(48161);const d=i.__importDefault(n(57975));const p=i.__importStar(n(1708));function log(e,...t){p.stderr.write(`${d.default.format(e,...t)}${o.EOL}`)}},18459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TypeSpecRuntimeLogger=void 0;t.createLoggerContext=createLoggerContext;t.setLogLevel=setLogLevel;t.getLogLevel=getLogLevel;t.createClientLogger=createClientLogger;const i=n(61860);const o=i.__importDefault(n(36836));const d=["verbose","info","warning","error"];const p={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return d.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let i;const f=(0,o.default)(e.namespace);f.log=(...e)=>{o.default.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${d.join(",")}`)}i=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}o.default.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${d.join(", ")}.`)}}function shouldEnable(e){return Boolean(i&&p[e.level]<=p[i])}function createLogger(e,n){const i=Object.assign(e.extend(n),{level:n});patchLogMethod(e,i);if(shouldEnable(i)){const e=o.default.disable();o.default.enable(e+","+i.namespace)}t.add(i);return i}function contextGetLogLevel(){return i}function contextCreateClientLogger(e){const t=f.extend(e);patchLogMethod(f,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:f}}const f=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});t.TypeSpecRuntimeLogger=f.logger;function setLogLevel(e){f.setLogLevel(e)}function getLogLevel(){return f.getLogLevel()}function createClientLogger(e){return f.createClientLogger(e)}},21167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBodyLength=getBodyLength;t.createNodeHttpClient=createNodeHttpClient;const i=n(61860);const o=i.__importStar(n(37067));const d=i.__importStar(n(44708));const p=i.__importStar(n(38522));const f=n(57075);const y=n(99992);const v=n(4220);const D=n(9758);const M=n(3644);const U=n(7784);const V={};function isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends f.Transform{_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.loadedBytes=0;this.progressCallback=e}}class NodeHttpClient{constructor(){this.cachedHttpsAgents=new WeakMap}async sendRequest(e){var t,n,i;const o=new AbortController;let d;if(e.abortSignal){if(e.abortSignal.aborted){throw new y.AbortError("The operation was aborted. Request has already been canceled.")}d=e=>{if(e.type==="abort"){o.abort()}};e.abortSignal.addEventListener("abort",d)}let p;if(e.timeout>0){p=setTimeout((()=>{const t=new U.Sanitizer;M.logger.info(`request to '${t.sanitizeUrl(e.url)}' timed out. canceling...`);o.abort()}),e.timeout)}const f=e.headers.get("Accept-Encoding");const v=(f===null||f===void 0?void 0:f.includes("gzip"))||(f===null||f===void 0?void 0:f.includes("deflate"));let D=typeof e.body==="function"?e.body():e.body;if(D&&!e.headers.has("Content-Length")){const t=getBodyLength(D);if(t!==null){e.headers.set("Content-Length",t)}}let V;try{if(D&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{M.logger.error("Error in upload progress",e)}));if(isReadableStream(D)){D.pipe(n)}else{n.end(D)}D=n}const d=await this.makeRequest(e,o,D);if(p!==undefined){clearTimeout(p)}const f=getResponseHeaders(d);const y=(t=d.statusCode)!==null&&t!==void 0?t:0;const U={status:y,headers:f,request:e};if(e.method==="HEAD"){d.resume();return U}V=v?getDecodedResponseStream(d,f):d;const j=e.onDownloadProgress;if(j){const e=new ReportTransform(j);e.on("error",(e=>{M.logger.error("Error in download progress",e)}));V.pipe(e);V=e}if(((n=e.streamResponseStatusCodes)===null||n===void 0?void 0:n.has(Number.POSITIVE_INFINITY))||((i=e.streamResponseStatusCodes)===null||i===void 0?void 0:i.has(U.status))){U.readableStreamBody=V}else{U.bodyAsText=await streamToText(V)}return U}finally{if(e.abortSignal&&d){let t=Promise.resolve();if(isReadableStream(D)){t=isStreamComplete(D)}let n=Promise.resolve();if(isReadableStream(V)){n=isStreamComplete(V)}Promise.all([t,n]).then((()=>{var t;if(d){(t=e.abortSignal)===null||t===void 0?void 0:t.removeEventListener("abort",d)}})).catch((e=>{M.logger.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){var i;const p=new URL(e.url);const f=p.protocol!=="https:";if(f&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const v=(i=e.agent)!==null&&i!==void 0?i:this.getOrCreateAgent(e,f);const U=Object.assign({agent:v,hostname:p.hostname,path:`${p.pathname}${p.search}`,port:p.port,method:e.method,headers:e.headers.toJSON({preserveCase:true})},e.requestOverrides);return new Promise(((i,p)=>{const v=f?o.request(U,i):d.request(U,i);v.once("error",(t=>{var n;p(new D.RestError(t.message,{code:(n=t.code)!==null&&n!==void 0?n:D.RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new y.AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");v.destroy(e);p(e)}));if(n&&isReadableStream(n)){n.pipe(v)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){v.end(n)}else if(isArrayBuffer(n)){v.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{M.logger.error("Unrecognized body type",n);p(new D.RestError("Unrecognized body type"))}}else{v.end()}}))}getOrCreateAgent(e,t){var n;const i=e.disableKeepAlive;if(t){if(i){return o.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new o.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(i&&!e.tlsSettings){return d.globalAgent}const t=(n=e.tlsSettings)!==null&&n!==void 0?n:V;let o=this.cachedHttpsAgents.get(t);if(o&&o.options.keepAlive===!i){return o}M.logger.info("No cached TLS Agent exist, creating a new Agent");o=new d.Agent(Object.assign({keepAlive:!i},t));this.cachedHttpsAgents.set(t,o);return o}}}function getResponseHeaders(e){const t=(0,v.createHttpHeaders)();for(const n of Object.keys(e.headers)){const i=e.headers[n];if(Array.isArray(i)){if(i.length>0){t.set(n,i[0])}}else if(i){t.set(n,i)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=p.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=p.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const i=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){i.push(e)}else{i.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(i).toString("utf8"))}));e.on("error",(e=>{if(e&&(e===null||e===void 0?void 0:e.name)==="AbortError"){n(e)}else{n(new D.RestError(`Error reading response as text: ${e.message}`,{code:D.RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}},22338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createEmptyPipeline=createEmptyPipeline;const n=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{constructor(e){var t;this._policies=[];this._policies=(t=e===null||e===void 0?void 0:e.slice(0))!==null&&t!==void 0?t:[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!n.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!n.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const i=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return i(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const i=createPhase("None");const o=createPhase("Deserialize");const d=createPhase("Retry");const p=createPhase("Sign");const f=[n,i,o,d,p];function getPhase(e){if(e==="Retry"){return d}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return o}else if(e==="Sign"){return p}else{return i}}for(const e of this._policies){const n=e.policy;const i=e.options;const o=n.name;if(t.has(o)){throw new Error("Duplicate policy names not allowed in pipeline")}const d={policy:n,dependsOn:new Set,dependants:new Set};if(i.afterPhase){d.afterPhase=getPhase(i.afterPhase);d.afterPhase.hasAfterPolicies=true}t.set(o,d);const p=getPhase(i.phase);p.policies.add(d)}for(const e of this._policies){const{policy:n,options:i}=e;const o=n.name;const d=t.get(o);if(!d){throw new Error(`Missing node for policy ${o}`)}if(i.afterPolicies){for(const e of i.afterPolicies){const n=t.get(e);if(n){d.dependsOn.add(n);n.dependants.add(d)}}}if(i.beforePolicies){for(const e of i.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(d);d.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const i of n.policies){if(i.afterPhase&&(!i.afterPhase.hasRun||i.afterPhase.policies.size)){continue}if(i.dependsOn.size===0){e.push(i.policy);for(const e of i.dependants){e.dependsOn.delete(i)}t.delete(i.policy.name);n.policies.delete(i)}}}function walkPhases(){for(const e of f){walkPhase(e);if(e.policies.size>0&&e!==i){if(!i.hasRun){walkPhase(i)}return}if(e.hasAfterPolicies){walkPhase(i)}}}let y=0;while(t.size>0){y++;const t=e.length;walkPhases();if(e.length<=t&&y>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function createEmptyPipeline(){return HttpPipeline.create()}},72305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPipelineRequest=createPipelineRequest;const i=n(4220);const o=n(5023);class PipelineRequestImpl{constructor(e){var t,n,d,p,f,y,v;this.url=e.url;this.body=e.body;this.headers=(t=e.headers)!==null&&t!==void 0?t:(0,i.createHttpHeaders)();this.method=(n=e.method)!==null&&n!==void 0?n:"GET";this.timeout=(d=e.timeout)!==null&&d!==void 0?d:0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=(p=e.disableKeepAlive)!==null&&p!==void 0?p:false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=(f=e.withCredentials)!==null&&f!==void 0?f:false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||(0,o.randomUUID)();this.allowInsecureConnection=(y=e.allowInsecureConnection)!==null&&y!==void 0?y:false;this.enableBrowserStreams=(v=e.enableBrowserStreams)!==null&&v!==void 0?v:false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function createPipelineRequest(e){return new PipelineRequestImpl(e)}},85366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.agentPolicyName=void 0;t.agentPolicy=agentPolicy;t.agentPolicyName="agentPolicy";function agentPolicy(e){return{name:t.agentPolicyName,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}},42095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.apiKeyAuthenticationPolicyName=void 0;t.apiKeyAuthenticationPolicy=apiKeyAuthenticationPolicy;const i=n(42302);t.apiKeyAuthenticationPolicyName="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy(e){return{name:t.apiKeyAuthenticationPolicyName,async sendRequest(t,n){var o,d;(0,i.ensureSecureConnection)(t,e);const p=(d=(o=t.authSchemes)!==null&&o!==void 0?o:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="apiKey"));if(!p){return n(t)}if(p.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${p.apiKeyLocation}`)}t.headers.set(p.name,e.credential.key);return n(t)}}}},15756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.basicAuthenticationPolicyName=void 0;t.basicAuthenticationPolicy=basicAuthenticationPolicy;const i=n(82921);const o=n(42302);t.basicAuthenticationPolicyName="bearerAuthenticationPolicy";function basicAuthenticationPolicy(e){return{name:t.basicAuthenticationPolicyName,async sendRequest(t,n){var d,p;(0,o.ensureSecureConnection)(t,e);const f=(p=(d=t.authSchemes)!==null&&d!==void 0?d:e.authSchemes)===null||p===void 0?void 0:p.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!f){return n(t)}const{username:y,password:v}=e.credential;const D=(0,i.uint8ArrayToString)((0,i.stringToUint8Array)(`${y}:${v}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${D}`);return n(t)}}}},89709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bearerAuthenticationPolicyName=void 0;t.bearerAuthenticationPolicy=bearerAuthenticationPolicy;const i=n(42302);t.bearerAuthenticationPolicyName="bearerAuthenticationPolicy";function bearerAuthenticationPolicy(e){return{name:t.bearerAuthenticationPolicyName,async sendRequest(t,n){var o,d;(0,i.ensureSecureConnection)(t,e);const p=(d=(o=t.authSchemes)!==null&&o!==void 0?o:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!p){return n(t)}const f=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ensureSecureConnection=ensureSecureConnection;const i=n(3644);let o=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";i.logger.warning(e);if(typeof(process===null||process===void 0?void 0:process.emitWarning)==="function"&&!o){o=true;process.emitWarning(e)}}function ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}},20219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oauth2AuthenticationPolicyName=void 0;t.oauth2AuthenticationPolicy=oauth2AuthenticationPolicy;const i=n(42302);t.oauth2AuthenticationPolicyName="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy(e){return{name:t.oauth2AuthenticationPolicyName,async sendRequest(t,n){var o,d;(0,i.ensureSecureConnection)(t,e);const p=(d=(o=t.authSchemes)!==null&&o!==void 0?o:e.authSchemes)===null||d===void 0?void 0:d.find((e=>e.kind==="oauth2"));if(!p){return n(t)}const f=await e.credential.getOAuth2Token(p.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${f}`);return n(t)}}}},35035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decompressResponsePolicyName=void 0;t.decompressResponsePolicy=decompressResponsePolicy;t.decompressResponsePolicyName="decompressResponsePolicy";function decompressResponsePolicy(){return{name:t.decompressResponsePolicyName,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}},32462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultRetryPolicyName=void 0;t.defaultRetryPolicy=defaultRetryPolicy;const i=n(98102);const o=n(21112);const d=n(43345);const p=n(31255);t.defaultRetryPolicyName="defaultRetryPolicy";function defaultRetryPolicy(e={}){var n;return{name:t.defaultRetryPolicyName,sendRequest:(0,d.retryPolicy)([(0,o.throttlingRetryStrategy)(),(0,i.exponentialRetryStrategy)(e)],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:p.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},74656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryPolicyName=void 0;t.exponentialRetryPolicy=exponentialRetryPolicy;const i=n(98102);const o=n(43345);const d=n(31255);t.exponentialRetryPolicyName="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){var t;return(0,o.retryPolicy)([(0,i.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreSystemErrors:true}))],{maxRetries:(t=e.maxRetries)!==null&&t!==void 0?t:d.DEFAULT_RETRY_POLICY_COUNT})}},14197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formDataPolicyName=void 0;t.formDataPolicy=formDataPolicy;const i=n(82921);const o=n(85086);const d=n(4220);t.formDataPolicyName="formDataPolicy";function formDataToFormDataMap(e){var t;const n={};for(const[i,o]of e.entries()){(t=n[i])!==null&&t!==void 0?t:n[i]=[];n[i].push(o)}return n}function formDataPolicy(){return{name:t.formDataPolicyName,async sendRequest(e,t){if(o.isNodeLike&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,i]of Object.entries(e)){if(Array.isArray(i)){for(const e of i){t.append(n,e.toString())}}else{t.append(n,i.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n!==null&&n!==void 0?n:"multipart/form-data");const o=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){o.push({headers:(0,d.createHttpHeaders)({"Content-Disposition":`form-data; name="${t}"`}),body:(0,i.stringToUint8Array)(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const i=(0,d.createHttpHeaders)();i.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);i.set("Content-Type",e.type||"application/octet-stream");o.push({headers:i,body:e})}}}t.multipartBody={parts:o}}},44960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=t.userAgentPolicy=t.tlsPolicyName=t.tlsPolicy=t.redirectPolicyName=t.redirectPolicy=t.getDefaultProxySettings=t.proxyPolicyName=t.proxyPolicy=t.multipartPolicyName=t.multipartPolicy=t.logPolicyName=t.logPolicy=t.formDataPolicyName=t.formDataPolicy=t.throttlingRetryPolicyName=t.throttlingRetryPolicy=t.systemErrorRetryPolicyName=t.systemErrorRetryPolicy=t.retryPolicy=t.exponentialRetryPolicyName=t.exponentialRetryPolicy=t.defaultRetryPolicyName=t.defaultRetryPolicy=t.decompressResponsePolicyName=t.decompressResponsePolicy=t.agentPolicyName=t.agentPolicy=void 0;var i=n(85366);Object.defineProperty(t,"agentPolicy",{enumerable:true,get:function(){return i.agentPolicy}});Object.defineProperty(t,"agentPolicyName",{enumerable:true,get:function(){return i.agentPolicyName}});var o=n(35035);Object.defineProperty(t,"decompressResponsePolicy",{enumerable:true,get:function(){return o.decompressResponsePolicy}});Object.defineProperty(t,"decompressResponsePolicyName",{enumerable:true,get:function(){return o.decompressResponsePolicyName}});var d=n(32462);Object.defineProperty(t,"defaultRetryPolicy",{enumerable:true,get:function(){return d.defaultRetryPolicy}});Object.defineProperty(t,"defaultRetryPolicyName",{enumerable:true,get:function(){return d.defaultRetryPolicyName}});var p=n(74656);Object.defineProperty(t,"exponentialRetryPolicy",{enumerable:true,get:function(){return p.exponentialRetryPolicy}});Object.defineProperty(t,"exponentialRetryPolicyName",{enumerable:true,get:function(){return p.exponentialRetryPolicyName}});var f=n(43345);Object.defineProperty(t,"retryPolicy",{enumerable:true,get:function(){return f.retryPolicy}});var y=n(92418);Object.defineProperty(t,"systemErrorRetryPolicy",{enumerable:true,get:function(){return y.systemErrorRetryPolicy}});Object.defineProperty(t,"systemErrorRetryPolicyName",{enumerable:true,get:function(){return y.systemErrorRetryPolicyName}});var v=n(24728);Object.defineProperty(t,"throttlingRetryPolicy",{enumerable:true,get:function(){return v.throttlingRetryPolicy}});Object.defineProperty(t,"throttlingRetryPolicyName",{enumerable:true,get:function(){return v.throttlingRetryPolicyName}});var D=n(14197);Object.defineProperty(t,"formDataPolicy",{enumerable:true,get:function(){return D.formDataPolicy}});Object.defineProperty(t,"formDataPolicyName",{enumerable:true,get:function(){return D.formDataPolicyName}});var M=n(47129);Object.defineProperty(t,"logPolicy",{enumerable:true,get:function(){return M.logPolicy}});Object.defineProperty(t,"logPolicyName",{enumerable:true,get:function(){return M.logPolicyName}});var U=n(27427);Object.defineProperty(t,"multipartPolicy",{enumerable:true,get:function(){return U.multipartPolicy}});Object.defineProperty(t,"multipartPolicyName",{enumerable:true,get:function(){return U.multipartPolicyName}});var V=n(80067);Object.defineProperty(t,"proxyPolicy",{enumerable:true,get:function(){return V.proxyPolicy}});Object.defineProperty(t,"proxyPolicyName",{enumerable:true,get:function(){return V.proxyPolicyName}});Object.defineProperty(t,"getDefaultProxySettings",{enumerable:true,get:function(){return V.getDefaultProxySettings}});var j=n(92187);Object.defineProperty(t,"redirectPolicy",{enumerable:true,get:function(){return j.redirectPolicy}});Object.defineProperty(t,"redirectPolicyName",{enumerable:true,get:function(){return j.redirectPolicyName}});var K=n(96690);Object.defineProperty(t,"tlsPolicy",{enumerable:true,get:function(){return K.tlsPolicy}});Object.defineProperty(t,"tlsPolicyName",{enumerable:true,get:function(){return K.tlsPolicyName}});var ee=n(91691);Object.defineProperty(t,"userAgentPolicy",{enumerable:true,get:function(){return ee.userAgentPolicy}});Object.defineProperty(t,"userAgentPolicyName",{enumerable:true,get:function(){return ee.userAgentPolicyName}})},47129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logPolicyName=void 0;t.logPolicy=logPolicy;const i=n(3644);const o=n(7784);t.logPolicyName="logPolicy";function logPolicy(e={}){var n;const d=(n=e.logger)!==null&&n!==void 0?n:i.logger.info;const p=new o.Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:t.logPolicyName,async sendRequest(e,t){if(!d.enabled){return t(e)}d(`Request: ${p.sanitize(e)}`);const n=await t(e);d(`Response status code: ${n.status}`);d(`Headers: ${p.sanitize(n.headers)}`);return n}}}},27427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multipartPolicyName=void 0;t.multipartPolicy=multipartPolicy;const i=n(82921);const o=n(48505);const d=n(5023);const p=n(20547);function generateBoundary(){return`----AzSDKFormBoundary${(0,d.randomUUID)()}`}function encodeHeaders(e){let t="";for(const[n,i]of e){t+=`${n}: ${i}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if((0,o.isBlob)(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const o=[(0,i.stringToUint8Array)(`--${n}`,"utf-8"),...t.flatMap((e=>[(0,i.stringToUint8Array)("\r\n","utf-8"),(0,i.stringToUint8Array)(encodeHeaders(e.headers),"utf-8"),(0,i.stringToUint8Array)("\r\n","utf-8"),e.body,(0,i.stringToUint8Array)(`\r\n--${n}`,"utf-8")])),(0,i.stringToUint8Array)("--\r\n\r\n","utf-8")];const d=getTotalLength(o);if(d){e.headers.set("Content-Length",d)}e.body=await(0,p.concat)(o)}t.multipartPolicyName="multipartPolicy";const f=70;const y=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>f){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!y.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy(){return{name:t.multipartPolicyName,async sendRequest(e,t){var n;if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let i=e.multipartBody.boundary;const o=(n=e.headers.get("Content-Type"))!==null&&n!==void 0?n:"multipart/mixed";const d=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!d){throw new Error(`Got multipart request body, but content-type header was not multipart: ${o}`)}const[,p,f]=d;if(f&&i&&f!==i){throw new Error(`Multipart boundary was specified as ${f} in the header, but got ${i} in the request body`)}i!==null&&i!==void 0?i:i=f;if(i){assertValidBoundary(i)}else{i=generateBoundary()}e.headers.set("Content-Type",`${p}; boundary=${i}`);await buildRequestBody(e,e.multipartBody.parts,i);e.multipartBody=undefined;return t(e)}}}},80067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.globalNoProxyList=t.proxyPolicyName=void 0;t.loadNoProxy=loadNoProxy;t.getDefaultProxySettings=getDefaultProxySettings;t.proxyPolicy=proxyPolicy;const i=n(3669);const o=n(81970);const d=n(3644);const p="HTTPS_PROXY";const f="HTTP_PROXY";const y="ALL_PROXY";const v="NO_PROXY";t.proxyPolicyName="proxyPolicy";t.globalNoProxyList=[];let D=false;const M=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(p);const t=getEnvironmentValue(y);const n=getEnvironmentValue(f);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const i=new URL(e).hostname;if(n===null||n===void 0?void 0:n.has(i)){return n.get(i)}let o=false;for(const e of t){if(e[0]==="."){if(i.endsWith(e)){o=true}else{if(i.length===e.length-1&&i===e.slice(1)){o=true}}}else{if(i===e){o=true}}}n===null||n===void 0?void 0:n.set(i,o);return o}function loadNoProxy(){const e=getEnvironmentValue(v);D=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch(t){throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const p=new URL(e.url);const f=p.protocol!=="https:";if(e.tlsSettings){d.logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const y=e.headers.toJSON();if(f){if(!t.httpProxyAgent){t.httpProxyAgent=new o.HttpProxyAgent(n,{headers:y})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new i.HttpsProxyAgent(n,{headers:y})}e.agent=t.httpsProxyAgent}}function proxyPolicy(e,n){if(!D){t.globalNoProxyList.push(...loadNoProxy())}const i=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const o={};return{name:t.proxyPolicyName,async sendRequest(e,d){var p;if(!e.proxySettings&&i&&!isBypassed(e.url,(p=n===null||n===void 0?void 0:n.customNoProxyList)!==null&&p!==void 0?p:t.globalNoProxyList,(n===null||n===void 0?void 0:n.customNoProxyList)?undefined:M)){setProxyAgentOnRequest(e,o,i)}else if(e.proxySettings){setProxyAgentOnRequest(e,o,getUrlFromProxySettings(e.proxySettings))}return d(e)}}}},92187:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redirectPolicyName=void 0;t.redirectPolicy=redirectPolicy;t.redirectPolicyName="redirectPolicy";const n=["GET","HEAD"];function redirectPolicy(e={}){const{maxRetries:n=20}=e;return{name:t.redirectPolicyName,async sendRequest(e,t){const i=await t(e);return handleRedirect(t,i,n)}}}async function handleRedirect(e,t,i,o=0){const{request:d,status:p,headers:f}=t;const y=f.get("location");if(y&&(p===300||p===301&&n.includes(d.method)||p===302&&n.includes(d.method)||p===303&&d.method==="POST"||p===307)&&o{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryPolicy=retryPolicy;const i=n(77566);const o=n(99992);const d=n(18459);const p=n(31255);const f=(0,d.createClientLogger)("ts-http-runtime retryPolicy");const y="retryPolicy";function retryPolicy(e,t={maxRetries:p.DEFAULT_RETRY_POLICY_COUNT}){const n=t.logger||f;return{name:y,async sendRequest(d,f){var y,v;let D;let M;let U=-1;e:while(true){U+=1;D=undefined;M=undefined;try{n.info(`Retry ${U}: Attempting to send request`,d.requestId);D=await f(d);n.info(`Retry ${U}: Received a response from request`,d.requestId)}catch(e){n.error(`Retry ${U}: Received an error from request`,d.requestId);M=e;if(!e||M.name!=="RestError"){throw e}D=M.response}if((y=d.abortSignal)===null||y===void 0?void 0:y.aborted){n.error(`Retry ${U}: Request aborted.`);const e=new o.AbortError;throw e}if(U>=((v=t.maxRetries)!==null&&v!==void 0?v:p.DEFAULT_RETRY_POLICY_COUNT)){n.info(`Retry ${U}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(M){throw M}else if(D){return D}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${U}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${U}: Processing retry strategy ${t.name}.`);const o=t.retry({retryCount:U,response:D,responseError:M});if(o.skipStrategy){e.info(`Retry ${U}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:f,redirectTo:y}=o;if(p){e.error(`Retry ${U}: Retry strategy ${t.name} throws error:`,p);throw p}if(f||f===0){e.info(`Retry ${U}: Retry strategy ${t.name} retries after ${f}`);await(0,i.delay)(f,undefined,{abortSignal:d.abortSignal});continue e}if(y){e.info(`Retry ${U}: Retry strategy ${t.name} redirects to ${y}`);d.url=y;continue e}}if(M){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw M}if(D){n.info(`None of the retry strategies could work with the received response. Returning it.`);return D}}}}}},92418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.systemErrorRetryPolicyName=void 0;t.systemErrorRetryPolicy=systemErrorRetryPolicy;const i=n(98102);const o=n(43345);const d=n(31255);t.systemErrorRetryPolicyName="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){var n;return{name:t.systemErrorRetryPolicyName,sendRequest:(0,o.retryPolicy)([(0,i.exponentialRetryStrategy)(Object.assign(Object.assign({},e),{ignoreHttpStatusCodes:true}))],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},24728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttlingRetryPolicyName=void 0;t.throttlingRetryPolicy=throttlingRetryPolicy;const i=n(21112);const o=n(43345);const d=n(31255);t.throttlingRetryPolicyName="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){var n;return{name:t.throttlingRetryPolicyName,sendRequest:(0,o.retryPolicy)([(0,i.throttlingRetryStrategy)()],{maxRetries:(n=e.maxRetries)!==null&&n!==void 0?n:d.DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}},96690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tlsPolicyName=void 0;t.tlsPolicy=tlsPolicy;t.tlsPolicyName="tlsPolicy";function tlsPolicy(e){return{name:t.tlsPolicyName,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}},91691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.userAgentPolicyName=void 0;t.userAgentPolicy=userAgentPolicy;const i=n(62731);const o=(0,i.getUserAgentHeaderName)();t.userAgentPolicyName="userAgentPolicy";function userAgentPolicy(e={}){const n=(0,i.getUserAgentValue)(e.userAgentPrefix);return{name:t.userAgentPolicyName,async sendRequest(e,t){if(!e.headers.has(o)){e.headers.set(o,await n)}return t(e)}}}},9758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestError=void 0;t.isRestError=isRestError;const i=n(52573);const o=n(37639);const d=n(7784);const p=new d.Sanitizer;class RestError extends Error{constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});Object.defineProperty(this,o.custom,{value:()=>`RestError: ${this.message} \n ${p.sanitize(Object.assign(Object.assign({},this),{request:this.request,response:this.response}))}`,enumerable:false});Object.setPrototypeOf(this,RestError.prototype)}}t.RestError=RestError;RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";function isRestError(e){if(e instanceof RestError){return true}return(0,i.isError)(e)&&e.name==="RestError"}},98102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exponentialRetryStrategy=exponentialRetryStrategy;t.isExponentialRetryResponse=isExponentialRetryResponse;t.isSystemError=isSystemError;const i=n(66776);const o=n(21112);const d=1e3;const p=1e3*64;function exponentialRetryStrategy(e={}){var t,n;const f=(t=e.retryDelayInMs)!==null&&t!==void 0?t:d;const y=(n=e.maxRetryDelayInMs)!==null&&n!==void 0?n:p;return{name:"exponentialRetryStrategy",retry({retryCount:t,response:n,responseError:d}){const p=isSystemError(d);const v=p&&e.ignoreSystemErrors;const D=isExponentialRetryResponse(n);const M=D&&e.ignoreHttpStatusCodes;const U=n&&((0,o.isThrottlingRetryResponse)(n)||!D);if(U||M||v){return{skipStrategy:true}}if(d&&!p&&!D){return{errorToThrow:d}}return(0,i.calculateRetryDelay)(t,{retryDelayInMs:f,maxRetryDelayInMs:y})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}},21112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isThrottlingRetryResponse=isThrottlingRetryResponse;t.throttlingRetryStrategy=throttlingRetryStrategy;const i=n(77566);const o="Retry-After";const d=["retry-after-ms","x-ms-retry-after-ms",o];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of d){const n=(0,i.parseHeaderValueAsNumber)(e,t);if(n===0||n){const e=t===o?1e3:1;return n*e}}const t=e.headers.get(o);if(!t)return;const n=Date.parse(t);const p=n-Date.now();return Number.isFinite(p)?Math.max(0,p):undefined}catch(e){return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}},82921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uint8ArrayToString=uint8ArrayToString;t.stringToUint8Array=stringToUint8Array;function uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function stringToUint8Array(e,t){return Buffer.from(e,t)}},85086:(e,t)=>{"use strict";var n,i,o,d;Object.defineProperty(t,"__esModule",{value:true});t.isReactNative=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isDeno=t.isWebWorker=t.isBrowser=void 0;t.isBrowser=typeof window!=="undefined"&&typeof window.document!=="undefined";t.isWebWorker=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((n=self.constructor)===null||n===void 0?void 0:n.name)==="DedicatedWorkerGlobalScope"||((i=self.constructor)===null||i===void 0?void 0:i.name)==="ServiceWorkerGlobalScope"||((o=self.constructor)===null||o===void 0?void 0:o.name)==="SharedWorkerGlobalScope");t.isDeno=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";t.isBun=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";t.isNodeLike=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean((d=globalThis.process.versions)===null||d===void 0?void 0:d.node);t.isNodeRuntime=t.isNodeLike&&!t.isBun&&!t.isDeno;t.isReactNative=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative"},20547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concat=concat;const i=n(61860);const o=n(2203);const d=n(48505);function streamAsyncIterator(){return i.__asyncGenerator(this,arguments,(function*streamAsyncIterator_1(){const e=this.getReader();try{while(true){const{done:t,value:n}=yield i.__await(e.read());if(t){return yield i.__await(void 0)}yield yield i.__await(n)}}finally{e.releaseLock()}}))}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return o.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return o.Readable.from(Buffer.from(e))}else if((0,d.isBlob)(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return o.Readable.from(function(){return i.__asyncGenerator(this,arguments,(function*(){var e,n,o,d;for(const v of t){try{for(var p=true,f=(n=void 0,i.__asyncValues(v)),y;y=yield i.__await(f.next()),e=y.done,!e;p=true){d=y.value;p=false;const e=d;yield yield i.__await(e)}}catch(e){n={error:e}}finally{try{if(!p&&!e&&(o=f.return))yield i.__await(o.call(f))}finally{if(n)throw n.error}}}}))}())}}},66776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.calculateRetryDelay=calculateRetryDelay;const i=n(78640);function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const d=o/2+(0,i.getRandomIntegerInclusive)(0,o/2);return{retryAfterInMs:d}}},52573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isError=isError;const i=n(53632);function isError(e){if((0,i.isObject)(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}},77566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=delay;t.parseHeaderValueAsNumber=parseHeaderValueAsNumber;const i=n(99992);const o="The operation was aborted.";function delay(e,t,n){return new Promise(((d,p)=>{let f=undefined;let y=undefined;const rejectOnAbort=()=>p(new i.AbortError((n===null||n===void 0?void 0:n.abortErrorMsg)?n===null||n===void 0?void 0:n.abortErrorMsg:o));const removeListeners=()=>{if((n===null||n===void 0?void 0:n.abortSignal)&&y){n.abortSignal.removeEventListener("abort",y)}};y=()=>{if(f){clearTimeout(f)}removeListeners();return rejectOnAbort()};if((n===null||n===void 0?void 0:n.abortSignal)&&n.abortSignal.aborted){return rejectOnAbort()}f=setTimeout((()=>{removeListeners();d(t)}),e);if(n===null||n===void 0?void 0:n.abortSignal){n.abortSignal.addEventListener("abort",y)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const i=Number(n);if(Number.isNaN(i))return;return i}},37639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.custom=void 0;const i=n(57975);t.custom=i.inspect.custom},95750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=t.uint8ArrayToString=t.stringToUint8Array=t.isWebWorker=t.isReactNative=t.isDeno=t.isNodeRuntime=t.isNodeLike=t.isBun=t.isBrowser=t.randomUUID=t.computeSha256Hmac=t.computeSha256Hash=t.isError=t.isObject=t.getRandomIntegerInclusive=t.calculateRetryDelay=void 0;var i=n(66776);Object.defineProperty(t,"calculateRetryDelay",{enumerable:true,get:function(){return i.calculateRetryDelay}});var o=n(78640);Object.defineProperty(t,"getRandomIntegerInclusive",{enumerable:true,get:function(){return o.getRandomIntegerInclusive}});var d=n(53632);Object.defineProperty(t,"isObject",{enumerable:true,get:function(){return d.isObject}});var p=n(52573);Object.defineProperty(t,"isError",{enumerable:true,get:function(){return p.isError}});var f=n(2016);Object.defineProperty(t,"computeSha256Hash",{enumerable:true,get:function(){return f.computeSha256Hash}});Object.defineProperty(t,"computeSha256Hmac",{enumerable:true,get:function(){return f.computeSha256Hmac}});var y=n(5023);Object.defineProperty(t,"randomUUID",{enumerable:true,get:function(){return y.randomUUID}});var v=n(85086);Object.defineProperty(t,"isBrowser",{enumerable:true,get:function(){return v.isBrowser}});Object.defineProperty(t,"isBun",{enumerable:true,get:function(){return v.isBun}});Object.defineProperty(t,"isNodeLike",{enumerable:true,get:function(){return v.isNodeLike}});Object.defineProperty(t,"isNodeRuntime",{enumerable:true,get:function(){return v.isNodeRuntime}});Object.defineProperty(t,"isDeno",{enumerable:true,get:function(){return v.isDeno}});Object.defineProperty(t,"isReactNative",{enumerable:true,get:function(){return v.isReactNative}});Object.defineProperty(t,"isWebWorker",{enumerable:true,get:function(){return v.isWebWorker}});var D=n(82921);Object.defineProperty(t,"stringToUint8Array",{enumerable:true,get:function(){return D.stringToUint8Array}});Object.defineProperty(t,"uint8ArrayToString",{enumerable:true,get:function(){return D.uint8ArrayToString}});var M=n(7784);Object.defineProperty(t,"Sanitizer",{enumerable:true,get:function(){return M.Sanitizer}})},53632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isObject=isObject;function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}},78640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRandomIntegerInclusive=getRandomIntegerInclusive;function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}},7784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Sanitizer=void 0;const i=n(53632);const o="REDACTED";const d=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const p=["api-version"];class Sanitizer{constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=d.concat(e);t=p.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return Object.assign(Object.assign({},n),{name:n.name,message:n.message})}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||(0,i.isObject)(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,o)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=o}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=o}}return t}}t.Sanitizer=Sanitizer},2016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.computeSha256Hmac=computeSha256Hmac;t.computeSha256Hash=computeSha256Hash;const i=n(77598);async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return(0,i.createHmac)("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return(0,i.createHash)("sha256").update(e).digest(t)}},48505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isNodeReadableStream=isNodeReadableStream;t.isWebReadableStream=isWebReadableStream;t.isBinaryBody=isBinaryBody;t.isReadableStream=isReadableStream;t.isBlob=isBlob;function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}},62731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getUserAgentHeaderName=getUserAgentHeaderName;t.getUserAgentValue=getUserAgentValue;const i=n(83196);const o=n(31255);function getUserAgentString(e){const t=[];for(const[n,i]of e){const e=i?`${n}/${i}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return(0,i.getHeaderName)()}async function getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",o.SDK_VERSION);await(0,i.setPlatformSpecificData)(t);const n=getUserAgentString(t);const d=e?`${e} ${n}`:n;return d}},83196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHeaderName=getHeaderName;t.setPlatformSpecificData=setPlatformSpecificData;const i=n(61860);const o=i.__importStar(n(48161));const d=i.__importStar(n(1708));function getHeaderName(){return"User-Agent"}async function setPlatformSpecificData(e){if(d&&d.versions){const t=d.versions;if(t.bun){e.set("Bun",t.bun)}else if(t.deno){e.set("Deno",t.deno)}else if(t.node){e.set("Node",t.node)}}e.set("OS",`(${o.arch()}-${o.type()}-${o.release()})`)}},5023:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=randomUUID;const o=n(77598);const d=typeof((i=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||i===void 0?void 0:i.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):o.randomUUID;function randomUUID(){return d()}},50591:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>ft,XMLParser:()=>st,XMLValidator:()=>re});const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let i=t.exec(e);for(;i;){const o=[];o.startIndex=t.lastIndex-i[0].length;const d=i.length;for(let e=0;e"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)y+=e[d];if(y=y.trim(),"/"===y[y.length-1]&&(y=y.substring(0,y.length-1),d--),!r(y)){let t;return t=0===y.trim().length?"Invalid space after '<'.":"Tag '"+y+"' is an invalid name.",x("InvalidTag",t,N(e,d))}const v=c(e,d);if(!1===v)return x("InvalidAttr","Attributes for '"+y+"' have open quote.",N(e,d));let D=v.value;if(d=v.index,"/"===D[D.length-1]){const n=d-D.length;D=D.substring(0,D.length-1);const o=g(D,t);if(!0!==o)return x(o.err.code,o.err.msg,N(e,n+o.err.line));i=!0}else if(f){if(!v.tagClosed)return x("InvalidTag","Closing tag '"+y+"' doesn't have proper closing.",N(e,d));if(D.trim().length>0)return x("InvalidTag","Closing tag '"+y+"' can't have attributes or invalid starting.",N(e,p));if(0===n.length)return x("InvalidTag","Closing tag '"+y+"' has not been opened.",N(e,p));{const t=n.pop();if(y!==t.tagName){let n=N(e,t.tagStartPos);return x("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+y+"'.",N(e,p))}0==n.length&&(o=!0)}}else{const f=g(D,t);if(!0!==f)return x(f.err.code,f.err.msg,N(e,d-D.length+f.err.line));if(!0===o)return x("InvalidXml","Multiple possible root nodes found.",N(e,d));-1!==t.unpairedTags.indexOf(y)||n.push({tagName:y,tagStartPos:p}),i=!0}for(d++;d0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function l(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t5&&"xml"===i)return x("InvalidXml","XML declaration allowed only at the start of the document.",N(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function h(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t"===e[t+2]){t+=2;break}return t}const p='"',f="'";function c(e,t){let n="",i="",o=!1;for(;t"===e[t]&&""===i){o=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:o}}const y=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(e,t){const n=s(e,y),i={};for(let e=0;e!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1};let D;D="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class T{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}function w(e,t){const n={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let i=1,o=!1,d=!1,p="";for(;t"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,i--):i--,0===i)break}else"["===e[t]?o=!0:p+=e[t];else{if(o&&C(e,"!ENTITY",t)){let i,o;t+=7,[i,o,t]=O(e,t+1),-1===o.indexOf("&")&&(n[i]={regx:RegExp(`&${i};`,"g"),val:o})}else if(o&&C(e,"!ELEMENT",t)){t+=8;const{index:n}=S(e,t+1);t=n}else if(o&&C(e,"!ATTLIST",t))t+=8;else if(o&&C(e,"!NOTATION",t)){t+=9;const{index:n}=A(e,t+1);t=n}else{if(!C(e,"!--",t))throw new Error("Invalid DOCTYPE");d=!0}i++,p=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}const P=(e,t)=>{for(;t{for(const n of e){if("string"==typeof n&&t===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}}:()=>!1}class k{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,16))}},this.addExternalEntities=F,this.parseXml=X,this.parseTextData=L,this.resolveNameSpace=B,this.buildAttributesMap=G,this.isItStopNode=Z,this.replaceEntitiesValue=R,this.readStopNodeData=J,this.saveTextToParentTag=q,this.addChild=Y,this.ignoreAttributesFn=_(this.options.ignoreAttributes)}}function F(e){const t=Object.keys(e);for(let n=0;n0)){p||(e=this.replaceEntitiesValue(e));const i=this.options.tagValueProcessor(t,e,n,o,d);return null==i?e:typeof i!=typeof e||i!==e?i:this.options.trimValues||e.trim()===e?H(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function B(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const K=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function G(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const n=s(e,K),i=n.length,o={};for(let e=0;e",d,"Closing Tag is not closed.");let p=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=p.indexOf(":");-1!==e&&(p=p.substr(e+1))}this.options.transformTagName&&(p=this.options.transformTagName(p)),n&&(i=this.saveTextToParentTag(i,n,o));const f=o.substring(o.lastIndexOf(".")+1);if(p&&-1!==this.options.unpairedTags.indexOf(p))throw new Error(`Unpaired tag can not be used as closing tag: `);let y=0;f&&-1!==this.options.unpairedTags.indexOf(f)?(y=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):y=o.lastIndexOf("."),o=o.substring(0,y),n=this.tagsNodeStack.pop(),i="",d=t}else if("?"===e[d+1]){let t=z(e,d,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,o),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new T(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,o,t.tagName)),this.addChild(n,e,o,d)}d=t.closeIndex+1}else if("!--"===e.substr(d+1,3)){const t=W(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const p=e.substring(d+4,t-2);i=this.saveTextToParentTag(i,n,o),n.add(this.options.commentPropName,[{[this.options.textNodeName]:p}])}d=t}else if("!D"===e.substr(d+1,2)){const t=w(e,d);this.docTypeEntities=t.entities,d=t.i}else if("!["===e.substr(d+1,2)){const t=W(e,"]]>",d,"CDATA is not closed.")-2,p=e.substring(d+9,t);i=this.saveTextToParentTag(i,n,o);let f=this.parseTextData(p,n.tagname,o,!0,!1,!0,!0);null==f&&(f=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:p}]):n.add(this.options.textNodeName,f),d=t+2}else{let p=z(e,d,this.options.removeNSPrefix),f=p.tagName;const y=p.rawTagName;let v=p.tagExp,D=p.attrExpPresent,M=p.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,o,!1));const U=n;U&&-1!==this.options.unpairedTags.indexOf(U.tagname)&&(n=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),f!==t.tagname&&(o+=o?"."+f:f);const V=d;if(this.isItStopNode(this.options.stopNodes,o,f)){let t="";if(v.length>0&&v.lastIndexOf("/")===v.length-1)"/"===f[f.length-1]?(f=f.substr(0,f.length-1),o=o.substr(0,o.length-1),v=f):v=v.substr(0,v.length-1),d=p.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(f))d=p.closeIndex;else{const n=this.readStopNodeData(e,y,M+1);if(!n)throw new Error(`Unexpected end of ${y}`);d=n.i,t=n.tagContent}const i=new T(f);f!==v&&D&&(i[":@"]=this.buildAttributesMap(v,o,f)),t&&(t=this.parseTextData(t,f,o,!0,D,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),i.add(this.options.textNodeName,t),this.addChild(n,i,o,V)}else{if(v.length>0&&v.lastIndexOf("/")===v.length-1){"/"===f[f.length-1]?(f=f.substr(0,f.length-1),o=o.substr(0,o.length-1),v=f):v=v.substr(0,v.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const e=new T(f);f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,o,f)),this.addChild(n,e,o,V),o=o.substr(0,o.lastIndexOf("."))}else{const e=new T(f);this.tagsNodeStack.push(n),f!==v&&D&&(e[":@"]=this.buildAttributesMap(v,o,f)),this.addChild(n,e,o,V),n=e}i="",d=M}}else i+=e[d];return t.child};function Y(e,t,n,i){this.options.captureMetaData||(i=void 0);const o=this.options.updateTag(t.tagname,n,t[":@"]);!1===o||("string"==typeof o?(t.tagname=o,e.addChild(t,i)):e.addChild(t,i))}const R=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function q(e,t,n,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function Z(e,t,n){const i="*."+n;for(const n in e){const o=e[n];if(i===o||t===o)return!0}return!1}function W(e,t,n,i){const o=e.indexOf(t,n);if(-1===o)throw new Error(i);return o+t.length-1}function z(e,t,n,i=">"){const o=function(e,t,n=">"){let i,o="";for(let d=t;d",n,`${t} is not closed`);if(e.substring(n+2,d).trim()===t&&(o--,0===o))return{tagContent:e.substring(i,n),i:d};n=d}else if("?"===e[n+1])n=W(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=W(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=W(e,"]]>",n,"StopNode is not closed.")-2;else{const i=z(e,n,">");i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&o++,n=i.closeIndex)}}function H(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},V,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&M.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(-1!==n.search(/.+[eE].+/))return function(e,t,n){if(!n.eNotation)return e;const i=t.match(j);if(i){let o=i[1]||"";const d=-1===i[3].indexOf("e")?"E":"e",p=i[2],f=o?e[p.length+1]===d:e[p.length]===d;return p.length>1&&f?e:1!==p.length||!i[3].startsWith(`.${d}`)&&i[3][0]!==d?n.leadingZeros&&!f?(t=(i[1]||"")+i[3],Number(t)):e:Number(t)}return e}(e,n,t);{const o=U.exec(n);if(o){const d=o[1]||"",p=o[2];let f=(i=o[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const y=d?"."===e[p.length+1]:"."===e[p.length];if(!t.leadingZeros&&(p.length>1||1===p.length&&!y))return e;{const i=Number(n),o=String(i);if(0===i||-0===i)return i;if(-1!==o.search(/[eE]/))return t.eNotation?i:e;if(-1!==n.indexOf("."))return"0"===o||o===f||o===`${d}${f}`?i:e;let y=p?f:n;return p?y===o||d+y===o?i:e:y===o||y===d+o?i:e}}return e}var i}(e,n)}return void 0!==e?e:""}const ee=T.getMetaDataSymbol();function Q(e,t){return tt(e,t)}function tt(e,t,n){let i;const o={};for(let d=0;d0&&(o[t.textNodeName]=i):void 0!==i&&(o[t.textNodeName]=i),o}function et(e){const t=Object.keys(e);for(let e=0;e0&&(n="\n"),ot(e,t,"",n)}function ot(e,t,n,i){let o="",d=!1;for(let p=0;p`,d=!1;continue}if(y===t.commentPropName){o+=i+`\x3c!--${f[y][0][t.textNodeName]}--\x3e`,d=!0;continue}if("?"===y[0]){const e=lt(f[":@"],t),n="?xml"===y?"":i;let p=f[y][0][t.textNodeName];p=0!==p.length?" "+p:"",o+=n+`<${y}${p}${e}?>`,d=!0;continue}let D=i;""!==D&&(D+=t.indentBy);const M=i+`<${y}${lt(f[":@"],t)}`,U=ot(f[y],t,v,D);-1!==t.unpairedTags.indexOf(y)?t.suppressUnpairedNode?o+=M+">":o+=M+"/>":U&&0!==U.length||!t.suppressEmptyNode?U&&U.endsWith(">")?o+=M+`>${U}${i}`:(o+=M+">",U&&""!==i&&(U.includes("/>")||U.includes("`):o+=M+"/>",d=!0}return o}function at(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ft(e){this.options=Object.assign({},te,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gt),this.processTextOrObjNode=ct,this.options.format?(this.indentate=pt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ct(e,t,n,i){const o=this.j2x(e,n+1,i.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n):this.buildObjectNode(o.val,t,o.attrStr,n)}function pt(e){return this.options.indentBy.repeat(e)}function gt(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ft.prototype.build=function(e){return this.options.preserveOrder?rt(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},ft.prototype.j2x=function(e,t,n){let i="",o="";const d=n.join(".");for(let p in e)if(Object.prototype.hasOwnProperty.call(e,p))if(void 0===e[p])this.isAttribute(p)&&(o+="");else if(null===e[p])this.isAttribute(p)||p===this.options.cdataPropName?o+="":"?"===p[0]?o+=this.indentate(t)+"<"+p+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+p+"/"+this.tagEndChar;else if(e[p]instanceof Date)o+=this.buildTextValNode(e[p],p,"",t);else if("object"!=typeof e[p]){const n=this.isAttribute(p);if(n&&!this.ignoreAttributesFn(n,d))i+=this.buildAttrPairStr(n,""+e[p]);else if(!n)if(p===this.options.textNodeName){let t=this.options.tagValueProcessor(p,""+e[p]);o+=this.replaceEntitiesValue(t)}else o+=this.buildTextValNode(e[p],p,"",t)}else if(Array.isArray(e[p])){const i=e[p].length;let d="",f="";for(let y=0;y"+e+o}},ft.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(t,e);return o=this.replaceEntitiesValue(o),""===o?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+o+"0&&this.options.processEntities)for(let t=0;t{"use strict";e.exports=JSON.parse('{"name":"@actions/cache","version":"4.0.5","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@protobuf-ts/runtime-rpc":"^2.11.1","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}')}};var t={};function __nccwpck_require__(n){var i=t[n];if(i!==undefined){return i.exports}var o=t[n]={exports:{}};var d=true;try{e[n].call(o.exports,o,o.exports,__nccwpck_require__);d=false}finally{if(d)delete t[n]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n={};(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:true});const t=__nccwpck_require__(48161);const i=__nccwpck_require__(76760);const o=__nccwpck_require__(51455);const d=__nccwpck_require__(37484);const p=__nccwpck_require__(5116);const f=__nccwpck_require__(33472);const y=__nccwpck_require__(94994);const v=__nccwpck_require__(62088);const D=__nccwpck_require__(75807);const M=__nccwpck_require__(71798);const U=__nccwpck_require__(3967);function getInputs(){const e={required:false,trimWhitespace:true};return{version:(0,d.getInput)("version",e)||"latest",cache_prefix:(0,d.getInput)("cache_prefix",e)||"",dir:(0,i.resolve)((0,d.getInput)("dir",e)||(0,t.tmpdir)()),db_user:(0,d.getInput)("db_user",e)||"wordpress",db_password:(0,d.getInput)("db_password",e)||"wordpress",db_name:(0,d.getInput)("db_name",e)||"wordpress_test",db_host:(0,d.getInput)("db_host",e)||"127.0.0.1",has_cache:(0,p.isFeatureAvailable)()&&!(0,M.isGHES)(),has_toolcache:process.env.RUNNER_TOOL_CACHE!==undefined,semver:undefined}}function resolveSemVer(e,t){t.semver=(0,v.coerce)(e)?.format();if(!t.semver){t.has_cache=false;t.has_toolcache=false}}async function cacheTool(e,t,n){if(n.has_toolcache){(0,d.info)(`📦 Caching ${e} as ${t} ${n.semver}…`);const i=await(0,f.cacheDir)(e,t,n.semver);(0,d.info)(`ℹ️ Saved cache to ${i}`)}}async function findCached(e,t,n){if(n.has_toolcache&&n.semver){(0,d.info)(`ℹ️ Checking tool cache for ${t} ${n.semver}…`);const p=(0,f.find)(t,n.semver);if(p){const f=(0,i.resolve)(p);(0,d.info)(`🚀 Using cached ${e} from ${f}`);await(0,o.symlink)(f,`${n.dir}/${t}`);return true}(0,d.info)(`😔 ${t} ${n.semver} was not found in the tool cache`)}if(n.has_cache){const o=`2:${n.cache_prefix}:${t}:${n.semver}`;(0,d.info)(`ℹ️ Checking cache key ${o} for ${t}…`);const f=await(0,p.restoreCache)([t],o);if(f){(0,d.info)(`🚀 Using cached ${e}, key is ${o}`);await cacheTool((0,i.join)(n.dir,t),t,n);return true}(0,d.saveState)(`dir_${t}`,n.dir);(0,d.saveState)(`cache_key_${t}`,o)}return false}async function downloadWordPress(e,t){const n=(0,i.join)(t.dir,"wordpress.zip");try{if(await findCached("WordPress","wordpress",t)){return}(0,d.info)(`📥 Downloading WordPress…`);const i=await(0,f.downloadTool)(e,n);const o=await(0,f.extractZip)(i,t.dir);await cacheTool(`${o}/wordpress`,"wordpress",t)}finally{await(0,y.rmRF)(n)}}async function downloadTestLibrary(e,t){if(await findCached("WordPress Test Library","wordpress-tests-lib",t)){return}(0,d.info)(`📥 Downloading WordPress Test Library…`);await(0,y.mkdirP)((0,i.join)(t.dir,"wordpress-tests-lib"));const n=new D.SVNClient;n.setConfig({silent:true});const[,,p]=await Promise.all([n.checkout(`${e}/tests/phpunit/includes/`,`${t.dir}/wordpress-tests-lib/includes`),n.checkout(`${e}/tests/phpunit/data/`,`${t.dir}/wordpress-tests-lib/data`),(0,M.downloadAsText)(`${e}/wp-tests-config-sample.php`)]);await Promise.all([(0,y.rmRF)(`${t.dir}/wordpress-tests-lib/includes/.svn`),(0,y.rmRF)(`${t.dir}/wordpress-tests-lib/data/.svn`),(0,o.writeFile)((0,i.join)(t.dir,"wordpress-tests-lib","wp-tests-config-sample.php"),p)]);await cacheTool(`${t.dir}/wordpress-tests-lib`,"wordpress-tests-lib",t)}async function configureWordPress(e){const t=(0,i.join)(e.dir,"wordpress-tests-lib");const n=(await(0,o.readFile)((0,i.join)(t,"wp-tests-config-sample.php"),"utf8")).replace("youremptytestdbnamehere",e.db_name).replace("yourusernamehere",e.db_user).replace("yourpasswordhere",e.db_password).replace("localhost",e.db_host).replace("dirname( __FILE__ ) . '/src/'",`'${e.dir}/wordpress/'`);return(0,o.writeFile)((0,i.join)(e.dir,"wordpress-tests-lib","wp-tests-config.php"),n)}async function run(){try{const e=getInputs();if(!await(0,M.isDir)(e.dir)){throw new Error(`Directory ${e.dir} does not exist`)}(0,d.info)("🤔 Determining WordPress version…");const t=await(0,U.resolveWordPressVersion)(e.version);(0,d.info)(`ℹ️ WordPress version: ${t}`);(0,d.setOutput)("wp_version",t);resolveSemVer(t,e);await Promise.all([(0,y.rmRF)((0,i.join)(e.dir,"wordpress")),(0,y.rmRF)((0,i.join)(e.dir,"wordpress-tests-lib")),(0,y.rmRF)((0,i.join)(e.dir,"wordpress.zip"))]);(0,d.info)(`ℹ️ Cache is available: ${e.has_cache?"yes":"no"}`);(0,d.info)(`ℹ️ Tool cache is available: ${e.has_toolcache?"yes":"no"}`);const n=(0,U.getWordPressDownloadUrl)(t);const o=(0,U.getWordPressTestLibraryBaseUrl)(t);const p=process.env.GITHUB_WORKSPACE;try{process.env.GITHUB_WORKSPACE=e.dir;await Promise.all([downloadWordPress(n,e),downloadTestLibrary(o,e)])}finally{process.env.GITHUB_WORKSPACE=p}(0,d.info)("⚙️ Configuring WordPress…");await configureWordPress(e);(0,d.exportVariable)("WP_TESTS_DIR",(0,i.join)(e.dir,"wordpress-tests-lib"));(0,d.setOutput)("wp_directory",(0,i.join)(e.dir,"wordpress"));(0,d.setOutput)("wptl_directory",(0,i.join)(e.dir,"wordpress-tests-lib"));(0,d.saveState)("ok_to_save_cache","yes");(0,d.info)("✅ Success")}catch(e){const t=e instanceof Error?e:new Error("An unknown error occurred",{cause:e});(0,d.setFailed)(`❌ ${t.message}`)}}void run()})();module.exports=n})(); \ No newline at end of file