@capgo/cli
Version:
A CLI to upload to capgo servers
296 lines • 1.43 MB
JavaScript
import{createRequire as hm}from"node:module";var km=Object.create;var{getPrototypeOf:_m,defineProperty:b9,getOwnPropertyNames:CV,getOwnPropertyDescriptor:um}=Object,kV=Object.prototype.hasOwnProperty;function _V(D){return this[D]}var gm,xm,w$=(D,$,J)=>{var X=D!=null&&typeof D==="object";if(X){var Y=$?gm??=new WeakMap:xm??=new WeakMap,Q=Y.get(D);if(Q)return Q}J=D!=null?km(_m(D)):{};let U=$||!D||!D.__esModule?b9(J,"default",{value:D,enumerable:!0}):J;for(let F of CV(D))if(!kV.call(U,F))b9(U,F,{get:_V.bind(D,F),enumerable:!0});if(X)Y.set(D,U);return U},a6=(D)=>{var $=(SV??=new WeakMap).get(D),J;if($)return $;if($=b9({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var X of CV(D))if(!kV.call($,X))b9($,X,{get:_V.bind(D,X),enumerable:!(J=um(D,X))||J.enumerable})}return SV.set(D,$),$},SV,S=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var fm=(D)=>D;function ym(D,$){this[D]=fm.bind(null,$)}var y0=(D,$)=>{for(var J in $)b9(D,J,{get:$[J],enumerable:!0,configurable:!0,set:ym.bind($,J)})};var C=(D,$)=>()=>(D&&($=D(D=0)),$);var XD=hm(import.meta.url);var r$;var H8=C(()=>{r$={name:"@capgo/cli",type:"module",version:"8.83.1",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:credentials-export":"bun test/test-credentials-export.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list-output-text":"bun test/test-app-list-output-text.mjs","test:app-todo":"bun test/test-app-todo.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-supabase-client":"bun test/test-create-supabase-client.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-upload-recovery":"bun test/test-init-upload-error-gate.mjs && bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:suite":"bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list-output-text && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-supabase-client && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs && bun test/test-app-list-options.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:trial-warning":"bun test/test-trial-warning.mjs","test:plan-validation":"bun test/test-plan-validation.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^20.11.0",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.110.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260707.2","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});var xD;var c1=C(()=>{xD=class xD extends Error{context;constructor(D,$){super(D);this.name="CliUserError",this.context=$}}});import{platform as lm}from"node:os";import{version as dm}from"node:process";function xV(D){gV=D}function cm(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function uV(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function pm(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(D.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key or Supabase anon key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function oU(D,$){if($===void 0||$===null){if(tU.has(D.toLowerCase()))throw new xD(uV(D));throw new xD(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(tU.has(D.toLowerCase()))throw new xD(uV(D));throw new xD(`HTTP header "${D}" is missing or invalid.`)}if(!cm($)){if(tU.has(D.toLowerCase()))throw new xD(pm(D));throw new xD(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function K6(D){let $={capgo_api:im,"x-cli-version":r$.version,"x-cli-command":gV,"x-cli-node":dm,"x-cli-os":lm()};if(D)for(let[J,X]of Object.entries(D))$[J]=oU(J,X);return $}var im="2025-10-01",gV="",tU;var T3=C(()=>{H8();c1();tU=new Set(["authorization","capgkey","x-capgo-log-token"])});import{existsSync as q$}from"fs";var S9=(D=".",$="unknown")=>{let J=`${D}/bun.lockb`,X=`${D}/bun.lock`,Y=`${D}/pnpm-lock.yaml`,Q=`${D}/shrinkwrap.yaml`,U=`${D}/yarn.lock`,F=`${D}/package-lock.json`,W=`${D}/npm-shrinkwrap.json`;if(q$(J)||q$(X))return"bun";if(q$(Y)||q$(Q))return"pnpm";if(q$(U))return"yarn";if(q$(F)||q$(W))return"npm";return $},P3=(D=S9(),$=!1)=>{switch(D){case"bun":return $?"bun install":"install";case"pnpm":return $?"pnpm install":"install";case"yarn":return $?"yarn install":"install";case"npm":return $?"npm install":"install";case"unknown":return $?"unknown unknown":"unknown";default:return $?"npm install":"install"}},fV=(D=".",$="npx")=>{let J=`${D}/bun.lockb`,X=`${D}/bun.lock`,Y=`${D}/pnpm-lock.yaml`,Q=`${D}/shrinkwrap.yaml`,U=`${D}/yarn.lock`,F=`${D}/package-lock.json`,W=`${D}/npm-shrinkwrap.json`;if(q$(J)||q$(X))return"bunx";if(q$(Y)||q$(Q))return"pnpm exec";if(q$(U))return"yarn dlx";if(q$(F)||q$(W))return"npx";return $};var yV=()=>{};var hV,mV=(D)=>{return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510},lV=(D)=>{return D===8987||D===9001||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D>=131072&&D<=196605||D>=196608&&D<=262141};var dV=C(()=>{hV=(()=>{let D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return($)=>{let J=0;D.lastIndex=0;while(D.test($))J+=1;return $.length-J}})()});var nm,rm,iV,tm,cV,om,am,sm,pV=(D,$={},J={})=>{let X=$.limit??1/0,Y=$.ellipsis??"",Q=$?.ellipsisWidth??(Y?pV(Y,sm,J).width:0),U=0,F=J.controlWidth??0,W=J.tabWidth??8,K=J.emojiWidth??2,q=2,G=J.regularWidth??1,Z=J.wideWidth??2,H=[[om,G],[nm,0],[rm,F],[tm,W],[cV,K],[iV,Z]],z=0,I=0,B=D.length,N=0,V=!1,O=B,j=Math.max(0,X-Q),v=0,A=0,k=0,u=0;D:while(!0){if(A>v||I>=B&&I>z){let _=D.slice(v,A)||D.slice(z,I);N=0;for(let y of _.replaceAll(am,"")){let T=y.codePointAt(0)||0;if(mV(T))u=2;else if(lV(T))u=Z;else u=G;if(k+u>j)O=Math.min(O,Math.max(v,z)+N);if(k+u>X){V=!0;break D}N+=y.length,k+=u}v=A=0}if(I>=B)break D;for(let _=0,y=H.length;_<y;_++){let[T,d]=H[_];if(T.lastIndex=I,T.test(D)){if(N=T===iV?hV(D.slice(I,T.lastIndex)):T===cV?1:T.lastIndex-I,u=N*d,k+u>j)O=Math.min(O,I+Math.floor((j-k)/d));if(k+u>X){V=!0;break D}k+=u,v=z,A=I,I=z=T.lastIndex;continue D}}I+=1}return{width:V?j:k,index:V?O:B,truncated:V,ellipsed:V&&X>=Q}},nV;var rV=C(()=>{dV();nm=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,rm=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,iV=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,tm=/\t{1,1000}/y,cV=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,om=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,am=/\p{M}+/gu,sm={limit:1/0,ellipsis:""},nV=pV});var em,Dl=(D,$={})=>{return nV(D,em,$).width},q6;var aU=C(()=>{rV();em={limit:1/0,ellipsis:"",ellipsisWidth:0},q6=Dl});function s6(D,$,J){return String(D).normalize().split(Ql).map((X)=>Yl(X,$,J)).join(`
`)}var b3="\x1B",eV="",$l=39,eU="\x07",Dw="[",Jl="]",$w="m",DF,tV,oV=(D)=>{if(D>=30&&D<=37)return 39;if(D>=90&&D<=97)return 39;if(D>=40&&D<=47)return 49;if(D>=100&&D<=107)return 49;if(D===1||D===2)return 22;if(D===3)return 23;if(D===4)return 24;if(D===7)return 27;if(D===8)return 28;if(D===9)return 29;if(D===0)return 0;return},aV=(D)=>`${b3}${Dw}${D}${$w}`,sV=(D)=>`${b3}${DF}${D}${eU}`,sU=(D,$,J)=>{let X=$[Symbol.iterator](),Y=!1,Q=!1,U=D.at(-1),F=U===void 0?0:q6(U),W=X.next(),K=X.next(),q=0;while(!W.done){let G=W.value,Z=q6(G);if(F+Z<=J)D[D.length-1]+=G;else D.push(G),F=0;if(G===b3||G===eV)Y=!0,Q=$.startsWith(DF,q+1);if(Y){if(Q){if(G===eU)Y=!1,Q=!1}else if(G===$w)Y=!1}else if(F+=Z,F===J&&!K.done)D.push(""),F=0;W=K,K=X.next(),q+=G.length}if(U=D.at(-1),!F&&U!==void 0&&U.length&&D.length>1)D[D.length-2]+=D.pop()},Xl=(D)=>{let $=D.split(" "),J=$.length;while(J){if(q6($[J-1]))break;J--}if(J===$.length)return D;return $.slice(0,J).join(" ")+$.slice(J).join("")},Yl=(D,$,J={})=>{if(J.trim!==!1&&D.trim()==="")return"";let X="",Y,Q,U=D.split(" "),F=[""],W=0;for(let G=0;G<U.length;G++){let Z=U[G];if(J.trim!==!1){let z=F.at(-1)??"",I=z.trimStart();if(z.length!==I.length)F[F.length-1]=I,W=q6(I)}if(G!==0){if(W>=$&&(J.wordWrap===!1||J.trim===!1))F.push(""),W=0;if(W||J.trim===!1)F[F.length-1]+=" ",W++}let H=q6(Z);if(J.hard&&H>$){let z=$-W,I=1+Math.floor((H-z-1)/$);if(Math.floor((H-1)/$)<I)F.push("");sU(F,Z,$),W=q6(F.at(-1)??"");continue}if(W+H>$&&W&&H){if(J.wordWrap===!1&&W<$){sU(F,Z,$),W=q6(F.at(-1)??"");continue}F.push(""),W=0}if(W+H>$&&J.wordWrap===!1){sU(F,Z,$),W=q6(F.at(-1)??"");continue}F[F.length-1]+=Z,W+=H}if(J.trim!==!1)F=F.map((G)=>Xl(G));let K=F.join(`
`),q=!1;for(let G=0;G<K.length;G++){let Z=K[G];if(X+=Z,!q){if(q=Z>="\uD800"&&Z<="\uDBFF",q)continue}else q=!1;if(Z===b3||Z===eV){tV.lastIndex=G+1;let z=tV.exec(K)?.groups;if(z?.code!==void 0){let I=Number.parseFloat(z.code);Y=I===$l?void 0:I}else if(z?.uri!==void 0)Q=z.uri.length===0?void 0:z.uri}if(K[G+1]===`
`){if(Q)X+=sV("");let H=Y?oV(Y):void 0;if(Y&&H)X+=aV(H)}else if(Z===`
`){if(Y&&oV(Y))X+=aV(Y);if(Q)X+=sV(Q)}}return X},Ql;var $F=C(()=>{aU();DF=`${Jl}8;;`,tV=new RegExp(`(?:\\${Dw}(?<code>\\d+)m|\\${DF}(?<uri>.*)${eU})`,"y"),Ql=/\r?\n/});var XF=S((RID,Jw)=>{var JF={to(D,$){if(!$)return`\x1B[${D+1}G`;return`\x1B[${$+1};${D+1}H`},move(D,$){let J="";if(D<0)J+=`\x1B[${-D}D`;else if(D>0)J+=`\x1B[${D}C`;if($<0)J+=`\x1B[${-$}A`;else if($>0)J+=`\x1B[${$}B`;return J},up:(D=1)=>`\x1B[${D}A`,down:(D=1)=>`\x1B[${D}B`,forward:(D=1)=>`\x1B[${D}C`,backward:(D=1)=>`\x1B[${D}D`,nextLine:(D=1)=>"\x1B[E".repeat(D),prevLine:(D=1)=>"\x1B[F".repeat(D),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Ul={up:(D=1)=>"\x1B[S".repeat(D),down:(D=1)=>"\x1B[T".repeat(D)},Fl={screen:"\x1B[2J",up:(D=1)=>"\x1B[1J".repeat(D),down:(D=1)=>"\x1B[J".repeat(D),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(D){let $="";for(let J=0;J<D;J++)$+=this.line+(J<D-1?JF.up():"");if(D)$+=JF.left;return $}};Jw.exports={cursor:JF,scroll:Ul,erase:Fl,beep:"\x07"}});import{styleText as B8}from"node:util";import{stdout as FF,stdin as Uw}from"node:process";import*as e6 from"node:readline";import Wl from"node:readline";import{ReadStream as Xw}from"node:tty";function I8(D,$,J){if(!J.some((U)=>!U.disabled))return D;let X=D+$,Y=Math.max(J.length-1,0),Q=X<0?Y:X>Y?0:X;return J[Q]?.disabled?I8(Q,$<0?-1:1,J):Q}function S3(D,$,J,X){let Y=X.split(`
`),Q=0,U=D;for(let W of Y){if(U<=W.length)break;U-=W.length+1,Q++}for(Q=Math.max(0,Math.min(Y.length-1,Q+J)),U=Math.min(U,Y[Q].length)+$;U<0&&Q>0;)Q--,U+=Y[Q].length+1;for(;U>Y[Q].length&&Q<Y.length-1;)U-=Y[Q].length+1,Q++;U=Math.max(0,Math.min(Y[Q].length,U));let F=0;for(let W=0;W<Q;W++)F+=Y[W].length+1;return F+U}function WF(D,$){if(typeof D=="string")return w0.aliases.get(D)===$;for(let J of D)if(J!==void 0&&WF(J,$))return!0;return!1}function Gl(D,$){if(D===$)return;let J=D.split(`
`),X=$.split(`
`),Y=Math.max(J.length,X.length),Q=[];for(let U=0;U<Y;U++)J[U]!==X[U]&&Q.push(U);return{lines:Q,numLinesBefore:J.length,numLinesAfter:X.length,numLines:Y}}function p1(D){return D===QF}function C3(D,$){let J=D;J.isTTY&&J.setRawMode($)}function Fw({input:D=Uw,output:$=FF,overwrite:J=!0,hideCursor:X=!0}={}){let Y=e6.createInterface({input:D,output:$,prompt:"",tabSize:1});e6.emitKeypressEvents(D,Y),D instanceof Xw&&D.isTTY&&D.setRawMode(!0);let Q=(U,{name:F,sequence:W})=>{let K=String(U);if(WF([K,F,W],"cancel")){X&&$.write(h0.cursor.show),process.exit(0);return}if(!J)return;e6.moveCursor($,F==="return"?0:-1,F==="return"?-1:0,()=>{e6.clearLine($,1,()=>{D.once("keypress",Q)})})};return X&&$.write(h0.cursor.hide),D.once("keypress",Q),()=>{D.off("keypress",Q),X&&$.write(h0.cursor.show),D instanceof Xw&&D.isTTY&&!Zl&&D.setRawMode(!1),Y.terminal=!1,Y.close()}}function C9(D,$,J,X=J,Y=J,Q){let U=_3(D??FF);return s6($,U-J.length,{hard:!0,trim:!1}).split(`
`).map((F,W,K)=>{let q=Q?Q(F,W):F;return W===0?`${X}${q}`:W===K.length-1?`${Y}${q}`:`${J}${q}`}).join(`
`)}function Ww(D,$){if("~standard"in D){let J=D["~standard"].validate($);if(J instanceof Promise)throw TypeError("Schema validation must be synchronous. Update `validate()` and remove any asynchronous logic.");return J.issues?.at(0)?.message}return D($)}class v6{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(D,$=!0){let{input:J=Uw,output:X=FF,render:Y,signal:Q,...U}=D;this.opts=U,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=Y.bind(this),this._track=$,this._abortSignal=Q,this.input=J,this.output=X}unsubscribe(){this._subscribers.clear()}setSubscriber(D,$){let J=this._subscribers.get(D)??[];J.push($),this._subscribers.set(D,J)}on(D,$){this.setSubscriber(D,{cb:$})}once(D,$){this.setSubscriber(D,{cb:$,once:!0})}emit(D,...$){let J=this._subscribers.get(D)??[],X=[];for(let Y of J)Y.cb(...$),Y.once&&X.push(()=>J.splice(J.indexOf(Y),1));for(let Y of X)Y()}prompt(){return new Promise((D)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(QF);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=Wl.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on("keypress",this.onKeypress),C3(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(h0.cursor.show),this.output.off("resize",this.render),C3(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(h0.cursor.show),this.output.off("resize",this.render),C3(this.input,!1),D(QF)})})}_isActionKey(D,$){return D==="\t"}_shouldSubmit(D,$){return!0}_setValue(D){this.value=D,this.emit("value",this.value)}_setUserInput(D,$){this.userInput=D??"",this.emit("userInput",this.userInput),$&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:"u"}),this._setUserInput("")}onKeypress(D,$){if(this._track&&$.name!=="return"&&($.name&&this._isActionKey(D,$)&&this.rl?.write(null,{ctrl:!0,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),$?.name&&(!this._track&&w0.aliases.has($.name)&&this.emit("cursor",w0.aliases.get($.name)),w0.actions.has($.name)&&this.emit("cursor",$.name)),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),this.emit("key",D,$),$?.name==="return"&&this._shouldSubmit(D,$)){if(this.opts.validate){let J=Ww(this.opts.validate,this.value);J&&(this.error=J instanceof Error?J.message:J,this.state="error",this.rl?.write(this.userInput))}this.state!=="error"&&(this.state="submit")}WF([D,$?.name,$?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
`),C3(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=s6(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
`).length-1;this.output.write(h0.cursor.move(-999,D*-1))}render(){let D=s6(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(h0.cursor.hide);else{let $=Gl(this._prevFrame,D),J=KF(this.output);if(this.restoreCursor(),$){let X=Math.max(0,$.numLinesAfter-J),Y=Math.max(0,$.numLinesBefore-J),Q=$.lines.find((U)=>U>=X);if(Q===void 0){this._prevFrame=D;return}if($.lines.length===1){this.output.write(h0.cursor.move(0,Q-Y)),this.output.write(h0.erase.lines(1));let U=D.split(`
`);this.output.write(U[Q]),this._prevFrame=D,this.output.write(h0.cursor.move(0,U.length-Q-1));return}else if($.lines.length>1){if(X<Y)Q=X;else{let F=Q-Y;F>0&&this.output.write(h0.cursor.move(0,F))}this.output.write(h0.erase.down());let U=D.split(`
`).slice(Q);this.output.write(U.join(`
`)),this._prevFrame=D;return}}this.output.write(h0.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}function zl(D,$){if(D===void 0||$.length===0)return 0;let J=$.findIndex((X)=>X.value===D);return J!==-1?J:0}function Hl(D,$){return($.label??String($.value)).toLowerCase().includes(D.toLowerCase())}function Il(D,$){if($)return D?$:$[0]}function Yw(D){return[...D].map(($)=>Ol[$])}function Nl(D){let $=new Intl.DateTimeFormat(D,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2000,0,15)),J=[],X="/";for(let Y of $)Y.type==="literal"?X=Y.value.trim()||Y.value:(Y.type==="year"||Y.type==="month"||Y.type==="day")&&J.push({type:Y.type,len:Y.type==="year"?4:2});return{segments:J,separator:X}}function YF(D){return Number.parseInt((D||"0").replace(/_/g,"0"),10)||0}function k3(D){return{year:YF(D.year),month:YF(D.month),day:YF(D.day)}}function UF(D,$){return new Date(D||2001,$||1,0).getDate()}function Kw(D){let{year:$,month:J,day:X}=k3(D);if(!$||$<0||$>9999||!J||J<1||J>12||!X||X<1)return;let Y=new Date(Date.UTC($,J-1,X));if(!(Y.getUTCFullYear()!==$||Y.getUTCMonth()!==J-1||Y.getUTCDate()!==X))return{year:$,month:J,day:X}}function Qw(D){let $=Kw(D);return $?new Date(Date.UTC($.year,$.month-1,$.day)):void 0}function Vl(D,$,J,X){let Y=J?{year:J.getUTCFullYear(),month:J.getUTCMonth()+1,day:J.getUTCDate()}:null,Q=X?{year:X.getUTCFullYear(),month:X.getUTCMonth()+1,day:X.getUTCDate()}:null;return D==="year"?{min:Y?.year??1,max:Q?.year??9999}:D==="month"?{min:Y&&$.year===Y.year?Y.month:1,max:Q&&$.year===Q.year?Q.month:12}:{min:Y&&$.year===Y.year&&$.month===Y.month?Y.day:1,max:Q&&$.year===Q.year&&$.month===Q.month?Q.day:UF($.year,$.month)}}var h0,Kl,ql,w0,Zl,QF,_3=(D)=>("columns"in D)&&typeof D.columns=="number"?D.columns:80,KF=(D)=>("rows"in D)&&typeof D.rows=="number"?D.rows:20,Bl,qF,Ol,qw,wl,jl,Gw,Zw,zw,GF;var ZF=C(()=>{$F();h0=w$(XF(),1);Kl=["up","down","left","right","space","enter","cancel"],ql=["January","February","March","April","May","June","July","August","September","October","November","December"],w0={actions:new Set(Kl),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]]),messages:{cancel:"Canceled",error:"Something went wrong"},withGuide:!0,date:{monthNames:[...ql],messages:{required:"Please enter a valid date",invalidMonth:"There are only 12 months in a year",invalidDay:(D,$)=>`There are only ${D} days in ${$}`,afterMin:(D)=>`Date must be on or after ${D.toISOString().slice(0,10)}`,beforeMax:(D)=>`Date must be on or before ${D.toISOString().slice(0,10)}`}}};Zl=globalThis.process.platform.startsWith("win"),QF=Symbol("clack:cancel");Bl=class extends v6{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#$=0;#Y="";#D;#Q;#F;get cursor(){return this.#$}get userInputWithCursor(){if(!this.userInput)return B8(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;let $=this.userInput.slice(0,this.cursor),J=this.userInput.slice(this.cursor,this.cursor+1),X=this.userInput.slice(this.cursor+1);return`${$}${B8("inverse",J)}${X}`}get options(){return typeof this.#Q=="function"?this.#Q():this.#Q}constructor($){super($),this.#Q=$.options,this.#F=$.placeholder;let J=this.options;this.filteredOptions=[...J],this.multiple=$.multiple===!0,this.#D=typeof $.options=="function"?$.filter:$.filter??Hl;let X;if($.initialValue&&Array.isArray($.initialValue)?this.multiple?X=$.initialValue:X=$.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(X=[this.options[0]?.value]),X)for(let Y of X){let Q=J.findIndex((U)=>U.value===Y);Q!==-1&&(this.toggleSelected(Y),this.#$=Q)}this.focusedValue=this.options[this.#$]?.value,this.on("key",(Y,Q)=>this.#J(Y,Q)),this.on("userInput",(Y)=>this.#X(Y))}_isActionKey($,J){return $==="\t"||this.multiple&&this.isNavigating&&J.name==="space"&&$!==void 0&&$!==""}#J($,J){let X=J.name==="up",Y=J.name==="down",Q=J.name==="return",U=this.userInput===""||this.userInput==="\t",F=this.#F,W=this.options,K=F!==void 0&&F!==""&&W.some((q)=>!q.disabled&&(this.#D?this.#D(F,q):!0));if(J.name==="tab"&&U&&K){this.userInput==="\t"&&this._clearUserInput(),this._setUserInput(F,!0),this.isNavigating=!1;return}X||Y?(this.#$=I8(this.#$,X?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#$]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):Q?this.value=Il(this.multiple,this.selectedValues):this.multiple?this.focusedValue!==void 0&&(J.name==="tab"||this.isNavigating&&J.name==="space")?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected($){this.filteredOptions.length!==0&&(this.multiple?this.selectedValues.includes($)?this.selectedValues=this.selectedValues.filter((J)=>J!==$):this.selectedValues=[...this.selectedValues,$]:this.selectedValues=[$])}#X($){if($!==this.#Y){this.#Y=$;let J=this.options;$&&this.#D?this.filteredOptions=J.filter((Q)=>this.#D?.($,Q)):this.filteredOptions=[...J];let X=zl(this.focusedValue,this.filteredOptions);this.#$=I8(X,0,this.filteredOptions);let Y=this.filteredOptions[this.#$];Y&&!Y.disabled?this.focusedValue=Y.value:this.focusedValue=void 0,this.multiple||(this.focusedValue!==void 0?this.toggleSelected(this.focusedValue):this.deselectAll())}}};qF=class qF extends v6{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("userInput",()=>{this.value=this._value}),this.on("confirm",($)=>{this.output.write(h0.cursor.move(0,-1)),this.value=$,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};Ol={Y:{type:"year",len:4},M:{type:"month",len:2},D:{type:"day",len:2}};qw=class qw extends v6{#$;#Y;#D;#Q;#F;#J={segmentIndex:0,positionInSegment:0};#X=!0;#U=null;inlineError="";get segmentCursor(){return{...this.#J}}get segmentValues(){return{...this.#D}}get segments(){return this.#$}get separator(){return this.#Y}get formattedValue(){return this.#G(this.#D)}#G(D){return this.#$.map(($)=>D[$.type]).join(this.#Y)}#W(){this._setUserInput(this.#G(this.#D)),this._setValue(Qw(this.#D)??void 0)}constructor(D){let $=D.format?{segments:Yw(D.format),separator:D.separator??"/"}:Nl(D.locale),J=D.separator??$.separator,X=D.format?Yw(D.format):$.segments,Y=D.initialValue??D.defaultValue,Q=Y?{year:String(Y.getUTCFullYear()).padStart(4,"0"),month:String(Y.getUTCMonth()+1).padStart(2,"0"),day:String(Y.getUTCDate()).padStart(2,"0")}:{year:"____",month:"__",day:"__"},U=X.map((F)=>Q[F.type]).join(J);super({...D,initialUserInput:U},!1),this.#$=X,this.#Y=J,this.#D=Q,this.#Q=D.minDate,this.#F=D.maxDate,this.#W(),this.on("cursor",(F)=>this.#H(F)),this.on("key",(F,W)=>this.#I(F,W)),this.on("finalize",()=>this.#B(D))}#K(){let D=Math.max(0,Math.min(this.#J.segmentIndex,this.#$.length-1)),$=this.#$[D];if($)return this.#J.positionInSegment=Math.max(0,Math.min(this.#J.positionInSegment,$.len-1)),{segment:$,index:D}}#q(D){this.inlineError="",this.#U=null;let $=this.#K();$&&(this.#J.segmentIndex=Math.max(0,Math.min(this.#$.length-1,$.index+D)),this.#J.positionInSegment=0,this.#X=!0)}#Z(D){let $=this.#K();if(!$)return;let{segment:J}=$,X=this.#D[J.type],Y=!X||X.replace(/_/g,"")==="",Q=Number.parseInt((X||"0").replace(/_/g,"0"),10)||0,U=Vl(J.type,k3(this.#D),this.#Q,this.#F),F;Y?F=D===1?U.min:U.max:F=Math.max(Math.min(U.max,Q+D),U.min),this.#D={...this.#D,[J.type]:F.toString().padStart(J.len,"0")},this.#X=!0,this.#U=null,this.#W()}#H(D){if(D)switch(D){case"right":return this.#q(1);case"left":return this.#q(-1);case"up":return this.#Z(1);case"down":return this.#Z(-1)}}#I(D,$){if($?.name==="backspace"||$?.sequence===""||$?.sequence==="\b"||D===""||D==="\b"){this.inlineError="";let J=this.#K();if(!J)return;if(!this.#D[J.segment.type].replace(/_/g,"")){this.#q(-1);return}this.#D[J.segment.type]="_".repeat(J.segment.len),this.#X=!0,this.#J.positionInSegment=0,this.#W();return}if($?.name==="tab"){this.inlineError="";let J=this.#K();if(!J)return;let X=$.shift?-1:1,Y=J.index+X;Y>=0&&Y<this.#$.length&&(this.#J.segmentIndex=Y,this.#J.positionInSegment=0,this.#X=!0);return}if(D&&/^[0-9]$/.test(D)){let J=this.#K();if(!J)return;let{segment:X}=J,Y=!this.#D[X.type].replace(/_/g,"");if(this.#X&&this.#U!==null&&!Y){let Z=this.#U+D,H={...this.#D,[X.type]:Z},z=this.#z(H,X);if(z){this.inlineError=z,this.#U=null,this.#X=!1;return}this.inlineError="",this.#D[X.type]=Z,this.#U=null,this.#X=!1,this.#W(),J.index<this.#$.length-1&&(this.#J.segmentIndex=J.index+1,this.#J.positionInSegment=0,this.#X=!0);return}this.#X&&!Y&&(this.#D[X.type]="_".repeat(X.len),this.#J.positionInSegment=0),this.#X=!1,this.#U=null;let Q=this.#D[X.type],U=Q.indexOf("_"),F=U>=0?U:Math.min(this.#J.positionInSegment,X.len-1);if(F<0||F>=X.len)return;let W=Q.slice(0,F)+D+Q.slice(F+1),K=!1;if(F===0&&Q==="__"&&(X.type==="month"||X.type==="day")){let Z=Number.parseInt(D,10);W=`0${D}`,K=Z<=(X.type==="month"?1:2)}if(X.type==="year"&&(W=(Q.replace(/_/g,"")+D).padStart(X.len,"_")),!W.includes("_")){let Z={...this.#D,[X.type]:W},H=this.#z(Z,X);if(H){this.inlineError=H;return}}this.inlineError="",this.#D[X.type]=W;let q=W.includes("_")?void 0:Kw(this.#D);if(q){let{year:Z,month:H}=q,z=UF(Z,H);this.#D={year:String(Math.max(0,Math.min(9999,Z))).padStart(4,"0"),month:String(Math.max(1,Math.min(12,H))).padStart(2,"0"),day:String(Math.max(1,Math.min(z,q.day))).padStart(2,"0")}}this.#W();let G=W.indexOf("_");K?(this.#X=!0,this.#U=D):G>=0?this.#J.positionInSegment=G:U>=0&&J.index<this.#$.length-1?(this.#J.segmentIndex=J.index+1,this.#J.positionInSegment=0,this.#X=!0):this.#J.positionInSegment=Math.min(F+1,X.len-1)}}#z(D,$){let{month:J,day:X}=k3(D);if($.type==="month"&&(J<0||J>12))return w0.date.messages.invalidMonth;if($.type==="day"&&(X<0||X>31))return w0.date.messages.invalidDay(31,"any month")}#B(D){let{year:$,month:J,day:X}=k3(this.#D);if($&&J&&X){let Y=UF($,J);this.#D={...this.#D,day:String(Math.min(X,Y)).padStart(2,"0")}}this.value=Qw(this.#D)??D.defaultValue??void 0}};wl=class extends v6{options;cursor=0;#$;getGroupItems($){return this.options.filter((J)=>J.group===$)}isGroupSelected($){let J=this.getGroupItems($),X=this.value;return X===void 0?!1:J.every((Y)=>X.includes(Y.value))}toggleValue(){let $=this.options[this.cursor];if($!==void 0)if(this.value===void 0&&(this.value=[]),$.group===!0){let J=$.value,X=this.getGroupItems(J);this.isGroupSelected(J)?this.value=this.value.filter((Y)=>X.findIndex((Q)=>Q.value===Y)===-1):this.value=[...this.value,...X.map((Y)=>Y.value)],this.value=Array.from(new Set(this.value))}else{let J=this.value.includes($.value);this.value=J?this.value.filter((X)=>X!==$.value):[...this.value,$.value]}}constructor($){super($,!1);let{options:J}=$;this.#$=$.selectableGroups!==!1,this.options=Object.entries(J).flatMap(([X,Y])=>[{value:X,group:!0,label:X},...Y.map((Q)=>({...Q,group:X}))]),this.value=[...$.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:X})=>X===$.cursorAt),this.#$?0:1),this.on("cursor",(X)=>{switch(X){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let Y=this.options[this.cursor]?.group===!0;!this.#$&&Y&&(this.cursor=this.cursor===0?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let Y=this.options[this.cursor]?.group===!0;!this.#$&&Y&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue();break}})}},jl=new Set(["up","down","left","right"]);Gw=class Gw extends v6{#$=!1;#Y;focused="editor";get userInputWithCursor(){if(this.state==="submit")return this.userInput;let D=this.userInput;if(this.cursor>=D.length)return`${D}█`;let $=D.slice(0,this.cursor),J=D.slice(this.cursor,this.cursor+1),X=D.slice(this.cursor+1);return J===`
`?`${$}█
${X}`:`${$}${B8("inverse",J)}${X}`}get cursor(){return this._cursor}#D(D){if(this.userInput.length===0){this._setUserInput(D);return}this._setUserInput(this.userInput.slice(0,this.cursor)+D+this.userInput.slice(this.cursor))}#Q(D){let $=this.value??"";switch(D){case"up":this._cursor=S3(this._cursor,0,-1,$);return;case"down":this._cursor=S3(this._cursor,0,1,$);return;case"left":this._cursor=S3(this._cursor,-1,0,$);return;case"right":this._cursor=S3(this._cursor,1,0,$);return}}_shouldSubmit(D,$){if(this.#Y)return this.focused==="submit"?!0:(this.#D(`
`),this._cursor++,!1);let J=this.#$;return this.#$=!0,J&&this.cursor===this.userInput.length?(this.userInput[this.cursor-1]===`
`&&(this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--),!0):(this.#D(`
`),this._cursor++,!1)}constructor(D){let $=D.initialUserInput??D.initialValue;super({...D,initialUserInput:$},!1),$!==void 0&&(this._cursor=$.length),this.#Y=D.showSubmit??!1,this.on("key",(J,X)=>{if(X?.name&&jl.has(X.name)){this.#$=!1,this.#Q(X.name);return}if(J==="\t"&&this.#Y){this.focused=this.focused==="editor"?"submit":"editor";return}if(X?.name!=="return"){if(this.#$=!1,X?.name==="backspace"&&this.cursor>0){this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--;return}if(X?.name==="delete"&&this.cursor<this.userInput.length){this._setUserInput(this.userInput.slice(0,this.cursor)+this.userInput.slice(this.cursor+1));return}J&&(this.#Y&&this.focused==="submit"&&(this.focused="editor"),this.#D(J??""),this._cursor++)}}),this.on("userInput",(J)=>{this._setValue(J)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}};Zw=class extends v6{_mask="•";get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if(this.state==="submit"||this.state==="cancel")return this.masked;let $=this.userInput;if(this.cursor>=$.length)return`${this.masked}${B8(["inverse","hidden"],"_")}`;let J=this.masked,X=J.slice(0,this.cursor),Y=J.slice(this.cursor,this.cursor+1),Q=J.slice(this.cursor+1);return`${X}${B8("inverse",Y)}${Q}`}clear(){this._clearUserInput()}constructor({mask:$,...J}){super(J),this._mask=$??"•",this.on("userInput",(X)=>{this._setValue(X)}),this.on("finalize",()=>{this.value===void 0&&(this.value="")})}},zw=class extends v6{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let $=this._selectedValue;this.value=$===void 0?void 0:$.value}constructor($){super($,!1),this.options=$.options;let J=this.options.findIndex(({value:Y})=>Y===$.initialValue),X=J===-1?0:J;this.cursor=this.options[X]?.disabled?I8(X,1,this.options):X,this.changeValue(),this.on("cursor",(Y)=>{switch(Y){case"left":case"up":this.cursor=I8(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=I8(this.cursor,1,this.options);break}this.changeValue()})}};GF=class GF extends v6{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let D=this.userInput;if(this.cursor>=D.length)return`${this.userInput}█`;let $=D.slice(0,this.cursor),J=D.slice(this.cursor,this.cursor+1),X=D.slice(this.cursor+1);return`${$}${B8("inverse",J)}${X}`}get cursor(){return this._cursor}constructor(D){super({...D,initialUserInput:D.initialUserInput??D.initialValue}),this.on("userInput",($)=>{this._setValue($)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}}});import{styleText as t,stripVTControlCharacters as uID}from"node:util";import t$ from"node:process";function Ll(){if(t$.platform!=="win32")return t$.env.TERM!=="linux";return Boolean(t$.env.CI)||Boolean(t$.env.WT_SESSION)||Boolean(t$.env.TERMINUS_SUBLIME)||t$.env.ConEmuTask==="{cmd::Cmder}"||t$.env.TERM_PROGRAM==="Terminus-Sublime"||t$.env.TERM_PROGRAM==="vscode"||t$.env.TERM==="xterm-256color"||t$.env.TERM==="alacritty"||t$.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}function Cl(D,$){let J=[`${$?`${t("cyan",_D)} `:""}${D.join(" • ")}`];return $&&J.push(t("cyan",E6)),J}var k9,zF,Rl=()=>process.env.CI==="true",pD=(D,$)=>zF?D:$,Ml,Iw,Bw,IF,Al,_D,E6,yID,hID,HF,g3,mID,lID,dID,vl,iID,cID,pID,nID,rID,tID,El,Tl,Pl,bl,x3=(D)=>{switch(D){case"initial":case"active":return t("cyan",Ml);case"cancel":return t("red",Iw);case"error":return t("yellow",Bw);case"submit":return t("green",IF)}},Sl=(D)=>{switch(D){case"initial":case"active":return t("cyan",_D);case"cancel":return t("red",_D);case"error":return t("yellow",_D);case"submit":return t("green",_D)}},Hw=(D,$,J,X,Y,Q=!1)=>{let U=$,F=0;if(Q)for(let W=X-1;W>=J;W--){let K=D[W];if(K&&(U-=K.length),F++,U<=Y)break}else for(let W=J;W<X;W++){let K=D[W];if(K&&(U-=K.length),F++,U<=Y)break}return{lineCount:U,removals:F}},kl=({cursor:D,options:$,style:J,output:X=process.stdout,maxItems:Y=Number.POSITIVE_INFINITY,columnPadding:Q=0,rowPadding:U=4})=>{let F=_3(X)-Q,W=KF(X),K=t("dim","..."),q=Math.max(W-U,0),G=Math.max(Math.min(Y,q),5),Z=0;D>=G-3&&(Z=Math.max(Math.min(D-G+3,$.length-G),0));let H=G<$.length&&Z>0,z=G<$.length&&Z+G<$.length,I=Math.min(Z+G,$.length),B=[],N=0;H&&N++,z&&N++;let V=Z+(H?1:0),O=I-(z?1:0);for(let v=V;v<O;v++){let A=$[v],k=A?J(A,v===D):"",u=s6(k,F,{hard:!0,trim:!1}).split(`
`);B.push(u),N+=u.length}if(N>q){let v=0,A=0,k=N,u=D-V,_=q,y=()=>Hw(B,k,0,u,_),T=()=>Hw(B,k,u+1,B.length,_,!0);H?({lineCount:k,removals:v}=y(),k>_&&(z||(_-=1),{lineCount:k,removals:A}=T())):(z||(_-=1),{lineCount:k,removals:A}=T(),k>_&&(_-=1,{lineCount:k,removals:v}=y())),v>0&&(H=!0,B.splice(0,v)),A>0&&(z=!0,B.splice(B.length-A,A))}let j=[];H&&j.push(K);for(let v of B)for(let A of v)j.push(A);return z&&j.push(K),j},O8=(D)=>{let $=D.active??"Yes",J=D.inactive??"No";return new qF({active:$,inactive:J,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue??!0,render(){let X=D.withGuide??w0.withGuide,Y=`${x3(this.state)} `,Q=X?`${t("gray",_D)} `:"",U=C9(D.output,D.message,Q,Y),F=`${X?`${t("gray",_D)}
`:""}${U}
`,W=this.value?$:J;switch(this.state){case"submit":{let K=X?`${t("gray",_D)} `:"";return`${F}${K}${t("dim",W)}`}case"cancel":{let K=X?`${t("gray",_D)} `:"";return`${F}${K}${t(["strikethrough","dim"],W)}${X?`
${t("gray",_D)}`:""}`}default:{let K=X?`${t("cyan",_D)} `:"",q=X?t("cyan",E6):"";return`${F}${K}${this.value?`${t("green",HF)} ${$}`:`${t("dim",g3)} ${t("dim",$)}`}${D.vertical?X?`
${t("cyan",_D)} `:`
`:` ${t("dim","/")} `}${this.value?`${t("dim",g3)} ${t("dim",J)}`:`${t("green",HF)} ${J}`}
${q}
`}}}}).prompt()},oID,lD,aID=(D="",$)=>{let J=$?.output??process.stdout,X=$?.withGuide??w0.withGuide?`${t("gray",E6)} `:"";J.write(`${X}${t("red",D)}
`)},f3=(D="",$)=>{let J=$?.output??process.stdout,X=$?.withGuide??w0.withGuide?`${t("gray",Al)} `:"";J.write(`${X}${D}
`)},_9=(D="",$)=>{let J=$?.output??process.stdout,X=$?.withGuide??w0.withGuide?`${t("gray",_D)}
${t("gray",E6)} `:"";J.write(`${X}${D}
`)},sID=(D)=>new Zw({validate:D.validate,mask:D.mask??vl,signal:D.signal,input:D.input,output:D.output,render(){let $=D.withGuide??w0.withGuide,J=`${$?`${t("gray",_D)}
`:""}${x3(this.state)} ${D.message}
`,X=this.userInputWithCursor,Y=this.masked;switch(this.state){case"error":{let Q=$?`${t("yellow",_D)} `:"",U=$?`${t("yellow",E6)} `:"",F=Y??"";return D.clearOnError&&this.clear(),`${J.trim()}
${Q}${F}
${U}${t("yellow",this.error)}
`}case"submit":{let Q=$?`${t("gray",_D)} `:"",U=Y?t("dim",Y):"";return`${J}${Q}${U}`}case"cancel":{let Q=$?`${t("gray",_D)} `:"",U=Y?t(["strikethrough","dim"],Y):"";return`${J}${Q}${U}${Y&&$?`
${t("gray",_D)}`:""}`}default:{let Q=$?`${t("cyan",_D)} `:"",U=$?t("cyan",E6):"";return`${J}${Q}${X}
${U}
`}}}}).prompt(),_l=(D)=>t("magenta",D),N8=({indicator:D="dots",onCancel:$,output:J=process.stdout,cancelMessage:X,errorMessage:Y,frames:Q=zF?["◒","◐","◓","◑"]:["•","o","O","0"],delay:U=zF?80:120,signal:F,...W}={})=>{let K=Rl(),q,G,Z=!1,H=!1,z="",I,B=performance.now(),N=_3(J),V=W?.styleFrame??_l,O=(p)=>{let o=p>1?Y??w0.messages.error:X??w0.messages.cancel;H=p===1,Z&&(c(o,p),H&&typeof $=="function"&&$())},j=()=>O(2),v=()=>O(1),A=()=>{process.on("uncaughtExceptionMonitor",j),process.on("unhandledRejection",j),process.on("SIGINT",v),process.on("SIGTERM",v),process.on("exit",O),F&&F.addEventListener("abort",v)},k=()=>{process.removeListener("uncaughtExceptionMonitor",j),process.removeListener("unhandledRejection",j),process.removeListener("SIGINT",v),process.removeListener("SIGTERM",v),process.removeListener("exit",O),F&&F.removeEventListener("abort",v)},u=()=>{if(I===void 0)return;K&&J.write(`
`);let p=s6(I,N,{hard:!0,trim:!1}).split(`
`);p.length>1&&J.write(k9.cursor.up(p.length-1)),J.write(k9.cursor.to(0)),J.write(k9.erase.down())},_=(p)=>p.replace(/\.+$/,""),y=(p)=>{let o=(performance.now()-p)/1000,R=Math.floor(o/60),w=Math.floor(o%60);return R>0?`[${R}m ${w}s]`:`[${w}s]`},T=W.withGuide??w0.withGuide,d=(p="")=>{Z=!0,q=Fw({output:J}),z=_(p),B=performance.now(),T&&J.write(`${t("gray",_D)}
`);let o=0,R=0;A(),G=setInterval(()=>{if(K&&z===I)return;u(),I=z;let w=V(Q[o]),L;if(K)L=`${w} ${z}...`;else if(D==="timer")L=`${w} ${z} ${y(B)}`;else{let f=".".repeat(Math.floor(R)).slice(0,3);L=`${w} ${z}${f}`}let P=s6(L,N,{hard:!0,trim:!1});J.write(P),o=o+1<Q.length?o+1:0,R=R<4?R+0.125:0},U)},c=(p="",o=0,R=!1)=>{if(!Z)return;Z=!1,clearInterval(G),u();let w=o===0?t("green",IF):o===1?t("red",Iw):t("red",Bw);z=p??z,R||(D==="timer"?J.write(`${w} ${z} ${y(B)}
`):J.write(`${w} ${z}
`)),k(),q()};return{start:d,stop:(p="")=>c(p,0),message:(p="")=>{z=_(p??z)},cancel:(p="")=>c(p,1),error:(p="")=>c(p,2),clear:()=>c("",0,!0),get isCancelled(){return H}}},eID,ul,u3=(D,$)=>D.includes(`
`)?D.split(`
`).map((J)=>$(J)).join(`
`):$(D),Ow=(D)=>{let $=(X,Y)=>{if(X===void 0)return"";let Q=X.label??String(X.value);switch(Y){case"disabled":return`${t("gray",g3)} ${u3(Q,(U)=>t("gray",U))}${X.hint?` ${t("dim",`(${X.hint??"disabled"})`)}`:""}`;case"selected":return`${u3(Q,(U)=>t("dim",U))}`;case"active":return`${t("green",HF)} ${Q}${X.hint?` ${t("dim",`(${X.hint})`)}`:""}`;case"cancelled":return`${u3(Q,(U)=>t(["strikethrough","dim"],U))}`;default:return`${t("dim",g3)} ${u3(Q,(U)=>t("dim",U))}`}},J=D.showInstructions??!0;return new zw({options:D.options,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue,render(){let X=D.withGuide??w0.withGuide,Y=`${x3(this.state)} `,Q=`${Sl(this.state)} `,U=C9(D.output,D.message,Q,Y),F=`${X?`${t("gray",_D)}
`:""}${U}
`;switch(this.state){case"submit":{let W=X?`${t("gray",_D)} `:"",K=C9(D.output,$(this.options[this.cursor],"selected"),W);return`${F}${K}`}case"cancel":{let W=X?`${t("gray",_D)} `:"",K=C9(D.output,$(this.options[this.cursor],"cancelled"),W);return`${F}${K}${X?`
${t("gray",_D)}`:""}`}default:{let W=X?`${t("cyan",_D)} `:"",K=F.split(`
`).length,q=J?Cl(ul,X):X?[t("cyan",E6)]:[],G=q.join(`
`),Z=q.length+1;return`${F}${W}${kl({output:D.output,cursor:this.cursor,options:this.options,maxItems:D.maxItems,columnPadding:W.length,rowPadding:K+Z,style:(H,z)=>$(H,H.disabled?"disabled":z?"active":"inactive")}).join(`
${W}`)}
${G}
`}}}}).prompt()},DBD,$BD=(D)=>new GF({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,output:D.output,signal:D.signal,input:D.input,render(){let $=D?.withGuide??w0.withGuide,J=`${`${$?`${t("gray",_D)}
`:""}${x3(this.state)} `}${D.message}
`,X=D.placeholder&&D.placeholder.length>0?t("inverse",D.placeholder[0])+t("dim",D.placeholder.slice(1)):t(["inverse","hidden"],"_"),Y=this.userInput?this.userInputWithCursor:X,Q=this.value??"";switch(this.state){case"error":{let U=this.error?` ${t("yellow",this.error)}`:"",F=$?`${t("yellow",_D)} `:"",W=$?t("yellow",E6):"";return`${J.trim()}
${F}${Y}
${W}${U}
`}case"submit":{let U=Q?` ${t("dim",Q)}`:"",F=$?t("gray",_D):"";return`${J}${F}${U}`}case"cancel":{let U=Q?` ${t(["strikethrough","dim"],Q)}`:"",F=$?t("gray",_D):"";return`${J}${F}${U}${Q.trim()?`
${F}`:""}`}default:{let U=$?`${t("cyan",_D)} `:"",F=$?t("cyan",E6):"";return`${J}${U}${Y}
${F}
`}}}}).prompt();var D1=C(()=>{ZF();ZF();$F();aU();k9=w$(XF(),1);zF=Ll(),Ml=pD("◆","*"),Iw=pD("■","x"),Bw=pD("▲","x"),IF=pD("◇","o"),Al=pD("┌","T"),_D=pD("│","|"),E6=pD("└","—"),yID=pD("┐","T"),hID=pD("┘","—"),HF=pD("●",">"),g3=pD("○"," "),mID=pD("◻","[•]"),lID=pD("◼","[+]"),dID=pD("◻","[ ]"),vl=pD("▪","•"),iID=pD("─","-"),cID=pD("╮","+"),pID=pD("├","+"),nID=pD("╯","+"),rID=pD("╰","+"),tID=pD("╭","+"),El=pD("●","•"),Tl=pD("◆","*"),Pl=pD("▲","!"),bl=pD("■","x");oID=[`${t("dim","↑/↓")} to navigate`,`${t("dim","Space:")} select`,`${t("dim","Enter:")} confirm`],lD={message:(D=[],{symbol:$=t("gray",_D),secondarySymbol:J=t("gray",_D),output:X=process.stdout,spacing:Y=1,withGuide:Q}={})=>{let U=[],F=Q??w0.withGuide,W=F?J:"",K=F?`${$} `:"",q=F?`${J} `:"";for(let Z=0;Z<Y;Z++)U.push(W);let G=Array.isArray(D)?D:D.split(`
`);if(G.length>0){let[Z,...H]=G;Z.length>0?U.push(`${K}${Z}`):U.push(F?$:"");for(let z of H)z.length>0?U.push(`${q}${z}`):U.push(F?J:"")}X.write(`${U.join(`
`)}
`)},info:(D,$)=>{lD.message(D,{...$,symbol:t("blue",El)})},success:(D,$)=>{lD.message(D,{...$,symbol:t("green",Tl)})},step:(D,$)=>{lD.message(D,{...$,symbol:t("green",IF)})},warn:(D,$)=>{lD.message(D,{...$,symbol:t("yellow",Pl)})},warning:(D,$)=>{lD.warn(D,$)},error:(D,$)=>{lD.message(D,{...$,symbol:t("red",bl)})}},eID={light:pD("─","-"),heavy:pD("━","="),block:pD("█","#")},ul=[`${t("dim","↑/↓")} to navigate`,`${t("dim","Enter:")} confirm`],DBD=`${t("gray",_D)} `});function y3(D,$){if(isNaN(D)||isNaN($))throw Error("Cannot compare against non-numbers");return D===$?0:D<$?-1:1}function ww(D=[],$=[]){if(D.length&&!$.length)return-1;if(!D.length&&$.length)return 1;return 0}function h3(D=[],$=[]){let J=Math.max(D.length,$.length);for(let X=0;X<J;X++){let Y=D[X],Q=$[X];if(Y===void 0&&Q===void 0)return 0;if(Q===void 0)return 1;if(Y===void 0)return-1;if(typeof Y==="string"&&typeof Q==="number")return 1;if(typeof Y==="number"&&typeof Q==="string")return-1;if(Y<Q)return-1;if(Y>Q)return 1}return 0}function OF(D){return typeof D==="number"&&!Number.isNaN(D)&&(!Number.isFinite(D)||0<=D&&D<=Number.MAX_SAFE_INTEGER)}function G$(D){return D.split(".").filter(Boolean).map(($)=>{if(yl.test($)){let J=Number($);if(OF(J))return J}return $})}function G6(D){return D.split(".").filter(Boolean)}function l3(D,$){let J=Number(D);if(!OF(J))throw TypeError($);return J}function T6(D){return Number.isNaN(D.major)&&Number.isNaN(D.minor)&&Number.isNaN(D.patch)&&(D.prerelease===void 0||D.prerelease.length===0)&&(D.build===void 0||D.build.length===0)}var V8="0|[1-9]\\d*",gl="\\d*[a-zA-Z-][a-zA-Z0-9-]*",xl,Nw,jw,Vw="[0-9A-Za-z-]+",Lw,Rw,Mw,Aw="(?:<|>)?=?",fl="x|X|\\*",BF,m3,vw,Ew,NF=256,yl;var j$=C(()=>{xl=`(?<major>${V8})\\.(?<minor>${V8})\\.(?<patch>${V8})`,Nw=`(?:${V8}|${gl})`,jw=`(?:-(?<prerelease>${Nw}(?:\\.${Nw})*))`,Lw=`(?:\\+(?<buildmetadata>${Vw}(?:\\.${Vw})*))`,Rw=`v?${xl}${jw}?${Lw}?`,Mw=new RegExp(`^${Rw}$`),BF=`${V8}|${fl}`,m3=`[v=\\s]*(?<major>${BF})(?:\\.(?<minor>${BF})(?:\\.(?<patch>${BF})${jw}?${Lw}?)?)?`,vw=new RegExp(`^(?<operator>~>?|\\^|${Aw})\\s*${m3}$`),Ew=new RegExp(`^(?<operator>${Aw})\\s*(${Rw})$|^$`);yl=new RegExp(`^${V8}$`)});function n0(D,$){if(D===$)return 0;return y3(D.major,$.major)||y3(D.minor,$.minor)||y3(D.patch,$.patch)||ww(D.prerelease,$.prerelease)||h3(D.prerelease,$.prerelease)}var x$=C(()=>{j$()});function WBD(D,$){let J=D.prerelease?.length||$.prerelease?.length;if(D.major!==$.major)return J?"premajor":"major";if(D.minor!==$.minor)return J?"preminor":"minor";if(D.patch!==$.patch)return J?"prepatch":"patch";if(h3(D.prerelease,$.prerelease)!==0)return"prerelease"}var Tw=C(()=>{j$()});function VF(D){return D.toFixed(0)}function wF(D){let $=VF(D.major),J=VF(D.minor),X=VF(D.patch),Y=D.prerelease?.join(".")??"",Q=D.build?.join(".")??"";return[[`${$}.${J}.${X}`,Y].filter((W)=>W).join("-"),Q].filter((W)=>W).join("+")}function hl(D,$){if(T6($))return!0;let J=n0(D,$);switch($.operator){case"=":case void 0:return J===0;case"!=":return J!==0;case">":return J>0;case"<":return J<0;case">=":return J>=0;case"<=":return J<=0}}function d3(D,$){for(let J of $)if(!hl(D,J))return!1;if(!D.prerelease?.length)return!0;for(let J of $){if(T6(J))continue;if(!J.prerelease?.length)continue;let{major:X,minor:Y,patch:Q}=J;if(D.major===X&&D.minor===Y&&D.patch===Q)return!0}return!1}var i3=C(()=>{j$();x$()});function u9(D,$){return $.some((J)=>d3(D,J))}var g9=C(()=>{i3()});function ml(D=[]){let $=[...D],J=$.length;while(J>=0){let X=$[J];if(typeof X==="number"){$[J]=X+1;break}J-=1}if(J===-1)$.push(0);return $}function x9(D=[],$){let J=ml(D);if(!$)return J;let X=G$($);if(X.every((Y)=>typeof Y==="string")){if(X.every((Y,Q)=>Y===J[Q])&&typeof J[X.length]==="number")return J;X=[...X,0]}return X}function OBD(D,$,J={}){let X=J.build!==void 0?G6(J.build):D.build??[];switch($){case"premajor":return{major:D.major+1,minor:0,patch:0,prerelease:x9(D.prerelease,J.prerelease),build:X};case"preminor":return{major:D.major,minor:D.minor+1,patch:0,prerelease:x9(D.prerelease,J.prerelease),build:X};case"prepatch":return{major:D.major,minor:D.minor,patch:D.patch+1,prerelease:x9(D.prerelease,J.prerelease),build:X};case"prerelease":{let Q=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:Q,prerelease:x9(D.prerelease,J.prerelease),build:X}}case"major":return{major:(D.prerelease??[]).length===0||D.minor!==0||D.patch!==0?D.major+1:D.major,minor:0,patch:0,prerelease:[],build:X};case"minor":{let Q=(D.prerelease??[]).length===0||D.patch!==0?D.minor+1:D.minor;return{major:D.major,minor:Q,patch:0,prerelease:[],build:X}}case"patch":{let Q=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:Q,prerelease:[],build:X}}case"pre":return{major:D.major,minor:D.minor,patch:D.patch,prerelease:x9(D.prerelease,J.prerelease),build:X};default:throw TypeError(`Cannot increment version: invalid argument ${$}`)}}var Pw=C(()=>{j$()});var c3,w8;var f9=C(()=>{c3={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},w8={operator:void 0,...c3}});var jF=C(()=>{f9();j$()});function ll(D,$){return n0(D,$)>0}var LF=C(()=>{x$()});var bw=C(()=>{g9();LF()});function n1(D,$){return n0(D,$)<0}var RF=C(()=>{x$()});var Sw=C(()=>{g9();RF()});function dl(D){let J=D.match(Ew)?.groups;if(!J)return null;let{operator:X}=J;return{operator:X||void 0,...c3}}function rD(D){return!D||D.toLowerCase()==="x"||D==="*"}function il(D){if(rD(D.major))return;if(rD(D.minor))return{operator:">=",major:+D.major,minor:0,patch:0,prerelease:[],build:[]};if(rD(D.patch))return{operator:">=",major:+D.major,minor:+D.minor,patch:0,prerelease:[],build:[]};return{operator:">=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:D.prerelease?G$(D.prerelease):[],build:[]}}function cl(D){if(rD(D.major))return;if(rD(D.minor))return{operator:"<",major:+D.major+1,minor:0,patch:0,prerelease:[],build:[]};if(rD(D.patch))return{operator:"<",major:+D.major,minor:+D.minor+1,patch:0,prerelease:[],build:[]};if(D.prerelease)return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:G$(D.prerelease),build:[]};return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:[],build:[]}}function pl(D){let $=D.match(new RegExp(`^${m3}`)),J=$?.groups;if(!J)return null;let X=$[0].length,Y=D.slice(X).match(/^\s+-\s+/);if(!Y)return null;let Q=Y[0].length,F=D.slice(X+Q).match(new RegExp(`^${m3}\\s*$`))?.groups,W=il(J),K=cl(F);return[W,K].filter(Boolean)}function nl(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[w8];if(J)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(X){if(Y===0)return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y,minor:Q+1,patch:0}];return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}]}let F=G$(D.prerelease??"");if(Y===0){if(Q===0)return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y,minor:Q,patch:U+1}];return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y,minor:Q+1,patch:0}]}return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y+1,minor:0,patch:0}]}function rl(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[w8];if(J)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y,minor:Q+1,patch:0}];let F=G$(D.prerelease??"");return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F},{operator:"<",major:Y,minor:Q+1,patch:0}]}function tl(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(J){if(X)return[{operator:"<",major:Y,minor:0,patch:0}];return[{operator:"<",major:Y,minor:0,patch:0}]}if(X)return[{operator:"<",major:Y,minor:Q,patch:0}];let F=G$(D.prerelease??""),W=G6(D.build??"");return[{operator:"<",major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function ol(D){let $=rD(D.minor),J=rD(D.patch),X=+D.major,Y=+D.minor,Q=+D.patch;if($)return[{operator:"<",major:X+1,minor:0,patch:0}];if(J)return[{operator:"<",major:X,minor:Y+1,patch:0}];let U=G$(D.prerelease??""),F=G6(D.build??"");return[{operator:"<=",major:X,minor:Y,patch:Q,prerelease:U,build:F}]}function al(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(J)return[{operator:">=",major:Y+1,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q+1,patch:0}];let F=G$(D.prerelease??""),W=G6(D.build??"");return[{operator:">",major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function sl(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[w8];if(J)return[{operator:">=",major:Y,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q,patch:0}];let F=G$(D.prerelease??""),W=G6(D.build??"");return[{operator:">=",major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function el(D){let $=rD(D.major),J=rD(D.minor),X=rD(D.patch),Y=+D.major,Q=+D.minor,U=+D.patch;if($)return[w8];if(J)return[{operator:">=",major:Y,minor:0,patch:0},{operator:"<",major:Y+1,minor:0,patch:0}];if(X)return[{operator:">=",major:Y,minor:Q,patch:0},{operator:"<",major:Y,minor:Q+1,patch:0}];let F=G$(D.prerelease??""),W=G6(D.build??"");return[{operator:D.operator==="="?"=":void 0,major:Y,minor:Q,patch:U,prerelease:F,build:W}]}function Dd(D){let $=D.match(vw)?.groups;if(!$)return dl(D);switch($.operator){case"^":return nl($);case"~":case"~>":return rl($);case"<":return tl($);case"<=":return ol($);case">":return al($);case">=":return sl($);default:return el($)}}function $d(D){return D.split(/\s+/).flatMap(Dd)}function p3(D){let $=D.replaceAll(/(?<=[<>=~^])(\s+)/g,"").split(/\s*\|\|\s*/).map((J)=>pl(J)||$d(J));if($.some((J)=>J.includes(null)))throw TypeError(`Cannot parse version range: range "${D}" is invalid`);return $}var MF=C(()=>{j$();f9()});function o$(D){if(typeof D!=="string")throw TypeError(`Cannot parse version as version must be a string: received ${typeof D}`);if(D.length>NF)throw TypeError(`Cannot parse version as version length is too long: length is ${D.length}, max length is ${NF}`);D=D.trim();let $=D.match(Mw)?.groups;if(!$)throw TypeError(`Cannot parse version: ${D}`);let J=l3($.major,`Cannot parse version ${D}: invalid major version`),X=l3($.minor,`Cannot parse version ${D}: invalid minor version`),Y=l3($.patch,`Cannot parse version ${D}: invalid patch version`),Q=$.prerelease?G$($.prerelease):[],U=$.buildmetadata?G6($.buildmetadata):[];return{major:J,minor:X,patch:Y,prerelease:Q,build:U}}var n3=C(()=>{j$();j$()});function Cw(D,$){let J=D.operator,X=$.operator;if(J===void 0){if(T6(D))return!0;return u9(D,[[$]])}if(X===void 0){if(T6($))return!0;return u9($,[[D]])}let Y=n0(D,$);return(J===">="||J===">")&&(X===">="||X===">")||(J==="<="||J==="<")&&(X==="<="||X==="<")||Y===0&&((J===">="||J==="<=")&&(X===">="||X==="<="))||Y===-1&&(J===">="||J===">")&&(X==="<="||X==="<")||Y===1&&(J==="<="||J==="<")&&(X===">="||X===">")}function Jd(D){return D.every(($)=>{return $.some((J)=>Xd(J))})}function Xd(D){for(let $=0;$<D.length-1;$++){let J=D[$];for(let X of D.slice($+1))if(!Cw(J,X))return!1}return!0}function kw(D,$){return Jd([D,$])&&D.some((J)=>{return $.some((X)=>{return J.every((Y)=>{return X.every((Q)=>Cw(Y,Q))})})})}var _w=C(()=>{j$();x$();g9()});var uw=C(()=>{MF()});var gw=C(()=>{f9();f9();jF()});function y9(D){try{return o$(D),!0}catch{return!1}}var xw=C(()=>{n3()});var fw=C(()=>{n3()});var yw=C(()=>{j$()});var hw=C(()=>{x$()});var mw=C(()=>{x$()});var lw=C(()=>{i3();j$();x$()});function HOD(D,$){return n0(D,$)>=0}var dw=C(()=>{x$()});var iw=C(()=>{i3();j$();x$()});var cw=C(()=>{x$()});var AF=C(()=>{x$();Tw();g9();Pw();jF();bw();Sw();MF();n3();_w();uw();gw();xw();fw();yw();hw();mw();LF();lw();dw();RF();iw();cw()});var Z$=S((rOD,o3)=>{var pw,nw,rw,tw,ow,aw,sw,ew,Dj,$j,Jj,Xj,Yj,r3,vF,Qj,Uj,Fj,j8,Wj,Kj,qj,Gj,Zj,zj,Hj,Ij,Bj,t3,Oj,Nj,Vj;(function(D){var $=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(X){D(J($,J(X)))});else if(typeof o3==="object"&&typeof rOD==="object")D(J($,J(rOD)));else D(J($));function J(X,Y){if(X!==$)if(typeof Object.create==="function")Object.defineProperty(X,"__esModule",{value:!0});else X.__esModule=!0;return function(Q,U){return X[Q]=Y?Y(Q,U):U}}})(function(D){var $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,U){Q.__proto__=U}||function(Q,U){for(var F in U)if(Object.prototype.hasOwnProperty.call(U,F))Q[F]=U[F]};pw=function(Q,U){if(typeof U!=="function"&&U!==null)throw TypeError("Class extends value "+String(U)+" is not a constructor or null");$(Q,U);function F(){this.constructor=Q}Q.prototype=U===null?Object.create(U):(F.prototype=U.prototype,new F)},nw=Object.assign||function(Q){for(var U,F=1,W=arguments.length;F<W;F++){U=arguments[F];for(var K in U)if(Object.prototype.hasOwnProperty.call(U,K))Q[K]=U[K]}return Q},rw=function(Q,U){var F={};for(var W in Q)if(Object.prototype.hasOwnProperty.call(Q,W)&&U.indexOf(W)<0)F[W]=Q[W];if(Q!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var K=0,W=Object.getOwnPropertySymbols(Q);K<W.length;K++)if(U.indexOf(W[K])<0&&Object.prototype.propertyIsEnumerable.call(Q,W[K]))F[W[K]]=Q[W[K]]}return F},tw=function(Q,U,F,W){var K=arguments.length,q=K<3?U:W===null?W=Object.getOwnPropertyDescriptor(U,F):W,G;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")q=Reflect.decorate(Q,U,F,W);else for(var Z=Q.length-1;Z>=0;Z--)if(G=Q[Z])q=(K<3?G(q):K>3?G(U,F,q):G(U,F))||q;return K>3&&q&&Object.defineProperty(U,F,q),q},ow=function(Q,U){return function(F,W){U(F,W,Q)}},aw=function(Q,U,F,W,K,q){function G(A){if(A!==void 0&&typeof A!=="function")throw TypeError("Function expected");return A}var Z=W.kind,H=Z==="getter"?"get":Z==="setter"?"set":"value",z=!U&&Q?W.static?Q:Q.prototype:null,I=U||(z?Object.getOwnPropertyDescriptor(z,W.name):{}),B,N=!1;for(var V=F.length-1;V>=0;V--){var O={};for(var j in W)O[j]=j==="access"?{}:W[j];for(var j in W.access)O.access[j]=W.access[j];O.addInitializer=function(A){if(N)throw TypeError("Cannot add initializers after decoration has completed");q.push(G(A||null))};var v=(0,F[V])(Z==="accessor"?{get:I.get,set:I.set}:I[H],O);if(Z==="accessor"){if(v===void 0)continue;if(v===null||typeof v!=="object")throw TypeError("Object expected");if(B=G(v.get))I.get=B;if(B=G(v.set))I.set=B;if(B=G(v.init))K.unshift(B)}else if(B=G(v))if(Z==="field")K.unshift(B);else I[H]=B}if(z)Object.defineProperty(z,W.name,I);N=!0},sw=function(Q,U,F){var W=arguments.length>2;for(var K=0;K<U.length;K++)F=W?U[K].call(Q,F):U[K].call(Q);return W?F:void 0},ew=function(Q){return typeof Q==="symbol"?Q:"".concat(Q)},Dj=function(Q,U,F){if(typeof U==="symbol")U=U.description?"[".concat(U.description,"]"):"";return Object.defineProperty(Q,"name",{configurable:!0,value:F?"".concat(F," ",U):U})},$j=function(Q,U){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Q,U)},Jj=function(Q,U,F,W){function K(q){return q instanceof F?q:new F(function(G){G(q)})}return new(F||(F=Promise))(function(q,G){function Z(I){try{z(W.next(I))}catch(B){G(B)}}function H(I){try{z(W.throw(I))}catch(B){G(B)}}function z(I){I.done?q(I.value):K(I.value).then(Z,H)}z((W=W.apply(Q,U||[])).next())})},Xj=function(Q,U){var F={label:0,sent:function(){if(q[0]&1)throw q[1];return q[1]},trys:[],ops:[]},W,K,q,G=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return G.next=Z(0),G.throw=Z(1),G.return=Z(2),typeof Symbol==="function"&&(G[Symbol.iterator]=function(){return this}),G;function Z(z){return function(I){return H([z,I])}}function H(z){if(W)throw TypeError("Generator is already executing.");while(G&&(G=0,z[0]&&(F=0)),F)try{if(W=1,K&&(q=z[0]&2?K.return:z[0]?K.throw||((q=K.return)&&q.call(K),0):K.next)&&!(q=q.call(K,z[1])).done)return q;if(K=0,q)z=[z[0]&2,q.value];switch(z[0]){case 0:case 1:q=z;break;case 4:return F.label++,{value:z[1],done:!1};case 5:F.label++,K=z[1],z=[0];continue;case 7:z=F.ops.pop(),F.trys.pop();continue;default:if((q=F.trys,!(q=q.length>0&&q[q.length-1]))&&(z[0]===6||z[0]===2)){F=0;continue}if(z[0]===3&&(!q||z[1]>q[0]&&z[1]<q[3])){F.label=z[1];break}if(z[0]===6&&F.label<q[1]){F.label=q[1],q=z;break}if(q&&F.label<q[2]){F.label=q[2],F.ops.push(z);break}if(q[2])F.ops.pop();F.trys.pop();continue}z=U.call(Q,F)}catch(I){z=[6,I],K=0}finally{W=q=0}if(z[0]&5)throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}},Yj=function(Q,U){for(var F in Q)if(F!=="default"&&!Object.prototype.hasOwnProperty.call(U,F))t3(U,Q,F)},t3=Object.create?function(Q,U,F,W){if(W===void 0)W=F;var K=Object.getOwnPropertyDescriptor(U,F);if(!K||("get"in K?!U.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return U[F]}};Object.defineProperty(Q,W,K)}:function(Q,U,F,W){if(W===void 0)W=F;Q[W]=U[F]},r3=function(Q){var U=typeof Symbol==="function"&&Symbol.iterator,F=U&&Q[U],W=0;if(F)return F.call(Q);if(Q&&typeof Q.length==="number")return{next:function(){if(Q&&W>=Q.length)Q=void 0;return{value:Q&&Q[W++],done:!Q}}};throw TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")},vF=function(Q,U){var F=typeof Symbol==="function"&&Q[Symbol.iterator];if(!F)return Q;var W=F.call(Q),K,q=[],G;try{while((U===void 0||U-- >0)&&!(K=W.next()).done)q.push(K.value)}catch(Z){G={error:Z}}finally{try{if(K&&!K.done&&(F=W.return))F.call(W)}finally{if(G)throw G.error}}return q},Qj=function(){for(var Q=[],U=0;U<arguments.length;U++)Q=Q.concat(vF(arguments[U]));return Q},Uj=function(){for(var Q=0,U=0,F=arguments.length;U<F;U++)Q+=arguments[U].length;for(var W=Array(Q),K=0,U=0;U<F;U++)for(var q=arguments[U],G=0,Z=q.length;G<Z;G++,K++)W[K]=q[G];return W},Fj=function(Q,U,F){if(F||arguments.length===2){for(var W=0,K=U.length,q;W<K;W++)if(q||!(W in U)){if(!q)q=Array.prototype.slice.call(U,0,W);q[W]=U[W]}}return Q.concat(q||Array.prototype.slice.call(U))},j8=function(Q){return this instanceof j8?(this.v=Q,this):new j8(Q)},Wj=function(Q,U,F){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var W=F.apply(Q,U||[]),K,q=[];return K=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),Z("next"),Z("throw"),Z("return",G),K[Symbol.asyncIterator]=function(){return this},K;function G(V){return function(O){return Promise.resolve(O).then(V,B)}}function Z(V,O){if(W[V]){if(K[V]=function(j){return new Promise(function(v,A){q.push([V,j,v,A])>1||H(V,j)})},O)K[V]=O(K[V])}}function H(V,O){try{z(W[V](O))}catch(j){N(q[0][3],j)}}function z(V){V.value instanceof j8?Promise.resolve(V.value.v).then(I,B):N(q[0][2],V)}function I(V){H("next",V)}function B(V){H("throw",V)}function N(V,O){if(V(O),q.shift(),q.length)H(q[0][0],q[0][1])}},Kj=function(Q){var U,F;return U={},W("next"),W("throw",function(K){throw K}),W("return"),U[Symbol.iterator]=function(){return this},U;function W(K,q){U[K]=Q[K]?function(G){return(F=!F)?{value:j8(Q[K](G)),done:!1}:q?q(G):G}:q}},qj=function(Q){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var U=Q[Symbol.asyncIterator],F;return U?U.call(Q):(Q=typeof r3==="function"?r3(Q):Q[Symbol.iterator](),F={},W("next"),W("throw"),W("return"),F[Symbol.asyncIterator]=function(){return this},F);function W(q){F[q]=Q[q]&&function(G){return new Promise(function(Z,H){G=Q[q](G),K(Z,H,G.done,G.value)})}}function K(q,G,Z,H){Promise.resolve(H).then(function(z){q({value:z,done:Z})},G)}},Gj=function(Q,U){if(Object.defineProperty)Object.defineProperty(Q,"raw",{value:U});else Q.raw=U;return Q};var J=Object.create?function(Q,U){Object.defineProperty(Q,"default",{enumerable:!0,value:U})}:function(Q,U){Q.default=U},X=function(Q){return X=Object.getOwnPropertyNames||function(U){var F=[];for(var W in U)if(Object.prototype.hasOwnProperty.call(U,W))F[F.length]=W;return F},X(Q)};Zj=function(Q){if(Q&&Q.__esModule)return Q;var U={};if(Q!=null){for(var F=X(Q),W=0;W<F.length;W++)if(F[W]!=="default")t3(U,Q,F[W])}return J(U,Q),U},zj=function(Q){return Q&&Q.__esModule?Q:{default:Q}},Hj=function(Q,U,F,W){if(F==="a"&&!W)throw TypeError("Private accessor was defined without a getter");if(typeof U==="function"?Q!==U||!W:!U.has(Q))throw TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?W:F==="a"?W.call(Q):W?W.value:U.get(Q)},Ij=function(Q,U,F,W,K){if(W==="m")throw TypeError("Private method is not writable");if(W==="a"&&!K)throw TypeError("Private accessor was defined without a setter");if(typeof U==="function"?Q!==U||!K:!U.has(Q))throw TypeError("Cannot write private member to an object whose class did not declare it");return W==="a"?K.call(Q,F):K?K.value=F:U.set(Q,F),F},Bj=function(Q,U){if(U===null||typeof U!=="object"&&typeof U!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Q==="function"?U===Q:Q.has(U)},Oj=function(Q,U,F){if(U!==null&&U!==void 0){if(typeof U!=="object"&&typeof U!=="function")throw TypeError("Object expected.");var W,K;if(F){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");W=U[Symbol.asyncDispose]}if(W===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(W=U[Symbol.dispose],F)K=W}if(typeof W!=="function")throw TypeError("Object not disposable.");if(K)W=function(){try{K.call(this)}catch(q){return Promise.reject(q)}};Q.stack.push({value:U,dispose:W,async:F})}else if(F)Q.stack.push({async:!0});return U};var Y=typeof SuppressedError==="function"?SuppressedError:function(Q,U,F){var W=Error(F);return W.name="SuppressedError",W.error=Q,W.suppressed=U,W};Nj=function(Q){function U(q){Q.error=Q.hasError?new Y(q,Q.error,"An error was suppressed during disposal."):q,Q.hasError=!0}var F,W=0;function K(){while(F=Q.stack.pop())try{if(!F.async&&W===1)return W=0,Q.stack.push(F),Promise.resolve().then(K);if(F.dispose){var q=F.dispose.call(F.value);if(F.async)return W|=2,Promise.resolve(q).then(K,function(G){return U(G),K()})}else W|=1}catch(G){U(G)}if(W===1)return Q.hasError?Promise.reject(Q.error):Promise.resolve();if(Q.hasError)throw Q.error}return K()},Vj=function(Q,U){if(typeof Q==="string"&&/^\.\.?\//.test(Q))return Q.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(F,W,K,q,G){return W?U?".jsx":".js":K&&(!q||!G)?F:K+q+"."+G.toLowerCase()+"js"});return Q},D("__extends",pw),D("__assign",nw),D("__rest",rw),D("__decorate",tw),D("__param",ow),D("__esDecorate",aw),D("__runInitializers",sw),D("__propKey",ew),D("__setFunctionName",Dj),D("__metadata",$j),D("__awaiter",Jj),D("__generator",Xj),D("__exportStar",Yj),D("__createBinding",t3),D("__values",r3),D("__read",vF),D("__spread",Qj),D("__spreadArrays",Uj),D("__spreadArray",Fj),D("__await",j8),D("__asyncGenerator",Wj),D("__asyncDelegator",Kj),D("__asyncValues",qj),D("__makeTemplateObject",Gj),D("__importStar",Zj),D("__importDefault",zj),D("__classPrivateFieldGet",Hj),D("__classPrivateFieldSet",Ij),D("__classPrivateFieldIn",Bj),D("__addDisposableResource",Oj),D("__disposeResources",Nj),D("__rewriteRelativeImportExtension",Vj)})});var Lj=S((wj)=>{Object.defineProperty(wj,"__esModule",{value:!0});wj.resolveFetch=void 0;var Yd=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)};wj.resolveFetch=Yd});var EF=S((Ej)=>{Object.defineProperty(Ej,"__esModule",{value:!0});Ej.FunctionRegion=Ej.FunctionsHttpError=Ej.FunctionsRelayError=Ej.FunctionsFetchError=Ej.FunctionsError=void 0;class h9 extends Error{constructor(D,$="FunctionsError",J){super(D);this.name=$,this.context=J}toJSON(){return{name:this.name,message:this.message,context:this.context}}}Ej.FunctionsError=h9;class Mj extends h9{constructor(D){super("Failed to send a request to the Edge Function","FunctionsFetchError",D)}}Ej.FunctionsFetchError=Mj;class Aj extends h9{constructor(D){super("Relay Error invoking the Edge Function","FunctionsRelayError",D)}}Ej.FunctionsRelayError=Aj;class vj extends h9{constructor(D){super("Edge Function returned a non-2xx status code","FunctionsHttpError",D)}}Ej.FunctionsHttpError=vj;var Rj;(function(D){D.Any="any",D.ApNortheast1="ap-northeast-1",D.ApNortheast2="ap-northeast-2",D.ApSouth1="ap-south-1",D.ApSoutheast1="ap-southeast-1",D.ApSoutheast2="ap-southeast-2",D.CaCentral1="ca-central-1",D.EuCentral1="eu-central-1",D.EuWest1="eu-west-1",D.EuWest2="eu-west-2",D.EuWest3="eu-west-3",D.SaEast1="sa-east-1",D.UsEast1="us-east-1",D.UsWest1="us-west-1",D.UsWest2="us-west-2"})(Rj||(Ej.FunctionRegion=Rj={}))});var Cj=S((bj)=>{Object.defineProperty(bj,"__esModule",{value:!0});bj.FunctionsClient=void 0;var Kd=Z$(),qd=Lj(),L8=EF();class Pj{constructor(D,{headers:$={},customFetch:J,region:X=L8.FunctionRegion.Any}={}){this.url=D,this.headers=$,this.region=X,this.fetch=(0,qd.resolveFetch)(J)}setAuth(D){this.headers.Authorization=`Bearer ${D}`}invoke(D){return Kd.__awaiter(this,arguments,void 0,function*($,J={}){var X,Y;let Q,U,F;try{let{headers:W,method:K,body:q,signal:G,timeout:Z}=J,H={},{region:z}=J;if(!z)z=this.region;let I=new URL(`${this.url}/${$}`);if(z&&z!=="any")H["x-region"]=z,I.searchParams.set("forceFunctionRegion",z);let B,N=!!W&&Object.keys(W).some((k)=>k.toLowerCase()==="content-type");if(q&&!N)if(typeof Blob<"u"&&q instanceof Blob||q instanceof ArrayBuffer)H["Content-Type"]="application/octet-stream",B=q;else if(typeof q==="string")H["Content-Type"]="text/plain",B=q;else if(typeof FormData<"u"&&q instanceof FormData)B=q;else H["Content-Type"]="application/json",B=JSON.stringify(q);else if(q&&typeof q!=="string"&&!(typeof Blob<"u"&&q instanceof Blob)&&!(q instanceof ArrayBuffer)&&!(typeof FormData<"u"&&q instanceof FormData))B=JSON.stringify(q);else B=q;let V=G;if(Z)if(U=new AbortController,Q=setTimeout(()=>U.abort(),Z),G)V=U.signal,F=()=>U.abort(),G.addEventListener("abort",F);else V=U.signal;let O=yield this.fetch(I.toString(),{method:K||"POST",headers:Object.assign(Object.assign(Object.assign({},H),this.headers),W),body:B,signal:V}).catch((k)=>{throw new L8.FunctionsFetchError(k)}),j=O.headers.get("x-relay-error");if(j&&j==="true")throw new L8.FunctionsRelayError(O);if(!O.ok)throw new L8.FunctionsHttpError(O);let v=((X=O.headers.get("Content-Type"))!==null&&X!==void 0?X:"text/plain").split(";")[0].trim().toLowerCase(),A;if(v==="application/json")A=yield O.json();else if(v==="application/octet-stream"||v==="application/pdf")A=yield O.blob();else if(v==="text/event-stream")A=O;else if(v==="multipart/form-data")A=yield O.formData();else A=yield O.text();return{data:A,error:null,response:O}}catch(W){return{data:null,error:W,response:W instanceof L8.FunctionsHttpError||W instanceof L8.FunctionsRelayError?W.context:void 0}}finally{if(Q)clearTimeout(Q);if(F)(Y=J.signal)===null||Y===void 0||Y.removeEventListener("abort",F)}})}}bj.FunctionsClient=Pj});var kj=S(($1)=>{Object.defineProperty($1,"__esModule",{value:!0});$1.FunctionRegion=$1.FunctionsRelayError=$1.FunctionsHttpError=$1.FunctionsFetchError=$1.FunctionsError=$1.FunctionsClient=void 0;var Gd=Cj();Object.defineProperty($1,"FunctionsClient",{enumerable:!0,get:function(){return Gd.FunctionsClient}});var m9=EF();Object.defineProperty($1,"FunctionsError",{enumerable:!0,get:function(){return m9.FunctionsError}});Object.defineProperty($1,"FunctionsFetchError",{enumerable:!0,get:function(){return m9.FunctionsFetchError}});Object.defineProperty($1,"FunctionsHttpError",{enumerable:!0,get:function(){return m9.FunctionsHttpError}});Object.defineProperty($1,"FunctionsRelayError",{enumerable:!0,get:function(){return m9.FunctionsRelayError}});Object.defineProperty($1,"FunctionRegion",{enumerable:!0,get:function(){return m9.FunctionRegion}})});function uj(D,$){return new Promise((J)=>{if($===null||$===void 0?void 0:$.aborted){J();return}let X=setTimeout(()=>{$===null||$===void 0||$.removeEventListener("abort",Y),J()},D);function Y(){clearTimeout(X),J()}$===null||$===void 0||$.addEventListener("abort",Y)})}function Hd(D,$,J,X){if(!X||J>=3)return!1;if(!fj.includes(D))return!1;if(!zd.includes($))return!1;return!0}function l9(D){return l9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},l9(D)}function Nd(D,$){if(l9(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(l9(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function Vd(D){var $=Nd(D,"string");return l9($)=="symbol"?$:$+""}function wd(D,$,J){return($=Vd($))in D?Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):D[$]=J,D}function xj(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function a3(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?xj(Object(J),!0).forEach(function(X){wd(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):xj(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}var _j=(D)=>Math.min(1000*2**D,30000),zd,fj,TF,Id=class{constructor(D){var $,J,X,Y,Q;if(this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=D.method,this.url=D.url,this.headers=new Headers(D.headers),this.schema=D.schema,this.body=D.body,this.shouldThrowOnError=($=D.shouldThrowOnError)!==null&&$!==void 0?$:!1,this.signal=D.signal,this.isMaybeSingle=(J=D.isMaybeSingle)!==null&&J!==void 0?J:!1,this.shouldStripNulls=(X=D.shouldStripNulls)!==null&&X!==void 0?X:!1,this.urlLengthLimit=(Y=D.urlLengthLimit)!==null&&Y!==void 0?Y:8000,this.retryEnabled=(Q=D.retry)!==null&&Q!==void 0?Q:!0,D.fetch)this.fetch=D.fetch;else this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(D,$){return this.headers=new Headers(this.headers),this.headers.set(D,$),this}retry(D){return this.retryEnabled=D,this}then(D,$){var J=this;if(this.schema===void 0);else if(["GET","HEAD"].includes(this.method))this.headers.set("Accept-Profile",this.schema);else this.headers.set("Content-Profile",this.schema);if(this.method!=="GET"&&this.method!=="HEAD")this.headers.set("Content-Type","application/json");if(this.shouldStripNulls){let U=this.headers.get("Accept");if(U==="application/vnd.pgrst.object+json")this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped");else if(!U||U==="application/json")this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}let X=this.fetch,Q=(async()=>{let U=0;while(!0){let K={};if(J.headers.forEach((G,Z)=>{K[Z]=G}),U>0)K["X-Retry-Count"]=String(U);let q;try{q=await X(J.url.toString(),{method:J.method,headers:K,body:JSON.stringify(J.body,(G,Z)=>typeof Z==="bigint"?Z.toString():Z),signal:J.signal})}catch(G){if((G===null||G===void 0?void 0:G.name)==="AbortError"||(G===null||G===void 0?void 0:G.code)==="ABORT_ERR")throw G;if(!fj.includes(J.method))throw G;if(J.retryEnabled&&U<3){let Z=_j(U);U++,await uj(Z,J.signal);continue}throw G}if(Hd(J.method,q.status,U,J.retryEnabled)){var F,W;let G=(F=(W=q.headers)===null||W===void 0?void 0:W.get("Retry-After"))!==null&&F!==void 0?F:null,Z=G!==null?Math.max(0,parseInt(G,10)||0)*1000:_j(U);await q.text(),U++,await uj(Z,J.signal);continue}return await J.processResponse(q)}})();if(!this.shouldThrowOnError)Q=Q.catch((U)=>{var F;let W="",K="",q="",G=U===null||U===void 0?void 0:U.cause;if(G){var Z,H,z,I;let V=(Z=G===null||G===void 0?void 0:G.message)!==null&&Z!==void 0?Z:"",O=(H=G===null||G===void 0?void 0:G.code)!==null&&H!==void 0?H:"";if(W=`${(z=U===null||U===void 0?void 0:U.name)!==null&&z!==void 0?z:"FetchError"}: ${U===null||U===void 0?void 0:U.message}`,W+=`
Caused by: ${(I=G===null||G===void 0?void 0:G.name)!==null&&I!==void 0?I:"Error"}: ${V}`,O)W+=` (${O})`;if(G===null||G===void 0?void 0:G.stack)W+=`
${G.stack}`}else{var B;W=(B=U===null||U===void 0?void 0:U.stack)!==null&&B!==void 0?B:""}let N=this.url.toString().length;if((U===null||U===void 0?void 0:U.name)==="AbortError"||(U===null||U===void 0?void 0:U.code)==="ABORT_ERR"){if(q="",K="Request was aborted (timeout or manual cancellation)",N>this.urlLengthLimit)K+=`. Note: Your request URL is ${N} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`}else if((G===null||G===void 0?void 0:G.name)==="HeadersOverflowError"||(G===null||G===void 0?void 0:G.code)==="UND_ERR_HEADERS_OVERFLOW"){if(q="",K="HTTP headers exceeded server limits (typically 16KB)",N>this.urlLengthLimit)K+=`. Your request URL is ${N} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`}return{success:!1,error:{message:`${(F=U===null||U===void 0?void 0:U.name)!==null&&F!==void 0?F:"FetchError"}: ${U===null||U===void 0?void 0:U.message}`,details:W,hint:K,code:q},data:null,count:null,status:0,statusText:""}});return Q.then(D,$)}async processResponse(D){var $=this;let J=null,X=null,Y=null,Q=D.status,U=D.statusText;if(D.ok){var F,W;if($.method!=="HEAD"){var K;let Z=await D.text();if(Z==="");else if($.headers.get("Accept")==="text/csv")X=Z;else if($.headers.get("Accept")&&((K=$.headers.get("Accept"))===null||K===void 0?void 0:K.includes("application/vnd.pgrst.plan+text")))X=Z;else try{X=JSON.parse(Z)}catch(H){if(J={message:Z},X=null,$.shouldThrowOnError)throw new TF({message:Z,details:"",hint:"",code:""})}}let q=(F=$.headers.get("Prefer"))===null||F===void 0?void 0:F.match(/count=(exact|planned|estimated)/),G=(W=D.headers.get("content-range"))===null||W===void 0?void 0:W.split("/");if(q&&G&&G.length>1)Y=parseInt(G[1]);if($.isMaybeSingle&&Array.isArray(X))if(X.length>1)J={code:"PGRST116",details:`Results contain ${X.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},X=null,Y=null,Q=406,U="Not Acceptable";else if(X.length===1)X=X[0];else X=null}else{let q=await D.text();try{if(J=JSON.parse(q),Array.isArray(J)&&D.status===404)X=[],J=null,Q=200,U="OK"}catch(G){if(D.status===404&&q==="")Q=204,U="No Content";else J={message:q}}if(J&&$.shouldThrowOnError)throw new TF(J)}return{success:J===null,error:J,data:X,count:Y,status:Q,statusText:U}}returns(){return this}overrideTypes(){return this}},Bd,gj,R8,Od=class{constructor(D,{headers:$={},schema:J,fetch:X,urlLengthLimit:Y=8000,retry:Q}){this.url=D,this.headers=new Headers($),this.schema=J,this.fetch=X,this.urlLengthLimit=Y,this.retry=Q}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(D,$){let{head:J=!1,count:X}=$!==null&&$!==void 0?$:{},Y=J?"HEAD":"GET",Q=!1,U=(D!==null&&D!==void 0?D:"*").split("").map((K)=>{if(/\s/.test(K)&&!Q)return"";if(K==='"')Q=!Q;return K}).join(""),{url:F,headers:W}=this.cloneRequestState();if(F.searchParams.set("select",U),X)W.append("Prefer",`count=${X}`);return new R8({method:Y,url:F,headers:W,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(D,{count:$,defaultToNull:J=!0}={}){var X;let Y="POST",{url:Q,headers:U}=this.cloneRequestState();if($)U.append("Prefer",`count=${$}`);if(!J)U.append("Prefer","missing=default");if(Array.isArray(D)){let F=D.reduce((W,K)=>W.concat(Object.keys(K)),[]);if(F.length>0){let W=[...new Set(F)].map((K)=>`"${K}"`);Q.searchParams.set("columns",W.join(","))}}return new R8({method:"POST",url:Q,headers:U,schema:this.schema,body:D,fetch:(X=this.fetch)!==null&&X!==void 0?X:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(D,{onConflict:$,ignoreDuplicates:J=!1,count:X,defaultToNull:Y=!0}={}){var Q;let U="POST",{url:F,headers:W}=this.cloneRequestState();if(W.append("Prefer",`resolution=${J?"ignore":"merge"}-duplicates`),$!==void 0)F.searchParams.set("on_conflict",$);if(X)W.append("Prefer",`count=${X}`);if(!Y)W.append("Prefer","missing=default");if(Array.isArray(D)){let K=D.reduce((q,G)=>q.concat(Object.keys(G)),[]);if(K.length>0){let q=[...new Set(K)].map((G)=>`"${G}"`);F.searchParams.set("columns",q.join(","))}}return new R8({method:"POST",url:F,headers:W,schema:this.schema,body:D,fetch:(Q=this.fetch)!==null&&Q!==void 0?Q:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(D,{count:$}={}){var J;let X="PATCH",{url:Y,headers:Q}=this.cloneRequestState();if($)Q.append("Prefer",`count=${$}`);return new R8({method:"PATCH",url:Y,headers:Q,schema:this.schema,body:D,fetch:(J=this.fetch)!==null&&J!==void 0?J:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:D}={}){var $;let J="DELETE",{url:X,headers:Y}=this.cloneRequestState();if(D)Y.append("Prefer",`count=${D}`);return new R8({method:"DELETE",url:X,headers:Y,schema:this.schema,fetch:($=this.fetch)!==null&&$!==void 0?$:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}},yj=class D{constructor($,{headers:J={},schema:X,fetch:Y,timeout:Q,urlLengthLimit:U=8000,retry:F}={}){this.url=$,this.headers=new Headers(J),this.schemaName=X,this.urlLengthLimit=U;let W=Y!==null&&Y!==void 0?Y:globalThis.fetch;if(Q!==void 0&&Q>0)this.fetch=(K,q)=>{let G=new AbortController,Z=setTimeout(()=>G.abort(),Q),H=q===null||q===void 0?void 0:q.signal;if(H){if(H.aborted)return clearTimeout(Z),W(K,q);let z=()=>{clearTimeout(Z),G.abort()};return H.addEventListener("abort",z,{once:!0}),W(K,a3(a3({},q),{},{signal:G.signal})).finally(()=>{clearTimeout(Z),H.removeEventListener("abort",z)})}return W(K,a3(a3({},q),{},{signal:G.signal})).finally(()=>clearTimeout(Z))};else this.fetch=W;this.retry=F}from($){if(!$||typeof $!=="string"||$.trim()==="")throw Error("Invalid relation name: relation must be a non-empty string.");return new Od(new URL(`${this.url}/${$}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema($){return new D(this.url,{headers:this.headers,schema:$,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc($,J={},{head:X=!1,get:Y=!1,count:Q}={}){var U;let F,W=new URL(`${this.url}/rpc/${$}`),K,q=(H)=>H!==null&&typeof H==="object"&&(!Array.isArray(H)||H.some(q)),G=X&&Object.values(J).some(q);if(G)F="POST",K=J;else if(X||Y)F=X?"HEAD":"GET",Object.entries(J).filter(([H,z])=>z!==void 0).map(([H,z])=>[H,Array.isArray(z)?`{${z.join(",")}}`:`${z}`]).forEach(([H,z])=>{W.searchParams.append(H,z)});else F="POST",K=J;let Z=new Headers(this.headers);if(G)Z.set("Prefer",Q?`count=${Q},return=minimal`:"return=minimal");else if(Q)Z.set("Prefer",`count=${Q}`);return new R8({method:F,url:W,headers:Z,schema:this.schemaName,body:K,fetch:(U=this.fetch)!==null&&U!==void 0?U:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};var hj=C(()=>{zd=[520,503],fj=["GET","HEAD","OPTIONS"],TF=class extends Error{constructor(D){super(D.message);this.name="PostgrestError",this.details=D.details,this.hint=D.hint,this.code=D.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};Bd=class extends Id{throwOnError(){return super.throwOnError()}select(D){let $=!1,J=(D!==null&&D!==void 0?D:"*").split("").map((X)=>{if(/\s/.test(X)&&!$)return"";if(X==='"')$=!$;return X}).join("");return this.url.searchParams.set("select",J),this.headers.append("Prefer","return=representation"),this}order(D,{ascending:$=!0,nullsFirst:J,foreignTable:X,referencedTable:Y=X}={}){let Q=Y?`${Y}.order`:"order",U=this.url.searchParams.get(Q);return this.url.searchParams.set(Q,`${U?`${U},`:""}${D}.${$?"asc":"desc"}${J===void 0?"":J?".nullsfirst":".nullslast"}`),this}limit(D,{foreignTable:$,referencedTable:J=$}={}){let X=typeof J>"u"?"limit":`${J}.limit`;return this.url.searchParams.set(X,`${D}`),this}range(D,$,{foreignTable:J,referencedTable:X=J}={}){let Y=typeof X>"u"?"offset":`${X}.offset`,Q=typeof X>"u"?"limit":`${X}.limit`;return this.url.searchParams.set(Y,`${D}`),this.url.searchParams.set(Q,`${$-D+1}`),this}abortSignal(D){return this.signal=D,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:D=!1,verbose:$=!1,settings:J=!1,buffers:X=!1,wal:Y=!1,format:Q="text"}={}){var U;let F=[D?"analyze":null,$?"verbose":null,J?"settings":null,X?"buffers":null,Y?"wal":null].filter(Boolean).join("|"),W=(U=this.headers.get("Accept"))!==null&&U!==void 0?U:"application/json";if(this.headers.set("Accept",`application/vnd.pgrst.plan+${Q}; for="${W}"; options=${F};`),Q==="json")return this;else return this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(D){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${D}`),this}},gj=new RegExp("[,()]"),R8=class extends Bd{throwOnError(){return super.throwOnError()}eq(D,$){return this.url.searchParams.append(D,`eq.${$}`),this}neq(D,$){return this.url.searchParams.append(D,`neq.${$}`),this}gt(D,$){return this.url.searchParams.append(D,`gt.${$}`),this}gte(D,$){return this.url.searchParams.append(D,`gte.${$}`),this}lt(D,$){return this.url.searchParams.append(D,`lt.${$}`),this}lte(D,$){return this.url.searchParams.append(D,`lte.${$}`),this}like(D,$){return this.url.searchParams.append(D,`like.${$}`),this}likeAllOf(D,$){return this.url.searchParams.append(D,`like(all).{${$.join(",")}}`),this}likeAnyOf(D,$){return this.url.searchParams.append(D,`like(any).{${$.join(",")}}`),this}ilike(D,$){return this.url.searchParams.append(D,`ilike.${$}`),this}ilikeAllOf(D,$){return this.url.searchParams.append(D,`ilike(all).{${$.join(",")}}`),this}ilikeAnyOf(D,$){return this.url.searchParams.append(D,`ilike(any).{${$.join(",")}}`),this}regexMatch(D,$){return this.url.searchParams.append(D,`match.${$}`),this}regexIMatch(D,$){return this.url.searchParams.append(D,`imatch.${$}`),this}is(D,$){return this.url.searchParams.append(D,`is.${$}`),this}isDistinct(D,$){return this.url.searchParams.append(D,`isdistinct.${$}`),this}in(D,$){let J=Array.from(new Set($)).map((X)=>{if(typeof X==="string"&&gj.test(X))return`"${X}"`;else return`${X}`}).join(",");return this.url.searchParams.append(D,`in.(${J})`),this}notIn(D,$){let J=Array.from(new Set($)).map((X)=>{if(typeof X==="string"&&gj.test(X))return`"${X}"`;else return`${X}`}).join(",");return this.url.searchParams.append(D,`not.in.(${J})`),this}contains(D,$){if(typeof $==="string")this.url.searchParams.append(D,`cs.${$}`);else if(Array.isArray($))this.url.searchParams.append(D,`cs.{${$.join(",")}}`);else this.url.searchParams.append(D,`cs.${JSON.stringify($)}`);return this}containedBy(D,$){if(typeof $==="string")this.url.searchParams.append(D,`cd.${$}`);else if(Array.isArray($))this.url.searchParams.append(D,`cd.{${$.join(",")}}`);else this.url.searchParams.append(D,`cd.${JSON.stringify($)}`);return this}rangeGt(D,$){return this.url.searchParams.append(D,`sr.${$}`),this}rangeGte(D,$){return this.url.searchParams.append(D,`nxl.${$}`),this}rangeLt(D,$){return this.url.searchParams.append(D,`sl.${$}`),this}rangeLte(D,$){return this.url.searchParams.append(D,`nxr.${$}`),this}rangeAdjacent(D,$){return this.url.searchParams.append(D,`adj.${$}`),this}overlaps(D,$){if(typeof $==="string")this.url.searchParams.append(D,`ov.${$}`);else this.url.searchParams.append(D,`ov.{${$.join(",")}}`);return this}textSearch(D,$,{config:J,type:X}={}){let Y="";if(X==="plain")Y="pl";else if(X==="phrase")Y="ph";else if(X==="websearch")Y="w";let Q=J===void 0?"":`(${J})`;return this.url.searchParams.append(D,`${Y}fts${Q}.${$}`),this}match(D){return Object.entries(D).filter(([$,J])=>J!==void 0).forEach(([$,J])=>{this.url.searchParams.append($,`eq.${J}`)}),this}not(D,$,J){return this.url.searchParams.append(D,`not.${$}.${J}`),this}or(D,{foreignTable:$,referencedTable:J=$}={}){let X=J?`${J}.or`:"or";return this.url.searchParams.append(X,`(${D})`),this}filter(D,$,J){return this.url.searchParams.append(D,`${$}.${J}`),this}}});class PF{constructor(){}connect(){}disconnect(){}}function jd(D,$,J){let X=new URL($,D);if(J){for(let[Y,Q]of Object.entries(J))if(Q!==void 0)X.searchParams.set(Y,Q)}return X.toString()}async function Ld(D){if(!D||D.type==="none")return{};if(D.type==="bearer")return{Authorization:`Bearer ${D.token}`};if(D.type==="header")return{[D.name]:D.value};if(D.type==="custom")return await D.getHeaders();return{}}function Rd(D){let $=D.fetchImpl??globalThis.fetch;return{async request({method:J,path:X,query:Y,body:Q,headers:U}){let F=jd(D.baseUrl,X,Y),W=await Ld(D.auth),K=await $(F,{method:J,headers:{...Q?{"Content-Type":"application/json"}:{},...W,...U},body:Q?JSON.stringify(Q):void 0}),q=await K.text(),G=(K.headers.get("content-type")||"").includes("application/json"),Z=G&&q?JSON.parse(q):q;if(!K.ok){let H=G?Z:void 0,z=H?.error;throw new d9(z?.message??`Request failed with status ${K.status}`,{status:K.status,icebergType:z?.type,icebergCode:z?.code,details:H})}return{status:K.status,headers:K.headers,data:Z}}}}function s3(D){return D.join("\x1F")}function M8(D){return D.join("\x1F")}var d9,Md=class{constructor(D,$=""){this.client=D,this.prefix=$}async listNamespaces(D){let $=D?{parent:s3(D.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:$})).data.namespaces.map((X)=>({namespace:X}))}async createNamespace(D,$){let J={namespace:D.namespace,properties:$?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:J})).data}async dropNamespace(D){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${s3(D.namespace)}`})}async loadNamespaceMetadata(D){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${s3(D.namespace)}`})).data.properties}}async namespaceExists(D){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${s3(D.namespace)}`}),!0}catch($){if($ instanceof d9&&$.status===404)return!1;throw $}}async createNamespaceIfNotExists(D,$){try{return await this.createNamespace(D,$)}catch(J){if(J instanceof d9&&J.status===409)return;throw J}}},Ad=class{constructor(D,$="",J){this.client=D,this.prefix=$,this.accessDelegation=J}async listTables(D){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${M8(D.namespace)}/tables`})).data.identifiers}async createTable(D,$){let J={};if(this.accessDelegation)J["X-Iceberg-Access-Delegation"]=this.accessDelegation;return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${M8(D.namespace)}/tables`,body:$,headers:J})).data.metadata}async updateTable(D,$){let J=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${M8(D.namespace)}/tables/${D.name}`,body:$});return{"metadata-location":J.data["metadata-location"],metadata:J.data.metadata}}async dropTable(D,$){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${M8(D.namespace)}/tables/${D.name}`,query:{purgeRequested:String($?.purge??!1)}})}async loadTable(D){let $={};if(this.accessDelegation)$["X-Iceberg-Access-Delegation"]=this.accessDelegation;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${M8(D.namespace)}/tables/${D.name}`,headers:$})).data.metadata}async tableExists(D){let $={};if(this.accessDelegation)$["X-Iceberg-Access-Delegation"]=this.accessDelegation;try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${M8(D.namespace)}/tables/${D.name}`,headers:$}),!0}catch(J){if(J instanceof d9&&J.status===404)return!1;throw J}}async createTableIfNotExists(D,$){try{return await this.createTable(D,$)}catch(J){if(J instanceof d9&&J.status===409)return await this.loadTable({namespace:D.namespace,name:$.name});throw J}}},mj=class{constructor(D){let $="v1";if(D.catalogName)$+=`/${D.catalogName}`;let J=D.baseUrl.endsWith("/")?D.baseUrl:`${D.baseUrl}/`;this.client=Rd({baseUrl:J,auth:D.auth,fetchImpl:D.fetch}),this.accessDelegation=D.accessDelegation?.join(","),this.namespaceOps=new Md(this.client,$),this.tableOps=new Ad(this.client,$,this.accessDelegation)}async listNamespaces(D){return this.namespaceOps.listNamespaces(D)}async createNamespace(D,$){return this.namespaceOps.createNamespace(D,$)}async dropNamespace(D){await this.namespaceOps.dropNamespace(D)}async loadNamespaceMetadata(D){return this.namespaceOps.loadNamespaceMetadata(D)}async listTables(D){return this.tableOps.listTables(D)}async createTable(D,$){return this.tableOps.createTable(D,$)}async updateTable(D,$){return this.tableOps.updateTable(D,$)}async dropTable(D,$){await this.tableOps.dropTable(D,$)}async loadTable(D){return this.tableOps.loadTable(D)}async namespaceExists(D){return this.namespaceOps.namespaceExists(D)}async tableExists(D){return this.tableOps.tableExists(D)}async createNamespaceIfNotExists(D,$){return this.namespaceOps.createNamespaceIfNotExists(D,$)}async createTableIfNotExists(D,$){return this.tableOps.createTableIfNotExists(D,$)}};var lj=C(()=>{d9=class extends Error{constructor(D,$){super(D);this.name="IcebergError",this.status=$.status,this.icebergType=$.icebergType,this.icebergCode=$.icebergCode,this.details=$.details,this.isCommitStateUnknown=$.icebergType==="CommitStateUnknownException"||[500,502,504].includes($.status)&&$.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}}});function c9(D){return c9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},c9(D)}function vd(D,$){if(c9(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(c9(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function Ed(D){var $=vd(D,"string");return c9($)=="symbol"?$:$+""}function Td(D,$,J){return($=Ed($))in D?Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):D[$]=J,D}function dj(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function GD(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?dj(Object(J),!0).forEach(function(X){Td(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):dj(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function JJ(D){return typeof D==="object"&&D!==null&&"__isStorageError"in D}function DJ(D,$,J){let X=GD({},D),Y=$.toLowerCase();for(let Q of Object.keys(X))if(Q.toLowerCase()===Y)delete X[Q];return X[Y]=J,X}function Pd(D){let $={};for(let[J,X]of Object.entries(D))$[J.toLowerCase()]=X;return $}async function i9(D,$,J,X,Y,Q,U){return new Promise((F,W)=>{D(J,_d($,X,Y,Q)).then((K)=>{if(!K.ok)throw K;if(X===null||X===void 0?void 0:X.noResolveJson)return K;if(U==="vectors"){let q=K.headers.get("content-type");if(K.headers.get("content-length")==="0"||K.status===204)return{};if(!q||!q.includes("application/json"))return{}}return K.json()}).then((K)=>F(K)).catch((K)=>kd(K,W,X,U))})}function rj(D="storage"){return{get:async($,J,X,Y)=>{return i9($,"GET",J,X,Y,void 0,D)},post:async($,J,X,Y,Q)=>{return i9($,"POST",J,Y,Q,X,D)},put:async($,J,X,Y,Q)=>{return i9($,"PUT",J,Y,Q,X,D)},head:async($,J,X,Y)=>{return i9($,"HEAD",J,GD(GD({},X),{},{noResolveJson:!0}),Y,void 0,D)},remove:async($,J,X,Y,Q)=>{return i9($,"DELETE",J,Y,Q,X,D)}}}var $J,e3,pj,bd=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)},Sd=(D)=>{if(typeof D!=="object"||D===null)return!1;let $=Object.getPrototypeOf(D);return($===null||$===Object.prototype||Object.getPrototypeOf($)===null)&&!(Symbol.toStringTag in D)&&!(Symbol.iterator in D)},SF=(D)=>{if(Array.isArray(D))return D.map((J)=>SF(J));else if(typeof D==="function"||D!==Object(D))return D;let $={};return Object.entries(D).forEach(([J,X])=>{let Y=J.replace(/([-_][a-z])/gi,(Q)=>Q.toUpperCase().replace(/[-_]/g,""));$[Y]=SF(X)}),$},Cd=(D)=>{if(!D||typeof D!=="string")return!1;if(D.length===0||D.length>100)return!1;if(D.trim()!==D)return!1;if(D.includes("/")||D.includes("\\"))return!1;return/^[\w!.\*'() &$@=;:+,?-]+$/.test(D)},nj=(D)=>D.split("/").map(encodeURIComponent).join("/"),ij=(D)=>{if(typeof D==="object"&&D!==null){let $=D;if(typeof $.msg==="string")return $.msg;if(typeof $.message==="string")return $.message;if(typeof $.error_description==="string")return $.error_description;if(typeof $.error==="string")return $.error;if(typeof $.error==="object"&&$.error!==null){let J=$.error;if(typeof J.message==="string")return J.message}}return JSON.stringify(D)},kd=async(D,$,J,X)=>{if(D!==null&&typeof D==="object"&&"json"in D&&typeof D.json==="function"){let Y=D,Q=parseInt(String(Y.status),10);if(!Number.isFinite(Q))Q=500;Y.json().then((U)=>{let F=(U===null||U===void 0?void 0:U.statusCode)||(U===null||U===void 0?void 0:U.code)||Q+"";$(new e3(ij(U),Q,F,X))}).catch(()=>{let U=Q+"";$(new e3(Y.statusText||`HTTP ${Q} error`,Q,U,X))})}else $(new pj(ij(D),D,X))},_d=(D,$,J,X)=>{let Y={method:D,headers:($===null||$===void 0?void 0:$.headers)||{}};if(D==="GET"||D==="HEAD"||!X)return GD(GD({},Y),J);if(Sd(X)){var Q;let U=($===null||$===void 0?void 0:$.headers)||{},F;for(let[W,K]of Object.entries(U))if(W.toLowerCase()==="content-type")F=K;Y.headers=DJ(U,"Content-Type",(Q=F)!==null&&Q!==void 0?Q:"application/json"),Y.body=JSON.stringify(X)}else Y.body=X;if($===null||$===void 0?void 0:$.duplex)Y.duplex=$.duplex;return GD(GD({},Y),J)},ud,p9,a$,CF,gd,n9,L$,A8=class{constructor(D,$={},J,X="storage"){this.shouldThrowOnError=!1,this.url=D,this.headers=Pd($),this.fetch=bd(J),this.namespace=X}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(D,$){return this.headers=DJ(this.headers,D,$),this}async handleOperation(D){var $=this;try{return{data:await D(),error:null}}catch(J){if($.shouldThrowOnError)throw J;if(JJ(J))return{data:null,error:J};throw J}}},tj,xd=class{constructor(D,$){this.downloadFn=D,this.shouldThrowOnError=$,this[tj]="StreamDownloadBuilder",this.promise=null}then(D,$){return this.getPromise().then(D,$)}catch(D){return this.getPromise().catch(D)}finally(D){return this.getPromise().finally(D)}getPromise(){if(!this.promise)this.promise=this.execute();return this.promise}async execute(){var D=this;try{return{data:(await D.downloadFn()).body,error:null}}catch($){if(D.shouldThrowOnError)throw $;if(JJ($))return{data:null,error:$};throw $}}},oj,fd=class{constructor(D,$){this.downloadFn=D,this.shouldThrowOnError=$,this[oj]="BlobDownloadBuilder",this.promise=null}asStream(){return new xd(this.downloadFn,this.shouldThrowOnError)}then(D,$){return this.getPromise().then(D,$)}catch(D){return this.getPromise().catch(D)}finally(D){return this.getPromise().finally(D)}getPromise(){if(!this.promise)this.promise=this.execute();return this.promise}async execute(){var D=this;try{return{data:await(await D.downloadFn()).blob(),error:null}}catch($){if(D.shouldThrowOnError)throw $;if(JJ($))return{data:null,error:$};throw $}}},bF,cj,yd,hd="2.110.8",r9,md,ld,dd,id,cd,pd,nd,rd,aj;var sj=C(()=>{lj();$J=class extends Error{constructor(D,$="storage",J,X){super(D);this.__isStorageError=!0,this.namespace=$,this.name=$==="vectors"?"StorageVectorsError":"StorageError",this.status=J,this.statusCode=X}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};e3=class extends $J{constructor(D,$,J,X="storage"){super(D,X,$,J);this.name=X==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=$,this.statusCode=J}toJSON(){return GD({},super.toJSON())}},pj=class extends $J{constructor(D,$,J="storage"){super(D,J);this.name=J==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=$}};ud=rj("storage"),{get:p9,post:a$,put:CF,head:gd,remove:n9}=ud,L$=rj("vectors");tj=Symbol.toStringTag;oj=Symbol.toStringTag;bF={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},cj={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1},yd=class extends A8{constructor(D,$={},J,X){super(D,$,X,"storage");this.bucketId=J}async uploadOrUpdate(D,$,J,X){var Y=this;return Y.handleOperation(async()=>{let Q,U=GD(GD({},cj),X),F=GD(GD({},Y.headers),D==="POST"&&{"x-upsert":String(U.upsert)}),W=U.metadata;if(typeof Blob<"u"&&J instanceof Blob){if(Q=new FormData,Q.append("cacheControl",U.cacheControl),W)Q.append("metadata",Y.encodeMetadata(W));Q.append("",J)}else if(typeof FormData<"u"&&J instanceof FormData){if(Q=J,!Q.has("cacheControl"))Q.append("cacheControl",U.cacheControl);if(W&&!Q.has("metadata"))Q.append("metadata",Y.encodeMetadata(W))}else{if(Q=J,F["cache-control"]=`max-age=${U.cacheControl}`,F["content-type"]=U.contentType,W)F["x-metadata"]=Y.toBase64(Y.encodeMetadata(W));if((typeof ReadableStream<"u"&&Q instanceof ReadableStream||Q&&typeof Q==="object"&&("pipe"in Q)&&typeof Q.pipe==="function")&&!U.duplex)U.duplex="half"}if(X===null||X===void 0?void 0:X.headers)for(let[Z,H]of Object.entries(X.headers))F=DJ(F,Z,H);let K=Y._removeEmptyFolders($),q=Y._getFinalPath(K),G=await(D=="PUT"?CF:a$)(Y.fetch,`${Y.url}/object/${q}`,Q,GD({headers:F},(U===null||U===void 0?void 0:U.duplex)?{duplex:U.duplex}:{}));return{path:K,id:G.Id,fullPath:G.Key}})}async upload(D,$,J){return this.uploadOrUpdate("POST",D,$,J)}async uploadToSignedUrl(D,$,J,X){var Y=this;let Q=Y._removeEmptyFolders(D),U=Y._getFinalPath(Q),F=new URL(Y.url+`/object/upload/sign/${U}`);return F.searchParams.set("token",$),Y.handleOperation(async()=>{let W,K=GD(GD({},cj),X),q=GD(GD({},Y.headers),{"x-upsert":String(K.upsert)}),G=K.metadata;if(typeof Blob<"u"&&J instanceof Blob){if(W=new FormData,W.append("cacheControl",K.cacheControl),G)W.append("metadata",Y.encodeMetadata(G));W.append("",J)}else if(typeof FormData<"u"&&J instanceof FormData){if(W=J,!W.has("cacheControl"))W.append("cacheControl",K.cacheControl);if(G&&!W.has("metadata"))W.append("metadata",Y.encodeMetadata(G))}else{if(W=J,q["cache-control"]=`max-age=${K.cacheControl}`,q["content-type"]=K.contentType,G)q["x-metadata"]=Y.toBase64(Y.encodeMetadata(G));if((typeof ReadableStream<"u"&&W instanceof ReadableStream||W&&typeof W==="object"&&("pipe"in W)&&typeof W.pipe==="function")&&!K.duplex)K.duplex="half"}if(X===null||X===void 0?void 0:X.headers)for(let[Z,H]of Object.entries(X.headers))q=DJ(q,Z,H);return{path:Q,fullPath:(await CF(Y.fetch,F.toString(),W,GD({headers:q},(K===null||K===void 0?void 0:K.duplex)?{duplex:K.duplex}:{}))).Key}})}async createSignedUploadUrl(D,$){var J=this;return J.handleOperation(async()=>{let X=J._getFinalPath(D),Y=GD({},J.headers);if($===null||$===void 0?void 0:$.upsert)Y["x-upsert"]="true";let Q=await a$(J.fetch,`${J.url}/object/upload/sign/${X}`,{},{headers:Y}),U=new URL(J.url+Q.url),F=U.searchParams.get("token");if(!F)throw new $J("No token returned by API");return{signedUrl:U.toString(),path:D,token:F}})}async update(D,$,J){return this.uploadOrUpdate("PUT",D,$,J)}async move(D,$,J){var X=this;return X.handleOperation(async()=>{return await a$(X.fetch,`${X.url}/object/move`,{bucketId:X.bucketId,sourceKey:D,destinationKey:$,destinationBucket:J===null||J===void 0?void 0:J.destinationBucket},{headers:X.headers})})}async copy(D,$,J){var X=this;return X.handleOperation(async()=>{return{path:(await a$(X.fetch,`${X.url}/object/copy`,{bucketId:X.bucketId,sourceKey:D,destinationKey:$,destinationBucket:J===null||J===void 0?void 0:J.destinationBucket},{headers:X.headers})).Key}})}async createSignedUrl(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=X._getFinalPath(D),Q=typeof(J===null||J===void 0?void 0:J.transform)==="object"&&J.transform!==null&&Object.keys(J.transform).length>0,U=await a$(X.fetch,`${X.url}/object/sign/${Y}`,GD({expiresIn:$},Q?{transform:J.transform}:{}),{headers:X.headers}),F=new URLSearchParams;if(J===null||J===void 0?void 0:J.download)F.set("download",J.download===!0?"":J.download);if((J===null||J===void 0?void 0:J.cacheNonce)!=null)F.set("cacheNonce",String(J.cacheNonce));let W=F.toString();return{signedUrl:encodeURI(`${X.url}${U.signedURL}${W?`&${W}`:""}`)}})}async createSignedUrls(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=await a$(X.fetch,`${X.url}/object/sign/${X.bucketId}`,{expiresIn:$,paths:D},{headers:X.headers}),Q=new URLSearchParams;if(J===null||J===void 0?void 0:J.download)Q.set("download",J.download===!0?"":J.download);if((J===null||J===void 0?void 0:J.cacheNonce)!=null)Q.set("cacheNonce",String(J.cacheNonce));let U=Q.toString();return Y.map((F)=>GD(GD({},F),{},{signedUrl:F.signedURL?encodeURI(`${X.url}${F.signedURL}${U?`&${U}`:""}`):null}))})}download(D,$,J){let X=typeof($===null||$===void 0?void 0:$.transform)==="object"&&$.transform!==null&&Object.keys($.transform).length>0?"render/image/authenticated":"object",Y=new URLSearchParams;if($===null||$===void 0?void 0:$.transform)this.applyTransformOptsToQuery(Y,$.transform);if(($===null||$===void 0?void 0:$.cacheNonce)!=null)Y.set("cacheNonce",String($.cacheNonce));let Q=Y.toString(),U=this._getFinalPath(D);return new fd(()=>p9(this.fetch,`${this.url}/${X}/${U}${Q?`?${Q}`:""}`,{headers:this.headers,noResolveJson:!0},J),this.shouldThrowOnError)}async info(D){var $=this;let J=$._getFinalPath(D);return $.handleOperation(async()=>{return SF(await p9($.fetch,`${$.url}/object/info/${J}`,{headers:$.headers}))})}async exists(D){var $=this;let J=$._getFinalPath(D);try{return await gd($.fetch,`${$.url}/object/${J}`,{headers:$.headers}),{data:!0,error:null}}catch(Y){if($.shouldThrowOnError)throw Y;if(JJ(Y)){var X;let Q=Y instanceof e3?Y.status:Y instanceof pj?(X=Y.originalError)===null||X===void 0?void 0:X.status:void 0;if(Q!==void 0&&[400,404].includes(Q))return{data:!1,error:Y}}throw Y}}getPublicUrl(D,$){let J=this._getFinalPath(D),X=new URLSearchParams;if($===null||$===void 0?void 0:$.download)X.set("download",$.download===!0?"":$.download);if($===null||$===void 0?void 0:$.transform)this.applyTransformOptsToQuery(X,$.transform);if(($===null||$===void 0?void 0:$.cacheNonce)!=null)X.set("cacheNonce",String($.cacheNonce));let Y=X.toString(),Q=typeof($===null||$===void 0?void 0:$.transform)==="object"&&$.transform!==null&&Object.keys($.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${Q}/public/${J}`)+(Y?`?${Y}`:"")}}}async remove(D){var $=this;return $.handleOperation(async()=>{return await n9($.fetch,`${$.url}/object/${$.bucketId}`,{prefixes:D},{headers:$.headers})})}async purgeCache(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=nj(X._getFinalPath(D)),Q=new URLSearchParams;if($===null||$===void 0?void 0:$.transformations)Q.set("transformations","true");let U=Q.toString();return await n9(X.fetch,`${X.url}/cdn/${Y}${U?`?${U}`:""}`,{},{headers:X.headers},J)})}async list(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=($===null||$===void 0?void 0:$.sortBy)?GD(GD({},bF.sortBy),$.sortBy):bF.sortBy,Q=GD(GD(GD({},bF),$),{},{sortBy:Y,prefix:D||""});return await a$(X.fetch,`${X.url}/object/list/${X.bucketId}`,Q,{headers:X.headers},J)})}async listV2(D,$){var J=this;return J.handleOperation(async()=>{let X=GD({},D);return await a$(J.fetch,`${J.url}/object/list-v2/${J.bucketId}`,X,{headers:J.headers},$)})}encodeMetadata(D){return JSON.stringify(D)}toBase64(D){if(typeof Buffer<"u")return Buffer.from(D).toString("base64");return btoa(D)}_getFinalPath(D){return`${this.bucketId}/${D.replace(/^\/+/,"")}`}_removeEmptyFolders(D){return D.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(D,$){if($.width)D.set("width",$.width.toString());if($.height)D.set("height",$.height.toString());if($.resize)D.set("resize",$.resize);if($.format)D.set("format",$.format);if($.quality)D.set("quality",$.quality.toString());return D}},r9={"X-Client-Info":`storage-js/${hd}`},md=class extends A8{constructor(D,$={},J,X){let Y=new URL(D);if(X===null||X===void 0?void 0:X.useNewHostname){if(/supabase\.(co|in|red)$/.test(Y.hostname)&&!Y.hostname.includes("storage.supabase."))Y.hostname=Y.hostname.replace("supabase.","storage.supabase.")}let Q=Y.href.replace(/\/$/,""),U=GD(GD({},r9),$);super(Q,U,J,"storage")}async listBuckets(D){var $=this;return $.handleOperation(async()=>{let J=$.listBucketOptionsToQueryString(D);return await p9($.fetch,`${$.url}/bucket${J}`,{headers:$.headers})})}async getBucket(D){var $=this;return $.handleOperation(async()=>{return await p9($.fetch,`${$.url}/bucket/${D}`,{headers:$.headers})})}async createBucket(D,$={public:!1}){var J=this;return J.handleOperation(async()=>{return await a$(J.fetch,`${J.url}/bucket`,{id:D,name:D,type:$.type,public:$.public,file_size_limit:$.fileSizeLimit,allowed_mime_types:$.allowedMimeTypes},{headers:J.headers})})}async updateBucket(D,$){var J=this;return J.handleOperation(async()=>{return await CF(J.fetch,`${J.url}/bucket/${D}`,{id:D,name:D,public:$.public,file_size_limit:$.fileSizeLimit,allowed_mime_types:$.allowedMimeTypes},{headers:J.headers})})}async emptyBucket(D){var $=this;return $.handleOperation(async()=>{return await a$($.fetch,`${$.url}/bucket/${D}/empty`,{},{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await n9($.fetch,`${$.url}/bucket/${D}`,{},{headers:$.headers})})}async purgeBucketCache(D,$,J){var X=this;return X.handleOperation(async()=>{let Y=new URLSearchParams;if($===null||$===void 0?void 0:$.transformations)Y.set("transformations","true");let Q=Y.toString();return await n9(X.fetch,`${X.url}/cdn/${nj(D)}${Q?`?${Q}`:""}`,{},{headers:X.headers},J)})}listBucketOptionsToQueryString(D){let $={};if(D){if("limit"in D)$.limit=String(D.limit);if("offset"in D)$.offset=String(D.offset);if(D.search)$.search=D.search;if(D.sortColumn)$.sortColumn=D.sortColumn;if(D.sortOrder)$.sortOrder=D.sortOrder}return Object.keys($).length>0?"?"+new URLSearchParams($).toString():""}},ld=class extends A8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},r9),$);super(X,Y,J,"storage")}async createBucket(D){var $=this;return $.handleOperation(async()=>{return await a$($.fetch,`${$.url}/bucket`,{name:D},{headers:$.headers})})}async listBuckets(D){var $=this;return $.handleOperation(async()=>{let J=new URLSearchParams;if((D===null||D===void 0?void 0:D.limit)!==void 0)J.set("limit",D.limit.toString());if((D===null||D===void 0?void 0:D.offset)!==void 0)J.set("offset",D.offset.toString());if(D===null||D===void 0?void 0:D.sortColumn)J.set("sortColumn",D.sortColumn);if(D===null||D===void 0?void 0:D.sortOrder)J.set("sortOrder",D.sortOrder);if(D===null||D===void 0?void 0:D.search)J.set("search",D.search);let X=J.toString(),Y=X?`${$.url}/bucket?${X}`:`${$.url}/bucket`;return await p9($.fetch,Y,{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await n9($.fetch,`${$.url}/bucket/${D}`,{},{headers:$.headers})})}from(D){var $=this;if(!Cd(D))throw new $J("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");let J=new mj({baseUrl:this.url,catalogName:D,auth:{type:"custom",getHeaders:async()=>$.headers},fetch:this.fetch}),X=this.shouldThrowOnError;return new Proxy(J,{get(Y,Q){let U=Y[Q];if(typeof U!=="function")return U;return async(...F)=>{try{return{data:await U.apply(Y,F),error:null}}catch(W){if(X)throw W;return{data:null,error:W}}}}})}},dd=class extends A8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},r9),{},{"Content-Type":"application/json"},$);super(X,Y,J,"vectors")}async createIndex(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/CreateIndex`,D,{headers:$.headers})||{}})}async getIndex(D,$){var J=this;return J.handleOperation(async()=>{return await L$.post(J.fetch,`${J.url}/GetIndex`,{vectorBucketName:D,indexName:$},{headers:J.headers})})}async listIndexes(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/ListIndexes`,D,{headers:$.headers})})}async deleteIndex(D,$){var J=this;return J.handleOperation(async()=>{return await L$.post(J.fetch,`${J.url}/DeleteIndex`,{vectorBucketName:D,indexName:$},{headers:J.headers})||{}})}},id=class extends A8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},r9),{},{"Content-Type":"application/json"},$);super(X,Y,J,"vectors")}async putVectors(D){var $=this;if(D.vectors.length<1||D.vectors.length>500)throw Error("Vector batch size must be between 1 and 500 items");return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/PutVectors`,D,{headers:$.headers})||{}})}async getVectors(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/GetVectors`,D,{headers:$.headers})})}async listVectors(D){var $=this;if(D.segmentCount!==void 0){if(D.segmentCount<1||D.segmentCount>16)throw Error("segmentCount must be between 1 and 16");if(D.segmentIndex!==void 0){if(D.segmentIndex<0||D.segmentIndex>=D.segmentCount)throw Error(`segmentIndex must be between 0 and ${D.segmentCount-1}`)}}return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/ListVectors`,D,{headers:$.headers})})}async queryVectors(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/QueryVectors`,D,{headers:$.headers})})}async deleteVectors(D){var $=this;if(D.keys.length<1||D.keys.length>500)throw Error("Keys batch size must be between 1 and 500 items");return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/DeleteVectors`,D,{headers:$.headers})||{}})}},cd=class extends A8{constructor(D,$={},J){let X=D.replace(/\/$/,""),Y=GD(GD({},r9),{},{"Content-Type":"application/json"},$);super(X,Y,J,"vectors")}async createBucket(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/CreateVectorBucket`,{vectorBucketName:D},{headers:$.headers})||{}})}async getBucket(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/GetVectorBucket`,{vectorBucketName:D},{headers:$.headers})})}async listBuckets(D={}){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/ListVectorBuckets`,D,{headers:$.headers})})}async deleteBucket(D){var $=this;return $.handleOperation(async()=>{return await L$.post($.fetch,`${$.url}/DeleteVectorBucket`,{vectorBucketName:D},{headers:$.headers})||{}})}},pd=class extends cd{constructor(D,$={}){super(D,$.headers||{},$.fetch)}from(D){return new nd(this.url,this.headers,D,this.fetch)}async createBucket(D){var $=()=>super.createBucket,J=this;return $().call(J,D)}async getBucket(D){var $=()=>super.getBucket,J=this;return $().call(J,D)}async listBuckets(D={}){var $=()=>super.listBuckets,J=this;return $().call(J,D)}async deleteBucket(D){var $=()=>super.deleteBucket,J=this;return $().call(J,D)}},nd=class extends dd{constructor(D,$,J,X){super(D,$,X);this.vectorBucketName=J}async createIndex(D){var $=()=>super.createIndex,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName}))}async listIndexes(D={}){var $=()=>super.listIndexes,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName}))}async getIndex(D){var $=()=>super.getIndex,J=this;return $().call(J,J.vectorBucketName,D)}async deleteIndex(D){var $=()=>super.deleteIndex,J=this;return $().call(J,J.vectorBucketName,D)}index(D){return new rd(this.url,this.headers,this.vectorBucketName,D,this.fetch)}},rd=class extends id{constructor(D,$,J,X,Y){super(D,$,Y);this.vectorBucketName=J,this.indexName=X}async putVectors(D){var $=()=>super.putVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async getVectors(D){var $=()=>super.getVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async listVectors(D={}){var $=()=>super.listVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async queryVectors(D){var $=()=>super.queryVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}async deleteVectors(D){var $=()=>super.deleteVectors,J=this;return $().call(J,GD(GD({},D),{},{vectorBucketName:J.vectorBucketName,indexName:J.indexName}))}},aj=class extends md{constructor(D,$={},J,X){super(D,$,J,X)}from(D){return new yd(this.url,this.headers,D,this.fetch)}get vectors(){return new pd(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new ld(this.url+"/iceberg",this.headers,this.fetch)}}});class ej{constructor(D){return this.options=D,new Proxy(this,od)}}var td=()=>Promise.resolve({data:{session:null,user:null},error:null}),od,kF;var _F=C(()=>{od={get:(D,$)=>{if($==="constructor")return D.constructor;if($==="then"||$==="catch"||$==="finally")return;if(typeof $==="symbol")return;if($==="getSession")return()=>Promise.resolve({data:{session:null,user:null},error:null});if($==="onAuthStateChange")return()=>({data:{subscription:{unsubscribe:()=>{}}},error:null});return td}};kF=class kF extends ej{}});function Yi(D,$,J,X){function Y(Q){return Q instanceof J?Q:new J(function(U){U(Q)})}return new(J||(J=Promise))(function(Q,U){function F(q){try{K(X.next(q))}catch(G){U(G)}}function W(q){try{K(X.throw(q))}catch(G){U(G)}}function K(q){q.done?Q(q.value):Y(q.value).then(F,W)}K((X=X.apply(D,$||[])).next())})}function Ui(){if(uF===null)uF=import(Qi).catch(()=>null);return uF}function Fi(){return Yi(this,void 0,void 0,function*(){try{let D=yield Ui();if(!D||!D.propagation||!D.context)return null;let $={};D.propagation.inject(D.context.active(),$);let J=$.traceparent;if(!J)return null;return{traceparent:J,tracestate:$.tracestate,baggage:$.baggage}}catch(D){return null}})}function Wi(D){if(!D||typeof D!=="string")return null;let $=D.split("-");if($.length!==4)return null;let[J,X,Y,Q]=$;if(J.length!==2||X.length!==32||Y.length!==16||Q.length!==2)return null;let U=/^[0-9a-f]+$/i;if(!U.test(J)||!U.test(X)||!U.test(Y)||!U.test(Q))return null;if(X==="00000000000000000000000000000000"||Y==="0000000000000000")return null;return{version:J,traceId:X,parentId:Y,traceFlags:Q,isSampled:(parseInt(Q,16)&1)===1}}function Ki(D,$){if(!D||!$||$.length===0)return!1;let J;if(D instanceof URL)J=D;else try{J=new URL(D)}catch(X){return!1}for(let X of $)try{if(typeof X==="string"){if(qi(J.hostname,X))return!0}else if(X instanceof RegExp){if(X.test(J.hostname))return!0}else if(typeof X==="function"){if(X(J))return!0}}catch(Y){continue}return!1}function qi(D,$){if($===D)return!0;if($.startsWith("*.")){let J=$.slice(2);if(D.endsWith(J)){if(D===J||D.endsWith("."+J))return!0}}return!1}function Gi(D){let $=[];try{let J=new URL(D);$.push(J.hostname)}catch(J){}return $.push("*.supabase.co","*.supabase.in"),$.push("localhost","127.0.0.1","[::1]"),$}function s9(D){return s9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},s9(D)}function Zi(D,$){if(s9(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(s9(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function zi(D){var $=Zi(D,"string");return s9($)=="symbol"?$:$+""}function Hi(D,$,J){return($=zi($))in D?Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):D[$]=J,D}function DL(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function K0(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?DL(Object(J),!0).forEach(function(X){Hi(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):DL(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}async function Vi(D,$,J){if(!Ki(typeof D==="string"?D:D instanceof URL?D:D.url,$))return null;let X=await Fi();if(!X||!X.traceparent)return null;if(J){let Y=Wi(X.traceparent);if(Y&&!Y.isSampled)return null}return X}function XL(D){return typeof D==="boolean"?{enabled:D}:D}function wi(D){return D.endsWith("/")?D:D+"/"}function ji(D,$){var J,X,Y,Q,U,F;let{db:W,auth:K,realtime:q,global:G}=D,{db:Z,auth:H,realtime:z,global:I}=$,B=XL(D.tracePropagation),N=XL($.tracePropagation),V={db:K0(K0({},Z),W),auth:K0(K0({},H),K),realtime:K0(K0({},z),q),storage:{},global:K0(K0(K0({},I),G),{},{headers:K0(K0({},(J=I===null||I===void 0?void 0:I.headers)!==null&&J!==void 0?J:{}),(X=G===null||G===void 0?void 0:G.headers)!==null&&X!==void 0?X:{})}),tracePropagation:{enabled:(Y=(Q=B===null||B===void 0?void 0:B.enabled)!==null&&Q!==void 0?Q:N===null||N===void 0?void 0:N.enabled)!==null&&Y!==void 0?Y:!1,respectSamplingDecision:(U=(F=B===null||B===void 0?void 0:B.respectSamplingDecision)!==null&&F!==void 0?F:N===null||N===void 0?void 0:N.respectSamplingDecision)!==null&&U!==void 0?U:!0},accessToken:async()=>""};if(D.accessToken)V.accessToken=D.accessToken;else delete V.accessToken;return V}function Li(D){let $=D===null||D===void 0?void 0:D.trim();if(!$)throw Error("supabaseUrl is required.");if(!$.match(/^https?:\/\//i))throw Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(wi($))}catch(J){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}function Ai(){if(typeof window<"u"||globalThis.Deno!==void 0)return!1;let D=globalThis.process;if(!D)return!1;let $=D.version;if($===void 0||$===null)return!1;let J=$.match(/^v(\d+)\./);if(!J)return!1;return parseInt(J[1],10)<=20}var f$,ad="2.110.8",t9="",XJ,o9,a9,YL,sd,ed,Di,$i,Ji,Xi,uF=null,Qi="@opentelemetry/api",Ii=(D)=>{if(D)return(...$)=>D(...$);return(...$)=>fetch(...$)},Bi=()=>{return Headers},QL=(D)=>D.startsWith("sb_publishable_")||D.startsWith("sb_secret_"),Oi="sb_temp_",$L,Ni=(D)=>{var $,J;if(!D.startsWith("sb_")||QL(D)||D.startsWith(Oi))return;let X=($=(J=D.match(/^sb_[a-zA-Z0-9]+_/))===null||J===void 0?void 0:J[0])!==null&&$!==void 0?$:"unknown";if($L.has(X))return;$L.add(X),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type.")},JL=(D,$,J,X,Y,Q)=>{let U=Ii(X),F=Bi(),W=(Y===null||Y===void 0?void 0:Y.enabled)===!0,K=(Y===null||Y===void 0?void 0:Y.respectSamplingDecision)!==!1,q=W?Gi($):null,G=!((Q===null||Q===void 0?void 0:Q.omitApiKeyAsBearer)&&QL(D));return async(Z,H)=>{let z=await J(),I=new F(H===null||H===void 0?void 0:H.headers);if(!I.has("apikey"))I.set("apikey",D);if(!I.has("Authorization")){let B=z!==null&&z!==void 0?z:G?D:null;if(B)I.set("Authorization",`Bearer ${B}`)}if(q){let B=await Vi(Z,q,K);if(B){if(B.traceparent&&!I.has("traceparent"))I.set("traceparent",B.traceparent);if(B.tracestate&&!I.has("tracestate"))I.set("tracestate",B.tracestate);if(B.baggage&&!I.has("baggage"))I.set("baggage",B.baggage)}}return U(Z,K0(K0({},H),{},{headers:I}))}},Ri,Mi=class{constructor(D,$,J){var X,Y;this.supabaseUrl=D,this.supabaseKey=$;let Q=Li(D);if(!$)throw Error("supabaseKey is required.");Ni($),this.realtimeUrl=new URL("realtime/v1",Q),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",Q),this.storageUrl=new URL("storage/v1",Q),this.functionsUrl=new URL("functions/v1",Q);let U=`sb-${Q.hostname.split(".")[0]}-auth-token`,F={db:Di,realtime:Ji,auth:K0(K0({},$i),{},{storageKey:U}),global:ed,tracePropagation:Xi},W=ji(J!==null&&J!==void 0?J:{},F);if(this.settings=W,this.storageKey=(X=W.auth.storageKey)!==null&&X!==void 0?X:"",this.headers=(Y=W.global.headers)!==null&&Y!==void 0?Y:{},!W.accessToken){var K;this.auth=this._initSupabaseAuthClient((K=W.auth)!==null&&K!==void 0?K:{},this.headers,W.global.fetch)}else this.accessToken=W.accessToken,this.auth=new Proxy({},{get:(q,G)=>{throw Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(G)} is not possible`)}});if(this.fetch=JL($,D,this._getSessionToken.bind(this),W.global.fetch,W.tracePropagation),this.functionsFetch=JL($,D,this._getSessionToken.bind(this),W.global.fetch,W.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(K0({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},W.realtime)),this.accessToken)Promise.resolve(this.accessToken()).then((q)=>this.realtime.setAuth(q)).catch((q)=>console.warn("Failed to set initial Realtime auth token:",q));if(this.rest=new yj(new URL("rest/v1",Q).href,{headers:this.headers,schema:W.db.schema,fetch:this.fetch,timeout:W.db.timeout,urlLengthLimit:W.db.urlLengthLimit}),this.storage=new aj(this.storageUrl.href,this.headers,this.fetch,J===null||J===void 0?void 0:J.storage),!W.accessToken)this._listenForAuthEvents()}get functions(){return new f$.FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(D){return this.rest.from(D)}schema(D){return this.rest.schema(D)}rpc(D,$={},J={head:!1,get:!1,count:void 0}){return this.rest.rpc(D,$,J)}channel(D,$={config:{}}){return this.realtime.channel(D,$)}getChannels(){return this.realtime.getChannels()}removeChannel(D){return this.realtime.removeChannel(D)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var D=this,$,J;if(D.accessToken)return await D.accessToken();let{data:X}=await D.auth.getSession();return($=(J=X.session)===null||J===void 0?void 0:J.access_token)!==null&&$!==void 0?$:null}async _getAccessToken(){var D=this,$;return($=await D._getSessionToken())!==null&&$!==void 0?$:D.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:D,persistSession:$,detectSessionInUrl:J,storage:X,userStorage:Y,storageKey:Q,flowType:U,lock:F,debug:W,throwOnError:K,experimental:q,lockAcquireTimeout:G,skipAutoInitialize:Z},H,z){let I={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Ri({url:this.authUrl.href,headers:K0(K0({},I),H),storageKey:Q,autoRefreshToken:D,persistSession:$,detectSessionInUrl:J,storage:X,userStorage:Y,flowType:U,lock:F,debug:W,throwOnError:K,experimental:q,fetch:z,lockAcquireTimeout:G,skipAutoInitialize:Z,hasCustomAuthorizationHeader:Object.keys(this.headers).some((B)=>B.toLowerCase()==="authorization")})}_initRealtimeClient(D){return new PF(this.realtimeUrl.href,K0(K0({},D),{},{params:K0(K0({},{apikey:this.supabaseKey}),D===null||D===void 0?void 0:D.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((D,$)=>{this._handleTokenChanged(D,"CLIENT",$===null||$===void 0?void 0:$.access_token)})}_handleTokenChanged(D,$,J){if((D==="TOKEN_REFRESHED"||D==="SIGNED_IN"||D==="INITIAL_SESSION")&&this.changedAccessToken!==J)this.changedAccessToken=J,this.realtime.setAuth(J);else if(D==="SIGNED_OUT"){if(this.realtime.setAuth(),$=="STORAGE")this.auth.signOut();this.changedAccessToken=void 0}}},UL=(D,$,J)=>{return new Mi(D,$,J)};var FL=C(()=>{hj();sj();_F();f$=w$(kj(),1);_F();if(typeof Deno<"u")t9="deno",XJ=(o9=Deno.version)===null||o9===void 0?void 0:o9.deno;else if(typeof document<"u")t9="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")t9="react-native";else{t9="node";let D=globalThis.process;XJ=D===null||D===void 0||(a9=D.version)===null||a9===void 0?void 0:a9.replace(/^v/,"")}YL=[`runtime=${t9}`];if(XJ)YL.push(`runtime-version=${XJ}`);sd={"X-Client-Info":`supabase-js/${ad}; ${YL.join("; ")}`},ed={headers:sd},Di={schema:"public"},$i={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Ji={},Xi={enabled:!1,respectSamplingDecision:!0};$L=new Set;Ri=class extends kF{constructor(D){super(D)}};if(Ai())console.warn("⚠️ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715")});var gF=S((iND,WL)=>{WL.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var YJ=S((qL)=>{var KL={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function vi(D){return function(...$){if($.length)D=D.replace(/\{(\d)\}/g,(J,X)=>$[X]||"");return Error("ADM-ZIP: "+D)}}for(let D of Object.keys(KL))qL[D]=vi(KL[D])});var IL=S((pND,HL)=>{var Ei=XD("fs"),O0=XD("path"),GL=gF(),Ti=YJ(),Pi=typeof process==="object"&&process.platform==="win32",ZL=(D)=>typeof D==="object"&&D!==null,zL=new Uint32Array(256).map((D,$)=>{for(let J=0;J<8;J++)if(($&1)!==0)$=3988292384^$>>>1;else $>>>=1;return $>>>0});function Q0(D){if(this.sep=O0.sep,this.fs=Ei,ZL(D)){if(ZL(D.fs)&&typeof D.fs.statSync==="function")this.fs=D.fs}}HL.exports=Q0;Q0.prototype.makeDir=function(D){let $=this;function J(X){let Y=X.split($.sep)[0];X.split($.sep).forEach(function(Q){if(!Q||Q.substr(-1,1)===":")return;Y+=$.sep+Q;var U;try{U=$.fs.statSync(Y)}catch(F){if(F.message&&F.message.startsWith("ENOENT"))$.fs.mkdirSync(Y);else throw F}if(U&&U.isFile())throw Ti.FILE_IN_THE_WAY(`"${Y}"`)})}J(D)};Q0.prototype.writeFileTo=function(D,$,J,X){let Y=this;if(Y.fs.existsSync(D)){if(!J)return!1;var Q=Y.fs.statSync(D);if(Q.isDirectory())return!1}var U=O0.dirname(D);if(!Y.fs.existsSync(U))Y.makeDir(U);var F;try{F=Y.fs.openSync(D,"w",438)}catch(W){Y.fs.chmodSync(D,438),F=Y.fs.openSync(D,"w",438)}if(F)try{Y.fs.writeSync(F,$,0,$.length,0)}finally{Y.fs.closeSync(F)}return Y.fs.chmodSync(D,X||438),!0};Q0.prototype.writeFileToAsync=function(D,$,J,X,Y){if(typeof X==="function")Y=X,X=void 0;let Q=this;Q.fs.exists(D,function(U){if(U&&!J)return Y(!1);Q.fs.stat(D,function(F,W){if(U&&W&&W.isDirectory())return Y(!1);var K=O0.dirname(D);Q.fs.exists(K,function(q){if(!q)try{Q.makeDir(K)}catch(Z){return Y(!1)}let G=function(Z){Q.fs.write(Z,$,0,$.length,0,function(H){Q.fs.close(Z,function(){if(H)return Y(!1);Q.fs.chmod(D,X||438,function(){Y(!0)})})})};Q.fs.open(D,"w",438,function(Z,H){if(Z)Q.fs.chmod(D,438,function(){Q.fs.open(D,"w",438,function(z,I){if(z||!I)return Y(!1);G(I)})});else if(H)G(H);else Y(!1)})})})})};Q0.prototype.findFiles=function(D){let $=this;function J(X,Y,Q,U){if(typeof Y==="boolean")Q=Y,Y=void 0;let F=[];return $.fs.readdirSync(X).forEach(function(W){let K=O0.join(X,W),q=$.fs.statSync(K);if(!Y||Y.test(K))F.push(O0.normalize(K)+(q.isDirectory()?$.sep:""));if(q.isDirectory()&&Q){let G=$.fs.realpathSync(K);if(!U.has(G))U.add(G),F=F.concat(J(K,Y,Q,U))}}),F}return J(D,void 0,!0,new Set([$.fs.realpathSync(D)]))};Q0.prototype.findFilesAsync=function(D,$){let J=this,X=[],Y=!1,Q=function(F){if(Y)return;Y=!0,$(F,F?void 0:X)},U=function(F,W,K){J.fs.readdir(F,function(q,G){if(q)return K(q);let Z=G.length;if(!Z)return K();G.forEach(function(H){let z=O0.join(F,H);J.fs.stat(z,function(I,B){if(I)return K(I);if(!B){if(!--Z)K();return}if(X.push(O0.normalize(z)+(B.isDirectory()?J.sep:"")),!B.isDirectory()){if(!--Z)K();return}J.fs.realpath(z,function(N,V){if(N)return K(N);if(W.has(V)){if(!--Z)K();return}W.add(V),U(z,W,function(O){if(O)return K(O);if(!--Z)K()})})})})})};J.fs.realpath(D,function(F,W){if(F)return Q(F);U(D,new Set([W]),Q)})};Q0.prototype.getAttributes=function(){};Q0.prototype.setAttributes=function(){};Q0.crc32update=function(D,$){return zL[(D^$)&255]^D>>>8};Q0.crc32=function(D){if(typeof D==="string")D=Buffer.from(D,"utf8");let $=D.length,J=-1;for(let X=0;X<$;)J=Q0.crc32update(J,D[X++]);return~J>>>0};Q0.methodToString=function(D){switch(D){case GL.STORED:return"STORED ("+D+")";case GL.DEFLATED:return"DEFLATED ("+D+")";default:return"UNSUPPORTED ("+D+")"}};Q0.canonical=function(D){if(!D)return"";let $=O0.posix.normalize("/"+D.split("\\").join("/"));return O0.join(".",$)};Q0.zipnamefix=function(D){if(!D)return"";let $=O0.posix.normalize("/"+D.split("\\").join("/"));return O0.posix.join(".",$)};Q0.findLast=function(D,$){if(!Array.isArray(D))throw TypeError("arr is not array");let J=D.length>>>0;for(let X=J-1;X>=0;X--)if($(D[X],X,D))return D[X];return};Q0.sanitize=function(D,$){D=O0.resolve(O0.normalize(D));var J=$.split("/");for(var X=0,Y=J.length;X<Y;X++){var Q=O0.normalize(O0.join(D,J.slice(X,Y).join(O0.sep)));if(Q===D||Q.startsWith(D+O0.sep))return Q}return O0.normalize(O0.join(D,O0.basename($)))};Q0.toBuffer=function($,J){if(Buffer.isBuffer($))return $;else if($ instanceof Uint8Array)return Buffer.from($);else return typeof $==="string"?J($):Buffer.alloc(0)};Q0.readBigUInt64LE=function(D,$){let J=D.readUInt32LE($);return D.readUInt32LE($+4)*4294967296+J};Q0.writeBigUInt64LE=function(D,$,J){let X=$>>>0,Y=Math.floor($/4294967296)>>>0;D.writeUInt32LE(X,J),D.writeUInt32LE(Y,J+4)};Q0.fromDOS2Date=function(D){return new Date((D>>25&127)+1980,Math.max((D>>21&15)-1,0),Math.max(D>>16&31,1),D>>11&31,D>>5&63,(D&31)<<1)};Q0.fromDate2DOS=function(D){let $=0,J=0;if(D.getFullYear()>1979)$=(D.getFullYear()-1980&127)<<9|D.getMonth()+1<<5|D.getDate(),J=D.getHours()<<11|D.getMinutes()<<5|D.getSeconds()>>1;return $<<16|J};Q0.isWin=Pi;Q0.crcTable=zL});var OL=S((nND,BL)=>{var bi=XD("path");BL.exports=function(D,{fs:$}){var J=D||"",X=Q(),Y=null;function Q(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}if(J&&$.existsSync(J))Y=$.statSync(J),X.directory=Y.isDirectory(),X.mtime=Y.mtime,X.atime=Y.atime,X.executable=(73&Y.mode)!==0,X.readonly=(128&Y.mode)===0,X.hidden=bi.basename(J)[0]===".";else console.warn("Invalid path: "+J);return{get directory(){return X.directory},get readOnly(){return X.readonly},get hidden(){return X.hidden},get mtime(){return X.mtime},get atime(){return X.atime},get executable(){return X.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:J,isDirectory:X.directory,isReadOnly:X.readonly,isHidden:X.hidden,isExecutable:X.executable,mTime:X.mtime,aTime:X.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var VL=S((rND,NL)=>{NL.exports={efs:!0,encode:(D)=>Buffer.from(D,"utf8"),decode:(D)=>D.toString("utf8")}});var E8=S((tND,v8)=>{v8.exports=IL();v8.exports.Constants=gF();v8.exports.Errors=YJ();v8.exports.FileAttr=OL();v8.exports.decoder=VL()});var jL=S((oND,wL)=>{var J1=E8(),$D=J1.Constants;wL.exports=function(){var D=20,$=10,J=0,X=0,Y=0,Q=0,U=0,F=0,W=0,K=0,q=0,G=0,Z=0,H=0,z=0;D|=J1.isWin?2560:768,J|=$D.FLG_EFS;let I={extraLen:0},B=(O)=>Math.max(0,O)>>>0,N=(O)=>Math.max(0,O)&65535,V=(O)=>Math.max(0,O)&255;return Y=J1.fromDate2DOS(new Date),{get made(){return D},set made(O){D=O},get version(){return $},set version(O){$=O},get flags(){return J},set flags(O){J=O},get flags_efs(){return(J&$D.FLG_EFS)>0},set flags_efs(O){if(O)J|=$D.FLG_EFS;else J&=~$D.FLG_EFS},get flags_desc(){return(J&$D.FLG_DESC)>0},set flags_desc(O){if(O)J|=$D.FLG_DESC;else J&=~$D.FLG_DESC},get method(){return X},set method(O){switch(O){case $D.STORED:this.version=10;break;case $D.DEFLATED:default:this.version=20}X=O},get time(){return J1.fromDOS2Date(this.timeval)},set time(O){O=new Date(O),this.timeval=J1.fromDate2DOS(O)},get timeval(){return Y},set timeval(O){Y=B(O)},get timeHighByte(){return V(Y>>>8)},get crc(){return Q},set crc(O){Q=B(O)},get compressedSize(){return U},set compressedSize(O){U=B(O)},get size(){return F},set size(O){F=B(O)},get fileNameLength(){return W},set fileNameLength(O){W=O},get extraLength(){return K},set extraLength(O){K=O},get extraLocalLength(){return I.extraLen},set extraLocalLength(O){I.extraLen=O},get commentLength(){return q},set commentLength(O){q=O},get diskNumStart(){return G},set diskNumStart(O){G=B(O)},get inAttr(){return Z},set inAttr(O){Z=B(O)},get attr(){return H},set attr(O){H=B(O)},get fileAttr(){return(H||0)>>16&4095},get offset(){return z},set offset(O){z=B(O)},get encrypted(){return(J&$D.FLG_ENC)===$D.FLG_ENC},get centralHeaderSize(){return $D.CENHDR+W+K+q},get realDataOffset(){return z+$D.LOCHDR+I.fnameLen+I.extraLen},get localHeader(){return I},loadLocalHeaderFromBinary:function(O){var j=O.slice(z,z+$D.LOCHDR);if(j.readUInt32LE(0)!==$D.LOCSIG)throw J1.Errors.INVALID_LOC();I.version=j.readUInt16LE($D.LOCVER),I.flags=j.readUInt16LE($D.LOCFLG),I.flags_desc=(I.flags&$D.FLG_DESC)>0,I.method=j.readUInt16LE($D.LOCHOW),I.time=j.readUInt32LE($D.LOCTIM),I.crc=j.readUInt32LE($D.LOCCRC),I.compressedSize=j.readUInt32LE($D.LOCSIZ),I.size=j.readUInt32LE($D.LOCLEN),I.fnameLen=j.readUInt16LE($D.LOCNAM),I.extraLen=j.readUInt16LE($D.LOCEXT);let v=z+$D.LOCHDR+I.fnameLen,A=v+I.extraLen;return O.slice(v,A)},loadFromBinary:function(O){if(O.length!==$D.CENHDR||O.readUInt32LE(0)!==$D.CENSIG)throw J1.Errors.INVALID_CEN();D=O.readUInt16LE($D.CENVEM),$=O.readUInt16LE($D.CENVER),J=O.readUInt16LE($D.CENFLG),X=O.readUInt16LE($D.CENHOW),Y=O.readUInt32LE($D.CENTIM),Q=O.readUInt32LE($D.CENCRC),U=O.readUInt32LE($D.CENSIZ),F=O.readUInt32LE($D.CENLEN),W=O.readUInt16LE($D.CENNAM),K=O.readUInt16LE($D.CENEXT),q=O.readUInt16LE($D.CENCOM),G=O.readUInt16LE($D.CENDSK),Z=O.readUInt16LE($D.CENATT),H=O.readUInt32LE($D.CENATX),z=O.readUInt32LE($D.CENOFF)},localHeaderToBinary:function(){var O=Buffer.alloc($D.LOCHDR);return O.writeUInt32LE($D.LOCSIG,0),O.writeUInt16LE($,$D.LOCVER),O.writeUInt16LE(J&~$D.FLG_DESC,$D.LOCFLG),O.writeUInt16LE(X,$D.LOCHOW),O.writeUInt32LE(Y,$D.LOCTIM),O.writeUInt32LE(Q,$D.LOCCRC),O.writeUInt32LE(U,$D.LOCSIZ),O.writeUInt32LE(F,$D.LOCLEN),O.writeUInt16LE(W,$D.LOCNAM),O.writeUInt16LE(I.extraLen,$D.LOCEXT),O},centralHeaderToBinary:function(){var O=Buffer.alloc($D.CENHDR+W+K+q);return O.writeUInt32LE($D.CENSIG,0),O.writeUInt16LE(D,$D.CENVEM),O.writeUInt16LE($,$D.CENVER),O.writeUInt16LE(J&~$D.FLG_DESC,$D.CENFLG),O.writeUInt16LE(X,$D.CENHOW),O.writeUInt32LE(Y,$D.CENTIM),O.writeUInt32LE(Q,$D.CENCRC),O.writeUInt32LE(U,$D.CENSIZ),O.writeUInt32LE(F,$D.CENLEN),O.writeUInt16LE(W,$D.CENNAM),O.writeUInt16LE(K,$D.CENEXT),O.writeUInt16LE(q,$D.CENCOM),O.writeUInt16LE(G,$D.CENDSK),O.writeUInt16LE(Z,$D.CENATT),O.writeUInt32LE(H,$D.CENATX),O.writeUInt32LE(z,$D.CENOFF),O},toJSON:function(){let O=function(j){return j+" bytes"};return{made:D,version:$,flags:J,method:J1.methodToString(X),time:this.time,crc:"0x"+Q.toString(16).toUpperCase(),compressedSize:O(U),size:O(F),fileNameLength:O(W),extraLength:O(K),commentLength:O(q),diskNumStart:G,inAttr:Z,attr:H,offset:z,centralHeaderSize:O($D.CENHDR+W+K+q)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var RL=S((aND,LL)=>{var y$=E8(),FD=y$.Constants;LL.exports=function(){var D=0,$=0,J=0,X=0,Y=0;let Q=()=>D>FD.EF_ZIP64_OR_16||$>FD.EF_ZIP64_OR_16||J>FD.EF_ZIP64_OR_32||X>FD.EF_ZIP64_OR_32;return{get diskEntries(){return D},set diskEntries(U){D=$=U},get totalEntries(){return $},set totalEntries(U){$=D=U},get size(){return J},set size(U){J=U},get offset(){return X},set offset(U){X=U},get commentLength(){return Y},set commentLength(U){Y=U},get mainHeaderSize(){return(Q()?FD.ZIP64HDR+FD.END64HDR:0)+FD.ENDHDR+Y},loadFromBinary:function(U){if((U.length!==FD.ENDHDR||U.readUInt32LE(0)!==FD.ENDSIG)&&(U.length<FD.ZIP64HDR||U.readUInt32LE(0)!==FD.ZIP64SIG))throw y$.Errors.INVALID_END();if(U.readUInt32LE(0)===FD.ENDSIG)D=U.readUInt16LE(FD.ENDSUB),$=U.readUInt16LE(FD.ENDTOT),J=U.readUInt32LE(FD.ENDSIZ),X=U.readUInt32LE(FD.ENDOFF),Y=U.readUInt16LE(FD.ENDCOM);else D=y$.readBigUInt64LE(U,FD.ZIP64SUB),$=y$.readBigUInt64LE(U,FD.ZIP64TOT),J=y$.readBigUInt64LE(U,FD.ZIP64SIZB),X=y$.readBigUInt64LE(U,FD.ZIP64OFF),Y=0},toBinary:function(){if(!Q()){var U=Buffer.alloc(FD.ENDHDR+Y);return U.writeUInt32LE(FD.ENDSIG,0),U.writeUInt32LE(0,4),U.writeUInt16LE(D,FD.ENDSUB),U.writeUInt16LE($,FD.ENDTOT),U.writeUInt32LE(J,FD.ENDSIZ),U.writeUInt32LE(X,FD.ENDOFF),U.writeUInt16LE(Y,FD.ENDCOM),U.fill(" ",FD.ENDHDR),U}var U=Buffer.alloc(this.mainHeaderSize);let F=0;U.writeUInt32LE(FD.ZIP64SIG,F),y$.writeBigUInt64LE(U,FD.ZIP64HDR-FD.ZIP64LEAD,F+FD.ZIP64SIZE),U.writeUInt16LE(45,F+FD.ZIP64VEM),U.writeUInt16LE(45,F+FD.ZIP64VER),U.writeUInt32LE(0,F+FD.ZIP64DSK),U.writeUInt32LE(0,F+FD.ZIP64DSKDIR),y$.writeBigUInt64LE(U,D,F+FD.ZIP64SUB),y$.writeBigUInt64LE(U,$,F+FD.ZIP64TOT),y$.writeBigUInt64LE(U,J,F+FD.ZIP64SIZB),y$.writeBigUInt64LE(U,X,F+FD.ZIP64OFF);let W=X+J;return F+=FD.ZIP64HDR,U.writeUInt32LE(FD.END64SIG,F),U.writeUInt32LE(0,F+FD.END64START),y$.writeBigUInt64LE(U,W,F+FD.END64OFF),U.writeUInt32LE(1,F+FD.END64NUMDISKS),F+=FD.END64HDR,U.writeUInt32LE(FD.ENDSIG,F),U.writeUInt32LE(0,F+4),U.writeUInt16LE(Math.min(D,FD.EF_ZIP64_OR_16),F+FD.ENDSUB),U.writeUInt16LE(Math.min($,FD.EF_ZIP64_OR_16),F+FD.ENDTOT),U.writeUInt32LE(Math.min(J,FD.EF_ZIP64_OR_32),F+FD.ENDSIZ),U.writeUInt32LE(Math.min(X,FD.EF_ZIP64_OR_32),F+FD.ENDOFF),U.writeUInt16LE(Y,F+FD.ENDCOM),U.fill(" ",F+FD.ENDHDR),U},toJSON:function(){let U=function(F,W){let K=F.toString(16).toUpperCase();while(K.length<W)K="0"+K;return"0x"+K};return{diskEntries:D,totalEntries:$,size:J+" bytes",offset:U(X,4),commentLength:Y}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var xF=S((Si)=>{Si.EntryHeader=jL();Si.MainHeader=RL()});var AL=S((eND,ML)=>{ML.exports=function(D){var $=XD("zlib"),J={chunkSize:(parseInt(D.length/1024)+1)*1024};return{deflate:function(){return $.deflateRawSync(D,J)},deflateAsync:function(X){var Y=$.createDeflateRaw(J),Q=[],U=0;Y.on("data",function(F){Q.push(F),U+=F.length}),Y.on("end",function(){var F=Buffer.alloc(U),W=0;F.fill(0);for(var K=0;K<Q.length;K++){var q=Q[K];q.copy(F,W),W+=q.length}X&&X(F)}),Y.end(D)}}}});var EL=S((DVD,vL)=>{var _i=+(process?.versions?.node??"").split(".")[0]||0;vL.exports=function(D,$){var J=XD("zlib");let X=_i>=15&&$>0?{maxOutputLength:$}:{};return{inflate:function(){return J.inflateRawSync(D,X)},inflateAsync:function(Y){var Q=J.createInflateRaw(X),U=[],F=0;Q.on("data",function(W){U.push(W),F+=W.length}),Q.on("end",function(){var W=Buffer.alloc(F),K=0;W.fill(0);for(var q=0;q<U.length;q++){var G=U[q];G.copy(W,K),K+=G.length}Y&&Y(W)}),Q.end(D)}}}});var CL=S(($VD,SL)=>{var{randomFillSync:TL}=XD("crypto"),ui=YJ(),gi=new Uint32Array(256).map((D,$)=>{for(let J=0;J<8;J++)if(($&1)!==0)$=$>>>1^3988292384;else $>>>=1;return $>>>0}),bL=(D,$)=>Math.imul(D,$)>>>0,PL=(D,$)=>{return gi[(D^$)&255]^D>>>8},e9=()=>{if(typeof TL==="function")return TL(Buffer.alloc(12));else return e9.node()};e9.node=()=>{let D=Buffer.alloc(12),$=D.length;for(let J=0;J<$;J++)D[J]=Math.random()*256&255;return D};var QJ={genSalt:e9};function UJ(D){let $=Buffer.isBuffer(D)?D:Buffer.from(D);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let J=0;J<$.length;J++)this.updateKeys($[J])}UJ.prototype.updateKeys=function(D){let $=this.keys;return $[0]=PL($[0],D),$[1]+=$[0]&255,$[1]=bL($[1],134775813)+1,$[2]=PL($[2],$[1]>>>24),D};UJ.prototype.next=function(){let D=(this.keys[2]|2)>>>0;return bL(D,D^1)>>8&255};function xi(D){let $=new UJ(D);return function(J){let X=Buffer.alloc(J.length),Y=0;for(let Q of J)X[Y++]=$.updateKeys(Q^$.next());return X}}function fi(D){let $=new UJ(D);return function(J,X,Y=0){if(!X)X=Buffer.alloc(J.length);for(let Q of J){let U=$.next();X[Y++]=Q^U,$.updateKeys(Q)}return X}}function yi(D,$,J){if(!D||!Buffer.isBuffer(D)||D.length<12)return Buffer.alloc(0);let X=xi(J),Y=X(D.slice(0,12)),Q=($.flags&8)===8?$.timeHighByte:$.crc>>>24;if(Y[11]!==Q)throw ui.WRONG_PASSWORD();return X(D.slice(12))}function hi(D){if(Buffer.isBuffer(D)&&D.length>=12)QJ.genSalt=function(){return D.slice(0,12)};else if(D==="node")QJ.genSalt=e9.node;else QJ.genSalt=e9}function mi(D,$,J,X=!1){if(D==null)D=Buffer.alloc(0);if(!Buffer.isBuffer(D))D=Buffer.from(D.toString());let Y=fi(J),Q=QJ.genSalt();if(Q[11]=$.crc>>>24&255,X)Q[10]=$.crc>>>16&255;let U=Buffer.alloc(D.length+12);return Y(Q,U),Y(D,U,12)}SL.exports={decrypt:yi,encrypt:mi,_salter:hi}});var kL=S((li)=>{li.Deflater=AL();li.Inflater=EL();li.ZipCrypto=CL()});var yF=S((XVD,_L)=>{var tD=E8(),pi=xF(),R$=tD.Constants,fF=kL();_L.exports=function(D,$){var J=new pi.EntryHeader,X=Buffer.alloc(0),Y=Buffer.alloc(0),Q=!1,U=null,F=Buffer.alloc(0),W=Buffer.alloc(0),K=!0;let q=D,G=typeof q.decoder==="object"?q.decoder:tD.decoder;K=G.hasOwnProperty("efs")?G.efs:!1;function Z(){if(!$||!($ instanceof Uint8Array))return Buffer.alloc(0);return W=J.loadLocalHeaderFromBinary($),$.slice(J.realDataOffset,J.realDataOffset+J.compressedSize)}function H(O){let j=J.flags_desc||J.localHeader.flags_desc?J.crc:J.localHeader.crc;return tD.crc32(O)===j}function z(O,j,v){if(typeof j>"u"&&typeof O==="string")v=O,O=void 0;if(Q){if(O&&j)j(Buffer.alloc(0),tD.Errors.DIRECTORY_CONTENT_ERROR());return Buffer.alloc(0)}var A=Z();if(A.length===0){if(O&&j)j(A);return A}if(J.encrypted){if(typeof v!=="string"&&!Buffer.isBuffer(v))throw tD.Errors.INVALID_PASS_PARAM();A=fF.ZipCrypto.decrypt(A,J,v)}var k;switch(J.method){case tD.Constants.STORED:if(k=Buffer.alloc(A.length),A.copy(k),!H(k)){if(O&&j)j(k,tD.Errors.BAD_CRC());throw tD.Errors.BAD_CRC()}else{if(O&&j)j(k);return k}case tD.Constants.DEFLATED:var u=new fF.Inflater(A,J.size);if(!O){if(k=u.inflate(),!H(k))throw tD.Errors.BAD_CRC(`"${G.decode(X)}"`);return k}else u.inflateAsync(function(_){if(j)if(!H(_))j(_,tD.Errors.BAD_CRC());else j(_)});break;default:if(O&&j)j(Buffer.alloc(0),tD.Errors.UNKNOWN_METHOD());throw tD.Errors.UNKNOWN_METHOD()}}function I(O,j){if((!U||!U.length)&&Buffer.isBuffer($)){if(O&&j)j(Z());return Z()}if(U.length&&!Q){var v;switch(J.method){case tD.Constants.STORED:if(J.compressedSize=J.size,v=Buffer.alloc(U.length),U.copy(v),O&&j)j(v);return v;default:case tD.Constants.DEFLATED:var A=new fF.Deflater(U);if(!O){var k=A.deflate();return J.compressedSize=k.length,k}else A.deflateAsync(function(u){v=Buffer.alloc(u.length),J.compressedSize=u.length,u.copy(v),j&&j(v)});A=null;break}}else if(O&&j)j(Buffer.alloc(0));else return Buffer.alloc(0)}function B(O,j){return tD.readBigUInt64LE(O,j)}function N(O){try{var j=0,v,A,k;while(j+4<O.length)if(v=O.readUInt16LE(j),j+=2,A=O.readUInt16LE(j),j+=2,k=O.slice(j,j+A),j+=A,R$.ID_ZIP64===v)V(k)}catch(u){throw tD.Errors.EXTRA_FIELD_PARSE_ERROR()}}function V(O){var j,v,A,k;if(O.length>=R$.EF_ZIP64_SCOMP){if(j=B(O,R$.EF_ZIP64_SUNCOMP),J.size===R$.EF_ZIP64_OR_32)J.size=j}if(O.length>=R$.EF_ZIP64_RHO){if(v=B(O,R$.EF_ZIP64_SCOMP),J.compressedSize===R$.EF_ZIP64_OR_32)J.compressedSize=v}if(O.length>=R$.EF_ZIP64_DSN){if(A=B(O,R$.EF_ZIP64_RHO),J.offset===R$.EF_ZIP64_OR_32)J.offset=A}if(O.length>=R$.EF_ZIP64_DSN+4){if(k=O.readUInt32LE(R$.EF_ZIP64_DSN),J.diskNumStart===R$.EF_ZIP64_OR_16)J.diskNumStart=k}}return{get entryName(){return G.decode(X)},get rawEntryName(){return X},set entryName(O){X=tD.toBuffer(O,G.encode);var j=X[X.length-1];Q=j===47||j===92,J.fileNameLength=X.length},get efs(){if(typeof K==="function")return K(this.entryName);else return K},get extra(){return F},set extra(O){F=O,J.extraLength=O.length,N(O)},get comment(){return G.decode(Y)},set comment(O){if(Y=tD.toBuffer(O,G.encode),J.commentLength=Y.length,Y.length>65535)throw tD.Errors.COMMENT_TOO_LONG()},get name(){let O=G.decode(X);return Q?O.replace(/[/\\]$/,"").split("/").pop():O.split("/").pop()},get isDirectory(){return Q},getCompressedData:function(){return I(!1,null)},getCompressedDataAsync:function(O){I(!0,O)},setData:function(O){if(U=tD.toBuffer(O,tD.decoder.encode),!Q&&U.length)J.size=U.length,J.method=tD.Constants.DEFLATED,J.crc=tD.crc32(O),J.changed=!0;else J.method=tD.Constants.STORED},getData:function(O){if(J.changed)return U;else return z(!1,null,O)},getDataAsync:function(O,j){if(J.changed)O(U);else z(!0,O,j)},set attr(O){J.attr=O},get attr(){return J.attr},set header(O){J.loadFromBinary(O)},get header(){return J},packCentralHeader:function(){J.flags_efs=this.efs,J.extraLength=F.length;var O=J.centralHeaderToBinary(),j=tD.Constants.CENHDR;return X.copy(O,j),j+=X.length,F.copy(O,j),j+=J.extraLength,Y.copy(O,j),O},packLocalHeader:function(){let O=0;J.flags_efs=this.efs,J.extraLocalLength=W.length;let j=J.localHeaderToBinary(),v=Buffer.alloc(j.length+X.length+J.extraLocalLength);return j.copy(v,O),O+=j.length,X.copy(v,O),O+=X.length,W.copy(v,O),O+=W.length,v},toJSON:function(){let O=function(j){return"<"+(j&&j.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:J.toJSON(),compressedData:O($),data:O(U)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var xL=S((YVD,gL)=>{var uL=yF(),ni=xF(),r0=E8();gL.exports=function(D,$){var J=[],X=Object.create(null),Y=Buffer.alloc(0),Q=new ni.MainHeader,U=!1,F=null;let W=new Set,K=$,{noSort:q,decoder:G}=K;if(D)z(K.readEntries);else U=!0;function Z(){let B=new Set;for(let N of Object.keys(X)){let V=N.split("/");if(V.pop(),!V.length)continue;for(let O=0;O<V.length;O++){let j=V.slice(0,O+1).join("/")+"/";B.add(j)}}for(let N of B)if(!(N in X)){let V=new uL(K);V.entryName=N,V.attr=16,V.temporary=!0,J.push(V),X[V.entryName]=V,W.add(V)}}function H(){if(U=!0,X=Object.create(null),Q.diskEntries>(D.length-Q.offset)/r0.Constants.CENHDR)throw r0.Errors.DISK_ENTRY_TOO_LARGE();J=Array(Q.diskEntries);var B=Q.offset;for(var N=0;N<J.length;N++){var V=B,O=new uL(K,D);if(O.header=D.slice(V,V+=r0.Constants.CENHDR),O.entryName=D.slice(V,V+=O.header.fileNameLength),O.header.extraLength)O.extra=D.slice(V,V+=O.header.extraLength);if(O.header.commentLength)O.comment=D.slice(V,V+O.header.commentLength);B+=O.header.centralHeaderSize,J[N]=O,X[O.entryName]=O}W.clear(),Z()}function z(B){var N=D.length-r0.Constants.ENDHDR,V=Math.max(0,N-65535),O=V,j=D.length,v=-1,A=0;if(typeof K.trailingSpace==="boolean"?K.trailingSpace:!1)V=0;for(N;N>=O;N--){if(D[N]!==80)continue;if(D.readUInt32LE(N)===r0.Constants.ENDSIG){v=N,A=N,j=N+r0.Constants.ENDHDR,O=N-r0.Constants.END64HDR;continue}if(D.readUInt32LE(N)===r0.Constants.END64SIG){O=V;continue}if(D.readUInt32LE(N)===r0.Constants.ZIP64SIG){v=N,j=N+r0.readBigUInt64LE(D,N+r0.Constants.ZIP64SIZE)+r0.Constants.ZIP64LEAD;break}}if(v==-1)throw r0.Errors.INVALID_FORMAT();if(Q.loadFromBinary(D.slice(v,j)),Q.commentLength)Y=D.slice(A+r0.Constants.ENDHDR);if(B)H()}function I(){if(J.length>1&&!q)J=J.map((B)=>({entry:B,key:B.entryName.toLowerCase()})).sort((B,N)=>B.key.localeCompare(N.key)).map((B)=>B.entry)}return{get entries(){if(!U)H();return J.filter((B)=>!W.has(B))},get comment(){return G.decode(Y)},set comment(B){Y=r0.toBuffer(B,G.encode),Q.commentLength=Y.length},getEntryCount:function(){if(!U)return Q.diskEntries;return J.length},forEach:function(B){this.entries.forEach(B)},getEntry:function(B){if(!U)H();return X[B]||null},setEntry:function(B){if(!U)H();J.push(B),X[B.entryName]=B,Q.totalEntries=J.length},deleteFile:function(B,N=!0){if(!U)H();let V=X[B];this.getEntryChildren(V,N).map((j)=>j.entryName).forEach(this.deleteEntry)},deleteEntry:function(B){if(!U)H();let N=X[B],V=J.indexOf(N);if(V>=0)J.splice(V,1),delete X[B],Q.totalEntries=J.length},getEntryChildren:function(B,N=!0){if(!U)H();if(typeof B==="object")if(B.isDirectory&&N){let V=[],O=B.entryName;for(let j of J)if(j.entryName.startsWith(O))V.push(j);return V}else return[B];return[]},getChildCount:function(B){if(B&&B.isDirectory){let N=this.getEntryChildren(B);return N.includes(B)?N.length-1:N.length}return 0},compressToBuffer:function(){if(!U)H();I();let B=[],N=[],V=0,O=0;Q.size=0,Q.offset=0;let j=0;for(let k of this.entries){let u=k.getCompressedData();k.header.offset=O;let _=k.packLocalHeader(),y=_.length+u.length;O+=y,B.push(_),B.push(u);let T=k.packCentralHeader();N.push(T),Q.size+=T.length,V+=y+T.length,j++}V+=Q.mainHeaderSize,Q.offset=O,Q.totalEntries=j,O=0;let v=Buffer.alloc(V);for(let k of B)k.copy(v,O),O+=k.length;for(let k of N)k.copy(v,O),O+=k.length;let A=Q.toBinary();if(Y)Y.copy(A,A.length-Y.length);return A.copy(v,O),D=v,U=!1,v},toAsyncBuffer:function(B,N,V,O){try{if(!U)H();I();let j=[],v=[],A=0,k=0,u=0;Q.size=0,Q.offset=0;let _=function(y){if(y.length>0){let T=y.shift(),d=T.entryName+T.extra.toString();if(V)V(d);T.getCompressedDataAsync(function(c){if(O)O(d);T.header.offset=k;let p=T.packLocalHeader(),o=p.length+c.length;k+=o,j.push(p),j.push(c);let R=T.packCentralHeader();v.push(R),Q.size+=R.length,A+=o+R.length,u++,_(y)})}else{A+=Q.mainHeaderSize,Q.offset=k,Q.totalEntries=u,k=0;let T=Buffer.alloc(A);j.forEach(function(c){c.copy(T,k),k+=c.length}),v.forEach(function(c){c.copy(T,k),k+=c.length});let d=Q.toBinary();if(Y)Y.copy(d,d.length-Y.length);d.copy(T,k),D=T,U=!1,B(T)}};_(Array.from(this.entries))}catch(j){N(j)}}}}});var hL=S((QVD,yL)=>{var G0=E8(),q0=XD("path"),ri=yF(),ti=xL(),r1=(...D)=>G0.findLast(D,($)=>typeof $==="boolean"),fL=(...D)=>G0.findLast(D,($)=>typeof $==="string"),oi=(...D)=>G0.findLast(D,($)=>typeof $==="function"),ai={noSort:!1,readEntries:!1,method:G0.Constants.NONE,fs:null};yL.exports=function(D,$){let J=null,X=Object.assign(Object.create(null),ai);if(D&&typeof D==="object"){if(!(D instanceof Uint8Array)){if(Object.assign(X,D),D=X.input?X.input:void 0,X.input)delete X.input}if(Buffer.isBuffer(D))J=D,X.method=G0.Constants.BUFFER,D=void 0}Object.assign(X,$);let Y=new G0(X),Q=(z)=>{z.filter((I)=>I.attr).sort((I,B)=>B.path.length-I.path.length).forEach((I)=>Y.fs.chmodSync(I.path,I.attr))};if(typeof X.decoder!=="object"||typeof X.decoder.encode!=="function"||typeof X.decoder.decode!=="function")X.decoder=G0.decoder;if(D&&typeof D==="string")if(Y.fs.existsSync(D))X.method=G0.Constants.FILE,X.filename=D,J=Y.fs.readFileSync(D);else throw G0.Errors.INVALID_FILENAME();let U=new ti(J,X),{canonical:F,sanitize:W,zipnamefix:K}=G0;function q(z){if(z&&U){var I;if(typeof z==="string")I=U.getEntry(q0.posix.normalize(z));if(typeof z==="object"&&typeof z.entryName<"u"&&typeof z.header<"u")I=U.getEntry(z.entryName);if(I)return I}return null}function G(z){let{join:I,normalize:B,sep:N}=q0.posix;return I(q0.isAbsolute(z)?"/":".",B(N+z.split("\\").join(N)+N))}function Z(z){if(z instanceof RegExp)return function(I){return function(B){return I.test(B)}}(z);else if(typeof z!=="function")return()=>!0;return z}let H=(z,I)=>{let B=I.slice(-1);return B=B===Y.sep?Y.sep:"",q0.relative(z,I)+B};return{readFile:function(z,I){var B=q(z);return B&&B.getData(I)||null},childCount:function(z){let I=q(z);if(I)return U.getChildCount(I)},readFileAsync:function(z,I){var B=q(z);if(B)B.getDataAsync(I);else I(null,"getEntry failed for:"+z)},readAsText:function(z,I){var B=q(z);if(B){var N=B.getData();if(N&&N.length)return N.toString(I||"utf8")}return""},readAsTextAsync:function(z,I,B){var N=q(z);if(N)N.getDataAsync(function(V,O){if(O){I(V,O);return}if(V&&V.length)I(V.toString(B||"utf8"));else I("")});else I("")},deleteFile:function(z,I=!0){var B=q(z);if(B)U.deleteFile(B.entryName,I)},deleteEntry:function(z){var I=q(z);if(I)U.deleteEntry(I.entryName)},addZipComment:function(z){U.comment=z},getZipComment:function(){return U.comment||""},addZipEntryComment:function(z,I){var B=q(z);if(B)B.comment=I},getZipEntryComment:function(z){var I=q(z);if(I)return I.comment||"";return""},updateFile:function(z,I){var B=q(z);if(B)B.setData(I)},addLocalFile:function(z,I,B,N){if(Y.fs.existsSync(z)){I=I?G(I):"";let V=q0.win32.basename(q0.win32.normalize(z));I+=B?B:V;let O=Y.fs.statSync(z),j=O.isFile()?Y.fs.readFileSync(z):Buffer.alloc(0);if(O.isDirectory())I+=Y.sep;this.addFile(I,j,N,O)}else throw G0.Errors.FILE_NOT_FOUND(z)},addLocalFileAsync:function(z,I){z=typeof z==="object"?z:{localPath:z};let B=q0.resolve(z.localPath),{comment:N}=z,{zipPath:V,zipName:O}=z,j=this;Y.fs.stat(B,function(v,A){if(v)return I(v,!1);V=V?G(V):"";let k=q0.win32.basename(q0.win32.normalize(B));if(V+=O?O:k,A.isFile())Y.fs.readFile(B,function(u,_){if(u)return I(u,!1);return j.addFile(V,_,N,A),setImmediate(I,void 0,!0)});else if(A.isDirectory())return V+=Y.sep,j.addFile(V,Buffer.alloc(0),N,A),setImmediate(I,void 0,!0)})},addLocalFolder:function(z,I,B){if(B=Z(B),I=I?G(I):"",z=q0.normalize(z),Y.fs.existsSync(z)){let N=Y.findFiles(z),V=this;if(N.length)for(let O of N){let j=q0.join(I,H(z,O));if(B(j))V.addLocalFile(O,q0.dirname(j))}}else throw G0.Errors.FILE_NOT_FOUND(z)},addLocalFolderAsync:function(z,I,B,N){N=Z(N),B=B?G(B):"",z=q0.normalize(z);var V=this;Y.fs.open(z,"r",function(O){if(O&&O.code==="ENOENT")I(void 0,G0.Errors.FILE_NOT_FOUND(z));else if(O)I(void 0,O);else{var j=Y.findFiles(z),v=-1,A=function(){if(v+=1,v<j.length){var k=j[v],u=H(z,k).split("\\").join("/");if(u=u.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),N(u))Y.fs.stat(k,function(_,y){if(_)I(void 0,_);if(y.isFile())Y.fs.readFile(k,function(T,d){if(T)I(void 0,T);else V.addFile(B+u,d,"",y),A()});else V.addFile(B+u+"/",Buffer.alloc(0),"",y),A()});else process.nextTick(()=>{A()})}else I(!0,void 0)};A()}})},addLocalFolderAsync2:function(z,I){let B=this;z=typeof z==="object"?z:{localPath:z};let N=q0.resolve(G(z.localPath)),{zipPath:V,filter:O,namefix:j}=z;if(O instanceof RegExp)O=function(k){return function(u){return k.test(u)}}(O);else if(typeof O!=="function")O=function(){return!0};if(V=V?G(V):"",j==="latin1")j=(k)=>k.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(typeof j!=="function")j=(k)=>k;let v=(k)=>q0.join(V,j(H(N,k))),A=(k)=>q0.win32.basename(q0.win32.normalize(j(k)));Y.fs.open(N,"r",function(k){if(k&&k.code==="ENOENT")I(void 0,G0.Errors.FILE_NOT_FOUND(N));else if(k)I(void 0,k);else Y.findFilesAsync(N,function(u,_){if(u)return I(u);if(_=_.filter((y)=>O(v(y))),!_.length)I(void 0,!1);setImmediate(_.reverse().reduce(function(y,T){return function(d,c){if(d||c===!1)return setImmediate(y,d,!1);B.addLocalFileAsync({localPath:T,zipPath:q0.dirname(v(T)),zipName:A(T)},y)}},I))})})},addLocalFolderPromise:function(z,I){return new Promise((B,N)=>{this.addLocalFolderAsync2(Object.assign({localPath:z},I),(V,O)=>{if(V)N(V);if(O)B(this)})})},addFile:function(z,I,B,N){z=K(z);let V=q(z),O=V!=null;if(!O)V=new ri(X),V.entryName=z;V.comment=B||"";let j=typeof N==="object"&&N instanceof Y.fs.Stats;if(j)V.header.time=N.mtime;var v=V.isDirectory?16:0;let A=V.isDirectory?16384:32768;if(j)A|=4095&N.mode;else if(typeof N==="number")A|=4095&N;else A|=V.isDirectory?493:420;if(v=(v|A<<16)>>>0,V.attr=v,V.setData(I),!O)U.setEntry(V);return V},getEntries:function(z){return U.password=z,U?U.entries:[]},getEntry:function(z){return q(z)},getEntryCount:function(){return U.getEntryCount()},forEach:function(z){return U.forEach(z)},extractEntryTo:function(z,I,B,N,V,O){N=r1(!1,N),V=r1(!1,V),B=r1(!0,B),O=fL(V,O);var j=q(z);if(!j)throw G0.Errors.NO_ENTRY();var v=F(j.entryName),A=W(I,O&&!j.isDirectory?F(O):B?v:q0.basename(v));if(j.isDirectory){var k=U.getEntryChildren(j);return k.forEach(function(y){if(y.isDirectory)return;var T=y.getData();if(!T)throw G0.Errors.CANT_EXTRACT_FILE();var d=F(B?y.entryName:y.entryName.substring(j.entryName.length)),c=W(I,d);let p=V?y.header.fileAttr:void 0;Y.writeFileTo(c,T,N,p)}),!0}var u=j.getData(U.password);if(!u)throw G0.Errors.CANT_EXTRACT_FILE();if(Y.fs.existsSync(A)&&!N)throw G0.Errors.CANT_OVERRIDE();let _=V?z.header.fileAttr:void 0;return Y.writeFileTo(A,u,N,_),!0},test:function(z){if(!U)return!1;for(var I of U.entries)try{if(I.isDirectory)continue;var B=I.getData(z);if(!B)return!1}catch(N){return!1}return!0},extractAllTo:function(z,I,B,N){if(B=r1(!1,B),N=fL(B,N),I=r1(!1,I),!U)throw G0.Errors.NO_ZIP();let V=[];U.entries.forEach(function(O){var j=W(z,F(O.entryName));if(O.isDirectory){if(Y.makeDir(j),B)V.push({path:j,attr:O.header.fileAttr});return}var v=O.getData(N);if(!v)throw G0.Errors.CANT_EXTRACT_FILE();let A=B?O.header.fileAttr:void 0;Y.writeFileTo(j,v,I,A);try{Y.fs.utimesSync(j,O.header.time,O.header.time)}catch(k){}}),Q(V)},extractAllToAsync:function(z,I,B,N){if(N=oi(I,B,N),B=r1(!1,B),I=r1(!1,I),!N)return new Promise((u,_)=>{this.extractAllToAsync(z,I,B,function(y){if(y)_(y);else u(this)})});if(!U){N(G0.Errors.NO_ZIP());return}z=q0.resolve(z);let V=(u)=>W(z,q0.normalize(F(u.entryName))),O=(u,_)=>Error(u+': "'+_+'"'),j=[],v=[];U.entries.forEach((u)=>{if(u.isDirectory)j.push(u);else v.push(u)});let A=[];for(let u of j){let _=V(u),y=B?u.header.fileAttr:void 0;try{Y.makeDir(_)}catch(T){N(O("Unable to create folder",_));continue}if(y)A.push({path:_,attr:y});try{Y.fs.utimesSync(_,u.header.time,u.header.time)}catch(T){}}let k=(u)=>{if(!u)try{Q(A)}catch(_){return N(O("Unable to set folder permissions",_.path||""))}N(u)};v.reverse().reduce(function(u,_){return function(y){if(y)u(y);else{let T=q0.normalize(F(_.entryName)),d=W(z,T);_.getDataAsync(function(c,p){if(p)u(p);else if(!c)u(G0.Errors.CANT_EXTRACT_FILE());else{let o=B?_.header.fileAttr:void 0;Y.writeFileToAsync(d,c,I,o,function(R){if(!R)return u(O("Unable to write file",d));Y.fs.utimes(d,_.header.time,_.header.time,function(){u()})})}})}}},k)()},writeZip:function(z,I){if(arguments.length===1){if(typeof z==="function")I=z,z=""}if(!z&&X.filename)z=X.filename;if(!z)return;var B=U.compressToBuffer();if(B){var N=Y.writeFileTo(z,B,!0);if(typeof I==="function")I(!N?Error("failed"):null,"")}},writeZipPromise:function(z,I){let{overwrite:B,perm:N}=Object.assign({overwrite:!0},I);return new Promise((V,O)=>{if(!z&&X.filename)z=X.filename;if(!z)O("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((j)=>{let v=(A)=>A?V(A):O("ADM-ZIP: Wasn't able to write zip file");Y.writeFileToAsync(z,j,B,N,v)},O)})},toBufferPromise:function(){return new Promise((z,I)=>{U.toAsyncBuffer(z,I)})},toBuffer:function(z,I,B,N){if(typeof z==="function")return U.toAsyncBuffer(z,I,B,N),null;return U.compressToBuffer()}}}});var mL=S((UVD,si)=>{si.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var lF=S((hF)=>{var lL=mL(),z0=process.env;Object.defineProperty(hF,"_vendors",{value:lL.map(function(D){return D.constant})});hF.name=null;hF.isPR=null;hF.id=null;if(z0.CI!=="false")lL.forEach(function(D){let J=(Array.isArray(D.env)?D.env:[D.env]).every(function(X){return dL(X)});if(hF[D.constant]=J,!J)return;hF.name=D.name,hF.isPR=ei(D),hF.id=D.constant});hF.isCI=!!(z0.CI!=="false"&&(z0.BUILD_ID||z0.BUILD_NUMBER||z0.CI||z0.CI_APP_ID||z0.CI_BUILD_ID||z0.CI_BUILD_NUMBER||z0.CI_NAME||z0.CONTINUOUS_INTEGRATION||z0.RUN_ID||hF.name||!1));function dL(D){if(typeof D==="string")return!!z0[D];if("env"in D)return z0[D.env]&&z0[D.env].includes(D.includes);if("any"in D)return D.any.some(function($){return!!z0[$]});return Object.keys(D).every(function($){return z0[$]===D[$]})}function ei(D){switch(typeof D.pr){case"string":return!!z0[D.pr];case"object":if("env"in D.pr)if("any"in D.pr)return D.pr.any.some(function($){return z0[D.pr.env]===$});else return D.pr.env in z0&&z0[D.pr.env]!==D.pr.ne;else if("any"in D.pr)return D.pr.any.some(function($){return!!z0[$]});else return dL(D.pr);default:return null}}});var tL=S((WVD,rL)=>{var nL={};rL.exports=nL;var pL={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(pL).forEach(function(D){var $=pL[D],J=nL[D]=[];J.open="\x1B["+$[0]+"m",J.close="\x1B["+$[1]+"m"})});var aL=S((KVD,oL)=>{oL.exports=function(D,$){$=$||process.argv;var J=$.indexOf("--"),X=/^-{1,2}/.test(D)?"":"--",Y=$.indexOf(X+D);return Y!==-1&&(J===-1?!0:Y<J)}});var eL=S((qVD,sL)=>{var $c=XD("os"),s$=aL(),t0=process.env,T8=void 0;if(s$("no-color")||s$("no-colors")||s$("color=false"))T8=!1;else if(s$("color")||s$("colors")||s$("color=true")||s$("color=always"))T8=!0;if("FORCE_COLOR"in t0)T8=t0.FORCE_COLOR.length===0||parseInt(t0.FORCE_COLOR,10)!==0;function Jc(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function Xc(D){if(T8===!1)return 0;if(s$("color=16m")||s$("color=full")||s$("color=truecolor"))return 3;if(s$("color=256"))return 2;if(D&&!D.isTTY&&T8!==!0)return 0;var $=T8?1:0;if(process.platform==="win32"){var J=$c.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in t0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in t0})||t0.CI_NAME==="codeship")return 1;return $}if("TEAMCITY_VERSION"in t0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in t0){var X=parseInt((t0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(t0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(t0.TERM))return 1;if("COLORTERM"in t0)return 1;if(t0.TERM==="dumb")return $;return $}function dF(D){var $=Xc(D);return Jc($)}sL.exports={supportsColor:dF,stdout:dF(process.stdout),stderr:dF(process.stderr)}});var $R=S((GVD,DR)=>{DR.exports=function($,J){var X="";$=$||"Run the trap, drop the bass",$=$.split("");var Y={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return $.forEach(function(Q){Q=Q.toLowerCase();var U=Y[Q]||[" "],F=Math.floor(Math.random()*U.length);if(typeof Y[Q]<"u")X+=Y[Q][F];else X+=Q}),X}});var XR=S((ZVD,JR)=>{JR.exports=function($,J){$=$||" he is here ";var X={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},Y=[].concat(X.up,X.down,X.mid);function Q(W){var K=Math.floor(Math.random()*W);return K}function U(W){var K=!1;return Y.filter(function(q){K=q===W}),K}function F(W,K){var q="",G,Z;K=K||{},K.up=typeof K.up<"u"?K.up:!0,K.mid=typeof K.mid<"u"?K.mid:!0,K.down=typeof K.down<"u"?K.down:!0,K.size=typeof K.size<"u"?K.size:"maxi",W=W.split("");for(Z in W){if(U(Z))continue;switch(q=q+W[Z],G={up:0,down:0,mid:0},K.size){case"mini":G.up=Q(8),G.mid=Q(2),G.down=Q(8);break;case"maxi":G.up=Q(16)+3,G.mid=Q(4)+1,G.down=Q(64)+3;break;default:G.up=Q(8)+1,G.mid=Q(6)/2,G.down=Q(8)+1;break}var H=["up","mid","down"];for(var z in H){var I=H[z];for(var B=0;B<=G[I];B++)if(K[I])q=q+X[I][Q(X[I].length)]}}return q}return F($,J)}});var QR=S((zVD,YR)=>{YR.exports=function(D){return function($,J,X){if($===" ")return $;switch(J%3){case 0:return D.red($);case 1:return D.white($);case 2:return D.blue($)}}}});var FR=S((HVD,UR)=>{UR.exports=function(D){return function($,J,X){return J%2===0?$:D.inverse($)}}});var KR=S((IVD,WR)=>{WR.exports=function(D){var $=["red","yellow","green","blue","magenta"];return function(J,X,Y){if(J===" ")return J;else return D[$[X++%$.length]](J)}}});var GR=S((BVD,qR)=>{qR.exports=function(D){var $=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(J,X,Y){return J===" "?J:D[$[Math.round(Math.random()*($.length-2))]](J)}}});var BR=S((NVD,IR)=>{var vD={};IR.exports=vD;vD.themes={};var Yc=XD("util"),t1=vD.styles=tL(),ZR=Object.defineProperties,Qc=new RegExp(/[\r\n]+/g);vD.supportsColor=eL().supportsColor;if(typeof vD.enabled>"u")vD.enabled=vD.supportsColor()!==!1;vD.enable=function(){vD.enabled=!0};vD.disable=function(){vD.enabled=!1};vD.stripColors=vD.strip=function(D){return(""+D).replace(/\x1B\[\d+m/g,"")};var OVD=vD.stylize=function($,J){if(!vD.enabled)return $+"";var X=t1[J];if(!X&&J in vD)return vD[J]($);return X.open+$+X.close},Uc=/[|\\{}()[\]^$+*?.]/g,Fc=function(D){if(typeof D!=="string")throw TypeError("Expected a string");return D.replace(Uc,"\\$&")};function zR(D){var $=function J(){return Kc.apply(J,arguments)};return $._styles=D,$.__proto__=Wc,$}var HR=function(){var D={};return t1.grey=t1.gray,Object.keys(t1).forEach(function($){t1[$].closeRe=new RegExp(Fc(t1[$].close),"g"),D[$]={get:function(){return zR(this._styles.concat($))}}}),D}(),Wc=ZR(function(){},HR);function Kc(){var D=Array.prototype.slice.call(arguments),$=D.map(function(U){if(U!=null&&U.constructor===String)return U;else return Yc.inspect(U)}).join(" ");if(!vD.enabled||!$)return $;var J=$.indexOf(`
`)!=-1,X=this._styles,Y=X.length;while(Y--){var Q=t1[X[Y]];if($=Q.open+$.replace(Q.closeRe,Q.open)+Q.close,J)$=$.replace(Qc,function(U){return Q.close+U+Q.open})}return $}vD.setTheme=function(D){if(typeof D==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var $ in D)(function(J){vD[J]=function(X){if(typeof D[J]==="object"){var Y=X;for(var Q in D[J])Y=vD[D[J][Q]](Y);return Y}return vD[D[J]](X)}})($)};function qc(){var D={};return Object.keys(HR).forEach(function($){D[$]={get:function(){return zR([$])}}}),D}var Gc=function($,J){var X=J.split("");return X=X.map($),X.join("")};vD.trap=$R();vD.zalgo=XR();vD.maps={};vD.maps.america=QR()(vD);vD.maps.zebra=FR()(vD);vD.maps.rainbow=KR()(vD);vD.maps.random=GR()(vD);for(iF in vD.maps)(function(D){vD[D]=function($){return Gc(vD.maps[D],$)}})(iF);var iF;ZR(vD,qc())});var NR=S((VVD,OR)=>{var Zc=BR();OR.exports=Zc});var VR=S((zc)=>{zc.indent=function($){return Array($+1).join(" ")};zc.getMaxIndexLength=function(D){var $=0;return Object.getOwnPropertyNames(D).forEach(function(J){if(D[J]===void 0)return;$=Math.max($,J.length)}),$}});var wR=S((jVD,Bc)=>{Bc.exports={author:"Rafael de Oleza <rafeca@gmail.com> (https://github.com/rafeca)",name:"prettyjson",description:"Package for formatting JSON data in a coloured YAML-style, perfect for CLI output",version:"1.2.5",homepage:"http://rafeca.com/prettyjson",keywords:["json","cli","formatting","colors"],repository:{type:"git",url:"https://github.com/rafeca/prettyjson.git"},bugs:{url:"https://github.com/rafeca/prettyjson/issues"},main:"./lib/prettyjson",files:["bin/prettyjson","lib/*.js"],license:"MIT",scripts:{test:"npm run jshint && mocha --reporter spec",testwin:"node ./node_modules/mocha/bin/mocha --reporter spec",jshint:"jshint lib/*.js test/*.js",coverage:"istanbul cover _mocha --report lcovonly -- -R spec",coveralls:"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",changelog:"git log $(git describe --tags --abbrev=0)..HEAD --pretty='* %s' --first-parent"},bin:{prettyjson:"./bin/prettyjson"},dependencies:{colors:"1.4.0",minimist:"^1.2.0"},devDependencies:{coveralls:"^2.11.15",istanbul:"^0.4.5",jshint:"^2.9.4",mocha:"^3.1.2","mocha-lcov-reporter":"^1.2.0",should:"^11.1.1"}}});var LR=S((wc)=>{var Z6=NR(),X1=VR(),Oc=/[^\w\s\n\r\v\t\.,]/i;wc.version=wR().version;var cF=function(D,$){return D!==void 0||$.renderUndefined},FJ=function(D,$,J){if(typeof D==="boolean"||typeof D==="number"||typeof D==="function"||D===null||D===void 0||D instanceof Date)return!0;if(typeof D==="string"&&D.indexOf(`
`)===-1)return!0;if(J.inlineArrays&&!$){if(Array.isArray(D)&&FJ(D[0],!0,J))return!0}return!1},Nc=function(D,$){if($.noColor)return D;if(typeof D==="string")return $.stringColor?Z6[$.stringColor](D):D;var J=D+"";if(D===!0)return Z6.green(J);if(D===!1)return Z6.red(J);if(D===null||D===void 0)return Z6.grey(J);if(typeof D==="number")if(D>=0)return Z6[$.positiveNumberColor](J);else return Z6[$.negativeNumberColor](J);if(typeof D==="function")return"function() {}";if(Array.isArray(D))return D.join(", ");return J},pF=function(D,$){if(D.multilineStringColor===null||D.noColor)return $;else return Z6[D.multilineStringColor]($)},Vc=function(D,$,J){var X=D.split(`
`);return X=X.map(function(Y){return X1.indent($)+pF(J,Y)}),X.join(`
`)},P8=function(D,$,J){if(typeof D==="string"&&D.match(Oc)&&$.escape)D=JSON.stringify(D);if(!cF(D,$))return[];if(FJ(D,!1,$))return[X1.indent(J)+Nc(D,$)];if(typeof D==="string")return[X1.indent(J)+pF($,'"""'),Vc(D,J+$.defaultIndentation,$),X1.indent(J)+pF($,'"""')];if(Array.isArray(D)){if(D.length===0)return[X1.indent(J)+$.emptyArrayMsg];var X=[];return D.forEach(function(F){if(!cF(F,$))return;var W="- ";if(!$.noColor)W=Z6[$.dashColor](W);if(W=X1.indent(J)+W,FJ(F,!1,$))W+=P8(F,$,0)[0],X.push(W);else X.push(W),X.push.apply(X,P8(F,$,J+$.defaultIndentation))}),X}if(D instanceof Error)return P8({message:D.message,stack:D.stack.split(`
`)},$,J);var Y=$.noAlign?0:X1.getMaxIndexLength(D),Q,U=[];return Object.getOwnPropertyNames(D).forEach(function(F){if(!cF(D[F],$))return;if(Q=F+": ",!$.noColor)Q=Z6[$.keysColor](Q);if(Q=X1.indent(J)+Q,FJ(D[F],!1,$)){var W=$.noAlign?0:Y-F.length;Q+=P8(D[F],$,W)[0],U.push(Q)}else U.push(Q),U.push.apply(U,P8(D[F],$,J+$.defaultIndentation))}),U};wc.render=function($,J,X){return X=X||0,J=J||{},J.emptyArrayMsg=J.emptyArrayMsg||"(empty array)",J.keysColor=J.keysColor||"green",J.dashColor=J.dashColor||"green",J.numberColor=J.numberColor||"blue",J.positiveNumberColor=J.positiveNumberColor||J.numberColor,J.negativeNumberColor=J.negativeNumberColor||J.numberColor,J.defaultIndentation=J.defaultIndentation||2,J.noColor=!!J.noColor,J.noAlign=!!J.noAlign,J.escape=!!J.escape,J.renderUndefined=!!J.renderUndefined,J.stringColor=J.stringColor||null,J.multilineStringColor=J.multilineStringColor||null,P8($,J,X).join(`
`)};wc.renderString=function($,J,X){var Y="",Q;if(typeof $!=="string"||$==="")return"";if($[0]!=="{"&&$[0]!=="["){var U;if($.indexOf("{")===-1)U=$.indexOf("[");else if($.indexOf("[")===-1)U=$.indexOf("{");else if($.indexOf("{")<$.indexOf("["))U=$.indexOf("{");else U=$.indexOf("[");Y+=$.substr(0,U)+`
`,$=$.substr(U)}try{Q=JSON.parse($)}catch(F){return Z6.red("Error:")+" Not valid JSON!"}return Y+=wc.render(Q,J,X),Y}});var tF=S((MR)=>{Object.defineProperty(MR,"__esModule",{value:!0});MR.default=void 0;function b8(D){return b8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},b8(D)}function RR(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,Mc(X.key),X)}}function Rc(D,$,J){if($)RR(D.prototype,$);if(J)RR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Mc(D){var $=Ac(D,"string");return b8($)=="symbol"?$:$+""}function Ac(D,$){if(b8(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(b8(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function vc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function Ec(D,$,J){return $=$5($),Tc(D,rF()?Reflect.construct($,J||[],$5(D).constructor):$.apply(D,J))}function Tc(D,$){if($&&(b8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return Pc(D)}function Pc(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function bc(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)D5(D,$)}function nF(D){var $=typeof Map==="function"?new Map:void 0;return nF=function(X){if(X===null||!Cc(X))return X;if(typeof X!=="function")throw TypeError("Super expression must either be null or a function");if(typeof $<"u"){if($.has(X))return $.get(X);$.set(X,Y)}function Y(){return Sc(X,arguments,$5(this).constructor)}return Y.prototype=Object.create(X.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),D5(Y,X)},nF(D)}function Sc(D,$,J){if(rF())return Reflect.construct.apply(null,arguments);var X=[null];X.push.apply(X,$);var Y=new(D.bind.apply(D,X));return J&&D5(Y,J.prototype),Y}function rF(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(rF=function(){return!!D})()}function Cc(D){try{return Function.toString.call(D).indexOf("[native code]")!==-1}catch($){return typeof D==="function"}}function D5(D,$){return D5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Y){return X.__proto__=Y,X},D5(D,$)}function $5(D){return $5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},$5(D)}var kc=function(D){function $(J){var X,Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(vc(this,$),X=Ec(this,$,[J]),X.originalRequest=Q,X.originalResponse=U,X.causingError=Y,Y!=null)J+=", caused by ".concat(Y.toString());if(Q!=null){var F=Q.getHeader("X-Request-ID")||"n/a",W=Q.getMethod(),K=Q.getURL(),q=U?U.getStatus():"n/a",G=U?U.getBody()||"":"n/a";J+=", originated from request (method: ".concat(W,", url: ").concat(K,", response code: ").concat(q,", response text: ").concat(G,", request id: ").concat(F,")")}return X.message=J,X}return bc($,D),Rc($)}(nF(Error)),RVD=MR.default=kc});var oF=S((ER)=>{Object.defineProperty(ER,"__esModule",{value:!0});ER.enableDebugLog=_c;ER.log=uc;var vR=!1;function _c(){vR=!0}function uc(D){if(!vR)return;console.log(D)}});var SR=S((PR)=>{Object.defineProperty(PR,"__esModule",{value:!0});PR.default=void 0;function J5(D){return J5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},J5(D)}function fc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function TR(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,hc(X.key),X)}}function yc(D,$,J){if($)TR(D.prototype,$);if(J)TR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function hc(D){var $=mc(D,"string");return J5($)=="symbol"?$:$+""}function mc(D,$){if(J5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(J5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var vVD=PR.default=function(){function D(){fc(this,D)}return yc(D,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(J){return Promise.resolve([])}},{key:"removeUpload",value:function(J){return Promise.resolve()}},{key:"addUpload",value:function(J,X){return Promise.resolve(null)}}])}()});var CR=S((aF,sF)=>{(function(D,$){typeof aF==="object"&&typeof sF<"u"?sF.exports=$():typeof define==="function"&&define.amd?define($):function(){var J=D.Base64,X=$();if(X.noConflict=function(){return D.Base64=J,X},D.Meteor)Base64=X;D.Base64=X}()})(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:aF,function(){var D="3.7.8",$=D,J=typeof Buffer==="function",X=typeof TextDecoder==="function"?new TextDecoder:void 0,Y=typeof TextEncoder==="function"?new TextEncoder:void 0,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",U=Array.prototype.slice.call(Q),F=function(g){var i={};return g.forEach(function(HD,ND){return i[HD]=ND}),i}(U),W=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,K=String.fromCharCode.bind(String),q=typeof Uint8Array.from==="function"?Uint8Array.from.bind(Uint8Array):function(g){return new Uint8Array(Array.prototype.slice.call(g,0))},G=function(g){return g.replace(/=/g,"").replace(/[+\/]/g,function(i){return i=="+"?"-":"_"})},Z=function(g){return g.replace(/[^A-Za-z0-9\+\/]/g,"")},H=function(g){var i,HD,ND,PD,g$="",z8=g.length%3;for(var i1=0;i1<g.length;){if((HD=g.charCodeAt(i1++))>255||(ND=g.charCodeAt(i1++))>255||(PD=g.charCodeAt(i1++))>255)throw TypeError("invalid character found");i=HD<<16|ND<<8|PD,g$+=U[i>>18&63]+U[i>>12&63]+U[i>>6&63]+U[i&63]}return z8?g$.slice(0,z8-3)+"===".substring(z8):g$},z=typeof btoa==="function"?function(g){return btoa(g)}:J?function(g){return Buffer.from(g,"binary").toString("base64")}:H,I=J?function(g){return Buffer.from(g).toString("base64")}:function(g){var i=4096,HD=[];for(var ND=0,PD=g.length;ND<PD;ND+=i)HD.push(K.apply(null,g.subarray(ND,ND+i)));return z(HD.join(""))},B=function(g,i){if(i===void 0)i=!1;return i?G(I(g)):I(g)},N=function(g){if(g.length<2){var i=g.charCodeAt(0);return i<128?g:i<2048?K(192|i>>>6)+K(128|i&63):K(224|i>>>12&15)+K(128|i>>>6&63)+K(128|i&63)}else{var i=65536+(g.charCodeAt(0)-55296)*1024+(g.charCodeAt(1)-56320);return K(240|i>>>18&7)+K(128|i>>>12&63)+K(128|i>>>6&63)+K(128|i&63)}},V=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,O=function(g){return g.replace(V,N)},j=J?function(g){return Buffer.from(g,"utf8").toString("base64")}:Y?function(g){return I(Y.encode(g))}:function(g){return z(O(g))},v=function(g,i){if(i===void 0)i=!1;return i?G(j(g)):j(g)},A=function(g){return v(g,!0)},k=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,u=function(g){switch(g.length){case 4:var i=(7&g.charCodeAt(0))<<18|(63&g.charCodeAt(1))<<12|(63&g.charCodeAt(2))<<6|63&g.charCodeAt(3),HD=i-65536;return K((HD>>>10)+55296)+K((HD&1023)+56320);case 3:return K((15&g.charCodeAt(0))<<12|(63&g.charCodeAt(1))<<6|63&g.charCodeAt(2));default:return K((31&g.charCodeAt(0))<<6|63&g.charCodeAt(1))}},_=function(g){return g.replace(k,u)},y=function(g){if(g=g.replace(/\s+/g,""),!W.test(g))throw TypeError("malformed base64.");g+="==".slice(2-(g.length&3));var i,HD,ND,PD=[];for(var g$=0;g$<g.length;)if(i=F[g.charAt(g$++)]<<18|F[g.charAt(g$++)]<<12|(HD=F[g.charAt(g$++)])<<6|(ND=F[g.charAt(g$++)]),HD===64)PD.push(K(i>>16&255));else if(ND===64)PD.push(K(i>>16&255,i>>8&255));else PD.push(K(i>>16&255,i>>8&255,i&255));return PD.join("")},T=typeof atob==="function"?function(g){return atob(Z(g))}:J?function(g){return Buffer.from(g,"base64").toString("binary")}:y,d=J?function(g){return q(Buffer.from(g,"base64"))}:function(g){return q(T(g).split("").map(function(i){return i.charCodeAt(0)}))},c=function(g){return d(o(g))},p=J?function(g){return Buffer.from(g,"base64").toString("utf8")}:X?function(g){return X.decode(d(g))}:function(g){return _(T(g))},o=function(g){return Z(g.replace(/[-_]/g,function(i){return i=="-"?"+":"/"}))},R=function(g){return p(o(g))},w=function(g){if(typeof g!=="string")return!1;var i=g.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(i)||!/[^\s0-9a-zA-Z\-_]/.test(i)},L=function(g){return{value:g,enumerable:!1,writable:!0,configurable:!0}},P=function(){var g=function(i,HD){return Object.defineProperty(String.prototype,i,L(HD))};g("fromBase64",function(){return R(this)}),g("toBase64",function(i){return v(this,i)}),g("toBase64URI",function(){return v(this,!0)}),g("toBase64URL",function(){return v(this,!0)}),g("toUint8Array",function(){return c(this)})},f=function(){var g=function(i,HD){return Object.defineProperty(Uint8Array.prototype,i,L(HD))};g("toBase64",function(i){return B(this,i)}),g("toBase64URI",function(){return B(this,!0)}),g("toBase64URL",function(){return B(this,!0)})},x=function(){P(),f()},s={version:D,VERSION:$,atob:T,atobPolyfill:y,btoa:z,btoaPolyfill:H,fromBase64:R,toBase64:v,encode:v,encodeURI:A,encodeURL:A,utob:O,btou:_,decode:R,isValid:w,fromUint8Array:B,toUint8Array:c,extendString:P,extendUint8Array:f,extendBuiltins:x};return s.Base64={},Object.keys(s).forEach(function(g){return s.Base64[g]=s[g]}),s})});var _R=S((TVD,kR)=>{kR.exports=function($,J){if(J=J.split(":")[0],$=+$,!$)return!1;switch(J){case"http":case"ws":return $!==80;case"https":case"wss":return $!==443;case"ftp":return $!==21;case"gopher":return $!==70;case"file":return!1}return $!==0}});var xR=S((pc)=>{var lc=Object.prototype.hasOwnProperty,dc;function uR(D){try{return decodeURIComponent(D.replace(/\+/g," "))}catch($){return null}}function gR(D){try{return encodeURIComponent(D)}catch($){return null}}function ic(D){var $=/([^=?#&]+)=?([^&]*)/g,J={},X;while(X=$.exec(D)){var Y=uR(X[1]),Q=uR(X[2]);if(Y===null||Q===null||Y in J)continue;J[Y]=Q}return J}function cc(D,$){$=$||"";var J=[],X,Y;if(typeof $!=="string")$="?";for(Y in D)if(lc.call(D,Y)){if(X=D[Y],!X&&(X===null||X===dc||isNaN(X)))X="";if(Y=gR(Y),X=gR(X),Y===null||X===null)continue;J.push(Y+"="+X)}return J.length?$+J.join("&"):""}pc.stringify=cc;pc.parse=ic});var cR=S((bVD,iR)=>{var yR=_R(),WJ=xR(),tc=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,hR=/[\n\r\t]/g,oc=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,mR=/:\d+$/,ac=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,sc=/^[a-zA-Z]:/;function DW(D){return(D?D:"").toString().replace(tc,"")}var eF=[["#","hash"],["?","query"],function($,J){return z6(J.protocol)?$.replace(/\\/g,"/"):$},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],fR={hash:1,query:1};function lR(D){var $;if(typeof window<"u")$=window;else if(typeof global<"u")$=global;else if(typeof self<"u")$=self;else $={};var J=$.location||{};D=D||J;var X={},Y=typeof D,Q;if(D.protocol==="blob:")X=new H6(unescape(D.pathname),{});else if(Y==="string"){X=new H6(D,{});for(Q in fR)delete X[Q]}else if(Y==="object"){for(Q in D){if(Q in fR)continue;X[Q]=D[Q]}if(X.slashes===void 0)X.slashes=oc.test(D.href)}return X}function z6(D){return D==="file:"||D==="ftp:"||D==="http:"||D==="https:"||D==="ws:"||D==="wss:"}function dR(D,$){D=DW(D),D=D.replace(hR,""),$=$||{};var J=ac.exec(D),X=J[1]?J[1].toLowerCase():"",Y=!!J[2],Q=!!J[3],U=0,F;if(Y)if(Q)F=J[2]+J[3]+J[4],U=J[2].length+J[3].length;else F=J[2]+J[4],U=J[2].length;else if(Q)F=J[3]+J[4],U=J[3].length;else F=J[4];if(X==="file:"){if(U>=2)F=F.slice(2)}else if(z6(X))F=J[4];else if(X){if(Y)F=F.slice(2)}else if(U>=2&&z6($.protocol))F=J[4];return{protocol:X,slashes:Y||z6(X),slashesCount:U,rest:F}}function ec(D,$){if(D==="")return $;var J=($||"/").split("/").slice(0,-1).concat(D.split("/")),X=J.length,Y=J[X-1],Q=!1,U=0;while(X--)if(J[X]===".")J.splice(X,1);else if(J[X]==="..")J.splice(X,1),U++;else if(U){if(X===0)Q=!0;J.splice(X,1),U--}if(Q)J.unshift("");if(Y==="."||Y==="..")J.push("");return J.join("/")}function H6(D,$,J){if(D=DW(D),D=D.replace(hR,""),!(this instanceof H6))return new H6(D,$,J);var X,Y,Q,U,F,W,K=eF.slice(),q=typeof $,G=this,Z=0;if(q!=="object"&&q!=="string")J=$,$=null;if(J&&typeof J!=="function")J=WJ.parse;if($=lR($),Y=dR(D||"",$),X=!Y.protocol&&!Y.slashes,G.slashes=Y.slashes||X&&$.slashes,G.protocol=Y.protocol||$.protocol||"",D=Y.rest,Y.protocol==="file:"&&(Y.slashesCount!==2||sc.test(D))||!Y.slashes&&(Y.protocol||Y.slashesCount<2||!z6(G.protocol)))K[3]=[/(.*)/,"pathname"];for(;Z<K.length;Z++){if(U=K[Z],typeof U==="function"){D=U(D,G);continue}if(Q=U[0],W=U[1],Q!==Q)G[W]=D;else if(typeof Q==="string"){if(F=Q==="@"?D.lastIndexOf(Q):D.indexOf(Q),~F)if(typeof U[2]==="number")G[W]=D.slice(0,F),D=D.slice(F+U[2]);else G[W]=D.slice(F),D=D.slice(0,F)}else if(F=Q.exec(D))G[W]=F[1],D=D.slice(0,F.index);if(G[W]=G[W]||(X&&U[3]?$[W]||"":""),U[4])G[W]=G[W].toLowerCase()}if(J)G.query=J(G.query);if(X&&$.slashes&&G.pathname.charAt(0)!=="/"&&(G.pathname!==""||$.pathname!==""))G.pathname=ec(G.pathname,$.pathname);if(G.pathname.charAt(0)!=="/"&&z6(G.protocol))G.pathname="/"+G.pathname;if(!yR(G.port,G.protocol))G.host=G.hostname,G.port="";if(G.username=G.password="",G.auth){if(F=G.auth.indexOf(":"),~F)G.username=G.auth.slice(0,F),G.username=encodeURIComponent(decodeURIComponent(G.username)),G.password=G.auth.slice(F+1),G.password=encodeURIComponent(decodeURIComponent(G.password));else G.username=encodeURIComponent(decodeURIComponent(G.auth));G.auth=G.password?G.username+":"+G.password:G.username}G.origin=G.protocol!=="file:"&&z6(G.protocol)&&G.host?G.protocol+"//"+G.host:"null",G.href=G.toString()}function Dp(D,$,J){var X=this;switch(D){case"query":if(typeof $==="string"&&$.length)$=(J||WJ.parse)($);X[D]=$;break;case"port":if(X[D]=$,!yR($,X.protocol))X.host=X.hostname,X[D]="";else if($)X.host=X.hostname+":"+$;break;case"hostname":if(X[D]=$,X.port)$+=":"+X.port;X.host=$;break;case"host":if(X[D]=$,mR.test($))$=$.split(":"),X.port=$.pop(),X.hostname=$.join(":");else X.hostname=$,X.port="";break;case"protocol":X.protocol=$.toLowerCase(),X.slashes=!J;break;case"pathname":case"hash":if($){var Y=D==="pathname"?"/":"#";X[D]=$.charAt(0)!==Y?Y+$:$}else X[D]=$;break;case"username":case"password":X[D]=encodeURIComponent($);break;case"auth":var Q=$.indexOf(":");if(~Q)X.username=$.slice(0,Q),X.username=encodeURIComponent(decodeURIComponent(X.username)),X.password=$.slice(Q+1),X.password=encodeURIComponent(decodeURIComponent(X.password));else X.username=encodeURIComponent(decodeURIComponent($))}for(var U=0;U<eF.length;U++){var F=eF[U];if(F[4])X[F[1]]=X[F[1]].toLowerCase()}return X.auth=X.password?X.username+":"+X.password:X.username,X.origin=X.protocol!=="file:"&&z6(X.protocol)&&X.host?X.protocol+"//"+X.host:"null",X.href=X.toString(),X}function $p(D){if(!D||typeof D!=="function")D=WJ.stringify;var $,J=this,X=J.host,Y=J.protocol;if(Y&&Y.charAt(Y.length-1)!==":")Y+=":";var Q=Y+(J.protocol&&J.slashes||z6(J.protocol)?"//":"");if(J.username){if(Q+=J.username,J.password)Q+=":"+J.password;Q+="@"}else if(J.password)Q+=":"+J.password,Q+="@";else if(J.protocol!=="file:"&&z6(J.protocol)&&!X&&J.pathname!=="/")Q+="@";if(X[X.length-1]===":"||mR.test(J.hostname)&&!J.port)X+=":";if(Q+=X+J.pathname,$=typeof J.query==="object"?D(J.query):J.query,$)Q+=$.charAt(0)!=="?"?"?"+$:$;if(J.hash)Q+=J.hash;return Q}H6.prototype={set:Dp,toString:$p};H6.extractProtocol=dR;H6.location=lR;H6.trimLeft=DW;H6.qs=WJ;iR.exports=H6});var nR=S((pR)=>{Object.defineProperty(pR,"__esModule",{value:!0});pR.default=Jp;function Jp(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var $=Math.random()*16|0,J=D==="x"?$:$&3|8;return J.toString(16)})}});var qM=S((WM)=>{Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var Yp=CR(),Qp=XW(cR()),KJ=XW(tF()),o1=oF(),Up=XW(nR());function XW(D){return D&&D.__esModule?D:{default:D}}function $W(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$W=function(){return $};var D,$={},J=Object.prototype,X=J.hasOwnProperty,Y=Object.defineProperty||function(R,w,L){R[w]=L.value},Q=typeof Symbol=="function"?Symbol:{},U=Q.iterator||"@@iterator",F=Q.asyncIterator||"@@asyncIterator",W=Q.toStringTag||"@@toStringTag";function K(R,w,L){return Object.defineProperty(R,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[w]}try{K({},"")}catch(R){K=function(L,P,f){return L[P]=f}}function q(R,w,L,P){var f=w&&w.prototype instanceof N?w:N,x=Object.create(f.prototype),s=new p(P||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function G(R,w,L){try{return{type:"normal",arg:R.call(w,L)}}catch(P){return{type:"throw",arg:P}}}$.wrap=q;var Z="suspendedStart",H="suspendedYield",z="executing",I="completed",B={};function N(){}function V(){}function O(){}var j={};K(j,U,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(o([])));A&&A!==J&&X.call(A,U)&&(j=A);var k=O.prototype=N.prototype=Object.create(j);function u(R){["next","throw","return"].forEach(function(w){K(R,w,function(L){return this._invoke(w,L)})})}function _(R,w){function L(f,x,s,g){var i=G(R[f],R,x);if(i.type!=="throw"){var HD=i.arg,ND=HD.value;return ND&&a1(ND)=="object"&&X.call(ND,"__await")?w.resolve(ND.__await).then(function(PD){L("next",PD,s,g)},function(PD){L("throw",PD,s,g)}):w.resolve(ND).then(function(PD){HD.value=PD,s(HD)},function(PD){return L("throw",PD,s,g)})}g(i.arg)}var P;Y(this,"_invoke",{value:function(x,s){function g(){return new w(function(i,HD){L(x,s,i,HD)})}return P=P?P.then(g,g):g()}})}function y(R,w,L){var P=Z;return function(f,x){if(P===z)throw Error("Generator is already running");if(P===I){if(f==="throw")throw x;return{value:D,done:!0}}for(L.method=f,L.arg=x;;){var s=L.delegate;if(s){var g=T(s,L);if(g){if(g===B)continue;return g}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(P===Z)throw P=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);P=z;var i=G(R,w,L);if(i.type==="normal"){if(P=L.done?I:H,i.arg===B)continue;return{value:i.arg,done:L.done}}i.type==="throw"&&(P=I,L.method="throw",L.arg=i.arg)}}}function T(R,w){var L=w.method,P=R.iterator[L];if(P===D)return w.delegate=null,L==="throw"&&R.iterator.return&&(w.method="return",w.arg=D,T(R,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=TypeError("The iterator does not provide a '"+L+"' method")),B;var f=G(P,R.iterator,w.arg);if(f.type==="throw")return w.method="throw",w.arg=f.arg,w.delegate=null,B;var x=f.arg;return x?x.done?(w[R.resultName]=x.value,w.next=R.nextLoc,w.method!=="return"&&(w.method="next",w.arg=D),w.delegate=null,B):x:(w.method="throw",w.arg=TypeError("iterator result is not an object"),w.delegate=null,B)}function d(R){var w={tryLoc:R[0]};1 in R&&(w.catchLoc=R[1]),2 in R&&(w.finallyLoc=R[2],w.afterLoc=R[3]),this.tryEntries.push(w)}function c(R){var w=R.completion||{};w.type="normal",delete w.arg,R.completion=w}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(d,this),this.reset(!0)}function o(R){if(R||R===""){var w=R[U];if(w)return w.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,P=function f(){for(;++L<R.length;)if(X.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return P.next=P}}throw TypeError(a1(R)+" is not iterable")}return V.prototype=O,Y(k,"constructor",{value:O,configurable:!0}),Y(O,"constructor",{value:V,configurable:!0}),V.displayName=K(O,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var w=typeof R=="function"&&R.constructor;return!!w&&(w===V||(w.displayName||w.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,W,"GeneratorFunction")),R.prototype=Object.create(k),R},$.awrap=function(R){return{__await:R}},u(_.prototype),K(_.prototype,F,function(){return this}),$.AsyncIterator=_,$.async=function(R,w,L,P,f){f===void 0&&(f=Promise);var x=new _(q(R,w,L,P),f);return $.isGeneratorFunction(w)?x:x.next().then(function(s){return s.done?s.value:x.next()})},u(k),K(k,W,"Generator"),K(k,U,function(){return this}),K(k,"toString",function(){return"[object Generator]"}),$.keys=function(R){var w=Object(R),L=[];for(var P in w)L.push(P);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in w)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=o,p.prototype={constructor:p,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!w)for(var L in this)L.charAt(0)==="t"&&X.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var L=this;function P(HD,ND){return s.type="throw",s.arg=w,L.next=HD,ND&&(L.method="next",L.arg=D),!!ND}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return P("end");if(x.tryLoc<=this.prev){var g=X.call(x,"catchLoc"),i=X.call(x,"finallyLoc");if(g&&i){if(this.prev<x.catchLoc)return P(x.catchLoc,!0);if(this.prev<x.finallyLoc)return P(x.finallyLoc)}else if(g){if(this.prev<x.catchLoc)return P(x.catchLoc,!0)}else{if(!i)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return P(x.finallyLoc)}}}},abrupt:function(w,L){for(var P=this.tryEntries.length-1;P>=0;--P){var f=this.tryEntries[P];if(f.tryLoc<=this.prev&&X.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(w==="break"||w==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=w,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,B):this.complete(s)},complete:function(w,L){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&L&&(this.next=L),B},finish:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.finallyLoc===w)return this.complete(P.completion,P.afterLoc),c(P),B}},catch:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.tryLoc===w){var f=P.completion;if(f.type==="throw"){var x=f.arg;c(P)}return x}}throw Error("illegal catch attempt")},delegateYield:function(w,L,P){return this.delegate={iterator:o(w),resultName:L,nextLoc:P},this.method==="next"&&(this.arg=D),B}},$}function rR(D,$,J,X,Y,Q,U){try{var F=D[Q](U),W=F.value}catch(K){J(K);return}if(F.done)$(W);else Promise.resolve(W).then(X,Y)}function Fp(D){return function(){var $=this,J=arguments;return new Promise(function(X,Y){var Q=D.apply($,J);function U(W){rR(Q,X,Y,U,F,"next",W)}function F(W){rR(Q,X,Y,U,F,"throw",W)}U(void 0)})}}function XM(D,$){return qp(D)||Kp(D,$)||YM(D,$)||Wp()}function Wp(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kp(D,$){var J=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(J!=null){var X,Y,Q,U,F=[],W=!0,K=!1;try{if(Q=(J=J.call(D)).next,$===0){if(Object(J)!==J)return;W=!1}else for(;!(W=(X=Q.call(J)).done)&&(F.push(X.value),F.length!==$);W=!0);}catch(q){K=!0,Y=q}finally{try{if(!W&&J.return!=null&&(U=J.return(),Object(U)!==U))return}finally{if(K)throw Y}}return F}}function qp(D){if(Array.isArray(D))return D}function a1(D){return a1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},a1(D)}function Gp(D,$){var J=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!J){if(Array.isArray(D)||(J=YM(D))||$&&D&&typeof D.length==="number"){if(J)D=J;var X=0,Y=function(){};return{s:Y,n:function(){if(X>=D.length)return{done:!0};return{done:!1,value:D[X++]}},e:function(K){throw K},f:Y}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Q=!0,U=!1,F;return{s:function(){J=J.call(D)},n:function(){var K=J.next();return Q=K.done,K},e:function(K){U=!0,F=K},f:function(){try{if(!Q&&J.return!=null)J.return()}finally{if(U)throw F}}}}function YM(D,$){if(!D)return;if(typeof D==="string")return tR(D,$);var J=Object.prototype.toString.call(D).slice(8,-1);if(J==="Object"&&D.constructor)J=D.constructor.name;if(J==="Map"||J==="Set")return Array.from(D);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return tR(D,$)}function tR(D,$){if($==null||$>D.length)$=D.length;for(var J=0,X=Array($);J<$;J++)X[J]=D[J];return X}function oR(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function S8(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?oR(Object(J),!0).forEach(function(X){Zp(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):oR(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function Zp(D,$,J){if($=QM($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function zp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function aR(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,QM(X.key),X)}}function Hp(D,$,J){if($)aR(D.prototype,$);if(J)aR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function QM(D){var $=Ip(D,"string");return a1($)=="symbol"?$:$+""}function Ip(D,$){if(a1(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(a1(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var qJ="tus-v1",GJ="ietf-draft-03",X5="ietf-draft-05",Bp={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:FM,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1000,3000,5000],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:qJ},UM=function(){function D($,J){if(zp(this,D),"resume"in J)console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead.");this.options=J,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=$,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return Hp(D,[{key:"findPreviousUploads",value:function(){var J=this;return this.options.fingerprint(this.file,this.options).then(function(X){return J._urlStorage.findUploadsByFingerprint(X)})}},{key:"resumeFromPreviousUpload",value:function(J){this.url=J.uploadUrl||null,this._parallelUploadUrls=J.parallelUploadUrls||null,this._urlStorageKey=J.urlStorageKey}},{key:"start",value:function(){var J=this,X=this.file;if(!X){this._emitError(Error("tus: no file or stream to upload provided"));return}if(![qJ,GJ,X5].includes(this.options.protocol)){this._emitError(Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(Error("tus: neither an endpoint or an upload URL is provided"));return}var Y=this.options.retryDelays;if(Y!=null&&Object.prototype.toString.call(Y)!=="[object Array]"){this._emitError(Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var Q=0,U=["uploadUrl","uploadSize","uploadLengthDeferred"];Q<U.length;Q++){var F=U[Q];if(this.options[F]){this._emitError(Error("tus: cannot use the ".concat(F," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(X,this.options).then(function(W){if(W==null)(0,o1.log)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.");else(0,o1.log)("Calculated fingerprint: ".concat(W));if(J._fingerprint=W,J._source)return J._source;return J.options.fileReader.openFile(X,J.options.chunkSize)}).then(function(W){if(J._source=W,J.options.uploadLengthDeferred)J._size=null;else if(J.options.uploadSize!=null){if(J._size=Number(J.options.uploadSize),Number.isNaN(J._size)){J._emitError(Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(J._size=J._source.size,J._size==null){J._emitError(Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}if(J.options.parallelUploads>1||J._parallelUploadUrls!=null)J._startParallelUpload();else J._startSingleUpload()}).catch(function(W){J._emitError(W)})}},{key:"_startParallelUpload",value:function(){var J,X=this,Y=this._size,Q=0;this._parallelUploads=[];var U=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,F=(J=this.options.parallelUploadBoundaries)!==null&&J!==void 0?J:Np(this._source.size,U);if(this._parallelUploadUrls)F.forEach(function(q,G){q.uploadUrl=X._parallelUploadUrls[G]||null});this._parallelUploadUrls=Array(F.length);var W=F.map(function(q,G){var Z=0;return X._source.slice(q.start,q.end).then(function(H){var z=H.value;return new Promise(function(I,B){var N=S8(S8({},X.options),{},{uploadUrl:q.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:X.options.metadataForPartialUploads,headers:S8(S8({},X.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:I,onError:B,onProgress:function(j){Q=Q-Z+j,Z=j,X._emitProgress(Q,Y)},onUploadUrlAvailable:function(){if(X._parallelUploadUrls[G]=V.url,X._parallelUploadUrls.filter(function(j){return Boolean(j)}).length===F.length)X._saveUploadInUrlStorage()}}),V=new D(z,N);V.start(),X._parallelUploads.push(V)})})}),K;Promise.all(W).then(function(){K=X._openRequest("POST",X.options.endpoint),K.setHeader("Upload-Concat","final;".concat(X._parallelUploadUrls.join(" ")));var q=sR(X.options.metadata);if(q!=="")K.setHeader("Upload-Metadata",q);return X._sendRequest(K,null)}).then(function(q){if(!C8(q.getStatus(),200)){X._emitHttpError(K,q,"tus: unexpected response while creating upload");return}var G=q.getHeader("Location");if(G==null){X._emitHttpError(K,q,"tus: invalid or missing Location header");return}X.url=JM(X.options.endpoint,G),(0,o1.log)("Created upload at ".concat(X.url)),X._emitSuccess(q)}).catch(function(q){X._emitError(q)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){(0,o1.log)("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){(0,o1.log)("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}(0,o1.log)("Creating a new upload"),this._createUpload()}},{key:"abort",value:function(J){var X=this;if(this._parallelUploads!=null){var Y=Gp(this._parallelUploads),Q;try{for(Y.s();!(Q=Y.n()).done;){var U=Q.value;U.abort(J)}}catch(F){Y.e(F)}finally{Y.f()}}if(this._req!==null)this._req.abort();if(this._aborted=!0,this._retryTimeout!=null)clearTimeout(this._retryTimeout),this._retryTimeout=null;if(!J||this.url==null)return Promise.resolve();return D.terminate(this.url,this.options).then(function(){return X._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(J,X,Y,Q){this._emitError(new KJ.default(Y,Q,J,X))}},{key:"_emitError",value:function(J){var X=this;if(this._aborted)return;if(this.options.retryDelays!=null){var Y=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(Y)this._retryAttempt=0;if($M(J,this._retryAttempt,this.options)){var Q=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){X.start()},Q);return}}if(typeof this.options.onError==="function")this.options.onError(J);else throw J}},{key:"_emitSuccess",value:function(J){if(this.options.removeFingerprintOnSuccess)this._removeFromUrlStorage();if(typeof this.options.onSuccess==="function")this.options.onSuccess({lastResponse:J})}},{key:"_emitProgress",value:function(J,X){if(typeof this.options.onProgress==="function")this.options.onProgress(J,X)}},{key:"_emitChunkComplete",value:function(J,X,Y){if(typeof this.options.onChunkComplete==="function")this.options.onChunkComplete(J,X,Y)}},{key:"_createUpload",value:function(){var J=this;if(!this.options.endpoint){this._emitError(Error("tus: unable to create upload because no endpoint is provided"));return}var X=this._openRequest("POST",this.options.endpoint);if(this.options.uploadLengthDeferred)X.setHeader("Upload-Defer-Length","1");else X.setHeader("Upload-Length","".concat(this._size));var Y=sR(this.options.metadata);if(Y!=="")X.setHeader("Upload-Metadata",Y);var Q;if(this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred)this._offset=0,Q=this._addChunkToRequest(X);else{if(this.options.protocol===GJ||this.options.protocol===X5)X.setHeader("Upload-Complete","?0");Q=this._sendRequest(X,null)}Q.then(function(U){if(!C8(U.getStatus(),200)){J._emitHttpError(X,U,"tus: unexpected response while creating upload");return}var F=U.getHeader("Location");if(F==null){J._emitHttpError(X,U,"tus: invalid or missing Location header");return}if(J.url=JM(J.options.endpoint,F),(0,o1.log)("Created upload at ".concat(J.url)),typeof J.options.onUploadUrlAvailable==="function")J.options.onUploadUrlAvailable();if(J._size===0){J._emitSuccess(U),J._source.close();return}J._saveUploadInUrlStorage().then(function(){if(J.options.uploadDataDuringCreation)J._handleUploadResponse(X,U);else J._offset=0,J._performUpload()})}).catch(function(U){J._emitHttpError(X,null,"tus: failed to create upload",U)})}},{key:"_resumeUpload",value:function(){var J=this,X=this._openRequest("HEAD",this.url),Y=this._sendRequest(X,null);Y.then(function(Q){var U=Q.getStatus();if(!C8(U,200)){if(U===423){J._emitHttpError(X,Q,"tus: upload is currently locked; retry later");return}if(C8(U,400))J._removeFromUrlStorage();if(!J.options.endpoint){J._emitHttpError(X,Q,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}J.url=null,J._createUpload();return}var F=Number.parseInt(Q.getHeader("Upload-Offset"),10);if(Number.isNaN(F)){J._emitHttpError(X,Q,"tus: invalid or missing offset value");return}var W=Number.parseInt(Q.getHeader("Upload-Length"),10);if(Number.isNaN(W)&&!J.options.uploadLengthDeferred&&J.options.protocol===qJ){J._emitHttpError(X,Q,"tus: invalid or missing length value");return}if(typeof J.options.onUploadUrlAvailable==="function")J.options.onUploadUrlAvailable();J._saveUploadInUrlStorage().then(function(){if(F===W){J._emitProgress(W,W),J._emitSuccess(Q);return}J._offset=F,J._performUpload()})}).catch(function(Q){J._emitHttpError(X,null,"tus: failed to resume upload",Q)})}},{key:"_performUpload",value:function(){var J=this;if(this._aborted)return;var X;if(this.options.overridePatchMethod)X=this._openRequest("POST",this.url),X.setHeader("X-HTTP-Method-Override","PATCH");else X=this._openRequest("PATCH",this.url);X.setHeader("Upload-Offset","".concat(this._offset));var Y=this._addChunkToRequest(X);Y.then(function(Q){if(!C8(Q.getStatus(),200)){J._emitHttpError(X,Q,"tus: unexpected response while uploading chunk");return}J._handleUploadResponse(X,Q)}).catch(function(Q){if(J._aborted)return;J._emitHttpError(X,null,"tus: failed to upload chunk at offset ".concat(J._offset),Q)})}},{key:"_addChunkToRequest",value:function(J){var X=this,Y=this._offset,Q=this._offset+this.options.chunkSize;if(J.setProgressHandler(function(U){X._emitProgress(Y+U,X._size)}),this.options.protocol===qJ)J.setHeader("Content-Type","application/offset+octet-stream");else if(this.options.protocol===X5)J.setHeader("Content-Type","application/partial-upload");if((Q===Number.POSITIVE_INFINITY||Q>this._size)&&!this.options.uploadLengthDeferred)Q=this._size;return this._source.slice(Y,Q).then(function(U){var{value:F,done:W}=U,K=F!==null&&F!==void 0&&F.size?F.size:0;if(X.options.uploadLengthDeferred&&W)X._size=X._offset+K,J.setHeader("Upload-Length","".concat(X._size));var q=X._offset+K;if(!X.options.uploadLengthDeferred&&W&&q!==X._size)return Promise.reject(Error("upload was configured with a size of ".concat(X._size," bytes, but the source is done after ").concat(q," bytes")));if(F===null)return X._sendRequest(J);if(X.options.protocol===GJ||X.options.protocol===X5)J.setHeader("Upload-Complete",W?"?1":"?0");return X._emitProgress(X._offset,X._size),X._sendRequest(J,F)})}},{key:"_handleUploadResponse",value:function(J,X){var Y=Number.parseInt(X.getHeader("Upload-Offset"),10);if(Number.isNaN(Y)){this._emitHttpError(J,X,"tus: invalid or missing offset value");return}if(this._emitProgress(Y,this._size),this._emitChunkComplete(Y-this._offset,Y,this._size),this._offset=Y,Y===this._size){this._emitSuccess(X),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(J,X){var Y=eR(J,X,this.options);return this._req=Y,Y}},{key:"_removeFromUrlStorage",value:function(){var J=this;if(!this._urlStorageKey)return;this._urlStorage.removeUpload(this._urlStorageKey).catch(function(X){J._emitError(X)}),this._urlStorageKey=null}},{key:"_saveUploadInUrlStorage",value:function(){var J=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var X={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};if(this._parallelUploads)X.parallelUploadUrls=this._parallelUploadUrls;else X.uploadUrl=this.url;return this._urlStorage.addUpload(this._fingerprint,X).then(function(Y){J._urlStorageKey=Y})}},{key:"_sendRequest",value:function(J){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return DM(J,X,this.options)}}],[{key:"terminate",value:function(J){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=eR("DELETE",J,X);return DM(Y,null,X).then(function(Q){if(Q.getStatus()===204)return;throw new KJ.default("tus: unexpected response while terminating upload",null,Y,Q)}).catch(function(Q){if(!(Q instanceof KJ.default))Q=new KJ.default("tus: failed to terminate upload",Q,Y,null);if(!$M(Q,0,X))throw Q;var U=X.retryDelays[0],F=X.retryDelays.slice(1),W=S8(S8({},X),{},{retryDelays:F});return new Promise(function(K){return setTimeout(K,U)}).then(function(){return D.terminate(J,W)})})}}])}();function sR(D){return Object.entries(D).map(function($){var J=XM($,2),X=J[0],Y=J[1];return"".concat(X," ").concat(Yp.Base64.encode(String(Y)))}).join(",")}function C8(D,$){return D>=$&&D<$+100}function eR(D,$,J){var X=J.httpStack.createRequest(D,$);if(J.protocol===GJ)X.setHeader("Upload-Draft-Interop-Version","5");else if(J.protocol===X5)X.setHeader("Upload-Draft-Interop-Version","6");else X.setHeader("Tus-Resumable","1.0.0");var Y=J.headers||{};for(var Q=0,U=Object.entries(Y);Q<U.length;Q++){var F=XM(U[Q],2),W=F[0],K=F[1];X.setHeader(W,K)}if(J.addRequestId){var q=(0,Up.default)();X.setHeader("X-Request-ID",q)}return X}function DM(D,$,J){return JW.apply(this,arguments)}function JW(){return JW=Fp($W().mark(function D($,J,X){var Y;return $W().wrap(function(U){while(!0)switch(U.prev=U.next){case 0:if(typeof X.onBeforeRequest!=="function"){U.next=3;break}return U.next=3,X.onBeforeRequest($);case 3:return U.next=5,$.send(J);case 5:if(Y=U.sent,typeof X.onAfterResponse!=="function"){U.next=9;break}return U.next=9,X.onAfterResponse($,Y);case 9:return U.abrupt("return",Y);case 10:case"end":return U.stop()}},D)})),JW.apply(this,arguments)}function Op(){var D=!0;if(typeof navigator<"u"&&navigator.onLine===!1)D=!1;return D}function $M(D,$,J){if(J.retryDelays==null||$>=J.retryDelays.length||D.originalRequest==null)return!1;if(J&&typeof J.onShouldRetry==="function")return J.onShouldRetry(D,$,J);return FM(D)}function FM(D){var $=D.originalResponse?D.originalResponse.getStatus():0;return(!C8($,400)||$===409||$===423)&&Op()}function JM(D,$){return new Qp.default($,D).toString()}function Np(D,$){var J=Math.floor(D/$),X=[];for(var Y=0;Y<$;Y++)X.push({start:J*Y,end:J*(Y+1)});return X[$-1].end=D,X}UM.defaultOptions=Bp;var CVD=WM.default=UM});var ZM=S((_VD,GM)=>{var I6=(D)=>D!==null&&typeof D==="object"&&typeof D.pipe==="function";I6.writable=(D)=>I6(D)&&D.writable!==!1&&typeof D._write==="function"&&typeof D._writableState==="object";I6.readable=(D)=>I6(D)&&D.readable!==!1&&typeof D._read==="function"&&typeof D._readableState==="object";I6.duplex=(D)=>I6.writable(D)&&I6.readable(D);I6.transform=(D)=>I6.duplex(D)&&typeof D._transform==="function";GM.exports=I6});var BM=S((HM)=>{Object.defineProperty(HM,"__esModule",{value:!0});HM.default=void 0;function Y5(D){return Y5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},Y5(D)}function Vp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function zM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,jp(X.key),X)}}function wp(D,$,J){if($)zM(D.prototype,$);if(J)zM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function jp(D){var $=Lp(D,"string");return Y5($)=="symbol"?$:$+""}function Lp(D,$){if(Y5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(Y5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var uVD=HM.default=function(){function D($){Vp(this,D),this._buffer=$,this.size=$.length}return wp(D,[{key:"slice",value:function(J,X){var Y=this._buffer.slice(J,X);Y.size=Y.length;var Q=X>=this.size;return Promise.resolve({value:Y,done:Q})}},{key:"close",value:function(){}}])}()});var jM=S((wM)=>{Object.defineProperty(wM,"__esModule",{value:!0});wM.default=Tp;var VM=XD("fs");function s1(D){return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},s1(D)}function YW(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */YW=function(){return $};var D,$={},J=Object.prototype,X=J.hasOwnProperty,Y=Object.defineProperty||function(R,w,L){R[w]=L.value},Q=typeof Symbol=="function"?Symbol:{},U=Q.iterator||"@@iterator",F=Q.asyncIterator||"@@asyncIterator",W=Q.toStringTag||"@@toStringTag";function K(R,w,L){return Object.defineProperty(R,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[w]}try{K({},"")}catch(R){K=function(L,P,f){return L[P]=f}}function q(R,w,L,P){var f=w&&w.prototype instanceof N?w:N,x=Object.create(f.prototype),s=new p(P||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function G(R,w,L){try{return{type:"normal",arg:R.call(w,L)}}catch(P){return{type:"throw",arg:P}}}$.wrap=q;var Z="suspendedStart",H="suspendedYield",z="executing",I="completed",B={};function N(){}function V(){}function O(){}var j={};K(j,U,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(o([])));A&&A!==J&&X.call(A,U)&&(j=A);var k=O.prototype=N.prototype=Object.create(j);function u(R){["next","throw","return"].forEach(function(w){K(R,w,function(L){return this._invoke(w,L)})})}function _(R,w){function L(f,x,s,g){var i=G(R[f],R,x);if(i.type!=="throw"){var HD=i.arg,ND=HD.value;return ND&&s1(ND)=="object"&&X.call(ND,"__await")?w.resolve(ND.__await).then(function(PD){L("next",PD,s,g)},function(PD){L("throw",PD,s,g)}):w.resolve(ND).then(function(PD){HD.value=PD,s(HD)},function(PD){return L("throw",PD,s,g)})}g(i.arg)}var P;Y(this,"_invoke",{value:function(x,s){function g(){return new w(function(i,HD){L(x,s,i,HD)})}return P=P?P.then(g,g):g()}})}function y(R,w,L){var P=Z;return function(f,x){if(P===z)throw Error("Generator is already running");if(P===I){if(f==="throw")throw x;return{value:D,done:!0}}for(L.method=f,L.arg=x;;){var s=L.delegate;if(s){var g=T(s,L);if(g){if(g===B)continue;return g}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(P===Z)throw P=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);P=z;var i=G(R,w,L);if(i.type==="normal"){if(P=L.done?I:H,i.arg===B)continue;return{value:i.arg,done:L.done}}i.type==="throw"&&(P=I,L.method="throw",L.arg=i.arg)}}}function T(R,w){var L=w.method,P=R.iterator[L];if(P===D)return w.delegate=null,L==="throw"&&R.iterator.return&&(w.method="return",w.arg=D,T(R,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=TypeError("The iterator does not provide a '"+L+"' method")),B;var f=G(P,R.iterator,w.arg);if(f.type==="throw")return w.method="throw",w.arg=f.arg,w.delegate=null,B;var x=f.arg;return x?x.done?(w[R.resultName]=x.value,w.next=R.nextLoc,w.method!=="return"&&(w.method="next",w.arg=D),w.delegate=null,B):x:(w.method="throw",w.arg=TypeError("iterator result is not an object"),w.delegate=null,B)}function d(R){var w={tryLoc:R[0]};1 in R&&(w.catchLoc=R[1]),2 in R&&(w.finallyLoc=R[2],w.afterLoc=R[3]),this.tryEntries.push(w)}function c(R){var w=R.completion||{};w.type="normal",delete w.arg,R.completion=w}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(d,this),this.reset(!0)}function o(R){if(R||R===""){var w=R[U];if(w)return w.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,P=function f(){for(;++L<R.length;)if(X.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return P.next=P}}throw TypeError(s1(R)+" is not iterable")}return V.prototype=O,Y(k,"constructor",{value:O,configurable:!0}),Y(O,"constructor",{value:V,configurable:!0}),V.displayName=K(O,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var w=typeof R=="function"&&R.constructor;return!!w&&(w===V||(w.displayName||w.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,W,"GeneratorFunction")),R.prototype=Object.create(k),R},$.awrap=function(R){return{__await:R}},u(_.prototype),K(_.prototype,F,function(){return this}),$.AsyncIterator=_,$.async=function(R,w,L,P,f){f===void 0&&(f=Promise);var x=new _(q(R,w,L,P),f);return $.isGeneratorFunction(w)?x:x.next().then(function(s){return s.done?s.value:x.next()})},u(k),K(k,W,"Generator"),K(k,U,function(){return this}),K(k,"toString",function(){return"[object Generator]"}),$.keys=function(R){var w=Object(R),L=[];for(var P in w)L.push(P);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in w)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=o,p.prototype={constructor:p,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!w)for(var L in this)L.charAt(0)==="t"&&X.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var L=this;function P(HD,ND){return s.type="throw",s.arg=w,L.next=HD,ND&&(L.method="next",L.arg=D),!!ND}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return P("end");if(x.tryLoc<=this.prev){var g=X.call(x,"catchLoc"),i=X.call(x,"finallyLoc");if(g&&i){if(this.prev<x.catchLoc)return P(x.catchLoc,!0);if(this.prev<x.finallyLoc)return P(x.finallyLoc)}else if(g){if(this.prev<x.catchLoc)return P(x.catchLoc,!0)}else{if(!i)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return P(x.finallyLoc)}}}},abrupt:function(w,L){for(var P=this.tryEntries.length-1;P>=0;--P){var f=this.tryEntries[P];if(f.tryLoc<=this.prev&&X.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(w==="break"||w==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=w,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,B):this.complete(s)},complete:function(w,L){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&L&&(this.next=L),B},finish:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.finallyLoc===w)return this.complete(P.completion,P.afterLoc),c(P),B}},catch:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.tryLoc===w){var f=P.completion;if(f.type==="throw"){var x=f.arg;c(P)}return x}}throw Error("illegal catch attempt")},delegateYield:function(w,L,P){return this.delegate={iterator:o(w),resultName:L,nextLoc:P},this.method==="next"&&(this.arg=D),B}},$}function Rp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function OM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,Ap(X.key),X)}}function Mp(D,$,J){if($)OM(D.prototype,$);if(J)OM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Ap(D){var $=vp(D,"string");return s1($)=="symbol"?$:$+""}function vp(D,$){if(s1(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(s1(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function NM(D,$,J,X,Y,Q,U){try{var F=D[Q](U),W=F.value}catch(K){J(K);return}if(F.done)$(W);else Promise.resolve(W).then(X,Y)}function Ep(D){return function(){var $=this,J=arguments;return new Promise(function(X,Y){var Q=D.apply($,J);function U(W){NM(Q,X,Y,U,F,"next",W)}function F(W){NM(Q,X,Y,U,F,"throw",W)}U(void 0)})}}function Tp(D){return QW.apply(this,arguments)}function QW(){return QW=Ep(YW().mark(function D($){var J,X,Y,Q,U,F,W;return YW().wrap(function(q){while(!0)switch(q.prev=q.next){case 0:return X=$.path.toString(),q.next=3,VM.promises.stat(X);case 3:return Y=q.sent,Q=Y.size,U=(J=$.start)!==null&&J!==void 0?J:0,F=Number.isFinite($.end)?$.end+1:Q,W=F-U,q.abrupt("return",new Pp($,X,W));case 9:case"end":return q.stop()}},D)})),QW.apply(this,arguments)}var Pp=function(){function D($,J,X){Rp(this,D),this._stream=$,this._path=J,this.size=X}return Mp(D,[{key:"slice",value:function(J,X){var Y,Q=(Y=this._stream.start)!==null&&Y!==void 0?Y:0,U=(0,VM.createReadStream)(this._path,{start:Q+J,end:Q+X-1,autoClose:!0});U.size=Math.min(X-J,this.size);var F=U.size>=this.size;return Promise.resolve({value:U,done:F})}},{key:"close",value:function(){this._stream.destroy()}}])}()});var FW=S((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.default=void 0;function e1(D){return e1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},e1(D)}function Q5(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q5=function(){return $};var D,$={},J=Object.prototype,X=J.hasOwnProperty,Y=Object.defineProperty||function(R,w,L){R[w]=L.value},Q=typeof Symbol=="function"?Symbol:{},U=Q.iterator||"@@iterator",F=Q.asyncIterator||"@@asyncIterator",W=Q.toStringTag||"@@toStringTag";function K(R,w,L){return Object.defineProperty(R,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),R[w]}try{K({},"")}catch(R){K=function(L,P,f){return L[P]=f}}function q(R,w,L,P){var f=w&&w.prototype instanceof N?w:N,x=Object.create(f.prototype),s=new p(P||[]);return Y(x,"_invoke",{value:y(R,L,s)}),x}function G(R,w,L){try{return{type:"normal",arg:R.call(w,L)}}catch(P){return{type:"throw",arg:P}}}$.wrap=q;var Z="suspendedStart",H="suspendedYield",z="executing",I="completed",B={};function N(){}function V(){}function O(){}var j={};K(j,U,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(o([])));A&&A!==J&&X.call(A,U)&&(j=A);var k=O.prototype=N.prototype=Object.create(j);function u(R){["next","throw","return"].forEach(function(w){K(R,w,function(L){return this._invoke(w,L)})})}function _(R,w){function L(f,x,s,g){var i=G(R[f],R,x);if(i.type!=="throw"){var HD=i.arg,ND=HD.value;return ND&&e1(ND)=="object"&&X.call(ND,"__await")?w.resolve(ND.__await).then(function(PD){L("next",PD,s,g)},function(PD){L("throw",PD,s,g)}):w.resolve(ND).then(function(PD){HD.value=PD,s(HD)},function(PD){return L("throw",PD,s,g)})}g(i.arg)}var P;Y(this,"_invoke",{value:function(x,s){function g(){return new w(function(i,HD){L(x,s,i,HD)})}return P=P?P.then(g,g):g()}})}function y(R,w,L){var P=Z;return function(f,x){if(P===z)throw Error("Generator is already running");if(P===I){if(f==="throw")throw x;return{value:D,done:!0}}for(L.method=f,L.arg=x;;){var s=L.delegate;if(s){var g=T(s,L);if(g){if(g===B)continue;return g}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(P===Z)throw P=I,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);P=z;var i=G(R,w,L);if(i.type==="normal"){if(P=L.done?I:H,i.arg===B)continue;return{value:i.arg,done:L.done}}i.type==="throw"&&(P=I,L.method="throw",L.arg=i.arg)}}}function T(R,w){var L=w.method,P=R.iterator[L];if(P===D)return w.delegate=null,L==="throw"&&R.iterator.return&&(w.method="return",w.arg=D,T(R,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=TypeError("The iterator does not provide a '"+L+"' method")),B;var f=G(P,R.iterator,w.arg);if(f.type==="throw")return w.method="throw",w.arg=f.arg,w.delegate=null,B;var x=f.arg;return x?x.done?(w[R.resultName]=x.value,w.next=R.nextLoc,w.method!=="return"&&(w.method="next",w.arg=D),w.delegate=null,B):x:(w.method="throw",w.arg=TypeError("iterator result is not an object"),w.delegate=null,B)}function d(R){var w={tryLoc:R[0]};1 in R&&(w.catchLoc=R[1]),2 in R&&(w.finallyLoc=R[2],w.afterLoc=R[3]),this.tryEntries.push(w)}function c(R){var w=R.completion||{};w.type="normal",delete w.arg,R.completion=w}function p(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(d,this),this.reset(!0)}function o(R){if(R||R===""){var w=R[U];if(w)return w.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var L=-1,P=function f(){for(;++L<R.length;)if(X.call(R,L))return f.value=R[L],f.done=!1,f;return f.value=D,f.done=!0,f};return P.next=P}}throw TypeError(e1(R)+" is not iterable")}return V.prototype=O,Y(k,"constructor",{value:O,configurable:!0}),Y(O,"constructor",{value:V,configurable:!0}),V.displayName=K(O,W,"GeneratorFunction"),$.isGeneratorFunction=function(R){var w=typeof R=="function"&&R.constructor;return!!w&&(w===V||(w.displayName||w.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,W,"GeneratorFunction")),R.prototype=Object.create(k),R},$.awrap=function(R){return{__await:R}},u(_.prototype),K(_.prototype,F,function(){return this}),$.AsyncIterator=_,$.async=function(R,w,L,P,f){f===void 0&&(f=Promise);var x=new _(q(R,w,L,P),f);return $.isGeneratorFunction(w)?x:x.next().then(function(s){return s.done?s.value:x.next()})},u(k),K(k,W,"Generator"),K(k,U,function(){return this}),K(k,"toString",function(){return"[object Generator]"}),$.keys=function(R){var w=Object(R),L=[];for(var P in w)L.push(P);return L.reverse(),function f(){for(;L.length;){var x=L.pop();if(x in w)return f.value=x,f.done=!1,f}return f.done=!0,f}},$.values=o,p.prototype={constructor:p,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!w)for(var L in this)L.charAt(0)==="t"&&X.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=D)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var L=this;function P(HD,ND){return s.type="throw",s.arg=w,L.next=HD,ND&&(L.method="next",L.arg=D),!!ND}for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f],s=x.completion;if(x.tryLoc==="root")return P("end");if(x.tryLoc<=this.prev){var g=X.call(x,"catchLoc"),i=X.call(x,"finallyLoc");if(g&&i){if(this.prev<x.catchLoc)return P(x.catchLoc,!0);if(this.prev<x.finallyLoc)return P(x.finallyLoc)}else if(g){if(this.prev<x.catchLoc)return P(x.catchLoc,!0)}else{if(!i)throw Error("try statement without catch or finally");if(this.prev<x.finallyLoc)return P(x.finallyLoc)}}}},abrupt:function(w,L){for(var P=this.tryEntries.length-1;P>=0;--P){var f=this.tryEntries[P];if(f.tryLoc<=this.prev&&X.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var x=f;break}}x&&(w==="break"||w==="continue")&&x.tryLoc<=L&&L<=x.finallyLoc&&(x=null);var s=x?x.completion:{};return s.type=w,s.arg=L,x?(this.method="next",this.next=x.finallyLoc,B):this.complete(s)},complete:function(w,L){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&L&&(this.next=L),B},finish:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.finallyLoc===w)return this.complete(P.completion,P.afterLoc),c(P),B}},catch:function(w){for(var L=this.tryEntries.length-1;L>=0;--L){var P=this.tryEntries[L];if(P.tryLoc===w){var f=P.completion;if(f.type==="throw"){var x=f.arg;c(P)}return x}}throw Error("illegal catch attempt")},delegateYield:function(w,L,P){return this.delegate={iterator:o(w),resultName:L,nextLoc:P},this.method==="next"&&(this.arg=D),B}},$}function Sp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function LM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,kp(X.key),X)}}function Cp(D,$,J){if($)LM(D.prototype,$);if(J)LM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function kp(D){var $=_p(D,"string");return e1($)=="symbol"?$:$+""}function _p(D,$){if(e1(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(e1(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function RM(D,$,J,X,Y,Q,U){try{var F=D[Q](U),W=F.value}catch(K){J(K);return}if(F.done)$(W);else Promise.resolve(W).then(X,Y)}function MM(D){return function(){var $=this,J=arguments;return new Promise(function(X,Y){var Q=D.apply($,J);function U(W){RM(Q,X,Y,U,F,"next",W)}function F(W){RM(Q,X,Y,U,F,"throw",W)}U(void 0)})}}function up(D,$){return UW.apply(this,arguments)}function UW(){return UW=MM(Q5().mark(function D($,J){return Q5().wrap(function(Y){while(!0)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",new Promise(function(Q,U){var F=function(q){$.off("readable",W),U(q)},W=function K(){var q=$.read(J);if(q!==null)$.off("error",F),$.off("readable",K),Q(q)};$.once("error",F),$.on("readable",W)}));case 1:case"end":return Y.stop()}},D)})),UW.apply(this,arguments)}var fVD=AM.default=function(){function D($){var J=this;Sp(this,D),this._stream=$,this.size=null,this._buf=Buffer.alloc(0),this._bufPos=0,this._ended=!1,this._error=null,$.pause(),$.on("end",function(){J._ended=!0}),$.on("error",function(X){J._error=X})}return Cp(D,[{key:"slice",value:function(){var $=MM(Q5().mark(function X(Y,Q){var U,F,W,K,q;return Q5().wrap(function(Z){while(!0)switch(Z.prev=Z.next){case 0:if(!(Y<this._bufPos)){Z.next=2;break}throw Error("cannot slice from position which we already seeked away");case 2:if(!(Y>this._bufPos+this._buf.length)){Z.next=4;break}throw Error("slice start is outside of buffer (currently not implemented)");case 4:if(!this._error){Z.next=6;break}throw this._error;case 6:if(Y<this._bufPos+this._buf.length)F=Y-this._bufPos,W=Math.min(this._buf.length,Q-this._bufPos),U=this._buf.slice(F,W);else U=Buffer.alloc(0);if(!this._ended){Z.next=10;break}return U.size=U.length,Z.abrupt("return",{value:U,done:!0});case 10:if(K=Q-Y,!(K>U.length)){Z.next=16;break}return Z.next=14,up(this._stream,K-U.length);case 14:q=Z.sent,U=Buffer.concat([U,q]);case 16:return this._buf=U,this._bufPos=Y,U.size=U.length,Z.abrupt("return",{value:U,done:this._ended});case 20:case"end":return Z.stop()}},X,this)}));function J(X,Y){return $.apply(this,arguments)}return J}()},{key:"close",value:function(){this._stream.destroy()}}])}()});var bM=S((TM)=>{Object.defineProperty(TM,"__esModule",{value:!0});TM.default=void 0;var gp=XD("fs"),xp=ZJ(ZM()),fp=ZJ(BM()),yp=ZJ(jM()),hp=ZJ(FW());function ZJ(D){return D&&D.__esModule?D:{default:D}}function U5(D){return U5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},U5(D)}function mp(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function EM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,dp(X.key),X)}}function lp(D,$,J){if($)EM(D.prototype,$);if(J)EM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function dp(D){var $=ip(D,"string");return U5($)=="symbol"?$:$+""}function ip(D,$){if(U5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(U5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var hVD=TM.default=function(){function D(){mp(this,D)}return lp(D,[{key:"openFile",value:function(J,X){if(Buffer.isBuffer(J))return Promise.resolve(new fp.default(J));if(J instanceof gp.ReadStream&&J.path!=null)return(0,yp.default)(J);if(xp.default.readable(J)){if(X=Number(X),!Number.isFinite(X))return Promise.reject(Error("cannot create source for stream without a finite value for the `chunkSize` option; specify a chunkSize to control the memory consumption"));return Promise.resolve(new hp.default(J))}return Promise.reject(Error("source object may only be an instance of Buffer or Readable in this environment"))}}])}()});var uM=S((_M)=>{Object.defineProperty(_M,"__esModule",{value:!0});_M.default=np;var cp=XD("crypto"),SM=kM(XD("fs")),pp=kM(XD("path"));function CM(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(CM=function(X){return X?J:$})(D)}function kM(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=CM($);if(J&&J.has(D))return J.get(D);var X={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in D)if(Q!=="default"&&{}.hasOwnProperty.call(D,Q)){var U=Y?Object.getOwnPropertyDescriptor(D,Q):null;U&&(U.get||U.set)?Object.defineProperty(X,Q,U):X[Q]=D[Q]}return X.default=D,J&&J.set(D,X),X}function np(D,$){if(Buffer.isBuffer(D)){var J=65536,X=D.slice(0,Math.min(J,D.length)),Y=(0,cp.createHash)("md5").update(X).digest("hex"),Q=["node-buffer",Y,D.length,$.endpoint].join("-");return Promise.resolve(Q)}if(D instanceof SM.ReadStream&&D.path!=null)return new Promise(function(U,F){var W=pp.resolve(D.path);SM.stat(D.path,function(K,q){if(K){F(K);return}var G=["node-file",W,q.size,q.mtime.getTime(),$.endpoint].join("-");U(G)})});return Promise.resolve(null)}});var hM=S((dVD,yM)=>{var fM="Expected a function",gM=NaN,tp="[object Symbol]",op=/^\s+|\s+$/g,ap=/^[-+]0x[0-9a-f]+$/i,sp=/^0b[01]+$/i,ep=/^0o[0-7]+$/i,Dn=parseInt,$n=typeof global=="object"&&global&&global.Object===Object&&global,Jn=typeof self=="object"&&self&&self.Object===Object&&self,Xn=$n||Jn||Function("return this")(),Yn=Object.prototype,Qn=Yn.toString,Un=Math.max,Fn=Math.min,WW=function(){return Xn.Date.now()};function Wn(D,$,J){var X,Y,Q,U,F,W,K=0,q=!1,G=!1,Z=!0;if(typeof D!="function")throw TypeError(fM);if($=xM($)||0,zJ(J))q=!!J.leading,G="maxWait"in J,Q=G?Un(xM(J.maxWait)||0,$):Q,Z="trailing"in J?!!J.trailing:Z;function H(A){var k=X,u=Y;return X=Y=void 0,K=A,U=D.apply(u,k),U}function z(A){return K=A,F=setTimeout(N,$),q?H(A):U}function I(A){var k=A-W,u=A-K,_=$-k;return G?Fn(_,Q-u):_}function B(A){var k=A-W,u=A-K;return W===void 0||k>=$||k<0||G&&u>=Q}function N(){var A=WW();if(B(A))return V(A);F=setTimeout(N,I(A))}function V(A){if(F=void 0,Z&&X)return H(A);return X=Y=void 0,U}function O(){if(F!==void 0)clearTimeout(F);K=0,X=W=Y=F=void 0}function j(){return F===void 0?U:V(WW())}function v(){var A=WW(),k=B(A);if(X=arguments,Y=this,W=A,k){if(F===void 0)return z(W);if(G)return F=setTimeout(N,$),H(W)}if(F===void 0)F=setTimeout(N,$);return U}return v.cancel=O,v.flush=j,v}function Kn(D,$,J){var X=!0,Y=!0;if(typeof D!="function")throw TypeError(fM);if(zJ(J))X="leading"in J?!!J.leading:X,Y="trailing"in J?!!J.trailing:Y;return Wn(D,$,{leading:X,maxWait:$,trailing:Y})}function zJ(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function qn(D){return!!D&&typeof D=="object"}function Gn(D){return typeof D=="symbol"||qn(D)&&Qn.call(D)==tp}function xM(D){if(typeof D=="number")return D;if(Gn(D))return gM;if(zJ(D)){var $=typeof D.valueOf=="function"?D.valueOf():D;D=zJ($)?$+"":$}if(typeof D!="string")return D===0?D:+D;D=D.replace(op,"");var J=sp.test(D);return J||ep.test(D)?Dn(D.slice(2),J?2:8):ap.test(D)?gM:+D}yM.exports=Kn});var aM=S((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.default=void 0;var Zn=pM(XD("http")),zn=pM(XD("https")),dM=XD("stream"),Hn=XD("url"),iM=In(hM());function In(D){return D&&D.__esModule?D:{default:D}}function cM(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(cM=function(X){return X?J:$})(D)}function pM(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=cM($);if(J&&J.has(D))return J.get(D);var X={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in D)if(Q!=="default"&&{}.hasOwnProperty.call(D,Q)){var U=Y?Object.getOwnPropertyDescriptor(D,Q):null;U&&(U.get||U.set)?Object.defineProperty(X,Q,U):X[Q]=D[Q]}return X.default=D,J&&J.set(D,X),X}function Bn(D,$,J){return $=HJ($),On(D,nM()?Reflect.construct($,J||[],HJ(D).constructor):$.apply(D,J))}function On(D,$){if($&&(k8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return Nn(D)}function Nn(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function nM(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(nM=function(){return!!D})()}function HJ(D){return HJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},HJ(D)}function Vn(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)KW(D,$)}function KW(D,$){return KW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Y){return X.__proto__=Y,X},KW(D,$)}function mM(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function F5(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?mM(Object(J),!0).forEach(function(X){wn(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):mM(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function wn(D,$,J){if($=rM($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function k8(D){return k8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},k8(D)}function IJ(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function lM(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,rM(X.key),X)}}function BJ(D,$,J){if($)lM(D.prototype,$);if(J)lM(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function rM(D){var $=jn(D,"string");return k8($)=="symbol"?$:$+""}function jn(D,$){if(k8(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(k8(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var iVD=tM.default=function(){function D(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};IJ(this,D),this._requestOptions=$}return BJ(D,[{key:"createRequest",value:function(J,X){return new Ln(J,X,this._requestOptions)}},{key:"getName",value:function(){return"NodeHttpStack"}}])}(),Ln=function(){function D($,J,X){IJ(this,D),this._method=$,this._url=J,this._headers={},this._request=null,this._progressHandler=function(){},this._requestOptions=X||{}}return BJ(D,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(J,X){this._headers[J]=X}},{key:"getHeader",value:function(J){return this._headers[J]}},{key:"setProgressHandler",value:function(J){this._progressHandler=J}},{key:"send",value:function(){var J=this,X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(Y,Q){var U=F5(F5(F5({},(0,Hn.parse)(J._url)),J._requestOptions),{},{method:J._method,headers:F5(F5({},J._requestOptions.headers||{}),J._headers)});if(X!==null&&X!==void 0&&X.size)U.headers["Content-Length"]=X.size;var F=U.protocol==="https:"?zn:Zn;J._request=F.request(U);var W=J._request;if(W.on("response",function(K){var q=[];K.on("data",function(G){q.push(G)}),K.on("end",function(){var G=Buffer.concat(q).toString("utf8");Y(new Rn(K,G))})}),W.on("error",function(K){Q(K)}),X instanceof dM.Readable)X.pipe(new Mn(J._progressHandler)).pipe(W);else if(X instanceof Uint8Array)An(W,X,J._progressHandler);else W.end(X)})}},{key:"abort",value:function(){if(this._request!==null)this._request.abort();return Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._request}}])}(),Rn=function(){function D($,J){IJ(this,D),this._response=$,this._body=J}return BJ(D,[{key:"getStatus",value:function(){return this._response.statusCode}},{key:"getHeader",value:function(J){return this._response.headers[J.toLowerCase()]}},{key:"getBody",value:function(){return this._body}},{key:"getUnderlyingObject",value:function(){return this._response}}])}(),Mn=function(D){function $(J){var X;return IJ(this,$),X=Bn(this,$),X._onprogress=(0,iM.default)(J,100,{leading:!0,trailing:!1}),X._position=0,X}return Vn($,D),BJ($,[{key:"_transform",value:function(X,Y,Q){this._position+=X.length,this._onprogress(this._position),Q(null,X)}}])}(dM.Transform),An=function($,J,X){X=(0,iM.default)(X,100,{leading:!0,trailing:!1});var Y=0;function Q(){var U=Math.min($.writableHighWaterMark,J.length-Y),F=J.subarray(Y,Y+U);Y+=F.length;var W=$.write(F);if(!W)$.once("drain",Q),X(Y);else if(Y<J.length)Q();else $.end()}Q()}});var sM=S((vn)=>{vn.expectReceive=function(D,$,J){var X;if(J.root(D,$,J),X=this.message,D.hasOwnProperty("expected"))X+=" Expected "+D.expected+".";if(D.hasOwnProperty("received"))X+=" Received: "+D.received+".";this.message=X};vn.root=function(D,$,J){var X=this,Y,Q={stackLength:Error.stackTraceLimit,rootOnly:!0},U="",F=Error.stackTraceLimit,W;function K(){W[0]=X.toString(),X.stack=W.join(`
`)}if(!$||typeof $!=="object")$={};if($.hasOwnProperty("stackLength")&&typeof $.stackLength==="number"&&!isNaN($.stackLength)&&$.stackLength>=0)Q.stackLength=$.stackLength;if(!$.hasOwnProperty("rootOnly"))Q.rootOnly=$.rootOnly;if(!Q.rootOnly||this.CustomError.parent===Error)Object.keys(D).forEach(function(q){switch(q){case"code":Y=D.code||void 0;break;case"message":U=D.message||"";break;default:X[q]=D[q]}}),Error.stackTraceLimit=Q.stackLength+2,W=Error().stack.split(`
`),W.splice(0,3),W.unshift(""),Error.stackTraceLimit=F,this.stack=W.join(`
`),Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,get:function(){return Y},set:function(q){Y=q,K()}}),Object.defineProperty(this,"message",{configurable:!0,enumerable:!0,get:function(){return U},set:function(q){U=q,K()}}),K()}});var $A=S((nVD,DA)=>{DA.exports=D4;D4.factory=sM();var ZW=D4("CustomError");ZW.order=D4(ZW,{message:"Arguments out of order.",code:"EOARG"});function D4(D,$,J,X){var Y,Q;if($=OJ(arguments,1,Error,eM,[qW,NJ]),J=OJ(arguments,2,{},qW,[NJ]),X=OJ(arguments,3,GW,NJ,[]),D=OJ(arguments,0,$===Error?"Error":$.prototype.CustomError.name,Pn,[eM,qW,NJ]),Q=$===Error,Q&&X===GW)X=D4.factory.root;return Y=function(U,F){var W,K,q,G,Z,H;if(!(this instanceof Y))return new Y(U,F);if(delete this.constructor.name,Object.defineProperty(this.constructor,"name",{enumerable:!1,configurable:!0,value:D,writable:!1}),typeof U==="string")U={message:U};if(!U)U={};K=this.CustomError.chain.slice(0).reverse().map(function(z){return z.properties}),K.push(U),K.unshift({}),H=Object.assign.apply(Object,K),W=this,q={},Object.keys(D4.factory).forEach(function(z){q[z]=function(I,B){D4.factory[z].call(W,I,B,q)}});for(G=this.CustomError.chain.length-1;G>=0;G--)if(Z=this.CustomError.chain[G],Z.factory!==GW)Z.factory.call(this,H,F,q)},Y.prototype=Object.create($.prototype),Y.prototype.constructor=Y,Y.prototype.name=D,Y.prototype.CustomError={chain:Q?[]:$.prototype.CustomError.chain.slice(0),factory:X,name:D,parent:$,properties:J},Y.prototype.CustomError.chain.unshift(Y.prototype.CustomError),Y.prototype.toString=function(){var U=this.CustomError.chain[this.CustomError.chain.length-1].name;if(this.code)U+=" "+this.code;if(this.message)U+=": "+this.message;return U},Y}function OJ(D,$,J,X,Y){var Q=-1,U=-1,F,W,K=$<D.length?$:D.length,q;for(F=0;F<=K;F++){if(q=D[F],Q===-1){for(W=0;W<Y.length;W++)if(Y[W](q))Q=F}if(U===-1&&X(q))U=F}if(U!==-1&&Q!==-1&&Q<U)throw new ZW.order;return U!==-1?D[U]:J}function NJ(D){return typeof D==="function"&&D!==Error&&!D.prototype.CustomError}function Pn(D){return typeof D==="string"}function eM(D){return typeof D==="function"&&(D===Error||D.prototype.CustomError)}function qW(D){return D&&typeof D==="object"}function GW(){}});var UA=S((u8,_8)=>{var bn=1/0,Sn="[object Symbol]",W5={function:!0,object:!0},Cn=W5[typeof u8]&&u8&&!u8.nodeType?u8:void 0,kn=W5[typeof _8]&&_8&&!_8.nodeType?_8:void 0,_n=VJ(Cn&&kn&&typeof global=="object"&&global),un=VJ(W5[typeof self]&&self),JA=VJ(W5[typeof window]&&window),zW=VJ(W5[typeof u8]&&u8),gn=_n||JA!==(zW&&zW.window)&&JA||un||zW||Function("return this")();function VJ(D){return D&&D.Object===Object?D:null}var xn=Object.prototype,fn=xn.toString,XA=gn.Symbol,YA=XA?XA.prototype:void 0,QA=YA?YA.toString:void 0;function yn(D){if(typeof D=="string")return D;if(mn(D))return QA?QA.call(D):"";var $=D+"";return $=="0"&&1/D==-bn?"-0":$}function hn(D){return!!D&&typeof D=="object"}function mn(D){return typeof D=="symbol"||hn(D)&&fn.call(D)==Sn}_8.exports=yn});var zA=S((x8,g8)=>{var ln=UA(),dn="Expected a function",WA="__lodash_hash_undefined__",cn="[object Function]",pn="[object GeneratorFunction]",nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,rn=/[\\^$.*+?()[\]{}|]/g,tn=/\\(\\)?/g,on=/^\[object .+?Constructor\]$/,q5={function:!0,object:!0},an=q5[typeof x8]&&x8&&!x8.nodeType?x8:void 0,sn=q5[typeof g8]&&g8&&!g8.nodeType?g8:void 0,en=wJ(an&&sn&&typeof global=="object"&&global),Dr=wJ(q5[typeof self]&&self),FA=wJ(q5[typeof window]&&window),HW=wJ(q5[typeof x8]&&x8),$r=en||FA!==(HW&&HW.window)&&FA||Dr||HW||Function("return this")();function wJ(D){return D&&D.Object===Object?D:null}function Jr(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}var Xr=Array.prototype,KA=Object.prototype,qA=Function.prototype.toString,IW=KA.hasOwnProperty,Yr=KA.toString,Qr=RegExp("^"+qA.call(IW).replace(rn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ur=Xr.splice,Fr=GA($r,"Map"),K5=GA(Object,"create");function $4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Wr(){this.__data__=K5?K5(null):{}}function Kr(D){return this.has(D)&&delete this.__data__[D]}function qr(D){var $=this.__data__;if(K5){var J=$[D];return J===WA?void 0:J}return IW.call($,D)?$[D]:void 0}function Gr(D){var $=this.__data__;return K5?$[D]!==void 0:IW.call($,D)}function Zr(D,$){var J=this.__data__;return J[D]=K5&&$===void 0?WA:$,this}$4.prototype.clear=Wr;$4.prototype.delete=Kr;$4.prototype.get=qr;$4.prototype.has=Gr;$4.prototype.set=Zr;function f8(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function zr(){this.__data__=[]}function Hr(D){var $=this.__data__,J=jJ($,D);if(J<0)return!1;var X=$.length-1;if(J==X)$.pop();else Ur.call($,J,1);return!0}function Ir(D){var $=this.__data__,J=jJ($,D);return J<0?void 0:$[J][1]}function Br(D){return jJ(this.__data__,D)>-1}function Or(D,$){var J=this.__data__,X=jJ(J,D);if(X<0)J.push([D,$]);else J[X][1]=$;return this}f8.prototype.clear=zr;f8.prototype.delete=Hr;f8.prototype.get=Ir;f8.prototype.has=Br;f8.prototype.set=Or;function J4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Nr(){this.__data__={hash:new $4,map:new(Fr||f8),string:new $4}}function Vr(D){return LJ(this,D).delete(D)}function wr(D){return LJ(this,D).get(D)}function jr(D){return LJ(this,D).has(D)}function Lr(D,$){return LJ(this,D).set(D,$),this}J4.prototype.clear=Nr;J4.prototype.delete=Vr;J4.prototype.get=wr;J4.prototype.has=jr;J4.prototype.set=Lr;function jJ(D,$){var J=D.length;while(J--)if(vr(D[J][0],$))return J;return-1}function LJ(D,$){var J=D.__data__;return Rr($)?J[typeof $=="string"?"string":"hash"]:J.map}function GA(D,$){var J=D[$];return Tr(J)?J:void 0}function Rr(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}var Mr=BW(function(D){var $=[];return Pr(D).replace(nn,function(J,X,Y,Q){$.push(Y?Q.replace(tn,"$1"):X||J)}),$});function Ar(D){if(D!=null){try{return qA.call(D)}catch($){}try{return D+""}catch($){}}return""}function BW(D,$){if(typeof D!="function"||$&&typeof $!="function")throw TypeError(dn);var J=function(){var X=arguments,Y=$?$.apply(this,X):X[0],Q=J.cache;if(Q.has(Y))return Q.get(Y);var U=D.apply(this,X);return J.cache=Q.set(Y,U),U};return J.cache=new(BW.Cache||J4),J}BW.Cache=J4;function vr(D,$){return D===$||D!==D&&$!==$}function Er(D){var $=ZA(D)?Yr.call(D):"";return $==cn||$==pn}function ZA(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Tr(D){if(!ZA(D))return!1;var $=Er(D)||Jr(D)?Qr:on;return $.test(Ar(D))}function Pr(D){return D==null?"":ln(D)}g8.exports=Mr});var dA=S((m8,h8)=>{var br=zA(),Sr=200,EW="__lodash_hash_undefined__",EJ=1,l8=2,Cr=1/0,VA=9007199254740991,RJ="[object Arguments]",VW="[object Array]",wA="[object Boolean]",jA="[object Date]",LA="[object Error]",RA="[object Function]",kr="[object GeneratorFunction]",G5="[object Map]",MA="[object Number]",y8="[object Object]",HA="[object Promise]",AA="[object RegExp]",Z5="[object Set]",TW="[object String]",vA="[object Symbol]",wW="[object WeakMap]",EA="[object ArrayBuffer]",MJ="[object DataView]",_r="[object Float32Array]",ur="[object Float64Array]",gr="[object Int8Array]",xr="[object Int16Array]",fr="[object Int32Array]",yr="[object Uint8Array]",hr="[object Uint8ClampedArray]",mr="[object Uint16Array]",lr="[object Uint32Array]",dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,cr=/[\\^$.*+?()[\]{}|]/g,pr=/^\[object .+?Constructor\]$/,nr=/^(?:0|[1-9]\d*)$/,sD={};sD[_r]=sD[ur]=sD[gr]=sD[xr]=sD[fr]=sD[yr]=sD[hr]=sD[mr]=sD[lr]=!0;sD[RJ]=sD[VW]=sD[EA]=sD[wA]=sD[MJ]=sD[jA]=sD[LA]=sD[RA]=sD[G5]=sD[MA]=sD[y8]=sD[AA]=sD[Z5]=sD[TW]=sD[wW]=!1;var H5={function:!0,object:!0},rr=H5[typeof m8]&&m8&&!m8.nodeType?m8:void 0,tr=H5[typeof h8]&&h8&&!h8.nodeType?h8:void 0,or=TJ(rr&&tr&&typeof global=="object"&&global),ar=TJ(H5[typeof self]&&self),IA=TJ(H5[typeof window]&&window),OW=TJ(H5[typeof m8]&&m8),Q4=or||IA!==(OW&&OW.window)&&IA||ar||OW||Function("return this")();function sr(D,$){var J=-1,X=D.length,Y=Array(X);while(++J<X)Y[J]=$(D[J],J,D);return Y}function er(D,$){var J=-1,X=D.length;while(++J<X)if($(D[J],J,D))return!0;return!1}function Dt(D,$){var J=-1,X=Array(D);while(++J<D)X[J]=$(J);return X}function $t(D,$){return sr($,function(J){return[J,D[J]]})}function TJ(D){return D&&D.Object===Object?D:null}function jW(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function TA(D){var $=-1,J=Array(D.size);return D.forEach(function(X,Y){J[++$]=[Y,X]}),J}function Jt(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=X}),J}function Xt(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=[X,X]}),J}var Yt=Array.prototype,PJ=Object.prototype,PA=Function.prototype.toString,X4=PJ.hasOwnProperty,U4=PJ.toString,Qt=RegExp("^"+PA.call(X4).replace(cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),BA=Q4.Symbol,OA=Q4.Uint8Array,Ut=PJ.propertyIsEnumerable,Ft=Yt.splice,Wt=Object.getPrototypeOf,Kt=Object.keys,LW=d8(Q4,"DataView"),AJ=d8(Q4,"Map"),RW=d8(Q4,"Promise"),MW=d8(Q4,"Set"),AW=d8(Q4,"WeakMap"),z5=d8(Object,"create"),qt=W4(LW),Gt=W4(AJ),Zt=W4(RW),zt=W4(MW),Ht=W4(AW),NA=BA?BA.prototype:void 0,NW=NA?NA.valueOf:void 0;function Y4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function It(){this.__data__=z5?z5(null):{}}function Bt(D){return this.has(D)&&delete this.__data__[D]}function Ot(D){var $=this.__data__;if(z5){var J=$[D];return J===EW?void 0:J}return X4.call($,D)?$[D]:void 0}function Nt(D){var $=this.__data__;return z5?$[D]!==void 0:X4.call($,D)}function Vt(D,$){var J=this.__data__;return J[D]=z5&&$===void 0?EW:$,this}Y4.prototype.clear=It;Y4.prototype.delete=Bt;Y4.prototype.get=Ot;Y4.prototype.has=Nt;Y4.prototype.set=Vt;function S6(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function wt(){this.__data__=[]}function jt(D){var $=this.__data__,J=bJ($,D);if(J<0)return!1;var X=$.length-1;if(J==X)$.pop();else Ft.call($,J,1);return!0}function Lt(D){var $=this.__data__,J=bJ($,D);return J<0?void 0:$[J][1]}function Rt(D){return bJ(this.__data__,D)>-1}function Mt(D,$){var J=this.__data__,X=bJ(J,D);if(X<0)J.push([D,$]);else J[X][1]=$;return this}S6.prototype.clear=wt;S6.prototype.delete=jt;S6.prototype.get=Lt;S6.prototype.has=Rt;S6.prototype.set=Mt;function F4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function At(){this.__data__={hash:new Y4,map:new(AJ||S6),string:new Y4}}function vt(D){return SJ(this,D).delete(D)}function Et(D){return SJ(this,D).get(D)}function Tt(D){return SJ(this,D).has(D)}function Pt(D,$){return SJ(this,D).set(D,$),this}F4.prototype.clear=At;F4.prototype.delete=vt;F4.prototype.get=Et;F4.prototype.has=Tt;F4.prototype.set=Pt;function vJ(D){var $=-1,J=D?D.length:0;this.__data__=new F4;while(++$<J)this.add(D[$])}function bt(D){return this.__data__.set(D,EW),this}function St(D){return this.__data__.has(D)}vJ.prototype.add=vJ.prototype.push=bt;vJ.prototype.has=St;function b6(D){this.__data__=new S6(D)}function Ct(){this.__data__=new S6}function kt(D){return this.__data__.delete(D)}function _t(D){return this.__data__.get(D)}function ut(D){return this.__data__.has(D)}function gt(D,$){var J=this.__data__;if(J instanceof S6&&J.__data__.length==Sr)J=this.__data__=new F4(J.__data__);return J.set(D,$),this}b6.prototype.clear=Ct;b6.prototype.delete=kt;b6.prototype.get=_t;b6.prototype.has=ut;b6.prototype.set=gt;function bJ(D,$){var J=D.length;while(J--)if($o(D[J][0],$))return J;return-1}function bA(D,$){$=CJ($,D)?[$]:kA($);var J=0,X=$.length;while(D!=null&&J<X)D=D[kJ($[J++])];return J&&J==X?D:void 0}function SA(D,$){return X4.call(D,$)||typeof D=="object"&&$ in D&&ot(D)===null}function xt(D,$){return $ in Object(D)}function PW(D,$,J,X,Y){if(D===$)return!0;if(D==null||$==null||!uJ(D)&&!I5($))return D!==D&&$!==$;return ft(D,$,PW,J,X,Y)}function ft(D,$,J,X,Y,Q){var U=Y1(D),F=Y1($),W=VW,K=VW;if(!U)W=P6(D),W=W==RJ?y8:W;if(!F)K=P6($),K=K==RJ?y8:K;var q=W==y8&&!jW(D),G=K==y8&&!jW($),Z=W==K;if(Z&&!q)return Q||(Q=new b6),U||Yo(D)?_A(D,$,J,X,Y,Q):pt(D,$,W,J,X,Y,Q);if(!(Y&l8)){var H=q&&X4.call(D,"__wrapped__"),z=G&&X4.call($,"__wrapped__");if(H||z){var I=H?D.value():D,B=z?$.value():$;return Q||(Q=new b6),J(I,B,X,Y,Q)}}if(!Z)return!1;return Q||(Q=new b6),nt(D,$,J,X,Y,Q)}function yt(D,$,J,X){var Y=J.length,Q=Y,U=!X;if(D==null)return!Q;D=Object(D);while(Y--){var F=J[Y];if(U&&F[2]?F[1]!==D[F[0]]:!(F[0]in D))return!1}while(++Y<Q){F=J[Y];var W=F[0],K=D[W],q=F[1];if(U&&F[2]){if(K===void 0&&!(W in D))return!1}else{var G=new b6;if(X)var Z=X(K,q,W,D,$,G);if(!(Z===void 0?PW(q,K,X,EJ|l8,G):Z))return!1}}return!0}function ht(D){if(typeof D=="function")return D;if(D==null)return Wo;if(typeof D=="object")return Y1(D)?dt(D[0],D[1]):lt(D);return Ko(D)}function mt(D){return Kt(Object(D))}function lt(D){var $=tt(D);if($.length==1&&$[0][2])return xA($[0][0],$[0][1]);return function(J){return J===D||yt(J,D,$)}}function dt(D,$){if(CJ(D)&&gA($))return xA(kJ(D),$);return function(J){var X=Qo(J,D);return X===void 0&&X===$?Uo(J,D):PW($,X,void 0,EJ|l8)}}function CA(D){return function($){return $==null?void 0:$[D]}}function it(D){return function($){return bA($,D)}}function kA(D){return Y1(D)?D:br(D)}function ct(D){return function($){var J=P6($);if(J==G5)return TA($);if(J==Z5)return Xt($);return $t($,D($))}}function _A(D,$,J,X,Y,Q){var U=Y&l8,F=D.length,W=$.length;if(F!=W&&!(U&&W>F))return!1;var K=Q.get(D);if(K)return K==$;var q=-1,G=!0,Z=Y&EJ?new vJ:void 0;Q.set(D,$);while(++q<F){var H=D[q],z=$[q];if(X)var I=U?X(z,H,q,$,D,Q):X(H,z,q,D,$,Q);if(I!==void 0){if(I)continue;G=!1;break}if(Z){if(!er($,function(B,N){if(!Z.has(N)&&(H===B||J(H,B,X,Y,Q)))return Z.add(N)})){G=!1;break}}else if(!(H===z||J(H,z,X,Y,Q))){G=!1;break}}return Q.delete(D),G}function pt(D,$,J,X,Y,Q,U){switch(J){case MJ:if(D.byteLength!=$.byteLength||D.byteOffset!=$.byteOffset)return!1;D=D.buffer,$=$.buffer;case EA:if(D.byteLength!=$.byteLength||!X(new OA(D),new OA($)))return!1;return!0;case wA:case jA:return+D==+$;case LA:return D.name==$.name&&D.message==$.message;case MA:return D!=+D?$!=+$:D==+$;case AA:case TW:return D==$+"";case G5:var F=TA;case Z5:var W=Q&l8;if(F||(F=Jt),D.size!=$.size&&!W)return!1;var K=U.get(D);if(K)return K==$;return Q|=EJ,U.set(D,$),_A(F(D),F($),X,Y,Q,U);case vA:if(NW)return NW.call(D)==NW.call($)}return!1}function nt(D,$,J,X,Y,Q){var U=Y&l8,F=vW(D),W=F.length,K=vW($),q=K.length;if(W!=q&&!U)return!1;var G=W;while(G--){var Z=F[G];if(!(U?Z in $:SA($,Z)))return!1}var H=Q.get(D);if(H)return H==$;var z=!0;Q.set(D,$);var I=U;while(++G<W){Z=F[G];var B=D[Z],N=$[Z];if(X)var V=U?X(N,B,Z,$,D,Q):X(B,N,Z,D,$,Q);if(!(V===void 0?B===N||J(B,N,X,Y,Q):V)){z=!1;break}I||(I=Z=="constructor")}if(z&&!I){var O=D.constructor,j=$.constructor;if(O!=j&&(("constructor"in D)&&("constructor"in $))&&!(typeof O=="function"&&O instanceof O&&typeof j=="function"&&j instanceof j))z=!1}return Q.delete(D),z}var rt=CA("length");function SJ(D,$){var J=D.__data__;return et($)?J[typeof $=="string"?"string":"hash"]:J.map}function tt(D){var $=Fo(D),J=$.length;while(J--)$[J][2]=gA($[J][1]);return $}function d8(D,$){var J=D[$];return Xo(J)?J:void 0}function ot(D){return Wt(Object(D))}function P6(D){return U4.call(D)}if(LW&&P6(new LW(new ArrayBuffer(1)))!=MJ||AJ&&P6(new AJ)!=G5||RW&&P6(RW.resolve())!=HA||MW&&P6(new MW)!=Z5||AW&&P6(new AW)!=wW)P6=function(D){var $=U4.call(D),J=$==y8?D.constructor:void 0,X=J?W4(J):void 0;if(X)switch(X){case qt:return MJ;case Gt:return G5;case Zt:return HA;case zt:return Z5;case Ht:return wW}return $};function at(D,$,J){$=CJ($,D)?[$]:kA($);var X,Y=-1,U=$.length;while(++Y<U){var Q=kJ($[Y]);if(!(X=D!=null&&J(D,Q)))break;D=D[Q]}if(X)return X;var U=D?D.length:0;return!!U&&_J(U)&&uA(Q,U)&&(Y1(D)||mA(D)||fA(D))}function st(D){var $=D?D.length:void 0;if(_J($)&&(Y1(D)||mA(D)||fA(D)))return Dt($,String);return null}function uA(D,$){return $=$==null?VA:$,!!$&&(typeof D=="number"||nr.test(D))&&(D>-1&&D%1==0&&D<$)}function CJ(D,$){if(Y1(D))return!1;var J=typeof D;if(J=="number"||J=="symbol"||J=="boolean"||D==null||lA(D))return!0;return ir.test(D)||!dr.test(D)||$!=null&&D in Object($)}function et(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function Do(D){var $=D&&D.constructor,J=typeof $=="function"&&$.prototype||PJ;return D===J}function gA(D){return D===D&&!uJ(D)}function xA(D,$){return function(J){if(J==null)return!1;return J[D]===$&&($!==void 0||(D in Object(J)))}}function kJ(D){if(typeof D=="string"||lA(D))return D;var $=D+"";return $=="0"&&1/D==-Cr?"-0":$}function W4(D){if(D!=null){try{return PA.call(D)}catch($){}try{return D+""}catch($){}}return""}function $o(D,$){return D===$||D!==D&&$!==$}function fA(D){return Jo(D)&&X4.call(D,"callee")&&(!Ut.call(D,"callee")||U4.call(D)==RJ)}var Y1=Array.isArray;function yA(D){return D!=null&&_J(rt(D))&&!hA(D)}function Jo(D){return I5(D)&&yA(D)}function hA(D){var $=uJ(D)?U4.call(D):"";return $==RA||$==kr}function _J(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=VA}function uJ(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function I5(D){return!!D&&typeof D=="object"}function Xo(D){if(!uJ(D))return!1;var $=hA(D)||jW(D)?Qt:pr;return $.test(W4(D))}function mA(D){return typeof D=="string"||!Y1(D)&&I5(D)&&U4.call(D)==TW}function lA(D){return typeof D=="symbol"||I5(D)&&U4.call(D)==vA}function Yo(D){return I5(D)&&_J(D.length)&&!!sD[U4.call(D)]}function Qo(D,$,J){var X=D==null?void 0:bA(D,$);return X===void 0?J:X}function Uo(D,$){return D!=null&&at(D,$,xt)}function vW(D){var $=Do(D);if(!($||yA(D)))return mt(D);var J=st(D),X=!!J,Y=J||[],Q=Y.length;for(var U in D)if(SA(D,U)&&!(X&&(U=="length"||uA(U,Q)))&&!($&&U=="constructor"))Y.push(U);return Y}var Fo=ct(vW);function Wo(D){return D}function Ko(D){return CJ(D)?CA(kJ(D)):it(D)}h8.exports=ht});var rA=S((c8,i8)=>{var qo=1/0,Go="[object Function]",Zo="[object GeneratorFunction]",zo=/[\\^$.*+?()[\]{}|]/g,Ho=/^\[object .+?Constructor\]$/,B5={function:!0,object:!0},Io=B5[typeof c8]&&c8&&!c8.nodeType?c8:void 0,Bo=B5[typeof i8]&&i8&&!i8.nodeType?i8:void 0,Oo=gJ(Io&&Bo&&typeof global=="object"&&global),No=gJ(B5[typeof self]&&self),iA=gJ(B5[typeof window]&&window),bW=gJ(B5[typeof c8]&&c8),Vo=Oo||iA!==(bW&&bW.window)&&iA||No||bW||Function("return this")();function gJ(D){return D&&D.Object===Object?D:null}function wo(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function jo(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=X}),J}var cA=Object.prototype,pA=Function.prototype.toString,Lo=cA.hasOwnProperty,Ro=cA.toString,Mo=RegExp("^"+pA.call(Lo).replace(zo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),SW=vo(Vo,"Set"),Ao=!(SW&&1/jo(new SW([,-0]))[1]==qo)?bo:function(D){return new SW(D)};function vo(D,$){var J=D[$];return Po(J)?J:void 0}function Eo(D){if(D!=null){try{return pA.call(D)}catch($){}try{return D+""}catch($){}}return""}function To(D){var $=nA(D)?Ro.call(D):"";return $==Go||$==Zo}function nA(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Po(D){if(!nA(D))return!1;var $=To(D)||wo(D)?Mo:Ho;return $.test(Eo(D))}function bo(){}i8.exports=Ao});var oA=S((n8,p8)=>{var O5={function:!0,object:!0},So=O5[typeof n8]&&n8&&!n8.nodeType?n8:void 0,Co=O5[typeof p8]&&p8&&!p8.nodeType?p8:void 0,ko=xJ(So&&Co&&typeof global=="object"&&global),_o=xJ(O5[typeof self]&&self),tA=xJ(O5[typeof window]&&window),CW=xJ(O5[typeof n8]&&n8),uo=ko||tA!==(CW&&CW.window)&&tA||_o||CW||Function("return this")();function xJ(D){return D&&D.Object===Object?D:null}p8.exports=uo});var Jv=S((eVD,$v)=>{var go=rA(),xo=oA(),fo=200,kW="__lodash_hash_undefined__",yo="[object Function]",ho="[object GeneratorFunction]",mo=/[\\^$.*+?()[\]{}|]/g,lo=/^\[object .+?Constructor\]$/;function io(D,$){return!!D.length&&po(D,$,0)>-1}function co(D,$,J){var X=-1,Y=D.length;while(++X<Y)if(J($,D[X]))return!0;return!1}function po(D,$,J){if($!==$)return ro(D,J);var X=J-1,Y=D.length;while(++X<Y)if(D[X]===$)return X;return-1}function no(D,$){return D.has($)}function ro(D,$,J){var X=D.length,Y=$+(J?0:-1);while(J?Y--:++Y<X){var Q=D[Y];if(Q!==Q)return Y}return-1}function to(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function oo(D){var $=-1,J=Array(D.size);return D.forEach(function(X){J[++$]=X}),J}var ao=Array.prototype,aA=Object.prototype,sA=Function.prototype.toString,_W=aA.hasOwnProperty,so=aA.toString,eo=RegExp("^"+sA.call(_W).replace(mo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Da=ao.splice,$a=eA(xo,"Map"),N5=eA(Object,"create");function K4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Ja(){this.__data__=N5?N5(null):{}}function Xa(D){return this.has(D)&&delete this.__data__[D]}function Ya(D){var $=this.__data__;if(N5){var J=$[D];return J===kW?void 0:J}return _W.call($,D)?$[D]:void 0}function Qa(D){var $=this.__data__;return N5?$[D]!==void 0:_W.call($,D)}function Ua(D,$){var J=this.__data__;return J[D]=N5&&$===void 0?kW:$,this}K4.prototype.clear=Ja;K4.prototype.delete=Xa;K4.prototype.get=Ya;K4.prototype.has=Qa;K4.prototype.set=Ua;function r8(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Fa(){this.__data__=[]}function Wa(D){var $=this.__data__,J=yJ($,D);if(J<0)return!1;var X=$.length-1;if(J==X)$.pop();else Da.call($,J,1);return!0}function Ka(D){var $=this.__data__,J=yJ($,D);return J<0?void 0:$[J][1]}function qa(D){return yJ(this.__data__,D)>-1}function Ga(D,$){var J=this.__data__,X=yJ(J,D);if(X<0)J.push([D,$]);else J[X][1]=$;return this}r8.prototype.clear=Fa;r8.prototype.delete=Wa;r8.prototype.get=Ka;r8.prototype.has=qa;r8.prototype.set=Ga;function t8(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var X=D[$];this.set(X[0],X[1])}}function Za(){this.__data__={hash:new K4,map:new($a||r8),string:new K4}}function za(D){return hJ(this,D).delete(D)}function Ha(D){return hJ(this,D).get(D)}function Ia(D){return hJ(this,D).has(D)}function Ba(D,$){return hJ(this,D).set(D,$),this}t8.prototype.clear=Za;t8.prototype.delete=za;t8.prototype.get=Ha;t8.prototype.has=Ia;t8.prototype.set=Ba;function fJ(D){var $=-1,J=D?D.length:0;this.__data__=new t8;while(++$<J)this.add(D[$])}function Oa(D){return this.__data__.set(D,kW),this}function Na(D){return this.__data__.has(D)}fJ.prototype.add=fJ.prototype.push=Oa;fJ.prototype.has=Na;function yJ(D,$){var J=D.length;while(J--)if(La(D[J][0],$))return J;return-1}function Va(D,$,J){var X=-1,Y=io,Q=D.length,U=!0,F=[],W=F;if(J)U=!1,Y=co;else if(Q>=fo){var K=$?null:go(D);if(K)return oo(K);U=!1,Y=no,W=new fJ}else W=$?[]:F;D:while(++X<Q){var q=D[X],G=$?$(q):q;if(q=J||q!==0?q:0,U&&G===G){var Z=W.length;while(Z--)if(W[Z]===G)continue D;if($)W.push(G);F.push(q)}else if(!Y(W,G,J)){if(W!==F)W.push(G);F.push(q)}}return F}function hJ(D,$){var J=D.__data__;return wa($)?J[typeof $=="string"?"string":"hash"]:J.map}function eA(D,$){var J=D[$];return Ma(J)?J:void 0}function wa(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function ja(D){if(D!=null){try{return sA.call(D)}catch($){}try{return D+""}catch($){}}return""}function La(D,$){return D===$||D!==D&&$!==$}function Ra(D){var $=Dv(D)?so.call(D):"";return $==yo||$==ho}function Dv(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Ma(D){if(!Dv(D))return!1;var $=Ra(D)||to(D)?eo:lo;return $.test(ja(D))}$v.exports=Va});var Yv=S((DwD,Xv)=>{var Aa=dA(),va=Jv();function Ea(D,$){return D&&D.length?va(D,Aa($)):[]}Xv.exports=Ea});var Uv=S(($wD,Qv)=>{var Ta=$A(),Pa=Yv(),ba=Ta("MultiError");Qv.exports=uW;function uW(D){if(!(this instanceof uW))return new uW(D);if(D=Array.isArray(D)?D:[D],D=Pa(D,function(J){return J.stack}),D.length===1)return D[0];var $=new ba({message:D.map(function(J){return J.message}).join("; "),errors:D.reduce(function(J,X){return J.concat(X.errors||X)},[])});return $.__defineGetter__("stack",function(){return D.map(function(J){return J.stack}).join(`
`)}),$.__defineSetter__("stack",function(J){return[J].concat($.stack).join(`
`)}),$}});var Wv=S((JwD,Fv)=>{var Q1=XD("constants"),Sa=process.cwd,mJ=null,Ca=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!mJ)mJ=Sa.call(process);return mJ};try{process.cwd()}catch(D){}if(typeof process.chdir==="function"){if(lJ=process.chdir,process.chdir=function(D){mJ=null,lJ.call(process,D)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,lJ)}var lJ;Fv.exports=ka;function ka(D){if(Q1.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))$(D);if(!D.lutimes)J(D);if(D.chown=Q(D.chown),D.fchown=Q(D.fchown),D.lchown=Q(D.lchown),D.chmod=X(D.chmod),D.fchmod=X(D.fchmod),D.lchmod=X(D.lchmod),D.chownSync=U(D.chownSync),D.fchownSync=U(D.fchownSync),D.lchownSync=U(D.lchownSync),D.chmodSync=Y(D.chmodSync),D.fchmodSync=Y(D.fchmodSync),D.lchmodSync=Y(D.lchmodSync),D.stat=F(D.stat),D.fstat=F(D.fstat),D.lstat=F(D.lstat),D.statSync=W(D.statSync),D.fstatSync=W(D.fstatSync),D.lstatSync=W(D.lstatSync),D.chmod&&!D.lchmod)D.lchmod=function(q,G,Z){if(Z)process.nextTick(Z)},D.lchmodSync=function(){};if(D.chown&&!D.lchown)D.lchown=function(q,G,Z,H){if(H)process.nextTick(H)},D.lchownSync=function(){};if(Ca==="win32")D.rename=typeof D.rename!=="function"?D.rename:function(q){function G(Z,H,z){var I=Date.now(),B=0;q(Z,H,function N(V){if(V&&(V.code==="EACCES"||V.code==="EPERM"||V.code==="EBUSY")&&Date.now()-I<60000){if(setTimeout(function(){D.stat(H,function(O,j){if(O&&O.code==="ENOENT")q(Z,H,N);else z(V)})},B),B<100)B+=10;return}if(z)z(V)})}if(Object.setPrototypeOf)Object.setPrototypeOf(G,q);return G}(D.rename);D.read=typeof D.read!=="function"?D.read:function(q){function G(Z,H,z,I,B,N){var V;if(N&&typeof N==="function"){var O=0;V=function(j,v,A){if(j&&j.code==="EAGAIN"&&O<10)return O++,q.call(D,Z,H,z,I,B,V);N.apply(this,arguments)}}return q.call(D,Z,H,z,I,B,V)}if(Object.setPrototypeOf)Object.setPrototypeOf(G,q);return G}(D.read),D.readSync=typeof D.readSync!=="function"?D.readSync:function(q){return function(G,Z,H,z,I){var B=0;while(!0)try{return q.call(D,G,Z,H,z,I)}catch(N){if(N.code==="EAGAIN"&&B<10){B++;continue}throw N}}}(D.readSync);function $(q){q.lchmod=function(G,Z,H){q.open(G,Q1.O_WRONLY|Q1.O_SYMLINK,Z,function(z,I){if(z){if(H)H(z);return}q.fchmod(I,Z,function(B){q.close(I,function(N){if(H)H(B||N)})})})},q.lchmodSync=function(G,Z){var H=q.openSync(G,Q1.O_WRONLY|Q1.O_SYMLINK,Z),z=!0,I;try{I=q.fchmodSync(H,Z),z=!1}finally{if(z)try{q.closeSync(H)}catch(B){}else q.closeSync(H)}return I}}function J(q){if(Q1.hasOwnProperty("O_SYMLINK")&&q.futimes)q.lutimes=function(G,Z,H,z){q.open(G,Q1.O_SYMLINK,function(I,B){if(I){if(z)z(I);return}q.futimes(B,Z,H,function(N){q.close(B,function(V){if(z)z(N||V)})})})},q.lutimesSync=function(G,Z,H){var z=q.openSync(G,Q1.O_SYMLINK),I,B=!0;try{I=q.futimesSync(z,Z,H),B=!1}finally{if(B)try{q.closeSync(z)}catch(N){}else q.closeSync(z)}return I};else if(q.futimes)q.lutimes=function(G,Z,H,z){if(z)process.nextTick(z)},q.lutimesSync=function(){}}function X(q){if(!q)return q;return function(G,Z,H){return q.call(D,G,Z,function(z){if(K(z))z=null;if(H)H.apply(this,arguments)})}}function Y(q){if(!q)return q;return function(G,Z){try{return q.call(D,G,Z)}catch(H){if(!K(H))throw H}}}function Q(q){if(!q)return q;return function(G,Z,H,z){return q.call(D,G,Z,H,function(I){if(K(I))I=null;if(z)z.apply(this,arguments)})}}function U(q){if(!q)return q;return function(G,Z,H){try{return q.call(D,G,Z,H)}catch(z){if(!K(z))throw z}}}function F(q){if(!q)return q;return function(G,Z,H){if(typeof Z==="function")H=Z,Z=null;function z(I,B){if(B){if(B.uid<0)B.uid+=4294967296;if(B.gid<0)B.gid+=4294967296}if(H)H.apply(this,arguments)}return Z?q.call(D,G,Z,z):q.call(D,G,z)}}function W(q){if(!q)return q;return function(G,Z){var H=Z?q.call(D,G,Z):q.call(D,G);if(H){if(H.uid<0)H.uid+=4294967296;if(H.gid<0)H.gid+=4294967296}return H}}function K(q){if(!q)return!0;if(q.code==="ENOSYS")return!0;var G=!process.getuid||process.getuid()!==0;if(G){if(q.code==="EINVAL"||q.code==="EPERM")return!0}return!1}}});var Gv=S((XwD,qv)=>{var Kv=XD("stream").Stream;qv.exports=_a;function _a(D){return{ReadStream:$,WriteStream:J};function $(X,Y){if(!(this instanceof $))return new $(X,Y);Kv.call(this);var Q=this;this.path=X,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,Y=Y||{};var U=Object.keys(Y);for(var F=0,W=U.length;F<W;F++){var K=U[F];this[K]=Y[K]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){Q._read()});return}D.open(this.path,this.flags,this.mode,function(q,G){if(q){Q.emit("error",q),Q.readable=!1;return}Q.fd=G,Q.emit("open",G),Q._read()})}function J(X,Y){if(!(this instanceof J))return new J(X,Y);Kv.call(this),this.path=X,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,Y=Y||{};var Q=Object.keys(Y);for(var U=0,F=Q.length;U<F;U++){var W=Q[U];this[W]=Y[W]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=D.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var zv=S((YwD,Zv)=>{Zv.exports=ga;var ua=Object.getPrototypeOf||function(D){return D.__proto__};function ga(D){if(D===null||typeof D!=="object")return D;if(D instanceof Object)var $={__proto__:ua(D)};else var $=Object.create(null);return Object.getOwnPropertyNames(D).forEach(function(J){Object.defineProperty($,J,Object.getOwnPropertyDescriptor(D,J))}),$}});var U1=S((QwD,yW)=>{var U0=XD("fs"),xa=Wv(),fa=Gv(),ya=zv(),dJ=XD("util"),b0,cJ;if(typeof Symbol==="function"&&typeof Symbol.for==="function")b0=Symbol.for("graceful-fs.queue"),cJ=Symbol.for("graceful-fs.previous");else b0="___graceful-fs.queue",cJ="___graceful-fs.previous";function ha(){}function Iv(D,$){Object.defineProperty(D,b0,{get:function(){return $}})}var q4=ha;if(dJ.debuglog)q4=dJ.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))q4=function(){var D=dJ.format.apply(dJ,arguments);D="GFS4: "+D.split(/\n/).join(`
GFS4: `),console.error(D)};if(!U0[b0]){if(gW=global[b0]||[],Iv(U0,gW),U0.close=function(D){function $(J,X){return D.call(U0,J,function(Y){if(!Y)Hv();if(typeof X==="function")X.apply(this,arguments)})}return Object.defineProperty($,cJ,{value:D}),$}(U0.close),U0.closeSync=function(D){function $(J){D.apply(U0,arguments),Hv()}return Object.defineProperty($,cJ,{value:D}),$}(U0.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){q4(U0[b0]),XD("assert").equal(U0[b0].length,0)})}var gW;if(!global[b0])Iv(global,U0[b0]);yW.exports=xW(ya(U0));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!U0.__patched)yW.exports=xW(U0),U0.__patched=!0;function xW(D){xa(D),D.gracefulify=xW,D.createReadStream=v,D.createWriteStream=A;var $=D.readFile;D.readFile=J;function J(_,y,T){if(typeof y==="function")T=y,y=null;return d(_,y,T);function d(c,p,o,R){return $(c,p,function(w){if(w&&(w.code==="EMFILE"||w.code==="ENFILE"))o8([d,[c,p,o],w,R||Date.now(),Date.now()]);else if(typeof o==="function")o.apply(this,arguments)})}}var X=D.writeFile;D.writeFile=Y;function Y(_,y,T,d){if(typeof T==="function")d=T,T=null;return c(_,y,T,d);function c(p,o,R,w,L){return X(p,o,R,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))o8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var Q=D.appendFile;if(Q)D.appendFile=U;function U(_,y,T,d){if(typeof T==="function")d=T,T=null;return c(_,y,T,d);function c(p,o,R,w,L){return Q(p,o,R,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))o8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var F=D.copyFile;if(F)D.copyFile=W;function W(_,y,T,d){if(typeof T==="function")d=T,T=0;return c(_,y,T,d);function c(p,o,R,w,L){return F(p,o,R,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))o8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var K=D.readdir;D.readdir=G;var q=/^v[0-5]\./;function G(_,y,T){if(typeof y==="function")T=y,y=null;var d=q.test(process.version)?function(o,R,w,L){return K(o,c(o,R,w,L))}:function(o,R,w,L){return K(o,R,c(o,R,w,L))};return d(_,y,T);function c(p,o,R,w){return function(L,P){if(L&&(L.code==="EMFILE"||L.code==="ENFILE"))o8([d,[p,o,R],L,w||Date.now(),Date.now()]);else{if(P&&P.sort)P.sort();if(typeof R==="function")R.call(this,L,P)}}}}if(process.version.substr(0,4)==="v0.8"){var Z=fa(D);N=Z.ReadStream,O=Z.WriteStream}var H=D.ReadStream;if(H)N.prototype=Object.create(H.prototype),N.prototype.open=V;var z=D.WriteStream;if(z)O.prototype=Object.create(z.prototype),O.prototype.open=j;Object.defineProperty(D,"ReadStream",{get:function(){return N},set:function(_){N=_},enumerable:!0,configurable:!0}),Object.defineProperty(D,"WriteStream",{get:function(){return O},set:function(_){O=_},enumerable:!0,configurable:!0});var I=N;Object.defineProperty(D,"FileReadStream",{get:function(){return I},set:function(_){I=_},enumerable:!0,configurable:!0});var B=O;Object.defineProperty(D,"FileWriteStream",{get:function(){return B},set:function(_){B=_},enumerable:!0,configurable:!0});function N(_,y){if(this instanceof N)return H.apply(this,arguments),this;else return N.apply(Object.create(N.prototype),arguments)}function V(){var _=this;u(_.path,_.flags,_.mode,function(y,T){if(y){if(_.autoClose)_.destroy();_.emit("error",y)}else _.fd=T,_.emit("open",T),_.read()})}function O(_,y){if(this instanceof O)return z.apply(this,arguments),this;else return O.apply(Object.create(O.prototype),arguments)}function j(){var _=this;u(_.path,_.flags,_.mode,function(y,T){if(y)_.destroy(),_.emit("error",y);else _.fd=T,_.emit("open",T)})}function v(_,y){return new D.ReadStream(_,y)}function A(_,y){return new D.WriteStream(_,y)}var k=D.open;D.open=u;function u(_,y,T,d){if(typeof T==="function")d=T,T=null;return c(_,y,T,d);function c(p,o,R,w,L){return k(p,o,R,function(P,f){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))o8([c,[p,o,R,w],P,L||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}return D}function o8(D){q4("ENQUEUE",D[0].name,D[1]),U0[b0].push(D),fW()}var iJ;function Hv(){var D=Date.now();for(var $=0;$<U0[b0].length;++$)if(U0[b0][$].length>2)U0[b0][$][3]=D,U0[b0][$][4]=D;fW()}function fW(){if(clearTimeout(iJ),iJ=void 0,U0[b0].length===0)return;var D=U0[b0].shift(),$=D[0],J=D[1],X=D[2],Y=D[3],Q=D[4];if(Y===void 0)q4("RETRY",$.name,J),$.apply(null,J);else if(Date.now()-Y>=60000){q4("TIMEOUT",$.name,J);var U=J.pop();if(typeof U==="function")U.call(null,X)}else{var F=Date.now()-Q,W=Math.max(Q-Y,1),K=Math.min(W*1.2,100);if(F>=K)q4("RETRY",$.name,J),$.apply(null,J.concat([Y]));else U0[b0].push(D)}if(iJ===void 0)iJ=setTimeout(fW,0)}});var Ov=S((UwD,Bv)=>{function h$(D,$){if(typeof $==="boolean")$={forever:$};if(this._originalTimeouts=JSON.parse(JSON.stringify(D)),this._timeouts=D,this._options=$||{},this._maxRetryTime=$&&$.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}Bv.exports=h$;h$.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};h$.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};h$.prototype.retry=function(D){if(this._timeout)clearTimeout(this._timeout);if(!D)return!1;var $=new Date().getTime();if(D&&$-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(D);var J=this._timeouts.shift();if(J===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),J=this._timeouts.shift();else return!1;var X=this,Y=setTimeout(function(){if(X._attempts++,X._operationTimeoutCb){if(X._timeout=setTimeout(function(){X._operationTimeoutCb(X._attempts)},X._operationTimeout),X._options.unref)X._timeout.unref()}X._fn(X._attempts)},J);if(this._options.unref)Y.unref();return!0};h$.prototype.attempt=function(D,$){if(this._fn=D,$){if($.timeout)this._operationTimeout=$.timeout;if($.cb)this._operationTimeoutCb=$.cb}var J=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){J._operationTimeoutCb()},J._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};h$.prototype.try=function(D){console.log("Using RetryOperation.try() is deprecated"),this.attempt(D)};h$.prototype.start=function(D){console.log("Using RetryOperation.start() is deprecated"),this.attempt(D)};h$.prototype.start=h$.prototype.try;h$.prototype.errors=function(){return this._errors};h$.prototype.attempts=function(){return this._attempts};h$.prototype.mainError=function(){if(this._errors.length===0)return null;var D={},$=null,J=0;for(var X=0;X<this._errors.length;X++){var Y=this._errors[X],Q=Y.message,U=(D[Q]||0)+1;if(D[Q]=U,U>=J)$=Y,J=U}return $}});var Vv=S((la)=>{var ma=Ov();la.operation=function(D){var $=la.timeouts(D);return new ma($,{forever:D&&D.forever,unref:D&&D.unref,maxRetryTime:D&&D.maxRetryTime})};la.timeouts=function(D){if(D instanceof Array)return[].concat(D);var $={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var J in D)$[J]=D[J];if($.minTimeout>$.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var X=[];for(var Y=0;Y<$.retries;Y++)X.push(this.createTimeout(Y,$));if(D&&D.forever&&!X.length)X.push(this.createTimeout(Y,$));return X.sort(function(Q,U){return Q-U}),X};la.createTimeout=function(D,$){var J=$.randomize?Math.random()+1:1,X=Math.round(J*$.minTimeout*Math.pow($.factor,D));return X=Math.min(X,$.maxTimeout),X};la.wrap=function(D,$,J){if($ instanceof Array)J=$,$=null;if(!J){J=[];for(var X in D)if(typeof D[X]==="function")J.push(X)}for(var Y=0;Y<J.length;Y++){var Q=J[Y],U=D[Q];D[Q]=function(W){var K=la.operation($),q=Array.prototype.slice.call(arguments,1),G=q.pop();q.push(function(Z){if(K.retry(Z))return;if(Z)arguments[0]=K.mainError();G.apply(this,arguments)}),K.attempt(function(){W.apply(D,q)})}.bind(D,U),D[Q].options=$}}});var wv=S((WwD,pJ)=>{pJ.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")pJ.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")pJ.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var iW=S((KwD,s8)=>{var $0=global.process,G4=function(D){return D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function"};if(!G4($0))s8.exports=function(){return function(){}};else{if(hW=XD("assert"),Z4=wv(),mW=/^win/i.test($0.platform),a8=XD("events"),typeof a8!=="function")a8=a8.EventEmitter;if($0.__signal_exit_emitter__)j0=$0.__signal_exit_emitter__;else j0=$0.__signal_exit_emitter__=new a8,j0.count=0,j0.emitted={};if(!j0.infinite)j0.setMaxListeners(1/0),j0.infinite=!0;s8.exports=function(D,$){if(!G4(global.process))return function(){};if(hW.equal(typeof D,"function","a callback must be provided for exit handler"),z4===!1)nJ();var J="exit";if($&&$.alwaysLast)J="afterexit";var X=function(){if(j0.removeListener(J,D),j0.listeners("exit").length===0&&j0.listeners("afterexit").length===0)V5()};return j0.on(J,D),X},V5=function(){if(!z4||!G4(global.process))return;z4=!1,Z4.forEach(function($){try{$0.removeListener($,w5[$])}catch(J){}}),$0.emit=j5,$0.reallyExit=rJ,j0.count-=1},s8.exports.unload=V5,F1=function($,J,X){if(j0.emitted[$])return;j0.emitted[$]=!0,j0.emit($,J,X)},w5={},Z4.forEach(function(D){w5[D]=function(){if(!G4(global.process))return;var J=$0.listeners(D);if(J.length===j0.count){if(V5(),F1("exit",null,D),F1("afterexit",null,D),mW&&D==="SIGHUP")D="SIGINT";$0.kill($0.pid,D)}}}),s8.exports.signals=function(){return Z4},z4=!1,nJ=function(){if(z4||!G4(global.process))return;z4=!0,j0.count+=1,Z4=Z4.filter(function($){try{return $0.on($,w5[$]),!0}catch(J){return!1}}),$0.emit=dW,$0.reallyExit=lW},s8.exports.load=nJ,rJ=$0.reallyExit,lW=function($){if(!G4(global.process))return;$0.exitCode=$||0,F1("exit",$0.exitCode,null),F1("afterexit",$0.exitCode,null),rJ.call($0,$0.exitCode)},j5=$0.emit,dW=function($,J){if($==="exit"&&G4(global.process)){if(J!==void 0)$0.exitCode=J;var X=j5.apply(this,arguments);return F1("exit",$0.exitCode,null),F1("afterexit",$0.exitCode,null),X}else return j5.apply(this,arguments)}}var hW,Z4,mW,a8,j0,V5,F1,w5,z4,nJ,rJ,lW,j5,dW});var Lv=S((ra,cW)=>{var jv=Symbol();function pa(D,$,J){let X=$[jv];if(X)return $.stat(D,(Q,U)=>{if(Q)return J(Q);J(null,U.mtime,X)});let Y=new Date(Math.ceil(Date.now()/1000)*1000+5);$.utimes(D,Y,Y,(Q)=>{if(Q)return J(Q);$.stat(D,(U,F)=>{if(U)return J(U);let W=F.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty($,jv,{value:W}),J(null,F.mtime,W)})})}function na(D){let $=Date.now();if(D==="s")$=Math.ceil($/1000)*1000;return new Date($)}ra.probe=pa;ra.getMtime=na});var Ev=S((Xs,R5)=>{var aa=XD("path"),rW=U1(),sa=Vv(),ea=iW(),Rv=Lv(),C6={};function L5(D,$){return $.lockfilePath||`${D}.lock`}function tW(D,$,J){if(!$.realpath)return J(null,aa.resolve(D));$.fs.realpath(D,J)}function nW(D,$,J){let X=L5(D,$);$.fs.mkdir(X,(Y)=>{if(!Y)return Rv.probe(X,$.fs,(Q,U,F)=>{if(Q)return $.fs.rmdir(X,()=>{}),J(Q);J(null,U,F)});if(Y.code!=="EEXIST")return J(Y);if($.stale<=0)return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));$.fs.stat(X,(Q,U)=>{if(Q){if(Q.code==="ENOENT")return nW(D,{...$,stale:0},J);return J(Q)}if(!Mv(U,$))return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));Av(D,$,(F)=>{if(F)return J(F);nW(D,{...$,stale:0},J)})})})}function Mv(D,$){return D.mtime.getTime()<Date.now()-$.stale}function Av(D,$,J){$.fs.rmdir(L5(D,$),(X)=>{if(X&&X.code!=="ENOENT")return J(X);J()})}function tJ(D,$){let J=C6[D];if(J.updateTimeout)return;if(J.updateDelay=J.updateDelay||$.update,J.updateTimeout=setTimeout(()=>{J.updateTimeout=null,$.fs.stat(J.lockfilePath,(X,Y)=>{let Q=J.lastUpdate+$.stale<Date.now();if(X){if(X.code==="ENOENT"||Q)return pW(D,J,Object.assign(X,{code:"ECOMPROMISED"}));return J.updateDelay=1000,tJ(D,$)}if(J.mtime.getTime()!==Y.mtime.getTime())return pW(D,J,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let F=Rv.getMtime(J.mtimePrecision);$.fs.utimes(J.lockfilePath,F,F,(W)=>{let K=J.lastUpdate+$.stale<Date.now();if(J.released)return;if(W){if(W.code==="ENOENT"||K)return pW(D,J,Object.assign(W,{code:"ECOMPROMISED"}));return J.updateDelay=1000,tJ(D,$)}J.mtime=F,J.lastUpdate=Date.now(),J.updateDelay=null,tJ(D,$)})})},J.updateDelay),J.updateTimeout.unref)J.updateTimeout.unref()}function pW(D,$,J){if($.released=!0,$.updateTimeout)clearTimeout($.updateTimeout);if(C6[D]===$)delete C6[D];$.options.onCompromised(J)}function Ds(D,$,J){$={stale:1e4,update:null,realpath:!0,retries:0,fs:rW,onCompromised:(X)=>{throw X},...$},$.retries=$.retries||0,$.retries=typeof $.retries==="number"?{retries:$.retries}:$.retries,$.stale=Math.max($.stale||0,2000),$.update=$.update==null?$.stale/2:$.update||0,$.update=Math.max(Math.min($.update,$.stale/2),1000),tW(D,$,(X,Y)=>{if(X)return J(X);let Q=sa.operation($.retries);Q.attempt(()=>{nW(Y,$,(U,F,W)=>{if(Q.retry(U))return;if(U)return J(Q.mainError());let K=C6[Y]={lockfilePath:L5(Y,$),mtime:F,mtimePrecision:W,options:$,lastUpdate:Date.now()};tJ(Y,$),J(null,(q)=>{if(K.released)return q&&q(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));vv(Y,{...$,realpath:!1},q)})})})})}function vv(D,$,J){$={fs:rW,realpath:!0,...$},tW(D,$,(X,Y)=>{if(X)return J(X);let Q=C6[Y];if(!Q)return J(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));Q.updateTimeout&&clearTimeout(Q.updateTimeout),Q.released=!0,delete C6[Y],Av(Y,$,J)})}function $s(D,$,J){$={stale:1e4,realpath:!0,fs:rW,...$},$.stale=Math.max($.stale||0,2000),tW(D,$,(X,Y)=>{if(X)return J(X);$.fs.stat(L5(Y,$),(Q,U)=>{if(Q)return Q.code==="ENOENT"?J(null,!1):J(Q);return J(null,!Mv(U,$))})})}function Js(){return C6}ea(()=>{for(let D in C6){let $=C6[D].options;try{$.fs.rmdirSync(L5(D,$))}catch(J){}}});Xs.lock=Ds;Xs.unlock=vv;Xs.check=$s;Xs.getLocks=Js});var Pv=S((qwD,Tv)=>{var Ws=U1();function Ks(D){let $=["mkdir","realpath","stat","rmdir","utimes"],J={...D};return $.forEach((X)=>{J[X]=(...Y)=>{let Q=Y.pop(),U;try{U=D[`${X}Sync`](...Y)}catch(F){return Q(F)}Q(null,U)}}),J}function qs(D){return(...$)=>new Promise((J,X)=>{$.push((Y,Q)=>{if(Y)X(Y);else J(Q)}),D(...$)})}function Gs(D){return(...$)=>{let J,X;if($.push((Y,Q)=>{J=Y,X=Q}),D(...$),J)throw J;return X}}function Zs(D){if(D={...D},D.fs=Ks(D.fs||Ws),typeof D.retries==="number"&&D.retries>0||D.retries&&typeof D.retries.retries==="number"&&D.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return D}Tv.exports={toPromise:qs,toSync:Gs,toSyncOptions:Zs}});var Sv=S((GwD,W1)=>{var e8=Ev(),{toPromise:oJ,toSync:aJ,toSyncOptions:oW}=Pv();async function bv(D,$){let J=await oJ(e8.lock)(D,$);return oJ(J)}function zs(D,$){let J=aJ(e8.lock)(D,oW($));return aJ(J)}function Hs(D,$){return oJ(e8.unlock)(D,$)}function Is(D,$){return aJ(e8.unlock)(D,oW($))}function Bs(D,$){return oJ(e8.check)(D,$)}function Os(D,$){return aJ(e8.check)(D,oW($))}W1.exports=bv;W1.exports.lock=bv;W1.exports.unlock=Hs;W1.exports.lockSync=zs;W1.exports.unlockSync=Is;W1.exports.check=Bs;W1.exports.checkSync=Os});var fv=S((gv)=>{Object.defineProperty(gv,"__esModule",{value:!0});gv.canStoreURLs=gv.FileUrlStorage=void 0;var Cv=XD("fs"),Ns=ws(Uv()),kv=Vs(Sv());function uv(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(uv=function(X){return X?J:$})(D)}function Vs(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=uv($);if(J&&J.has(D))return J.get(D);var X={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in D)if(Q!=="default"&&{}.hasOwnProperty.call(D,Q)){var U=Y?Object.getOwnPropertyDescriptor(D,Q):null;U&&(U.get||U.set)?Object.defineProperty(X,Q,U):X[Q]=D[Q]}return X.default=D,J&&J.set(D,X),X}function ws(D){return D&&D.__esModule?D:{default:D}}function M5(D){return M5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},M5(D)}function js(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function _v(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,Rs(X.key),X)}}function Ls(D,$,J){if($)_v(D.prototype,$);if(J)_v(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Rs(D){var $=Ms(D,"string");return M5($)=="symbol"?$:$+""}function Ms(D,$){if(M5(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if(M5(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var ZwD=gv.canStoreURLs=!0,zwD=gv.FileUrlStorage=function(){function D($){js(this,D),this.path=$}return Ls(D,[{key:"findAllUploads",value:function(){var J=this;return new Promise(function(X,Y){J._getItems("tus::",function(Q,U){if(Q)Y(Q);else X(U)})})}},{key:"findUploadsByFingerprint",value:function(J){var X=this;return new Promise(function(Y,Q){X._getItems("tus::".concat(J),function(U,F){if(U)Q(U);else Y(F)})})}},{key:"removeUpload",value:function(J){var X=this;return new Promise(function(Y,Q){X._removeItem(J,function(U){if(U)Q(U);else Y()})})}},{key:"addUpload",value:function(J,X){var Y=this,Q=Math.round(Math.random()*1000000000000),U="tus::".concat(J,"::").concat(Q);return new Promise(function(F,W){Y._setItem(U,X,function(K){if(K)W(K);else F(U)})})}},{key:"_setItem",value:function(J,X,Y){var Q=this;kv.lock(this.path,this._lockfileOptions()).then(function(U){Y=Q._releaseAndCb(U,Y),Q._getData(function(F,W){if(F){Y(F);return}W[J]=X,Q._writeData(W,function(K){return Y(K)})})}).catch(Y)}},{key:"_getItems",value:function(J,X){this._getData(function(Y,Q){if(Y){X(Y);return}var U=Object.keys(Q).filter(function(F){return F.startsWith(J)}).map(function(F){var W=Q[F];return W.urlStorageKey=F,W});X(null,U)})}},{key:"_removeItem",value:function(J,X){var Y=this;kv.lock(this.path,this._lockfileOptions()).then(function(Q){X=Y._releaseAndCb(Q,X),Y._getData(function(U,F){if(U){X(U);return}delete F[J],Y._writeData(F,function(W){return X(W)})})}).catch(X)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(J,X){return function(Y){if(Y){J().then(function(){return X(Y)}).catch(function(Q){return X((0,Ns.default)([Y,Q]))});return}J().then(X).catch(X)}}},{key:"_writeData",value:function(J,X){var Y={encoding:"utf8",mode:432,flag:"w"};(0,Cv.writeFile)(this.path,JSON.stringify(J),Y,function(Q){return X(Q)})}},{key:"_getData",value:function(J){(0,Cv.readFile)(this.path,"utf8",function(X,Y){if(X){if(X.code==="ENOENT")J(null,{});else J(X);return}try{Y=!Y.trim().length?{}:JSON.parse(Y)}catch(Q){J(Q);return}J(null,Y)})}}])}()});var tv=S((K1)=>{Object.defineProperty(K1,"__esModule",{value:!0});Object.defineProperty(K1,"DefaultHttpStack",{enumerable:!0,get:function(){return lv.default}});Object.defineProperty(K1,"DetailedError",{enumerable:!0,get:function(){return vs.default}});Object.defineProperty(K1,"FileUrlStorage",{enumerable:!0,get:function(){return dv.FileUrlStorage}});Object.defineProperty(K1,"StreamSource",{enumerable:!0,get:function(){return Ss.default}});K1.Upload=void 0;Object.defineProperty(K1,"canStoreURLs",{enumerable:!0,get:function(){return dv.canStoreURLs}});K1.defaultOptions=void 0;Object.defineProperty(K1,"enableDebugLog",{enumerable:!0,get:function(){return Es.enableDebugLog}});K1.isSupported=void 0;var vs=H4(tF()),Es=oF(),Ts=H4(SR()),aW=H4(qM()),Ps=H4(bM()),bs=H4(uM()),lv=H4(aM()),Ss=H4(FW()),dv=fv();function H4(D){return D&&D.__esModule?D:{default:D}}function $2(D){return $2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},$2(D)}function Cs(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function yv(D,$){for(var J=0;J<$.length;J++){var X=$[J];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(D,cv(X.key),X)}}function ks(D,$,J){if($)yv(D.prototype,$);if(J)yv(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function _s(D,$,J){return $=sJ($),us(D,iv()?Reflect.construct($,J||[],sJ(D).constructor):$.apply(D,J))}function us(D,$){if($&&($2($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return gs(D)}function gs(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function iv(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(iv=function(){return!!D})()}function sJ(D){return sJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},sJ(D)}function xs(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)sW(D,$)}function sW(D,$){return sW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,Y){return X.__proto__=Y,X},sW(D,$)}function hv(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(D);$&&(X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(D,Y).enumerable})),J.push.apply(J,X)}return J}function D2(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?hv(Object(J),!0).forEach(function(X){fs(D,X,J[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):hv(Object(J)).forEach(function(X){Object.defineProperty(D,X,Object.getOwnPropertyDescriptor(J,X))})}return D}function fs(D,$,J){if($=cv($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function cv(D){var $=ys(D,"string");return $2($)=="symbol"?$:$+""}function ys(D,$){if($2(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var X=J.call(D,$||"default");if($2(X)!="object")return X;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var mv=K1.defaultOptions=D2(D2({},aW.default.defaultOptions),{},{httpStack:new lv.default,fileReader:new Ps.default,urlStorage:new Ts.default,fingerprint:bs.default}),IwD=K1.Upload=function(D){function $(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Cs(this,$),X=D2(D2({},mv),X),_s(this,$,[J,X])}return xs($,D),ks($,null,[{key:"terminate",value:function(X){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Y=D2(D2({},mv),Y),aW.default.terminate(X,Y)}}])}(aW.default),BwD=K1.isSupported=!0});import{execFileSync as is}from"child_process";import cs from"path";function ls(D,$){if($===void 0)return!0;if(typeof $==="string")return D===$;if($ instanceof RegExp)return $.test(D);return $(D)}function ds(D,$,J){return{agent:{id:D.id,name:D.name},strategy:"environment",signal:$.name,value:J}}function rs(D,$){let J=[],X=av($.command);for(let Y of D)for(let Q of Y.process??[]){if(!Q.pattern.test(X))continue;J.push(ts(Y,Q,{...$,command:X}))}return J}function ts(D,$,J){return{agent:{id:D.id,name:D.name},strategy:"process-tree",signal:$.pattern.toString(),value:`${J.pid}:${J.command}`}}function ov(D,$){try{return is("ps",["-o",`${$}=`,"-p",String(D)],{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return""}}function av(D){return cs.basename(D.trim()).replace(/^-+/,"")}function sv(D={}){let $=D.agents??hs,J=D.strategies??os(D.experimentalProcessTree),X={env:D.env??process.env,pid:D.pid??process.pid,agents:$,maxProcessDepth:D.maxProcessDepth??20},Y=J.flatMap((U)=>U.detect(X)),Q=as($,Y,X.env);if(Q===void 0)return{detected:!1};return{detected:!0,agent:Q}}function os(D=!1){let $=[new ms];if(D)$.push(new ns);return $}function as(D,$,J){let X=new Set($.map((Y)=>Y.agent.id));for(let Y of D){if(!X.has(Y.id))continue;return{id:Y.id,name:Y.name,...ss(Y,J)}}return}function ss(D,$){for(let J of D.sessionEnv??[]){let X=$[J];if(X!==void 0&&X.length>0)return{sessionId:X}}return{}}var hs,ms=class{name="environment";detect(D){let $=[];for(let J of D.agents)for(let X of J.env??[]){let Y=D.env[X.name];if(Y===void 0||!ls(Y,X.value))continue;$.push(ds(J,X,Y))}return $}},ps=class{read(D){let $=ov(D,"comm"),J=Number.parseInt(ov(D,"ppid"),10);if(!$||!Number.isInteger(J))return;return{pid:D,ppid:J,command:av($)}}},ns=class{constructor(D=new ps){this.reader=D}reader;name="process-tree";detect(D){let $=[],J=D.pid;for(let X=0;X<D.maxProcessDepth;X+=1){let Y=this.reader.read(J);if(Y===void 0)break;if($.push(...rs(D.agents,Y)),Y.ppid===void 0||Y.ppid<=1||Y.ppid===J)break;J=Y.ppid}return $}};var ev=C(()=>{hs=[{id:"codex",name:"Codex",env:[{name:"CODEX_CI",value:"1"},{name:"CODEX_SHELL",value:"1"},{name:"CODEX_THREAD_ID"}],process:[{pattern:/^codex$/i}],sessionEnv:["CODEX_THREAD_ID"]},{id:"cursor",name:"Cursor",env:[{name:"CURSOR_AGENT",value:"1"},{name:"CURSOR_CONVERSATION_ID"}],process:[{pattern:/^cursor$/i}],sessionEnv:["CURSOR_CONVERSATION_ID"]},{id:"claude-code",name:"Claude Code",env:[{name:"CLAUDECODE",value:"1"},{name:"CLAUDE_CODE_SESSION_ID"}],process:[{pattern:/^claude$/i}],sessionEnv:["CLAUDE_CODE_SESSION_ID"]},{id:"opencode",name:"OpenCode",env:[{name:"OPENCODE",value:"1"},{name:"OPENCODE_PID"}],process:[{pattern:/^opencode$/i}]},{id:"devin",name:"Devin",process:[{pattern:/devin/i}]},{id:"gemini",name:"Gemini CLI",env:[{name:"GEMINI_CLI",value:"1"}],process:[{pattern:/^gemini$/i}]},{id:"antigravity",name:"Antigravity",env:[{name:"ANTIGRAVITY_AGENT",value:"1"},{name:"ANTIGRAVITY_TRAJECTORY_ID"}],process:[{pattern:/^antigravity$/i}],sessionEnv:["ANTIGRAVITY_TRAJECTORY_ID"]},{id:"bolt",name:"Bolt",env:[{name:"BOLT_ENV"},{name:"BOLT_ORIGIN"},{name:"BOLT_SERVER_URL"}]},{id:"pi",name:"Pi",env:[{name:"PI_CODING_AGENT",value:"true"}]},{id:"replit",name:"Replit",env:[{name:"REPLIT_SESSION"}],sessionEnv:["REPLIT_SESSION"]},{id:"rork",name:"Rork",env:[{name:"RORK_API_URL"}]},{id:"kiro",name:"Kiro",env:[{name:"KIRO_SESSION_ID"}],process:[{pattern:/kiro/i}],sessionEnv:["KIRO_SESSION_ID"]},{id:"muse",name:"Muse Code",env:[{name:"MUSE_RELEASE_INFO"}]},{id:"cline",name:"Cline",env:[{name:"CLINE_WRAPPER_PATH"}],process:[{pattern:/^cline$/i}]},{id:"kilocode",name:"Kilo Code",env:[{name:"KILO",value:"1"},{name:"KILOCODE_VERSION"},{name:"KILO_RUN_ID"}],process:[{pattern:/^(kilo|kilocode)$/i}],sessionEnv:["KILO_RUN_ID"]},{id:"copilot",name:"GitHub Copilot CLI",env:[{name:"COPILOT_CLI",value:"1"},{name:"COPILOT_AGENT_SESSION_ID"},{name:"COPILOT_RUN_APP",value:"1"}],process:[{pattern:/^(github-copilot-cli|copilot)$/i}],sessionEnv:["COPILOT_AGENT_SESSION_ID"]}]});import{platform as es,release as De}from"node:os";import{arch as $e,env as Je,version as Xe}from"node:process";function TwD(D){eW=D}function PwD(){return eW}function DE(D=Je){let $=sv({env:D}),J={cli_version:r$.version,node_version:Xe,os_platform:es(),os_arch:$e,os_release:De(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:A5.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:eW,agent_invoker:$.detected};if($.detected&&$.agent)J.agent_identity=$.agent;if(A5.name)J.ci_provider=A5.name;return J}var A5,eW="cli";var $E=C(()=>{ev();H8();A5=w$(lF(),1)});import{AsyncLocalStorage as Ye}from"node:async_hooks";function CwD(D,$){return XE.run(D,()=>Promise.resolve($()))}function Qe(){return XE.getStore()}function kwD(){YE=!0}function QE(){return YE}function _wD(D){UE=D}function JE(D){try{UE?.(D)}catch{}}function gwD(D,$){let J;try{J=new URL(D).pathname}catch{J=D.split("?")[0]}let X="/functions/v1/",Y=J.indexOf(X);if(Y>=0){let K=J.slice(Y+X.length),q=0,G=K.length;while(q<G&&K[q]==="/")q+=1;while(G>q&&K[G-1]==="/")G-=1;let Z=K.slice(q,G);return Z?`${$} functions:${Z}`:`${$} functions`}let Q="/rest/v1/",U=J.indexOf(Q),F=U>=0?J.slice(U+Q.length):J.replace(/^\//,"");if(F.startsWith("rpc/"))return`rpc:${F.slice(4).split("/")[0]}`;let W=F.split("/")[0]||J;return`${$} ${W}`}function Ue(D){let $=D?.headers;if(!$)return;let J=$.get;if(typeof J==="function")return J.call($,"capgkey")??void 0;if(Array.isArray($))return $.find(([X])=>X.toLowerCase()==="capgkey")?.[1];return $.capgkey}function FE(){return async($,J)=>{let X=(J?.method??"GET").toUpperCase(),Y=typeof $==="string"?$:$ instanceof URL?$.href:$.url,Q=Qe(),U=Ue(J),F=Date.now();try{let W=await globalThis.fetch($,J);return JE({url:Y,method:X,status:W.status,ok:W.ok,durationMs:Date.now()-F,source:Q,apikey:U}),W}catch(W){throw JE({url:Y,method:X,status:0,ok:!1,durationMs:Date.now()-F,source:Q,apikey:U,error:W}),W}}}var XE,YE=!1,UE,uwD=5000;var WE=C(()=>{XE=new Ye});function Fe(D,$){if(!y9(D)||!y9($))return!1;return n1(o$(D),o$($))}function We(D,$,J){let X=J?.trim()?`
${J.trim()}`:"";return`This Capgo API requires @capgo/cli@${$} or newer. You are using @capgo/cli@${D}.${X}
Please update: npx @capgo/cli@latest`}function KE(D,$,J=!1){let X=$||r$.version,Y=D.minCliVersion?.trim();if(!Y||!Fe(X,Y))return;let Q=We(X,Y,D.minCliVersionReason);if(!J)lD.error(Q);throw new xD(Q,{minCliVersion:Y,currentVersion:X})}var qE=C(()=>{D1();AF();H8();c1()});function GE(D,$){let X=["normal","bold","dim","italic","underline","strikethrough"].indexOf(D),Y="\x1B[";return"\x1B["+X+"m"+$+"\x1B[0m"}var v5;var ZE=C(()=>{v5=class v5{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=v5.wideTheme;columnWidth(){let D=[this.headers,...this.rows].filter((J)=>J.length>0),$=D[0].map((J)=>this.cast(J).length);for(let J of D.slice(1))for(let X=0;X<$.length;X++){let Y=this.cast(J[X]).length;if(Y>$[X])$[X]=Y}return $}cast(D){if(typeof D==="object")return"obj";if(D!==void 0&&typeof D.toString==="function")return D.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine(D){let $=this.columnWidth();return D[0]+$.map((J)=>D[1].repeat(J)).join(D[2])+D[3]}renderCell(D,$,J=!1){let X=this.cast(D),Y=J?GE("bold",X):X,Q=$-X.length,U=this.theme.row[1];switch(typeof D){case"number":return U.repeat(Q)+Y;case"string":return Y+U.repeat(Q);case"boolean":case"object":return U.repeat(Math.ceil(Q/2))+GE("italic",X)+U.repeat(Math.floor(Q/2));default:return U.repeat(Q)}}renderRow(D,$=!1){let J=this.theme.row,X=this.columnWidth();return J[0]+D.map((Y,Q)=>this.renderCell(Y,X[Q],$)).join(J[2])+J[3]}toString(){let D=this.theme,$=this.headers.length>0,J=this.rows.length>0;return[this.title?this.renderTitle():"",$||J?this.renderLine(D.top):"",$?this.renderRow(this.headers,!0):"",$&&J?this.renderLine(D.div):"",...this.rows.map((X)=>this.renderRow(X)),$||J?this.renderLine(D.bot):""].filter((X)=>X.length>0).join(`
`)}}});var zE=C(()=>{ZE()});async function HE(D){try{let J=`https://registry.npmjs.org/${encodeURIComponent(D.toLowerCase())}`,X=await fetch(J,{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"}});if(!X.ok)return null;return(await X.json())["dist-tags"]?.latest||null}catch{return null}}async function Ke(){let D=await HE("@capgo/cli")??"",$=D?.split(".")[0]??"";return{currentVersion:r$.version,latestVersion:D,isOutdated:!!D&&D!==r$.version,majorVersion:$}}async function IE(D={warn:($)=>lD.warning($)}){let{isOutdated:$,currentVersion:J,latestVersion:X,majorVersion:Y}=await Ke();if($)D.warn(`\uD83D\uDEA8 You are using @capgo/cli@${J} it's not the latest version.
Please use @capgo/cli@${X}" or @capgo/cli@${Y} to keep up to date with the latest features and bug fixes.`)}var BE=C(()=>{D1();H8()});function NE(D,$,J=new Date,X=300000){return{appId:D,devicesId:$?[$]:void 0,order:[{key:"created_at",sortable:"desc"}],rangeStart:new Date(J.getTime()-X).toISOString()}}function VE(D,$=!1){if($)return!1;let J=D.replace(/\r|\n/g,"");return J==="c"||J==="C"}var OE=5000,DK="Press C to continue if you already verified the update in the Capgo dashboard";var Ne={};y0(Ne,{waitLog:()=>LE,sendCliEvent:()=>J2,getStats:()=>jE,debugApp:()=>Oe,cancelCommand:()=>wE});import qe from"node:process";function Ge(D,$){return new Promise((J)=>{if($?.aborted){J();return}let X=()=>{clearTimeout(Y),J()},Y=setTimeout(()=>{$?.removeEventListener("abort",X),J()},D);$?.addEventListener("abort",X,{once:!0})})}function Ze(D){return new Date(D||"").toLocaleTimeString()}function ze(D,$){let J=D,X=J?.cause?.name,Y=J?.cause?.code||J?.code,Q=(J?.message||"").toLowerCase();if(Y==="UND_ERR_CONNECT_TIMEOUT"||X==="UND_ERR_CONNECT_TIMEOUT"||/connect timeout/.test(Q)||/timed out/.test(Q))return`Cannot reach ${$} (connection timeout after 10s). Check VPN/firewall/network rules or update API host settings in capacitor.config.json.`;if(Y==="ENOTFOUND"||Y==="ECONNREFUSED"||Q.includes("fetch failed"))return`Cannot reach ${$} (network error). Verify internet connectivity and that ${$} is reachable from this machine.`;if(Q.startsWith("http error! status: "))return J?.message||"Capgo API returned an HTTP error.";return m0(D)}async function J2(D,$,J,X,Y,Q){await X2(J,{channel:D,event:X,org_id:$,tracking_version:2,...Y||Q?{tags:{...Y?{"app-id":Y}:{},...Q}}:{}})}async function wE(D,$,J,X){if(!p1($))return;throw await J2(D,J,X,"canceled"),lD.warn("Command cancelled"),new xD("Command cancelled")}async function jE(D,$,J,X){let Q=`${(await I4()).hostApi}/private/stats`;try{let U=J?{...$,rangeStart:J}:{...$},F=await fetch(Q,{method:"POST",headers:K6({"Content-Type":"application/json",capgkey:D}),body:JSON.stringify(U),signal:X});if(!F.ok)throw Error(`HTTP error! status: ${F.status}`);let W=await F.json();if(W?.length>0)return W}catch(U){if(X?.aborted||U instanceof Error&&U.name==="AbortError")return[];lD.error(`Cannot get stats: ${ze(U,Q)}`)}return[]}function He(D){let $={get:{summary:()=>"Update request by device. Waiting for download…",level:"info",trackingEvent:"done"},delete:{summary:()=>"Bundle deleted on device",level:"info"},set:{summary:()=>"Bundle set on device ❤️",level:"info",trackingEvent:"set",stop:!0},NoChannelOrOverride:{summary:()=>"No default channel/override; create it in channel settings",level:"error"},needPlanUpgrade:{summary:({baseUrl:J})=>`Out of quota. Upgrade plan: ${J}/settings/organization/plans`,level:"error"},missingBundle:{summary:()=>"Requested bundle not found on server",level:"error"},noNew:{summary:()=>"Device already has latest available version",level:"info"},disablePlatformIos:{summary:()=>"iOS platform disabled in channel",level:"error"},disablePlatformAndroid:{summary:()=>"Android platform disabled in channel",level:"error"},disableAutoUpdate:{summary:()=>"Automatic updates disabled in channel",level:"error"},disableAutoUpdateToMajor:{summary:()=>"Auto-update to major versions disabled",level:"error"},disableAutoUpdateToMinor:{summary:()=>"Auto-update to minor versions disabled",level:"error"},disableAutoUpdateToPatch:{summary:()=>"Auto-update to patch versions disabled",level:"error"},disableAutoUpdateUnderNative:{summary:()=>"Channel update version is lower than device native",level:"error"},disableDevBuild:{summary:()=>"Dev build updates disabled in channel",level:"error"},disableProdBuild:{summary:()=>"Prod build updates disabled in channel",level:"error"},disableEmulator:{summary:()=>"Emulator updates disabled in channel",level:"error"},disableDevice:{summary:()=>"Physical device updates disabled in channel",level:"error"},cannotGetBundle:{summary:()=>"Cannot retrieve bundle from channel",level:"error"},cannotUpdateViaPrivateChannel:{summary:()=>"No access to private channel",level:"error"},channelMisconfigured:{summary:()=>"Channel configuration invalid or incomplete",level:"error"},disableAutoUpdateMetadata:{summary:()=>"Auto-update on metadata disabled",level:"error"},set_fail:{summary:()=>"Bundle set failed. Possibly corrupted",level:"error"},reset:{summary:()=>"Device reset to builtin bundle",level:"warn"},update_fail:{summary:()=>"Installed bundle failed to call notifyAppReady",level:"error"},checksum_fail:{summary:()=>"Downloaded bundle checksum validation failed",level:"error"},windows_path_fail:{summary:()=>"Bundle contains illegal Windows-style paths",level:"error"},canonical_path_fail:{summary:()=>"Bundle contains non-canonical paths",level:"error"},directory_path_fail:{summary:()=>"Bundle ZIP contains invalid directory paths",level:"error"},unzip_fail:{summary:()=>"Failed to unzip bundle on device",level:"error"},low_mem_fail:{summary:()=>"Download failed due to low device memory",level:"error"},app_moved_to_background:{summary:()=>"App moved to background",level:"info"},app_moved_to_foreground:{summary:()=>"App moved to foreground",level:"info"},decrypt_fail:{summary:()=>"Failed to decrypt downloaded bundle",level:"error"},getChannel:{summary:()=>"Queried current channel on device",level:"info"},setChannel:{summary:()=>"Channel set on device",level:"info"},InvalidIp:{summary:()=>"Device appears in Google datacenter; blocking recent updates (<4h)",level:"warn"},uninstall:{summary:()=>"App uninstalled or Capgo data cleared on device",level:"warn"}};if(D.action.startsWith("download_")){let J=D.action.split("_")[1];if(J==="complete")return{summary:()=>"Download complete; relaunch app to apply",level:"info",trackingEvent:"downloaded"};if(J==="fail")return{summary:()=>"Download failed on device",level:"error"};return{summary:()=>`Downloading ${J}%`,level:"info"}}return $[D.action]||null}async function Ie(D,$,J,X,Y,Q){let U=He(D);if(!U)return{};if(U.trackingEvent)await J2($,J,X,U.trackingEvent);let F=Ze(D.created_at),W=D.action,K=D.version_id?`(version #${D.version_id})`:"",q=D.version?` (version ${D.version})`:K,G=`${U.summary({data:D,baseAppUrl:Y,baseUrl:Q})}${q}`;return{row:[F,D.device_id,W,G],stop:U.stop}}function Be(D){return new Promise(($)=>{let J=qe.stdin,X=Boolean(J.isTTY&&typeof J.setRawMode==="function"),Y=X?J.isRaw:void 0,Q=J.readableFlowing===!0,U=()=>{W(),$()},F=(K)=>{let q=String(K);if(q==="\x03"||VE(q))U()},W=()=>{if(J.off("data",F),D.removeEventListener("abort",U),X&&Y!==void 0)J.setRawMode(Y);if(!Q)J.pause()};if(D.addEventListener("abort",U,{once:!0}),X)J.setRawMode(!0),J.resume();if(J.isTTY)J.on("data",F)})}async function LE(D,$,J,X,Y={}){let Q=await I4(),U=`${Q.hostWeb}/app/${J}`;await J2(D,X,$,"Use waitlog",J);let F=NE(J,Y.deviceId,Y.now,Y.lookbackMs),W=null,K=new Set,q=Y.spinner??N8(),G=Y.logInfo??((j)=>{lD.info(j)}),Z=Y.sleep??Ge,H=Y.pollMs??OE,z=`${Q.host}/docs/plugins/updater/debugging/#sent-from-the-backend`,I=`Waiting for logs (expect ~30s delay). ${DK}. More info: ${z}`;q.start(I);let B=new AbortController,N=Y.waitForSkip?Y.waitForSkip(B.signal):Be(B.signal),O=(async()=>{let j=!0;while(!B.signal.aborted){if(!j)await Z(H,B.signal);if(j=!1,B.signal.aborted)return"aborted";let v=await jE($,F,W,B.signal);if(B.signal.aborted)return"aborted";if(v.length===0)continue;let A=v.reduce((y,T)=>{let d=new Date(T.created_at).getTime();return Math.max(y,d)},W?new Date(W).getTime():0);if(A>0)W=new Date(A).toISOString();let k=v.filter((y)=>{let T=`${y.app_id}|${y.device_id}|${y.action}|${y.version_id}|${y.created_at}`;if(K.has(T))return!1;return K.add(T),!0}).sort((y,T)=>new Date(y.created_at).getTime()-new Date(T.created_at).getTime()),u=new v5;u.headers=["Time","Device","Key","Message"],u.theme=v5.roundTheme,u.rows=[];let _=!1;for(let y of k){let{row:T,stop:d}=await Ie(y,D,X,$,U,Q.hostWeb);if(T)u.rows.push(T);if(d)_=!0}if(B.signal.aborted)return"aborted";if(u.rows.length){if(q.stop(""),G(u.toString()),!_)q.start(I)}if(_)return"set"}return"aborted"})();try{let j=await Promise.race([O,N.then(()=>"skip")]);if(B.abort(),await O,j==="skip")return q.stop("Skipped waiting for logs"),G("You can confirm the update in the Capgo dashboard anytime."),{skipped:!0};return q.stop("Stop watching logs"),{skipped:!1}}catch(j){throw B.abort(),await O.catch(()=>{return}),q.stop("Stop watching logs"),j}}async function Oe(D,$){f3("Debug Live update in Capgo"),await IE(),$.apikey=$.apikey||ME();let J=await $K();D=vE(D,J?.config);let X=$.device;if(!$.apikey)throw lD.error("Missing API key, you need to provide an API key to delete your app"),Error("Missing API key");if(!D)throw lD.error("Missing argument, you need to provide a appId, or be in a capacitor project"),new xD("Missing appId");let Y=await AE($.apikey,D,{supaHost:$.supaHost,supaAnon:$.supaAnon}),Q=await O8({message:"Automatic check if update working in device ?"});if(await wE("debug",Q,Y,$.apikey),Q)lD.info(`Wait logs sent to Capgo from ${D} device, Please background your app and open it again \uD83D\uDCAA`),lD.info(DK),await LE("debug",$.apikey,D,Y,{deviceId:X}),_9("Done ✅");else _9("Canceled ❌")}var RE=C(()=>{D1();zE();T3();BE();c1();JK()});import{AsyncLocalStorage as Ve}from"node:async_hooks";function WjD(){return XK.getStore()??EE}function TE(){let D=XK.getStore();return D===EE?void 0:D}function KjD(D,$){if(!D)return $();return XK.run(D,$)}var EE,XK;var PE=C(()=>{D1();EE={info:(D)=>lD.info(D),warn:(D)=>lD.warn(D),error:(D)=>lD.error(D),success:(D)=>lD.success(D),intro:f3,outro:_9,spinner:N8},XK=new Ve});var SE=S((GjD,bE)=>{var Y2=1000,Q2=Y2*60,U2=Q2*60,B4=U2*24,we=B4*7,je=B4*365.25;bE.exports=function(D,$){$=$||{};var J=typeof D;if(J==="string"&&D.length>0)return Le(D);else if(J==="number"&&isFinite(D))return $.long?Me(D):Re(D);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(D))};function Le(D){if(D=String(D),D.length>100)return;var $=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(D);if(!$)return;var J=parseFloat($[1]),X=($[2]||"ms").toLowerCase();switch(X){case"years":case"year":case"yrs":case"yr":case"y":return J*je;case"weeks":case"week":case"w":return J*we;case"days":case"day":case"d":return J*B4;case"hours":case"hour":case"hrs":case"hr":case"h":return J*U2;case"minutes":case"minute":case"mins":case"min":case"m":return J*Q2;case"seconds":case"second":case"secs":case"sec":case"s":return J*Y2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function Re(D){var $=Math.abs(D);if($>=B4)return Math.round(D/B4)+"d";if($>=U2)return Math.round(D/U2)+"h";if($>=Q2)return Math.round(D/Q2)+"m";if($>=Y2)return Math.round(D/Y2)+"s";return D+"ms"}function Me(D){var $=Math.abs(D);if($>=B4)return eJ(D,$,B4,"day");if($>=U2)return eJ(D,$,U2,"hour");if($>=Q2)return eJ(D,$,Q2,"minute");if($>=Y2)return eJ(D,$,Y2,"second");return D+" ms"}function eJ(D,$,J,X){var Y=$>=J*1.5;return Math.round(D/J)+" "+X+(Y?"s":"")}});var YK=S((ZjD,CE)=>{function Ae(D){J.debug=J,J.default=J,J.coerce=W,J.disable=U,J.enable=Y,J.enabled=F,J.humanize=SE(),J.destroy=K,Object.keys(D).forEach((q)=>{J[q]=D[q]}),J.names=[],J.skips=[],J.formatters={};function $(q){let G=0;for(let Z=0;Z<q.length;Z++)G=(G<<5)-G+q.charCodeAt(Z),G|=0;return J.colors[Math.abs(G)%J.colors.length]}J.selectColor=$;function J(q){let G,Z=null,H,z;function I(...B){if(!I.enabled)return;let N=I,V=Number(new Date),O=V-(G||V);if(N.diff=O,N.prev=G,N.curr=V,G=V,B[0]=J.coerce(B[0]),typeof B[0]!=="string")B.unshift("%O");let j=0;B[0]=B[0].replace(/%([a-zA-Z%])/g,(A,k)=>{if(A==="%%")return"%";j++;let u=J.formatters[k];if(typeof u==="function"){let _=B[j];A=u.call(N,_),B.splice(j,1),j--}return A}),J.formatArgs.call(N,B),(N.log||J.log).apply(N,B)}if(I.namespace=q,I.useColors=J.useColors(),I.color=J.selectColor(q),I.extend=X,I.destroy=J.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(Z!==null)return Z;if(H!==J.namespaces)H=J.namespaces,z=J.enabled(q);return z},set:(B)=>{Z=B}}),typeof J.init==="function")J.init(I);return I}function X(q,G){let Z=J(this.namespace+(typeof G>"u"?":":G)+q);return Z.log=this.log,Z}function Y(q){J.save(q),J.namespaces=q,J.names=[],J.skips=[];let G=(typeof q==="string"?q:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let Z of G)if(Z[0]==="-")J.skips.push(Z.slice(1));else J.names.push(Z)}function Q(q,G){let Z=0,H=0,z=-1,I=0;while(Z<q.length)if(H<G.length&&(G[H]===q[Z]||G[H]==="*"))if(G[H]==="*")z=H,I=Z,H++;else Z++,H++;else if(z!==-1)H=z+1,I++,Z=I;else return!1;while(H<G.length&&G[H]==="*")H++;return H===G.length}function U(){let q=[...J.names,...J.skips.map((G)=>"-"+G)].join(",");return J.enable(""),q}function F(q){for(let G of J.skips)if(Q(q,G))return!1;for(let G of J.names)if(Q(q,G))return!0;return!1}function W(q){if(q instanceof Error)return q.stack||q.message;return q}function K(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}CE.exports=Ae});var _E=S((kE,DX)=>{kE.formatArgs=Ee;kE.save=Te;kE.load=Pe;kE.useColors=ve;kE.storage=be();kE.destroy=(()=>{let D=!1;return()=>{if(!D)D=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();kE.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 ve(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let D;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(D=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(D[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ee(D){if(D[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+D[0]+(this.useColors?"%c ":" ")+"+"+DX.exports.humanize(this.diff),!this.useColors)return;let $="color: "+this.color;D.splice(1,0,$,"color: inherit");let J=0,X=0;D[0].replace(/%[a-zA-Z%]/g,(Y)=>{if(Y==="%%")return;if(J++,Y==="%c")X=J}),D.splice(X,0,$)}kE.log=console.debug||console.log||(()=>{});function Te(D){try{if(D)kE.storage.setItem("debug",D);else kE.storage.removeItem("debug")}catch($){}}function Pe(){let D;try{D=kE.storage.getItem("debug")||kE.storage.getItem("DEBUG")}catch($){}if(!D&&typeof process<"u"&&"env"in process)D=process.env.DEBUG;return D}function be(){try{return localStorage}catch(D){}}DX.exports=YK()(kE);var{formatters:Se}=DX.exports;Se.j=function(D){try{return JSON.stringify(D)}catch($){return"[UnexpectedJSONParseError]: "+$.message}}});var gE=S((HjD,uE)=>{uE.exports=(D,$=process.argv)=>{let J=D.startsWith("-")?"":D.length===1?"-":"--",X=$.indexOf(J+D),Y=$.indexOf("--");return X!==-1&&(Y===-1||X<Y)}});var yE=S((IjD,fE)=>{var ye=XD("os"),xE=XD("tty"),m$=gE(),{env:M0}=process,q1;if(m$("no-color")||m$("no-colors")||m$("color=false")||m$("color=never"))q1=0;else if(m$("color")||m$("colors")||m$("color=true")||m$("color=always"))q1=1;if("FORCE_COLOR"in M0)if(M0.FORCE_COLOR==="true")q1=1;else if(M0.FORCE_COLOR==="false")q1=0;else q1=M0.FORCE_COLOR.length===0?1:Math.min(parseInt(M0.FORCE_COLOR,10),3);function QK(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function UK(D,$){if(q1===0)return 0;if(m$("color=16m")||m$("color=full")||m$("color=truecolor"))return 3;if(m$("color=256"))return 2;if(D&&!$&&q1===void 0)return 0;let J=q1||0;if(M0.TERM==="dumb")return J;if(process.platform==="win32"){let X=ye.release().split(".");if(Number(X[0])>=10&&Number(X[2])>=10586)return Number(X[2])>=14931?3:2;return 1}if("CI"in M0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((X)=>(X in M0))||M0.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in M0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(M0.TEAMCITY_VERSION)?1:0;if(M0.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in M0){let X=parseInt((M0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(M0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(M0.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(M0.TERM))return 1;if("COLORTERM"in M0)return 1;return J}function he(D){let $=UK(D,D&&D.isTTY);return QK($)}fE.exports={supportsColor:he,stdout:QK(UK(!0,xE.isatty(1))),stderr:QK(UK(!0,xE.isatty(2)))}});var dE=S((mE,JX)=>{var me=XD("tty"),$X=XD("util");mE.init=re;mE.log=ce;mE.formatArgs=de;mE.save=pe;mE.load=ne;mE.useColors=le;mE.destroy=$X.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mE.colors=[6,2,3,4,5,1];try{let D=yE();if(D&&(D.stderr||D).level>=2)mE.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(D){}mE.inspectOpts=Object.keys(process.env).filter((D)=>{return/^debug_/i.test(D)}).reduce((D,$)=>{let J=$.substring(6).toLowerCase().replace(/_([a-z])/g,(Y,Q)=>{return Q.toUpperCase()}),X=process.env[$];if(/^(yes|on|true|enabled)$/i.test(X))X=!0;else if(/^(no|off|false|disabled)$/i.test(X))X=!1;else if(X==="null")X=null;else X=Number(X);return D[J]=X,D},{});function le(){return"colors"in mE.inspectOpts?Boolean(mE.inspectOpts.colors):me.isatty(process.stderr.fd)}function de(D){let{namespace:$,useColors:J}=this;if(J){let X=this.color,Y="\x1B[3"+(X<8?X:"8;5;"+X),Q=` ${Y};1m${$} \x1B[0m`;D[0]=Q+D[0].split(`
`).join(`
`+Q),D.push(Y+"m+"+JX.exports.humanize(this.diff)+"\x1B[0m")}else D[0]=ie()+$+" "+D[0]}function ie(){if(mE.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function ce(...D){return process.stderr.write($X.formatWithOptions(mE.inspectOpts,...D)+`
`)}function pe(D){if(D)process.env.DEBUG=D;else delete process.env.DEBUG}function ne(){return process.env.DEBUG}function re(D){D.inspectOpts={};let $=Object.keys(mE.inspectOpts);for(let J=0;J<$.length;J++)D.inspectOpts[$[J]]=mE.inspectOpts[$[J]]}JX.exports=YK()(mE);var{formatters:hE}=JX.exports;hE.o=function(D){return this.inspectOpts.colors=this.useColors,$X.inspect(D,this.inspectOpts).split(`
`).map(($)=>$.trim()).join(" ")};hE.O=function(D){return this.inspectOpts.colors=this.useColors,$X.inspect(D,this.inspectOpts)}});var WK=S((OjD,FK)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)FK.exports=_E();else FK.exports=dE()});var A0=S((JDD)=>{JDD.fromCallback=function(D){return Object.defineProperty(function(...$){if(typeof $[$.length-1]==="function")D.apply(this,$);else return new Promise((J,X)=>{$.push((Y,Q)=>Y!=null?X(Y):J(Q)),D.apply(this,$)})},"name",{value:D.name})};JDD.fromPromise=function(D){return Object.defineProperty(function(...$){let J=$[$.length-1];if(typeof J!=="function")return D.apply(this,$);else $.pop(),D.apply(this,$).then((X)=>J(null,X),J)},"name",{value:D.name})}});var a0=S((KK)=>{var iE=A0().fromCallback,o0=U1(),QDD=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((D)=>{return typeof o0[D]==="function"});Object.assign(KK,o0);QDD.forEach((D)=>{KK[D]=iE(o0[D])});KK.exists=function(D,$){if(typeof $==="function")return o0.exists(D,$);return new Promise((J)=>{return o0.exists(D,J)})};KK.read=function(D,$,J,X,Y,Q){if(typeof Q==="function")return o0.read(D,$,J,X,Y,Q);return new Promise((U,F)=>{o0.read(D,$,J,X,Y,(W,K,q)=>{if(W)return F(W);U({bytesRead:K,buffer:q})})})};KK.write=function(D,$,...J){if(typeof J[J.length-1]==="function")return o0.write(D,$,...J);return new Promise((X,Y)=>{o0.write(D,$,...J,(Q,U,F)=>{if(Q)return Y(Q);X({bytesWritten:U,buffer:F})})})};KK.readv=function(D,$,...J){if(typeof J[J.length-1]==="function")return o0.readv(D,$,...J);return new Promise((X,Y)=>{o0.readv(D,$,...J,(Q,U,F)=>{if(Q)return Y(Q);X({bytesRead:U,buffers:F})})})};KK.writev=function(D,$,...J){if(typeof J[J.length-1]==="function")return o0.writev(D,$,...J);return new Promise((X,Y)=>{o0.writev(D,$,...J,(Q,U,F)=>{if(Q)return Y(Q);X({bytesWritten:U,buffers:F})})})};if(typeof o0.realpath.native==="function")KK.realpath.native=iE(o0.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var pE=S((ZDD,cE)=>{var GDD=XD("path");ZDD.checkPath=function($){if(process.platform==="win32"){if(/[<>:"|?*]/.test($.replace(GDD.parse($).root,""))){let X=Error(`Path contains invalid characters: ${$}`);throw X.code="EINVAL",X}}}});var oE=S((HDD,qK)=>{var nE=a0(),{checkPath:rE}=pE(),tE=(D)=>{let $={mode:511};if(typeof D==="number")return D;return{...$,...D}.mode};HDD.makeDir=async(D,$)=>{return rE(D),nE.mkdir(D,{mode:tE($),recursive:!0})};HDD.makeDirSync=(D,$)=>{return rE(D),nE.mkdirSync(D,{mode:tE($),recursive:!0})}});var e$=S((jjD,aE)=>{var ODD=A0().fromPromise,{makeDir:NDD,makeDirSync:GK}=oE(),ZK=ODD(NDD);aE.exports={mkdirs:ZK,mkdirsSync:GK,mkdirp:ZK,mkdirpSync:GK,ensureDir:ZK,ensureDirSync:GK}});var G1=S((LjD,eE)=>{var VDD=A0().fromPromise,sE=a0();function wDD(D){return sE.access(D).then(()=>!0).catch(()=>!1)}eE.exports={pathExists:VDD(wDD),pathExistsSync:sE.existsSync}});var zK=S((RjD,DT)=>{var F2=a0(),jDD=A0().fromPromise;async function LDD(D,$,J){let X=await F2.open(D,"r+"),Y=null;try{await F2.futimes(X,$,J)}catch(Q){Y=Q}finally{try{await F2.close(X)}catch(Q){if(!Y)Y=Q}}if(Y)throw Y}function RDD(D,$,J){let X=F2.openSync(D,"r+"),Y=null;try{F2.futimesSync(X,$,J)}catch(Q){Y=Q}finally{try{F2.closeSync(X)}catch(Q){if(!Y)Y=Q}}if(Y)throw Y}DT.exports={utimesMillis:jDD(LDD),utimesMillisSync:RDD}});var N4=S((MjD,YT)=>{var W2=a0(),v0=XD("path"),$T=A0().fromPromise;function MDD(D,$,J){let X=J.dereference?(Y)=>W2.stat(Y,{bigint:!0}):(Y)=>W2.lstat(Y,{bigint:!0});return Promise.all([X(D),X($).catch((Y)=>{if(Y.code==="ENOENT")return null;throw Y})]).then(([Y,Q])=>({srcStat:Y,destStat:Q}))}function ADD(D,$,J){let X,Y=J.dereference?(U)=>W2.statSync(U,{bigint:!0}):(U)=>W2.lstatSync(U,{bigint:!0}),Q=Y(D);try{X=Y($)}catch(U){if(U.code==="ENOENT")return{srcStat:Q,destStat:null};throw U}return{srcStat:Q,destStat:X}}async function vDD(D,$,J,X){let{srcStat:Y,destStat:Q}=await MDD(D,$,X);if(Q){if(T5(Y,Q)){let U=v0.basename(D),F=v0.basename($);if(J==="move"&&U!==F&&U.toLowerCase()===F.toLowerCase())return{srcStat:Y,destStat:Q,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(Y.isDirectory()&&!Q.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!Y.isDirectory()&&Q.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(Y.isDirectory()&&HK(D,$))throw Error(XX(D,$,J));return{srcStat:Y,destStat:Q}}function EDD(D,$,J,X){let{srcStat:Y,destStat:Q}=ADD(D,$,X);if(Q){if(T5(Y,Q)){let U=v0.basename(D),F=v0.basename($);if(J==="move"&&U!==F&&U.toLowerCase()===F.toLowerCase())return{srcStat:Y,destStat:Q,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(Y.isDirectory()&&!Q.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!Y.isDirectory()&&Q.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(Y.isDirectory()&&HK(D,$))throw Error(XX(D,$,J));return{srcStat:Y,destStat:Q}}async function JT(D,$,J,X){let Y=v0.resolve(v0.dirname(D)),Q=v0.resolve(v0.dirname(J));if(Q===Y||Q===v0.parse(Q).root)return;let U;try{U=await W2.stat(Q,{bigint:!0})}catch(F){if(F.code==="ENOENT")return;throw F}if(T5($,U))throw Error(XX(D,J,X));return JT(D,$,Q,X)}function XT(D,$,J,X){let Y=v0.resolve(v0.dirname(D)),Q=v0.resolve(v0.dirname(J));if(Q===Y||Q===v0.parse(Q).root)return;let U;try{U=W2.statSync(Q,{bigint:!0})}catch(F){if(F.code==="ENOENT")return;throw F}if(T5($,U))throw Error(XX(D,J,X));return XT(D,$,Q,X)}function T5(D,$){return $.ino!==void 0&&$.dev!==void 0&&$.ino===D.ino&&$.dev===D.dev}function HK(D,$){let J=v0.resolve(D).split(v0.sep).filter((Y)=>Y),X=v0.resolve($).split(v0.sep).filter((Y)=>Y);return J.every((Y,Q)=>X[Q]===Y)}function XX(D,$,J){return`Cannot ${J} '${D}' to a subdirectory of itself, '${$}'.`}YT.exports={checkPaths:$T(vDD),checkPathsSync:EDD,checkParentPaths:$T(JT),checkParentPathsSync:XT,isSrcSubdir:HK,areIdentical:T5}});var UT=S((AjD,QT)=>{async function TDD(D,$){let J=[];for await(let X of D)J.push($(X).then(()=>null,(Y)=>Y??Error("unknown error")));await Promise.all(J.map((X)=>X.then((Y)=>{if(Y!==null)throw Y})))}QT.exports={asyncIteratorConcurrentProcess:TDD}});var GT=S((vjD,qT)=>{var l0=a0(),P5=XD("path"),{mkdirs:PDD}=e$(),{pathExists:bDD}=G1(),{utimesMillis:SDD}=zK(),b5=N4(),{asyncIteratorConcurrentProcess:CDD}=UT();async function kDD(D,$,J={}){if(typeof J==="function")J={filter:J};if(J.clobber="clobber"in J?!!J.clobber:!0,J.overwrite="overwrite"in J?!!J.overwrite:J.clobber,J.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:X,destStat:Y}=await b5.checkPaths(D,$,"copy",J);if(await b5.checkParentPaths(D,X,$,"copy"),!await WT(D,$,J))return;let U=P5.dirname($);if(!await bDD(U))await PDD(U);await KT(Y,D,$,J)}async function WT(D,$,J){if(!J.filter)return!0;return J.filter(D,$)}async function KT(D,$,J,X){let Q=await(X.dereference?l0.stat:l0.lstat)($);if(Q.isDirectory())return xDD(Q,D,$,J,X);if(Q.isFile()||Q.isCharacterDevice()||Q.isBlockDevice())return _DD(Q,D,$,J,X);if(Q.isSymbolicLink())return fDD(D,$,J,X);if(Q.isSocket())throw Error(`Cannot copy a socket file: ${$}`);if(Q.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}async function _DD(D,$,J,X,Y){if(!$)return FT(D,J,X,Y);if(Y.overwrite)return await l0.unlink(X),FT(D,J,X,Y);if(Y.errorOnExist)throw Error(`'${X}' already exists`)}async function FT(D,$,J,X){if(await l0.copyFile($,J),X.preserveTimestamps){if(uDD(D.mode))await gDD(J,D.mode);let Y=await l0.stat($);await SDD(J,Y.atime,Y.mtime)}return l0.chmod(J,D.mode)}function uDD(D){return(D&128)===0}function gDD(D,$){return l0.chmod(D,$|128)}async function xDD(D,$,J,X,Y){if(!$)await l0.mkdir(X);if(await CDD(await l0.opendir(J),async(Q)=>{let U=P5.join(J,Q.name),F=P5.join(X,Q.name);if(await WT(U,F,Y)){let{destStat:K}=await b5.checkPaths(U,F,"copy",Y);await KT(K,U,F,Y)}}),!$)await l0.chmod(X,D.mode)}async function fDD(D,$,J,X){let Y=await l0.readlink($);if(X.dereference)Y=P5.resolve(process.cwd(),Y);if(!D)return l0.symlink(Y,J);let Q=null;try{Q=await l0.readlink(J)}catch(U){if(U.code==="EINVAL"||U.code==="UNKNOWN")return l0.symlink(Y,J);throw U}if(X.dereference)Q=P5.resolve(process.cwd(),Q);if(Y!==Q){if(b5.isSrcSubdir(Y,Q))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${Q}'.`);if(b5.isSrcSubdir(Q,Y))throw Error(`Cannot overwrite '${Q}' with '${Y}'.`)}return await l0.unlink(J),l0.symlink(Y,J)}qT.exports=kDD});var BT=S((EjD,IT)=>{var s0=U1(),S5=XD("path"),yDD=e$().mkdirsSync,hDD=zK().utimesMillisSync,C5=N4();function mDD(D,$,J){if(typeof J==="function")J={filter:J};if(J=J||{},J.clobber="clobber"in J?!!J.clobber:!0,J.overwrite="overwrite"in J?!!J.overwrite:J.clobber,J.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:X,destStat:Y}=C5.checkPathsSync(D,$,"copy",J);if(C5.checkParentPathsSync(D,X,$,"copy"),J.filter&&!J.filter(D,$))return;let Q=S5.dirname($);if(!s0.existsSync(Q))yDD(Q);return ZT(Y,D,$,J)}function ZT(D,$,J,X){let Q=(X.dereference?s0.statSync:s0.lstatSync)($);if(Q.isDirectory())return rDD(Q,D,$,J,X);else if(Q.isFile()||Q.isCharacterDevice()||Q.isBlockDevice())return lDD(Q,D,$,J,X);else if(Q.isSymbolicLink())return aDD(D,$,J,X);else if(Q.isSocket())throw Error(`Cannot copy a socket file: ${$}`);else if(Q.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}function lDD(D,$,J,X,Y){if(!$)return zT(D,J,X,Y);return dDD(D,J,X,Y)}function dDD(D,$,J,X){if(X.overwrite)return s0.unlinkSync(J),zT(D,$,J,X);else if(X.errorOnExist)throw Error(`'${J}' already exists`)}function zT(D,$,J,X){if(s0.copyFileSync($,J),X.preserveTimestamps)iDD(D.mode,$,J);return IK(J,D.mode)}function iDD(D,$,J){if(cDD(D))pDD(J,D);return nDD($,J)}function cDD(D){return(D&128)===0}function pDD(D,$){return IK(D,$|128)}function IK(D,$){return s0.chmodSync(D,$)}function nDD(D,$){let J=s0.statSync(D);return hDD($,J.atime,J.mtime)}function rDD(D,$,J,X,Y){if(!$)return tDD(D.mode,J,X,Y);return HT(J,X,Y)}function tDD(D,$,J,X){return s0.mkdirSync(J),HT($,J,X),IK(J,D)}function HT(D,$,J){let X=s0.opendirSync(D);try{let Y;while((Y=X.readSync())!==null)oDD(Y.name,D,$,J)}finally{X.closeSync()}}function oDD(D,$,J,X){let Y=S5.join($,D),Q=S5.join(J,D);if(X.filter&&!X.filter(Y,Q))return;let{destStat:U}=C5.checkPathsSync(Y,Q,"copy",X);return ZT(U,Y,Q,X)}function aDD(D,$,J,X){let Y=s0.readlinkSync($);if(X.dereference)Y=S5.resolve(process.cwd(),Y);if(!D)return s0.symlinkSync(Y,J);else{let Q;try{Q=s0.readlinkSync(J)}catch(U){if(U.code==="EINVAL"||U.code==="UNKNOWN")return s0.symlinkSync(Y,J);throw U}if(X.dereference)Q=S5.resolve(process.cwd(),Q);if(Y!==Q){if(C5.isSrcSubdir(Y,Q))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${Q}'.`);if(C5.isSrcSubdir(Q,Y))throw Error(`Cannot overwrite '${Q}' with '${Y}'.`)}return sDD(Y,J)}}function sDD(D,$){return s0.unlinkSync($),s0.symlinkSync(D,$)}IT.exports=mDD});var YX=S((TjD,OT)=>{var eDD=A0().fromPromise;OT.exports={copy:eDD(GT()),copySync:BT()}});var k5=S((PjD,VT)=>{var NT=U1(),D0D=A0().fromCallback;function $0D(D,$){NT.rm(D,{recursive:!0,force:!0},$)}function J0D(D){NT.rmSync(D,{recursive:!0,force:!0})}VT.exports={remove:D0D($0D),removeSync:J0D}});var ET=S((bjD,vT)=>{var X0D=A0().fromPromise,LT=a0(),RT=XD("path"),MT=e$(),AT=k5(),wT=X0D(async function($){let J;try{J=await LT.readdir($)}catch{return MT.mkdirs($)}return Promise.all(J.map((X)=>AT.remove(RT.join($,X))))});function jT(D){let $;try{$=LT.readdirSync(D)}catch{return MT.mkdirsSync(D)}$.forEach((J)=>{J=RT.join(D,J),AT.removeSync(J)})}vT.exports={emptyDirSync:jT,emptydirSync:jT,emptyDir:wT,emptydir:wT}});var ST=S((SjD,bT)=>{var Y0D=A0().fromPromise,TT=XD("path"),k6=a0(),PT=e$();async function Q0D(D){let $;try{$=await k6.stat(D)}catch{}if($&&$.isFile())return;let J=TT.dirname(D),X=null;try{X=await k6.stat(J)}catch(Y){if(Y.code==="ENOENT"){await PT.mkdirs(J),await k6.writeFile(D,"");return}else throw Y}if(X.isDirectory())await k6.writeFile(D,"");else await k6.readdir(J)}function U0D(D){let $;try{$=k6.statSync(D)}catch{}if($&&$.isFile())return;let J=TT.dirname(D);try{if(!k6.statSync(J).isDirectory())k6.readdirSync(J)}catch(X){if(X&&X.code==="ENOENT")PT.mkdirsSync(J);else throw X}k6.writeFileSync(D,"")}bT.exports={createFile:Y0D(Q0D),createFileSync:U0D}});var gT=S((CjD,uT)=>{var F0D=A0().fromPromise,CT=XD("path"),Z1=a0(),kT=e$(),{pathExists:W0D}=G1(),{areIdentical:_T}=N4();async function K0D(D,$){let J;try{J=await Z1.lstat($,{bigint:!0})}catch{}let X;try{X=await Z1.lstat(D,{bigint:!0})}catch(U){throw U.message=U.message.replace("lstat","ensureLink"),U}if(J&&_T(X,J))return;let Y=CT.dirname($);if(!await W0D(Y))await kT.mkdirs(Y);await Z1.link(D,$)}function q0D(D,$){let J;try{J=Z1.lstatSync($,{bigint:!0})}catch{}try{let Q=Z1.lstatSync(D,{bigint:!0});if(J&&_T(Q,J))return}catch(Q){throw Q.message=Q.message.replace("lstat","ensureLink"),Q}let X=CT.dirname($);if(Z1.existsSync(X))return Z1.linkSync(D,$);return kT.mkdirsSync(X),Z1.linkSync(D,$)}uT.exports={createLink:F0D(K0D),createLinkSync:q0D}});var fT=S((kjD,xT)=>{var z1=XD("path"),_5=a0(),{pathExists:G0D}=G1(),Z0D=A0().fromPromise;async function z0D(D,$){if(z1.isAbsolute(D)){try{await _5.lstat(D)}catch(Q){throw Q.message=Q.message.replace("lstat","ensureSymlink"),Q}return{toCwd:D,toDst:D}}let J=z1.dirname($),X=z1.join(J,D);if(await G0D(X))return{toCwd:X,toDst:D};try{await _5.lstat(D)}catch(Q){throw Q.message=Q.message.replace("lstat","ensureSymlink"),Q}return{toCwd:D,toDst:z1.relative(J,D)}}function H0D(D,$){if(z1.isAbsolute(D)){if(!_5.existsSync(D))throw Error("absolute srcpath does not exist");return{toCwd:D,toDst:D}}let J=z1.dirname($),X=z1.join(J,D);if(_5.existsSync(X))return{toCwd:X,toDst:D};if(!_5.existsSync(D))throw Error("relative srcpath does not exist");return{toCwd:D,toDst:z1.relative(J,D)}}xT.exports={symlinkPaths:Z0D(z0D),symlinkPathsSync:H0D}});var mT=S((_jD,hT)=>{var yT=a0(),I0D=A0().fromPromise;async function B0D(D,$){if($)return $;let J;try{J=await yT.lstat(D)}catch{return"file"}return J&&J.isDirectory()?"dir":"file"}function O0D(D,$){if($)return $;let J;try{J=yT.lstatSync(D)}catch{return"file"}return J&&J.isDirectory()?"dir":"file"}hT.exports={symlinkType:I0D(B0D),symlinkTypeSync:O0D}});var iT=S((ujD,dT)=>{var N0D=A0().fromPromise,H1=XD("path"),z$=a0(),{mkdirs:V0D,mkdirsSync:w0D}=e$(),{symlinkPaths:j0D,symlinkPathsSync:L0D}=fT(),{symlinkType:R0D,symlinkTypeSync:M0D}=mT(),{pathExists:A0D}=G1(),{areIdentical:lT}=N4();async function v0D(D,$,J){let X;try{X=await z$.lstat($)}catch{}if(X&&X.isSymbolicLink()){let F;if(H1.isAbsolute(D))F=await z$.stat(D,{bigint:!0});else{let K=H1.dirname($),q=H1.join(K,D);try{F=await z$.stat(q,{bigint:!0})}catch{F=await z$.stat(D,{bigint:!0})}}let W=await z$.stat($,{bigint:!0});if(lT(F,W))return}let Y=await j0D(D,$);D=Y.toDst;let Q=await R0D(Y.toCwd,J),U=H1.dirname($);if(!await A0D(U))await V0D(U);return z$.symlink(D,$,Q)}function E0D(D,$,J){let X;try{X=z$.lstatSync($)}catch{}if(X&&X.isSymbolicLink()){let F;if(H1.isAbsolute(D))F=z$.statSync(D,{bigint:!0});else{let K=H1.dirname($),q=H1.join(K,D);try{F=z$.statSync(q,{bigint:!0})}catch{F=z$.statSync(D,{bigint:!0})}}let W=z$.statSync($,{bigint:!0});if(lT(F,W))return}let Y=L0D(D,$);D=Y.toDst,J=M0D(Y.toCwd,J);let Q=H1.dirname($);if(z$.existsSync(Q))return z$.symlinkSync(D,$,J);return w0D(Q),z$.symlinkSync(D,$,J)}dT.exports={createSymlink:N0D(v0D),createSymlinkSync:E0D}});var sT=S((gjD,aT)=>{var{createFile:cT,createFileSync:pT}=ST(),{createLink:nT,createLinkSync:rT}=gT(),{createSymlink:tT,createSymlinkSync:oT}=iT();aT.exports={createFile:cT,createFileSync:pT,ensureFile:cT,ensureFileSync:pT,createLink:nT,createLinkSync:rT,ensureLink:nT,ensureLinkSync:rT,createSymlink:tT,createSymlinkSync:oT,ensureSymlink:tT,ensureSymlinkSync:oT}});var QX=S((xjD,eT)=>{function T0D(D,{EOL:$=`
`,finalEOL:J=!0,replacer:X=null,spaces:Y}={}){let Q=J?$:"",U=JSON.stringify(D,X,Y);if(U===void 0)throw TypeError(`Converting ${typeof D} value to JSON is not supported`);return U.replace(/\n/g,$)+Q}function P0D(D){if(Buffer.isBuffer(D))D=D.toString("utf8");return D.replace(/^\uFEFF/,"")}eT.exports={stringify:T0D,stripBom:P0D}});var XP=S((fjD,JP)=>{var K2;try{K2=U1()}catch(D){K2=XD("fs")}var UX=A0(),{stringify:DP,stripBom:$P}=QX();async function b0D(D,$={}){if(typeof $==="string")$={encoding:$};let J=$.fs||K2,X="throws"in $?$.throws:!0,Y=await UX.fromCallback(J.readFile)(D,$);Y=$P(Y);let Q;try{Q=JSON.parse(Y,$?$.reviver:null)}catch(U){if(X)throw U.message=`${D}: ${U.message}`,U;else return null}return Q}var S0D=UX.fromPromise(b0D);function C0D(D,$={}){if(typeof $==="string")$={encoding:$};let J=$.fs||K2,X="throws"in $?$.throws:!0;try{let Y=J.readFileSync(D,$);return Y=$P(Y),JSON.parse(Y,$.reviver)}catch(Y){if(X)throw Y.message=`${D}: ${Y.message}`,Y;else return null}}async function k0D(D,$,J={}){let X=J.fs||K2,Y=DP($,J);await UX.fromCallback(X.writeFile)(D,Y,J)}var _0D=UX.fromPromise(k0D);function u0D(D,$,J={}){let X=J.fs||K2,Y=DP($,J);return X.writeFileSync(D,Y,J)}JP.exports={readFile:S0D,readFileSync:C0D,writeFile:_0D,writeFileSync:u0D}});var QP=S((yjD,YP)=>{var FX=XP();YP.exports={readJson:FX.readFile,readJsonSync:FX.readFileSync,writeJson:FX.writeFile,writeJsonSync:FX.writeFileSync}});var WX=S((hjD,WP)=>{var g0D=A0().fromPromise,BK=a0(),UP=XD("path"),FP=e$(),x0D=G1().pathExists;async function f0D(D,$,J="utf-8"){let X=UP.dirname(D);if(!await x0D(X))await FP.mkdirs(X);return BK.writeFile(D,$,J)}function y0D(D,...$){let J=UP.dirname(D);if(!BK.existsSync(J))FP.mkdirsSync(J);BK.writeFileSync(D,...$)}WP.exports={outputFile:g0D(f0D),outputFileSync:y0D}});var qP=S((mjD,KP)=>{var{stringify:h0D}=QX(),{outputFile:m0D}=WX();async function l0D(D,$,J={}){let X=h0D($,J);await m0D(D,X,J)}KP.exports=l0D});var ZP=S((ljD,GP)=>{var{stringify:d0D}=QX(),{outputFileSync:i0D}=WX();function c0D(D,$,J){let X=d0D($,J);i0D(D,X,J)}GP.exports=c0D});var HP=S((djD,zP)=>{var p0D=A0().fromPromise,e0=QP();e0.outputJson=p0D(qP());e0.outputJsonSync=ZP();e0.outputJSON=e0.outputJson;e0.outputJSONSync=e0.outputJsonSync;e0.writeJSON=e0.writeJson;e0.writeJSONSync=e0.writeJsonSync;e0.readJSON=e0.readJson;e0.readJSONSync=e0.readJsonSync;zP.exports=e0});var VP=S((ijD,NP)=>{var n0D=a0(),IP=XD("path"),{copy:r0D}=YX(),{remove:OP}=k5(),{mkdirp:t0D}=e$(),{pathExists:o0D}=G1(),BP=N4();async function a0D(D,$,J={}){let X=J.overwrite||J.clobber||!1,{srcStat:Y,isChangingCase:Q=!1}=await BP.checkPaths(D,$,"move",J);await BP.checkParentPaths(D,Y,$,"move");let U=IP.dirname($);if(IP.parse(U).root!==U)await t0D(U);return s0D(D,$,X,Q)}async function s0D(D,$,J,X){if(!X){if(J)await OP($);else if(await o0D($))throw Error("dest already exists.")}try{await n0D.rename(D,$)}catch(Y){if(Y.code!=="EXDEV")throw Y;await e0D(D,$,J)}}async function e0D(D,$,J){return await r0D(D,$,{overwrite:J,errorOnExist:!0,preserveTimestamps:!0}),OP(D)}NP.exports=a0D});var MP=S((cjD,RP)=>{var jP=U1(),NK=XD("path"),D$D=YX().copySync,LP=k5().removeSync,$$D=e$().mkdirpSync,wP=N4();function J$D(D,$,J){J=J||{};let X=J.overwrite||J.clobber||!1,{srcStat:Y,isChangingCase:Q=!1}=wP.checkPathsSync(D,$,"move",J);if(wP.checkParentPathsSync(D,Y,$,"move"),!X$D($))$$D(NK.dirname($));return Y$D(D,$,X,Q)}function X$D(D){let $=NK.dirname(D);return NK.parse($).root===$}function Y$D(D,$,J,X){if(X)return OK(D,$,J);if(J)return LP($),OK(D,$,J);if(jP.existsSync($))throw Error("dest already exists.");return OK(D,$,J)}function OK(D,$,J){try{jP.renameSync(D,$)}catch(X){if(X.code!=="EXDEV")throw X;return Q$D(D,$,J)}}function Q$D(D,$,J){return D$D(D,$,{overwrite:J,errorOnExist:!0,preserveTimestamps:!0}),LP(D)}RP.exports=J$D});var vP=S((pjD,AP)=>{var U$D=A0().fromPromise;AP.exports={move:U$D(VP()),moveSync:MP()}});var q2=S((njD,EP)=>{EP.exports={...a0(),...YX(),...ET(),...sT(),...HP(),...e$(),...vP(),...WX(),...G1(),...k5()}});var _P=S((rjD,kP)=>{var VK,PP,bP,SP,CP=!0;if(typeof process<"u")({FORCE_COLOR:VK,NODE_DISABLE_COLORS:PP,NO_COLOR:bP,TERM:SP}=process.env||{}),CP=process.stdout&&process.stdout.isTTY;var dD={enabled:!PP&&bP==null&&SP!=="dumb"&&(VK!=null&&VK!=="0"||CP),reset:oD(0,0),bold:oD(1,22),dim:oD(2,22),italic:oD(3,23),underline:oD(4,24),inverse:oD(7,27),hidden:oD(8,28),strikethrough:oD(9,29),black:oD(30,39),red:oD(31,39),green:oD(32,39),yellow:oD(33,39),blue:oD(34,39),magenta:oD(35,39),cyan:oD(36,39),white:oD(37,39),gray:oD(90,39),grey:oD(90,39),bgBlack:oD(40,49),bgRed:oD(41,49),bgGreen:oD(42,49),bgYellow:oD(43,49),bgBlue:oD(44,49),bgMagenta:oD(45,49),bgCyan:oD(46,49),bgWhite:oD(47,49)};function TP(D,$){let J=0,X,Y="",Q="";for(;J<D.length;J++)if(X=D[J],Y+=X.open,Q+=X.close,~$.indexOf(X.close))$=$.replace(X.rgx,X.close+X.open);return Y+$+Q}function F$D(D,$){let J={has:D,keys:$};return J.reset=dD.reset.bind(J),J.bold=dD.bold.bind(J),J.dim=dD.dim.bind(J),J.italic=dD.italic.bind(J),J.underline=dD.underline.bind(J),J.inverse=dD.inverse.bind(J),J.hidden=dD.hidden.bind(J),J.strikethrough=dD.strikethrough.bind(J),J.black=dD.black.bind(J),J.red=dD.red.bind(J),J.green=dD.green.bind(J),J.yellow=dD.yellow.bind(J),J.blue=dD.blue.bind(J),J.magenta=dD.magenta.bind(J),J.cyan=dD.cyan.bind(J),J.white=dD.white.bind(J),J.gray=dD.gray.bind(J),J.grey=dD.grey.bind(J),J.bgBlack=dD.bgBlack.bind(J),J.bgRed=dD.bgRed.bind(J),J.bgGreen=dD.bgGreen.bind(J),J.bgYellow=dD.bgYellow.bind(J),J.bgBlue=dD.bgBlue.bind(J),J.bgMagenta=dD.bgMagenta.bind(J),J.bgCyan=dD.bgCyan.bind(J),J.bgWhite=dD.bgWhite.bind(J),J}function oD(D,$){let J={open:`\x1B[${D}m`,close:`\x1B[${$}m`,rgx:new RegExp(`\\x1b\\[${$}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return!!~this.has.indexOf(D)||(this.has.push(D),this.keys.push(J)),X===void 0?this:dD.enabled?TP(this.keys,X+""):X+"";return X===void 0?F$D([D],[J]):dD.enabled?TP([J],X+""):X+""}}kP.exports=dD});var G2=S((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.ancillary=uP.failure=uP.success=uP.input=uP.weak=uP.strong=void 0;var W$D=Z$(),B6=W$D.__importDefault(_P());uP.strong=B6.default.bold;uP.weak=B6.default.dim;uP.input=B6.default.cyan;uP.success=B6.default.green;uP.failure=B6.default.red;uP.ancillary=B6.default.cyan;var K$D={strong:uP.strong,weak:uP.weak,input:uP.input,success:uP.success,failure:uP.failure,ancillary:uP.ancillary,log:{DEBUG:B6.default.magenta,INFO:B6.default.cyan,WARN:B6.default.yellow,ERROR:B6.default.red}};uP.default=K$D});var jK=S((mP)=>{Object.defineProperty(mP,"__esModule",{value:!0});mP.EscapeCode=void 0;var D6="\x1B[";class S0{}mP.EscapeCode=S0;S0.cursorLeft=()=>`${D6}G`;S0.cursorUp=(D=1)=>`${D6}${D}A`;S0.cursorDown=(D=1)=>`${D6}${D}B`;S0.cursorForward=(D=1)=>`${D6}${D}C`;S0.cursorBackward=(D=1)=>`${D6}${D}D`;S0.cursorHide=()=>`${D6}?25l`;S0.cursorShow=()=>`${D6}?25h`;S0.eraseLine=()=>`${D6}2K`;S0.eraseLines=(D)=>{let $="";for(let J=0;J<D;J++)if($+=S0.eraseLine(),J<D-1)$+=S0.cursorUp();return`${$}${S0.cursorLeft()}`};S0.eraseUp=()=>`${D6}1J`;S0.eraseDown=()=>`${D6}J`;S0.eraseScreen=()=>`${D6}2J`});var pP=S((iP)=>{Object.defineProperty(iP,"__esModule",{value:!0});iP.Cursor=void 0;var G$D=Z$(),Z$D=G$D.__importDefault(iW()),dP=jK();class C0{static show(){if(C0.stream.isTTY)C0._isVisible=!0,C0.stream.write(dP.EscapeCode.cursorShow())}static hide(){if(C0.stream.isTTY){if(!C0._listenerAttached)(0,Z$D.default)(()=>{C0.show()}),C0._listenerAttached=!0;C0._isVisible=!1,C0.stream.write(dP.EscapeCode.cursorHide())}}static toggle(){if(C0._isVisible)C0.hide();else C0.show()}}iP.Cursor=C0;C0.stream=process.stderr;C0._isVisible=!0;C0._listenerAttached=!1});var RK=S((sjD,LK)=>{var nP=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};LK.exports=nP;LK.exports.default=nP});var tP=S((ejD,rP)=>{var z$D=(D)=>D&&D.exact?new RegExp(`^${"[\uD800-\uDBFF][\uDC00-\uDFFF]"}$`):new RegExp("[\uD800-\uDBFF][\uDC00-\uDFFF]","g");rP.exports=z$D});var aP=S((DLD,oP)=>{oP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var MK=S(($LD,eP)=>{var u5=aP(),sP={};for(let D of Object.keys(u5))sP[u5[D]]=D;var UD={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};eP.exports=UD;for(let D of Object.keys(UD)){if(!("channels"in UD[D]))throw Error("missing channels property: "+D);if(!("labels"in UD[D]))throw Error("missing channel labels property: "+D);if(UD[D].labels.length!==UD[D].channels)throw Error("channel and label counts mismatch: "+D);let{channels:$,labels:J}=UD[D];delete UD[D].channels,delete UD[D].labels,Object.defineProperty(UD[D],"channels",{value:$}),Object.defineProperty(UD[D],"labels",{value:J})}UD.rgb.hsl=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255,Y=Math.min($,J,X),Q=Math.max($,J,X),U=Q-Y,F,W;if(Q===Y)F=0;else if($===Q)F=(J-X)/U;else if(J===Q)F=2+(X-$)/U;else if(X===Q)F=4+($-J)/U;if(F=Math.min(F*60,360),F<0)F+=360;let K=(Y+Q)/2;if(Q===Y)W=0;else if(K<=0.5)W=U/(Q+Y);else W=U/(2-Q-Y);return[F,W*100,K*100]};UD.rgb.hsv=function(D){let $,J,X,Y,Q,U=D[0]/255,F=D[1]/255,W=D[2]/255,K=Math.max(U,F,W),q=K-Math.min(U,F,W),G=function(Z){return(K-Z)/6/q+0.5};if(q===0)Y=0,Q=0;else{if(Q=q/K,$=G(U),J=G(F),X=G(W),U===K)Y=X-J;else if(F===K)Y=0.3333333333333333+$-X;else if(W===K)Y=0.6666666666666666+J-$;if(Y<0)Y+=1;else if(Y>1)Y-=1}return[Y*360,Q*100,K*100]};UD.rgb.hwb=function(D){let $=D[0],J=D[1],X=D[2],Y=UD.rgb.hsl(D)[0],Q=0.00392156862745098*Math.min($,Math.min(J,X));return X=1-0.00392156862745098*Math.max($,Math.max(J,X)),[Y,Q*100,X*100]};UD.rgb.cmyk=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255,Y=Math.min(1-$,1-J,1-X),Q=(1-$-Y)/(1-Y)||0,U=(1-J-Y)/(1-Y)||0,F=(1-X-Y)/(1-Y)||0;return[Q*100,U*100,F*100,Y*100]};function H$D(D,$){return(D[0]-$[0])**2+(D[1]-$[1])**2+(D[2]-$[2])**2}UD.rgb.keyword=function(D){let $=sP[D];if($)return $;let J=1/0,X;for(let Y of Object.keys(u5)){let Q=u5[Y],U=H$D(D,Q);if(U<J)J=U,X=Y}return X};UD.keyword.rgb=function(D){return u5[D]};UD.rgb.xyz=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255;$=$>0.04045?(($+0.055)/1.055)**2.4:$/12.92,J=J>0.04045?((J+0.055)/1.055)**2.4:J/12.92,X=X>0.04045?((X+0.055)/1.055)**2.4:X/12.92;let Y=$*0.4124+J*0.3576+X*0.1805,Q=$*0.2126+J*0.7152+X*0.0722,U=$*0.0193+J*0.1192+X*0.9505;return[Y*100,Q*100,U*100]};UD.rgb.lab=function(D){let $=UD.rgb.xyz(D),J=$[0],X=$[1],Y=$[2];J/=95.047,X/=100,Y/=108.883,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,X=X>0.008856?X**0.3333333333333333:7.787*X+0.13793103448275862,Y=Y>0.008856?Y**0.3333333333333333:7.787*Y+0.13793103448275862;let Q=116*X-16,U=500*(J-X),F=200*(X-Y);return[Q,U,F]};UD.hsl.rgb=function(D){let $=D[0]/360,J=D[1]/100,X=D[2]/100,Y,Q,U;if(J===0)return U=X*255,[U,U,U];if(X<0.5)Y=X*(1+J);else Y=X+J-X*J;let F=2*X-Y,W=[0,0,0];for(let K=0;K<3;K++){if(Q=$+0.3333333333333333*-(K-1),Q<0)Q++;if(Q>1)Q--;if(6*Q<1)U=F+(Y-F)*6*Q;else if(2*Q<1)U=Y;else if(3*Q<2)U=F+(Y-F)*(0.6666666666666666-Q)*6;else U=F;W[K]=U*255}return W};UD.hsl.hsv=function(D){let $=D[0],J=D[1]/100,X=D[2]/100,Y=J,Q=Math.max(X,0.01);X*=2,J*=X<=1?X:2-X,Y*=Q<=1?Q:2-Q;let U=(X+J)/2,F=X===0?2*Y/(Q+Y):2*J/(X+J);return[$,F*100,U*100]};UD.hsv.rgb=function(D){let $=D[0]/60,J=D[1]/100,X=D[2]/100,Y=Math.floor($)%6,Q=$-Math.floor($),U=255*X*(1-J),F=255*X*(1-J*Q),W=255*X*(1-J*(1-Q));switch(X*=255,Y){case 0:return[X,W,U];case 1:return[F,X,U];case 2:return[U,X,W];case 3:return[U,F,X];case 4:return[W,U,X];case 5:return[X,U,F]}};UD.hsv.hsl=function(D){let $=D[0],J=D[1]/100,X=D[2]/100,Y=Math.max(X,0.01),Q,U;U=(2-J)*X;let F=(2-J)*Y;return Q=J*Y,Q/=F<=1?F:2-F,Q=Q||0,U/=2,[$,Q*100,U*100]};UD.hwb.rgb=function(D){let $=D[0]/360,J=D[1]/100,X=D[2]/100,Y=J+X,Q;if(Y>1)J/=Y,X/=Y;let U=Math.floor(6*$),F=1-X;if(Q=6*$-U,(U&1)!==0)Q=1-Q;let W=J+Q*(F-J),K,q,G;switch(U){default:case 6:case 0:K=F,q=W,G=J;break;case 1:K=W,q=F,G=J;break;case 2:K=J,q=F,G=W;break;case 3:K=J,q=W,G=F;break;case 4:K=W,q=J,G=F;break;case 5:K=F,q=J,G=W;break}return[K*255,q*255,G*255]};UD.cmyk.rgb=function(D){let $=D[0]/100,J=D[1]/100,X=D[2]/100,Y=D[3]/100,Q=1-Math.min(1,$*(1-Y)+Y),U=1-Math.min(1,J*(1-Y)+Y),F=1-Math.min(1,X*(1-Y)+Y);return[Q*255,U*255,F*255]};UD.xyz.rgb=function(D){let $=D[0]/100,J=D[1]/100,X=D[2]/100,Y,Q,U;return Y=$*3.2406+J*-1.5372+X*-0.4986,Q=$*-0.9689+J*1.8758+X*0.0415,U=$*0.0557+J*-0.204+X*1.057,Y=Y>0.0031308?1.055*Y**0.4166666666666667-0.055:Y*12.92,Q=Q>0.0031308?1.055*Q**0.4166666666666667-0.055:Q*12.92,U=U>0.0031308?1.055*U**0.4166666666666667-0.055:U*12.92,Y=Math.min(Math.max(0,Y),1),Q=Math.min(Math.max(0,Q),1),U=Math.min(Math.max(0,U),1),[Y*255,Q*255,U*255]};UD.xyz.lab=function(D){let $=D[0],J=D[1],X=D[2];$/=95.047,J/=100,X/=108.883,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,X=X>0.008856?X**0.3333333333333333:7.787*X+0.13793103448275862;let Y=116*J-16,Q=500*($-J),U=200*(J-X);return[Y,Q,U]};UD.lab.xyz=function(D){let $=D[0],J=D[1],X=D[2],Y,Q,U;Q=($+16)/116,Y=J/500+Q,U=Q-X/200;let F=Q**3,W=Y**3,K=U**3;return Q=F>0.008856?F:(Q-0.13793103448275862)/7.787,Y=W>0.008856?W:(Y-0.13793103448275862)/7.787,U=K>0.008856?K:(U-0.13793103448275862)/7.787,Y*=95.047,Q*=100,U*=108.883,[Y,Q,U]};UD.lab.lch=function(D){let $=D[0],J=D[1],X=D[2],Y;if(Y=Math.atan2(X,J)*360/2/Math.PI,Y<0)Y+=360;let U=Math.sqrt(J*J+X*X);return[$,U,Y]};UD.lch.lab=function(D){let $=D[0],J=D[1],Y=D[2]/360*2*Math.PI,Q=J*Math.cos(Y),U=J*Math.sin(Y);return[$,Q,U]};UD.rgb.ansi16=function(D,$=null){let[J,X,Y]=D,Q=$===null?UD.rgb.hsv(D)[2]:$;if(Q=Math.round(Q/50),Q===0)return 30;let U=30+(Math.round(Y/255)<<2|Math.round(X/255)<<1|Math.round(J/255));if(Q===2)U+=60;return U};UD.hsv.ansi16=function(D){return UD.rgb.ansi16(UD.hsv.rgb(D),D[2])};UD.rgb.ansi256=function(D){let $=D[0],J=D[1],X=D[2];if($===J&&J===X){if($<8)return 16;if($>248)return 231;return Math.round(($-8)/247*24)+232}return 16+36*Math.round($/255*5)+6*Math.round(J/255*5)+Math.round(X/255*5)};UD.ansi16.rgb=function(D){let $=D%10;if($===0||$===7){if(D>50)$+=3.5;return $=$/10.5*255,[$,$,$]}let J=(~~(D>50)+1)*0.5,X=($&1)*J*255,Y=($>>1&1)*J*255,Q=($>>2&1)*J*255;return[X,Y,Q]};UD.ansi256.rgb=function(D){if(D>=232){let Q=(D-232)*10+8;return[Q,Q,Q]}D-=16;let $,J=Math.floor(D/36)/5*255,X=Math.floor(($=D%36)/6)/5*255,Y=$%6/5*255;return[J,X,Y]};UD.rgb.hex=function(D){let J=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(J.length)+J};UD.hex.rgb=function(D){let $=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!$)return[0,0,0];let J=$[0];if($[0].length===3)J=J.split("").map((F)=>{return F+F}).join("");let X=parseInt(J,16),Y=X>>16&255,Q=X>>8&255,U=X&255;return[Y,Q,U]};UD.rgb.hcg=function(D){let $=D[0]/255,J=D[1]/255,X=D[2]/255,Y=Math.max(Math.max($,J),X),Q=Math.min(Math.min($,J),X),U=Y-Q,F,W;if(U<1)F=Q/(1-U);else F=0;if(U<=0)W=0;else if(Y===$)W=(J-X)/U%6;else if(Y===J)W=2+(X-$)/U;else W=4+($-J)/U;return W/=6,W%=1,[W*360,U*100,F*100]};UD.hsl.hcg=function(D){let $=D[1]/100,J=D[2]/100,X=J<0.5?2*$*J:2*$*(1-J),Y=0;if(X<1)Y=(J-0.5*X)/(1-X);return[D[0],X*100,Y*100]};UD.hsv.hcg=function(D){let $=D[1]/100,J=D[2]/100,X=$*J,Y=0;if(X<1)Y=(J-X)/(1-X);return[D[0],X*100,Y*100]};UD.hcg.rgb=function(D){let $=D[0]/360,J=D[1]/100,X=D[2]/100;if(J===0)return[X*255,X*255,X*255];let Y=[0,0,0],Q=$%1*6,U=Q%1,F=1-U,W=0;switch(Math.floor(Q)){case 0:Y[0]=1,Y[1]=U,Y[2]=0;break;case 1:Y[0]=F,Y[1]=1,Y[2]=0;break;case 2:Y[0]=0,Y[1]=1,Y[2]=U;break;case 3:Y[0]=0,Y[1]=F,Y[2]=1;break;case 4:Y[0]=U,Y[1]=0,Y[2]=1;break;default:Y[0]=1,Y[1]=0,Y[2]=F}return W=(1-J)*X,[(J*Y[0]+W)*255,(J*Y[1]+W)*255,(J*Y[2]+W)*255]};UD.hcg.hsv=function(D){let $=D[1]/100,J=D[2]/100,X=$+J*(1-$),Y=0;if(X>0)Y=$/X;return[D[0],Y*100,X*100]};UD.hcg.hsl=function(D){let $=D[1]/100,X=D[2]/100*(1-$)+0.5*$,Y=0;if(X>0&&X<0.5)Y=$/(2*X);else if(X>=0.5&&X<1)Y=$/(2*(1-X));return[D[0],Y*100,X*100]};UD.hcg.hwb=function(D){let $=D[1]/100,J=D[2]/100,X=$+J*(1-$);return[D[0],(X-$)*100,(1-X)*100]};UD.hwb.hcg=function(D){let $=D[1]/100,X=1-D[2]/100,Y=X-$,Q=0;if(Y<1)Q=(X-Y)/(1-Y);return[D[0],Y*100,Q*100]};UD.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};UD.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};UD.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};UD.gray.hsl=function(D){return[0,0,D[0]]};UD.gray.hsv=UD.gray.hsl;UD.gray.hwb=function(D){return[0,100,D[0]]};UD.gray.cmyk=function(D){return[0,0,0,D[0]]};UD.gray.lab=function(D){return[D[0],0,0]};UD.gray.hex=function(D){let $=Math.round(D[0]/100*255)&255,X=(($<<16)+($<<8)+$).toString(16).toUpperCase();return"000000".substring(X.length)+X};UD.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var $b=S((JLD,Db)=>{var KX=MK();function I$D(){let D={},$=Object.keys(KX);for(let J=$.length,X=0;X<J;X++)D[$[X]]={distance:-1,parent:null};return D}function B$D(D){let $=I$D(),J=[D];$[D].distance=0;while(J.length){let X=J.pop(),Y=Object.keys(KX[X]);for(let Q=Y.length,U=0;U<Q;U++){let F=Y[U],W=$[F];if(W.distance===-1)W.distance=$[X].distance+1,W.parent=X,J.unshift(F)}}return $}function O$D(D,$){return function(J){return $(D(J))}}function N$D(D,$){let J=[$[D].parent,D],X=KX[$[D].parent][D],Y=$[D].parent;while($[Y].parent)J.unshift($[Y].parent),X=O$D(KX[$[Y].parent][Y],X),Y=$[Y].parent;return X.conversion=J,X}Db.exports=function(D){let $=B$D(D),J={},X=Object.keys($);for(let Y=X.length,Q=0;Q<Y;Q++){let U=X[Q];if($[U].parent===null)continue;J[U]=N$D(U,$)}return J}});var Xb=S((XLD,Jb)=>{var AK=MK(),V$D=$b(),Z2={},w$D=Object.keys(AK);function j$D(D){let $=function(...J){let X=J[0];if(X===void 0||X===null)return X;if(X.length>1)J=X;return D(J)};if("conversion"in D)$.conversion=D.conversion;return $}function L$D(D){let $=function(...J){let X=J[0];if(X===void 0||X===null)return X;if(X.length>1)J=X;let Y=D(J);if(typeof Y==="object")for(let Q=Y.length,U=0;U<Q;U++)Y[U]=Math.round(Y[U]);return Y};if("conversion"in D)$.conversion=D.conversion;return $}w$D.forEach((D)=>{Z2[D]={},Object.defineProperty(Z2[D],"channels",{value:AK[D].channels}),Object.defineProperty(Z2[D],"labels",{value:AK[D].labels});let $=V$D(D);Object.keys($).forEach((X)=>{let Y=$[X];Z2[D][X]=L$D(Y),Z2[D][X].raw=j$D(Y)})});Jb.exports=Z2});var EK=S((YLD,Wb)=>{var Yb=(D,$)=>(...J)=>{return`\x1B[${D(...J)+$}m`},Qb=(D,$)=>(...J)=>{let X=D(...J);return`\x1B[${38+$};5;${X}m`},Ub=(D,$)=>(...J)=>{let X=D(...J);return`\x1B[${38+$};2;${X[0]};${X[1]};${X[2]}m`},qX=(D)=>D,Fb=(D,$,J)=>[D,$,J],z2=(D,$,J)=>{Object.defineProperty(D,$,{get:()=>{let X=J();return Object.defineProperty(D,$,{value:X,enumerable:!0,configurable:!0}),X},enumerable:!0,configurable:!0})},vK,H2=(D,$,J,X)=>{if(vK===void 0)vK=Xb();let Y=X?10:0,Q={};for(let[U,F]of Object.entries(vK)){let W=U==="ansi16"?"ansi":U;if(U===$)Q[W]=D(J,Y);else if(typeof F==="object")Q[W]=D(F[$],Y)}return Q};function R$D(){let D=new Map,$={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};$.color.gray=$.color.blackBright,$.bgColor.bgGray=$.bgColor.bgBlackBright,$.color.grey=$.color.blackBright,$.bgColor.bgGrey=$.bgColor.bgBlackBright;for(let[J,X]of Object.entries($)){for(let[Y,Q]of Object.entries(X))$[Y]={open:`\x1B[${Q[0]}m`,close:`\x1B[${Q[1]}m`},X[Y]=$[Y],D.set(Q[0],Q[1]);Object.defineProperty($,J,{value:X,enumerable:!1})}return Object.defineProperty($,"codes",{value:D,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",z2($.color,"ansi",()=>H2(Yb,"ansi16",qX,!1)),z2($.color,"ansi256",()=>H2(Qb,"ansi256",qX,!1)),z2($.color,"ansi16m",()=>H2(Ub,"rgb",Fb,!1)),z2($.bgColor,"ansi",()=>H2(Yb,"ansi16",qX,!0)),z2($.bgColor,"ansi256",()=>H2(Qb,"ansi256",qX,!0)),z2($.bgColor,"ansi16m",()=>H2(Ub,"rgb",Fb,!0)),$}Object.defineProperty(Wb,"exports",{enumerable:!0,get:R$D})});var zb=S((QLD,Zb)=>{var M$D=RK(),A$D=tP(),Kb=EK(),Gb=["\x1B",""],GX=(D)=>`${Gb[0]}[${D}m`,qb=(D,$,J)=>{let X=[];D=[...D];for(let Y of D){let Q=Y;if(Y.includes(";"))Y=Y.split(";")[0][0]+"0";let U=Kb.codes.get(Number.parseInt(Y,10));if(U){let F=D.indexOf(U.toString());if(F===-1)X.push(GX($?U:Q));else D.splice(F,1)}else if($){X.push(GX(0));break}else X.push(GX(Q))}if($){if(X=X.filter((Y,Q)=>X.indexOf(Y)===Q),J!==void 0){let Y=GX(Kb.codes.get(Number.parseInt(J,10)));X=X.reduce((Q,U)=>U===Y?[U,...Q]:[...Q,U],[])}}return X.join("")};Zb.exports=(D,$,J)=>{let X=[...D],Y=[],Q=typeof J==="number"?J:X.length,U=!1,F,W=0,K="";for(let[q,G]of X.entries()){let Z=!1;if(Gb.includes(G)){let H=/\d[^m]*/.exec(D.slice(q,q+18));if(F=H&&H.length>0?H[0]:void 0,W<Q){if(U=!0,F!==void 0)Y.push(F)}}else if(U&&G==="m")U=!1,Z=!0;if(!U&&!Z)W++;if(!A$D({exact:!0}).test(G)&&M$D(G.codePointAt())){if(W++,typeof J!=="number")Q++}if(W>$&&W<=Q)K+=G;else if(W===$&&!U&&F!==void 0)K=qb(Y);else if(W>=Q){K+=qb(Y,!0,F);break}}return K}});var Ib=S((ULD,Hb)=>{Hb.exports=({onlyFirst:D=!1}={})=>{let $=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp($,D?void 0:"g")}});var ZX=S((FLD,Bb)=>{var v$D=Ib();Bb.exports=(D)=>typeof D==="string"?D.replace(v$D(),""):D});var Nb=S((WLD,Ob)=>{Ob.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var PK=S((KLD,TK)=>{var E$D=ZX(),T$D=RK(),P$D=Nb(),Vb=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=E$D(D),D.length===0)return 0;D=D.replace(P$D()," ");let $=0;for(let J=0;J<D.length;J++){let X=D.codePointAt(J);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)J++;$+=T$D(X)?2:1}return $};TK.exports=Vb;TK.exports.default=Vb});var Rb=S((qLD,Lb)=>{var g5=PK(),b$D=ZX(),S$D=EK(),zX=new Set(["\x1B",""]),wb=(D)=>`${zX.values().next().value}[${D}m`,jb=(D)=>`${zX.values().next().value}]8;;${D}\x07`,C$D=(D)=>D.split(" ").map(($)=>g5($)),bK=(D,$,J)=>{let X=[...$],Y=!1,Q=!1,U=g5(b$D(D[D.length-1]));for(let[F,W]of X.entries()){let K=g5(W);if(U+K<=J)D[D.length-1]+=W;else D.push(W),U=0;if(zX.has(W))Y=!0,Q=X.slice(F+1).join("").startsWith("]8;;");if(Y){if(Q){if(W==="\x07")Y=!1,Q=!1}else if(W==="m")Y=!1;continue}if(U+=K,U===J&&F<X.length-1)D.push(""),U=0}if(!U&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},k$D=(D)=>{let $=D.split(" "),J=$.length;while(J>0){if(g5($[J-1])>0)break;J--}if(J===$.length)return D;return $.slice(0,J).join(" ")+$.slice(J).join("")},_$D=(D,$,J={})=>{if(J.trim!==!1&&D.trim()==="")return"";let X="",Y,Q,U=C$D(D),F=[""];for(let[K,q]of D.split(" ").entries()){if(J.trim!==!1)F[F.length-1]=F[F.length-1].trimStart();let G=g5(F[F.length-1]);if(K!==0){if(G>=$&&(J.wordWrap===!1||J.trim===!1))F.push(""),G=0;if(G>0||J.trim===!1)F[F.length-1]+=" ",G++}if(J.hard&&U[K]>$){let Z=$-G,H=1+Math.floor((U[K]-Z-1)/$);if(Math.floor((U[K]-1)/$)<H)F.push("");bK(F,q,$);continue}if(G+U[K]>$&&G>0&&U[K]>0){if(J.wordWrap===!1&&G<$){bK(F,q,$);continue}F.push("")}if(G+U[K]>$&&J.wordWrap===!1){bK(F,q,$);continue}F[F.length-1]+=q}if(J.trim!==!1)F=F.map(k$D);let W=[...F.join(`
`)];for(let[K,q]of W.entries()){if(X+=q,zX.has(q)){let{groups:Z}=new RegExp("(?:\\[(?<code>\\d+)m|\\]8;;(?<uri>.*)\x07)").exec(W.slice(K).join(""))||{groups:{}};if(Z.code!==void 0){let H=Number.parseFloat(Z.code);Y=H===39?void 0:H}else if(Z.uri!==void 0)Q=Z.uri.length===0?void 0:Z.uri}let G=S$D.codes.get(Number(Y));if(W[K+1]===`
`){if(Q)X+=jb("");if(Y&&G)X+=wb(G)}else if(q===`
`){if(Y&&G)X+=wb(Y);if(Q)X+=jb(Q)}}return X};Lb.exports=(D,$,J)=>{return String(D).normalize().replace(/\r\n/g,`
`).split(`
`).map((X)=>_$D(X,$,J)).join(`
`)}});var vb=S((GLD,Ab)=>{var u$D=XD("os"),Mb=u$D.homedir();Ab.exports=(D)=>{if(typeof D!=="string")throw TypeError(`Expected a string, got ${typeof D}`);return Mb?D.replace(/^~(?=$|\/|\\)/,Mb):D}});var ub=S((Cb)=>{Object.defineProperty(Cb,"__esModule",{value:!0});Cb.columnar=Cb.generateFillSpaceStringList=Cb.expandPath=Cb.prettyPath=Cb.wordWrap=Cb.indent=Cb.TTY_WIDTH=Cb.stripAnsi=Cb.stringWidth=Cb.sliceAnsi=void 0;var Eb=Z$(),g$D=Eb.__importStar(XD("os")),_6=Eb.__importStar(XD("path")),Tb=zb();Cb.sliceAnsi=Tb;var HX=PK();Cb.stringWidth=HX;var x$D=ZX();Cb.stripAnsi=x$D;var f$D=Rb(),y$D=vb(),h$D=80,m$D=120;Cb.TTY_WIDTH=process.stdout.columns?Math.max(h$D,Math.min(process.stdout.columns,m$D)):1/0;function Pb(D=4){return" ".repeat(D)}Cb.indent=Pb;function l$D(D,{width:$=Cb.TTY_WIDTH,indentation:J=0,append:X=""}){return f$D(D,$-J-X.length,{trim:!0}).split(`
`).join(`${X}
${Pb(J)}`)}Cb.wordWrap=l$D;function d$D(D){D=bb(D);let $=process.cwd(),J=_6.dirname(D),X=g$D.homedir(),Y=Math.abs(J.split(_6.sep).length-$.split(_6.sep).length);if($===J)return"."+_6.sep+_6.basename(D);else if(J.startsWith($))return"."+_6.sep+D.substring($.length+1);else if(Y<=2){let Q=_6.relative($,D);return Q?Q:"."}else if(D===X)return"~";else if(D.indexOf(X)===0)return"~"+_6.sep+D.substring(X.length+1);return D}Cb.prettyPath=d$D;function bb(D){return _6.resolve(y$D(D))}Cb.expandPath=bb;function Sb(D,$=1,J=" "){if($<2)$=2;let X=Math.max(...D.map((U)=>HX(U))),Y=X>$?X+1:$,Q=J.repeat(Y);return D.map((U)=>Tb(Q,0,Y-HX(U)))}Cb.generateFillSpaceStringList=Sb;function i$D(D,{hsep:$="-",vsep:J="|",headers:X}){let Y=X?!0:!1;if(!D[0])return"";let Q=X?X.length:D[0].length,U=X?X.map((q)=>[q]):D[0].map(()=>[]);for(let q of D){let G=0,Z=q.map((H)=>{let z=H.split(`
`);return G=Math.max(G,z.length),z});for(let H in q)if(U[H])U[H].push(...Z[H],...Array(G-Z[H].length).fill(""))}let F=U.map((q,G)=>{if(G<Q-1){let Z=Sb(q);return q.map((H,z)=>`${H}${Z[z]}${J===""?"":`${J} `}`)}else return q}),W=0,K=F.reduce((q,G)=>{return q.map((Z,H)=>{let z=q[H]+G[H];return W=Math.max(W,HX(z)),z})});if(Y&&$!=="")K.splice(1,0,$.repeat(W));return K.join(`
`)}Cb.columnar=i$D});var yb=S((gb)=>{Object.defineProperty(gb,"__esModule",{value:!0});gb.TERMINAL_INFO=gb.CI_ENVIRONMENT_VARIABLES_DETECTED=gb.CI_ENVIRONMENT_VARIABLES=void 0;var e$D=Z$(),D6D=WK(),$6D=e$D.__importStar(XD("os")),J6D=(0,D6D.debug)("ionic:utils-terminal:info");gb.CI_ENVIRONMENT_VARIABLES=["CI","BUILD_ID","BUILD_NUMBER","BITBUCKET_COMMIT","CODEBUILD_BUILD_ARN","GITHUB_ACTIONS"];gb.CI_ENVIRONMENT_VARIABLES_DETECTED=gb.CI_ENVIRONMENT_VARIABLES.filter((D)=>!!process.env[D]);function X6D(){let{shell:D}=$6D.userInfo();if(D)return D;if(process.env.SHELL)return process.env.SHELL;if(process.platform==="darwin")return"/bin/bash";if(process.platform==="win32")return process.env.COMSPEC?process.env.COMSPEC:"cmd.exe";return"/bin/sh"}if(gb.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0)J6D(`Environment variables for CI detected: ${gb.CI_ENVIRONMENT_VARIABLES_DETECTED.join(", ")}`);gb.TERMINAL_INFO=Object.freeze({ci:gb.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0,shell:X6D(),tty:Boolean(process.stdin.isTTY&&process.stdout.isTTY&&process.stderr.isTTY),windows:process.platform==="win32"||!!(process.env.OSTYPE&&/^(msys|cygwin)$/.test(process.env.OSTYPE)||process.env.MSYSTEM&&/^MINGW(32|64)$/.test(process.env.MSYSTEM))})});var SK=S((I2)=>{Object.defineProperty(I2,"__esModule",{value:!0});var BX=Z$();BX.__exportStar(jK(),I2);BX.__exportStar(pP(),I2);BX.__exportStar(ub(),I2);BX.__exportStar(yb(),I2)});var NX=S((hb)=>{Object.defineProperty(hb,"__esModule",{value:!0});hb.isFatal=hb.fatal=hb.FatalException=hb.BaseException=void 0;class CK extends Error{constructor(D,$){super(D);this.message=D,this.code=$}}hb.BaseException=CK;class OX extends CK{constructor(D,$=1){super(D,"FATAL");this.message=D,this.exitCode=$}}hb.FatalException=OX;function Y6D(D){throw new OX(D)}hb.fatal=Y6D;function Q6D(D){return D&&D instanceof OX}hb.isFatal=Q6D});var _K={};y0(_K,{wordWrap:()=>H6D,stripAnsi:()=>z6D,stringWidth:()=>Z6D,sliceAnsi:()=>G6D,indent:()=>q6D,createDefaultLogger:()=>I6D,TTY_WIDTH:()=>K6D,TTYOutputStrategy:()=>db,StreamOutputStrategy:()=>kK,NO_COLORS:()=>lb,Logger:()=>ib,LOGGER_LEVELS:()=>B6D});class kK{constructor(){this.colors=lb,this.stream=process.stdout}}class ib{constructor(){}info(){}warn(){}error(){}debug(){}}var K6D=80,q6D=(D)=>D,G6D=(D)=>D,Z6D=(D)=>D.length,z6D=(D)=>D,H6D=(D)=>D,I6D=()=>({info:console.log,warn:console.warn,error:console.error,debug:console.debug}),lb,db,B6D;var uK=C(()=>{lb={};db=class db extends kK{constructor(D){super();this.options=D}};B6D={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"}});var nb=S((pb)=>{Object.defineProperty(pb,"__esModule",{value:!0});pb.isInteractive=pb.checkInteractive=void 0;var O6D=Z$(),cb=SK(),N6D=O6D.__importDefault(G2()),V6D=x5(),w6D=(...D)=>{if(pb.isInteractive())return!0;if(!D.length)return!1;if(D.filter(($)=>!$).length)return V6D.logger.error(`Non-interactive shell detected.
Run the command with ${N6D.default.input("--help")} to see a list of arguments that must be provided.`),!1;return!0};pb.checkInteractive=w6D;var j6D=()=>cb.TERMINAL_INFO.tty&&!cb.TERMINAL_INFO.ci;pb.isInteractive=j6D});var VX={};y0(VX,{default:()=>rb});function rb(){throw Error("Prompts are not supported in this CLI build")}var x5=S((ob)=>{Object.defineProperty(ob,"__esModule",{value:!0});ob.logSuccess=ob.logPrompt=ob.logger=ob.output=void 0;var xK=Z$(),V4=(uK(),a6(_K)),w4=xK.__importDefault(G2()),R6D=nb(),tb={colors:w4.default,stream:process.argv.includes("--json")?process.stderr:process.stdout};ob.output=(0,R6D.isInteractive)()?new V4.TTYOutputStrategy(tb):new V4.StreamOutputStrategy(tb);ob.logger=(0,V4.createDefaultLogger)({output:ob.output,formatterOptions:{titleize:!1,tags:new Map([[V4.LOGGER_LEVELS.DEBUG,w4.default.log.DEBUG("[debug]")],[V4.LOGGER_LEVELS.INFO,w4.default.log.INFO("[info]")],[V4.LOGGER_LEVELS.WARN,w4.default.log.WARN("[warn]")],[V4.LOGGER_LEVELS.ERROR,w4.default.log.ERROR("[error]")]])}});async function M6D(D,$){let{wordWrap:J}=await Promise.resolve().then(()=>xK.__importStar((uK(),a6(_K)))),{prompt:X}=await Promise.resolve().then(()=>xK.__importStar(a6(VX)));return ob.logger.log({msg:`${w4.default.input("[?]")} ${J(D,{indentation:4})}`,logger:ob.logger,format:!1}),X($,{onCancel:()=>process.exit(1)})}ob.logPrompt=M6D;function A6D(D){ob.logger.msg(`${w4.default.success("[success]")} ${D}`)}ob.logSuccess=A6D});var f5=S((eb)=>{Object.defineProperty(eb,"__esModule",{value:!0});eb.resolveNode=eb.requireTS=void 0;var E6D=XD("fs"),T6D=q2(),P6D=XD("path"),b6D=XD("url");function S6D(D){return typeof D.transpileModule==="function"}var C6D=Function("specifier","return import(specifier)"),k6D=async(D,$)=>{let J=(0,P6D.resolve)($);if(!S6D(D))try{return await C6D((0,b6D.pathToFileURL)(J).href)}catch(Y){if((Y===null||Y===void 0?void 0:Y.code)==="ERR_UNKNOWN_FILE_EXTENSION")throw Error(`Your installed version of TypeScript (${D.version}) no longer provides the compiler API Capacitor previously used to load .ts config files, and your Node.js runtime (${process.version}) doesn't support loading them natively either.
Upgrade to Node.js 22.6+ (running with --experimental-strip-types), or Node.js 23.6+, to continue using capacitor.config.ts.`);throw Y}delete XD.cache[J],XD.extensions[".ts"]=(Y,Q)=>{var U;let F=(0,T6D.readFileSync)(Q,"utf8");if(Q.endsWith(".ts"))F=D.transpileModule(F,{fileName:Q,compilerOptions:{module:D.ModuleKind.CommonJS,moduleResolution:D.ModuleResolutionKind.NodeJs,esModuleInterop:!0,strict:!0,target:D.ScriptTarget.ES2017},reportDiagnostics:!0}).outputText;else F=F.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");(U=Y._compile)===null||U===void 0||U.call(Y,F,Q)};let X=XD(J);return delete XD.extensions[".ts"],X};eb.requireTS=k6D;function _6D(D,...$){try{return XD.resolve($.join("/"),{paths:[D]})}catch(J){let X=[D,"node_modules",...$].join("/");if((0,E6D.existsSync)(X))return X;return null}}eb.resolveNode=_6D});var $S={};y0($S,{default:()=>g6D});var g6D;var JS=C(()=>{g6D={}});var QS=S((XS)=>{Object.defineProperty(XS,"__esModule",{value:!0});XS.buildXmlElement=XS.writeXML=XS.parseXML=XS.readXML=void 0;var x6D=Z$(),f6D=q2(),y5=x6D.__importDefault((JS(),a6($S)));async function y6D(D){var $;try{let J=await(0,f6D.readFile)(D,{encoding:"utf-8"});try{return await y5.default.parseStringPromise(J)}catch(X){throw`Error parsing: ${D}, ${($=X.stack)!==null&&$!==void 0?$:X}`}}catch(J){throw`Unable to read: ${D}`}}XS.readXML=y6D;function h6D(D,$){let J=$!==void 0?new y5.default.Parser({...$}):new y5.default.Parser,X;return J.parseString(D,(Y,Q)=>{if(!Y)X=Q}),X}XS.parseXML=h6D;async function m6D(D){return new Promise(($)=>{let X=new y5.default.Builder({headless:!0,explicitRoot:!1,rootName:"deleteme"}).buildObject(D);X=X.replace("<deleteme>","").replace("</deleteme>",""),$(X)})}XS.writeXML=m6D;function l6D(D,$){return new y5.default.Builder({headless:!0,explicitRoot:!1,rootName:$}).buildObject(D)}XS.buildXmlElement=l6D});var ZS=S((qS)=>{Object.defineProperty(qS,"__esModule",{value:!0});qS.getAllElements=qS.getFilePath=qS.getAssets=qS.getJSModules=qS.getPluginType=qS.getPlatformElement=qS.getPluginPlatform=qS.printPlugins=qS.fixName=qS.getDependencies=qS.resolvePlugin=qS.getPlugins=qS.getIncludedPluginPackages=void 0;var p6D=Z$(),n6D=q2(),fK=XD("path"),B2=p6D.__importDefault(G2()),r6D=NX(),t6D=x5(),US=f5(),o6D=QS();function FS(D,$){var J,X,Y,Q;let{extConfig:U}=D.app;switch($){case"android":return(X=(J=U.android)===null||J===void 0?void 0:J.includePlugins)!==null&&X!==void 0?X:U.includePlugins;case"ios":return(Q=(Y=U.ios)===null||Y===void 0?void 0:Y.includePlugins)!==null&&Q!==void 0?Q:U.includePlugins}}qS.getIncludedPluginPackages=FS;async function a6D(D,$){var J;let X=(J=FS(D,$))!==null&&J!==void 0?J:KS(D);return(await Promise.all(X.map(async(Q)=>WS(D,Q)))).filter((Q)=>!!Q)}qS.getPlugins=a6D;async function WS(D,$){try{let J=(0,US.resolveNode)(D.app.rootDir,$,"package.json");if(!J)(0,r6D.fatal)(`Unable to find ${B2.default.strong(`node_modules/${$}`)}.
Are you sure ${B2.default.strong($)} is installed?`);let X=(0,fK.dirname)(J),Y=await(0,n6D.readJSON)(J);if(!Y)return null;if(Y.capacitor)return{id:$,name:yK($),version:Y.version,rootPath:X,repository:Y.repository,manifest:Y.capacitor};let Q=(0,fK.join)(X,"plugin.xml"),U=await(0,o6D.readXML)(Q);return{id:$,name:yK($),version:Y.version,rootPath:X,repository:Y.repository,xml:U.plugin}}catch(J){}return null}qS.resolvePlugin=WS;function KS(D){var $,J;return[...Object.keys(($=D.app.package.dependencies)!==null&&$!==void 0?$:{}),...Object.keys((J=D.app.package.devDependencies)!==null&&J!==void 0?J:{})]}qS.getDependencies=KS;function yK(D){return D=D.replace(/\//g,"_").replace(/-/g,"_").replace(/@/g,"").replace(/_\w/g,($)=>$[1].toUpperCase()),D.charAt(0).toUpperCase()+D.slice(1)}qS.fixName=yK;function s6D(D,$,J="capacitor"){if(D.length===0)return;let X,Y=D.length===1?"":"s";switch(J){case"cordova":X=`Found ${D.length} Cordova plugin${Y} for ${B2.default.strong($)}:
`;break;case"incompatible":X=`Found ${D.length} incompatible Cordova plugin${Y} for ${B2.default.strong($)}, skipped install:
`;break;case"capacitor":X=`Found ${D.length} Capacitor plugin${Y} for ${B2.default.strong($)}:
`;break}X+=D.map((Q)=>`${Q.id}${B2.default.weak(`@${Q.version}`)}`).join(`
`),t6D.logger.info(X)}qS.printPlugins=s6D;function hK(D,$){if(D.xml.platform)return D.xml.platform.filter(function(Y){return Y.$.name===$})[0];return[]}qS.getPluginPlatform=hK;function e6D(D,$,J){let X=hK(D,$);if(X){let Y=X[J];if(Y)return Y}return[]}qS.getPlatformElement=e6D;function D1D(D,$){var J,X,Y,Q;switch($){case"ios":return(X=(J=D.ios)===null||J===void 0?void 0:J.type)!==null&&X!==void 0?X:0;case"android":return(Q=(Y=D.android)===null||Y===void 0?void 0:Y.type)!==null&&Q!==void 0?Q:0}return 0}qS.getPluginType=D1D;function $1D(D,$){return mK(D,$,"js-module")}qS.getJSModules=$1D;function J1D(D,$){return mK(D,$,"asset")}qS.getAssets=J1D;function X1D(D,$,J){if(J.startsWith("node_modules")){let X=J.split("/").slice(1);if(X[0].startsWith("@"))X=[X[0]+"/"+X[1],...X.slice(2)];let Y=(0,US.resolveNode)(D.app.rootDir,...X);if(!Y)throw Error(`Can't resolve module ${X[0]}`);return Y}return(0,fK.join)($.rootPath,J)}qS.getFilePath=X1D;function mK(D,$,J){let X=[];if(D.xml[J])X=X.concat(D.xml[J]);let Y=hK(D,$);if(Y===null||Y===void 0?void 0:Y[J])X=X.concat(Y[J]);return X}qS.getAllElements=mK});var LX=S((zS)=>{Object.defineProperty(zS,"__esModule",{value:!0});zS.isNXMonorepo=zS.isMonorepo=zS.findPackageRelativePathInMonorepo=zS.findPackagePath=zS.findNXMonorepoRoot=zS.findMonorepoRoot=void 0;var h5=XD("node:fs"),I1=XD("node:path");function jX(D){let $=(0,I1.join)(D,"package.json"),J=(0,I1.join)(D,"pnpm-workspace.yaml");if((0,h5.existsSync)(J)||(0,h5.existsSync)($)&&JSON.parse((0,h5.readFileSync)($,"utf-8")).workspaces)return D;let X=(0,I1.dirname)(D);if(X===D)throw Error("Monorepo root not found");return jX(X)}zS.findMonorepoRoot=jX;function lK(D){let $=(0,I1.join)(D,"nx.json");if((0,h5.existsSync)($))return D;let J=(0,I1.dirname)(D);if(J===D)throw Error("Monorepo root not found");return lK(J)}zS.findNXMonorepoRoot=lK;function dK(D,$,J){let X=(0,I1.join)($,"node_modules",D);if((0,h5.existsSync)(X))return X;if($===J)return null;let Y=(0,I1.dirname)($);return dK(D,Y,J)}zS.findPackagePath=dK;function B1D(D,$){let J=jX($),X=dK(D,$,J);if(X)return(0,I1.relative)($,X);return null}zS.findPackageRelativePathInMonorepo=B1D;function O1D(D){try{return jX(D),!0}catch($){return!1}}zS.isMonorepo=O1D;function N1D(D){try{return lK(D),!0}catch($){return!1}}zS.isNXMonorepo=N1D});var IS={};y0(IS,{default:()=>M1D});var M1D;var BS=C(()=>{M1D={}});var RX=S((NS)=>{Object.defineProperty(NS,"__esModule",{value:!0});NS.isInstalled=NS.getCommandOutput=NS.runCommand=void 0;var iK=(BS(),a6(IS));async function OS(D,$,J={}){let X=new iK.Subprocess(D,$,J);try{return await X.output()}catch(Y){if(Y instanceof iK.SubprocessError)throw Y.output?Y.output:Y.cause?`${Y.message} ${Y.cause.toString()}`:Y.code?Y.code:"Unknown error";throw Y}}NS.runCommand=OS;async function A1D(D,$,J={}){try{return(await OS(D,$,J)).trim()}catch(X){return null}}NS.getCommandOutput=A1D;async function v1D(D){try{await(0,iK.which)(D)}catch($){return!1}return!0}NS.isInstalled=v1D});var wS={};y0(wS,{validRange:()=>r1D,valid:()=>S1D,satisfies:()=>c1D,rcompare:()=>f1D,patch:()=>g1D,parse:()=>b1D,outside:()=>t1D,neq:()=>l1D,minor:()=>u1D,minSatisfying:()=>n1D,maxSatisfying:()=>p1D,major:()=>_1D,ltr:()=>a1D,lte:()=>i1D,lt:()=>h1D,intersects:()=>s1D,inc:()=>k1D,gtr:()=>o1D,gte:()=>d1D,gt:()=>y1D,eq:()=>m1D,diff:()=>P1D,compare:()=>x1D,coerce:()=>e1D,clean:()=>C1D,SemVer:()=>$4D,Range:()=>D4D,Comparator:()=>J4D});var P1D=()=>null,b1D=()=>null,S1D=()=>null,C1D=()=>null,k1D=()=>null,_1D=()=>null,u1D=()=>null,g1D=()=>null,x1D=()=>0,f1D=()=>0,y1D=()=>!1,h1D=()=>!1,m1D=()=>!1,l1D=()=>!0,d1D=()=>!1,i1D=()=>!1,c1D=()=>!1,p1D=()=>null,n1D=()=>null,r1D=()=>null,t1D=()=>!1,o1D=()=>!1,a1D=()=>!1,s1D=()=>!1,e1D=()=>null,D4D=class{},$4D=class{},J4D=class{};var _S=S((CS)=>{Object.defineProperty(CS,"__esModule",{value:!0});CS.parseApkNameFromFlavor=CS.checkJDKMajorVersion=CS.resolvePlatform=CS.checkPlatformVersions=CS.getAddedPlatforms=CS.getPlatformTargetName=CS.promptForPlatformTarget=CS.promptForPlatform=CS.isValidEnterprisePlatform=CS.getKnownEnterprisePlatforms=CS.isValidCommunityPlatform=CS.getKnownCommunityPlatforms=CS.isValidPlatform=CS.getKnownPlatforms=CS.selectPlatforms=CS.getProjectPlatformDirectory=CS.getCLIVersion=CS.getCoreVersion=CS.getCapacitorPackageVersion=CS.requireCapacitorPackage=CS.getCapacitorPackage=CS.runTask=CS.runPlatformHook=CS.runHooks=CS.wait=CS.checkAppName=CS.checkAppId=CS.checkAppDir=CS.checkAppConfig=CS.checkCapacitorPlatform=CS.checkPackage=CS.checkWebDir=CS.check=void 0;var l5=Z$(),jS=SK(),B1=q2(),j4=XD("path"),iD=l5.__importDefault(G2()),L4=NX(),RS=x5(),X4D=ZS(),LS=LX(),m5=f5(),Y4D=RX();async function Q4D(D){let J=(await Promise.all(D.map((X)=>X()))).filter((X)=>X!=null);if(J.length>0)throw J.join(`
`)}CS.check=Q4D;async function U4D(D){var $;if(($=D.app.extConfig.server)===null||$===void 0?void 0:$.url)return null;if(["",".","..","../","./"].includes(D.app.webDir))return`"${D.app.webDir}" is not a valid value for webDir`;if(!await(0,B1.pathExists)(D.app.webDirAbs))return`Could not find the web assets directory: ${iD.default.strong((0,jS.prettyPath)(D.app.webDirAbs))}.
Please create it and make sure it has an ${iD.default.strong("index.html")} file. You can change the path of this directory in ${iD.default.strong(D.app.extConfigName)} (${iD.default.input("webDir")} option). You may need to compile the web assets for your app (typically ${iD.default.input("npm run build")}). More info: ${iD.default.strong("https://capacitorjs.com/docs/basics/workflow#sync-your-project")}`;if(!await(0,B1.pathExists)((0,j4.join)(D.app.webDirAbs,"index.html")))return`The web assets directory (${iD.default.strong((0,jS.prettyPath)(D.app.webDirAbs))}) must contain an ${iD.default.strong("index.html")} file.
It will be the entry point for the web portion of the Capacitor app.`;return null}CS.checkWebDir=U4D;async function F4D(){if(!await(0,B1.pathExists)("package.json"))if(await(0,B1.pathExists)("project.json"))return null;else return`The Capacitor CLI needs to run at the root of an npm package or in a valid NX monorepo.
Make sure you have a package.json or project.json file in the directory where you run the Capacitor CLI.
More info: ${iD.default.strong("https://docs.npmjs.com/cli/init")}`;return null}CS.checkPackage=F4D;async function W4D(D,$){if(!await pK(D,$))return`Could not find the ${iD.default.input($)} platform.
You must install it in your project first, e.g. w/ ${iD.default.input(`npm install @capacitor/${$}`)}`;return null}CS.checkCapacitorPlatform=W4D;async function K4D(D){if(!D.app.appId)return`Missing ${iD.default.input("appId")} for new platform.
Please add it in ${D.app.extConfigName} or run ${iD.default.input("npx cap init")}.`;if(!D.app.appName)return`Missing ${iD.default.input("appName")} for new platform.
Please add it in ${D.app.extConfigName} or run ${iD.default.input("npx cap init")}.`;let $=await MS(D,D.app.appId);if($)return $;let J=await AS(D,D.app.appName);if(J)return J;return null}CS.checkAppConfig=K4D;async function q4D(D,$){if(!/^\S*$/.test($))return"Your app directory should not contain spaces";return null}CS.checkAppDir=q4D;async function MS(D,$){if(!$)return"Invalid App ID. App ID is required and cannot be blank.";if(/^[a-zA-Z][\w]*(?:\.[a-zA-Z][\w]*)+$/.test($.toLowerCase()))return null;return`
Invalid App ID "${$}". Your App ID must meet the following requirements to be valid on both iOS and Android:
- Must be in Java package form with no dashes (ex: com.example.app)
- It must have at least two segments (one or more dots).
- Each segment must start with a letter.
- All characters must be alphanumeric or an underscore [a-zA-Z][a-zA-Z0-9]+.
If you would like to skip validation, run "cap init" with the "--skip-appid-validation" flag.
`}CS.checkAppId=MS;async function AS(D,$){if(!($===null||$===void 0?void 0:$.length))return"Must provide an app name. For example: 'Spacebook'";return null}CS.checkAppName=AS;async function G4D(D){return new Promise(($)=>setTimeout($,D))}CS.wait=G4D;async function Z4D(D,$,J,X){await cK(D,$,J,X);let Y=await(0,X4D.getPlugins)(D,$);for(let Q of Y)await cK(D,$,Q.rootPath,X)}CS.runHooks=Z4D;async function cK(D,$,J,X){var Y;let{spawn:Q}=await Promise.resolve().then(()=>l5.__importStar(XD("child_process"))),U;if((0,LS.isNXMonorepo)(J))U=await(0,B1.readJSON)((0,j4.join)((0,LS.findNXMonorepoRoot)(J),"package.json"));else U=await(0,B1.readJSON)((0,j4.join)(J,"package.json"));let F=(Y=U.scripts)===null||Y===void 0?void 0:Y[X];if(!F)return;return new Promise((W,K)=>{let q=Q(F,{stdio:"inherit",shell:!0,cwd:J,env:{INIT_CWD:J,CAPACITOR_ROOT_DIR:D.app.rootDir,CAPACITOR_WEB_DIR:D.app.webDirAbs,CAPACITOR_CONFIG:JSON.stringify(D.app.extConfig),CAPACITOR_PLATFORM_NAME:$,...process.env}});q.on("close",(G)=>{if(G===0)W();else K(Error(`${X} hook on ${$} failed with error code: ${G} while running command: ${F}`))}),q.on("error",(G)=>{K(G)})})}CS.runPlatformHook=cK;async function z4D(D,$){let J=RS.output.createTaskChain();J.next(D);try{let X=await $();return J.end(),X}catch(X){throw J.fail(),X}}CS.runTask=z4D;async function pK(D,$){let J=(0,m5.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(!J)return null;return(0,B1.readJSON)(J)}CS.getCapacitorPackage=pK;async function vS(D,$){let J=await pK(D,$);if(!J)(0,L4.fatal)(`Unable to find node_modules/@capacitor/${$}.
Are you sure ${iD.default.strong(`@capacitor/${$}`)} is installed?`);return J}CS.requireCapacitorPackage=vS;async function AX(D,$){return(await vS(D,$)).version}CS.getCapacitorPackageVersion=AX;async function ES(D){return AX(D,"core")}CS.getCoreVersion=ES;async function H4D(D){return AX(D,"cli")}CS.getCLIVersion=H4D;function I4D(D,$){switch($){case"android":return D.android.platformDirAbs;case"ios":return D.ios.platformDirAbs;case"web":return D.web.platformDirAbs}return null}async function MX(D,$){let J=I4D(D,$);if(J&&await(0,B1.pathExists)(J))return J;return null}CS.getProjectPlatformDirectory=MX;async function B4D(D,$){if($){let J=$.toLowerCase().trim();if(!await rK(J))(0,L4.fatal)(`Invalid platform: ${iD.default.input(J)}`);else if(!await MX(D,J)){if(J==="web")(0,L4.fatal)(`Could not find the web platform directory.
Make sure ${iD.default.strong(D.app.webDir)} exists.`);(0,L4.fatal)(`${iD.default.strong(J)} platform has not been added yet.
See the docs for adding the ${iD.default.strong(J)} platform: ${iD.default.strong(`https://capacitorjs.com/docs/${J}#adding-the-${J}-platform`)}`)}return[J]}return SS(D)}CS.selectPlatforms=B4D;async function nK(){return["web","android","ios"]}CS.getKnownPlatforms=nK;async function rK(D){return(await nK()).includes(D)}CS.isValidPlatform=rK;async function TS(){return["electron"]}CS.getKnownCommunityPlatforms=TS;async function O4D(D){return(await TS()).includes(D)}CS.isValidCommunityPlatform=O4D;async function PS(){return["windows"]}CS.getKnownEnterprisePlatforms=PS;async function N4D(D){return(await PS()).includes(D)}CS.isValidEnterprisePlatform=N4D;async function V4D(D,$,J){let{prompt:X}=await Promise.resolve().then(()=>l5.__importStar(a6(VX)));if(!J)return(await X([{type:"select",name:"mode",message:$,choices:D.map((U)=>({title:U,value:U}))}],{onCancel:()=>process.exit(1)})).mode.toLowerCase().trim();let Y=J.toLowerCase().trim();if(!await rK(Y)){let Q=await nK();(0,L4.fatal)(`Invalid platform: ${iD.default.input(Y)}.
Valid platforms include: ${Q.join(", ")}`)}return Y}CS.promptForPlatform=V4D;async function w4D(D,$,J,X){let{prompt:Y}=await Promise.resolve().then(()=>l5.__importStar(a6(VX))),Q=D.filter((W)=>W.id!==void 0);if(!$)if(Q.length===1)return Q[0];else return(await Y([{type:"select",name:"target",message:"Please choose a target device:",choices:Q.map((K)=>({title:`${bS(K)} (${K.id})`,value:K}))}],{onCancel:()=>process.exit(1)})).target;let U=$.trim(),F=D.find((W)=>{var K;if(X===!0){let q=(K=W.name)!==null&&K!==void 0?K:W.model;if(q)q=q.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"');if(J)return q===U&&W.sdkVersion===J;return q===U}return W.id===U});if(!F){if(X){let W=U;if(J)W+=` [${J}]`;(0,L4.fatal)(`Invalid target name: ${iD.default.input(W)}.
Valid targets are:
${D.map((K)=>{var q;return`${(q=K.name)!==null&&q!==void 0?q:K.model} [${K.sdkVersion}]`}).join(`
`)}`)}(0,L4.fatal)(`Invalid target ID: ${iD.default.input(U)}.
Valid targets are:
${D.map((W)=>W.id).join(`
`)}`)}return F}CS.promptForPlatformTarget=w4D;function bS(D){var $,J,X;return`${(X=(J=($=D.name)!==null&&$!==void 0?$:D.model)!==null&&J!==void 0?J:D.id)!==null&&X!==void 0?X:"?"}${D.virtual?` (${D.platform==="ios"?"simulator":"emulator"})`:""}`}CS.getPlatformTargetName=bS;async function SS(D){let $=[];if(await MX(D,D.android.name))$.push(D.android.name);if(await MX(D,D.ios.name))$.push(D.ios.name);return $.push(D.web.name),$}CS.getAddedPlatforms=SS;async function j4D(D,$){let J=await Promise.resolve().then(()=>l5.__importStar(a6(wS))),X=await ES(D),Y=await AX(D,$);if(J.diff(X,Y)==="minor"||J.diff(X,Y)==="major")RS.logger.warn(`${iD.default.strong("@capacitor/core")}${iD.default.weak(`@${X}`)} version doesn't match ${iD.default.strong(`@capacitor/${$}`)}${iD.default.weak(`@${Y}`)} version.
Consider updating to a matching version, e.g. w/ ${iD.default.input(`npm install @capacitor/core@${Y}`)}`)}CS.checkPlatformVersions=j4D;function L4D(D,$){if($[0]!=="@"){let X=(0,m5.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(X)return(0,j4.dirname)(X);let Y=(0,m5.resolveNode)(D.app.rootDir,`@capacitor-community/${$}`,"package.json");if(Y)return(0,j4.dirname)(Y);let Q=(0,m5.resolveNode)(D.app.rootDir,`@ionic-enterprise/capacitor-${$}`,"package.json");if(Q)return(0,j4.dirname)(Q)}let J=(0,m5.resolveNode)(D.app.rootDir,$,"package.json");if(J)return(0,j4.dirname)(J);return null}CS.resolvePlatform=L4D;async function R4D(){try{let D=await(0,Y4D.runCommand)("java",["--version"]),J=RegExp(/([0-9]+)\.?([0-9]*)\.?([0-9]*)/).exec(D);if(J===null)return-1;let X=parseInt(J[1]),Y=parseInt(J[2]);if(typeof X==="number"&&X!=1)return X;else if(typeof Y==="number"&&X==1&&Y<9)return Y;else return-1}catch(D){return-1}}CS.checkJDKMajorVersion=R4D;function M4D(D){let $=D.replace(/([A-Z])/g,"-$1").toLowerCase();if($.startsWith("-"))$=$.replace("-","");return`app-${$?`${$}-`:""}debug.apk`}CS.parseApkNameFromFlavor=M4D});var xS=S((uS)=>{Object.defineProperty(uS,"__esModule",{value:!0});uS.tryFn=void 0;var X8D=async(D,...$)=>{try{return await D(...$)}catch{}return null};uS.tryFn=X8D});var tK=S((fS)=>{Object.defineProperty(fS,"__esModule",{value:!0});fS.formatJSObject=void 0;var Y8D=Z$(),Q8D=Y8D.__importDefault(XD("util"));function U8D(D){try{D=JSON.parse(JSON.stringify(D))}catch($){throw Error(`Cannot parse object as JSON: ${$.stack?$.stack:$}`)}return Q8D.default.inspect(D,{compact:!1,breakLength:1/0,depth:1/0,maxArrayLength:1/0,maxStringLength:1/0})}fS.formatJSObject=U8D});var lS=S((hS)=>{Object.defineProperty(hS,"__esModule",{value:!0});hS.lazy=hS.LazyPromise=hS.allSerial=void 0;function F8D(D){return D.reduce(($,J)=>$.then((X)=>J().then((Y)=>X.concat(Y))),Promise.resolve([]))}hS.allSerial=F8D;class oK extends Promise{constructor(D){super(()=>{});this._executor=D}then(D,$){return this._promise=this._promise||new Promise(this._executor),this._promise.then(D,$)}catch(D){return this._promise=this._promise||new Promise(this._executor),this._promise.catch(D)}}hS.LazyPromise=oK;function W8D(D){return new oK(async($,J)=>{try{$(await D())}catch(X){J(X)}})}hS.lazy=W8D});var rS=S((pS)=>{Object.defineProperty(pS,"__esModule",{value:!0});pS.writeConfig=pS.loadConfig=pS.CONFIG_FILE_NAME_JSON=pS.CONFIG_FILE_NAME_JS=pS.CONFIG_FILE_NAME_TS=void 0;var Jq=Z$(),G8D=Jq.__importDefault(WK()),d0=q2(),BD=XD("path"),M4=Jq.__importDefault(G2()),Z8D=_S(),vX=NX(),z8D=x5(),aK=xS(),H8D=tK(),dS=LX(),iS=f5(),R4=lS(),cS=RX(),sK=(0,G8D.default)("capacitor:config");pS.CONFIG_FILE_NAME_TS="capacitor.config.ts";pS.CONFIG_FILE_NAME_JS="capacitor.config.js";pS.CONFIG_FILE_NAME_JSON="capacitor.config.json";async function I8D(){var D,$,J,X;let Y=process.cwd(),Q=(0,BD.dirname)(XD("path").dirname(XD("url").fileURLToPath(import.meta.url))),U=await V8D(Y),F=await(async()=>{var H,z;if((0,dS.isNXMonorepo)(Y)){let I=(0,dS.findNXMonorepoRoot)(Y),B=await(0,aK.tryFn)(d0.readJSON,(0,BD.resolve)(I,"package.json")),N=(H=B===null||B===void 0?void 0:B.devDependencies)!==null&&H!==void 0?H:{},V=(z=B===null||B===void 0?void 0:B.dependencies)!==null&&z!==void 0?z:{};return{devDependencies:N,dependencies:V}}return{}})(),W=(D=U.extConfig.appId)!==null&&D!==void 0?D:"",K=($=U.extConfig.appName)!==null&&$!==void 0?$:"",q=(J=U.extConfig.webDir)!==null&&J!==void 0?J:"www",G=await w8D(Q),Z={android:await j8D(Y,U.extConfig,G),ios:await L8D(Y,U.extConfig),web:await R8D(Y,q),cli:G,app:{rootDir:Y,appId:W,appName:K,webDir:q,webDirAbs:(0,BD.resolve)(Y,q),package:(X=await(0,aK.tryFn)(d0.readJSON,(0,BD.resolve)(Y,"package.json")))!==null&&X!==void 0?X:{name:K,version:"1.0.0",...F},...U}};return sK("config: %O",Z),Z}pS.loadConfig=I8D;async function B8D(D,$){switch((0,BD.extname)($)){case".json":{await(0,d0.writeJSON)($,D,{spaces:2});break}case".ts":{await(0,d0.writeFile)($,b8D(D));break}}}pS.writeConfig=B8D;async function O8D(D,$,J){var X;try{let Y=(0,iS.resolveNode)(D,"typescript");if(!Y)(0,vX.fatal)(`Could not find installation of TypeScript.
To use ${M4.default.strong($)} files, you must install TypeScript in your project, e.g. w/ ${M4.default.input("npm install -D typescript")}`);let Q=XD(Y),U=await(0,iS.requireTS)(Q,J),F=U.default?await U.default:U;return{extConfigType:"ts",extConfigName:$,extConfigFilePath:J,extConfig:F}}catch(Y){if(!(0,vX.isFatal)(Y))(0,vX.fatal)(`Parsing ${M4.default.strong($)} failed.
${(X=Y.stack)!==null&&X!==void 0?X:Y}`);throw Y}}async function N8D(D,$,J){var X;try{return{extConfigType:"js",extConfigName:$,extConfigFilePath:J,extConfig:await XD(J)}}catch(Y){(0,vX.fatal)(`Parsing ${M4.default.strong($)} failed.
${(X=Y.stack)!==null&&X!==void 0?X:Y}`)}}async function V8D(D){var $;let J=(0,BD.resolve)(D,pS.CONFIG_FILE_NAME_TS);if(await(0,d0.pathExists)(J))return O8D(D,pS.CONFIG_FILE_NAME_TS,J);let X=(0,BD.resolve)(D,pS.CONFIG_FILE_NAME_JS);if(await(0,d0.pathExists)(X))return N8D(D,pS.CONFIG_FILE_NAME_JS,X);let Y=(0,BD.resolve)(D,pS.CONFIG_FILE_NAME_JSON);return{extConfigType:"json",extConfigName:pS.CONFIG_FILE_NAME_JSON,extConfigFilePath:Y,extConfig:($=await(0,aK.tryFn)(d0.readJSON,Y))!==null&&$!==void 0?$:{}}}async function w8D(D){let J=(0,BD.join)(D,"assets"),X="ios-spm-template.tar.gz",Y="capacitor-cordova-ios-plugins.tar.gz",Q="android-template.tar.gz",U="capacitor-cordova-android-plugins.tar.gz";return{rootDir:D,assetsDir:"assets",assetsDirAbs:J,assets:{ios:{platformTemplateArchive:"ios-spm-template.tar.gz",platformTemplateArchiveAbs:(0,BD.resolve)(J,"ios-spm-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-ios-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,BD.resolve)(J,"capacitor-cordova-ios-plugins.tar.gz")},android:{platformTemplateArchive:"android-template.tar.gz",platformTemplateArchiveAbs:(0,BD.resolve)(J,"android-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-android-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,BD.resolve)(J,"capacitor-cordova-android-plugins.tar.gz")}},package:await(0,d0.readJSON)((0,BD.resolve)(D,"package.json")).catch(()=>({name:"@capacitor/cli",version:"0.0.0"})),os:M8D(process.platform)}}async function j8D(D,$,J){var X,Y,Q,U,F,W,K,q,G,Z,H,z,I,B,N,V,O;let j="android",v=(Y=(X=$.android)===null||X===void 0?void 0:X.path)!==null&&Y!==void 0?Y:"android",A=(0,BD.resolve)(D,v),k="app",u="app/src",_="app/src/main",y="app/src/main/assets",T="app/src/main/assets/public",d="app/src/main/res",c="app/build/outputs/apk/",p=((Q=$.android)===null||Q===void 0?void 0:Q.flavor)||"";if((U=$.android)===null||U===void 0?void 0:U.flavor)c=`${c}/${(F=$.android)===null||F===void 0?void 0:F.flavor}`;let o=(0,Z8D.parseApkNameFromFlavor)(p),R=`${c}/debug`,w="capacitor-cordova-android-plugins",L=(0,R4.lazy)(()=>E8D(J.os)),P={keystorePath:(K=(W=$.android)===null||W===void 0?void 0:W.buildOptions)===null||K===void 0?void 0:K.keystorePath,keystorePassword:(G=(q=$.android)===null||q===void 0?void 0:q.buildOptions)===null||G===void 0?void 0:G.keystorePassword,keystoreAlias:(H=(Z=$.android)===null||Z===void 0?void 0:Z.buildOptions)===null||H===void 0?void 0:H.keystoreAlias,keystoreAliasPassword:(I=(z=$.android)===null||z===void 0?void 0:z.buildOptions)===null||I===void 0?void 0:I.keystoreAliasPassword,signingType:(N=(B=$.android)===null||B===void 0?void 0:B.buildOptions)===null||N===void 0?void 0:N.signingType,releaseType:(O=(V=$.android)===null||V===void 0?void 0:V.buildOptions)===null||O===void 0?void 0:O.releaseType};return{name:"android",minVersion:"24",studioPath:L,platformDir:v,platformDirAbs:A,cordovaPluginsDir:w,cordovaPluginsDirAbs:(0,BD.resolve)(A,w),appDir:"app",appDirAbs:(0,BD.resolve)(A,"app"),srcDir:"app/src",srcDirAbs:(0,BD.resolve)(A,"app/src"),srcMainDir:"app/src/main",srcMainDirAbs:(0,BD.resolve)(A,"app/src/main"),assetsDir:"app/src/main/assets",assetsDirAbs:(0,BD.resolve)(A,"app/src/main/assets"),webDir:"app/src/main/assets/public",webDirAbs:(0,BD.resolve)(A,"app/src/main/assets/public"),resDir:"app/src/main/res",resDirAbs:(0,BD.resolve)(A,"app/src/main/res"),apkName:o,buildOutputDir:R,buildOutputDirAbs:(0,BD.resolve)(A,R),flavor:p,buildOptions:P}}async function L8D(D,$){var J,X,Y,Q,U,F,W,K,q,G,Z,H;let z="ios",I=(X=(J=$.ios)===null||J===void 0?void 0:J.path)!==null&&X!==void 0?X:"ios",B=(0,BD.resolve)(D,I),N=(Q=(Y=$.ios)===null||Y===void 0?void 0:Y.scheme)!==null&&Q!==void 0?Q:"App",V="App",O=(0,BD.resolve)(B,"App"),j="App/App",v=(0,BD.resolve)(B,"App/App"),A="App/App.xcodeproj",k=(0,BD.resolve)(B,"App/App.xcodeproj"),u=(0,R4.lazy)(()=>A8D(O)),_=(0,R4.lazy)(()=>T8D()),y=(0,R4.lazy)(()=>P8D(D,B,O)),T=(0,R4.lazy)(()=>v8D(O,v,k)),d="capacitor-cordova-ios-plugins",c={exportMethod:(F=(U=$.ios)===null||U===void 0?void 0:U.buildOptions)===null||F===void 0?void 0:F.exportMethod,xcodeSigningStyle:(K=(W=$.ios)===null||W===void 0?void 0:W.buildOptions)===null||K===void 0?void 0:K.signingStyle,signingCertificate:(G=(q=$.ios)===null||q===void 0?void 0:q.buildOptions)===null||G===void 0?void 0:G.signingCertificate,provisioningProfile:(H=(Z=$.ios)===null||Z===void 0?void 0:Z.buildOptions)===null||H===void 0?void 0:H.provisioningProfile};return{name:"ios",minVersion:"15.0",platformDir:I,platformDirAbs:B,scheme:N,cordovaPluginsDir:"capacitor-cordova-ios-plugins",cordovaPluginsDirAbs:(0,BD.resolve)(B,"capacitor-cordova-ios-plugins"),nativeProjectDir:"App",nativeProjectDirAbs:O,nativeTargetDir:"App/App",nativeTargetDirAbs:v,nativeXcodeProjDir:"App/App.xcodeproj",nativeXcodeProjDirAbs:k,nativeXcodeWorkspaceDir:(0,R4.lazy)(async()=>(0,BD.relative)(B,await u)),nativeXcodeWorkspaceDirAbs:u,webDir:(0,R4.lazy)(async()=>(0,BD.relative)(B,await T)),webDirAbs:T,podPath:_,packageManager:y,buildOptions:c}}async function R8D(D,$){let J=$,X=(0,BD.resolve)(D,J);return{name:"web",platformDir:J,platformDirAbs:X}}function M8D(D){switch(D){case"darwin":return"mac";case"win32":return"windows";case"linux":return"linux"}return"unknown"}async function A8D(D){return(0,BD.resolve)(D,"App.xcworkspace")}async function v8D(D,$,J){let X=/path\s=\spublic[\s\S]+?sourceTree\s=\s([^;]+)/,Y=(0,BD.resolve)(J,"project.pbxproj");try{let U=(await(0,d0.readFile)(Y,{encoding:"utf8"})).match(X);if(U&&U[1]==="SOURCE_ROOT")return z8D.logger.warn(`Using the iOS project root for the ${M4.default.strong("public")} directory is deprecated.
Please follow the Upgrade Guide to move ${M4.default.strong("public")} inside the iOS target directory: ${M4.default.strong("https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory")}`),(0,BD.resolve)(D,"public")}catch(Q){}return(0,BD.resolve)($,"public")}async function E8D(D){if(process.env.CAPACITOR_ANDROID_STUDIO_PATH)return process.env.CAPACITOR_ANDROID_STUDIO_PATH;switch(D){case"mac":return"/Applications/Android Studio.app";case"windows":{let{runCommand:$}=await Promise.resolve().then(()=>Jq.__importStar(RX())),J="C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe";try{if(!await(0,d0.pathExists)(J)){let X=await $("REG",["QUERY","HKEY_LOCAL_MACHINE\\SOFTWARE\\Android Studio","/v","Path"]);X=X.replace(/(\r\n|\n|\r)/gm,"");let Y=X.indexOf("REG_SZ");if(Y>0)J=X.substring(Y+6).trim()+"\\bin\\studio64.exe"}}catch(X){sK("Error checking registry for Android Studio path: %O",X);break}return J}case"linux":{try{if(await(0,d0.pathExists)("/usr/local/android-studio/bin/studio"))return"/usr/local/android-studio/bin/studio"}catch(X){sK("Error checking for studio executable: %O",X)}return"/usr/local/android-studio/bin/studio.sh"}}return""}async function T8D(){if(process.env.CAPACITOR_COCOAPODS_PATH)return process.env.CAPACITOR_COCOAPODS_PATH;return"pod"}async function P8D(D,$,J){if((0,d0.existsSync)((0,BD.resolve)(J,"CapApp-SPM")))return"SPM";if(process.env.CAPACITOR_COCOAPODS_PATH)return"Cocoapods";let X="";if(await(0,d0.pathExists)((0,BD.resolve)(D,"Gemfile")))X=(0,BD.resolve)(D,"Gemfile");else if(await(0,d0.pathExists)((0,BD.resolve)($,"Gemfile")))X=(0,BD.resolve)($,"Gemfile");else if(await(0,d0.pathExists)((0,BD.resolve)(J,"Gemfile")))X=(0,BD.resolve)(J,"Gemfile");if(X=="")try{let Q=await(0,cS.getCommandOutput)("git",["rev-parse","--show-toplevel"],{cwd:D});if(Q!=null)X=(0,BD.resolve)(Q,"Gemfile")}catch(Q){}try{let Q=(await(0,d0.readFile)(X)).toString();if(!Q)return"Cocoapods";if(new RegExp(/gem\s+['"]cocoapods/).test(Q)&&await(0,cS.isInstalled)("bundle"))return"bundler";else return"Cocoapods"}catch{return"Cocoapods"}}function b8D(D){return`import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = ${(0,H8D.formatJSObject)(D)};
export default config;
`}});var EX,O1,tS,oS,aS,sS,eS,DC,$C,JC,Xq,Yq;var Qq=C(()=>{EX=w$(rS(),1),O1=w$(LX(),1),tS=w$(tK(),1),oS=w$(f5(),1),aS=oS.requireTS,sS=tS.formatJSObject,eS=EX.loadConfig,DC=EX.writeConfig,$C=O1.findMonorepoRoot,JC=O1.findNXMonorepoRoot,Xq=O1.isMonorepo,Yq=O1.isNXMonorepo});import{Buffer as XC}from"node:buffer";import{createHash as C8D}from"node:crypto";function _8D(D){let $=4294967295;for(let J=0;J<D.length;J++){let X=D[J];$=k8D[($^X)&255]^$>>>8}return $=$^4294967295,($>>>0).toString(16).padStart(8,"0")}async function YC(D,$="sha256"){let J=XC.isBuffer(D)?D:XC.from(D);if($==="crc32")return _8D(J);let X=C8D($);return X.update(J),X.digest("hex")}var k8D;var QC=C(()=>{k8D=(()=>{let D=[];for(let $=0;$<256;$++){let J=$;for(let X=0;X<8;X++)J=J&1?3988292384^J>>>1:J>>>1;D[$]=J}return D})()});import{AsyncLocalStorage as u8D}from"node:async_hooks";import{existsSync as Kq,realpathSync as UC,statSync as qC}from"node:fs";import{readFile as g8D,writeFile as x8D}from"node:fs/promises";import{createRequire as qq}from"node:module";import{basename as f8D,extname as Gq,isAbsolute as y8D,relative as h8D,resolve as O2,sep as m8D}from"node:path";import{cwd as Uq}from"node:process";import{pathToFileURL as FC}from"node:url";function TX(D,$,J=!1){if(J){let X=$?.path;lD.error(typeof X==="string"?`${D}: ${X}`:D)}throw new xD(D,$)}function iLD(D){GC=D}function Fq(){let D=ZC.getStore();return D===void 0?GC:D.filePath}function cLD(D,$){return ZC.run({filePath:D},$)}function pLD(D,$=Uq(),J){let X=J?.logError??!1;if(D===void 0)return;if(!D.trim())TX("Capacitor config path must not be empty",void 0,X);let Y=O2($,D);if(!Kq(Y)||!qC(Y).isFile())TX("Capacitor config path does not exist",{path:Y},X);if(!l8D.test(f8D(Y)))TX("Capacitor config path must point to a capacitor.config.*.ts, capacitor.config.*.js, or capacitor.config.*.json file",{path:Y},X);let Q=UC($),U=UC(Y),F=h8D(Q,U);if(F===".."||F.startsWith(`..${m8D}`)||y8D(F))TX("Capacitor config path must stay within the current working directory",{path:Y},X);return U}function Wq(D){if(D===null||typeof D!=="object")return!1;let $=D;return typeof $.transpileModule==="function"&&typeof $.ModuleKind?.CommonJS==="number"}function i8D(D){for(let $ of d8D){let J=O2(D,$);if(Kq(J)&&qC(J).isFile())return J}return}function c8D(D){let $=O2(D,"package.json");try{return qq(Kq($)?$:O2(D,"capacitor.config.ts"))("typescript")}catch{return}}function p8D(D){return!Wq(c8D(D))}function n8D(){if(PX===void 0)try{PX=qq(import.meta.url)("typescript")}catch{PX=null}return PX}function KC(){if(process.versions.bun)return!0;let D=Number(process.versions.node.split(".")[0]);return Number.isFinite(D)&&D>=22}async function zC(D){let $=Gq(D);if($===".json")return JSON.parse(await g8D(D,"utf8"));let J=qq(D);if($===".js"){let F=J(D),W=F.default??F;return typeof W==="function"?await W():await W}let X;try{X=J("typescript")}catch{X=void 0}let Y=Wq(X)?X:n8D(),Q;if(Wq(Y))try{Q=await Promise.resolve(aS(Y,D))}catch(F){if(!KC())throw F;Q=await WC(FC(O2(D)).href)}else if(KC())Q=await WC(FC(O2(D)).href);else throw Error("Could not load a usable TypeScript compiler for the Capacitor config");let U=Q.default??Q;return typeof U==="function"?await U():await U}async function r8D(D,$){if(Gq($)===".js"){let J=`/** @type {import('@capacitor/cli').CapacitorConfig} */
const config = ${sS(D)}
module.exports = config
`;await x8D($,J);return}await DC(D,$)}async function Zq(){let D=i8D(Uq());if(D&&Gq(D)===".ts"&&p8D(Uq()))return{config:await zC(D),path:Fq()??D};let $=await eS();return{config:$.app.extConfig,path:Fq()??$.app.extConfigFilePath}}async function zq(){let D=Fq();if(D)return{config:await zC(D),path:D};return Zq()}async function Hq(D,$,J=!1){let X=await zq();if(!X)return;let{config:Y}=X;if(Y){if(!Y.plugins)Y.plugins={extConfig:{},[D]:{}};if(!Y.plugins[D])Y.plugins[D]={};if(!J)Y.plugins[D]=$.config.plugins?.[D];else Y=$.config;await r8D(Y,X.path)}}async function nLD(D,$=!1){await Hq("CapacitorUpdater",D,$)}var WC,GC,ZC,l8D,d8D,PX;var HC=C(()=>{D1();Qq();c1();WC=Function("specifier","return import(specifier)"),ZC=new u8D,l8D=/^capacitor\.config(?:\.[^.]+)*\.(?:ts|js|json)$/;d8D=["capacitor.config.ts","capacitor.config.js","capacitor.config.json"]});function N1(D){let $=D.length;while($>0&&D[$-1]==="/")$-=1;return D.slice(0,$)}import{randomUUID as IC}from"node:crypto";import{existsSync as t8D,mkdirSync as o8D,readFileSync as a8D,writeFileSync as s8D}from"node:fs";import{homedir as Bq,platform as e8D,release as D2D}from"node:os";import{join as BC}from"node:path";import{arch as $2D,cwd as OC,env as A4,version as J2D}from"node:process";function d5(D){return D==="1"||D?.toLowerCase()==="true"||D?.toLowerCase()==="yes"}function F2D(){if(d5(A4.CAPGO_DISABLE_TELEMETRY)||d5(A4.CAPGO_DISABLE_POSTHOG))return;return A4.CAPGO_CLI_POSTHOG_API_KEY?.trim()||A4.POSTHOG_API_KEY?.trim()||Y2D}function W2D(D){let $=N1(D);if($.endsWith("/i/v0/e"))return`${$}/`;let J=$.replace(/\/capture$/,"/");return new URL("i/v0/e/",J.endsWith("/")?J:`${J}/`).toString()}function K2D(D){if(D instanceof Error)return{cause:D.cause,message:D.message,name:D.name||"Error",stack:D.stack};if(typeof D==="string")return{message:D,name:"Error",stack:void 0};try{return{message:JSON.stringify(D)??String(D),name:"Error",stack:void 0}}catch{return{message:String(D),name:"Error",stack:void 0}}}function q2D(D){let $=D,J=OC(),X=Bq();if(J)$=$.replaceAll(J,"<cwd>");if(X)$=$.replaceAll(X,"~");return $}function G2D(D){let $=D,J=OC(),X=Bq();if(J)$=$.replaceAll(J,"<cwd>");if(X)$=$.replaceAll(X,"~");return $.replace(/<cwd>\/[^\s"',)]+/g,"<cwd>/<path>").replace(/~\/[^\s"',)]+/g,"~/<path>").replace(/[\w.%+-]+@[\w.-]+\.[A-Z]{2,}/gi,"<email>").replace(/(https?:\/\/)([^/\s:@]+):([^/\s@]+)@/gi,"$1<redacted>@").replace(/\b[a-z][\w-]*(?:\.[\w-]+){1,}\b/gi,"<app_id>").replace(/\b[a-z]:\\[^\s"',)]+/gi,"<path>").replace(/(^|[\s"'(])\/[^\s"',)]+/g,"$1<path>").replace(/(--(?:token|api[-_]?key|key|password|secret|private[-_]?key|jwt|session|auth)(?:=|\s+))("[^"]+"|'[^']+'|\S+)/gi,"$1<redacted>").replace(/\b((?:token|api[-_]?key|password|secret|authorization)\s*[:=]\s*)[^\s,;]+/gi,"$1<redacted>")}function Z2D(D,$){let J=D?.split(`
`).slice(1).map((X)=>{let Y=X.trim(),Q=Y.startsWith("at ")?Y.slice(3):Y,U=$,F=Q,W=Q.lastIndexOf(" (");if(W!==-1&&Q.endsWith(")"))U=Q.slice(0,W).trim()||$,F=Q.slice(W+2,-1);else{let G=Q.lastIndexOf(" "),Z=G===-1?"":Q.slice(G+1);if(/:\d+:\d+$/.test(Z))U=Q.slice(0,G).trim()||$,F=Z}let K=F.lastIndexOf(":"),q=K===-1?-1:F.lastIndexOf(":",K-1);if(K===-1||q===-1)return{function:$,platform:"custom",lang:"javascript"};return{function:U,filename:q2D(F.slice(0,q)),lineno:Number.parseInt(F.slice(q+1,K),10),colno:Number.parseInt(F.slice(K+1),10),platform:"custom",lang:"javascript"}}).filter(Boolean);return J&&J.length>0?J:[{function:$,platform:"custom",lang:"javascript"}]}function z2D(D){if(!D||typeof D!=="object"||!("code"in D))return;let{code:$}=D;return typeof $==="string"?$:void 0}function I2D(D){if(!D||typeof D!=="object")return;let $=D;if(typeof $.status==="number")return $.status;if(typeof $.statusCode==="number")return $.statusCode;let J=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof J==="number"?J:void 0}function B2D(D){let $=(D instanceof Error?D.message:typeof D==="string"?D:"").toLowerCase();if(H2D.some((J)=>$.includes(J)))return!0;return I2D(D)===401}function NC(D){if(D instanceof xD){if(U2D.has(D.message))return!0;return!1}if(B2D(D))return!1;return!z2D(D)?.startsWith("commander.")}function YRD(D){let $=[],J=D;while(J?.parent){let X=J.name();if(X)$.push(X);J=J.parent}return $.reverse().join(" ")||"unknown"}function O2D(D=BC(Bq(),".capgo-credentials")){if(Iq)return Iq;let $=BC(D,"install-id"),J;try{let X=t8D($)?a8D($,"utf8").trim():"";if(X)J=X;else J=IC(),o8D(D,{recursive:!0}),s8D($,J,{encoding:"utf8",mode:384})}catch{J=IC()}return Iq=J,J}async function VC(D){let $=F2D();if(!$)return!1;let J=A4.CAPGO_CLI_POSTHOG_API_HOST?.trim()||A4.POSTHOG_API_HOST?.trim()||X2D,X;try{X=W2D(J)}catch{return!1}let Y=K2D(D.error),Q=G2D(Y.message),U=O2D(),F=Z2D(Y.stack,D.functionName),W=[D.functionName,D.kind,Y.name||"Error",String(D.status??1)].join(":"),K={token:$,event:"$exception",properties:{distinct_id:U,$exception_list:[{type:Y.name||"Error",value:Q,mechanism:{handled:!0,synthetic:!1},stacktrace:{type:"raw",frames:F}}],$exception_fingerprint:W,architecture:$2D,cli_version:r$.version,error_kind:D.kind,function_name:D.functionName,is_ci:Boolean(A4.CI),node_version:J2D,os_platform:e8D(),os_release:D2D(),runtime:"cli",status:D.status},timestamp:new Date().toISOString()};try{let q=new AbortController,G=setTimeout(()=>q.abort(),Q2D);try{return(await fetch(X,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K),signal:q.signal})).ok}finally{clearTimeout(G)}}catch{return!1}}var X2D="https://eu.i.posthog.com/i/v0/e/",Y2D="phc_NXDyDajQaTQVwb25DEhIVZfxVUn4R0Y348Z7vWYHZUi",Q2D=1500,Oq="iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.",U2D,H2D,Iq;var Nq=C(()=>{H8();c1();U2D=new Set([Oq]);H2D=["invalid_apikey","invalid apikey","no_key_provided","no key provided","invalid api key or insufficient permissions","does not exist, run first"]});import{env as N2D}from"node:process";function j2D(D,$){return`${D} ${$.join(" ")}`}function L2D(D){let[$=""]=D.npm_config_user_agent?.trim().toLowerCase().split(/\s+/,1)??[],[J,X]=$.split("/",2);if(J==="bun")return"bunx";if(J==="pnpm")return"pnpm dlx";if(J==="yarn"){let Q=Number.parseInt(X??"",10);return Number.isNaN(Q)||Q<2?"npx -y":"yarn dlx"}if(J==="npm")return"npx -y";let Y=D.npm_execpath?.toLowerCase()??"";if(Y.includes("pnpm"))return"pnpm dlx";if(Y.includes("yarn"))return"npx -y";if(Y.includes("bun"))return"bunx";return"npx -y"}function wC(D=N2D){return j2D(L2D(D),["@capgo/cli@latest","login"])}function FRD(D){let $=D.trim().replaceAll(V2D," ");if(!w2D.has($))throw Error(`Unsupported package manager runner: "${D}"`);let J=$.split(" ").map((Q)=>Q.trim()).filter(Boolean),[X=D,...Y]=J;return{command:X,args:Y}}var V2D,w2D;var jC=C(()=>{V2D=/\s+/g,w2D=new Set(["bunx","npx","pnpm exec","yarn dlx"])});var h={};y0(h,{unwrapMessage:()=>N2,uint8ArrayToHex:()=>t2D,uint8ArrayToBase64url:()=>n2D,uint8ArrayToBase64:()=>TC,toZod:()=>i5,stringifyPrimitive:()=>m,slugify:()=>jq,shallowClone:()=>p5,safeExtend:()=>h2D,required:()=>d2D,rawShape:()=>L2,randomString:()=>k2D,propertyKeyTypes:()=>n5,promiseAllObject:()=>C2D,primitiveTypes:()=>Rq,prefixIssues:()=>H$,pick:()=>x2D,partial:()=>l2D,parsedType:()=>l,own:()=>w1,optionalKeys:()=>Mq,omit:()=>f2D,objectClone:()=>T2D,numKeys:()=>_2D,nullish:()=>bX,normalizeParams:()=>n,mergeDefs:()=>$6,merge:()=>m2D,members:()=>vq,jsonStringifyReplacer:()=>w2,joinValues:()=>b,issue:()=>R2,isPlainObject:()=>l$,isObject:()=>E4,installLazyProp:()=>D9D,hide:()=>s5,hexToUint8Array:()=>r2D,getSizableOrigin:()=>o5,getParsedType:()=>u2D,getLengthableOrigin:()=>a5,getEnumValues:()=>V2,getElementAtPath:()=>S2D,floatSafeRemainder:()=>c5,finalizeIssue:()=>I$,extend:()=>y2D,explicitlyAborted:()=>Aq,escapeRegex:()=>d$,esc:()=>D$,derived:()=>o2D,defineLazyInternal:()=>wD,defineLazy:()=>wq,createTransparentProxy:()=>g2D,constantCatch:()=>Eq,codePointLength:()=>T4,cloneDef:()=>b2D,clone:()=>fD,cleanRegex:()=>g6,cleanEnum:()=>c2D,captureStackTrace:()=>SX,cached:()=>j2,base64urlToUint8Array:()=>p2D,base64ToUint8Array:()=>EC,attachSchema:()=>kX,assignProp:()=>k0,assertNotEqual:()=>M2D,assertNever:()=>v2D,assertIs:()=>A2D,assertEqual:()=>R2D,assert:()=>E2D,allowsEval:()=>Lq,aborted:()=>$$,NUMBER_FORMAT_RANGES:()=>r5,Class:()=>PC,CONSTANT_CATCH:()=>_X,BIGINT_FORMAT_RANGES:()=>t5});function R2D(D){return D}function M2D(D){return D}function i5(){return(D)=>D}function A2D(D){}function v2D(D){throw Error("Unexpected value in exhaustive check")}function E2D(D){}function V2(D){let $=Object.values(D).filter((X)=>typeof X==="number");return Object.entries(D).filter(([X,Y])=>$.indexOf(+X)===-1).map(([X,Y])=>Y)}function b(D,$="|"){return D.map((J)=>m(J)).join($)}function w2(D,$){if(typeof $==="bigint")return $.toString();return $}class RC{constructor(D){this._getter=D,this._value=void 0}get value(){let D=this._getter;if(D!==void 0)this._value=D(),this._getter=void 0;return this._value}}function j2(D){return new RC(D)}function bX(D){return D===null||D===void 0}function g6(D){let $=D.startsWith("^")?1:0,J=D.endsWith("$")?D.length-1:D.length;return D.slice($,J)}function c5(D,$){let J=D/$,X=Math.round(J),Y=4*Number.EPSILON*Math.max(Math.abs(J),1);if(Math.abs(J-X)<Y)return 0;return J-X}function wq(D,$,J){let X=void 0;Object.defineProperty(D,$,{get(){if(X===LC)return;if(X===void 0)X=LC,X=J();return X},set(Y){Object.defineProperty(D,$,{value:Y})},configurable:!0})}function T2D(D){return Object.create(Object.getPrototypeOf(D),Object.getOwnPropertyDescriptors(D))}function k0(D,$,J){Object.defineProperty(D,$,{value:J,writable:!0,enumerable:!0,configurable:!0})}function L2(D){let $=Object.getOwnPropertyDescriptor(D,"shape");return $?.get?$.get.raw:$?.value}function u6(D){return L2(D._zod.def)??D._zod.def.shape}function MC(D,$,J){Object.defineProperty(D,$,{get(){let X=J();return k0(this,$,X),X},enumerable:!0,configurable:!0})}function AC(D,$,J){if($ in D)k0(D,$,J);else D[$]=J}function v4(D,$,J,X){let Y=u6($);for(let Q of J){let U=Object.getOwnPropertyDescriptor(Y,Q);if(!U.enumerable)continue;if(U.get)MC(D,Q,()=>{let F=$._zod.def.shape[Q];return X?X(F,Q):F});else AC(D,Q,X?X(U.value,Q):U.value)}}function P2D(D,$){for(let J of Reflect.ownKeys($)){let X=Object.getOwnPropertyDescriptor($,J);if(!X.enumerable)continue;if(X.get)MC(D,J,()=>$[J]);else AC(D,J,X.value)}}function $6(...D){let $={};for(let J of D){let X=Object.getOwnPropertyDescriptors(J);Object.assign($,X)}return Object.defineProperties({},$)}function b2D(D){return $6(D._zod.def)}function S2D(D,$){if(!$)return D;return $.reduce((J,X)=>J?.[X],D)}function C2D(D){let $=Object.keys(D),J=$.map((X)=>D[X]);return Promise.all(J).then((X)=>{let Y={};for(let Q=0;Q<$.length;Q++)Y[$[Q]]=X[Q];return Y})}function k2D(D=10){let J="";for(let X=0;X<D;X++)J+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return J}function D$(D){return JSON.stringify(D)}function jq(D){return D.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function E4(D){return typeof D==="object"&&D!==null&&!Array.isArray(D)}function l$(D){if(E4(D)===!1)return!1;let $=D.constructor;if($===void 0)return!0;if(typeof $!=="function")return!0;let J=$.prototype;if(E4(J)===!1)return!1;if(Object.prototype.hasOwnProperty.call(J,"isPrototypeOf")===!1)return!1;return!0}function p5(D){if(l$(D))return{...D};if(Array.isArray(D))return[...D];if(D instanceof Map)return new Map(D);if(D instanceof Set)return new Set(D);return D}function _2D(D){let $=0;for(let J in D)if(Object.prototype.hasOwnProperty.call(D,J))$++;return $}function d$(D){return D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fD(D,$,J){let X=new D._zod.constr($??D._zod.def);if(!$||J?.parent)X._zod.parent=D;return X}function n(D){let $=D;if(!$)return{};if(typeof $==="string")return{error:()=>$};if($?.message!==void 0){if($?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");$.error=$.message}if(delete $.message,typeof $.error==="string")return{...$,error:()=>$.error};return $}function g2D(D){let $;return new Proxy({},{get(J,X,Y){return $??($=D()),Reflect.get($,X,Y)},set(J,X,Y,Q){return $??($=D()),Reflect.set($,X,Y,Q)},has(J,X){return $??($=D()),Reflect.has($,X)},deleteProperty(J,X){return $??($=D()),Reflect.deleteProperty($,X)},ownKeys(J){return $??($=D()),Reflect.ownKeys($)},getOwnPropertyDescriptor(J,X){return $??($=D()),Reflect.getOwnPropertyDescriptor($,X)},defineProperty(J,X,Y){return $??($=D()),Reflect.defineProperty($,X,Y)}})}function m(D){if(typeof D==="bigint")return D.toString()+"n";if(typeof D==="string")return`"${D}"`;return`${D}`}function Mq(D){return Object.keys(D).filter(($)=>{return D[$]._zod.optin!==void 0&&D[$]._zod.optout==="optional"})}function x2D(D,$){let J=D._zod.def,X=J.checks;if(X&&X.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let Q={};return v4(Q,D,CX(D,$)),fD(D,$6(J,{shape:Q,checks:[]}))}function CX(D,$){let J=u6(D),X=[];for(let Y of Reflect.ownKeys($)){if(!Object.getOwnPropertyDescriptor(J,Y)?.enumerable)throw Error(`Unrecognized key: "${String(Y)}"`);if($[Y])X.push(Y)}return X}function f2D(D,$){let J=D._zod.def,X=J.checks;if(X&&X.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let Q=new Set(CX(D,$)),U={};return v4(U,D,Reflect.ownKeys(u6(D)).filter((F)=>!Q.has(F))),fD(D,$6(J,{shape:U,checks:[]}))}function y2D(D,$){if(!l$($))throw Error("Invalid input to extend: expected a plain object");let J=D._zod.def.checks;if(J&&J.length>0){let Y=u6(D);for(let Q of Reflect.ownKeys($))if(Object.getOwnPropertyDescriptor(Y,Q)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return fD(D,$6(D._zod.def,{shape:vC(D,$)}))}function vC(D,$){let J={};return v4(J,D,Reflect.ownKeys(u6(D))),P2D(J,$),J}function h2D(D,$){if(!l$($))throw Error("Invalid input to safeExtend: expected a plain object");return fD(D,$6(D._zod.def,{shape:vC(D,$)}))}function m2D(D,$){if(!$?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(D._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let J={};v4(J,D,Reflect.ownKeys(u6(D))),v4(J,$,Reflect.ownKeys(u6($)));let X=$6(D._zod.def,{shape:J,get catchall(){return $._zod.def.catchall},checks:$._zod.def.checks??[]});return fD(D,X)}function l2D(D,$,J,X="partial"){let Q=$._zod.def.checks;if(Q&&Q.length>0)throw Error(`.${X}() cannot be used on object schemas containing refinements`);let F=J?new Set(CX($,J)):void 0,W={};return v4(W,$,Reflect.ownKeys(u6($)),D&&((K,q)=>F&&!F.has(q)?K:new D({type:"optional",innerType:K}))),fD($,$6($._zod.def,{shape:W,checks:[]}))}function d2D(D,$,J){let X=J?new Set(CX($,J)):void 0,Y={};return v4(Y,$,Reflect.ownKeys(u6($)),(Q,U)=>X&&!X.has(U)?Q:new D({type:"nonoptional",innerType:Q})),fD($,$6($._zod.def,{shape:Y}))}function $$(D,$=0){if(D.aborted===!0)return!0;for(let J=$;J<D.issues.length;J++)if(D.issues[J]?.continue!==!0)return!0;return!1}function Aq(D,$=0){if(D.aborted===!0)return!0;for(let J=$;J<D.issues.length;J++)if(D.issues[J]?.continue===!1)return!0;return!1}function H$(D,$){return $.map((J)=>{var X;return(X=J).path??(X.path=[]),J.path.unshift(D),J})}function N2(D){return typeof D==="string"?D:D?.message}function kX(D,$,J){var X;for(let Y=$;Y<D.length;Y++)(X=D[Y]).schema??(X.schema=J)}function I$(D,$,J){var X;let Y=D.inst?._zod?.traits;if(Y?.has("$ZodType"))if(Y.has("$ZodCheck"))(X=D).schema??(X.schema=D.inst);else D.schema=D.inst;let Q=D.schema!==D.inst?D.schema?._zod.def?.error:void 0,U=D.message?D.message:N2(D.inst?._zod.def?.error?.(D))??N2(Q?.(D))??N2($?.error?.(D))??N2(J.customError?.(D))??N2(J.localeError?.(D))??"Invalid input",F={};for(let W of Object.keys(D)){if(W==="inst"||W==="schema"||W==="continue"||W==="input"||W==="__proto__")continue;F[W]=D[W]}if(F.path??(F.path=[]),F.message=U,$?.reportInput)F.input=D.input;return F}function o5(D){if(D instanceof Set)return"set";if(D instanceof Map)return"map";if(D instanceof File)return"file";return"unknown"}function T4(D){let $=D.length;if(!i2D.test(D))return $;let J=$;for(let X=0;X<$-1;X++)if((D.charCodeAt(X)&64512)===55296&&(D.charCodeAt(X+1)&64512)===56320)J--,X++;return J}function a5(D){if(Array.isArray(D))return"array";if(typeof D==="string")return"string";return"unknown"}function l(D){let $=typeof D;switch($){case"number":return Number.isNaN(D)?"nan":"number";case"object":{if(D===null)return"null";if(Array.isArray(D))return"array";let J=D;if(J&&Object.getPrototypeOf(J)!==Object.prototype&&"constructor"in J&&J.constructor)return J.constructor.name}}return $}function R2(...D){let[$,J,X]=D;if(typeof $==="string")return{message:$,code:"custom",input:J,inst:X};return{...$}}function c2D(D){return Object.entries(D).filter(([$,J])=>{return Number.isNaN(Number.parseInt($,10))}).map(($)=>$[1])}function EC(D){let $=atob(D),J=new Uint8Array($.length);for(let X=0;X<$.length;X++)J[X]=$.charCodeAt(X);return J}function TC(D){let $="";for(let J=0;J<D.length;J++)$+=String.fromCharCode(D[J]);return btoa($)}function p2D(D){let $=D.replace(/-/g,"+").replace(/_/g,"/"),J="=".repeat((4-$.length%4)%4);return EC($+J)}function n2D(D){return TC(D).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function r2D(D){let $=D.replace(/^0x/,"");if($.length%2!==0)throw Error("Invalid hex string length");let J=new Uint8Array($.length/2);for(let X=0;X<$.length;X+=2)J[X/2]=Number.parseInt($.slice(X,X+2),16);return J}function t2D(D){return Array.from(D).map(($)=>$.toString(16).padStart(2,"0")).join("")}class PC{constructor(...D){}}function vq(D,$){for(let J in $){let X=Object.getOwnPropertyDescriptor($,J);if(X.get)Object.defineProperty(D,J,{...X,enumerable:!1});else a2D(D,J,X.value)}}function w1(D,$,J,X=!0){return Object.defineProperty(D,$,{configurable:!0,writable:!0,enumerable:X,value:J}),J}function s5(D,$,J){return w1(D,$,J,!1)}function o2D(D,$){for(let J in D){let X=D[J];Object.defineProperty($,J,{configurable:!0,enumerable:!0,get(){return w1(this,J,X(this))},set(Y){w1(this,J,Y)}})}return $}function a2D(D,$,J){Object.defineProperty(D,$,{configurable:!0,get(){return this==null?J:w1(this,$,J.bind(this))},set(X){w1(this,$,X)}})}function s2D(D,$){let J=Object.getPrototypeOf(D);return $ in J?void 0:J}function wD(D,$,J){let X=Object.getPrototypeOf(D._zod);if($ in X&&Vq!==D._zod){Vq=void 0;return}Vq=D._zod,Object.defineProperty(X,$,{configurable:!0,get(){Object.defineProperty(this,$,e2D);let Y=V1;V1=!1;try{let Q=J(this);if(V1)delete this[$];else Object.defineProperty(this,$,{configurable:!0,writable:!0,value:Q});return V1=V1||Y,Q}catch(Q){throw delete this[$],V1=V1||Y,Q}},set(Y){Object.defineProperty(this,$,{configurable:!0,writable:!0,value:Y})}})}function D9D(D,$,J,X){let Y=s2D(D,$);if(!Y)return;Object.defineProperty(Y,$,{configurable:!0,get(){let Q={configurable:!0,writable:!0,enumerable:X,value:void 0};return Object.defineProperty(this,$,Q),Q.value=J(this),Object.defineProperty(this,$,Q),Q.value},set(Q){Object.defineProperty(this,$,{configurable:!0,writable:!0,enumerable:X,value:Q})}})}function Eq(D){let $=()=>D;return $[_X]=!0,$}var LC,SX,Lq,u2D=(D)=>{let $=typeof D;switch($){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(D)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(D))return"array";if(D===null)return"null";if(D.then&&typeof D.then==="function"&&D.catch&&typeof D.catch==="function")return"promise";if(typeof Map<"u"&&D instanceof Map)return"map";if(typeof Set<"u"&&D instanceof Set)return"set";if(typeof Date<"u"&&D instanceof Date)return"date";if(typeof File<"u"&&D instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${$}`)}},n5,Rq,r5,t5,i2D,Vq,V1=!1,e2D,_X="~constantCatch";var e=C(()=>{j1();LC=Symbol("evaluating");SX="captureStackTrace"in Error?Error.captureStackTrace:(...D)=>{};Lq=j2(()=>{if(E0.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(D){return!1}});n5=new Set(["string","number","symbol"]),Rq=new Set(["string","number","bigint","boolean","symbol","undefined"]);r5=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),t5={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};i2D=/[\uD800-\uDBFF]/;e2D={configurable:!0,get(){V1=!0;return}}});function $9D(D){let $=SC;if($){let J=$.stackTraceLimit;if(typeof J==="number"){try{$.stackTraceLimit=0}catch{return SC=null,new D}try{return new D}finally{$.stackTraceLimit=J}}}return new D}function E(D,$,J,X){let Y={};function Q(Z){this.def=Z,this.constr=G,this.traits=new Set}Q.prototype=Y;let U=J,F=U&&new WeakSet;function W(Z,H){if(!Z._zod){Tq.value=new Q(H);try{Object.defineProperty(Z,"_zod",Tq)}finally{Tq.value=void 0}}else if(Z._zod.traits.has(D))return;if(Z._zod.traits.add(D),$(Z,H),F){let I=Object.getPrototypeOf(Z),B=Z._zod.constr.prototype,N=I;while(N&&N!==B)N=Object.getPrototypeOf(N);let V=N??I;if(!F.has(V))F.add(V),vq(V,U)}let z=G.prototype;for(let I in z){if(!Object.prototype.hasOwnProperty.call(z,I))continue;if(!(I in Z))Z[I]=z[I].bind(Z)}}let K=X?.Parent??Object;class q extends K{}Object.defineProperty(q,"name",{value:D});function G(Z){let H=X?.Parent?$9D(q):this;W(H,Z);let z=H._zod.deferred;if(z){for(let B of z)B();H._zod.deferred=void 0}let I=globalThis.__zod_globalConfig?.postProcessor;if(I)I(H);return H}return Object.defineProperty(G,"init",{value:W}),Object.defineProperty(G,Symbol.hasInstance,{value:(Z)=>{if(X?.Parent&&Z instanceof X.Parent)return!0;return Z?._zod?.traits?.has(D)}}),Object.defineProperty(G,"name",{value:D}),G}function Z0(D){if(D)Object.assign(E0,D);return E0}var bC,Pq,Tq,SC,bq,M$,P4,E0;var j1=C(()=>{e();Pq=Object.freeze({status:"aborted"}),Tq={value:void 0,enumerable:!1},SC="captureStackTrace"in Error?Error:null;bq=Symbol("zod_brand");M$=class M$ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};P4=class P4 extends Error{constructor(D){super(`Encountered unidirectional transform during encode: ${D}`);this.name="ZodEncodeError"}};(bC=globalThis).__zod_globalConfig??(bC.__zod_globalConfig={});E0=globalThis.__zod_globalConfig});function J9D(){let D=this._zod;return D.message??(D.message=JSON.stringify(D.def,w2,2)),D.message}function X9D(D){this._zod.message=D}function Q9D(D,$,J){if(!Object.prototype.hasOwnProperty.call(D,$))if($==="__proto__")Object.defineProperty(D,$,{value:J(),writable:!0,enumerable:!0,configurable:!0});else D[$]=J();return D[$]}function e5(D,$=(J)=>J.message){let J={},X=[];for(let Y of D.issues)if(Y.path.length>0)Q9D(J,Y.path[0],()=>[]).push($(Y));else X.push($(Y));return{formErrors:X,fieldErrors:J}}function D7(D,$=(J)=>J.message){let J={_errors:[]},X=(Y,Q=[])=>{for(let U of Y.issues)if(U.code==="invalid_union"&&U.errors.length)U.errors.map((F)=>X({issues:F},[...Q,...U.path]));else if(U.code==="invalid_key")X({issues:U.issues},[...Q,...U.path]);else if(U.code==="invalid_element")X({issues:U.issues},[...Q,...U.path]);else{let F=[...Q,...U.path];if(F.length===0)J._errors.push($(U));else{let W=J,K=0;while(K<F.length){let q=F[K],G=K===F.length-1;if(q==="_errors"){if(G)W._errors.push($(U));K++;continue}if(!Object.prototype.hasOwnProperty.call(W,q))Object.defineProperty(W,q,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let Z=W[q];if(G)Z._errors.push($(U));W=Z,K++}}}};return X(D),J}function _q(D,$=(J)=>J.message){let J={errors:[]},X=(Y,Q=[])=>{var U;for(let F of Y.issues)if(F.code==="invalid_union"&&F.errors.length)F.errors.map((W)=>X({issues:W},[...Q,...F.path]));else if(F.code==="invalid_key")X({issues:F.issues},[...Q,...F.path]);else if(F.code==="invalid_element")X({issues:F.issues},[...Q,...F.path]);else{let W=[...Q,...F.path];if(W.length===0){J.errors.push($(F));continue}let K=J,q=0;while(q<W.length){let G=W[q],Z=q===W.length-1;if(typeof G==="string"){if(K.properties??(K.properties={}),!Object.prototype.hasOwnProperty.call(K.properties,G))Object.defineProperty(K.properties,G,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0});K=K.properties[G]}else K.items??(K.items=[]),(U=K.items)[G]??(U[G]={errors:[]}),K=K.items[G];if(Z)K.errors.push($(F));q++}}};return X(D),J}function _C(D){let $=[],J=D.map((X)=>typeof X==="object"?X.key:X);for(let X of J)if(typeof X==="number")$.push(`[${X}]`);else if(typeof X==="symbol")$.push(`[${JSON.stringify(String(X))}]`);else if(/[^\w$]/.test(X))$.push(`[${JSON.stringify(X)}]`);else{if($.length)$.push(".");$.push(X)}return $.join("")}function uq(D){let $=[],J=[...D.issues].sort((X,Y)=>(X.path??[]).length-(Y.path??[]).length);for(let X of J)if($.push(`✖ ${X.message}`),X.path?.length)$.push(` → at ${_C(X.path)}`);return $.join(`
`)}var Y9D,Cq,CC,kC=(D,$)=>{D.name="$ZodError",Cq.value=$,Object.defineProperty(D,"issues",Cq),Cq.value=void 0,Object.defineProperty(D,"message",Y9D);let J=Object.getPrototypeOf(D);if(!CC.has(J))CC.add(J),Object.defineProperty(J,"toString",{configurable:!0,enumerable:!1,get(){let X=()=>this.message;return Object.defineProperty(this,"toString",{value:X,configurable:!0,writable:!0}),X},set(X){Object.defineProperty(this,"toString",{value:X,configurable:!0,writable:!0})}})},kq,B$;var gq=C(()=>{j1();e();Y9D={get:J9D,set:X9D,enumerable:!0,configurable:!0},Cq={value:void 0,enumerable:!1},CC=new WeakSet([Object.prototype,Error.prototype]),kq=E("$ZodError",kC),B$=E("$ZodError",kC,void 0,{Parent:Error})});function uX(D,$){return{callee:$?.callee??D,Err:$?.Err}}function uC(D,$,J){let X;return{success:!1,get error(){if(!X)X=new D($.map((Y)=>I$(Y,J,Z0()))),$=void 0,J=void 0;return X},set error(Y){X=Y,$=void 0,J=void 0}}}function G9D(D,$,J){let X=J?{...J,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},Y=D._zod.bag.fallbackRun,Q;if(Y)X[q9D]=!0,Q=Y({value:$,issues:[]},X);else Q=D._zod.run({value:$,issues:[]},X);if(Q instanceof Promise)throw new M$;return Q.issues.length===0}var M2=(D)=>{let $=(J,X,Y,Q)=>{let U=Y?{...Y,async:!1}:{async:!1},F=J._zod.run({value:X,issues:[]},U);if(F instanceof Promise)throw new M$;if(F.issues.length){let W=new(Q?.Err??D)(F.issues.map((K)=>I$(K,U,Z0())));throw SX(W,Q?.callee??$),W}return F.value};return $},gX,A2=(D)=>{let $=async(J,X,Y,Q)=>{let U=Y?{...Y,async:!0}:{async:!0},F=J._zod.run({value:X,issues:[]},U);if(F instanceof Promise)F=await F;if(F.issues.length){let W=new(Q?.Err??D)(F.issues.map((K)=>I$(K,U,Z0())));throw SX(W,Q?.callee??$),W}return F.value};return $},xX,v2=(D)=>($,J,X)=>{let Y=X?{...X,async:!1}:{async:!1},Q=$._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise)throw new M$;return Q.issues.length?uC(D,Q.issues,Y):{success:!0,data:Q.value}},F9D,E2=(D)=>async($,J,X)=>{let Y=X?{...X,async:!0}:{async:!0},Q=$._zod.run({value:J,issues:[]},Y);if(Q instanceof Promise)Q=await Q;return Q.issues.length?uC(D,Q.issues,Y):{success:!0,data:Q.value}},W9D,K9D,q9D,$7=(D,$,J)=>{let X=D._zod.bag.validator;if(X!==void 0){if(X($)!==K9D)return!0;if(X.definite===!0&&J===void 0)return!1}return G9D(D,$,J)},J7=async(D,$,J)=>{let X=J?{...J,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},Y=D._zod.run({value:$,issues:[]},X);if(Y instanceof Promise)Y=await Y;return Y.issues.length===0},fX=(D)=>{let $=M2(D),J=(X,Y,Q,U)=>{let F=Q?{...Q,direction:"backward"}:{direction:"backward"};return $(X,Y,F,uX(J,U))};return J},Z9D,yX=(D)=>{let $=M2(D),J=(X,Y,Q,U)=>{return $(X,Y,Q,uX(J,U))};return J},z9D,hX=(D)=>{let $=A2(D),J=async(X,Y,Q,U)=>{let F=Q?{...Q,direction:"backward"}:{direction:"backward"};return await $(X,Y,F,uX(J,U))};return J},H9D,mX=(D)=>{let $=A2(D),J=async(X,Y,Q,U)=>{return await $(X,Y,Q,uX(J,U))};return J},I9D,lX=(D)=>($,J,X)=>{let Y=X?{...X,direction:"backward"}:{direction:"backward"};return v2(D)($,J,Y)},B9D,dX=(D)=>($,J,X)=>{return v2(D)($,J,X)},O9D,iX=(D)=>async($,J,X)=>{let Y=X?{...X,direction:"backward"}:{direction:"backward"};return E2(D)($,J,Y)},N9D,cX=(D)=>async($,J,X)=>{return E2(D)($,J,X)},V9D;var xq=C(()=>{j1();gq();e();gX=M2(B$),xX=A2(B$),F9D=v2(B$);W9D=E2(B$),K9D=Symbol.for("zod.compile.invalid"),q9D=Symbol.for("zod.compile.fallback");Z9D=fX(B$),z9D=yX(B$),H9D=hX(B$),I9D=mX(B$),B9D=lX(B$),O9D=dX(B$),N9D=iX(B$),V9D=cX(B$)});var i$={};y0(i$,{xid:()=>lq,uuid7:()=>R9D,uuid6:()=>L9D,uuid4:()=>j9D,uuid:()=>b4,uppercase:()=>OG,unicodeEmail:()=>gC,undefined:()=>IG,ulid:()=>mq,time:()=>WG,string:()=>GG,sha512_hex:()=>l9D,sha512_base64url:()=>i9D,sha512_base64:()=>d9D,sha384_hex:()=>y9D,sha384_base64url:()=>m9D,sha384_base64:()=>h9D,sha256_hex:()=>g9D,sha256_base64url:()=>f9D,sha256_base64:()=>x9D,sha1_hex:()=>k9D,sha1_base64url:()=>u9D,sha1_base64:()=>_9D,rfc5322Email:()=>A9D,number:()=>O6,null:()=>HG,nanoidOfLength:()=>cq,nanoid:()=>iq,md5_hex:()=>b9D,md5_base64url:()=>C9D,md5_base64:()=>S9D,mac:()=>sq,lowercase:()=>BG,ksuid:()=>dq,ipv6:()=>aq,ipv4:()=>oq,integer:()=>Y7,idnEmail:()=>v9D,iban:()=>nX,httpProtocol:()=>X7,html5Email:()=>M9D,hostname:()=>XG,hex:()=>NG,guid:()=>nq,extendedDuration:()=>w9D,emoji:()=>tq,email:()=>rq,e164:()=>QG,duration:()=>pq,domain:()=>YG,datetime:()=>KG,date:()=>FG,currencyCode:()=>UG,cuid2:()=>hq,cuid:()=>yq,creditCard:()=>pX,cidrv6:()=>DG,cidrv4:()=>eq,browserEmail:()=>E9D,boolean:()=>zG,bigint:()=>ZG,base64url:()=>JG,base64:()=>$G,anyString:()=>qG});function cq(D){return new RegExp(`^[a-zA-Z0-9_-]{${D}}$`)}function tq(){return new RegExp(T9D,"u")}function P9D(D){return new RegExp(`^${D}$`)}function fq(D){return typeof D.precision==="number"?D.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":D.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${D.precision}}`:D.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function WG(D){return new RegExp(`^${fq(D)}$`)}function KG(D){let $=["Z"];if(D.offset)$.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let J=`${fq({precision:D.precision,seconds:!0})}(?:${$.join("|")})`,X=D.local?`${J}|${fq({precision:D.precision})}`:J;return new RegExp(`^${xC}T(?:${X})$`)}function Q7(D,$){return new RegExp(`^[A-Za-z0-9+/]{${D}}${$}$`)}function U7(D){return new RegExp(`^[A-Za-z0-9_-]{${D}}$`)}var yq,hq,mq,lq,dq,iq,pq,w9D,nq,b4=(D)=>{if(!D)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${D}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},j9D,L9D,R9D,rq,M9D,A9D,gC,v9D,E9D,T9D="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",oq,aq,sq=(D)=>{let $=d$(D??":");return new RegExp(`^(?:[0-9A-F]{2}${$}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${$}){5}[0-9a-f]{2}$`)},eq,DG,$G,JG,XG,YG,X7,QG,pX,UG,nX,xC="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",FG,qG,GG=(D)=>{let $=D?`[\\s\\S]{${D?.minimum??0},${D?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${$}$`)},ZG,Y7,O6,zG,HG,IG,BG,OG,NG,b9D,S9D,C9D,k9D,_9D,u9D,g9D,x9D,f9D,y9D,h9D,m9D,l9D,d9D,i9D;var S4=C(()=>{e();yq=/^[cC][0-9a-z]{6,}$/,hq=/^[0-9a-z]+$/,mq=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,lq=/^[0-9a-vA-V]{20}$/,dq=/^[A-Za-z0-9]{27}$/,iq=/^[a-zA-Z0-9_-]{21}$/;pq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,w9D=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nq=/^([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})$/,j9D=b4(4),L9D=b4(6),R9D=b4(7),rq=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,M9D=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,A9D=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,gC=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,v9D=gC,E9D=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;oq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eq=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,DG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$G=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,JG=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,XG=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,YG=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,X7=/^https?$/,QG=/^\+[1-9]\d{6,14}$/,pX=/^\d(?:[ -]?\d){11,18}$/,UG=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,nX=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;FG=P9D(xC);qG=/^[\s\S]{0,}$/,ZG=/^-?\d+n?$/,Y7=/^-?\d+$/,O6=/^-?\d+(?:\.\d+)?$/,zG=/^(?:true|false)$/i,HG=/^null$/i,IG=/^undefined$/i,BG=/^[^A-Z]*$/,OG=/^[^a-z]*$/,NG=/^[0-9a-fA-F]*$/;b9D=/^[0-9a-fA-F]{32}$/,S9D=Q7(22,"=="),C9D=U7(22),k9D=/^[0-9a-fA-F]{40}$/,_9D=Q7(27,"="),u9D=U7(27),g9D=/^[0-9a-fA-F]{64}$/,x9D=Q7(43,"="),f9D=U7(43),y9D=/^[0-9a-fA-F]{96}$/,h9D=Q7(64,""),m9D=U7(64),l9D=/^[0-9a-fA-F]{128}$/,d9D=Q7(86,"=="),i9D=U7(86)});function tX(D,$,J){if(D.issues.length)$.issues.push(...H$(J,D.issues))}var nD,VG=(D)=>{let $=D.value;return!bX($)&&$.size!==void 0},wG=(D)=>{let $=D.value;return!bX($)&&$.length!==void 0},rX,oX,aX,jG,LG,RG,MG,AG,vG,EG,TG,PG,T2,bG,SG,CG,kG,_G,uG,gG,xG,fG,yG;var sX=C(()=>{j1();S4();e();nD=E("$ZodCheck",(D,$)=>{var J;D._zod??(D._zod={}),D._zod.def=$,(J=D._zod).onattach??(J.onattach=[])}),rX={number:"number",bigint:"bigint",object:"date"},oX=E("$ZodCheckLessThan",(D,$)=>{nD.init(D,$);let J=rX[typeof $.value];D._zod.check=(X)=>{if($.inclusive?X.value<=$.value:X.value<$.value)return;X.issues.push({origin:rX[typeof X.value]??J,code:"too_big",maximum:typeof $.value==="object"?$.value.getTime():$.value,input:X.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),aX=E("$ZodCheckGreaterThan",(D,$)=>{nD.init(D,$);let J=rX[typeof $.value];D._zod.check=(X)=>{if($.inclusive?X.value>=$.value:X.value>$.value)return;X.issues.push({origin:rX[typeof X.value]??J,code:"too_small",minimum:typeof $.value==="object"?$.value.getTime():$.value,input:X.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),jG=E("$ZodCheckMultipleOf",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{if(typeof J.value!==typeof $.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof J.value==="bigint"?$.value!==BigInt(0)&&J.value%$.value===BigInt(0):c5(J.value,$.value)===0)return;J.issues.push({origin:typeof J.value,code:"not_multiple_of",divisor:$.value,input:J.value,inst:D,continue:!$.abort})}}),LG=E("$ZodCheckNumberFormat",(D,$)=>{nD.init(D,$),$.format=$.format||"float64";let J=$.format?.includes("int"),X=J?"int":"number",[Y,Q]=r5[$.format];D._zod.check=(U)=>{let F=U.value;if(J){if(!Number.isInteger(F)){U.issues.push({expected:X,format:$.format,code:"invalid_type",continue:!1,input:F,inst:D});return}if(!Number.isSafeInteger(F)){if(F>0)U.issues.push({input:F,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:X,inclusive:!0,continue:!$.abort});else U.issues.push({input:F,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:X,inclusive:!0,continue:!$.abort});return}}if(F<Y)U.issues.push({origin:"number",input:F,code:"too_small",minimum:Y,inclusive:!0,inst:D,continue:!$.abort});if(F>Q)U.issues.push({origin:"number",input:F,code:"too_big",maximum:Q,inclusive:!0,inst:D,continue:!$.abort})}}),RG=E("$ZodCheckBigIntFormat",(D,$)=>{nD.init(D,$);let[J,X]=t5[$.format];D._zod.check=(Y)=>{let Q=Y.value;if(Q<J)Y.issues.push({origin:"bigint",input:Q,code:"too_small",minimum:J,inclusive:!0,inst:D,continue:!$.abort});if(Q>X)Y.issues.push({origin:"bigint",input:Q,code:"too_big",maximum:X,inclusive:!0,inst:D,continue:!$.abort})}}),MG=E("$ZodCheckMaxSize",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=VG),D._zod.check=(X)=>{let Y=X.value;if(Y.size<=$.maximum)return;X.issues.push({origin:o5(Y),code:"too_big",maximum:$.maximum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),AG=E("$ZodCheckMinSize",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=VG),D._zod.check=(X)=>{let Y=X.value;if(Y.size>=$.minimum)return;X.issues.push({origin:o5(Y),code:"too_small",minimum:$.minimum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),vG=E("$ZodCheckSizeEquals",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=VG),D._zod.check=(X)=>{let Y=X.value,Q=Y.size;if(Q===$.size)return;let U=Q>$.size;X.issues.push({origin:o5(Y),...U?{code:"too_big",maximum:$.size}:{code:"too_small",minimum:$.size},inclusive:!0,exact:!0,input:X.value,inst:D,continue:!$.abort})}}),EG=E("$ZodCheckMaxLength",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=wG),D._zod.check=(X)=>{let Y=X.value,Q=Y.length;if((typeof Y==="string"&&Q>$.maximum?T4(Y):Q)<=$.maximum)return;let F=a5(Y);X.issues.push({origin:F,code:"too_big",maximum:$.maximum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),TG=E("$ZodCheckMinLength",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=wG),D._zod.check=(X)=>{let Y=X.value,Q=Y.length;if((typeof Y==="string"&&Q>=$.minimum&&Q<$.minimum*2?T4(Y):Q)>=$.minimum)return;let F=a5(Y);X.issues.push({origin:F,code:"too_small",minimum:$.minimum,inclusive:!0,input:Y,inst:D,continue:!$.abort})}}),PG=E("$ZodCheckLengthEquals",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=wG),D._zod.check=(X)=>{let Y=X.value,Q=Y.length,U=typeof Y==="string"&&Q>=$.length&&Q<=$.length*2?T4(Y):Q;if(U===$.length)return;let F=a5(Y),W=U>$.length;X.issues.push({origin:F,...W?{code:"too_big",maximum:$.length}:{code:"too_small",minimum:$.length},inclusive:!0,exact:!0,input:X.value,inst:D,continue:!$.abort})}}),T2=E("$ZodCheckStringFormat",(D,$)=>{var J,X;if(nD.init(D,$),$.pattern)(J=D._zod).check??(J.check=(Y)=>{if($.pattern.lastIndex=0,$.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:$.format,input:Y.value,...$.pattern?{pattern:$.pattern.toString()}:{},inst:D,continue:!$.abort})});else(X=D._zod).check??(X.check=()=>{})}),bG=E("$ZodCheckRegex",(D,$)=>{T2.init(D,$),D._zod.check=(J)=>{if($.pattern.lastIndex=0,$.pattern.test(J.value))return;J.issues.push({origin:"string",code:"invalid_format",format:"regex",input:J.value,pattern:$.pattern.toString(),inst:D,continue:!$.abort})}}),SG=E("$ZodCheckLowerCase",(D,$)=>{$.pattern??($.pattern=BG),T2.init(D,$)}),CG=E("$ZodCheckUpperCase",(D,$)=>{$.pattern??($.pattern=OG),T2.init(D,$)}),kG=E("$ZodCheckIncludes",(D,$)=>{nD.init(D,$);let J=d$($.includes),X=new RegExp(typeof $.position==="number"?`^.{${$.position},}${J}`:J);$.pattern=X,D._zod.check=(Y)=>{if(Y.value.includes($.includes,$.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:$.includes,input:Y.value,inst:D,continue:!$.abort})}}),_G=E("$ZodCheckStartsWith",(D,$)=>{nD.init(D,$);let J=new RegExp(`^${d$($.prefix)}.*`);$.pattern??($.pattern=J),D._zod.check=(X)=>{if(X.value.startsWith($.prefix))return;X.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:$.prefix,input:X.value,inst:D,continue:!$.abort})}}),uG=E("$ZodCheckEndsWith",(D,$)=>{nD.init(D,$);let J=new RegExp(`.*${d$($.suffix)}$`);$.pattern??($.pattern=J),D._zod.check=(X)=>{if(X.value.endsWith($.suffix))return;X.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:$.suffix,input:X.value,inst:D,continue:!$.abort})}});gG=E("$ZodCheckProperty",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{let X=$.schema._zod.run({value:J.value[$.property],issues:[]},{});if(X instanceof Promise)return X.then((Y)=>tX(Y,J,$.property));tX(X,J,$.property);return}}),xG=E("$ZodCheckProperties",(D,$)=>{nD.init(D,$),s5(D,Symbol.iterator,function*(){yield D});let J;D._zod.check=(X)=>{if(X.value==null){X.issues.push({expected:"object",code:"invalid_type",input:X.value,inst:D});return}J??(J=Reflect.ownKeys($.shape).map((U)=>[U,$.shape[U]]));let Y=X.value,Q;for(let[U,F]of J){let W=F._zod.run({value:Y[U],issues:[]},{});if(W instanceof Promise)Q??(Q=[]),Q.push(W.then((K)=>tX(K,X,U)));else tX(W,X,U)}if(Q)return Promise.all(Q).then(()=>{return});return}}),fG=E("$ZodCheckMimeType",(D,$)=>{nD.init(D,$);let J=new Set($.mime);D._zod.check=(X)=>{if(J.has(X.value.type))return;X.issues.push({code:"invalid_value",values:$.mime,input:X.value.type,inst:D,continue:!$.abort})}}),yG=E("$ZodCheckOverwrite",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{J.value=$.tx(J.value)}})});class P2{constructor(D=[],$={}){this.content=[],this.indent=0,this.args=D,this.closed=$}indented(D){this.indent+=1;try{D(this)}finally{this.indent-=1}}write(D){if(typeof D==="function"){D(this,{execution:"sync"}),D(this,{execution:"async"});return}let J=D.split(`
`).filter((Q)=>Q),X=Math.min(...J.map((Q)=>Q.length-Q.trimStart().length)),Y=J.map((Q)=>Q.slice(X)).map((Q)=>" ".repeat(this.indent*2)+Q);for(let Q of Y)this.content.push(Q)}compile(){let D=Function,$=this?.content??[""];return new D(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
${$.join(`
`)}
};`)(...Object.values(this.closed))}}var hG;var mG=C(()=>{hG={major:4,minor:6,patch:5}});async function c9D(D,$){let J={async:!0};return Dk(await D._zod.run({value:$,issues:[]},J),J)}function XY(D){return{validate:($)=>{let J={async:!1};try{let X=D._zod.run({value:$,issues:[]},J);if(!(X instanceof Promise))return Dk(X,J)}catch(X){}return c9D(D,$)},vendor:"zod",version:1}}function nG(D){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(D);return new URL(D),!0}catch{return!1}}function YY(D,$){if(!("normalize"in $)&&!("hostname"in $)&&!("protocol"in $))return nG(D)||F7;return $k(D,$)}function $k(D,$){if(!$.normalize&&$.protocol?.source===X7.source&&!/^https?:\/\//i.test(D))return pG;try{if(typeof URL<"u"){let J=URL;if(typeof J.parse==="function")return J.parse(D)??F7}return new URL(D)}catch{return F7}}function W7(D){return D.replace(p9D,"")}function QY(D,$){return $.lastIndex=0,$.test(D.hostname)}function UY(D,$){return $.lastIndex=0,$.test(D.protocol.endsWith(":")?D.protocol.slice(0,-1):D.protocol)}function K7(D){if(!n9D.test(D))return!1;return nG(`http://[${D}]`)}function FY(D){let $=D.split("/");if($.length!==2)return!1;let[J,X]=$;if(!X)return!1;let Y=Number(X);if(`${Y}`!==X)return!1;if(Y<0||Y>128)return!1;return K7(J)}function q7(D){if(D==="")return!0;if(/\s/.test(D))return!1;if(D.length%4!==0)return!1;try{return atob(D),!0}catch{return!1}}function KY(D){if(!G7.test(D))return!1;let $=D.replace(/[-_]/g,(X)=>X==="-"?"+":"/"),J=$.padEnd(Math.ceil($.length/4)*4,"=");return q7(J)}function t9D(D){let $=D.length,J=1,X=0;while($){let Y=D.charCodeAt(--$)-48;J^=1,X+=J?[0,2,4,6,8,1,3,5,7,9][Y]:Y}return X%10===0}function qY(D){if(!pX.test(D))return!1;return t9D(D.replace(r9D,""))}function o9D(D){let $=0,J=D.length;for(let X=4;X<J;X++){let Y=D.charCodeAt(X);$=(Y>=65?$*100+(Y-55):$*10+(Y-48))%97}for(let X=0;X<4;X++){let Y=D.charCodeAt(X);$=(Y>=65?$*100+(Y-55):$*10+(Y-48))%97}return $===1}function GY(D){if(!nX.test(D))return!1;return o9D(D)}function ZY(D,$=null){try{let J=D.split(".");if(J.length!==3)return!1;let[X]=J;if(!X)return!1;let Y=JSON.parse(atob(X));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if($&&(!("alg"in Y)||Y.alg!==$))return!1;return!0}catch{return!1}}function yC(D,$,J){if(D.issues.length)$.issues.push(...H$(J,D.issues));$.value[J]=D.value}function JY(D,$,J,X,Y,Q){let U=J in X,F=Q==="optional";if(!U&&F&&Y==="optional")return;if(D.issues.length){if(Y!==void 0&&F&&!U)return;$.issues.push(...H$(J,D.issues))}if(!U&&Y===void 0){if(!D.issues.length)$.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[J]});return}if(D.value===void 0){if(U||Y==="defaulted"&&!F)$.value[J]=void 0}else $.value[J]=D.value}function Jk(D){let $=Object.keys(D.shape),J=Object.getOwnPropertySymbols(D.shape),X=J.length?J:a9D,Y=X.length?[...$,...X]:$;for(let U of Y)if(!D.shape?.[U]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(U)}": expected a Zod schema`);let Q=Mq(D.shape);return{...D,allKeys:Y,symbolKeys:X,keySet:new Set($),numKeys:$.length,optionalKeys:new Set(Q)}}function Xk(D,$,J,X,Y,Q,U){let F=[],W=Y.keySet,K=Y.catchall._zod,q=K.def.type,G=K.optin,Z=K.optout,H=0;for(let z in $){if(U&&J.issues.length!==H){if($$(J,H))break;H=J.issues.length}if(W.has(z))continue;if(z==="__proto__"){if(q==="never")F.push(z);continue}if(q==="never"){F.push(z);continue}let I=K.run({value:$[z],issues:[]},X);if(I instanceof Promise)D.push(I.then((B)=>JY(B,J,z,$,G,Z)));else JY(I,J,z,$,G,Z)}if(F.length)J.issues.push({code:"unrecognized_keys",keys:F,input:$,inst:Q,continue:!0});if(!D.length)return J;return Promise.all(D).then(()=>{return J})}function hC(D,$,J,X){for(let Q of D)if(Q.issues.length===0)return $.value=Q.value,$;let Y=D.filter((Q)=>!$$(Q));if(Y.length===1)return $.value=Y[0].value,Y[0];return $.issues.push({code:"invalid_union",input:$.value,inst:J,errors:D.map((Q)=>Q.issues.map((U)=>I$(U,X,Z0())))}),$}function mC(D,$,J,X){let Y=[];for(let Q=0;Q<D.length;Q++)if(D[Q].issues.length===0)Y.push(Q);if(Y.length===1)return $.value=D[Y[0]].value,$;if(Y.length===0)$.issues.push({code:"invalid_union",input:$.value,inst:J,errors:D.map((Q)=>Q.issues.map((U)=>I$(U,X,Z0())))});else $.issues.push({code:"invalid_union",input:$.value,inst:J,errors:[],inclusive:!1,matches:Y});return $}function SZ(D,$){let J=D._zod,X=J.bag.optionsMap;if(!X)X=Qk(J.def),J.bag.optionsMap=X;let Y=X.get($);if(Y===null)throw Error(`Ambiguous discriminator value "${String($)}"`);return Y}function Qk(D){let $=new Map;for(let J of D.options){let X=J._zod.propValues?.[D.discriminator];if(!X||X.size===0)throw Error(`Invalid discriminated union option at index "${D.options.indexOf(J)}"`);for(let Y of X)if($.has(Y)){if(Y!==void 0)throw Error(`Duplicate discriminator value "${String(Y)}"`);$.set(Y,null)}else $.set(Y,J)}return $}function b2(D,$){if(D===$)return{valid:!0,data:D};if(D instanceof Date&&$ instanceof Date&&+D===+$)return{valid:!0,data:D};if(l$(D)&&l$($)){let J=Object.keys($),X=Object.keys(D).filter((Q)=>J.indexOf(Q)!==-1),Y={...D,...$};if(Object.prototype.hasOwnProperty.call(Y,"__proto__"))delete Y.__proto__;for(let Q of X){if(Q==="__proto__")continue;let U=b2(D[Q],$[Q]);if(!U.valid)return{valid:!1,mergeErrorPath:[Q,...U.mergeErrorPath]};Y[Q]=U.data}return{valid:!0,data:Y}}if(Array.isArray(D)&&Array.isArray($)){if(D.length!==$.length)return{valid:!1,mergeErrorPath:[]};let J=[];for(let X=0;X<D.length;X++){let Y=D[X],Q=$[X],U=b2(Y,Q);if(!U.valid)return{valid:!1,mergeErrorPath:[X,...U.mergeErrorPath]};J.push(U.data)}return{valid:!0,data:J}}return{valid:!1,mergeErrorPath:[]}}function lC(D,$,J){let X=new Map,Y,Q=new Map,U=(K,q)=>{let G;if(K.code==="unrecognized_keys"&&!K.path?.length)Y??(Y=K),G=K.keys;else if(K.code==="invalid_key"&&K.origin==="record"&&K.path?.length===1){let Z=String(K.path[0]);if(!Q.has(Z))Q.set(Z,K);G=[Z]}else return!1;for(let Z of G){if(!X.has(Z))X.set(Z,{});X.get(Z)[q]=!0}return!0};for(let K of $.issues)if(!U(K,"l"))D.issues.push(K);for(let K of J.issues)if(!U(K,"r"))D.issues.push(K);let F=[...X].filter(([,K])=>K.l&&K.r).map(([K])=>K);if(F.length){let K=Y?F.filter((q)=>Y.keys.includes(q)):[];if(K.length)D.issues.push({...Y,keys:K});for(let q of F)if(!K.includes(q)&&Q.has(q))D.issues.push(Q.get(q))}let W=b2($.value,J.value);if(!W.valid){if($$(D))return D;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(W.mergeErrorPath)}`)}return D.value=W.data,D}function dC(D,$){for(let J=D.length-1;J>=0;J--)if(!($==="optin"?D[J]._zod.optin!==void 0:D[J]._zod.optout==="optional"))return J+1;return 0}function iC(D,$,J){if(D.issues.length)$.issues.push(...H$(J,D.issues));$.value[J]=D.value}function cC(D,$,J,X,Y){for(let Q=0;Q<J.length;Q++){let U=D[Q],F=Q<X.length;if(!F&&Q>=Y&&J[Q]._zod.optin==="optional"){$.value.length=Q;break}if(U.issues.length){if(!F&&Q>=Y){$.value.length=Q;break}$.issues.push(...H$(Q,U.issues))}$.value[Q]=U.value}for(let Q=$.value.length-1;Q>=X.length;Q--)if(J[Q]._zod.optout==="optional"&&$.value[Q]===void 0)$.value.length=Q;else break;return $}function pC(D,$,J,X,Y,Q,U){if(D.issues.length)if(n5.has(typeof X))J.issues.push(...H$(X,D.issues));else J.issues.push({code:"invalid_key",origin:"map",input:Y,inst:Q,issues:D.issues.map((F)=>I$(F,U,Z0()))});if($.issues.length)if(n5.has(typeof X))J.issues.push(...H$(X,$.issues));else J.issues.push({origin:"map",code:"invalid_element",input:Y,inst:Q,key:X,issues:$.issues.map((F)=>I$(F,U,Z0()))});J.value.set(D.value,$.value)}function nC(D,$){if(D.issues.length)$.issues.push(...D.issues);$.value.add(D.value)}function rC(D,$){return D.value=$.issues.length?void 0:$.value,D}function tC(D,$){if(D.value===void 0)D.value=$.defaultValue;return D}function oC(D,$){if(!D.issues.length&&D.value===void 0)D.issues.push({code:"invalid_type",expected:"nonoptional",input:D.value,inst:$});return D}function aC(D,$,J,X){if(!$.issues.length){if(D.value=$.value,$.memo)D.memo=!0;return D}return D.value=J.catchValue({...$,value:D.value,error:{issues:$.issues.map((Y)=>I$(Y,X,Z0()))},input:D.value}),D}function eX(D,$,J){if(D.issues.some((X)=>X.code!=="unrecognized_keys"))return D.aborted=!0,D;return $._zod.run({value:D.value,issues:D.issues},J)}function DY(D,$,J){if(D.issues.length)return D.aborted=!0,D;if((J.direction||"forward")==="forward"){let Y=$.transform(D.value,D);if(Y instanceof Promise)return Y.then((Q)=>$Y(D,Q,$.out,J));return $Y(D,Y,$.out,J)}else{let Y=$.reverseTransform(D.value,D);if(Y instanceof Promise)return Y.then((Q)=>$Y(D,Q,$.in,J));return $Y(D,Y,$.in,J)}}function $Y(D,$,J,X){if(D.issues.length)return D.aborted=!0,D;return J._zod.run({value:$,issues:D.issues},X)}function sC(D){if(!D.memo)D.value=Object.freeze(D.value);return D}function s9D(D){let $=D._zod.def,J=$.pattern,X=!!$.format?.includes("int"),Y,Q;for(let F of $.checks??[]){let W=F._zod.def;if(W.pattern)J=W.pattern;X||(X=!!W.format?.includes("int"));let K=W.minimum??W.length,q=W.maximum??W.length;if(K!==void 0&&(Y===void 0||K>Y))Y=K;if(q!==void 0&&(Q===void 0||q<Q))Q=q}if(J)return J.source;if(Y!==void 0&&Q!==void 0&&Y>Q)return"(?!)";if(Y!==void 0||Q!==void 0)return GG({minimum:Y,maximum:Q}).source;let U=D._zod.pattern;return(X&&U===O6?Y7:U)?.source}function lG(D){let $=D._zod.def,J=D._zod.pattern?.source,X=$.innerType??D._zod.innerType;if(X){let Y=X._zod.pattern?.source,Q=lG(X);if(J&&Y&&Q&&Q!==Y)return J.replace(g6(Y),()=>g6(Q));return J}if($.options){let Y=$.options.map(lG);if(Y.every(Boolean))return`^(${Y.map((Q)=>g6(Q)).join("|")})$`}return s9D(D)}function eC(D,$,J,X){if(!D){let Y={code:"custom",input:J,inst:X,path:[...X._zod.def.path??[]],continue:!X._zod.def.abort};if(X._zod.def.params)Y.params=X._zod.def.params;$.issues.push(R2(Y))}}var zD,Dk=(D,$)=>D.issues.length?{issues:D.issues.map((J)=>I$(J,$,Z0()))}:{value:D.value},C4,yD,dG,iG,cG,pG=1,F7=2,p9D,rG,tG,oG,aG,sG,eG,DZ,$Z,JZ,XZ,YZ,QZ,UZ,n9D,FZ,WZ,KZ,qZ,WY,GZ,G7,ZZ,zZ,r9D,HZ,IZ,BZ,OZ,zY,NZ,Z7,HY,VZ,wZ,jZ,LZ,RZ,MZ,AZ,vZ,EZ,TZ,a9D,Yk,PZ,z7,bZ,CZ,kZ,IY,_Z,uZ,gZ,xZ,fZ,yZ,hZ,BY,mZ,lZ,dZ,iZ,cZ,pZ,nZ,rZ,OY,H7,tZ,oZ,aZ,sZ,eZ,I7,Dz;var S2=C(()=>{sX();j1();xq();S4();e();mG();e();zD=E("$ZodType",(D,$)=>{var J;D??(D={}),D._zod.def=$,D._zod.bag=D._zod.bag||{},D._zod.version=hG;let X=D._zod.def.checks,Y=D._zod.traits.has("$ZodCheck")?[D,...X??[]]:X?.length?[...X]:[];for(let Q of Y)for(let U of Q._zod.onattach)U(D);if(Y.length===0)(J=D._zod).deferred??(J.deferred=[]),D._zod.deferred?.push(()=>{D._zod.run=D._zod.parse});else{let Q=(F,W,K)=>{if(F.memo)return F;let q=$$(F),G;for(let Z of W){if(Z._zod.def.when){if(Aq(F))continue;if(!Z._zod.def.when(F))continue}else if(q)continue;let H=F.issues.length,z=Z._zod.check(F);if(z instanceof Promise&&K?.async===!1)throw new M$;if(G||z instanceof Promise)G=(G??Promise.resolve()).then(async()=>{if(await z,F.issues.length===H)return;if(kX(F.issues,H,D),!q)q=$$(F,H)});else{if(F.issues.length===H)continue;if(kX(F.issues,H,D),!q)q=$$(F,H)}}if(G)return G.then(()=>{return F});return F},U=(F,W,K)=>{if($$(F))return F.aborted=!0,F;let q=Q(W,Y,K);if(q instanceof Promise){if(K.async===!1)throw new M$;return q.then((G)=>D._zod.parse(G,K))}return D._zod.parse(q,K)};D._zod.run=(F,W)=>{if(W.skipChecks)return D._zod.parse(F,W);if(W.direction==="backward"){let q=D._zod.parse({value:F.value,issues:[]},{...W,skipChecks:!0});if(q instanceof Promise)return q.then((G)=>{return U(G,F,W)});return U(q,F,W)}let K=D._zod.parse(F,W);if(K instanceof Promise){if(W.async===!1)throw new M$;return K.then((q)=>Q(q,Y,W))}return Q(K,Y,W)}}},{get "~standard"(){return s5(this,"~standard",XY(this))},set "~standard"(D){w1(this,"~standard",D)}});C4=E("$ZodString",(D,$)=>{zD.init(D,$),D._zod.pattern=$.pattern??qG,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=String(J.value)}catch(Y){}if(typeof J.value==="string")return J;return J.issues.push({expected:"string",code:"invalid_type",input:J.value,inst:D}),J}}),yD=E("$ZodStringFormat",(D,$)=>{T2.init(D,$),C4.init(D,$)}),dG=E("$ZodGUID",(D,$)=>{$.pattern??($.pattern=nq),yD.init(D,$)}),iG=E("$ZodUUID",(D,$)=>{if($.version){let X={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[$.version];if(X===void 0)throw Error(`Invalid UUID version: "${$.version}"`);$.pattern??($.pattern=b4(X))}else $.pattern??($.pattern=b4());yD.init(D,$)}),cG=E("$ZodEmail",(D,$)=>{$.pattern??($.pattern=rq),yD.init(D,$)});p9D=/[\t\n\r]/g;rG=E("$ZodURL",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{try{let X=J.value.trim(),Y=YY(X,$);if(Y===pG){J.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:J.value,inst:D,continue:!$.abort});return}if(Y===F7){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:D,continue:!$.abort});return}if(Y===!0){J.value=W7(X);return}if($.hostname&&!QY(Y,$.hostname))J.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:$.hostname.source,input:J.value,inst:D,continue:!$.abort});if($.protocol&&!UY(Y,$.protocol))J.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:$.protocol.source,input:J.value,inst:D,continue:!$.abort});J.value=$.normalize?Y.href:W7(X);return}catch(X){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:D,continue:!$.abort})}}}),tG=E("$ZodEmoji",(D,$)=>{$.pattern??($.pattern=tq()),yD.init(D,$)}),oG=E("$ZodNanoID",(D,$)=>{if($.length!==void 0&&(!Number.isInteger($.length)||$.length<1))throw Error(`Invalid nanoid length: ${$.length}`);$.pattern??($.pattern=$.length===void 0?iq:cq($.length)),yD.init(D,$)}),aG=E("$ZodCUID",(D,$)=>{$.pattern??($.pattern=yq),yD.init(D,$)}),sG=E("$ZodCUID2",(D,$)=>{$.pattern??($.pattern=hq),yD.init(D,$)}),eG=E("$ZodULID",(D,$)=>{$.pattern??($.pattern=mq),yD.init(D,$)}),DZ=E("$ZodXID",(D,$)=>{$.pattern??($.pattern=lq),yD.init(D,$)}),$Z=E("$ZodKSUID",(D,$)=>{$.pattern??($.pattern=dq),yD.init(D,$)}),JZ=E("$ZodISODateTime",(D,$)=>{$.pattern??($.pattern=KG($)),yD.init(D,$)}),XZ=E("$ZodISODate",(D,$)=>{$.pattern??($.pattern=FG),yD.init(D,$)}),YZ=E("$ZodISOTime",(D,$)=>{$.pattern??($.pattern=WG($)),yD.init(D,$)}),QZ=E("$ZodISODuration",(D,$)=>{$.pattern??($.pattern=pq),yD.init(D,$)}),UZ=E("$ZodIPv4",(D,$)=>{$.pattern??($.pattern=oq),yD.init(D,$)}),n9D=/^[0-9a-fA-F:.]+$/;FZ=E("$ZodIPv6",(D,$)=>{$.pattern??($.pattern=aq),yD.init(D,$),D._zod.check=(J)=>{if(!K7(J.value))J.issues.push({code:"invalid_format",format:"ipv6",input:J.value,inst:D,continue:!$.abort})}}),WZ=E("$ZodMAC",(D,$)=>{$.pattern??($.pattern=sq($.delimiter)),yD.init(D,$)}),KZ=E("$ZodCIDRv4",(D,$)=>{$.pattern??($.pattern=eq),yD.init(D,$)});qZ=E("$ZodCIDRv6",(D,$)=>{$.pattern??($.pattern=DG),yD.init(D,$),D._zod.check=(J)=>{if(!FY(J.value))J.issues.push({code:"invalid_format",format:"cidrv6",input:J.value,inst:D,continue:!$.abort})}});WY=/^[0-9a-zA-Z+/]*={0,2}$/,GZ=E("$ZodBase64",(D,$)=>{$.pattern??($.pattern=WY),yD.init(D,$),D._zod.check=(J)=>{if(q7(J.value))return;J.issues.push({code:"invalid_format",format:"base64",input:J.value,inst:D,continue:!$.abort})}}),G7=/^[A-Za-z0-9_-]*$/;ZZ=E("$ZodBase64URL",(D,$)=>{$.pattern??($.pattern=G7),yD.init(D,$),D._zod.check=(J)=>{if(KY(J.value))return;J.issues.push({code:"invalid_format",format:"base64url",input:J.value,inst:D,continue:!$.abort})}}),zZ=E("$ZodE164",(D,$)=>{$.pattern??($.pattern=QG),yD.init(D,$)}),r9D=/[- ]/g;HZ=E("$ZodCreditCard",(D,$)=>{$.pattern??($.pattern=pX),yD.init(D,$),D._zod.check=(J)=>{if(qY(J.value))return;J.issues.push({code:"invalid_format",format:"credit_card",input:J.value,inst:D,continue:!$.abort})}});IZ=E("$ZodIBAN",(D,$)=>{$.pattern??($.pattern=nX),yD.init(D,$),D._zod.check=(J)=>{if(GY(J.value))return;J.issues.push({code:"invalid_format",format:"iban",input:J.value,inst:D,continue:!$.abort})}});BZ=E("$ZodJWT",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{if(ZY(J.value,$.alg))return;J.issues.push({code:"invalid_format",format:"jwt",input:J.value,inst:D,continue:!$.abort})}}),OZ=E("$ZodCustomStringFormat",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{if($.fn(J.value))return;J.issues.push({code:"invalid_format",format:$.format,input:J.value,inst:D,continue:!$.abort})}}),zY=E("$ZodNumber",(D,$)=>{zD.init(D,$),D._zod.pattern=O6,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=Number(J.value)}catch(U){}let Y=J.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return J;let Q=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?String(Y):void 0:void 0;return J.issues.push({expected:"number",code:"invalid_type",input:Y,inst:D,...Q?{received:Q}:{}}),J}}),NZ=E("$ZodNumberFormat",(D,$)=>{LG.init(D,$),zY.init(D,$)}),Z7=E("$ZodBoolean",(D,$)=>{zD.init(D,$),D._zod.pattern=zG,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=Boolean(J.value)}catch(Q){}let Y=J.value;if(typeof Y==="boolean")return J;return J.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:D}),J}}),HY=E("$ZodBigInt",(D,$)=>{zD.init(D,$),D._zod.pattern=ZG,D._zod.parse=(J,X)=>{if($.coerce)try{J.value=BigInt(J.value)}catch(Y){}if(typeof J.value==="bigint")return J;return J.issues.push({expected:"bigint",code:"invalid_type",input:J.value,inst:D}),J}}),VZ=E("$ZodBigIntFormat",(D,$)=>{RG.init(D,$),HY.init(D,$)}),wZ=E("$ZodSymbol",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value;if(typeof Y==="symbol")return J;return J.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:D}),J}}),jZ=E("$ZodUndefined",(D,$)=>{zD.init(D,$),D._zod.pattern=IG,D._zod.values=new Set([void 0]),D._zod.parse=(J,X)=>{let Y=J.value;if(typeof Y>"u")return J;return J.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:D}),J}}),LZ=E("$ZodNull",(D,$)=>{zD.init(D,$),D._zod.pattern=HG,D._zod.values=new Set([null]),D._zod.parse=(J,X)=>{let Y=J.value;if(Y===null)return J;return J.issues.push({expected:"null",code:"invalid_type",input:Y,inst:D}),J}}),RZ=E("$ZodAny",(D,$)=>{zD.init(D,$),D._zod.parse=(J)=>J}),MZ=E("$ZodUnknown",(D,$)=>{zD.init(D,$),D._zod.parse=(J)=>J}),AZ=E("$ZodNever",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{return J.issues.push({expected:"never",code:"invalid_type",input:J.value,inst:D}),J}}),vZ=E("$ZodVoid",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value;if(typeof Y>"u")return J;return J.issues.push({expected:"void",code:"invalid_type",input:Y,inst:D}),J}}),EZ=E("$ZodDate",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{if($.coerce)try{J.value=new Date(J.value)}catch(F){}let Y=J.value,Q=Y instanceof Date;if(Q&&!Number.isNaN(Y.getTime()))return J;return J.issues.push({expected:"date",code:"invalid_type",input:Y,...Q?{received:"Invalid Date"}:{},inst:D}),J}});TZ=E("$ZodArray",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!Array.isArray(Q))return X.issues.push({expected:"array",code:"invalid_type",input:Q,inst:D}),X;X.value=J?J.alloc(D,X,Array(Q.length),Y):Array(Q.length);let U=[],F=Y?.abortEarly;for(let W=0;W<Q.length;W++){let K=Q[W],q=$.element._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)U.push(q.then((G)=>yC(G,X,W)));else if(yC(q,X,W),F&&q.issues.length!==0&&$$(q))break}if(U.length)return Promise.all(U).then(()=>X);return X}});a9D=[];Yk=E("$ZodObject",(D,$)=>{zD.init(D,$);let J=Object.getOwnPropertyDescriptor($,"shape"),X=J?.get?J.get.raw:$.shape??{};if(X){let K=()=>{let q={...X};return Object.defineProperty($,"shape",{value:q}),K.raw=q,q};K.raw=X,Object.defineProperty($,"shape",{get:K})}let Y=j2(()=>Jk($));wD(D,"propValues",(K)=>{let q=K.def.shape,G={};for(let Z in q){let H=q[Z]._zod;if(H.values){if(!Object.prototype.hasOwnProperty.call(G,Z))k0(G,Z,new Set);for(let z of H.values)G[Z].add(z);if(H.optin!==void 0)G[Z].add(void 0)}}return G});let Q=E4,U=$.catchall,F,W=E0.memoizer;W?.attach(D),D._zod.parse=(K,q)=>{F??(F=Y.value);let G=K.value;if(!Q(G))return K.issues.push({expected:"object",code:"invalid_type",input:G,inst:D}),K;K.value=W?W.alloc(D,K,{},q):{};let Z=[],H=F.shape,z=q?.abortEarly,I=K.issues.length;for(let B of F.allKeys){if(z&&K.issues.length!==I){if($$(K,I))break;I=K.issues.length}if(B==="__proto__")continue;let N=H[B],V=N._zod.optin,O=N._zod.optout,j=N._zod.run({value:G[B],issues:[]},q);if(j instanceof Promise)Z.push(j.then((v)=>JY(v,K,B,G,V,O)));else JY(j,K,B,G,V,O)}if(!U)return Z.length?Promise.all(Z).then(()=>K):K;return Xk(Z,G,K,q,Y.value,D,z===!0)}}),PZ=E("$ZodObjectJIT",(D,$)=>{Yk.init(D,$);let J=D._zod.parse,X=j2(()=>Jk($)),Y=E0.memoizer,Q=(H)=>{let z=X.value,I=z.symbolKeys,B=new P2(["payload","ctx"],{shape:H,inst:D,memo:Y,syms:I}),N=(v)=>`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`,V=(v,A)=>`
let ${v}_ab = false;
for (let i = 0; i < ${v}.issues.length; i++) {
const iss = ${v}.issues[i];
iss.path = iss.path ? [${A}, ...iss.path] : [${A}];
payload.issues.push(iss);
if (iss.continue !== true) ${v}_ab = true;
}
if (${v}_ab && ctx && ctx.abortEarly) {
payload.value = newResult;
return payload;
}`;B.write("const input = payload.value;");let O=Object.create(null),j=0;for(let v of z.allKeys)O[v]=`key_${j++}`;B.write(Y?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let v of z.allKeys){if(v==="__proto__")continue;let A=O[v],k=typeof v==="symbol"?`syms[${I.indexOf(v)}]`:D$(v),u=`${k} in input`,_=H[v],y=_?._zod?.optin,T=y!==void 0,d=_?._zod?.optout==="optional";if(B.write(`const ${A} = ${N(k)};`),T&&d){let c=y==="optional"?`${A}_present`:`${A}.value !== undefined || ${A}_present`;B.write(`
const ${A}_present = ${u};
if (!${A}.issues.length || ${A}_present) {
if (${A}.issues.length) {${V(A,k)}
}
if (${c}) {
newResult[${k}] = ${A}.value;
}
}
`)}else if(!T)B.write(`
const ${A}_present = ${u};
if (${A}.issues.length) {${V(A,k)}
}
if (!${A}_present && !${A}.issues.length) {
payload.issues.push({
code: "invalid_type",
expected: "nonoptional",
input: undefined,
path: [${k}]
});
if (ctx && ctx.abortEarly) {
payload.value = newResult;
return payload;
}
}
if (${A}_present) {
newResult[${k}] = ${A}.value;
}
`);else if(B.write(`
if (${A}.issues.length) {${V(A,k)}
}
`),y==="defaulted")B.write(`newResult[${k}] = ${A}.value;`);else B.write(`
if (${A}.value !== undefined || ${u}) {
newResult[${k}] = ${A}.value;
}
`)}return B.write("payload.value = newResult;"),B.write("return payload;"),B.compile()},U,F=E4,W=!E0.jitless,q=W&&Lq.value,G=$.catchall,Z;D._zod.parse=(H,z)=>{Z??(Z=X.value);let I=H.value;if(!F(I))return H.issues.push({expected:"object",code:"invalid_type",input:I,inst:D}),H;if(W&&q&&z?.async===!1&&z.jitless!==!0){if(!U)U=Q($.shape);if(H=U(H,z),!G)return H;return Xk([],I,H,z,Z,D,z?.abortEarly===!0)}return J(H,z)}});z7=E("$ZodUnion",(D,$)=>{zD.init(D,$),wD(D,"optin",(X)=>X.def.options.some((Y)=>Y._zod.optin==="defaulted")?"defaulted":X.def.options.some((Y)=>Y._zod.optin!==void 0)?"optional":void 0),wD(D,"optout",(X)=>X.def.options.some((Y)=>Y._zod.optout==="optional")?"optional":void 0),wD(D,"values",(X)=>{if(X.def.options.every((Y)=>Y._zod.values))return new Set(X.def.options.flatMap((Y)=>Array.from(Y._zod.values)));return}),wD(D,"pattern",(X)=>{if(X.def.options.every((Y)=>Y._zod.pattern)){let Y=X.def.options.map((Q)=>Q._zod.pattern);return new RegExp(`^(${Y.map((Q)=>g6(Q.source)).join("|")})$`)}return});let J=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(X,Y)=>{if(J)return J(X,Y);let Q=!1,U=[];for(let F of $.options){let W=F._zod.run({value:X.value,issues:[]},Y);if(W instanceof Promise)U.push(W),Q=!0;else{if(W.issues.length===0)return W;U.push(W)}}if(!Q)return hC(U,X,D,Y);return Promise.all(U).then((F)=>{return hC(F,X,D,Y)})}});bZ=E("$ZodXor",(D,$)=>{z7.init(D,$),$.inclusive=!1;let J=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(X,Y)=>{if(J)return J(X,Y);let Q=!1,U=[];for(let F of $.options){let W=F._zod.run({value:X.value,issues:[]},Y);if(W instanceof Promise)U.push(W),Q=!0;else U.push(W)}if(!Q)return mC(U,X,D,Y);return Promise.all(U).then((F)=>{return mC(F,X,D,Y)})}});CZ=E("$ZodDiscriminatedUnion",(D,$)=>{$.inclusive=!1,z7.init(D,$);let J=D._zod.parse;wD(D,"propValues",(Y)=>{let Q={},U=0;for(let F of Y.def.options){let W=F._zod.propValues;if(!W||Object.keys(W).length===0)throw Error(`Invalid discriminated union option at index "${Y.def.options.indexOf(F)}"`);if(W[Y.def.discriminator]?.has(void 0))U++;for(let[K,q]of Object.entries(W)){if(!Object.prototype.hasOwnProperty.call(Q,K))k0(Q,K,new Set);for(let G of q)Q[K].add(G)}}if(!Y.def.unionFallback&&U>1)Q[Y.def.discriminator]?.delete(void 0);return Q}),$.options.forEach((Y,Q)=>{let U=L2(Y._zod.def);if(U&&!Object.prototype.hasOwnProperty.call(U,$.discriminator))throw Error(`Invalid discriminated union option at index "${Q}"`)});let X=j2(()=>Qk($));D._zod.parse=(Y,Q)=>{let U=Y.value;if(!E4(U))return Y.issues.push({code:"invalid_type",expected:"object",input:U,inst:D}),Y;let F=U?.[$.discriminator],W=X.value.get(F);if(W&&(F!==void 0||Q.direction!=="backward"))return W._zod.run(Y,Q);if($.unionFallback||Q.direction==="backward")return J(Y,Q);return Y.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:$.discriminator,options:Array.from(X.value.keys()).filter((K)=>X.value.get(K)!==null),input:U,path:[$.discriminator],inst:D}),Y}}),kZ=E("$ZodIntersection",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value,Q=$.left._zod.run({value:Y,issues:[]},X),U=$.right._zod.run({value:Y,issues:[]},X);if(Q instanceof Promise||U instanceof Promise)return Promise.all([Q,U]).then(([W,K])=>{return lC(J,W,K)});return lC(J,Q,U)}});IY=E("$ZodTuple",(D,$)=>{zD.init(D,$);let J=$.items,X=E0.memoizer;X?.attach(D),D._zod.parse=(Y,Q)=>{let U=Y.value;if(!Array.isArray(U))return Y.issues.push({input:U,inst:D,expected:"tuple",code:"invalid_type"}),Y;Y.value=X?X.alloc(D,Y,[],Q):[];let F=[],W=dC(J,"optin"),K=dC(J,"optout");if(!$.rest){if(U.length<W)return Y.issues.push({code:"too_small",minimum:W,inclusive:!0,input:U,inst:D,origin:"array"}),Y;if(U.length>J.length)Y.issues.push({code:"too_big",maximum:J.length,inclusive:!0,input:U,inst:D,origin:"array"})}let q=Array(J.length),G=$.rest?Q?.abortEarly:void 0,Z=!1;for(let H=0;H<J.length;H++){let z=J[H]._zod.run({value:U[H],issues:[]},Q);if(z instanceof Promise)F.push(z.then((I)=>{q[H]=I}));else if(q[H]=z,G&&!Z&&z.issues.length)Z=$$(z)}if($.rest&&!Z){let H=J.length-1,z=U.slice(J.length),I=Y.issues.length;for(let B of z){if(G&&Y.issues.length!==I){if($$(Y,I))break;I=Y.issues.length}H++;let N=$.rest._zod.run({value:B,issues:[]},Q);if(N instanceof Promise)F.push(N.then((V)=>iC(V,Y,H)));else iC(N,Y,H)}}if(F.length)return Promise.all(F).then(()=>cC(q,Y,J,U,K));return cC(q,Y,J,U,K)}});_Z=E("$ZodRecord",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!l$(Q))return X.issues.push({expected:"record",code:"invalid_type",input:Q,inst:D}),X;let U=[],F=$.keyType._zod.values;if(F&&!$.partial){X.value=J?J.alloc(D,X,{},Y):{};let W=new Set;for(let q of F)if(typeof q==="string"||typeof q==="number"||typeof q==="symbol"){if(W.add(typeof q==="number"?q.toString():q),q==="__proto__")continue;let G=$.keyType._zod.run({value:q,issues:[]},Y);if(G instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(G.issues.length){X.issues.push({code:"invalid_key",origin:"record",issues:G.issues.map((z)=>I$(z,Y,Z0())),input:q,path:[q],inst:D});continue}let Z=G.value;if(Z==="__proto__")continue;let H=$.valueType._zod.run({value:Q[q],issues:[]},Y);if(H instanceof Promise)U.push(H.then((z)=>{if(z.issues.length)X.issues.push(...H$(q,z.issues));X.value[Z]=z.value}));else{if(H.issues.length)X.issues.push(...H$(q,H.issues));X.value[Z]=H.value}}let K;for(let q in Q)if(!W.has(q))if($.mode==="loose"){if(q==="__proto__")continue;X.value[q]=Q[q]}else K=K??[],K.push(q);if(K&&K.length>0)X.issues.push({code:"unrecognized_keys",input:Q,inst:D,keys:K,continue:!0})}else{X.value=J?J.alloc(D,X,{},Y):{};let W;for(let K of Reflect.ownKeys(Q)){if(K==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(Q,K))continue;let q=$.keyType._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof K==="string"&&O6.test(K)&&q.issues.length){let z=$.keyType._zod.run({value:Number(K),issues:[]},Y);if(z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(z.issues.length===0)q=z}if(q.issues.length){if($.mode==="loose")X.value[K]=Q[K];else if(F)W=W??[],W.push(K);else X.issues.push({code:"invalid_key",origin:"record",issues:q.issues.map((z)=>I$(z,Y,Z0())),input:K,path:[K],inst:D});continue}let Z=q.value;if(Z==="__proto__")continue;let H=$.valueType._zod.run({value:Q[K],issues:[]},Y);if(H instanceof Promise)U.push(H.then((z)=>{if(z.issues.length)X.issues.push(...H$(K,z.issues));X.value[Z]=z.value}));else{if(H.issues.length)X.issues.push(...H$(K,H.issues));X.value[Z]=H.value}}if(W&&W.length>0)X.issues.push({code:"unrecognized_keys",input:Q,inst:D,keys:W,continue:!0})}if(U.length)return Promise.all(U).then(()=>X);return X}}),uZ=E("$ZodMap",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!(Q instanceof Map))return X.issues.push({expected:"map",code:"invalid_type",input:Q,inst:D}),X;let U=[];X.value=J?J.alloc(D,X,new Map,Y):new Map;let F=Y?.abortEarly,W=X.issues.length;for(let[K,q]of Q){if(F&&X.issues.length!==W){if($$(X,W))break;W=X.issues.length}let G=$.keyType._zod.run({value:K,issues:[]},Y),Z=$.valueType._zod.run({value:q,issues:[]},Y);if(G instanceof Promise||Z instanceof Promise)U.push(Promise.all([G,Z]).then(([H,z])=>{pC(H,z,X,K,Q,D,Y)}));else pC(G,Z,X,K,Q,D,Y)}if(U.length)return Promise.all(U).then(()=>X);return X}});gZ=E("$ZodSet",(D,$)=>{zD.init(D,$);let J=E0.memoizer;J?.attach(D),D._zod.parse=(X,Y)=>{let Q=X.value;if(!(Q instanceof Set))return X.issues.push({input:Q,inst:D,expected:"set",code:"invalid_type"}),X;let U=[];X.value=J?J.alloc(D,X,new Set,Y):new Set;let F=Y?.abortEarly,W=X.issues.length;for(let K of Q){if(F&&X.issues.length!==W){if($$(X,W))break;W=X.issues.length}let q=$.valueType._zod.run({value:K,issues:[]},Y);if(q instanceof Promise)U.push(q.then((G)=>nC(G,X)));else nC(q,X)}if(U.length)return Promise.all(U).then(()=>X);return X}});xZ=E("$ZodEnum",(D,$)=>{zD.init(D,$);let J=V2($.entries),X=new Set(J);D._zod.values=X,wD(D,"pattern",(Y)=>{let Q=V2(Y.def.entries).filter((U)=>n5.has(typeof U));return new RegExp(Q.length?`^(${Q.map((U)=>d$(U.toString())).join("|")})$`:"^[^\\s\\S]$")}),D._zod.parse=(Y,Q)=>{let U=Y.value;if(X.has(U))return Y;return Y.issues.push({code:"invalid_value",values:J,input:U,inst:D}),Y}}),fZ=E("$ZodLiteral",(D,$)=>{zD.init(D,$);let J=new Set($.values);D._zod.values=J,wD(D,"pattern",(X)=>{let Y=X.def.values;return new RegExp(Y.length?`^(${Y.map((Q)=>typeof Q==="string"?d$(Q):Q?d$(Q.toString()):String(Q)).join("|")})$`:"^[^\\s\\S]$")}),D._zod.parse=(X,Y)=>{let Q=X.value;if(J.has(Q))return X;return X.issues.push({code:"invalid_value",values:$.values,input:Q,inst:D}),X}}),yZ=E("$ZodFile",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{let Y=J.value;if(Y instanceof File)return J;return J.issues.push({expected:"file",code:"invalid_type",input:Y,inst:D}),J}}),hZ=E("$ZodTransform",(D,$)=>{zD.init(D,$),D._zod.optin="optional",E0.memoizer?.guard(D),D._zod.parse=(J,X)=>{if(X.direction==="backward")throw new P4(D.constructor.name);let Y=$.transform(J.value,J);if(X.async)return(Y instanceof Promise?Y:Promise.resolve(Y)).then((U)=>{return J.value=U,J});if(Y instanceof Promise)throw new M$;return J.value=Y,J}});BY=E("$ZodOptional",(D,$)=>{zD.init(D,$),wD(D,"optin",(J)=>J.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),D._zod.optout="optional",wD(D,"values",(J)=>{let X=J.def.innerType._zod.values;return X?new Set([...X,void 0]):void 0}),wD(D,"pattern",(J)=>{let X=J.def.innerType._zod.pattern;return X?new RegExp(`^(${g6(X.source)})?$`):void 0}),D._zod.parse=(J,X)=>{if(J.value===void 0){if($.innerType._zod.optin!=="defaulted")return J;let Y=$.innerType._zod.run({value:J.value,issues:[]},X);if(Y instanceof Promise)return Y.then((Q)=>rC(J,Q));return rC(J,Y)}return $.innerType._zod.run(J,X)}}),mZ=E("$ZodExactOptional",(D,$)=>{BY.init(D,$),wD(D,"values",(J)=>J.def.innerType._zod.values),wD(D,"pattern",(J)=>J.def.innerType._zod.pattern),D._zod.parse=(J,X)=>{return $.innerType._zod.run(J,X)}}),lZ=E("$ZodNullable",(D,$)=>{zD.init(D,$),wD(D,"optin",(J)=>J.def.innerType._zod.optin),wD(D,"optout",(J)=>J.def.innerType._zod.optout),wD(D,"pattern",(J)=>{let X=J.def.innerType._zod.pattern;return X?new RegExp(`^(${g6(X.source)}|null)$`):void 0}),wD(D,"values",(J)=>{return J.def.innerType._zod.values?new Set([...J.def.innerType._zod.values,null]):void 0}),D._zod.parse=(J,X)=>{if(J.value===null)return J;return $.innerType._zod.run(J,X)}}),dZ=E("$ZodDefault",(D,$)=>{zD.init(D,$),D._zod.optin="defaulted",wD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);if(J.value===void 0)return J.value=$.defaultValue,J;let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>tC(Q,$));return tC(Y,$)}});iZ=E("$ZodPrefault",(D,$)=>{zD.init(D,$),D._zod.optin="defaulted",wD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);if(J.value===void 0)J.value=$.defaultValue;return $.innerType._zod.run(J,X)}}),cZ=E("$ZodNonOptional",(D,$)=>{zD.init(D,$),wD(D,"values",(J)=>{let X=J.def.innerType._zod.values;return X?new Set([...X].filter((Y)=>Y!==void 0)):void 0}),D._zod.parse=(J,X)=>{let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>oC(Q,D));return oC(Y,D)}});pZ=E("$ZodSuccess",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{if(X.direction==="backward")throw new P4("ZodSuccess");let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>{return J.value=Q.issues.length===0,J});return J.value=Y.issues.length===0,J}});nZ=E("$ZodCatch",(D,$)=>{zD.init(D,$),wD(D,"optin",(J)=>J.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),wD(D,"optout",(J)=>J.def.innerType._zod.optout),wD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);let Y=$.innerType._zod.run({value:J.value,issues:[]},X);if(Y instanceof Promise)return Y.then((Q)=>aC(J,Q,$,X));return aC(J,Y,$,X)}}),rZ=E("$ZodNaN",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{if(typeof J.value!=="number"||!Number.isNaN(J.value))return J.issues.push({input:J.value,inst:D,expected:"nan",code:"invalid_type"}),J;return J}}),OY=E("$ZodPipe",(D,$)=>{zD.init(D,$),wD(D,"values",(J)=>J.def.in._zod.values),wD(D,"optin",(J)=>J.def.in._zod.optin),wD(D,"optout",(J)=>J.def.out._zod.optout),wD(D,"propValues",(J)=>J.def.in._zod.propValues),D._zod.parse=(J,X)=>{if(X.direction==="backward"){let Q=$.out._zod.run(J,X);if(Q instanceof Promise)return Q.then((U)=>eX(U,$.in,X));return eX(Q,$.in,X)}let Y=$.in._zod.run(J,X);if(Y instanceof Promise)return Y.then((Q)=>eX(Q,$.out,X));return eX(Y,$.out,X)}});H7=E("$ZodCodec",(D,$)=>{zD.init(D,$),wD(D,"values",(J)=>J.def.in._zod.values),wD(D,"optin",(J)=>J.def.in._zod.optin),wD(D,"optout",(J)=>J.def.out._zod.optout),wD(D,"propValues",(J)=>J.def.in._zod.propValues),D._zod.parse=(J,X)=>{if((X.direction||"forward")==="forward"){let Q=$.in._zod.run(J,X);if(Q instanceof Promise)return Q.then((U)=>DY(U,$,X));return DY(Q,$,X)}else{let Q=$.out._zod.run(J,X);if(Q instanceof Promise)return Q.then((U)=>DY(U,$,X));return DY(Q,$,X)}}});tZ=E("$ZodPreprocess",(D,$)=>{OY.init(D,$)}),oZ=E("$ZodReadonly",(D,$)=>{zD.init(D,$),wD(D,"propValues",(J)=>J.def.innerType._zod.propValues),wD(D,"values",(J)=>J.def.innerType._zod.values),wD(D,"optin",(J)=>J.def.innerType?._zod?.optin),wD(D,"optout",(J)=>J.def.innerType?._zod?.optout),D._zod.parse=(J,X)=>{if(X.direction==="backward")return $.innerType._zod.run(J,X);let Y=$.innerType._zod.run(J,X);if(Y instanceof Promise)return Y.then(sC);return sC(Y)}});aZ=E("$ZodTemplateLiteral",(D,$)=>{zD.init(D,$);let J=[];for(let X of $.parts)if(typeof X==="object"&&X!==null){let Y=lG(X);if(!Y)throw Error(`Invalid template literal part, no pattern found: ${[...X._zod.traits].shift()}`);J.push(g6(Y))}else if(X===null||Rq.has(typeof X))J.push(d$(`${X}`));else throw Error(`Invalid template literal part: ${X}`);D._zod.pattern=new RegExp(`^${J.join("")}$`),D._zod.parse=(X,Y)=>{if(typeof X.value!=="string")return X.issues.push({input:X.value,inst:D,expected:"string",code:"invalid_type"}),X;if(D._zod.pattern.lastIndex=0,!D._zod.pattern.test(X.value))return X.issues.push({input:X.value,inst:D,code:"invalid_format",format:$.format??"template_literal",pattern:D._zod.pattern.source}),X;return X}}),sZ=E("$ZodFunction",(D,$)=>{return zD.init(D,$),Object.defineProperty(D,"_def",{value:$}),D._zod.def=$,D.implement=(J)=>{if(typeof J!=="function")throw Error("implement() must be called with a function");return Object.defineProperty(function(...X){let Y=D._def.input?gX(D._def.input,X):X,Q=Reflect.apply(J,this,Y);if(D._def.output)return gX(D._def.output,Q);return Q},"_zod",{value:D._zod,enumerable:!1})},D.implementAsync=(J)=>{if(typeof J!=="function")throw Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...X){let Y=D._def.input?await xX(D._def.input,X):X,Q=await Reflect.apply(J,this,Y);if(D._def.output)return await xX(D._def.output,Q);return Q},"_zod",{value:D._zod,enumerable:!1})},D._zod.parse=(J,X)=>{if(typeof J.value!=="function")return J.issues.push({code:"invalid_type",expected:"function",input:J.value,inst:D}),J;if(D._def.output&&D._def.output._zod.def.type==="promise")J.value=D.implementAsync(J.value);else J.value=D.implement(J.value);return J},D.input=(...J)=>{let X=D.constructor;if(Array.isArray(J[0]))return new X({type:"function",input:new IY({type:"tuple",items:J[0],rest:J[1]}),output:D._def.output});return new X({type:"function",input:J[0],output:D._def.output})},D.output=(J)=>{return new D.constructor({type:"function",input:D._def.input,output:J})},D}),eZ=E("$ZodPromise",(D,$)=>{zD.init(D,$),D._zod.parse=(J,X)=>{return Promise.resolve(J.value).then((Y)=>$.innerType._zod.run({value:Y,issues:[]},X))}}),I7=E("$ZodLazy",(D,$)=>{zD.init(D,$),wq(D._zod,"innerType",()=>{let J=$;if(!J._cachedInner)J._cachedInner=$.getter();return J._cachedInner}),wD(D,"pattern",(J)=>J.innerType?._zod?.pattern),wD(D,"propValues",(J)=>J.innerType?._zod?.propValues),wD(D,"optin",(J)=>J.innerType?._zod?.optin??void 0),wD(D,"optout",(J)=>J.innerType?._zod?.optout??void 0),D._zod.parse=(J,X)=>{return D._zod.innerType._zod.run(J,X)}}),Dz=E("$ZodCustom",(D,$)=>{nD.init(D,$),zD.init(D,$),D._zod.parse=(J,X)=>{return J},D._zod.check=(J)=>{let X=J.value,Y=$.fn(X);if(Y instanceof Promise)return Y.then((Q)=>eC(Q,J,X,D));eC(Y,J,X,D);return}})});function Wk(D){return D!==null&&typeof D==="object"}function $z(D){return D.map(($)=>$.path?{...$,path:$.path.slice()}:{...$})}function O7(D,$,J){let X=Kk.get(D);if(X!==void 0)return X?B7:C2;if($.has(D))return B7;$.add(D);let Y=C2,Q=(q)=>{if(Y!==B7&&q?._zod){let G=O7(q,$,J);if(G>Y)Y=G}},U=(q,G)=>{let Z=C2;for(let H of Reflect.ownKeys(q)){let z=Object.getOwnPropertyDescriptor(q,H);if(G&&!z.enumerable)continue;let I=z.get?wY:z.value?._zod?O7(z.value,$,J):C2;if(I>Z)Z=I}return Z},F=(q)=>{if(q>Y)Y=q},W=D._zod.def,K=W.type;switch(K){case"object":{let q=L2(W);F(q?U(q,!0):wY),Q(W.catchall);break}case"array":Q(W.element);break;case"tuple":for(let q of W.items)Q(q);Q(W.rest);break;case"record":case"map":Q(W.keyType),Q(W.valueType);break;case"set":Q(W.valueType);break;case"union":for(let q of W.options)Q(q);break;case"intersection":Q(W.left),Q(W.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":Q(W.innerType);break;case"pipe":Q(W.in),Q(W.out);break;case"function":Q(W.input),Q(W.output);break;case"lazy":{let q=W._cachedInner??(J?D._zod.innerType:void 0);F(q?O7(q,$,!1):wY);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let q in W){let G=Object.getOwnPropertyDescriptor(W,q);if(!G||G.get)continue;let Z=G.value;if(!Z||typeof Z!=="object")continue;if(Z._zod)Q(Z);else if(Array.isArray(Z))for(let H of Z)Q(H)}}return $.delete(D),e9D(D,Y)}function e9D(D,$){if($!==wY)Kk.set(D,$===B7);return $}function jY(D){return O7(D,new Set,!0)!==C2}function D5D(D,$){let J=D.buckets.get($);if(!J)J=new WeakMap,D.buckets.set($,J);return J}function N7(){return $5D}function LY(D,$){let J=D[Jz]?.backEdges;return J!==void 0&&Wk($)&&J.has($)}var Xz,Jz="~memo",Fk,Kk,C2=0,wY=1,B7=2,NY,VY,$5D;var Yz=C(()=>{e();Xz=class Xz extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}};Fk=[];Kk=new WeakMap;VY=[],$5D={alloc(D,$,J){let X=NY;if(!X)return J;NY=void 0;let Y={value:J,issues:null};return X.set($.value,Y),VY.push(Y),J},guard(D){var $;($=D._zod).deferred??($.deferred=[]),D._zod.deferred.push(()=>{let J=D._zod.parse,X=(Y,Q)=>{if(Q.direction!=="backward"&&LY(Q,Y.value))throw new Xz;return J(Y,Q)};if(D._zod.parse=X,D._zod.run===J)D._zod.run=X})},attach(D){var $;let J,X=!1,Y,Q;($=D._zod).deferred??($.deferred=[]),D._zod.deferred.push(()=>{let U=D._zod.parse,F=(W,K)=>{if(J===void 0){let N=O7(D,new Set,!1);if(N===C2){if(D._zod.parse=U,D._zod.run===F)D._zod.run=U;return U(W,K)}if(N===B7||X)J=!0;else X=!0}let q=W.value;if(!Wk(q))return U(W,K);let G=K[Jz];if(!G)G={buckets:new WeakMap,backEdges:void 0},K[Jz]=G;let Z;if(Y===K)Z=Q;else Z=D5D(G,D),Y=K,Q=Z;let H=Z.get(q);if(H){if(W.value=H.value,H.issues){if(H.issues.length)W.issues.push(...$z(H.issues))}else W.memo=!0,G.backEdges??(G.backEdges=new WeakSet),G.backEdges.add(H.value);return W}NY=Z;let z=VY.length,I=U(W,K);NY=void 0;let B=VY.length>z?VY.pop():void 0;if(I instanceof Promise)return I.then((N)=>{if(B)B.issues=N.issues.length?$z(N.issues):Fk;return N});if(B)B.issues=I.issues.length?$z(I.issues):Fk;return I};if(D._zod.parse=F,D._zod.run===U)D._zod.run=F})}}});function Qz(){return{localeError:J5D()}}var J5D=()=>{let D={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function $(Y){return D[Y]??null}let J={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",currency_code:"رمز العملة",iban:"IBAN",jwt:"JWT",template_literal:"مدخل"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${Y.expected}، ولكن تم إدخال ${F}`;return`مدخلات غير مقبولة: يفترض إدخال ${Q}، ولكن تم إدخال ${F}`}case"invalid_value":if(Y.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${m(Y.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return` أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${Q} ${Y.maximum.toString()} ${U.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${Q} ${Y.minimum.toString()} ${U.unit}`;return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${Y.prefix}"`;if(Q.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${Q.suffix}"`;if(Q.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${Q.includes}"`;if(Q.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${Q.pattern}`;return`${J[Q.format]??Y.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${Y.divisor}`;case"unrecognized_keys":return`معرف${Y.keys.length>1?"ات":""} غريب${Y.keys.length>1?"ة":""}: ${b(Y.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${Y.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${Y.origin}`;default:return"مدخل غير مقبول"}}};var qk=C(()=>{e()});function Uz(){return{localeError:X5D()}}var X5D=()=>{let D={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"},map:{unit:"element",verb:"olmalıdır"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kartı nömrəsi",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Yanlış dəyər: gözlənilən instanceof ${Y.expected}, daxil olan ${F}`;return`Yanlış dəyər: gözlənilən ${Q}, daxil olan ${F}`}case"invalid_value":if(Y.values.length===1)return`Yanlış dəyər: gözlənilən ${m(Y.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${Q}${Y.maximum.toString()} ${U.unit??"element"}`;return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Çox kiçik: gözlənilən ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Çox kiçik: gözlənilən ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Yanlış mətn: "${Q.prefix}" ilə başlamalıdır`;if(Q.format==="ends_with")return`Yanlış mətn: "${Q.suffix}" ilə bitməlidir`;if(Q.format==="includes")return`Yanlış mətn: "${Q.includes}" daxil olmalıdır`;if(Q.format==="regex")return`Yanlış mətn: ${Q.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Yanlış ədəd: ${Y.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${Y.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};var Gk=C(()=>{e()});function Zk(D,$,J,X){let Y=Math.abs(D),Q=Y%10,U=Y%100;if(U>=11&&U<=19)return X;if(Q===1)return $;if(Q>=2&&Q<=4)return J;return X}function Fz(){return{localeError:Y5D()}}var Y5D=()=>{let D={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function $(Y){return D[Y]??null}let J={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"увод"},X={nan:"NaN",number:"лік",array:"масіў"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Няправільны ўвод: чакаўся instanceof ${Y.expected}, атрымана ${F}`;return`Няправільны ўвод: чакаўся ${Q}, атрымана ${F}`}case"invalid_value":if(Y.values.length===1)return`Няправільны ўвод: чакалася ${m(Y.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U){let F=Number(Y.maximum),W=Zk(F,U.unit.one,U.unit.few,U.unit.many);return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна ${U.verb} ${Q}${Y.maximum.toString()} ${W}`}return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна быць ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U){let F=Number(Y.minimum),W=Zk(F,U.unit.one,U.unit.few,U.unit.many);return`Занадта малы: чакалася, што ${Y.origin} павінна ${U.verb} ${Q}${Y.minimum.toString()} ${W}`}return`Занадта малы: чакалася, што ${Y.origin} павінна быць ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${Q.prefix}"`;if(Q.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${Q.suffix}"`;if(Q.format==="includes")return`Няправільны радок: павінен змяшчаць "${Q.includes}"`;if(Q.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${Q.pattern}`;return`Няправільны ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${Y.keys.length>1?"ключы":"ключ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${Y.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${Y.origin}`;default:return"Няправільны ўвод"}}};var zk=C(()=>{e()});function Wz(){return{localeError:Q5D()}}var Q5D=()=>{let D={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function $(Y){return D[Y]??null}let J={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"вход"},X={nan:"NaN",number:"число",array:"масив"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Невалиден вход: очакван instanceof ${Y.expected}, получен ${F}`;return`Невалиден вход: очакван ${Q}, получен ${F}`}case"invalid_value":if(Y.values.length===1)return`Невалиден вход: очакван ${m(Y.values[0])}`;return`Невалидна опция: очаквано едно от ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Твърде голямо: очаква се ${Y.origin??"стойност"} да съдържа ${Q}${Y.maximum.toString()} ${U.unit??"елемента"}`;return`Твърде голямо: очаква се ${Y.origin??"стойност"} да бъде ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Твърде малко: очаква се ${Y.origin} да съдържа ${Q}${Y.minimum.toString()} ${U.unit}`;return`Твърде малко: очаква се ${Y.origin} да бъде ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Невалиден низ: трябва да започва с "${Q.prefix}"`;if(Q.format==="ends_with")return`Невалиден низ: трябва да завършва с "${Q.suffix}"`;if(Q.format==="includes")return`Невалиден низ: трябва да включва "${Q.includes}"`;if(Q.format==="regex")return`Невалиден низ: трябва да съвпада с ${Q.pattern}`;let U="Невалиден";if(Q.format==="emoji")U="Невалидно";if(Q.format==="datetime")U="Невалидно";if(Q.format==="date")U="Невалидна";if(Q.format==="time")U="Невалидно";if(Q.format==="duration")U="Невалидна";return`${U} ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${Y.divisor}`;case"unrecognized_keys":return`Неразпознат${Y.keys.length>1?"и":""} ключ${Y.keys.length>1?"ове":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${Y.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${Y.origin}`;default:return"Невалиден вход"}}};var Hk=C(()=>{e()});function Kz(){return{localeError:U5D()}}var U5D=()=>{let D={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function $(Y){return D[Y]??null}let J={regex:"ইনপুট",email:"ইমেইল ঠিকানা",url:"URL",emoji:"ইমোজি",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO তারিখ ও সময়",date:"ISO তারিখ",time:"ISO সময়",duration:"ISO সময়কাল",ipv4:"IPv4 ঠিকানা",ipv6:"IPv6 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",currency_code:"মুদ্রা কোড",iban:"IBAN",jwt:"JWT",template_literal:"ইনপুট"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`অবৈধ ইনপুট: প্রত্যাশিত ${Q}, প্রাপ্ত ${F}`}case"invalid_value":if(Y.values.length===1)return`অবৈধ ইনপুট: প্রত্যাশিত ${m(Y.values[0])}`;return`অবৈধ অপশন: ${b(Y.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`অনেক বড়: ${Y.origin??"মান"} ${Q}${Y.maximum.toString()} ${U.unit??"এলিমেন্ট"} হতে হবে`;return`অনেক বড়: ${Y.origin??"মান"} ${Q}${Y.maximum.toString()} হতে হবে`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`অনেক ছোট: ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} হতে হবে`;return`অনেক ছোট: ${Y.origin} ${Q}${Y.minimum.toString()} হতে হবে`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`অবৈধ স্ট্রিং: "${Q.prefix}" দিয়ে শুরু হতে হবে`;if(Q.format==="ends_with")return`অবৈধ স্ট্রিং: "${Q.suffix}" দিয়ে শেষ হতে হবে`;if(Q.format==="includes")return`অবৈধ স্ট্রিং: "${Q.includes}" অন্তর্ভুক্ত থাকতে হবে`;if(Q.format==="regex")return`অবৈধ স্ট্রিং: ${Q.pattern} প্যাটার্ন মিলতে হবে`;return`অবৈধ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`অবৈধ নম্বর: ${Y.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${Y.keys.length>1?"গুলো":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} এ অবৈধ কী`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"অবৈধ ইনপুট";case"invalid_element":return`${Y.origin} এ অবৈধ মান`;default:return"অবৈধ ইনপুট"}}};var Ik=C(()=>{e()});function qz(){return{localeError:F5D()}}var F5D=()=>{let D={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function $(Y){return D[Y]??null}let J={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Tipus invàlid: s'esperava instanceof ${Y.expected}, s'ha rebut ${F}`;return`Tipus invàlid: s'esperava ${Q}, s'ha rebut ${F}`}case"invalid_value":if(Y.values.length===1)return`Valor invàlid: s'esperava ${m(Y.values[0])}`;return`Opció invàlida: s'esperava una de ${b(Y.values," o ")}`;case"too_big":{let Q=Y.inclusive?"com a màxim":"menys de",U=$(Y.origin);if(U)return`Massa gran: s'esperava que ${Y.origin??"el valor"} contingués ${Q} ${Y.maximum.toString()} ${U.unit??"elements"}`;return`Massa gran: s'esperava que ${Y.origin??"el valor"} fos ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?"com a mínim":"més de",U=$(Y.origin);if(U)return`Massa petit: s'esperava que ${Y.origin} contingués ${Q} ${Y.minimum.toString()} ${U.unit}`;return`Massa petit: s'esperava que ${Y.origin} fos ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Format invàlid: ha de començar amb "${Q.prefix}"`;if(Q.format==="ends_with")return`Format invàlid: ha d'acabar amb "${Q.suffix}"`;if(Q.format==="includes")return`Format invàlid: ha d'incloure "${Q.includes}"`;if(Q.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${Q.pattern}`;return`Format invàlid per a ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${Y.divisor}`;case"unrecognized_keys":return`Clau${Y.keys.length>1?"s":""} no reconeguda${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${Y.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${Y.origin}`;default:return"Entrada invàlida"}}};var Bk=C(()=>{e()});function Gz(){return{localeError:W5D()}}var W5D=()=>{let D={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function $(Y){return D[Y]??null}let J={regex:"regex",email:"ئیمەیڵ",url:"بەستەر (URL)",emoji:"ئیمۆجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ڕێکەوت و کات",date:"ڕێکەوت",time:"کات",duration:"ماوە",ipv4:"ناونیشانی IPv4",ipv6:"ناونیشانی IPv6",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",currency_code:"کۆدی دراو",iban:"IBAN",jwt:"JWT",template_literal:"تێکردە"},X={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U,W=["ا","و","ۆ","وو","ە","ی","ێ"].some((q)=>F.endsWith(q))?"یە":"ە",K=/^[a-zA-Z]+$/.test(F);if(U==="null"||U==="undefined")return"داواکراوە";return`چاوەڕوانکراوە ${Q} بێت، بەڵام ${F}${K?"":W}`}case"invalid_value":if(Y.values.length===1)return`بەهاکە نادرووستە: چاوەڕوانکراوە ${m(Y.values[0])} بێت`;return`هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${b(Y.values,"|")}`;case"too_big":{let Q=$(Y.origin);if(Q)return`پێویستە بە لایەنی زۆرەوە ${Y.maximum.toString()} ${Q.unit} ${Q.verb}`;return`پێویستە بە لایەنی زۆرەوە ${Y.maximum.toString()} بێت`}case"too_small":{let Q=$(Y.origin);if(Q)return`پێویستە بە لایەنی کەمەوە ${Y.minimum.toString()} ${Q.unit} ${Q.verb}`;return`پێویستە بە لایەنی کەمەوە ${Y.minimum.toString()} بێت`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`دەقی نادروست: پێویستە دەستپێبکات بە "${Q.prefix}"`;if(Q.format==="ends_with")return`دەقی نادروست: پێویستە کۆتاییبێت بە "${Q.suffix}"`;if(Q.format==="includes")return`دەقی نادروست: پێویستە "${Q.includes}" لەخۆبگرێت`;if(Q.format==="regex")return`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${Q.pattern} بگونجێت`;return`بەهای ${J[Q.format]??Y.format} نادروستە`}case"not_multiple_of":return`ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${Y.divisor}`;case"unrecognized_keys":return`کلیلی نەناسراو: ${b(Y.keys,", ")}`;case"invalid_key":return`کلیلی نادروست لە ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"یەکگرتنی نادروست";case"invalid_element":return`${Y.origin} بەهاکە نادروستە`;default:return"تێکردەی نادروست"}}};var Ok=C(()=>{e()});function Zz(){return{localeError:K5D()}}var K5D=()=>{let D={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function $(Y){return D[Y]??null}let J={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",currency_code:"kód měny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},X={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neplatný vstup: očekáváno instanceof ${Y.expected}, obdrženo ${F}`;return`Neplatný vstup: očekáváno ${Q}, obdrženo ${F}`}case"invalid_value":if(Y.values.length===1)return`Neplatný vstup: očekáváno ${m(Y.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí mít ${Q}${Y.maximum.toString()} ${U.unit??"prvků"}`;return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí být ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí mít ${Q}${Y.minimum.toString()} ${U.unit??"prvků"}`;return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí být ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neplatný řetězec: musí začínat na "${Q.prefix}"`;if(Q.format==="ends_with")return`Neplatný řetězec: musí končit na "${Q.suffix}"`;if(Q.format==="includes")return`Neplatný řetězec: musí obsahovat "${Q.includes}"`;if(Q.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${Q.pattern}`;return`Neplatný formát ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${Y.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${b(Y.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${Y.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${Y.origin}`;default:return"Neplatný vstup"}}};var Nk=C(()=>{e()});function zz(){return{localeError:q5D()}}var q5D=()=>{let D={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ugyldigt input: forventede instanceof ${Y.expected}, fik ${F}`;return`Ugyldigt input: forventede ${Q}, fik ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig værdi: forventede ${m(Y.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`For stor: forventede ${F??"value"} ${U.verb} ${Q} ${Y.maximum.toString()} ${U.unit??"elementer"}`;return`For stor: forventede ${F??"value"} havde ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`For lille: forventede ${F} ${U.verb} ${Q} ${Y.minimum.toString()} ${U.unit}`;return`For lille: forventede ${F} havde ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ugyldig streng: skal starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: skal ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: skal indeholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: skal matche mønsteret ${Q.pattern}`;return`Ugyldig ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${Y.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${Y.origin}`;default:return"Ugyldigt input"}}};var Vk=C(()=>{e()});function Hz(){return{localeError:G5D()}}var G5D=()=>{let D={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function $(Y){return D[Y]??null}let J={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"Währungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},X={nan:"NaN",number:"Zahl",array:"Array"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ungültige Eingabe: erwartet instanceof ${Y.expected}, erhalten ${F}`;return`Ungültige Eingabe: erwartet ${Q}, erhalten ${F}`}case"invalid_value":if(Y.values.length===1)return`Ungültige Eingabe: erwartet ${m(Y.values[0])}`;return`Ungültige Option: erwartet eine von ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${Q}${Y.maximum.toString()} ${U.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${Q}${Y.maximum.toString()} ist`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Zu klein: erwartet, dass ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} hat`;return`Zu klein: erwartet, dass ${Y.origin} ${Q}${Y.minimum.toString()} ist`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ungültiger String: muss mit "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ungültiger String: muss mit "${Q.suffix}" enden`;if(Q.format==="includes")return`Ungültiger String: muss "${Q.includes}" enthalten`;if(Q.format==="regex")return`Ungültiger String: muss dem Muster ${Q.pattern} entsprechen`;return`Ungültig: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${Y.divisor} sein`;case"unrecognized_keys":return`${Y.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${Y.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${Y.origin}`;default:return"Ungültige Eingabe"}}};var wk=C(()=>{e()});function Iz(){return{localeError:Z5D()}}var Z5D=()=>{let D={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function $(Y){return D[Y]??null}let J={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",currency_code:"κωδικός νομίσματος",iban:"IBAN",jwt:"JWT",template_literal:"είσοδος"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(typeof Y.expected==="string"&&/^[A-Z]/.test(Y.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${Y.expected}, λήφθηκε ${F}`;return`Μη έγκυρη είσοδος: αναμενόταν ${Q}, λήφθηκε ${F}`}case"invalid_value":if(Y.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${m(Y.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Πολύ μεγάλο: αναμενόταν ${Y.origin??"τιμή"} να έχει ${Q}${Y.maximum.toString()} ${U.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${Y.origin??"τιμή"} να είναι ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Πολύ μικρό: αναμενόταν ${Y.origin} να έχει ${Q}${Y.minimum.toString()} ${U.unit}`;return`Πολύ μικρό: αναμενόταν ${Y.origin} να είναι ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${Q.prefix}"`;if(Q.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${Q.suffix}"`;if(Q.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${Q.includes}"`;if(Q.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${Q.pattern}`;return`Μη έγκυρο: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${Y.divisor}`;case"unrecognized_keys":return`Άγνωστ${Y.keys.length>1?"α":"ο"} κλειδ${Y.keys.length>1?"ιά":"ί"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${Y.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${Y.origin}`;default:return"Μη έγκυρη είσοδος"}}};var jk=C(()=>{e()});function V7(){return{localeError:z5D()}}var z5D=()=>{let D={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function $(Q){return D[Q]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};function Y(Q,U){if(Q==="number"&&typeof U==="number"&&!Number.isFinite(U))return String(U);return X[Q]??Q}return(Q)=>{switch(Q.code){case"invalid_type":{let U=Y(Q.expected),F=l(Q.input),W=Y(F,Q.input);return`Invalid input: expected ${U}, received ${W}`}case"invalid_value":if(Q.values.length===1)return`Invalid input: expected ${m(Q.values[0])}`;return`Invalid option: expected one of ${b(Q.values,"|")}`;case"too_big":{let U=Q.exact?"exactly ":Q.inclusive?"<=":"<",F=$(Q.origin);if(F)return`Too big: expected ${Q.origin??"value"} to have ${U}${Q.maximum.toString()} ${F.unit??"elements"}`;return`Too big: expected ${Q.origin??"value"} to be ${U}${Q.maximum.toString()}`}case"too_small":{let U=Q.exact?"exactly ":Q.inclusive?">=":">",F=$(Q.origin);if(F)return`Too small: expected ${Q.origin} to have ${U}${Q.minimum.toString()} ${F.unit}`;return`Too small: expected ${Q.origin} to be ${U}${Q.minimum.toString()}`}case"invalid_format":{let U=Q;if(U.format==="starts_with")return`Invalid string: must start with "${U.prefix}"`;if(U.format==="ends_with")return`Invalid string: must end with "${U.suffix}"`;if(U.format==="includes")return`Invalid string: must include "${U.includes}"`;if(U.format==="regex")return`Invalid string: must match pattern ${U.pattern}`;return`Invalid ${J[U.format]??Q.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${Q.divisor}`;case"unrecognized_keys":return`Unrecognized key${Q.keys.length>1?"s":""}: ${b(Q.keys,", ")}`;case"invalid_key":return`Invalid key in ${Q.origin}`;case"invalid_union":if(Q.options&&Array.isArray(Q.options)&&Q.options.length>0)return`Invalid discriminator value. Expected ${Q.options.map((F)=>`'${F}'`).join(" | ")}`;if(Q.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${Q.origin}`;default:return"Invalid input"}}};var Bz=C(()=>{e()});function Oz(){return{localeError:H5D()}}var H5D=()=>{let D={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function $(Y){return D[Y]??null}let J={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},X={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Nevalida enigo: atendiĝis instanceof ${Y.expected}, riceviĝis ${F}`;return`Nevalida enigo: atendiĝis ${Q}, riceviĝis ${F}`}case"invalid_value":if(Y.values.length===1)return`Nevalida enigo: atendiĝis ${m(Y.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${Q}${Y.maximum.toString()} ${U.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${Y.origin??"valoro"} havu ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Tro malgranda: atendiĝis ke ${Y.origin} havu ${Q}${Y.minimum.toString()} ${U.unit}`;return`Tro malgranda: atendiĝis ke ${Y.origin} estu ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${Q.prefix}"`;if(Q.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${Q.suffix}"`;if(Q.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${Q.includes}"`;if(Q.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${Q.pattern}`;return`Nevalida ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${Y.divisor}`;case"unrecognized_keys":return`Nekonata${Y.keys.length>1?"j":""} ŝlosilo${Y.keys.length>1?"j":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${Y.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${Y.origin}`;default:return"Nevalida enigo"}}};var Lk=C(()=>{e()});function Nz(){return{localeError:I5D()}}var I5D=()=>{let D={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function $(Y){return D[Y]??null}let J={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",currency_code:"código de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},X={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Entrada inválida: se esperaba instanceof ${Y.expected}, recibido ${F}`;return`Entrada inválida: se esperaba ${Q}, recibido ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: se esperaba ${m(Y.values[0])}`;return`Opción inválida: se esperaba una de ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Demasiado grande: se esperaba que ${F??"valor"} tuviera ${Q}${Y.maximum.toString()} ${U.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${F??"valor"} fuera ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Demasiado pequeño: se esperaba que ${F} tuviera ${Q}${Y.minimum.toString()} ${U.unit}`;return`Demasiado pequeño: se esperaba que ${F} fuera ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Cadena inválida: debe comenzar con "${Q.prefix}"`;if(Q.format==="ends_with")return`Cadena inválida: debe terminar en "${Q.suffix}"`;if(Q.format==="includes")return`Cadena inválida: debe incluir "${Q.includes}"`;if(Q.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${Q.pattern}`;return`Inválido ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":return`Llave${Y.keys.length>1?"s":""} desconocida${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Llave inválida en ${X[Y.origin]??Y.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${X[Y.origin]??Y.origin}`;default:return"Entrada inválida"}}};var Rk=C(()=>{e()});function Vz(){return{localeError:B5D()}}var B5D=()=>{let D={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function $(Y){return D[Y]??null}let J={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",currency_code:"کد ارز",iban:"IBAN",jwt:"JWT",template_literal:"ورودی"},X={nan:"NaN",number:"عدد",array:"آرایه"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ورودی نامعتبر: میبایست instanceof ${Y.expected} میبود، ${F} دریافت شد`;return`ورودی نامعتبر: میبایست ${Q} میبود، ${F} دریافت شد`}case"invalid_value":if(Y.values.length===1)return`ورودی نامعتبر: میبایست ${m(Y.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${b(Y.values,"|")} میبود`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${Q}${Y.maximum.toString()} ${U.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${Q}${Y.maximum.toString()} باشد`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`خیلی کوچک: ${Y.origin} باید ${Q}${Y.minimum.toString()} ${U.unit} باشد`;return`خیلی کوچک: ${Y.origin} باید ${Q}${Y.minimum.toString()} باشد`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`رشته نامعتبر: باید با "${Q.prefix}" شروع شود`;if(Q.format==="ends_with")return`رشته نامعتبر: باید با "${Q.suffix}" تمام شود`;if(Q.format==="includes")return`رشته نامعتبر: باید شامل "${Q.includes}" باشد`;if(Q.format==="regex")return`رشته نامعتبر: باید با الگوی ${Q.pattern} مطابقت داشته باشد`;return`${J[Q.format]??Y.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${Y.divisor} باشد`;case"unrecognized_keys":return`کلید${Y.keys.length>1?"های":""} ناشناس: ${b(Y.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${Y.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${Y.origin}`;default:return"ورودی نامعتبر"}}};var Mk=C(()=>{e()});function wz(){return{localeError:O5D()}}var O5D=()=>{let D={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function $(Y){return D[Y]??null}let J={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Virheellinen tyyppi: odotettiin instanceof ${Y.expected}, oli ${F}`;return`Virheellinen tyyppi: odotettiin ${Q}, oli ${F}`}case"invalid_value":if(Y.values.length===1)return`Virheellinen syöte: täytyy olla ${m(Y.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Liian suuri: ${U.subject} täytyy olla ${Q}${Y.maximum.toString()} ${U.unit}`.trim();return`Liian suuri: arvon täytyy olla ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Liian pieni: ${U.subject} täytyy olla ${Q}${Y.minimum.toString()} ${U.unit}`.trim();return`Liian pieni: arvon täytyy olla ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${Q.prefix}"`;if(Q.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${Q.suffix}"`;if(Q.format==="includes")return`Virheellinen syöte: täytyy sisältää "${Q.includes}"`;if(Q.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${Q.pattern}`;return`Virheellinen ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${Y.divisor} monikerta`;case"unrecognized_keys":return`${Y.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${b(Y.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};var Ak=C(()=>{e()});function jz(){return{localeError:N5D()}}var N5D=()=>{let D={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function $(Y){return D[Y]??null}let J={regex:"expression régulière",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},X={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Entrée invalide : instance de ${Y.expected} attendu, ${F} reçu`;return`Entrée invalide : ${Q} attendu, ${F} reçu`}case"invalid_value":if(Y.values.length===1)return`Entrée invalide : ${m(Y.values[0])} attendu`;return`Option invalide : une valeur parmi ${b(Y.values,"|")} attendue`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Trop grand : ${X[Y.origin]??"valeur"} doit ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"élément(s)"}`;return`Trop grand : ${X[Y.origin]??"valeur"} doit être ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Trop petit : ${X[Y.origin]??"valeur"} doit ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Trop petit : ${X[Y.origin]??"valeur"} doit être ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Chaîne de caractères invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne de caractères invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne de caractères invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne de caractères invalide : doit correspondre au motif ${Q.pattern}`;return`${J[Q.format]??Y.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Y.divisor}`;case"unrecognized_keys":return`Clé${Y.keys.length>1?"s":""} non reconnue${Y.keys.length>1?"s":""} : ${b(Y.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Y.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Y.origin}`;default:return"Entrée invalide"}}};var vk=C(()=>{e()});function Lz(){return{localeError:V5D()}}var V5D=()=>{let D={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function $(Y){return D[Y]??null}let J={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Entrée invalide : attendu instanceof ${Y.expected}, reçu ${F}`;return`Entrée invalide : attendu ${Q}, reçu ${F}`}case"invalid_value":if(Y.values.length===1)return`Entrée invalide : attendu ${m(Y.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"≤":"<",U=$(Y.origin);if(U)return`Trop grand : attendu que ${Y.origin??"la valeur"} ait ${Q}${Y.maximum.toString()} ${U.unit}`;return`Trop grand : attendu que ${Y.origin??"la valeur"} soit ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?"≥":">",U=$(Y.origin);if(U)return`Trop petit : attendu que ${Y.origin} ait ${Q}${Y.minimum.toString()} ${U.unit}`;return`Trop petit : attendu que ${Y.origin} soit ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Chaîne invalide : doit commencer par "${Q.prefix}"`;if(Q.format==="ends_with")return`Chaîne invalide : doit se terminer par "${Q.suffix}"`;if(Q.format==="includes")return`Chaîne invalide : doit inclure "${Q.includes}"`;if(Q.format==="regex")return`Chaîne invalide : doit correspondre au motif ${Q.pattern}`;return`${J[Q.format]??Y.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Y.divisor}`;case"unrecognized_keys":return`Clé${Y.keys.length>1?"s":""} non reconnue${Y.keys.length>1?"s":""} : ${b(Y.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Y.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Y.origin}`;default:return"Entrée invalide"}}};var Ek=C(()=>{e()});function Rz(){return{localeError:w5D()}}var w5D=()=>{let D={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function $(Y){return D[Y]??null}let J={regex:"ઇનપુટ",email:"ઈમેઇલ એડ્રેસ",url:"URL",emoji:"ઇમોજી",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO તારીખ અને સમય",date:"ISO તારીખ",time:"ISO સમય",duration:"ISO અવધિ",ipv4:"IPv4 એડ્રેસ",ipv6:"IPv6 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",currency_code:"ચલણ કોડ",iban:"IBAN",jwt:"JWT",template_literal:"ઇનપુટ"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`અમાન્ય ઇનપુટ: અપેક્ષિત ${Q}, પ્રાપ્ત ${F}`}case"invalid_value":if(Y.values.length===1)return`અમાન્ય ઇનપુટ: અપેક્ષિત ${m(Y.values[0])}`;return`અમાન્ય વિકલ્પ: ${b(Y.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ખૂબ મોટું: ${Y.origin??"મૂલ્ય"} ${Q}${Y.maximum.toString()} ${U.unit??"એલિમેન્ટ"} હોવા જોઈએ`;return`ખૂબ મોટું: ${Y.origin??"મૂલ્ય"} ${Q}${Y.maximum.toString()} હોવું જોઈએ`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ખૂબ નાનું: ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} હોવા જોઈએ`;return`ખૂબ નાનું: ${Y.origin} ${Q}${Y.minimum.toString()} હોવું જોઈએ`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`અમાન્ય સ્ટ્રિંગ: "${Q.prefix}" થી શરૂ થવું જોઈએ`;if(Q.format==="ends_with")return`અમાન્ય સ્ટ્રિંગ: "${Q.suffix}" પર સમાપ્ત થવું જોઈએ`;if(Q.format==="includes")return`અમાન્ય સ્ટ્રિંગ: "${Q.includes}" શામેલ હોવું જોઈએ`;if(Q.format==="regex")return`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${Q.pattern} સાથે મેળ ખાવું જોઈએ`;return`અમાન્ય ${J[Q.format]??Y.format}`}case"not_multiple_of":return`અમાન્ય નંબર: ${Y.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${Y.keys.length>1?"ઓ":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} માં અમાન્ય કી`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"અમાન્ય ઇનપુટ";case"invalid_element":return`${Y.origin} માં અમાન્ય મૂલ્ય`;default:return"અમાન્ય ઇનપુટ"}}};var Tk=C(()=>{e()});function Mz(){return{localeError:j5D()}}var j5D=()=>{let D={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},$={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},J=(K)=>K?D[K]:void 0,X=(K)=>{let q=J(K);if(q)return q.label;return K??D.unknown.label},Y=(K)=>`ה${X(K)}`,Q=(K)=>{return(J(K)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},U=(K)=>{if(!K)return null;return $[K]??null},F={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},mac:{label:"כתובת MAC",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},currency_code:{label:"קוד מטבע",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},W={nan:"NaN"};return(K)=>{switch(K.code){case"invalid_type":{let q=K.expected,G=W[q??""]??X(q),Z=l(K.input),H=W[Z]??D[Z]?.label??Z;if(/^[A-Z]/.test(K.expected))return`קלט לא תקין: צריך להיות instanceof ${K.expected}, התקבל ${H}`;return`קלט לא תקין: צריך להיות ${G}, התקבל ${H}`}case"invalid_value":{if(K.values.length===1)return`ערך לא תקין: הערך חייב להיות ${m(K.values[0])}`;let q=K.values.map((H)=>m(H));if(K.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${q[0]} או ${q[1]}`;let G=q[q.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${q.slice(0,-1).join(", ")} או ${G}`}case"too_big":{let q=U(K.origin),G=Y(K.origin??"value");if(K.origin==="string")return`${q?.longLabel??"ארוך"} מדי: ${G} צריכה להכיל ${K.maximum.toString()} ${q?.unit??""} ${K.inclusive?"או פחות":"לכל היותר"}`.trim();if(K.origin==="number"){let z=K.inclusive?`קטן או שווה ל-${K.maximum}`:`קטן מ-${K.maximum}`;return`גדול מדי: ${G} צריך להיות ${z}`}if(K.origin==="array"||K.origin==="set"){let z=K.origin==="set"?"צריכה":"צריך",I=K.inclusive?`${K.maximum} ${q?.unit??""} או פחות`:`פחות מ-${K.maximum} ${q?.unit??""}`;return`גדול מדי: ${G} ${z} להכיל ${I}`.trim()}let Z=K.inclusive?"<=":"<",H=Q(K.origin??"value");if(q?.unit)return`${q.longLabel} מדי: ${G} ${H} ${Z}${K.maximum.toString()} ${q.unit}`;return`${q?.longLabel??"גדול"} מדי: ${G} ${H} ${Z}${K.maximum.toString()}`}case"too_small":{let q=U(K.origin),G=Y(K.origin??"value");if(K.origin==="string")return`${q?.shortLabel??"קצר"} מדי: ${G} צריכה להכיל ${K.minimum.toString()} ${q?.unit??""} ${K.inclusive?"או יותר":"לפחות"}`.trim();if(K.origin==="number"){let z=K.inclusive?`גדול או שווה ל-${K.minimum}`:`גדול מ-${K.minimum}`;return`קטן מדי: ${G} צריך להיות ${z}`}if(K.origin==="array"||K.origin==="set"){let z=K.origin==="set"?"צריכה":"צריך";if(K.minimum===1&&K.inclusive){let B=K.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${G} ${z} להכיל ${B}`}let I=K.inclusive?`${K.minimum} ${q?.unit??""} או יותר`:`יותר מ-${K.minimum} ${q?.unit??""}`;return`קטן מדי: ${G} ${z} להכיל ${I}`.trim()}let Z=K.inclusive?">=":">",H=Q(K.origin??"value");if(q?.unit)return`${q.shortLabel} מדי: ${G} ${H} ${Z}${K.minimum.toString()} ${q.unit}`;return`${q?.shortLabel??"קטן"} מדי: ${G} ${H} ${Z}${K.minimum.toString()}`}case"invalid_format":{let q=K;if(q.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${q.prefix}"`;if(q.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${q.suffix}"`;if(q.format==="includes")return`המחרוזת חייבת לכלול "${q.includes}"`;if(q.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${q.pattern}`;let G=F[q.format],Z=G?.label??q.format,z=(G?.gender??"m")==="f"?"תקינה":"תקין";return`${Z} לא ${z}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${K.divisor}`;case"unrecognized_keys":return`מפתח${K.keys.length>1?"ות":""} לא מזוה${K.keys.length>1?"ים":"ה"}: ${b(K.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${Y(K.origin??"array")}`;default:return"קלט לא תקין"}}};var Pk=C(()=>{e()});function Az(){return{localeError:L5D()}}var L5D=()=>{let D={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function $(Y){return D[Y]??null}let J={regex:"इनपुट",email:"ईमेल पता",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO तिथि और समय",date:"ISO तिथि",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 पता",ipv6:"IPv6 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`अमान्य इनपुट: अपेक्षित ${Q}, प्राप्त ${F}`}case"invalid_value":if(Y.values.length===1)return`अमान्य इनपुट: अपेक्षित ${m(Y.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानों में से एक ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`बहुत बड़ा: अपेक्षित था कि ${Y.origin??"मान"} में ${Q}${Y.maximum} ${U.unit} हों`;return`बहुत बड़ा: अपेक्षित था कि ${Y.origin??"मान"} ${Q}${Y.maximum} हो`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`बहुत छोटा: अपेक्षित था कि ${Y.origin} में ${Q}${Y.minimum} ${U.unit} हों`;return`बहुत छोटा: अपेक्षित था कि ${Y.origin} ${Q}${Y.minimum} हो`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`अमान्य स्ट्रिंग: "${Q.prefix}" से शुरू होना चाहिए`;if(Q.format==="ends_with")return`अमान्य स्ट्रिंग: "${Q.suffix}" पर समाप्त होना चाहिए`;if(Q.format==="includes")return`अमान्य स्ट्रिंग: इसमें "${Q.includes}" शामिल होना चाहिए`;if(Q.format==="regex")return`अमान्य स्ट्रिंग: पैटर्न ${Q.pattern} से मेल खाना चाहिए`;return`अमान्य ${J[Q.format]??Y.format}`}case"not_multiple_of":return`अमान्य संख्या: यह ${Y.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${Y.keys.length>1?"याँ":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`अमान्य कुंजी: ${Y.origin} में`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${Y.origin} में`;default:return"अमान्य इनपुट"}}};var bk=C(()=>{e()});function vz(){return{localeError:R5D()}}var R5D=()=>{let D={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function $(Y){return D[Y]??null}let J={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},X={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neispravan unos: očekuje se instanceof ${Y.expected}, a primljeno je ${F}`;return`Neispravan unos: očekuje se ${Q}, a primljeno je ${F}`}case"invalid_value":if(Y.values.length===1)return`Neispravna vrijednost: očekivano ${m(Y.values[0])}`;return`Neispravna opcija: očekivano jedno od ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Preveliko: očekivano da ${F??"vrijednost"} ima ${Q}${Y.maximum.toString()} ${U.unit??"elemenata"}`;return`Preveliko: očekivano da ${F??"vrijednost"} bude ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=X[Y.origin]??Y.origin;if(U)return`Premalo: očekivano da ${F} ima ${Q}${Y.minimum.toString()} ${U.unit}`;return`Premalo: očekivano da ${F} bude ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neispravan tekst: mora započinjati s "${Q.prefix}"`;if(Q.format==="ends_with")return`Neispravan tekst: mora završavati s "${Q.suffix}"`;if(Q.format==="includes")return`Neispravan tekst: mora sadržavati "${Q.includes}"`;if(Q.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${Q.pattern}`;return`Neispravna ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${Y.divisor}`;case"unrecognized_keys":return`Neprepoznat${Y.keys.length>1?"i ključevi":" ključ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${X[Y.origin]??Y.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${X[Y.origin]??Y.origin}`;default:return"Neispravan unos"}}};var Sk=C(()=>{e()});function Ez(){return{localeError:M5D()}}var M5D=()=>{let D={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function $(Y){return D[Y]??null}let J={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",currency_code:"pénznemkód",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},X={nan:"NaN",number:"szám",array:"tömb"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Érvénytelen bemenet: a várt érték instanceof ${Y.expected}, a kapott érték ${F}`;return`Érvénytelen bemenet: a várt érték ${Q}, a kapott érték ${F}`}case"invalid_value":if(Y.values.length===1)return`Érvénytelen bemenet: a várt érték ${m(Y.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Túl nagy: ${Y.origin??"érték"} mérete túl nagy ${Q}${Y.maximum.toString()} ${U.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${Y.origin??"érték"} túl nagy: ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Túl kicsi: a bemeneti érték ${Y.origin} mérete túl kicsi ${Q}${Y.minimum.toString()} ${U.unit}`;return`Túl kicsi: a bemeneti érték ${Y.origin} túl kicsi ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Érvénytelen string: "${Q.prefix}" értékkel kell kezdődnie`;if(Q.format==="ends_with")return`Érvénytelen string: "${Q.suffix}" értékkel kell végződnie`;if(Q.format==="includes")return`Érvénytelen string: "${Q.includes}" értéket kell tartalmaznia`;if(Q.format==="regex")return`Érvénytelen string: ${Q.pattern} mintának kell megfelelnie`;return`Érvénytelen ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Érvénytelen szám: ${Y.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${Y.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${Y.origin}`;default:return"Érvénytelen bemenet"}}};var Ck=C(()=>{e()});function kk(D,$,J){return Math.abs(D)===1?$:J}function k2(D){if(!D)return"";let $=["ա","ե","ը","ի","ո","ու","օ"],J=D[D.length-1];return D+($.includes(J)?"ն":"ը")}function Tz(){return{localeError:A5D()}}var A5D=()=>{let D={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function $(Y){return D[Y]??null}let J={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",currency_code:"արժույթի կոդ",iban:"IBAN",jwt:"JWT",template_literal:"մուտք"},X={nan:"NaN",number:"թիվ",array:"զանգված"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${Y.expected}, ստացվել է ${F}`;return`Սխալ մուտքագրում․ սպասվում էր ${Q}, ստացվել է ${F}`}case"invalid_value":if(Y.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${m(Y.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U){let F=Number(Y.maximum),W=kk(F,U.unit.one,U.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${k2(Y.origin??"արժեք")} կունենա ${Q}${Y.maximum.toString()} ${W}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${k2(Y.origin??"արժեք")} լինի ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U){let F=Number(Y.minimum),W=kk(F,U.unit.one,U.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${k2(Y.origin)} կունենա ${Q}${Y.minimum.toString()} ${W}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${k2(Y.origin)} լինի ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${Q.prefix}"-ով`;if(Q.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${Q.suffix}"-ով`;if(Q.format==="includes")return`Սխալ տող․ պետք է պարունակի "${Q.includes}"`;if(Q.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${Q.pattern} ձևաչափին`;return`Սխալ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${Y.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${Y.keys.length>1?"ներ":""}. ${b(Y.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${k2(Y.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${k2(Y.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var _k=C(()=>{e()});function Pz(){return{localeError:v5D()}}var v5D=()=>{let D={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Input tidak valid: diharapkan instanceof ${Y.expected}, diterima ${F}`;return`Input tidak valid: diharapkan ${Q}, diterima ${F}`}case"invalid_value":if(Y.values.length===1)return`Input tidak valid: diharapkan ${m(Y.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Terlalu besar: diharapkan ${Y.origin??"value"} memiliki ${Q}${Y.maximum.toString()} ${U.unit??"elemen"}`;return`Terlalu besar: diharapkan ${Y.origin??"value"} menjadi ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Terlalu kecil: diharapkan ${Y.origin} memiliki ${Q}${Y.minimum.toString()} ${U.unit}`;return`Terlalu kecil: diharapkan ${Y.origin} menjadi ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`String tidak valid: harus dimulai dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak valid: harus berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak valid: harus menyertakan "${Q.includes}"`;if(Q.format==="regex")return`String tidak valid: harus sesuai pola ${Q.pattern}`;return`${J[Q.format]??Y.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${Y.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${Y.origin}`;default:return"Input tidak valid"}}};var uk=C(()=>{e()});function bz(){return{localeError:E5D()}}var E5D=()=>{let D={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function $(Y){return D[Y]??null}let J={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",currency_code:"gjaldmiðilskóði",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},X={nan:"NaN",number:"númer",array:"fylki"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Rangt gildi: Þú slóst inn ${F} þar sem á að vera instanceof ${Y.expected}`;return`Rangt gildi: Þú slóst inn ${F} þar sem á að vera ${Q}`}case"invalid_value":if(Y.values.length===1)return`Rangt gildi: gert ráð fyrir ${m(Y.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Of stórt: gert er ráð fyrir að ${Y.origin??"gildi"} hafi ${Q}${Y.maximum.toString()} ${U.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${Y.origin??"gildi"} sé ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Of lítið: gert er ráð fyrir að ${Y.origin} hafi ${Q}${Y.minimum.toString()} ${U.unit}`;return`Of lítið: gert er ráð fyrir að ${Y.origin} sé ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ógildur strengur: verður að byrja á "${Q.prefix}"`;if(Q.format==="ends_with")return`Ógildur strengur: verður að enda á "${Q.suffix}"`;if(Q.format==="includes")return`Ógildur strengur: verður að innihalda "${Q.includes}"`;if(Q.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${Q.pattern}`;return`Rangt ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${Y.divisor}`;case"unrecognized_keys":return`Óþekkt ${Y.keys.length>1?"ir lyklar":"ur lykill"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${Y.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${Y.origin}`;default:return"Rangt gildi"}}};var gk=C(()=>{e()});function Sz(){return{localeError:T5D()}}var T5D=()=>{let D={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"numero",array:"vettore"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Input non valido: atteso instanceof ${Y.expected}, ricevuto ${F}`;return`Input non valido: atteso ${Q}, ricevuto ${F}`}case"invalid_value":if(Y.values.length===1)return`Input non valido: atteso ${m(Y.values[0])}`;return`Opzione non valida: atteso uno tra ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Troppo grande: ${Y.origin??"valore"} deve avere ${Q}${Y.maximum.toString()} ${U.unit??"elementi"}`;return`Troppo grande: ${Y.origin??"valore"} deve essere ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Troppo piccolo: ${Y.origin} deve avere ${Q}${Y.minimum.toString()} ${U.unit}`;return`Troppo piccolo: ${Y.origin} deve essere ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Stringa non valida: deve iniziare con "${Q.prefix}"`;if(Q.format==="ends_with")return`Stringa non valida: deve terminare con "${Q.suffix}"`;if(Q.format==="includes")return`Stringa non valida: deve includere "${Q.includes}"`;if(Q.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${Q.pattern}`;return`Input non valido: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${Y.divisor}`;case"unrecognized_keys":return`Chiav${Y.keys.length>1?"i":"e"} non riconosciut${Y.keys.length>1?"e":"a"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${Y.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${Y.origin}`;default:return"Input non valido"}}};var xk=C(()=>{e()});function Cz(){return{localeError:P5D()}}var P5D=()=>{let D={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function $(Y){return D[Y]??null}let J={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",currency_code:"通貨コード",iban:"IBAN",jwt:"JWT",template_literal:"入力値"},X={nan:"NaN",number:"数値",array:"配列"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`無効な入力: instanceof ${Y.expected}が期待されましたが、${F}が入力されました`;return`無効な入力: ${Q}が期待されましたが、${F}が入力されました`}case"invalid_value":if(Y.values.length===1)return`無効な入力: ${m(Y.values[0])}が期待されました`;return`無効な選択: ${b(Y.values,"、")}のいずれかである必要があります`;case"too_big":{let Q=Y.inclusive?"以下である":"より小さい",U=$(Y.origin);if(U)return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${U.unit??"要素"}${Q}必要があります`;return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${Q}必要があります`}case"too_small":{let Q=Y.inclusive?"以上である":"より大きい",U=$(Y.origin);if(U)return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${U.unit}${Q}必要があります`;return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${Q}必要があります`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`無効な文字列: "${Q.prefix}"で始まる必要があります`;if(Q.format==="ends_with")return`無効な文字列: "${Q.suffix}"で終わる必要があります`;if(Q.format==="includes")return`無効な文字列: "${Q.includes}"を含む必要があります`;if(Q.format==="regex")return`無効な文字列: パターン${Q.pattern}に一致する必要があります`;return`無効な${J[Q.format]??Y.format}`}case"not_multiple_of":return`無効な数値: ${Y.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${Y.keys.length>1?"群":""}: ${b(Y.keys,"、")}`;case"invalid_key":return`${Y.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${Y.origin}内の無効な値`;default:return"無効な入力"}}};var fk=C(()=>{e()});function kz(){return{localeError:b5D()}}var b5D=()=>{let D={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function $(Y){return D[Y]??null}let J={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",currency_code:"ვალუტის კოდი",iban:"IBAN",jwt:"JWT",template_literal:"შეყვანა"},X={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${Y.expected}, მიღებული ${F}`;return`არასწორი შეყვანა: მოსალოდნელი ${Q}, მიღებული ${F}`}case"invalid_value":if(Y.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${m(Y.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${b(Y.values,"|")}-დან`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ზედმეტად დიდი: მოსალოდნელი ${Y.origin??"მნიშვნელობა"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${Y.origin??"მნიშვნელობა"} იყოს ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ზედმეტად პატარა: მოსალოდნელი ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${Y.origin} იყოს ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${Q.prefix}"-ით`;if(Q.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${Q.suffix}"-ით`;if(Q.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${Q.includes}"-ს`;if(Q.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${Q.pattern}`;return`არასწორი ${J[Q.format]??Y.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${Y.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${Y.keys.length>1?"ები":"ი"}: ${b(Y.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${Y.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${Y.origin}-ში`;default:return"არასწორი შეყვანა"}}};var yk=C(()=>{e()});function w7(){return{localeError:S5D()}}var S5D=()=>{let D={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function $(Y){return D[Y]??null}let J={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",currency_code:"កូដរូបិយប័ណ្ណ",iban:"IBAN",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},X={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${Y.expected} ប៉ុន្តែទទួលបាន ${F}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Q} ប៉ុន្តែទទួលបាន ${F}`}case"invalid_value":if(Y.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${m(Y.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${Q} ${Y.maximum.toString()} ${U.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`តូចពេក៖ ត្រូវការ ${Y.origin} ${Q} ${Y.minimum.toString()} ${U.unit}`;return`តូចពេក៖ ត្រូវការ ${Y.origin} ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${Q.prefix}"`;if(Q.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${Q.suffix}"`;if(Q.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${Q.includes}"`;if(Q.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${Q.pattern}`;return`មិនត្រឹមត្រូវ៖ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${Y.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${b(Y.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};var _z=C(()=>{e()});function uz(){return w7()}var hk=C(()=>{_z()});function gz(){return{localeError:C5D()}}var C5D=()=>{let D={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function $(Y){return D[Y]??null}let J={regex:"ಇನ್ಪುಟ್",email:"email ವಿಳಾಸ",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ದಿನಾಂಕದ ಸಮಯ",date:"ISO ದಿನಾಂಕ",time:"ISO ಸಮಯ",duration:"ISO ಅವಧಿ",ipv4:"IPv4 ವಿಳಾಸ",ipv6:"IPv6 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",currency_code:"ಕರೆನ್ಸಿ ಕೋಡ್",iban:"IBAN",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Q}, ಸ್ವೀಕರಿಸಿದನು ${F}`}case"invalid_value":if(Y.values.length===1)return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${m(Y.values[0])}`;return`ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin??"value"} ಹೊಂದಲು ${Q}${Y.maximum.toString()} ${U.unit??"ಅಂಶಗಳು"}`;return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin??"value"} ಎಂದು ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin} ಹೊಂದಲು ${Q}${Y.minimum.toString()} ${U.unit}`;return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.origin} ಎಂದು ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${Q.prefix}"`;if(Q.format==="ends_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${Q.suffix}"`;if(Q.format==="includes")return`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${Q.includes}"`;if(Q.format==="regex")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${Q.pattern}`;return`ಅಮಾನ್ಯ ${J[Q.format]??Y.format}`}case"not_multiple_of":return`ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${Y.divisor}`;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್";case"invalid_element":return`ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${Y.origin}`;default:return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್"}}};var mk=C(()=>{e()});function xz(){return{localeError:k5D()}}var k5D=()=>{let D={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function $(Y){return D[Y]??null}let J={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",currency_code:"통화 코드",iban:"IBAN",jwt:"JWT",template_literal:"입력"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`잘못된 입력: 예상 타입은 instanceof ${Y.expected}, 받은 타입은 ${F}입니다`;return`잘못된 입력: 예상 타입은 ${Q}, 받은 타입은 ${F}입니다`}case"invalid_value":if(Y.values.length===1)return`잘못된 입력: 값은 ${m(Y.values[0])} 이어야 합니다`;return`잘못된 옵션: ${b(Y.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let Q=Y.inclusive?"이하":"미만",U=Q==="미만"?"이어야 합니다":"여야 합니다",F=$(Y.origin),W=F?.unit??"요소";if(F)return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()}${W} ${Q}${U}`;return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()} ${Q}${U}`}case"too_small":{let Q=Y.inclusive?"이상":"초과",U=Q==="이상"?"이어야 합니다":"여야 합니다",F=$(Y.origin),W=F?.unit??"요소";if(F)return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()}${W} ${Q}${U}`;return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()} ${Q}${U}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`잘못된 문자열: "${Q.prefix}"(으)로 시작해야 합니다`;if(Q.format==="ends_with")return`잘못된 문자열: "${Q.suffix}"(으)로 끝나야 합니다`;if(Q.format==="includes")return`잘못된 문자열: "${Q.includes}"을(를) 포함해야 합니다`;if(Q.format==="regex")return`잘못된 문자열: 정규식 ${Q.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${J[Q.format]??Y.format}`}case"not_multiple_of":return`잘못된 숫자: ${Y.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${b(Y.keys,", ")}`;case"invalid_key":return`잘못된 키: ${Y.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${Y.origin}`;default:return"잘못된 입력"}}};var lk=C(()=>{e()});function dk(D){let $=Math.abs(D),J=$%10,X=$%100;if(X>=11&&X<=19||J===0)return"many";if(J===1)return"one";return"few"}function fz(){return{localeError:_5D()}}var j7=(D)=>{return D.charAt(0).toUpperCase()+D.slice(1)},_5D=()=>{let D={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function $(Y,Q,U,F){let W=D[Y]??null;if(W===null)return W;return{unit:W.unit[Q],verb:W.verb[F][U?"inclusive":"notInclusive"]}}let J={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",credit_card:"kredito kortelės numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"įvestis"},X={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Gautas tipas ${F}, o tikėtasi - instanceof ${Y.expected}`;return`Gautas tipas ${F}, o tikėtasi - ${Q}`}case"invalid_value":if(Y.values.length===1)return`Privalo būti ${m(Y.values[0])}`;return`Privalo būti vienas iš ${b(Y.values,"|")} pasirinkimų`;case"too_big":{let Q=X[Y.origin]??Y.origin,U=$(Y.origin,dk(Number(Y.maximum)),Y.inclusive??!1,"smaller");if(U?.verb)return`${j7(Q??Y.origin??"reikšmė")} ${U.verb} ${Y.maximum.toString()} ${U.unit??"elementų"}`;let F=Y.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${j7(Q??Y.origin??"reikšmė")} turi būti ${F} ${Y.maximum.toString()} ${U?.unit}`}case"too_small":{let Q=X[Y.origin]??Y.origin,U=$(Y.origin,dk(Number(Y.minimum)),Y.inclusive??!1,"bigger");if(U?.verb)return`${j7(Q??Y.origin??"reikšmė")} ${U.verb} ${Y.minimum.toString()} ${U.unit??"elementų"}`;let F=Y.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${j7(Q??Y.origin??"reikšmė")} turi būti ${F} ${Y.minimum.toString()} ${U?.unit}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Eilutė privalo prasidėti "${Q.prefix}"`;if(Q.format==="ends_with")return`Eilutė privalo pasibaigti "${Q.suffix}"`;if(Q.format==="includes")return`Eilutė privalo įtraukti "${Q.includes}"`;if(Q.format==="regex")return`Eilutė privalo atitikti ${Q.pattern}`;return`Neteisingas ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Skaičius privalo būti ${Y.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${Y.keys.length>1?"i":"as"} rakt${Y.keys.length>1?"ai":"as"}: ${b(Y.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let Q=X[Y.origin]??Y.origin;return`${j7(Q??Y.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};var ik=C(()=>{e()});function yz(){return{localeError:u5D()}}var u5D=()=>{let D={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function $(Y){return D[Y]??null}let J={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"внес"},X={nan:"NaN",number:"број",array:"низа"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Грешен внес: се очекува instanceof ${Y.expected}, примено ${F}`;return`Грешен внес: се очекува ${Q}, примено ${F}`}case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${m(Y.values[0])}`;return`Грешана опција: се очекува една ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Премногу голем: се очекува ${Y.origin??"вредноста"} да има ${Q}${Y.maximum.toString()} ${U.unit??"елементи"}`;return`Премногу голем: се очекува ${Y.origin??"вредноста"} да биде ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Премногу мал: се очекува ${Y.origin} да има ${Q}${Y.minimum.toString()} ${U.unit}`;return`Премногу мал: се очекува ${Y.origin} да биде ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Неважечка низа: мора да започнува со "${Q.prefix}"`;if(Q.format==="ends_with")return`Неважечка низа: мора да завршува со "${Q.suffix}"`;if(Q.format==="includes")return`Неважечка низа: мора да вклучува "${Q.includes}"`;if(Q.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${Q.pattern}`;return`Invalid ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${Y.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${Y.origin}`;default:return"Грешен внес"}}};var ck=C(()=>{e()});function hz(){return{localeError:g5D()}}var g5D=()=>{let D={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"nombor"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Input tidak sah: dijangka instanceof ${Y.expected}, diterima ${F}`;return`Input tidak sah: dijangka ${Q}, diterima ${F}`}case"invalid_value":if(Y.values.length===1)return`Input tidak sah: dijangka ${m(Y.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Terlalu besar: dijangka ${Y.origin??"nilai"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"elemen"}`;return`Terlalu besar: dijangka ${Y.origin??"nilai"} adalah ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Terlalu kecil: dijangka ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Terlalu kecil: dijangka ${Y.origin} adalah ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`String tidak sah: mesti bermula dengan "${Q.prefix}"`;if(Q.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${Q.suffix}"`;if(Q.format==="includes")return`String tidak sah: mesti mengandungi "${Q.includes}"`;if(Q.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${Q.pattern}`;return`${J[Q.format]??Y.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${b(Y.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${Y.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${Y.origin}`;default:return"Input tidak sah"}}};var pk=C(()=>{e()});function mz(){return{localeError:x5D()}}var x5D=()=>{let D={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function $(Y){return D[Y]??null}let J={regex:"इनपुट",email:"इमेल ठेगाना",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO मिति र समय",date:"ISO मिति",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 ठेगाना",ipv6:"IPv6 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`अमान्य इनपुट: अपेक्षित ${Q}, प्राप्त ${F}`}case"invalid_value":if(Y.values.length===1)return`अमान्य इनपुट: अपेक्षित ${m(Y.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`धेरै ठूलो: ${Y.origin??"मान"} मा ${Q}${Y.maximum.toString()} ${U.unit} ${U.verb}`;return`धेरै ठूलो: ${Y.origin??"मान"} ${Q}${Y.maximum.toString()} हुनुपर्छ`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`धेरै सानो: ${Y.origin} मा ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`धेरै सानो: ${Y.origin} ${Q}${Y.minimum.toString()} हुनुपर्छ`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`अमान्य स्ट्रिङ: "${Q.prefix}" बाट सुरु हुनुपर्छ`;if(Q.format==="ends_with")return`अमान्य स्ट्रिङ: "${Q.suffix}" मा समाप्त हुनुपर्छ`;if(Q.format==="includes")return`अमान्य स्ट्रिङ: "${Q.includes}" समावेश हुनुपर्छ`;if(Q.format==="regex")return`अमान्य स्ट्रिङ: ढाँचा ${Q.pattern} सँग मेल खानुपर्छ`;return`अमान्य ${J[Q.format]??Y.format}`}case"not_multiple_of":return`अमान्य संख्या: ${Y.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${Y.keys.length>1?"हरू":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`अमान्य कुञ्जी: ${Y.origin} मा`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${Y.options.map((U)=>`'${U}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${Y.origin} मा`;default:return"अमान्य इनपुट"}}};var nk=C(()=>{e()});function lz(){return{localeError:f5D()}}var f5D=()=>{let D={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function $(Y){return D[Y]??null}let J={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},X={nan:"NaN",number:"getal"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ongeldige invoer: verwacht instanceof ${Y.expected}, ontving ${F}`;return`Ongeldige invoer: verwacht ${Q}, ontving ${F}`}case"invalid_value":if(Y.values.length===1)return`Ongeldige invoer: verwacht ${m(Y.values[0])}`;return`Ongeldige optie: verwacht één van ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin),F=Y.origin==="date"?"laat":Y.origin==="string"?"lang":"groot";if(U)return`Te ${F}: verwacht dat ${Y.origin??"waarde"} ${Q}${Y.maximum.toString()} ${U.unit??"elementen"} ${U.verb}`;return`Te ${F}: verwacht dat ${Y.origin??"waarde"} ${Q}${Y.maximum.toString()} is`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin),F=Y.origin==="date"?"vroeg":Y.origin==="string"?"kort":"klein";if(U)return`Te ${F}: verwacht dat ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`Te ${F}: verwacht dat ${Y.origin} ${Q}${Y.minimum.toString()} is`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ongeldige tekst: moet met "${Q.prefix}" beginnen`;if(Q.format==="ends_with")return`Ongeldige tekst: moet op "${Q.suffix}" eindigen`;if(Q.format==="includes")return`Ongeldige tekst: moet "${Q.includes}" bevatten`;if(Q.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${Q.pattern}`;return`Ongeldig: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${Y.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${Y.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${Y.origin}`;default:return"Ongeldige invoer"}}};var rk=C(()=>{e()});function dz(){return{localeError:y5D()}}var y5D=()=>{let D={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"tal",array:"liste"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ugyldig input: forventa instanceof ${Y.expected}, fekk ${F}`;return`Ugyldig input: forventa ${Q}, fekk ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig verdi: forventa ${m(Y.values[0])}`;return`Ugyldig val: forventa eitt av ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`For stor(t): forventa ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()} ${U.unit??"element"}`;return`For stor(t): forventa ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`For lite(n): forventa ${Y.origin} til å ha ${Q}${Y.minimum.toString()} ${U.unit}`;return`For lite(n): forventa ${Y.origin} til å ha ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ugyldig streng: må starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: må slutte med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: må innehalde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: må matche mønsteret ${Q.pattern}`;return`Ugyldig ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ugyldig tal: må vere eit multiplum av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukjende nøklar":"Ukjend nøkkel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${Y.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${Y.origin}`;default:return"Ugyldig input"}}};var tk=C(()=>{e()});function iz(){return{localeError:h5D()}}var h5D=()=>{let D={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function $(Y){return D[Y]??null}let J={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"tall",array:"liste"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ugyldig input: forventet instanceof ${Y.expected}, fikk ${F}`;return`Ugyldig input: forventet ${Q}, fikk ${F}`}case"invalid_value":if(Y.values.length===1)return`Ugyldig verdi: forventet ${m(Y.values[0])}`;return`Ugyldig valg: forventet en av ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`For stor(t): forventet ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()} ${U.unit??"elementer"}`;return`For stor(t): forventet ${Y.origin??"value"} til å ha ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`For lite(n): forventet ${Y.origin} til å ha ${Q}${Y.minimum.toString()} ${U.unit}`;return`For lite(n): forventet ${Y.origin} til å ha ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ugyldig streng: må starte med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ugyldig streng: må ende med "${Q.suffix}"`;if(Q.format==="includes")return`Ugyldig streng: må inneholde "${Q.includes}"`;if(Q.format==="regex")return`Ugyldig streng: må matche mønsteret ${Q.pattern}`;return`Ugyldig ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${Y.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${Y.origin}`;default:return"Ugyldig input"}}};var ok=C(()=>{e()});function cz(){return{localeError:m5D()}}var m5D=()=>{let D={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"},map:{unit:"unsur",verb:"olmalıdır"}};function $(Y){return D[Y]??null}let J={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},X={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Fâsit giren: umulan instanceof ${Y.expected}, alınan ${F}`;return`Fâsit giren: umulan ${Q}, alınan ${F}`}case"invalid_value":if(Y.values.length===1)return`Fâsit giren: umulan ${m(Y.values[0])}`;return`Fâsit tercih: mûteberler ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Fazla büyük: ${Y.origin??"value"}, ${Q}${Y.maximum.toString()} ${U.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${Y.origin??"value"}, ${Q}${Y.maximum.toString()} olmalıydı.`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Fazla küçük: ${Y.origin}, ${Q}${Y.minimum.toString()} ${U.unit} sahip olmalıydı.`;return`Fazla küçük: ${Y.origin}, ${Q}${Y.minimum.toString()} olmalıydı.`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Fâsit metin: "${Q.prefix}" ile başlamalı.`;if(Q.format==="ends_with")return`Fâsit metin: "${Q.suffix}" ile bitmeli.`;if(Q.format==="includes")return`Fâsit metin: "${Q.includes}" ihtivâ etmeli.`;if(Q.format==="regex")return`Fâsit metin: ${Q.pattern} nakşına uymalı.`;return`Fâsit ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Fâsit sayı: ${Y.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${Y.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};var ak=C(()=>{e()});function pz(){return{localeError:l5D()}}var l5D=()=>{let D={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function $(Y){return D[Y]??null}let J={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",currency_code:"د اسعارو کوډ",iban:"IBAN",jwt:"JWT",template_literal:"ورودي"},X={nan:"NaN",number:"عدد",array:"ارې"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ناسم ورودي: باید instanceof ${Y.expected} وای, مګر ${F} ترلاسه شو`;return`ناسم ورودي: باید ${Q} وای, مګر ${F} ترلاسه شو`}case"invalid_value":if(Y.values.length===1)return`ناسم ورودي: باید ${m(Y.values[0])} وای`;return`ناسم انتخاب: باید یو له ${b(Y.values,"|")} څخه وای`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${Q}${Y.maximum.toString()} ${U.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${Q}${Y.maximum.toString()} وي`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`ډیر کوچنی: ${Y.origin} باید ${Q}${Y.minimum.toString()} ${U.unit} ولري`;return`ډیر کوچنی: ${Y.origin} باید ${Q}${Y.minimum.toString()} وي`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`ناسم متن: باید د "${Q.prefix}" سره پیل شي`;if(Q.format==="ends_with")return`ناسم متن: باید د "${Q.suffix}" سره پای ته ورسيږي`;if(Q.format==="includes")return`ناسم متن: باید "${Q.includes}" ولري`;if(Q.format==="regex")return`ناسم متن: باید د ${Q.pattern} سره مطابقت ولري`;return`${J[Q.format]??Y.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${Y.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${Y.keys.length>1?"کلیډونه":"کلیډ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${Y.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${Y.origin} کې`;default:return"ناسمه ورودي"}}};var sk=C(()=>{e()});function nz(){return{localeError:d5D()}}var d5D=()=>{let D={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function $(Y){return D[Y]??null}let J={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wejście"},X={nan:"NaN",number:"liczba",array:"tablica"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${Y.expected}, otrzymano ${F}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${Q}, otrzymano ${F}`}case"invalid_value":if(Y.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${m(Y.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Za duża wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${Q}${Y.maximum.toString()} ${U.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Za mała wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${Q}${Y.minimum.toString()} ${U.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${Q.prefix}"`;if(Q.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${Q.suffix}"`;if(Q.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${Q.includes}"`;if(Q.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${Q.pattern}`;return`Nieprawidłow(y/a/e) ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${Y.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${Y.keys.length>1?"s":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${Y.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${Y.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};var ek=C(()=>{e()});function rz(){return{localeError:i5D()}}var i5D=()=>{let D={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function $(U){return D[U]??null}let J={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},X={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},Y={string:{name:"texto",articles:X.masculine},number:{name:"número",articles:X.masculine},int:{name:"número inteiro",articles:X.masculine},boolean:{name:"valor booleano",articles:X.masculine},bigint:{name:"número bigint",articles:X.masculine},symbol:{name:"símbolo",articles:X.masculine},undefined:{name:'valor "undefined"',articles:X.masculine},null:{name:'valor "nulo"',articles:X.masculine},never:{name:'valor "never"',articles:X.masculine},void:{name:'valor "void"',articles:X.masculine},date:{name:"data",articles:X.feminine},array:{name:"vetor",articles:X.masculine},object:{name:"objeto",articles:X.masculine},tuple:{name:"tuplo",articles:X.masculine},record:{name:"registo",articles:X.masculine},map:{name:"mapa",articles:X.masculine},set:{name:"conjunto",articles:X.masculine},file:{name:"ficheiro",articles:X.masculine},nonoptional:{name:"valor não opcional",articles:X.masculine},nan:{name:'valor "NaN"',articles:X.masculine},function:{name:"função",articles:X.feminine}};function Q(U,F){let W=Y[U]??{name:`valor "${U}"`,articles:X.masculine};return`${W.articles[F]} ${W.name}`}return(U)=>{switch(U.code){case"invalid_type":{let F=Q(U.expected,"indefinite"),W=l(U.input),K=Q(W,"indefinite");return`Entrada inválida: esperava ${F}, recebeu ${K}`}case"invalid_value":if(U.values.length===1)return`Entrada inválida: esperava ${m(U.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${b(U.values,"|")}`;case"too_big":{let F=U.inclusive?"<=":"<",W=$(U.origin);if(W)return`Demasiado grande: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.maximum.toString()} ${W.unit??"elementos"}`;return`Demasiado grande: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.maximum.toString()}`}case"too_small":{let F=U.inclusive?">=":">",W=$(U.origin);if(W)return`Demasiado pequeno: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.minimum.toString()} ${W.unit??"elementos"}`;return`Demasiado pequeno: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.minimum.toString()}`}case"invalid_format":{let F=U;if(F.format==="starts_with")return`Texto inválido: deve começar por "${F.prefix}"`;if(F.format==="ends_with")return`Texto inválido: deve terminar em "${F.suffix}"`;if(F.format==="includes")return`Texto inválido: deve incluir "${F.includes}"`;if(F.format==="regex")return`Texto inválido: deve corresponder ao padrão ${F.pattern}`;return`Formato d${J[F.format]??U.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${U.divisor}`;case"unrecognized_keys":{let F=U.keys.length>1?"s":"";return`Chave${F} inválida${F}: ${b(U.keys,", ")}`}case"invalid_key":return`Entrada inválida n${Q(U.origin,"definite")}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`Valor de discriminação inválido. Esperava ${U.options.map((W)=>`'${W}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${Q(U.origin,"definite")}`;default:return"Entrada inválida"}}};var D_=C(()=>{e()});function tz(){return{localeError:c5D()}}var c5D=()=>{let D={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function $(U){return D[U]??null}let J={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},X={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},Y={string:{name:"texto",articles:X.masculine},number:{name:"número",articles:X.masculine},int:{name:"número inteiro",articles:X.masculine},boolean:{name:"valor booleano",articles:X.masculine},bigint:{name:"número bigint",articles:X.masculine},symbol:{name:"símbolo",articles:X.masculine},undefined:{name:'valor "undefined"',articles:X.masculine},null:{name:'valor "nulo"',articles:X.masculine},never:{name:'valor "never"',articles:X.masculine},void:{name:'valor "void"',articles:X.masculine},date:{name:"data",articles:X.feminine},array:{name:"vetor",articles:X.masculine},object:{name:"objeto",articles:X.masculine},tuple:{name:"tupla",articles:X.feminine},record:{name:"registro",articles:X.masculine},map:{name:"mapa",articles:X.masculine},set:{name:"conjunto",articles:X.masculine},file:{name:"arquivo",articles:X.masculine},nonoptional:{name:"valor não opcional",articles:X.masculine},nan:{name:'valor "NaN"',articles:X.masculine},function:{name:"função",articles:X.feminine}};function Q(U,F){let W=Y[U]??{name:`valor "${U}"`,articles:X.masculine};return`${W.articles[F]} ${W.name}`}return(U)=>{switch(U.code){case"invalid_type":{let F=Q(U.expected,"indefinite"),W=l(U.input),K=Q(W,"indefinite");return`Entrada inválida: esperava ${F}, recebeu ${K}`}case"invalid_value":if(U.values.length===1)return`Entrada inválida: esperava ${m(U.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${b(U.values,"|")}`;case"too_big":{let F=U.inclusive?"<=":"<",W=$(U.origin);if(W)return`Grande demais: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.maximum.toString()} ${W.unit??"elementos"}`;return`Grande demais: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.maximum.toString()}`}case"too_small":{let F=U.inclusive?">=":">",W=$(U.origin);if(W)return`Pequeno demais: esperava que ${Q(U.origin,"definite")} tivesse ${F} ${U.minimum.toString()} ${W.unit??"elementos"}`;return`Pequeno demais: esperava que ${Q(U.origin,"definite")} fosse ${F} ${U.minimum.toString()}`}case"invalid_format":{let F=U;if(F.format==="starts_with")return`Texto inválido: deve começar com "${F.prefix}"`;if(F.format==="ends_with")return`Texto inválido: deve terminar com "${F.suffix}"`;if(F.format==="includes")return`Texto inválido: deve incluir "${F.includes}"`;if(F.format==="regex")return`Texto inválido: deve corresponder ao padrão ${F.pattern}`;return`Formato d${J[F.format]??U.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${U.divisor}`;case"unrecognized_keys":{let F=U.keys.length>1?"s":"";return`Chave${F} inválida${F}: ${b(U.keys,", ")}`}case"invalid_key":return`Entrada inválida n${Q(U.origin,"definite")}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`Valor de discriminação inválido. Esperava ${U.options.map((W)=>`'${W}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${Q(U.origin,"definite")}`;default:return"Entrada inválida"}}};var $_=C(()=>{e()});function oz(){return{localeError:p5D()}}var p5D=()=>{let D={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function $(Y){return D[Y]??null}let J={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},X={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`Intrare invalidă: așteptat ${Q}, primit ${F}`}case"invalid_value":if(Y.values.length===1)return`Intrare invalidă: așteptat ${m(Y.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Prea mare: așteptat ca ${Y.origin??"valoarea"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"elemente"}`;return`Prea mare: așteptat ca ${Y.origin??"valoarea"} să fie ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Prea mic: așteptat ca ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Prea mic: așteptat ca ${Y.origin} să fie ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${Q.prefix}"`;if(Q.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${Q.suffix}"`;if(Q.format==="includes")return`Șir invalid: trebuie să includă "${Q.includes}"`;if(Q.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${Q.pattern}`;return`Format invalid: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${Y.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${b(Y.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${Y.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${Y.origin}`;default:return"Intrare invalidă"}}};var J_=C(()=>{e()});function X_(D,$,J,X){let Y=Math.abs(D),Q=Y%10,U=Y%100;if(U>=11&&U<=19)return X;if(Q===1)return $;if(Q>=2&&Q<=4)return J;return X}function az(){return{localeError:n5D()}}var n5D=()=>{let D={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function $(Y){return D[Y]??null}let J={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"ввод"},X={nan:"NaN",number:"число",array:"массив"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Неверный ввод: ожидалось instanceof ${Y.expected}, получено ${F}`;return`Неверный ввод: ожидалось ${Q}, получено ${F}`}case"invalid_value":if(Y.values.length===1)return`Неверный ввод: ожидалось ${m(Y.values[0])}`;return`Неверный вариант: ожидалось одно из ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U){let F=Number(Y.maximum),W=X_(F,U.unit.one,U.unit.few,U.unit.many);return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет иметь ${Q}${Y.maximum.toString()} ${W}`}return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U){let F=Number(Y.minimum),W=X_(F,U.unit.one,U.unit.few,U.unit.many);return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет иметь ${Q}${Y.minimum.toString()} ${W}`}return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Неверная строка: должна начинаться с "${Q.prefix}"`;if(Q.format==="ends_with")return`Неверная строка: должна заканчиваться на "${Q.suffix}"`;if(Q.format==="includes")return`Неверная строка: должна содержать "${Q.includes}"`;if(Q.format==="regex")return`Неверная строка: должна соответствовать шаблону ${Q.pattern}`;return`Неверный ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспознанн${Y.keys.length>1?"ые":"ый"} ключ${Y.keys.length>1?"и":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${Y.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${Y.origin}`;default:return"Неверные входные данные"}}};var Y_=C(()=>{e()});function sz(){return{localeError:r5D()}}var r5D=()=>{let D={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function $(Y){return D[Y]??null}let J={regex:"regulárny výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",currency_code:"kód meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},X={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neplatný vstup: očakávané instanceof ${Y.expected}, obdržané ${F}`;return`Neplatný vstup: očakávané ${Q}, obdržané ${F}`}case"invalid_value":if(Y.values.length===1)return`Neplatný vstup: očakávané ${m(Y.values[0])}`;return`Neplatný vstup: očakávaná jedna z hodnôt ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Hodnota je príliš veľká: ${Y.origin??"hodnota"} musí mať ${Q}${Y.maximum.toString()} ${U.unit??"prvkov"}`;return`Hodnota je príliš veľká: ${Y.origin??"hodnota"} musí byť ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Hodnota je príliš malá: ${Y.origin??"hodnota"} musí mať ${Q}${Y.minimum.toString()} ${U.unit??"prvkov"}`;return`Hodnota je príliš malá: ${Y.origin??"hodnota"} musí byť ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neplatný reťazec: musí začínať na "${Q.prefix}"`;if(Q.format==="ends_with")return`Neplatný reťazec: musí končiť na "${Q.suffix}"`;if(Q.format==="includes")return`Neplatný reťazec: musí obsahovať "${Q.includes}"`;if(Q.format==="regex")return`Neplatný reťazec: musí zodpovedať vzoru ${Q.pattern}`;return`Neplatný formát ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neplatné číslo: musí byť násobkom ${Y.divisor}`;case"unrecognized_keys":return`Neznáme klúče: ${b(Y.keys,", ")}`;case"invalid_key":return`Neplatný klúč v ${Y.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${Y.origin}`;default:return"Neplatný vstup"}}};var Q_=C(()=>{e()});function ez(){return{localeError:t5D()}}var t5D=()=>{let D={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function $(Y){return D[Y]??null}let J={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},X={nan:"NaN",number:"število",array:"tabela"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Neveljaven vnos: pričakovano instanceof ${Y.expected}, prejeto ${F}`;return`Neveljaven vnos: pričakovano ${Q}, prejeto ${F}`}case"invalid_value":if(Y.values.length===1)return`Neveljaven vnos: pričakovano ${m(Y.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} imelo ${Q}${Y.maximum.toString()} ${U.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Premajhno: pričakovano, da bo ${Y.origin} imelo ${Q}${Y.minimum.toString()} ${U.unit}`;return`Premajhno: pričakovano, da bo ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Neveljaven niz: mora se začeti z "${Q.prefix}"`;if(Q.format==="ends_with")return`Neveljaven niz: mora se končati z "${Q.suffix}"`;if(Q.format==="includes")return`Neveljaven niz: mora vsebovati "${Q.includes}"`;if(Q.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${Q.pattern}`;return`Neveljaven ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${Y.divisor}`;case"unrecognized_keys":return`Neprepoznan${Y.keys.length>1?"i ključi":" ključ"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${Y.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${Y.origin}`;default:return"Neveljaven vnos"}}};var U_=C(()=>{e()});function DH(){return{localeError:o5D()}}var o5D=()=>{let D={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function $(Y){return D[Y]??null}let J={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},X={nan:"NaN",number:"antal",array:"lista"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ogiltig inmatning: förväntat instanceof ${Y.expected}, fick ${F}`;return`Ogiltig inmatning: förväntat ${Q}, fick ${F}`}case"invalid_value":if(Y.values.length===1)return`Ogiltig inmatning: förväntat ${m(Y.values[0])}`;return`Ogiltigt val: förväntade en av ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`För stor(t): förväntade ${Y.origin??"värdet"} att ha ${Q}${Y.maximum.toString()} ${U.unit??"element"}`;return`För stor(t): förväntat ${Y.origin??"värdet"} att ha ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${Q}${Y.minimum.toString()} ${U.unit}`;return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ogiltig sträng: måste börja med "${Q.prefix}"`;if(Q.format==="ends_with")return`Ogiltig sträng: måste sluta med "${Q.suffix}"`;if(Q.format==="includes")return`Ogiltig sträng: måste innehålla "${Q.includes}"`;if(Q.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${Q.pattern}"`;return`Ogiltig(t) ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${b(Y.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${Y.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${Y.origin??"värdet"}`;default:return"Ogiltig input"}}};var F_=C(()=>{e()});function $H(){return{localeError:a5D()}}var a5D=()=>{let D={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function $(Y){return D[Y]??null}let J={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",currency_code:"நாணயக் குறியீடு",iban:"IBAN",jwt:"JWT",template_literal:"input"},X={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${Y.expected}, பெறப்பட்டது ${F}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Q}, பெறப்பட்டது ${F}`}case"invalid_value":if(Y.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${m(Y.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${b(Y.values,"|")} இல் ஒன்று`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${Q}${Y.maximum.toString()} ${U.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${Q}${Y.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${Q}${Y.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`தவறான சரம்: "${Q.prefix}" இல் தொடங்க வேண்டும்`;if(Q.format==="ends_with")return`தவறான சரம்: "${Q.suffix}" இல் முடிவடைய வேண்டும்`;if(Q.format==="includes")return`தவறான சரம்: "${Q.includes}" ஐ உள்ளடக்க வேண்டும்`;if(Q.format==="regex")return`தவறான சரம்: ${Q.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${J[Q.format]??Y.format}`}case"not_multiple_of":return`தவறான எண்: ${Y.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${Y.keys.length>1?"கள்":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${Y.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};var W_=C(()=>{e()});function JH(){return{localeError:s5D()}}var s5D=()=>{let D={string:{unit:"аломат",verb:"дошта бошад"},file:{unit:"байт",verb:"дошта бошад"},array:{unit:"унсур",verb:"дошта бошад"},set:{unit:"унсур",verb:"дошта бошад"},map:{unit:"сабт",verb:"дошта бошад"}};function $(Y){return D[Y]??null}let J={regex:"вуруд",email:"суроғаи email",url:"URL",emoji:"эмоҷи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"санаву вақти ISO",date:"санаи ISO",time:"вақти ISO",duration:"давомнокии ISO",ipv4:"суроғаи IPv4",ipv6:"суроғаи IPv6",mac:"суроғаи MAC",cidrv4:"маҳдудаи IPv4",cidrv6:"маҳдудаи IPv6",base64:"сатри дар формати base64",base64url:"сатри дар формати base64url",json_string:"сатри JSON",e164:"рақами E.164",credit_card:"рақами корти кредитӣ",currency_code:"рамзи асъор",iban:"IBAN",jwt:"JWT",template_literal:"вуруд"},X={nan:"NaN",number:"рақам",string:"сатр",array:"массив",object:"объект",date:"сана"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`Вуруди нодуруст: ${Q} интизор мерафт, ${F} гирифта шуд`}case"invalid_value":if(Y.values.length===1)return`Вуруди нодуруст: ${m(Y.values[0])} интизор мерафт`;return`Интихоби нодуруст: яке аз ${b(Y.values,"|")} интизор мерафт`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Хеле калон: ${Y.origin??"қимат"} бояд ${Q}${Y.maximum.toString()} ${U.unit} ${U.verb}`;return`Хеле калон: ${Y.origin??"қимат"} бояд ${Q}${Y.maximum.toString()} бошад`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Хеле хурд: ${Y.origin} бояд ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`Хеле хурд: ${Y.origin} бояд ${Q}${Y.minimum.toString()} бошад`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Сатри нодуруст: бояд бо "${Q.prefix}" оғоз шавад`;if(Q.format==="ends_with")return`Сатри нодуруст: бояд бо "${Q.suffix}" анҷом ёбад`;if(Q.format==="includes")return`Сатри нодуруст: бояд "${Q.includes}"-ро дар бар гирад`;if(Q.format==="regex")return`Сатри нодуруст: бояд ба намунаи ${Q.pattern} мувофиқат кунад`;return`${J[Q.format]??Y.format}-и нодуруст`}case"not_multiple_of":return`Рақами нодуруст: бояд ба ${Y.divisor} бе бақия тақсим шавад`;case"unrecognized_keys":return`Калид${Y.keys.length>1?"ҳои":"и"} номаълум: ${b(Y.keys,", ")}`;case"invalid_key":return`Калиди нодуруст дар ${Y.origin}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Қимати нодурусти дискриминатор: ${Y.options.map((U)=>`'${U}'`).join(" | ")} интизор мерафт`;return"Вуруди нодуруст";case"invalid_element":return`Қимати нодуруст дар ${Y.origin}`;default:return"Вуруди нодуруст"}}};var K_=C(()=>{e()});function XH(){return{localeError:e5D()}}var e5D=()=>{let D={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function $(Y){return D[Y]??null}let J={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",currency_code:"รหัสสกุลเงิน",iban:"IBAN",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},X={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${Y.expected} แต่ได้รับ ${F}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${Q} แต่ได้รับ ${F}`}case"invalid_value":if(Y.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${m(Y.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"ไม่เกิน":"น้อยกว่า",U=$(Y.origin);if(U)return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${Q} ${Y.maximum.toString()} ${U.unit??"รายการ"}`;return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?"อย่างน้อย":"มากกว่า",U=$(Y.origin);if(U)return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${Q} ${Y.minimum.toString()} ${U.unit}`;return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${Q.prefix}"`;if(Q.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${Q.suffix}"`;if(Q.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${Q.includes}" อยู่ในข้อความ`;if(Q.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${Q.pattern}`;return`รูปแบบไม่ถูกต้อง: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${Y.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${b(Y.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${Y.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${Y.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};var q_=C(()=>{e()});function YH(){return{localeError:D7D()}}var D7D=()=>{let D={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function $(Y){return D[Y]??null}let J={regex:"giriş",email:"e-poçta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",currency_code:"walýuta kody",iban:"IBAN",jwt:"JWT",template_literal:"şablon"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;return`Nädogry baha: garaşylan ${Q} ýerine ${F} alyndy`}case"invalid_value":if(Y.values.length===1)return`Nädogry baha: ${m(Y.values[0])} bolmaly`;return`Nädogry saýlaw: aşakdakylardan biri bolmaly: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Has uly: garaşylýan ${Y.origin??"baha"} ${Q} ${Y.maximum.toString()} ${U.unit??"element"}`;return`Has uly: garaşylýan ${Y.origin??"baha"} ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Has kiçi: garaşylýan ${Y.origin} ${Q} ${Y.minimum.toString()} ${U.unit}`;return`Has kiçi: garaşylýan ${Y.origin} ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Nädogry setir: "${Q.prefix}" bilen başlamaly`;if(Q.format==="ends_with")return`Nädogry setir: "${Q.suffix}" bilen gutarmaly`;if(Q.format==="includes")return`Nädogry setir: "${Q.includes}" saklamaly`;if(Q.format==="regex")return`Nädogry setir: ${Q.pattern} nusga laýyk bolmaly`;return`Nädogry ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nädogry san: ${Y.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} içinde nädogry açar`;case"invalid_union":return"Nädogry baha";case"invalid_element":return`${Y.origin} içinde nädogry baha`;default:return"Nädogry baha"}}};var G_=C(()=>{e()});function QH(){return{localeError:$7D()}}var $7D=()=>{let D={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function $(Y){return D[Y]??null}let J={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",credit_card:"kredi kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"Şablon dizesi"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Geçersiz değer: beklenen instanceof ${Y.expected}, alınan ${F}`;return`Geçersiz değer: beklenen ${Q}, alınan ${F}`}case"invalid_value":if(Y.values.length===1)return`Geçersiz değer: beklenen ${m(Y.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Çok büyük: beklenen ${Y.origin??"değer"} ${Q}${Y.maximum.toString()} ${U.unit??"öğe"}`;return`Çok büyük: beklenen ${Y.origin??"değer"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Çok küçük: beklenen ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Çok küçük: beklenen ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Geçersiz metin: "${Q.prefix}" ile başlamalı`;if(Q.format==="ends_with")return`Geçersiz metin: "${Q.suffix}" ile bitmeli`;if(Q.format==="includes")return`Geçersiz metin: "${Q.includes}" içermeli`;if(Q.format==="regex")return`Geçersiz metin: ${Q.pattern} desenine uymalı`;return`Geçersiz ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Geçersiz sayı: ${Y.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${Y.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};var Z_=C(()=>{e()});function L7(){return{localeError:J7D()}}var J7D=()=>{let D={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function $(Y){return D[Y]??null}let J={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",currency_code:"код валюти",iban:"IBAN",jwt:"JWT",template_literal:"вхідні дані"},X={nan:"NaN",number:"число",array:"масив"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Неправильні вхідні дані: очікується instanceof ${Y.expected}, отримано ${F}`;return`Неправильні вхідні дані: очікується ${Q}, отримано ${F}`}case"invalid_value":if(Y.values.length===1)return`Неправильні вхідні дані: очікується ${m(Y.values[0])}`;return`Неправильна опція: очікується одне з ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Занадто велике: очікується, що ${Y.origin??"значення"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"елементів"}`;return`Занадто велике: очікується, що ${Y.origin??"значення"} буде ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Занадто мале: очікується, що ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Занадто мале: очікується, що ${Y.origin} буде ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Неправильний рядок: повинен починатися з "${Q.prefix}"`;if(Q.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${Q.suffix}"`;if(Q.format==="includes")return`Неправильний рядок: повинен містити "${Q.includes}"`;if(Q.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${Q.pattern}`;return`Неправильний ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${Y.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${Y.keys.length>1?"і":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${Y.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${Y.origin}`;default:return"Неправильні вхідні дані"}}};var UH=C(()=>{e()});function FH(){return L7()}var z_=C(()=>{UH()});function WH(){return{localeError:X7D()}}var X7D=()=>{let D={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function $(Y){return D[Y]??null}let J={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",currency_code:"کرنسی کوڈ",iban:"IBAN",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},X={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`غلط ان پٹ: instanceof ${Y.expected} متوقع تھا، ${F} موصول ہوا`;return`غلط ان پٹ: ${Q} متوقع تھا، ${F} موصول ہوا`}case"invalid_value":if(Y.values.length===1)return`غلط ان پٹ: ${m(Y.values[0])} متوقع تھا`;return`غلط آپشن: ${b(Y.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`بہت بڑا: ${Y.origin??"ویلیو"} کے ${Q}${Y.maximum.toString()} ${U.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${Y.origin??"ویلیو"} کا ${Q}${Y.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`بہت چھوٹا: ${Y.origin} کے ${Q}${Y.minimum.toString()} ${U.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${Y.origin} کا ${Q}${Y.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`غلط سٹرنگ: "${Q.prefix}" سے شروع ہونا چاہیے`;if(Q.format==="ends_with")return`غلط سٹرنگ: "${Q.suffix}" پر ختم ہونا چاہیے`;if(Q.format==="includes")return`غلط سٹرنگ: "${Q.includes}" شامل ہونا چاہیے`;if(Q.format==="regex")return`غلط سٹرنگ: پیٹرن ${Q.pattern} سے میچ ہونا چاہیے`;return`غلط ${J[Q.format]??Y.format}`}case"not_multiple_of":return`غلط نمبر: ${Y.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${Y.keys.length>1?"ز":""}: ${b(Y.keys,"، ")}`;case"invalid_key":return`${Y.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${Y.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};var H_=C(()=>{e()});function KH(){return{localeError:Y7D()}}var Y7D=()=>{let D={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function $(Y){return D[Y]??null}let J={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},X={nan:"NaN",number:"raqam",array:"massiv"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${Y.expected}, qabul qilingan ${F}`;return`Noto‘g‘ri kirish: kutilgan ${Q}, qabul qilingan ${F}`}case"invalid_value":if(Y.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${m(Y.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Juda katta: kutilgan ${Y.origin??"qiymat"} ${Q}${Y.maximum.toString()} ${U.unit} ${U.verb}`;return`Juda katta: kutilgan ${Y.origin??"qiymat"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Juda kichik: kutilgan ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit} ${U.verb}`;return`Juda kichik: kutilgan ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Noto‘g‘ri satr: "${Q.prefix}" bilan boshlanishi kerak`;if(Q.format==="ends_with")return`Noto‘g‘ri satr: "${Q.suffix}" bilan tugashi kerak`;if(Q.format==="includes")return`Noto‘g‘ri satr: "${Q.includes}" ni o‘z ichiga olishi kerak`;if(Q.format==="regex")return`Noto‘g‘ri satr: ${Q.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${Y.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${Y.keys.length>1?"lar":""}: ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${Y.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};var I_=C(()=>{e()});function qH(){return{localeError:Q7D()}}var Q7D=()=>{let D={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function $(Y){return D[Y]??null}let J={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",currency_code:"mã tiền tệ",iban:"IBAN",jwt:"JWT",template_literal:"đầu vào"},X={nan:"NaN",number:"số",array:"mảng"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${Y.expected}, nhận được ${F}`;return`Đầu vào không hợp lệ: mong đợi ${Q}, nhận được ${F}`}case"invalid_value":if(Y.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${m(Y.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${U.verb} ${Q}${Y.maximum.toString()} ${U.unit??"phần tử"}`;return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Quá nhỏ: mong đợi ${Y.origin} ${U.verb} ${Q}${Y.minimum.toString()} ${U.unit}`;return`Quá nhỏ: mong đợi ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${Q.prefix}"`;if(Q.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${Q.suffix}"`;if(Q.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${Q.includes}"`;if(Q.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${Q.pattern}`;return`${J[Q.format]??Y.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${Y.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${b(Y.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${Y.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${Y.origin}`;default:return"Đầu vào không hợp lệ"}}};var B_=C(()=>{e()});function GH(){return{localeError:U7D()}}var U7D=()=>{let D={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function $(Y){return D[Y]??null}let J={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",currency_code:"货币代码",iban:"IBAN",jwt:"JWT",template_literal:"输入"},X={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`无效输入:期望 instanceof ${Y.expected},实际接收 ${F}`;return`无效输入:期望 ${Q},实际接收 ${F}`}case"invalid_value":if(Y.values.length===1)return`无效输入:期望 ${m(Y.values[0])}`;return`无效选项:期望以下之一 ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`数值过大:期望 ${Y.origin??"值"} ${Q}${Y.maximum.toString()} ${U.unit??"个元素"}`;return`数值过大:期望 ${Y.origin??"值"} ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`数值过小:期望 ${Y.origin} ${Q}${Y.minimum.toString()} ${U.unit}`;return`数值过小:期望 ${Y.origin} ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`无效字符串:必须以 "${Q.prefix}" 开头`;if(Q.format==="ends_with")return`无效字符串:必须以 "${Q.suffix}" 结尾`;if(Q.format==="includes")return`无效字符串:必须包含 "${Q.includes}"`;if(Q.format==="regex")return`无效字符串:必须满足正则表达式 ${Q.pattern}`;return`无效${J[Q.format]??Y.format}`}case"not_multiple_of":return`无效数字:必须是 ${Y.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${b(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${Y.origin} 中包含无效值(value)`;default:return"无效输入"}}};var O_=C(()=>{e()});function ZH(){return{localeError:F7D()}}var F7D=()=>{let D={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function $(Y){return D[Y]??null}let J={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",currency_code:"貨幣代碼",iban:"IBAN",jwt:"JWT",template_literal:"輸入"},X={nan:"NaN"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`無效的輸入值:預期為 instanceof ${Y.expected},但收到 ${F}`;return`無效的輸入值:預期為 ${Q},但收到 ${F}`}case"invalid_value":if(Y.values.length===1)return`無效的輸入值:預期為 ${m(Y.values[0])}`;return`無效的選項:預期為以下其中之一 ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`數值過大:預期 ${Y.origin??"值"} 應為 ${Q}${Y.maximum.toString()} ${U.unit??"個元素"}`;return`數值過大:預期 ${Y.origin??"值"} 應為 ${Q}${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`數值過小:預期 ${Y.origin} 應為 ${Q}${Y.minimum.toString()} ${U.unit}`;return`數值過小:預期 ${Y.origin} 應為 ${Q}${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`無效的字串:必須以 "${Q.prefix}" 開頭`;if(Q.format==="ends_with")return`無效的字串:必須以 "${Q.suffix}" 結尾`;if(Q.format==="includes")return`無效的字串:必須包含 "${Q.includes}"`;if(Q.format==="regex")return`無效的字串:必須符合格式 ${Q.pattern}`;return`無效的 ${J[Q.format]??Y.format}`}case"not_multiple_of":return`無效的數字:必須為 ${Y.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${Y.keys.length>1?"們":""}:${b(Y.keys,"、")}`;case"invalid_key":return`${Y.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${Y.origin} 中有無效的值`;default:return"無效的輸入值"}}};var N_=C(()=>{e()});function zH(){return{localeError:W7D()}}var W7D=()=>{let D={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function $(Y){return D[Y]??null}let J={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",currency_code:"koodu owó",iban:"IBAN",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},X={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X[Y.expected]??Y.expected,U=l(Y.input),F=X[U]??U;if(/^[A-Z]/.test(Y.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${Y.expected}, àmọ̀ a rí ${F}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${Q}, àmọ̀ a rí ${F}`}case"invalid_value":if(Y.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${m(Y.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${b(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",U=$(Y.origin);if(U)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${Y.origin??"iye"} ${U.verb} ${Q}${Y.maximum} ${U.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${Q}${Y.maximum}`}case"too_small":{let Q=Y.inclusive?">=":">",U=$(Y.origin);if(U)return`Kéré ju: a ní láti jẹ́ pé ${Y.origin} ${U.verb} ${Q}${Y.minimum} ${U.unit}`;return`Kéré ju: a ní láti jẹ́ ${Q}${Y.minimum}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${Q.prefix}"`;if(Q.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${Q.suffix}"`;if(Q.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${Q.includes}"`;if(Q.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${Q.pattern}`;return`Aṣìṣe: ${J[Q.format]??Y.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${Y.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${b(Y.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${Y.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${Y.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};var V_=C(()=>{e()});var R7={};y0(R7,{zhTW:()=>ZH,zhCN:()=>GH,yo:()=>zH,vi:()=>qH,uz:()=>KH,ur:()=>WH,uk:()=>L7,ua:()=>FH,tr:()=>QH,tk:()=>YH,th:()=>XH,tg:()=>JH,ta:()=>$H,sv:()=>DH,sl:()=>ez,sk:()=>sz,ru:()=>az,ro:()=>oz,ptBR:()=>tz,pt:()=>rz,ps:()=>pz,pl:()=>nz,ota:()=>cz,no:()=>iz,nn:()=>dz,nl:()=>lz,ne:()=>mz,ms:()=>hz,mk:()=>yz,lt:()=>fz,ko:()=>xz,kn:()=>gz,km:()=>w7,kh:()=>uz,ka:()=>kz,ja:()=>Cz,it:()=>Sz,is:()=>bz,id:()=>Pz,hy:()=>Tz,hu:()=>Ez,hr:()=>vz,hi:()=>Az,he:()=>Mz,gu:()=>Rz,frCA:()=>Lz,fr:()=>jz,fi:()=>wz,fa:()=>Vz,es:()=>Nz,eo:()=>Oz,en:()=>V7,el:()=>Iz,de:()=>Hz,da:()=>zz,cs:()=>Zz,ckb:()=>Gz,ca:()=>qz,bn:()=>Kz,bg:()=>Wz,be:()=>Fz,az:()=>Uz,ar:()=>Qz});var HH=C(()=>{qk();Gk();zk();Hk();Ik();Bk();Ok();Nk();Vk();wk();jk();Bz();Lk();Rk();Mk();Ak();vk();Ek();Tk();Pk();bk();Sk();Ck();_k();uk();gk();xk();fk();yk();hk();_z();mk();lk();ik();ck();pk();nk();rk();tk();ok();ak();sk();ek();D_();$_();J_();Y_();Q_();U_();F_();W_();K_();q_();G_();Z_();z_();UH();H_();I_();B_();O_();N_();V_()});class OH{constructor(){this._map=new WeakMap,this._idmap=new Map}add(D,...$){let J=$[0];if(this._map.set(D,J),J&&typeof J==="object"&&"id"in J)this._idmap.set(J.id,D);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(D){let $=this._map.get(D);if($&&typeof $==="object"&&"id"in $)this._idmap.delete($.id);return this._map.delete(D),this}get(D){let $=D._zod.parent;if($){let J={...this.get($)??{}};delete J.id;let X={...J,...this._map.get(D)};return Object.keys(X).length?X:void 0}return this._map.get(D)}has(D){return this._map.has(D)}}function RY(){return new OH}var w_,IH,BH,_0;var M7=C(()=>{IH=Symbol("ZodOutput"),BH=Symbol("ZodInput");(w_=globalThis).__zod_globalRegistry??(w_.__zod_globalRegistry=RY());_0=globalThis.__zod_globalRegistry});function q7D(D,$){try{return AY(D,{assertOnly:!0})}catch{return $}}function jH(D,$){try{let J=AY(D),X=MY(D,J);return X._zod.bag.validator=q7D(D,J),X}catch(J){if($?.strict)throw J;return D}}function MY(D,$){if(jY(D))throw new ED("a schema whose subtree contains a reference cycle");let J=fD(D),X=D._zod.run,Y=X.__originalRun??X,Q=(U,F)=>{if(F?.async||F?.direction==="backward"||F?.skipChecks||F?.[j_])return Y(U,F);if(F&&LY(F,U.value))return Y(U,F);let W=$(U.value);if(W!==J$)return U.value=W,U;if(F)F[j_]=!0;return Y(U,F)};if(Q.__originalRun=Y,J._zod.bag.fallbackRun=Y,J._zod.bag.validator=$,J._zod.run=Q,!X.__originalRun)G7D(J,D,$);return J}function G7D(D,$,J){let X=D,Y=$;if(typeof Y.safeParse==="function"){let Q=Y.safeParse;X.safeParse=(U,F)=>{let W=J(U);if(W!==J$)return{success:!0,data:W};return Q(U,F)}}if(typeof Y.parse==="function"){let Q=Y.parse;X.parse=(U,F)=>{let W=J(U);if(W!==J$)return W;return Q(U,F)}}}function AY(D,$){let J=!0;try{J=jY(D)}catch{}if(J)throw new ED("a schema whose subtree contains a reference cycle");let X={constants:new Map,constantCounter:0,varCounter:0,definite:!0},Y=new P2(["input"]),Q=J0(Y,X,D,"input",!$?.assertOnly);Y.write(Q===null?"return true;":`return ${Q};`);let U=["INVALID",...X.constants.keys()],F=[J$,...X.constants.values()],W=Y.content.join(`
`),K=$?.debug?U.length>0?`// Constants: ${U.join(", ")}
${W}`:W:"",q=Function,G=`return (input) => {
${W}
}`,Z;try{Z=new q(...U,G)(...F)}catch(H){throw new ED(`this schema (generated code failed to evaluate: ${H.message})`)}if($?.debug)Z.code=K;return Z.definite=X.definite,Z}function ZD(D,$){for(let[X,Y]of D.constants)if(Y===$)return X;let J=`c${D.constantCounter++}`;return D.constants.set(J,$),J}function u4(D,$){return D.definite=!1,ZD(D,$)}function KD(D){return`v${D.varCounter++}`}function Z7D(D,$){let J=D._zod.run({value:$,issues:[]},{});if(J&&typeof J.then==="function")return J$;let X=J;return X.issues.length===0?X.value:J$}function i0(D,$,J,X,Y=!0){let Q=D.content.length,U=$.constants.size,F=$.constantCounter,W=$.varCounter;try{return J0(D,$,J,X,Y)}catch(K){if(!(K instanceof ED)||!K.islandable)throw K;if(D.content.length=Q,$.constants.size>U){let q=Array.from($.constants.keys()).slice(U);for(let G of q)$.constants.delete(G)}return $.constantCounter=F,$.varCounter=W,z7D(D,$,J,X)}}function z7D(D,$,J,X){$.definite=!1;let Y=ZD($,J),Q=ZD($,Z7D),U=KD($);return D.write(`const ${U} = ${Q}(${Y}, ${X});`),D.write(`if (${U} === INVALID) return INVALID;`),U}function I7D(D,$,J,X){let Y=J._zod.def.checks;if(!Y||Y.length===0)return X;let Q=X;for(let U of Y){let F=U._zod.def;if(F.when&&!H7D.has(F.check))throw new ED('check with a custom "when" condition');switch(F.check){case"greater_than":B7D(D,$,F,Q);break;case"less_than":O7D(D,$,F,Q);break;case"multiple_of":N7D(D,$,F,Q);break;case"number_format":E_(D,F,Q);break;case"min_length":{let W=k4(F.minimum,"min_length"),K=NH(D,$,Q,`${Q}.length >= ${W} && ${Q}.length < ${F.minimum*2}`);D.write(`if (${K} < ${W}) return INVALID;`);break}case"max_length":{let W=k4(F.maximum,"max_length"),K=NH(D,$,Q,`${Q}.length > ${W}`);D.write(`if (${K} > ${W}) return INVALID;`);break}case"length_equals":{let W=k4(F.length,"length_equals"),K=NH(D,$,Q,`${Q}.length >= ${W} && ${Q}.length <= ${F.length*2}`);D.write(`if (${K} !== ${W}) return INVALID;`);break}case"min_size":D.write(`if (${Q}.size < ${k4(F.minimum,"min_size")}) return INVALID;`);break;case"max_size":D.write(`if (${Q}.size > ${k4(F.maximum,"max_size")}) return INVALID;`);break;case"size_equals":D.write(`if (${Q}.size !== ${k4(F.size,"size_equals")}) return INVALID;`);break;case"string_format":Q=T_(D,$,F,Q);break;case"custom":Q=M7D(D,$,U,Q);break;case"bigint_format":V7D(D,F,Q);break;case"mime_type":w7D(D,$,F,Q);break;case"property":L7D(D,$,F,Q);break;case"properties":j7D(D,$,F,Q);break;case"overwrite":{let W=KD($);R7D(D,$,U,Q,W),Q=W;break}default:throw new ED(`check type ${F.check}`)}}return Q}function NH(D,$,J,X){let Y=ZD($,T4),Q=KD($);return D.write(`const ${Q} = typeof ${J} === "string" && ${X} ? ${Y}(${J}) : ${J}.length;`),Q}function k4(D,$){if(typeof D!=="number"||!Number.isFinite(D))throw new ED(`${$} bound of type ${typeof D}`);return`${D}`}function v_(D,$){if(typeof $==="bigint")return`${$}n`;if(typeof $==="number"){if(Number.isNaN($))throw new ED("comparison check with NaN bound");return`${$}`}if($ instanceof Date){if(Number.isNaN($.getTime()))throw new ED("comparison check with Invalid Date bound");return ZD(D,$)}throw new ED(`comparison check bound of type ${typeof $}`)}function B7D(D,$,J,X){let Y=J.inclusive?"<":"<=";D.write(`if (${X} ${Y} ${v_($,J.value)}) return INVALID;`)}function O7D(D,$,J,X){let Y=J.inclusive?">":">=";D.write(`if (${X} ${Y} ${v_($,J.value)}) return INVALID;`)}function N7D(D,$,J,X){if(typeof J.value==="bigint"){if(J.value===BigInt(0))throw new ED("multiple_of check with a zero divisor");D.write(`if (${X} % ${J.value}n !== 0n) return INVALID;`)}else{let Y=ZD($,c5);D.write(`if (${Y}(${X}, ${k4(J.value,"multiple_of")}) !== 0) return INVALID;`)}}function E_(D,$,J){let X=$.format;switch(X){case"safeint":D.write(`if (!Number.isSafeInteger(${J})) return INVALID;`);break;case"int32":D.write(`if (!Number.isInteger(${J}) || ${J} < -2147483648 || ${J} > 2147483647) return INVALID;`);break;case"uint32":D.write(`if (!Number.isInteger(${J}) || ${J} < 0 || ${J} > 4294967295) return INVALID;`);break;case"float32":D.write(`if (!Number.isFinite(${J}) || ${J} < -3.4028234663852886e38 || ${J} > 3.4028234663852886e38) return INVALID;`);break;case"float64":D.write(`if (!Number.isFinite(${J})) return INVALID;`);break;default:throw new ED(`number format ${X}`)}}function V7D(D,$,J){let X=$.format;if(!X)return;switch(X){case"int64":D.write(`if (${J} < -9223372036854775808n || ${J} > 9223372036854775807n) return INVALID;`);break;case"uint64":D.write(`if (${J} < 0n || ${J} > 18446744073709551615n) return INVALID;`);break;default:throw new ED(`bigint format ${X}`)}}function w7D(D,$,J,X){let Y=J.mime;if(Y&&Y.length>0){let Q=ZD($,new Set(Y));D.write(`if (!${Q}.has(${X}.type)) return INVALID;`)}}function j7D(D,$,J,X){if(J.when)throw new ED('check with a custom "when" condition');D.write(`if (${X} == null) return INVALID;`);let Y=J.shape;for(let Q of Reflect.ownKeys(Y)){let U=typeof Q==="symbol"?ZD($,Q):D$(Q),F=KD($);D.write(`const ${F} = ${X}[${U}];`),i0(D,$,Y[Q],F,!1)}}function L7D(D,$,J,X){let Y=`${X}[${JSON.stringify(J.property)}]`;J0(D,$,J.schema,Y)}function R7D(D,$,J,X,Y){let Q=J._zod.def.tx;if(!Q)throw new ED("overwrite check without a transform function");if(g4(Q))throw new N6("z.compile: async overwrite transforms are not supported");let U=ZD($,Q);D.write(`const ${Y} = ${U}(${X});`)}function VH(){throw new M$}function LH(D){this.issues.push(D)}function M7D(D,$,J,X){let Y=J._zod.def;if(Y.fn){if(g4(Y.fn))throw new N6("z.compile: async .refine() predicates are not supported");let Q=u4($,Y.fn),U=ZD($,VH),F=KD($);return D.write(`const ${F} = ${Q}(${X});`),D.write(`if (${F} instanceof Promise) ${U}();`),D.write(`if (!${F}) return INVALID;`),X}if(J._zod.check){if(g4(J._zod.check))throw new N6("z.compile: async .superRefine() / check functions are not supported");let Q=J._zod.check,F=u4($,(K)=>{let q={value:K,issues:[],addIssue:LH};if(Q(q)instanceof Promise)VH();return q.issues.length===0?q.value:J$}),W=KD($);return D.write(`const ${W} = ${F}(${X});`),D.write(`if (${W} === INVALID) return INVALID;`),W}throw new ED("custom check without a predicate or check function")}function T_(D,$,J,X,Y=!0){let Q=J.format;if(Q==="base64"){let K=ZD($,q7);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="base64url"){let K=ZD($,KY);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="jwt"){let K=ZD($,ZY),q=ZD($,J.alg??null);return D.write(`if (!${K}(${X}, ${q})) return INVALID;`),X}if(Q==="ipv6"){let K=ZD($,K7);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="cidrv6"){let K=ZD($,FY);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="credit_card"){let K=ZD($,qY);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(Q==="iban"){let K=ZD($,GY);return D.write(`if (!${K}(${X})) return INVALID;`),X}let U=J;if(Q==="url"||Q==="httpurl"||U.normalize||U.hostname!==void 0||U.protocol!==void 0){let K=ZD($,YY),q=ZD($,J),G=KD($),Z=KD($);if(D.write(`const ${G} = ${X}.trim();`),D.write(`const ${Z} = ${K}(${G}, ${q});`),D.write(`if (typeof ${Z} === "number") return INVALID;`),U.hostname!==void 0){let I=ZD($,QY);D.write(`if (!${I}(${Z}, ${q}.hostname)) return INVALID;`)}if(U.protocol!==void 0){let I=ZD($,UY);D.write(`if (!${I}(${Z}, ${q}.protocol)) return INVALID;`)}if(!Y)return null;let H=KD($),z=U.normalize?`${Z}.href`:`${ZD($,W7)}(${G})`;return D.write(`const ${H} = ${z};`),H}let F=J.fn;if(F){if(g4(F))throw new ED(`async string format ${Q}`);let K=ZD($,F);return D.write(`if (!${K}(${X})) return INVALID;`),X}if(A7D.has(Q)&&J.pattern){let K=ZD($,J.pattern);return D.write(`${K}.lastIndex = 0;`),D.write(`if (!${K}.test(${X})) return INVALID;`),X}let W=J.format;switch(W){case"regex":throw new ED("regex format without a pattern");case"lowercase":D.write(`if (${X} !== ${X}.toLowerCase()) return INVALID;`);break;case"uppercase":D.write(`if (${X} !== ${X}.toUpperCase()) return INVALID;`);break;case"includes":D.write(`if (!${X}.includes(${D$(J.includes)})) return INVALID;`);break;case"starts_with":{let K=J.prefix;D.write(`if (${X}.slice(0, ${K.length}) !== ${D$(K)}) return INVALID;`);break}case"ends_with":{let K=J.suffix;D.write(`if (${X}.slice(-${K.length}) !== ${D$(K)}) return INVALID;`);break}default:throw new ED(`string format ${W}`)}return X}function J0(D,$,J,X,Y=!0){let Q=J._zod.def,U=Q.type;if(Q.coerce)throw new ED(`coercion (z.coerce.${U}())`);let F=Y||!!Q.checks?.length,W;switch(U){case"string":W=v7D(D,$,J,X,F);break;case"number":W=E7D(D,J,X);break;case"boolean":W=T7D(D,X);break;case"bigint":W=P7D(D,J,X);break;case"symbol":W=b7D(D,X);break;case"undefined":W=S7D(D,X);break;case"null":W=C7D(D,X);break;case"any":case"unknown":W=X;break;case"never":D.write("return INVALID;"),W=X;break;case"void":W=k7D(D,X);break;case"nan":W=_7D(D,X);break;case"date":W=u7D(D,X);break;case"object":W=g7D(D,$,J,X,F);break;case"optional":W=x7D(D,$,J,X,F);break;case"nullable":W=h7D(D,$,J,X,F);break;case"array":W=m7D(D,$,J,X,F);break;case"literal":W=l7D(D,$,J,X);break;case"enum":W=d7D(D,$,J,X);break;case"readonly":{let K=R_(D,$,J,X),q=KD($);D.write(`const ${q} = Object.freeze(${K});`),W=q;break}case"success":R_(D,$,J,X),W="true";break;case"default":case"prefault":W=i7D(D,$,J,X);break;case"nonoptional":W=c7D(D,$,J,X);break;case"tuple":W=p7D(D,$,J,X);break;case"union":W=n7D(D,$,J,X);break;case"intersection":W=o7D(D,$,J,X);break;case"record":W=a7D(D,$,J,X);break;case"map":W=e7D(D,$,J,X);break;case"set":W=D3D(D,$,J,X);break;case"file":W=$3D(D,X);break;case"template_literal":W=J3D(D,$,J,X);break;case"lazy":W=X3D(D,$,J,X);break;case"pipe":W=Y3D(D,$,J,X);break;case"custom":W=Q3D(D,$,J,X);break;case"transform":W=W3D(D,$,J,X);break;case"catch":W=F3D(D,$,J,X);break;default:throw new ED(`schema type ${U}`)}if(W===null)return null;return I7D(D,$,J,W)}function v7D(D,$,J,X,Y=!0){D.write(`if (typeof ${X} !== "string") return INVALID;`);let Q=J._zod.def;if(Q.format===void 0)return X;return T_(D,$,Q,X,Y)}function E7D(D,$,J){D.write(`if (typeof ${J} !== "number" || !Number.isFinite(${J})) return INVALID;`);let X=$._zod.def;if(X.check==="number_format"&&X.format)E_(D,{format:X.format},J);return J}function T7D(D,$){return D.write(`if (typeof ${$} !== "boolean") return INVALID;`),$}function P7D(D,$,J){D.write(`if (typeof ${J} !== "bigint") return INVALID;`);let X=$._zod.def;if(X.format)switch(X.format){case"int64":D.write(`if (${J} < -9223372036854775808n || ${J} > 9223372036854775807n) return INVALID;`);break;case"uint64":D.write(`if (${J} < 0n || ${J} > 18446744073709551615n) return INVALID;`);break}return J}function b7D(D,$){return D.write(`if (typeof ${$} !== "symbol") return INVALID;`),$}function S7D(D,$){return D.write(`if (${$} !== undefined) return INVALID;`),$}function C7D(D,$){return D.write(`if (${$} !== null) return INVALID;`),$}function k7D(D,$){return D.write(`if (${$} !== undefined) return INVALID;`),$}function _7D(D,$){return D.write(`if (typeof ${$} !== "number" || !Number.isNaN(${$})) return INVALID;`),$}function u7D(D,$){return D.write(`if (!(${$} instanceof Date) || Number.isNaN(${$}.getTime())) return INVALID;`),$}function g7D(D,$,J,X,Y=!0){let Q=J._zod.def;D.write(`if (typeof ${X} !== "object" || ${X} === null || Array.isArray(${X})) return INVALID;`);let U=Q.shape,F=Object.keys(U),W=Object.getOwnPropertySymbols(U),K=W.length?[...F,...W]:F,q=(V)=>typeof V==="symbol"?ZD($,V):D$(V),G=(V)=>typeof V==="symbol"?`[${q(V)}]`:D$(V),Z=U;if(F.includes("__proto__"))throw new ED('object shape key "__proto__"');let H=new Map;for(let V of K){let O=Z[V],j=q(V),v=KD($);if(D.write(`const ${v} = ${X}[${j}];`),O._zod.optin!==void 0){let A=KD($);if(D.write(`let ${A} = (() => {`),D.indented((k)=>{let u=i0(k,$,O,v);k.write(`return ${u};`)}),D.write("})();"),O._zod.optout==="optional")D.write(`if (${A} === INVALID) {`),D.indented((k)=>{k.write(`if (${j} in ${X}) return INVALID;`),k.write(`${A} = undefined;`)}),D.write("}");else D.write(`if (${A} === INVALID) return INVALID;`);H.set(V,A)}else{if(y7D(O))D.write(`if (!(${j} in ${X})) return INVALID;`);let A=i0(D,$,O,v,Y);if(A!==null)H.set(V,A)}}let z=Q.catchall,I="none";if(z){let V=z._zod.def.type;if(V==="never"){let O=F.map((j)=>`k !== ${D$(j)}`).join(" && ")||"true";D.write(`for (const k in ${X}) {`),D.indented((j)=>{j.write(`if (${O}) return INVALID;`)}),D.write("}")}else if((V==="unknown"||V==="any")&&!z._zod.def.checks?.length)I="passthrough";else I="schema"}let B=KD($),N=K.some((V)=>L_(Z[V])||wH(Z[V]));if(!Y){if(I==="schema"){let V=F.length>0?ZD($,new Set(F)):null;D.write(`for (const k in ${X}) {`),D.indented((O)=>{if(O.write('if (k === "__proto__") continue;'),V)O.write(`if (${V}.has(k)) continue;`);let j=KD($);O.write(`const ${j} = ${X}[k];`),i0(O,$,z,j,!1)}),D.write("}")}return null}if(!N){let V=K.map((O)=>`${G(O)}: ${H.get(O)}`).join(", ");D.write(`const ${B} = { ${V} };`)}else{D.write(`const ${B} = {};`);for(let V of K){let O=q(V),j=H.get(V);if(wH(Z[V]))D.write(`if (${O} in ${X}) ${B}[${O}] = ${j};`);else if(L_(Z[V]))D.write(`if (${j} !== undefined || ${O} in ${X}) ${B}[${O}] = ${j};`);else D.write(`${B}[${O}] = ${j};`)}}if(I!=="none"){let V=F.length>0?ZD($,new Set(F)):null;D.write(`for (const k in ${X}) {`),D.indented((O)=>{if(O.write('if (k === "__proto__") continue;'),V)O.write(`if (${V}.has(k)) continue;`);if(I==="passthrough")O.write(`${B}[k] = ${X}[k];`);else{let j=KD($);O.write(`const ${j} = ${X}[k];`);let v=i0(O,$,z,j);O.write(`${B}[k] = ${v};`)}}),D.write("}")}return B}function x7D(D,$,J,X,Y=!0){let Q=J._zod.def;if(f7D(J))return J0(D,$,Q.innerType,X,Y);if(Q.innerType._zod.optin==="defaulted"){let F=KD($),W=KD($);return D.write(`let ${F};`),D.write(`if (${X} === undefined) {`),D.indented((K)=>{K.write(`const ${W} = (() => {`),K.indented((q)=>{let G=J0(q,$,Q.innerType,X);q.write(`return ${G};`)}),K.write("})();"),K.write(`if (${W} !== INVALID) ${F} = ${W};`)}),D.write("} else {"),D.indented((K)=>{let q=J0(K,$,Q.innerType,X);K.write(`${F} = ${q};`)}),D.write("}"),F}let U=Y?KD($):null;if(U)D.write(`let ${U};`);return D.write(`if (${X} !== undefined) {`),D.indented((F)=>{let W=J0(F,$,Q.innerType,X,Y);if(U&&W!==null)F.write(`${U} = ${W};`)}),D.write("}"),U}function f7D(D){return D._zod.traits?.has("$ZodExactOptional")===!0}function y7D(D){return D._zod.optin===void 0&&_4(D)}function _4(D){if(D._zod.def.coerce)return!0;let $=D._zod.def;switch($.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return $.innerType?_4($.innerType):!1;case"literal":return!!$.values?.includes(void 0);case"enum":return!!D._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return $.innerType?_4($.innerType):!0;case"catch":return!0;case"union":return $.options?$.options.some(_4):!0;case"intersection":if(!$.left||!$.right)return!0;return _4($.left)&&_4($.right);case"pipe":return $.in?_4($.in):!0;default:return!0}}function wH(D){return D._zod.optin==="optional"&&D._zod.optout==="optional"}function L_(D){return(D._zod.optin!=="defaulted"||D._zod.optout==="optional")&&_2(D)}function _2(D){let $=D._zod.def;switch($.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!$.values?.includes(void 0);case"enum":return!!D._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return $.innerType?_2($.innerType):!0;case"union":return $.options?$.options.some(_2):!0;case"intersection":return!$.left||!$.right||_2($.left)||_2($.right);case"pipe":return $.out?_2($.out):!0;default:return!0}}function h7D(D,$,J,X,Y=!0){let Q=J._zod.def,U=Y?KD($):null;if(U)D.write(`let ${U} = null;`);return D.write(`if (${X} !== null) {`),D.indented((F)=>{let W=J0(F,$,Q.innerType,X,Y);if(U&&W!==null)F.write(`${U} = ${W};`)}),D.write("}"),U}function m7D(D,$,J,X,Y=!0){let Q=J._zod.def;D.write(`if (!Array.isArray(${X})) return INVALID;`);let U=Y?KD($):null,F=KD($),W=KD($);if(U)D.write(`const ${U} = new Array(${X}.length);`);return D.write(`for (let ${F} = 0; ${F} < ${X}.length; ${F}++) {`),D.indented((K)=>{K.write(`const ${W} = ${X}[${F}];`);let q=i0(K,$,Q.element,W,Y);if(U&&q!==null)K.write(`${U}[${F}] = ${q};`)}),D.write("}"),U}function l7D(D,$,J,X){let Q=J._zod.def.values;if(Q.length!==1){let F=ZD($,new Set(Q));return D.write(`if (!${F}.has(${X})) return INVALID;`),X}let U=Q[0];if(typeof U==="number"&&Number.isNaN(U)){let F=ZD($,new Set(Q));return D.write(`if (!${F}.has(${X})) return INVALID;`),X}if(typeof U==="string")D.write(`if (${X} !== ${D$(U)}) return INVALID;`);else if(typeof U==="number"||typeof U==="boolean")D.write(`if (${X} !== ${U}) return INVALID;`);else if(U===null)D.write(`if (${X} !== null) return INVALID;`);else if(U===void 0)D.write(`if (${X} !== undefined) return INVALID;`);else if(typeof U==="bigint")D.write(`if (${X} !== ${U}n) return INVALID;`);else throw new ED(`literal type ${typeof U}`);return X}function d7D(D,$,J,X){let Y=J._zod.values;if(!Y)throw new ED("enum schema without enumerated values");let Q=ZD($,Y);return D.write(`if (!${Q}.has(${X})) return INVALID;`),X}function R_(D,$,J,X){let Y=J._zod.def;return J0(D,$,Y.innerType,X)}function i7D(D,$,J,X){let Y=J._zod.def,U=Object.getOwnPropertyDescriptor(J._zod.def,"defaultValue")?()=>J._zod.def.defaultValue:void 0;if(J._zod.def.type==="prefault"){if(!U)return J0(D,$,Y.innerType,X);let W=ZD($,U),K=KD($);return D.write(`let ${K} = ${X};`),D.write(`if (${X} === undefined) ${K} = ${W}();`),J0(D,$,Y.innerType,K)}let F=KD($);if(U){let W=ZD($,U),K=ZD($,p5);D.write(`let ${F};`),D.write(`if (${X} === undefined) {`),D.indented((q)=>{q.write(`${F} = ${K}(${W}());`)}),D.write("} else {"),D.indented((q)=>{let G=J0(q,$,Y.innerType,X);q.write(`${F} = ${G} === undefined ? ${K}(${W}()) : ${G};`)}),D.write("}")}else D.write(`let ${F};`),D.write(`if (${X} !== undefined) {`),D.indented((W)=>{let K=J0(W,$,Y.innerType,X);W.write(`${F} = ${K};`)}),D.write("}");return F}function c7D(D,$,J,X){let Y=J._zod.def,Q=J0(D,$,Y.innerType,X),U=KD($);return D.write(`const ${U} = ${Q};`),D.write(`if (${U} === undefined) return INVALID;`),U}function p7D(D,$,J,X){let Y=J._zod.def,Q=Y.items,U=Y.rest;D.write(`if (!Array.isArray(${X})) return INVALID;`);let F=M_(Q,"optin"),W=M_(Q,"optout");if(U)D.write(`if (${X}.length < ${F}) return INVALID;`);else D.write(`if (${X}.length < ${F} || ${X}.length > ${Q.length}) return INVALID;`);let K=KD($);D.write(`const ${K} = [];`);for(let q=0;q<Q.length;q++){let G=Q[q];if(q>=W)D.write(`if (${K}.length === ${q}) {`),D.indented((Z)=>{Z.write(`if (${q} < ${X}.length) {`),Z.indented((H)=>{let z=KD($);H.write(`const ${z} = ${X}[${q}];`);let I=i0(H,$,G,z);H.write(`${K}[${q}] = ${I};`)}),Z.write("} else {"),Z.indented((H)=>{if(wH(G)){H.write(`${K}.length = ${q};`);return}let z=KD($),I=KD($);H.write(`const ${z} = undefined;`),H.write(`const ${I} = (() => {`),H.indented((B)=>{let N=i0(B,$,G,z);B.write(`return ${N};`)}),H.write("})();"),H.write(`if (${I} === INVALID || ${I} === undefined) ${K}.length = ${q};`),H.write(`else ${K}[${q}] = ${I};`)}),Z.write("}")}),D.write("}");else{let Z=KD($);D.write(`const ${Z} = ${X}[${q}];`);let H=i0(D,$,G,Z);D.write(`${K}[${q}] = ${H};`)}}if(U){let q=KD($),G=KD($);D.write(`for (let ${q} = ${Q.length}; ${q} < ${X}.length; ${q}++) {`),D.indented((Z)=>{Z.write(`const ${G} = ${X}[${q}];`);let H=i0(Z,$,U,G);Z.write(`${K}[${q}] = ${H};`)}),D.write("}")}return K}function M_(D,$){for(let J=D.length-1;J>=0;J--)if(!($==="optin"?D[J]._zod.optin!==void 0:D[J]._zod.optout==="optional"))return J+1;return 0}function n7D(D,$,J,X){let Y=J._zod.def,Q=Y.options;if(Y.discriminator)return r7D(D,$,Y,X);if(Y.inclusive===!1)throw new ED("exclusive unions (z.xor)");if(Q.length===0)return D.write("return INVALID;"),X;if(Q.length===1)return J0(D,$,Q[0],X);if(Q.every((W)=>W._zod.def.type==="literal"&&!W._zod.def.checks?.length)){let W=new Set(Q.flatMap((q)=>q._zod.def.values)),K=ZD($,W);return D.write(`if (!${K}.has(${X})) return INVALID;`),X}let F=KD($);D.write(`let ${F};`);for(let W=0;W<Q.length;W++){let K=Q[W];if(W===0)D.write(`${F} = (() => {`);else D.write(`if (${F} === INVALID) ${F} = (() => {`);D.indented((q)=>{let G=J0(q,$,K,X);q.write(`return ${G};`)}),D.write("})();")}return D.write(`if (${F} === INVALID) return INVALID;`),F}function r7D(D,$,J,X){if(J.unionFallback)throw new ED("discriminated union with unionFallback");if(J.options.length===0)return D.write("return INVALID;"),X;let Y=KD($),Q=KD($);D.write(`const ${Y} = ${X}?.[${D$(J.discriminator)}];`),D.write(`let ${Q};`);let U=!0,F=new Set;for(let W of J.options){let K=W._zod.propValues?.[J.discriminator];if(!K||K.size===0)throw new ED("discriminated union option without static discriminator values");for(let Z of K){if(F.has(Z))throw new ED(`duplicate discriminator value ${String(Z)}`);F.add(Z)}let q=Array.from(K,(Z)=>t7D($,Y,Z)),G=U?"if":"else if";D.write(`${G} (${q.join(" || ")}) {`),D.indented((Z)=>{let H=J0(Z,$,W,X);Z.write(`${Q} = ${H};`)}),D.write("}"),U=!1}return D.write("else { return INVALID; }"),Q}function t7D(D,$,J){if(typeof J==="string")return`${$} === ${D$(J)}`;if(typeof J==="number"){if(Number.isNaN(J))return`Number.isNaN(${$})`;return`${$} === ${J}`}if(typeof J==="boolean")return`${$} === ${J}`;if(J===null)return`${$} === null`;if(J===void 0)return`${$} === undefined`;if(typeof J==="bigint")return`${$} === ${J}n`;if(typeof J==="symbol"){let X=ZD(D,J);return`${$} === ${X}`}throw new ED(`literal discriminator value ${String(J)}`)}function o7D(D,$,J,X){let Y=J._zod.def;$.definite=!1;let Q=i0(D,$,Y.left,X),U=i0(D,$,Y.right,X),F=ZD($,b2),W=KD($);return D.write(`const ${W} = ${F}(${Q}, ${U});`),D.write(`if (!${W}.valid) return INVALID;`),`${W}.data`}function a7D(D,$,J,X){let Y=J._zod.def,Q=ZD($,l$);D.write(`if (!${Q}(${X})) return INVALID;`);let U=KD($),F=KD($),W=KD($);D.write(`const ${U} = {};`);let K=Y,q=K.partial?void 0:Y.keyType._zod.values;if(q){let H=[];for(let I of q){if(!(typeof I==="string"||typeof I==="number"||typeof I==="symbol"))throw new ED(`record key value ${String(I)}`);let B=typeof I==="number"?I.toString():I;if(B==="__proto__")throw new ED('record key "__proto__"');H.push(B);let N=ZD($,I),V=J0(D,$,Y.keyType,N),O=KD($);D.write(`const ${O} = ${X}[${s7D($,B)}];`);let j=i0(D,$,Y.valueType,O);D.write(`${U}[${V}] = ${j};`)}let z=ZD($,new Set(H));return D.write(`for (const ${F} in ${X}) {`),D.indented((I)=>{if(I.write(`if (${z}.has(${F})) continue;`),K.mode==="loose")I.write(`if (${F} !== "__proto__") ${U}[${F}] = ${X}[${F}];`);else I.write("return INVALID;")}),D.write("}"),U}let G=Y.keyType._zod.def;if(!(G.type==="string"&&G.format===void 0&&!G.coerce&&(G.checks?.length??0)===0)){let H=Y.mode==="loose",z=AY(Y.keyType);if(z.definite===!1)$.definite=!1;let I=ZD($,z),B=ZD($,O6),N=KD($);return A_(D,$,X,F,(V)=>{if(V.write(`let ${N} = ${I}(${F});`),V.write(`if (${N} === INVALID && typeof ${F} === "string" && ${B}.test(${F})) ${N} = ${I}(Number(${F}));`),H)V.write(`if (${N} === INVALID) { ${U}[${F}] = ${X}[${F}]; continue; }`);else V.write(`if (${N} === INVALID) return INVALID;`);V.write(`if (${N} === "__proto__") continue;`);let O=KD($);V.write(`const ${O} = ${X}[${F}];`);let j=i0(V,$,Y.valueType,O);V.write(`${U}[${N}] = ${j};`)}),U}return A_(D,$,X,F,(H)=>{H.write(`const ${W} = ${X}[${F}];`);let z=i0(H,$,Y.valueType,W);H.write(`${U}[${F}] = ${z};`)},"return INVALID;"),U}function A_(D,$,J,X,Y,Q){let U=ZD($,Object.prototype.propertyIsEnumerable),F=KD($),W=KD($),K=KD($);D.write(`const ${F} = Object.getOwnPropertySymbols(${J});`),D.write(`const ${W} = Object.getOwnPropertyNames(${J});`),D.write(`for (let ${K} = 0; ${K} < ${W}.length; ${K}++) {`),D.indented((q)=>{q.write(`const ${X} = ${W}[${K}];`),q.write(`if (${X} === "__proto__" || !${U}.call(${J}, ${X})) continue;`),Y(q)}),D.write("}"),D.write(`for (let ${K} = 0; ${K} < ${F}.length; ${K}++) {`),D.indented((q)=>{if(q.write(`const ${X} = ${F}[${K}];`),q.write(`if (!${U}.call(${J}, ${X})) continue;`),Q)q.write(Q);else Y(q)}),D.write("}")}function s7D(D,$){if(typeof $==="string")return D$($);return ZD(D,$)}function e7D(D,$,J,X){let Y=J._zod.def;D.write(`if (!(${X} instanceof Map)) return INVALID;`);let Q=KD($),U=KD($),F=KD($);return D.write(`const ${Q} = new Map();`),D.write(`for (const [${U}, ${F}] of ${X}) {`),D.indented((W)=>{let K=J0(W,$,Y.keyType,U),q=J0(W,$,Y.valueType,F);W.write(`${Q}.set(${K}, ${q});`)}),D.write("}"),Q}function D3D(D,$,J,X){let Y=J._zod.def;D.write(`if (!(${X} instanceof Set)) return INVALID;`);let Q=KD($),U=KD($);return D.write(`const ${Q} = new Set();`),D.write(`for (const ${U} of ${X}) {`),D.indented((F)=>{let W=J0(F,$,Y.valueType,U);F.write(`${Q}.add(${W});`)}),D.write("}"),Q}function $3D(D,$){return D.write(`if (!(${$} instanceof File)) return INVALID;`),$}function J3D(D,$,J,X){D.write(`if (typeof ${X} !== "string") return INVALID;`);let Y=J._zod.pattern;if(Y){let Q=ZD($,Y);D.write(`${Q}.lastIndex = 0;`),D.write(`if (!${Q}.test(${X})) return INVALID;`)}return X}function X3D(D,$,J,X){let Y=J._zod.def,Q=u4($,Y.getter),U=ZD($,{parser:null});D.write(`if (!${U}.parser) {`),D.indented((W)=>{W.write(`const inner = ${Q}();`),W.write(`${U}.parser = function(input) {`),W.indented((K)=>{K.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),K.write("return result.issues.length === 0 ? result.value : INVALID;")}),W.write("};")}),D.write("}");let F=KD($);return D.write(`const ${F} = ${U}.parser(${X});`),D.write(`if (${F} === INVALID) return INVALID;`),F}function Y3D(D,$,J,X){let Y=J._zod.def,Q=J0(D,$,Y.in,X);if(Y.transform){if(g4(Y.transform))throw new N6("z.compile: async transforms in pipes are not supported");let U=Y.transform,W=u4($,(q)=>{let G={value:q,issues:[],addIssue:LH},Z=U(q,G);if(Z instanceof Promise)return J$;return G.issues.length===0?Z:J$}),K=KD($);return D.write(`const ${K} = ${W}(${Q});`),D.write(`if (${K} === INVALID) return INVALID;`),J0(D,$,Y.out,K)}else return J0(D,$,Y.out,Q)}function g4(D){return typeof D==="function"&&(D.constructor.name==="AsyncFunction"||D[Symbol.toStringTag]==="AsyncFunction")}function Q3D(D,$,J,X){let Y=J._zod.def;if(Y.fn){if(g4(Y.fn))throw new N6("z.compile: async custom predicates are not supported");let Q=u4($,Y.fn),U=ZD($,VH),F=KD($);D.write(`const ${F} = ${Q}(${X});`),D.write(`if (${F} instanceof Promise) ${U}();`),D.write(`if (!${F}) return INVALID;`)}else throw new ED("custom schema without a predicate function");return X}function U3D(D,$,J){let X=D._zod.run({value:J,issues:[]},{});if(X&&typeof X.then==="function")return J$;let Y=X;if(Y.issues.length===0)return Y.value;return $()}function F3D(D,$,J,X){let Y=J._zod.def;if(!Y.catchValue[_X])throw new ED("catch with a callback (only a constant catch value compiles)",!1);let Q=KD($);D.write(`let ${Q} = (() => {`),D.indented((K)=>{let q=i0(K,$,Y.innerType,X);K.write(`return ${q};`)}),D.write("})();");let U=ZD($,Y.innerType),F=u4($,Y.catchValue),W=ZD($,U3D);return D.write(`if (${Q} === INVALID) {`),D.indented((K)=>{K.write(`${Q} = ${W}(${U}, ${F}, ${X});`),K.write(`if (${Q} === INVALID) return INVALID;`)}),D.write("}"),Q}function W3D(D,$,J,X){let Y=J._zod.def;if(Y.transform){if(g4(Y.transform))throw new N6("z.compile: async transforms are not supported");let Q=Y.transform,F=u4($,(K)=>{let q={value:K,issues:[],addIssue:LH},G=Q(K,q);if(G instanceof Promise)return J$;return q.issues.length===0?G:J$}),W=KD($);return D.write(`const ${W} = ${F}(${X});`),D.write(`if (${W} === INVALID) return INVALID;`),W}return X}var J$,j_,N6,ED,H7D,A7D;var P_=C(()=>{j1();Yz();S4();S2();e();J$=Symbol.for("zod.compile.invalid"),j_=Symbol.for("zod.compile.fallback");N6=class N6 extends Error{constructor(D="z.compile does not support async refinements, transforms, or checks"){super(D);this.name="ZodCompileAsyncError"}};ED=class ED extends Error{constructor(D,$=!0){super(`z.compile does not support ${D}; this schema must use the runtime parser`);this.name="ZodCompileUnsupportedError",this.islandable=$}};H7D=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);A7D=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function vY(D){if(D.checks)D.checks=[...D.checks];return D}function RH(D,$){return new D(vY({type:"string",...n($)}))}function MH(D,$){return new D(vY({type:"string",coerce:!0,...n($)}))}function EY(D,$){return new D({type:"string",format:"email",check:"string_format",abort:!1,...n($)})}function TY(D,$){return new D({type:"string",format:"guid",check:"string_format",abort:!1,...n($)})}function PY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,...n($)})}function bY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...n($)})}function SY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...n($)})}function CY(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...n($)})}function A7(D,$){return new D({type:"string",format:"url",check:"string_format",abort:!1,...n($)})}function kY(D,$){return new D({type:"string",format:"emoji",check:"string_format",abort:!1,...n($)})}function _Y(D,$){return new D({type:"string",format:"nanoid",check:"string_format",abort:!1,...n($)})}function uY(D,$){return new D({type:"string",format:"cuid",check:"string_format",abort:!1,...n($)})}function gY(D,$){return new D({type:"string",format:"cuid2",check:"string_format",abort:!1,...n($)})}function xY(D,$){return new D({type:"string",format:"ulid",check:"string_format",abort:!1,...n($)})}function fY(D,$){return new D({type:"string",format:"xid",check:"string_format",abort:!1,...n($)})}function yY(D,$){return new D({type:"string",format:"ksuid",check:"string_format",abort:!1,...n($)})}function hY(D,$){return new D({type:"string",format:"ipv4",check:"string_format",abort:!1,...n($)})}function mY(D,$){return new D({type:"string",format:"ipv6",check:"string_format",abort:!1,...n($)})}function AH(D,$){return new D({type:"string",format:"mac",check:"string_format",abort:!1,...n($)})}function lY(D,$){return new D({type:"string",format:"cidrv4",check:"string_format",abort:!1,...n($)})}function dY(D,$){return new D({type:"string",format:"cidrv6",check:"string_format",abort:!1,...n($)})}function iY(D,$){return new D({type:"string",format:"base64",check:"string_format",abort:!1,...n($)})}function cY(D,$){return new D({type:"string",format:"base64url",check:"string_format",abort:!1,...n($)})}function pY(D,$){return new D({type:"string",format:"e164",check:"string_format",abort:!1,...n($)})}function vH(D,$){return new D({type:"string",format:"credit_card",check:"string_format",abort:!1,...n($)})}function EH(D,$){return new D({type:"string",format:"iban",check:"string_format",abort:!1,...n($)})}function nY(D,$){return new D({type:"string",format:"jwt",check:"string_format",abort:!1,...n($)})}function v7(D,$){return new D({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...n($)})}function E7(D,$){return new D({type:"string",format:"date",check:"string_format",...n($)})}function T7(D,$){return new D({type:"string",format:"time",check:"string_format",precision:null,...n($)})}function P7(D,$){return new D({type:"string",format:"duration",check:"string_format",...n($)})}function PH(D,$){return new D(vY({type:"number",checks:[],...n($)}))}function bH(D,$){return new D(vY({type:"number",coerce:!0,checks:[],...n($)}))}function SH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"safeint",...n($)})}function CH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float32",...n($)})}function kH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float64",...n($)})}function _H(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"int32",...n($)})}function uH(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"uint32",...n($)})}function gH(D,$){return new D({type:"boolean",...n($)})}function xH(D,$){return new D({type:"boolean",coerce:!0,...n($)})}function fH(D,$){return new D({type:"bigint",...n($)})}function yH(D,$){return new D({type:"bigint",coerce:!0,...n($)})}function hH(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...n($)})}function mH(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...n($)})}function lH(D,$){return new D({type:"symbol",...n($)})}function dH(D,$){return new D({type:"undefined",...n($)})}function iH(D,$){return new D({type:"null",...n($)})}function cH(D){return new D({type:"any"})}function pH(D){return new D({type:"unknown"})}function nH(D,$){return new D({type:"never",...n($)})}function rH(D,$){return new D({type:"void",...n($)})}function tH(D,$){return new D({type:"date",...n($)})}function oH(D,$){return new D({type:"date",coerce:!0,...n($)})}function aH(D,$){return new D({type:"nan",...n($)})}function V6(D,$){return new oX({check:"less_than",...n($),value:D,inclusive:!1})}function A$(D,$){return new oX({check:"less_than",...n($),value:D,inclusive:!0})}function w6(D,$){return new aX({check:"greater_than",...n($),value:D,inclusive:!1})}function v$(D,$){return new aX({check:"greater_than",...n($),value:D,inclusive:!0})}function rY(D){return w6(0,D)}function tY(D){return V6(0,D)}function oY(D){return A$(0,D)}function aY(D){return v$(0,D)}function L1(D,$){return new jG({check:"multiple_of",...n($),value:D})}function R1(D,$){return new MG({check:"max_size",...n($),maximum:D})}function j6(D,$){return new AG({check:"min_size",...n($),minimum:D})}function x4(D,$){return new vG({check:"size_equals",...n($),size:D})}function f4(D,$){return new EG({check:"max_length",...n($),maximum:D})}function x6(D,$){return new TG({check:"min_length",...n($),minimum:D})}function y4(D,$){return new PG({check:"length_equals",...n($),length:D})}function u2(D,$){return new bG({check:"string_format",format:"regex",...n($),pattern:D})}function g2(D){return new SG({check:"string_format",format:"lowercase",...n(D)})}function x2(D){return new CG({check:"string_format",format:"uppercase",...n(D)})}function f2(D,$){return new kG({check:"string_format",format:"includes",...n($),includes:D})}function y2(D,$){return new _G({check:"string_format",format:"starts_with",...n($),prefix:D})}function h2(D,$){return new uG({check:"string_format",format:"ends_with",...n($),suffix:D})}function sY(D,$,J){return new gG({check:"property",property:D,schema:$,...n(J)})}function m2(D,$){return new xG({check:"properties",shape:D,...n($)})}function l2(D,$){return new fG({check:"mime_type",mime:D,...n($)})}function J6(D){return new yG({check:"overwrite",tx:D})}function d2(D){return J6(($)=>$.normalize(D))}function i2(){return J6((D)=>D.trim())}function c2(){return J6((D)=>D.toLowerCase())}function p2(){return J6((D)=>D.toUpperCase())}function n2(){return J6((D)=>jq(D))}function sH(D,$,J){return new D({type:"array",element:$,...n(J)})}function K3D(D,$,J){return new D({type:"union",options:$,...n(J)})}function q3D(D,$,J){return new D({type:"union",options:$,inclusive:!1,...n(J)})}function G3D(D,$,J,X){return new D({type:"union",options:J,discriminator:$,...n(X)})}function Z3D(D,$,J){return new D({type:"intersection",left:$,right:J})}function z3D(D,$,J,X){let Y=J instanceof zD;return new D({type:"tuple",items:$,rest:Y?J:null,...n(Y?X:J)})}function H3D(D,$,J,X){return new D({type:"record",keyType:$,valueType:J,...n(X)})}function I3D(D,$,J,X){return new D({type:"map",keyType:$,valueType:J,...n(X)})}function B3D(D,$,J){return new D({type:"set",valueType:$,...n(J)})}function O3D(D,$,J){let X=Array.isArray($)?Object.fromEntries($.map((Y)=>[Y,Y])):$;return new D({type:"enum",entries:X,...n(J)})}function N3D(D,$,J){return new D({type:"enum",entries:$,...n(J)})}function V3D(D,$,J){return new D({type:"literal",values:Array.isArray($)?$:[$],...n(J)})}function eH(D,$){return new D({type:"file",...n($)})}function w3D(D,$){return new D({type:"transform",transform:$})}function j3D(D,$){return new D({type:"optional",innerType:$})}function L3D(D,$){return new D({type:"nullable",innerType:$})}function R3D(D,$,J){return new D({type:"default",innerType:$,get defaultValue(){return typeof J==="function"?J():p5(J)}})}function M3D(D,$,J){return new D({type:"nonoptional",innerType:$,...n(J)})}function A3D(D,$){return new D({type:"success",innerType:$})}function v3D(D,$,J){return new D({type:"catch",innerType:$,catchValue:typeof J==="function"?J:Eq(J)})}function E3D(D,$,J){return new D({type:"pipe",in:$,out:J})}function T3D(D,$){return new D({type:"readonly",innerType:$})}function P3D(D,$,J){return new D({type:"template_literal",parts:$,...n(J)})}function b3D(D,$){return new D({type:"lazy",getter:$})}function S3D(D,$){return new D({type:"promise",innerType:$})}function DI(D,$,J){let X=n(J);return X.abort??(X.abort=!0),new D({type:"custom",check:"custom",fn:$,...X})}function $I(D,$,J){return new D({type:"custom",check:"custom",fn:$,...n(J)})}function JI(D,$){let J=b_((X)=>{return X.addIssue=(Y)=>{if(typeof Y==="string")X.issues.push(R2(Y,X.value,J._zod.def));else{let Q=Y;if(Q.fatal)Q.continue=!1;if(Q.code??(Q.code="custom"),!("input"in Q))Q.input=X.value;Q.inst??(Q.inst=J),Q.continue??(Q.continue=!J._zod.def.abort),X.issues.push(R2(Q))}},D(X.value,X)},$);return J}function b_(D,$){let J=new nD({check:"custom",...n($)});return J._zod.check=D,J}function XI(D){let $=new nD({check:"describe"});return $._zod.onattach=[(J)=>{let X=_0.get(J)??{};_0.add(J,{...X,description:D})}],$._zod.check=()=>{},$}function YI(D){let $=new nD({check:"meta"});return $._zod.onattach=[(J)=>{let X=_0.get(J)??{};_0.add(J,{...X,...D})}],$._zod.check=()=>{},$}function QI(D,$){let J=n($),X=J.truthy??["true","1","yes","on","y","enabled"],Y=J.falsy??["false","0","no","off","n","disabled"];if(J.case!=="sensitive")X=X.map((H)=>typeof H==="string"?H.toLowerCase():H),Y=Y.map((H)=>typeof H==="string"?H.toLowerCase():H);let Q=new Set(X),U=new Set(Y),F=D.Codec??H7,W=D.Boolean??Z7,q=new(D.String??C4)({type:"string",error:J.error}),G=new W({type:"boolean",error:J.error}),Z=new F({type:"pipe",in:q,out:G,transform:(H,z)=>{let I=H;if(J.case!=="sensitive")I=I.toLowerCase();if(Q.has(I))return!0;else if(U.has(I))return!1;else return z.issues.push({code:"invalid_value",expected:"stringbool",values:[...Q,...U],input:z.value,inst:Z,continue:!1}),{}},reverseTransform:(H,z)=>{if(H===!0)return X[0]||"true";else return Y[0]||"false"},error:J.error});return Z._zod.bag.truthy=X,Z._zod.bag.falsy=Y,Z._zod.bag.case=J.case??"insensitive",Z}function h4(D,$,J,X={}){let Y=n(X),Q={check:"string_format",type:"string",format:$,fn:typeof J==="function"?J:(F)=>J.test(F),...Y};if(J instanceof RegExp)Q.pattern=J;return new D(Q)}var TH;var S_=C(()=>{sX();M7();S2();e();TH={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function b7(D,...$){for(let J of $)for(let X of Reflect.ownKeys(J))if(Object.prototype.propertyIsEnumerable.call(J,X))k0(D,X,J[X]);return D}function M1(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";return{processors:D.processors??{},metadataRegistry:D?.metadata??_0,target:$,unrepresentable:D?.unrepresentable??"throw",override:D?.override??(()=>{}),io:D?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:D?.cycles??"ref",reused:D?.reused??"inline",intersections:[],deferred:[],external:D?.external??void 0}}function L0(D,$,J,X,Y){let Q=typeof $.unrepresentable==="function"?$.unrepresentable({zodSchema:D,path:X.path,message:Y}):$.unrepresentable;if(Q==="any")return!1;if(Q===void 0||Q==="throw")throw Error(Y);return Object.assign(J,Q),!0}function hD(D,$,J={path:[],schemaPath:[]}){var X;let Y=D._zod.def,Q=$.seen.get(D);if(Q){if(Q.count++,J.schemaPath.includes(D))Q.cycle=J.path;return Q.schema}let U={schema:{},count:1,cycle:void 0,path:J.path};$.seen.set(D,U),$.sharedDefsExtractedFor=void 0,$.sharedEmitDoneFor=void 0;let F=D._zod.toJSONSchema?.();if(F)U.schema=F;else{let q={...J,schemaPath:[...J.schemaPath,D],path:J.path};if(D._zod.processJSONSchema)D._zod.processJSONSchema($,U.schema,q);else{let Z=U.schema,H=$.processors[Y.type];if(!H)throw Error(`[toJSONSchema]: Non-representable type encountered: ${Y.type}`);H(D,$,Z,q)}let G=D._zod.parent;if(G){if(!U.ref)U.ref=G;hD(G,$,q),$.seen.get(G).isParent=!0}}let W=$.metadataRegistry.get(D);if(W)b7(U.schema,W);if($.io==="input"&&X$(D))delete U.schema.examples,delete U.schema.default;if($.io==="input"&&"_prefault"in U.schema)(X=U.schema).default??(X.default=U.schema._prefault);return delete U.schema._prefault,$.seen.get(D).schema}function C_(D){return D.replace(/~/g,"~0").replace(/\//g,"~1")}function A1(D,$){let J=D.seen.get($);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");if(D.external&&D.sharedDefsExtractedFor===D.external)return;let X=new Map;for(let U of D.seen.entries()){let F=D.metadataRegistry.get(U[0])?.id;if(F){let W=X.get(F);if(W&&W!==U[0])throw Error(`Duplicate schema id "${F}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);X.set(F,U[0])}}let Y=(U)=>{let F=D.target==="draft-2020-12"?"$defs":"definitions";if(D.external){let G=D.external.registry.get(U[0])?.id,Z=D.external.uri??((z)=>z);if(G)return{ref:Z(G)};let H=U[1].defId??U[1].schema.id??`schema${D.counter++}`;return U[1].defId=H,{defId:H,ref:`${Z("__shared")}#/${F}/${C_(H)}`}}let W="#",K=`${W}/${F}/`;if(U[1]===J&&!U[1].schema.id)return{ref:W};let q=U[1].schema.id??`__schema${D.counter++}`;return{defId:q,ref:K+C_(q)}},Q=(U)=>{if(U[1].schema.$ref)return;let F=U[1],{ref:W,defId:K}=Y(U);if(F.def={...F.schema},K)F.defId=K;let q=F.schema;for(let G in q)delete q[G];q.$ref=W};if(D.cycles==="throw")for(let U of D.seen.entries()){let F=U[1];if(F.cycle)throw Error(`Cycle detected: #/${F.cycle?.join("/")}/<root>
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let U of D.seen.entries()){let F=U[1];if($===U[0]){Q(U);continue}if(D.external){let K=D.external.registry.get(U[0])?.id;if($!==U[0]&&K){Q(U);continue}}if(D.metadataRegistry.get(U[0])?.id){Q(U);continue}if(F.cycle){Q(U);continue}if(F.count>1){if(D.reused==="ref")Q(U)}}if(D.external)D.sharedDefsExtractedFor=D.external}function u_(D){let $=D.anyOf;if(!Array.isArray($)||$.length===0||D.type!==void 0)return;let J=[];for(let X of $){if(!X||typeof X!=="object")return;u_(X);let Y=Object.keys(X);if(Y.length!==1||Y[0]!=="type")return;let Q=X.type;for(let U of Array.isArray(Q)?Q:[Q]){if(typeof U!=="string")return;if(!J.includes(U))J.push(U)}}delete D.anyOf,D.type=J.length===1?J[0]:J}function __(D){let $=D.additionalProperties;if($===void 0||$===!1||typeof $!=="object"||$===null)return null;return Object.keys($).length?$:null}function UI(D){let $=[];for(let Q of D){if(typeof Q!=="object"||Q.type!=="object")return null;for(let U in Q)if(!g_.has(U))return null;$.push(Q)}let J={},X=new Set;for(let Q of $){for(let U in Q.properties){if(Object.prototype.hasOwnProperty.call(J,U))continue;let F=[];for(let K of $){let q=K.properties?.[U]??__(K);if(q===null||q===void 0)continue;if(!F.some((G)=>JSON.stringify(G)===JSON.stringify(q)))F.push(q)}let W=F.length===1?F[0]:UI(F)??{allOf:F};k0(J,U,W)}for(let U of Q.required??[])X.add(U)}let Y={type:"object",properties:J};if(X.size)Y.required=[...X];if($.every((Q)=>Q.additionalProperties===!1))Y.additionalProperties=!1;else{let Q=[];for(let U of $){let F=__(U);if(F&&!Q.some((W)=>JSON.stringify(W)===JSON.stringify(F)))Q.push(F)}if(Q.length===1)Y.additionalProperties=Q[0];else if(Q.length>1)Y.additionalProperties={allOf:Q}}return Y}function C3D(D){let $=D.allOf;if(!Array.isArray($)||$.length<2)return;for(let Y of g_)if(Y in D)return;let J=$.filter((Y)=>k_.some((Q)=>Array.isArray(Y[Q]))),X=null;if(!J.length)X=UI($);else{let Y=J[0],Q=k_.find((W)=>Array.isArray(Y[W]));if(Object.keys(Y).length!==1)return;let U=$.filter((W)=>W!==Y),F=Y[Q].map((W)=>UI([...U,W]));if(F.some((W)=>!W))return;X={[Q]:F}}if(!X)return;delete D.allOf,b7(D,X)}function v1(D,$){let J=D.seen.get($);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");let X=(F)=>{let W=D.seen.get(F);if(W.ref===null)return;let K=W.def??W.schema,q={...K},G=W.ref;if(W.ref=null,G){X(G);let H=D.seen.get(G),z=H.schema;if(z.$ref&&(D.target==="draft-07"||D.target==="draft-04"||D.target==="openapi-3.0"))K.allOf=K.allOf??[],K.allOf.push(z);else b7(K,z);if(b7(K,q),F._zod.parent===G)for(let B in K){if(B==="$ref"||B==="allOf")continue;if(!(B in q))delete K[B]}if(z.$ref&&H.def)for(let B in K){if(B==="$ref"||B==="allOf")continue;if(B in H.def&&JSON.stringify(K[B])===JSON.stringify(H.def[B]))delete K[B]}}let Z=F._zod.parent;if(Z&&Z!==G){X(Z);let H=D.seen.get(Z);if(H?.schema.$ref){if(K.$ref=H.schema.$ref,H.def)for(let z in K){if(z==="$ref"||z==="allOf")continue;if(z in H.def&&JSON.stringify(K[z])===JSON.stringify(H.def[z]))delete K[z]}}}D.override({zodSchema:F,jsonSchema:K,path:W.path??[]})};if(!D.external||D.sharedEmitDoneFor!==D.external){for(let F of[...D.seen.entries()].reverse())X(F[0]);if(D.target!=="openapi-3.0")for(let F of D.seen.entries())u_(F[1].def??F[1].schema);for(let F of D.deferred)F();if(D.intersections.length){let F=new Map;for(let W of D.seen.values())for(let K of[W.schema,W.def]){let q=K?.allOf;if(!Array.isArray(q))continue;let G=F.get(q);if(G)G.push(K);else F.set(q,[K])}for(let W of D.intersections)for(let K of F.get(W)??[])C3D(K)}}let Y={};if(D.target==="draft-2020-12")Y.$schema="https://json-schema.org/draft/2020-12/schema";else if(D.target==="draft-07")Y.$schema="http://json-schema.org/draft-07/schema#";else if(D.target==="draft-04")Y.$schema="http://json-schema.org/draft-04/schema#";else if(D.target==="openapi-3.0");if(D.external?.uri){let F=D.external.registry.get($)?.id;if(!F)throw Error("Schema is missing an `id` property");Y.$id=D.external.uri(F)}b7(Y,J.defId?J.schema:J.def??J.schema);let Q=D.metadataRegistry.get($)?.id;if(Q!==void 0&&Y.id===Q)delete Y.id;let U=D.external?.defs??{};if(!D.external||D.sharedEmitDoneFor!==D.external)for(let F of D.seen.entries()){let W=F[1];if(W.def&&W.defId){if(W.def.id===W.defId)delete W.def.id;k0(U,W.defId,W.def)}}if(D.external)D.sharedEmitDoneFor=D.external;if(D.external);else if(Object.keys(U).length>0)if(D.target==="draft-2020-12")Y.$defs=U;else Y.definitions=U;try{let F=JSON.parse(JSON.stringify(Y));return Object.defineProperty(F,"~standard",{value:{...$["~standard"],jsonSchema:{input:r2($,"input",D.processors),output:r2($,"output",D.processors)}},enumerable:!1,writable:!1}),F}catch(F){throw Error("Error converting schema to JSON.")}}function X$(D,$){let J=$??{seen:new Set};if(J.seen.has(D))return!1;J.seen.add(D);let X=D._zod.def;if(X.type==="transform")return!0;if(X.type==="array")return X$(X.element,J);if(X.type==="set")return X$(X.valueType,J);if(X.type==="lazy")return X$(X.getter(),J);if(X.type==="promise"||X.type==="optional"||X.type==="nonoptional"||X.type==="nullable"||X.type==="readonly"||X.type==="default"||X.type==="prefault"||X.type==="catch")return X$(X.innerType,J);if(X.type==="intersection")return X$(X.left,J)||X$(X.right,J);if(X.type==="record"||X.type==="map")return X$(X.keyType,J)||X$(X.valueType,J);if(X.type==="pipe"){if(D._zod.traits.has("$ZodCodec"))return!0;return X$(X.in,J)||X$(X.out,J)}if(X.type==="object"){for(let Y in X.shape)if(X$(X.shape[Y],J))return!0;return!1}if(X.type==="union"){for(let Y of X.options)if(X$(Y,J))return!0;return!1}if(X.type==="tuple"){for(let Y of X.items)if(X$(Y,J))return!0;if(X.rest&&X$(X.rest,J))return!0;return!1}return!1}var g_,k_,FI=(D,$={})=>(J)=>{let X=M1({...J,processors:$});return hD(D,X),A1(X,D),v1(X,D)},r2=(D,$,J={})=>(X)=>{let{libraryOptions:Y,target:Q}=X??{},U=M1({...Y??{},target:Q,io:$,processors:J});return hD(D,U),A1(U,D),v1(U,D)};var S7=C(()=>{M7();e();g_=new Set(["type","properties","required","additionalProperties"]),k_=["oneOf","anyOf"]});function R0(D){let $={},J=D._zod.def,X=D._zod.traits.has("$ZodCheck")?[D,...J.checks??[]]:J.checks??[];for(let Q of X)k3D[Q._zod.def.check]?.($,Q._zod.def);let Y=D._zod.bag;if(Y.minimum!==void 0)t2($,"minimum",Y.minimum);if(Y.exclusiveMinimum!==void 0)t2($,"exclusiveMinimum",Y.exclusiveMinimum);if(Y.maximum!==void 0)o2($,"maximum",Y.maximum);if(Y.exclusiveMaximum!==void 0)o2($,"exclusiveMaximum",Y.exclusiveMaximum);if(Y.multipleOf!==void 0)m_($,Y.multipleOf);if(Y.format!==void 0){if($.format??($.format=Y.format),Y.format.includes("int"))$.isInt=!0}if(Y.mime)d_($,Y.mime);for(let Q of Y.patterns??[])l_($,Q);return $}function C7(D){let $=D._zod.def;if($.type==="pipe"&&$.in._zod.traits.has("$ZodTransform"))return C7($.out);if($.type==="catch")return C7($.innerType);return D._zod.optin}function WI(D,$,J){if($.$ref){if(J.has($))return $;J.add($);let z=D.get($)?.def;if(!z)return $;let I=WI(D,z,J);return I===z?$:I}for(let z of["anyOf","oneOf"]){let I=$[z];if(!Array.isArray(I))continue;let B=I.map((N)=>WI(D,N,J));if(B.some((N,V)=>N!==I[V]))$={...$,[z]:B}}let X=Array.isArray($.type)?$.type:[$.type],Y=!X.includes("string")&&X.some((z)=>z==="number"||z==="integer"),Q=$.enum??($.const!==void 0?[$.const]:void 0);if(!Y&&!Q?.some((z)=>typeof z==="number"))return $;let{minimum:U,maximum:F,exclusiveMinimum:W,exclusiveMaximum:K,multipleOf:q,format:G,id:Z,...H}=$;if(H.enum)H.enum=H.enum.map((z)=>typeof z==="number"?String(z):z);else if(typeof H.const==="number")H.const=String(H.const);if(!Y)return H;if(H.type="string",!Q)H.pattern=(X.includes("number")?O6:Y7).source;return H}function g3D(D){let $=new Map;for(let X of D.seen.values())if(X.def&&!$.has(X.schema))$.set(X.schema,X);let J=new Map;for(let X of KI.get(D)??[]){let Y=D.seen.get(X),Q=(Y?.def??Y?.schema)?.propertyNames;if(!Q||Q===!0||J.has(Q))continue;let U=WI($,Q,new Set);if(U!==Q)J.set(Q,U)}if(!J.size)return;for(let X of D.seen.values())for(let Y of[X.schema,X.def]){let Q=Y&&J.get(Y.propertyNames);if(Q)Y.propertyNames=Q}}function p_(D,$,J,X,Y){let Q=!1,U=JSON.stringify(D,(F,W)=>{if(typeof W!=="bigint")return W;return Q=!0,null});if(!Q)return JSON.parse(U);return L0($,J,X,Y,"BigInt defaults cannot be represented in JSON Schema"),hI}function JQ(D,$){if("_idmap"in D){let X=D,Y=M1({...$,processors:eY}),Q={};for(let W of X._idmap.entries()){let[K,q]=W;hD(q,Y)}let U={},F={registry:X,uri:$?.uri,defs:Q};Y.external=F;for(let W of X._idmap.entries()){let[K,q]=W;A1(Y,q),k0(U,K,v1(Y,q))}if(Object.keys(Q).length>0){let W=Y.target==="draft-2020-12"?"$defs":"definitions";U.__shared={[W]:Q}}return{schemas:U}}let J=M1({...$,processors:eY});return hD(D,J),A1(J,D),v1(J,D)}var t2=(D,$,J)=>{if(D[$]===void 0||J>D[$])D[$]=J},o2=(D,$,J)=>{if(D[$]===void 0||J<D[$])D[$]=J},x_=(D,$)=>{t2(D,"minimum",$),o2(D,"maximum",$)},m_=(D,$)=>{if(D.multipleOf??(D.multipleOf=[]),!D.multipleOf.includes($))D.multipleOf.push($)},l_=(D,$)=>{D.patterns??(D.patterns=new Set),D.patterns.add($)},d_=(D,$)=>{D.mime=D.mime?D.mime.filter((J)=>$.includes(J)):[...$]},i_=(D,$)=>{if(D.format=$,$.includes("int"))D.isInt=!0},f_=(D,$)=>t2(D,"minimum",$.minimum),y_=(D,$)=>o2(D,"maximum",$.maximum),h_=(D)=>($,J)=>{i_($,J.format);let[X,Y]=D[J.format];t2($,"minimum",X),o2($,"maximum",Y)},k3D,_3D,u3D,c_=(D)=>u3D.get(D)??D,qI=(D,$,J,X)=>{let Y=J;Y.type="string";let{minimum:Q,maximum:U,format:F,patterns:W,contentEncoding:K,laxFormat:q}=R0(D);if(typeof Q==="number")Y.minLength=Q;if(typeof U==="number")Y.maxLength=U;if(F){if(Y.format=_3D[F]??F,Y.format==="")delete Y.format;if(F==="time"||q)delete Y.format}if(K)Y.contentEncoding=K;if(W&&W.size>0){let G=[...W].map(c_);if(G.length===1)Y.pattern=G[0].source;else if(G.length>1)Y.allOf=[...G.map((Z)=>({...$.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"?{type:"string"}:{},pattern:Z.source}))]}},GI=(D,$,J,X)=>{let Y=J,{minimum:Q,maximum:U,multipleOf:F,exclusiveMaximum:W,exclusiveMinimum:K,isInt:q}=R0(D);Y.type=q?"integer":"number";let G=typeof K==="number"&&K>=(Q??Number.NEGATIVE_INFINITY),Z=typeof W==="number"&&W<=(U??Number.POSITIVE_INFINITY),H=$.target==="draft-04"||$.target==="openapi-3.0";if(G)if(H)Y.minimum=K,Y.exclusiveMinimum=!0;else Y.exclusiveMinimum=K;else if(typeof Q==="number")Y.minimum=Q;if(Z)if(H)Y.maximum=W,Y.exclusiveMaximum=!0;else Y.exclusiveMaximum=W;else if(typeof U==="number")Y.maximum=U;if(F){let z=new Set;for(let N of F)if(Number.isFinite(N)&&N!==0)z.add(Math.abs(N));else L0(D,$,Y,X,`A multipleOf divisor of ${N} cannot be represented in JSON Schema`);let[I,...B]=z;if(I!==void 0)Y.multipleOf=I;if(B.length)Y.allOf=[...Y.allOf??[],...B.map((N)=>({multipleOf:N}))]}},ZI=(D,$,J,X)=>{J.type="boolean"},zI=(D,$,J,X)=>{L0(D,$,J,X,"BigInt cannot be represented in JSON Schema")},HI=(D,$,J,X)=>{L0(D,$,J,X,"Symbols cannot be represented in JSON Schema")},II=(D,$,J,X)=>{if($.target==="openapi-3.0")J.type="string",J.nullable=!0,J.enum=[null];else J.type="null"},BI=(D,$,J,X)=>{L0(D,$,J,X,"Undefined cannot be represented in JSON Schema")},OI=(D,$,J,X)=>{L0(D,$,J,X,"Void cannot be represented in JSON Schema")},NI=(D,$,J,X)=>{J.not={}},VI=(D,$,J,X)=>{},wI=(D,$,J,X)=>{},jI=(D,$,J,X)=>{L0(D,$,J,X,"Date cannot be represented in JSON Schema")},LI=(D,$,J,X)=>{let Y=D._zod.def,Q=V2(Y.entries);if(Q.length===0){J.not={};return}if(Q.every((U)=>typeof U==="number"))J.type="number";if(Q.every((U)=>typeof U==="string"))J.type="string";J.enum=Q},RI=(D,$,J,X)=>{let Y=D._zod.def;if(Y.values.length===0){J.not={};return}let Q=[];for(let U of Y.values)if(U===void 0){if(L0(D,$,J,X,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof U==="bigint"){if(L0(D,$,J,X,"BigInt literals cannot be represented in JSON Schema"))return;Q.push(Number(U))}else Q.push(U);if(Q.length===0);else if(Q.length===1){let U=Q[0];if(J.type=U===null?"null":typeof U,$.target==="draft-04"||$.target==="openapi-3.0")J.enum=[U];else J.const=U}else{if(Q.every((U)=>typeof U==="number"))J.type="number";if(Q.every((U)=>typeof U==="string"))J.type="string";if(Q.every((U)=>typeof U==="boolean"))J.type="boolean";if(Q.every((U)=>U===null))J.type="null";J.enum=Q}},MI=(D,$,J,X)=>{L0(D,$,J,X,"NaN cannot be represented in JSON Schema")},AI=(D,$,J,X)=>{let Y=J,Q=D._zod.pattern;if(!Q)throw Error("Pattern not found in template literal");Y.type="string",Y.pattern=Q.source},vI=(D,$,J,X)=>{let Y=J;Y.type="string",Y.format="binary",Y.contentEncoding="binary";let{minimum:Q,maximum:U,mime:F}=R0(D);if(Q!==void 0)Y.minLength=Q;if(U!==void 0)Y.maxLength=U;if(!F)return;if(F.length===0)Y.not={};else if(F.length===1)Y.contentMediaType=F[0];else Y.anyOf=F.map((W)=>({contentMediaType:W}))},EI=(D,$,J,X)=>{J.type="boolean"},TI=(D,$,J,X)=>{L0(D,$,J,X,"Custom types cannot be represented in JSON Schema")},PI=(D,$,J,X)=>{L0(D,$,J,X,"Function types cannot be represented in JSON Schema")},bI=(D,$,J,X)=>{L0(D,$,J,X,"Transforms cannot be represented in JSON Schema")},SI=(D,$,J,X)=>{L0(D,$,J,X,"Map cannot be represented in JSON Schema")},CI=(D,$,J,X)=>{L0(D,$,J,X,"Set cannot be represented in JSON Schema")},kI=(D,$,J,X)=>{let Y=J,Q=D._zod.def,{minimum:U,maximum:F}=R0(D);if(typeof U==="number")Y.minItems=U;if(typeof F==="number")Y.maxItems=F;Y.type="array",Y.items=hD(Q.element,$,{...X,path:[...X.path,"items"]})},_I=(D,$,J,X)=>{let Y=J,Q=D._zod.def,U=Q.shape;if(Object.getOwnPropertySymbols(U).length&&L0(D,$,Y,X,"Symbol keys cannot be represented in JSON Schema"))return;Y.type="object",Y.properties={};for(let K in U)k0(Y.properties,K,hD(U[K],$,{...X,path:[...X.path,"properties",K]}));let W=[];for(let K of Object.keys(U)){let q=Q.shape[K];if($.io==="input"?C7(q)===void 0:q._zod.optout===void 0)W.push(K)}if(W.length>0)Y.required=W;if(Q.catchall?._zod.def.type==="never")Y.additionalProperties=!1;else if(!Q.catchall){if($.io==="output")Y.additionalProperties=!1}else if(Q.catchall)Y.additionalProperties=hD(Q.catchall,$,{...X,path:[...X.path,"additionalProperties"]})},DQ=(D,$,J,X)=>{let Y=D._zod.def,Q=Y.inclusive===!1,U=Y.options.map((F,W)=>hD(F,$,{...X,path:[...X.path,Q?"oneOf":"anyOf",W]}));if(Q)J.oneOf=U;else J.anyOf=U},uI=(D,$,J,X)=>{let Y=D._zod.def,Q=hD(Y.left,$,{...X,path:[...X.path,"allOf",0]}),U=hD(Y.right,$,{...X,path:[...X.path,"allOf",1]}),F=(K)=>("allOf"in K)&&Object.keys(K).length===1,W=[...F(Q)?Q.allOf:[Q],...F(U)?U.allOf:[U]];J.allOf=W,$.intersections.push(W)},gI=(D,$,J,X)=>{let Y=J,Q=D._zod.def;Y.type="array";let U=$.target==="draft-2020-12"?"prefixItems":"items",F=$.target==="draft-2020-12"?"items":$.target==="openapi-3.0"?"items":"additionalItems",W=Q.items.map((I,B)=>hD(I,$,{...X,path:[...X.path,U,B]})),K=Q.rest?hD(Q.rest,$,{...X,path:[...X.path,F,...$.target==="openapi-3.0"?[Q.items.length]:[]]}):null,q=Q.items.length;while(q>0){let I=Q.items[q-1];if(!($.io==="input"?C7(I)!==void 0:I._zod.optout==="optional"))break;q--}let G=Q.items.length,Z=!Q.rest;if($.target==="draft-2020-12"){if(Y.prefixItems=W,Z)Y.items=!1;else if(K)Y.items=K;if(q>0)Y.minItems=q;if(Z)Y.maxItems=G}else if($.target==="openapi-3.0"){if(Y.items={anyOf:W},K)Y.items.anyOf.push(K);if(q>0)Y.minItems=q;if(Z)Y.maxItems=G}else{if(Y.items=W,Z)Y.additionalItems=!1;else if(K)Y.additionalItems=K;if(q>0)Y.minItems=q;if(Z)Y.maxItems=G}let{minimum:H,maximum:z}=R0(D);if(typeof H==="number")Y.minItems=H;if(typeof z==="number")Y.maxItems=z},KI,xI=(D,$,J,X)=>{let Y=J,Q=D._zod.def;Y.type="object";let U=Q.keyType,F=R0(U).patterns;if(Q.mode==="loose"&&F&&F.size>0){let q=hD(Q.valueType,$,{...X,path:[...X.path,"patternProperties","*"]});Y.patternProperties={};for(let G of F)k0(Y.patternProperties,c_(G).source,q)}else{if($.target==="draft-07"||$.target==="draft-2020-12"){Y.propertyNames=hD(Q.keyType,$,{...X,path:[...X.path,"propertyNames"]});let q=KI.get($);if(!q)q=[],KI.set($,q),$.deferred.push(()=>g3D($));q.push(D)}Y.additionalProperties=hD(Q.valueType,$,{...X,path:[...X.path,"additionalProperties"]})}let W=U._zod.values,K=$.io==="input"&&C7(Q.valueType)!==void 0;if(W&&!Q.partial&&!K){let q=[...W].filter((G)=>typeof G==="string"||typeof G==="number");if(q.length>0)Y.required=q.map(String)}},fI=(D,$,J,X)=>{let Y=D._zod.def,Q=hD(Y.innerType,$,X),U=$.seen.get(D);if($.target==="openapi-3.0")U.ref=Y.innerType,J.nullable=!0;else J.anyOf=[Q,{type:"null"}]},yI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType},hI,mI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType;let U=p_(Y.defaultValue,D,$,J,X);if(U!==hI)J.default=U},lI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);if(Q.ref=Y.innerType,$.io!=="input")return;let U=p_(Y.defaultValue,D,$,J,X);if(U!==hI)J._prefault=U},dI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType;let U;try{U=Y.catchValue(void 0)}catch{L0(D,$,J,X,"Dynamic catch values are not supported in JSON Schema");return}J.default=U},iI=(D,$,J,X)=>{let Y=D._zod.def,Q=Y.in._zod.traits.has("$ZodTransform"),U=$.io==="input"?Q?Y.out:Y.in:Y.out;hD(U,$,X);let F=$.seen.get(D);F.ref=U},cI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType,J.readOnly=!0},pI=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType},$Q=(D,$,J,X)=>{let Y=D._zod.def;hD(Y.innerType,$,X);let Q=$.seen.get(D);Q.ref=Y.innerType},nI=(D,$,J,X)=>{let Y=D._zod.innerType;hD(Y,$,X);let Q=$.seen.get(D);Q.ref=Y},eY;var k7=C(()=>{S4();S2();S7();e();k3D={greater_than:(D,$)=>t2(D,$.inclusive?"minimum":"exclusiveMinimum",$.value),less_than:(D,$)=>o2(D,$.inclusive?"maximum":"exclusiveMaximum",$.value),multiple_of:(D,$)=>m_(D,$.value),number_format:h_(r5),bigint_format:h_(t5),min_length:f_,max_length:y_,length_equals:(D,$)=>x_(D,$.length),min_size:f_,max_size:y_,size_equals:(D,$)=>x_(D,$.size),string_format:(D,$)=>{if(i_(D,$.format),$.pattern)l_(D,$.pattern);if($.format==="base64"||$.format==="base64url")D.contentEncoding=$.format;if($.local||$.precision===-1)D.laxFormat=!0},mime_type:(D,$)=>d_(D,$.mime)};_3D={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u3D=new Map([[WY,$G],[G7,JG]]);KI=new WeakMap;hI=Symbol();eY={string:qI,number:GI,boolean:ZI,bigint:zI,symbol:HI,null:II,undefined:BI,void:OI,never:NI,any:VI,unknown:wI,date:jI,enum:LI,literal:RI,nan:MI,template_literal:AI,file:vI,success:EI,custom:TI,function:PI,transform:bI,map:SI,set:CI,array:kI,object:_I,union:DQ,intersection:uI,tuple:gI,record:xI,nullable:fI,nonoptional:yI,default:mI,prefault:lI,catch:dI,pipe:iI,readonly:cI,promise:pI,optional:$Q,lazy:nI}});class rI{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(D){this.ctx.counter=D}get seen(){return this.ctx.seen}constructor(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";this.ctx=M1({processors:eY,target:$,...D?.metadata&&{metadata:D.metadata},...D?.unrepresentable&&{unrepresentable:D.unrepresentable},...D?.override&&{override:D.override},...D?.io&&{io:D.io}})}process(D,$={path:[],schemaPath:[]}){return hD(D,this.ctx,$)}emit(D,$){if($){if($.cycles)this.ctx.cycles=$.cycles;if($.reused)this.ctx.reused=$.reused;if($.external)this.ctx.external=$.external}this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,A1(this.ctx,D);let J=v1(this.ctx,D),{"~standard":X,...Y}=J;return Y}}var n_=C(()=>{k7();S7()});var r_={};var t_=()=>{};var f6={};y0(f6,{withParser:()=>MY,version:()=>hG,validateURL:()=>YY,validateAsync:()=>J7,validate:()=>$7,util:()=>h,urlProtocolOk:()=>UY,urlHostnameOk:()=>QY,treeifyError:()=>_q,toZod:()=>i5,toJSONSchema:()=>JQ,toDotPath:()=>_C,stripTabAndNewline:()=>W7,standardProps:()=>XY,safeParseAsync:()=>W9D,safeParse:()=>F9D,safeEncodeAsync:()=>N9D,safeEncode:()=>B9D,safeDecodeAsync:()=>V9D,safeDecode:()=>O9D,registry:()=>RY,regexes:()=>i$,processSchema:()=>hD,process:()=>hD,prettifyError:()=>uq,parseURLObject:()=>$k,parseAsync:()=>xX,parse:()=>gX,meta:()=>YI,mergeValues:()=>b2,memoizer:()=>N7,locales:()=>R7,isValidJWT:()=>ZY,isValidIPv6:()=>K7,isValidIBAN:()=>GY,isValidCreditCard:()=>qY,isValidCIDRv6:()=>FY,isValidBase64URL:()=>KY,isValidBase64:()=>q7,isRecursiveSchema:()=>jY,isBackEdge:()=>LY,initializeContext:()=>M1,handleUnrepresentable:()=>L0,globalRegistry:()=>_0,globalConfig:()=>E0,getDiscriminatedOption:()=>SZ,formatError:()=>D7,flattenError:()=>e5,finalize:()=>v1,extractDefs:()=>A1,encodeAsync:()=>H9D,encode:()=>Z9D,describe:()=>XI,decodeAsync:()=>I9D,decode:()=>z9D,createToJSONSchemaMethod:()=>FI,createStandardJSONSchemaMethod:()=>r2,config:()=>Z0,compileFn:()=>AY,compile:()=>jH,clone:()=>fD,canParseURL:()=>nG,base64urlCharset:()=>G7,base64Charset:()=>WY,_xor:()=>q3D,_xid:()=>fY,_void:()=>rH,_uuidv7:()=>CY,_uuidv6:()=>SY,_uuidv4:()=>bY,_uuid:()=>PY,_url:()=>A7,_uppercase:()=>x2,_unknown:()=>pH,_union:()=>K3D,_undefined:()=>dH,_ulid:()=>xY,_uint64:()=>mH,_uint32:()=>uH,_tuple:()=>z3D,_trim:()=>i2,_transform:()=>w3D,_toUpperCase:()=>p2,_toLowerCase:()=>c2,_templateLiteral:()=>P3D,_symbol:()=>lH,_superRefine:()=>JI,_success:()=>A3D,_stringbool:()=>QI,_stringFormat:()=>h4,_string:()=>RH,_startsWith:()=>y2,_slugify:()=>n2,_size:()=>x4,_set:()=>B3D,_safeParseAsync:()=>E2,_safeParse:()=>v2,_safeEncodeAsync:()=>iX,_safeEncode:()=>lX,_safeDecodeAsync:()=>cX,_safeDecode:()=>dX,_regex:()=>u2,_refine:()=>$I,_record:()=>H3D,_readonly:()=>T3D,_property:()=>sY,_properties:()=>m2,_promise:()=>S3D,_positive:()=>rY,_pipe:()=>E3D,_parseAsync:()=>A2,_parse:()=>M2,_overwrite:()=>J6,_optional:()=>j3D,_number:()=>PH,_nullable:()=>L3D,_null:()=>iH,_normalize:()=>d2,_nonpositive:()=>oY,_nonoptional:()=>M3D,_nonnegative:()=>aY,_never:()=>nH,_negative:()=>tY,_nativeEnum:()=>N3D,_nanoid:()=>_Y,_nan:()=>aH,_multipleOf:()=>L1,_minSize:()=>j6,_minLength:()=>x6,_min:()=>v$,_mime:()=>l2,_maxSize:()=>R1,_maxLength:()=>f4,_max:()=>A$,_map:()=>I3D,_mac:()=>AH,_lte:()=>A$,_lt:()=>V6,_lowercase:()=>g2,_literal:()=>V3D,_length:()=>y4,_lazy:()=>b3D,_ksuid:()=>yY,_jwt:()=>nY,_isoTime:()=>T7,_isoDuration:()=>P7,_isoDateTime:()=>v7,_isoDate:()=>E7,_ipv6:()=>mY,_ipv4:()=>hY,_intersection:()=>Z3D,_int64:()=>hH,_int32:()=>_H,_int:()=>SH,_includes:()=>f2,_iban:()=>EH,_guid:()=>TY,_gte:()=>v$,_gt:()=>w6,_float64:()=>kH,_float32:()=>CH,_file:()=>eH,_enum:()=>O3D,_endsWith:()=>h2,_encodeAsync:()=>hX,_encode:()=>fX,_emoji:()=>kY,_email:()=>EY,_e164:()=>pY,_discriminatedUnion:()=>G3D,_default:()=>R3D,_decodeAsync:()=>mX,_decode:()=>yX,_date:()=>tH,_custom:()=>DI,_cuid2:()=>gY,_cuid:()=>uY,_creditCard:()=>vH,_coercedString:()=>MH,_coercedNumber:()=>bH,_coercedDate:()=>oH,_coercedBoolean:()=>xH,_coercedBigint:()=>yH,_cidrv6:()=>dY,_cidrv4:()=>lY,_check:()=>b_,_catch:()=>v3D,_boolean:()=>gH,_bigint:()=>fH,_base64url:()=>cY,_base64:()=>iY,_array:()=>sH,_any:()=>cH,ZodCompileUnsupportedError:()=>ED,ZodCompileAsyncError:()=>N6,URL_UNPARSEABLE:()=>F7,URL_BAD_FORMAT:()=>pG,TimePrecision:()=>TH,NEVER:()=>Pq,JSONSchemaGenerator:()=>rI,JSONSchema:()=>r_,INVALID:()=>J$,Doc:()=>P2,$output:()=>IH,$input:()=>BH,$constructor:()=>E,$brand:()=>bq,$ZodXor:()=>bZ,$ZodXID:()=>DZ,$ZodVoid:()=>vZ,$ZodUnknown:()=>MZ,$ZodUnion:()=>z7,$ZodUndefined:()=>jZ,$ZodUUID:()=>iG,$ZodURL:()=>rG,$ZodULID:()=>eG,$ZodType:()=>zD,$ZodTuple:()=>IY,$ZodTransform:()=>hZ,$ZodTemplateLiteral:()=>aZ,$ZodSymbol:()=>wZ,$ZodSuccess:()=>pZ,$ZodStringFormat:()=>yD,$ZodString:()=>C4,$ZodSet:()=>gZ,$ZodRegistry:()=>OH,$ZodRecord:()=>_Z,$ZodRealError:()=>B$,$ZodReadonly:()=>oZ,$ZodPromise:()=>eZ,$ZodPreprocess:()=>tZ,$ZodPrefault:()=>iZ,$ZodPipe:()=>OY,$ZodOptional:()=>BY,$ZodObjectJIT:()=>PZ,$ZodObject:()=>Yk,$ZodNumberFormat:()=>NZ,$ZodNumber:()=>zY,$ZodNullable:()=>lZ,$ZodNull:()=>LZ,$ZodNonOptional:()=>cZ,$ZodNever:()=>AZ,$ZodNanoID:()=>oG,$ZodNaN:()=>rZ,$ZodMap:()=>uZ,$ZodMAC:()=>WZ,$ZodLiteral:()=>fZ,$ZodLazy:()=>I7,$ZodKSUID:()=>$Z,$ZodJWT:()=>BZ,$ZodIntersection:()=>kZ,$ZodISOTime:()=>YZ,$ZodISODuration:()=>QZ,$ZodISODateTime:()=>JZ,$ZodISODate:()=>XZ,$ZodIPv6:()=>FZ,$ZodIPv4:()=>UZ,$ZodIBAN:()=>IZ,$ZodGUID:()=>dG,$ZodFunction:()=>sZ,$ZodFile:()=>yZ,$ZodExactOptional:()=>mZ,$ZodError:()=>kq,$ZodEnum:()=>xZ,$ZodEncodeError:()=>P4,$ZodEmoji:()=>tG,$ZodEmail:()=>cG,$ZodE164:()=>zZ,$ZodDiscriminatedUnion:()=>CZ,$ZodDefault:()=>dZ,$ZodDate:()=>EZ,$ZodCyclicError:()=>Xz,$ZodCustomStringFormat:()=>OZ,$ZodCustom:()=>Dz,$ZodCreditCard:()=>HZ,$ZodCodec:()=>H7,$ZodCheckUpperCase:()=>CG,$ZodCheckStringFormat:()=>T2,$ZodCheckStartsWith:()=>_G,$ZodCheckSizeEquals:()=>vG,$ZodCheckRegex:()=>bG,$ZodCheckProperty:()=>gG,$ZodCheckProperties:()=>xG,$ZodCheckOverwrite:()=>yG,$ZodCheckNumberFormat:()=>LG,$ZodCheckMultipleOf:()=>jG,$ZodCheckMinSize:()=>AG,$ZodCheckMinLength:()=>TG,$ZodCheckMimeType:()=>fG,$ZodCheckMaxSize:()=>MG,$ZodCheckMaxLength:()=>EG,$ZodCheckLowerCase:()=>SG,$ZodCheckLessThan:()=>oX,$ZodCheckLengthEquals:()=>PG,$ZodCheckIncludes:()=>kG,$ZodCheckGreaterThan:()=>aX,$ZodCheckEndsWith:()=>uG,$ZodCheckBigIntFormat:()=>RG,$ZodCheck:()=>nD,$ZodCatch:()=>nZ,$ZodCUID2:()=>sG,$ZodCUID:()=>aG,$ZodCIDRv6:()=>qZ,$ZodCIDRv4:()=>KZ,$ZodBoolean:()=>Z7,$ZodBigIntFormat:()=>VZ,$ZodBigInt:()=>HY,$ZodBase64URL:()=>ZZ,$ZodBase64:()=>GZ,$ZodAsyncError:()=>M$,$ZodArray:()=>TZ,$ZodAny:()=>RZ});var E$=C(()=>{e();e();S4();HH();k7();n_();t_();j1();xq();gq();S2();Yz();sX();mG();M7();P_();S_();S7()});var XQ={};y0(XQ,{uppercase:()=>x2,trim:()=>i2,toUpperCase:()=>p2,toLowerCase:()=>c2,startsWith:()=>y2,slugify:()=>n2,size:()=>x4,regex:()=>u2,property:()=>sY,properties:()=>m2,positive:()=>rY,overwrite:()=>J6,normalize:()=>d2,nonpositive:()=>oY,nonnegative:()=>aY,negative:()=>tY,multipleOf:()=>L1,minSize:()=>j6,minLength:()=>x6,mime:()=>l2,maxSize:()=>R1,maxLength:()=>f4,lte:()=>A$,lt:()=>V6,lowercase:()=>g2,length:()=>y4,includes:()=>f2,gte:()=>v$,gt:()=>w6,endsWith:()=>h2});var YQ=C(()=>{E$()});function QQ(D,$,J){Object.defineProperty(D,$,{configurable:!0,enumerable:!1,get(){let X=J(this);return Object.defineProperty(this,$,{value:X,configurable:!0,writable:!0}),X},set(X){Object.defineProperty(this,$,{value:X,configurable:!0,writable:!0})}})}var o_,a_=(D,$)=>{kq.init(D,$),D.name="ZodError";let J=Object.getPrototypeOf(D);if(o_.has(J))return;o_.add(J),QQ(J,"format",(X)=>(Y)=>D7(X,Y)),QQ(J,"flatten",(X)=>(Y)=>e5(X,Y)),QQ(J,"addIssue",(X)=>(Y)=>{X.issues.push(Y),X.message=JSON.stringify(X.issues,w2,2)}),QQ(J,"addIssues",(X)=>(Y)=>{X.issues.push(...Y),X.message=JSON.stringify(X.issues,w2,2)}),Object.defineProperty(J,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})},f3D,O$;var tI=C(()=>{E$();E$();e();o_=new WeakSet([Object.prototype,Error.prototype]);f3D=E("ZodError",a_),O$=E("ZodError",a_,void 0,{Parent:Error})});var oI,aI,sI,eI,DB,$B,JB,XB,YB,QB,UB,FB;var WB=C(()=>{E$();tI();E$();oI=M2(O$),aI=A2(O$),sI=v2(O$),eI=E2(O$),DB=fX(O$),$B=yX(O$),JB=hX(O$),XB=mX(O$),YB=lX(O$),QB=dX(O$),UB=iX(O$),FB=cX(O$)});var Y9={};y0(Y9,{xor:()=>cu,xid:()=>Gu,void:()=>yu,uuidv7:()=>Xu,uuidv6:()=>Ju,uuidv4:()=>$u,uuid:()=>Du,url:()=>Yu,unknown:()=>m4,union:()=>X9,undefined:()=>xu,ulid:()=>qu,uint64:()=>uu,uint32:()=>Cu,tuple:()=>TB,transform:()=>PQ,templateLiteral:()=>Qg,symbol:()=>gu,superRefine:()=>$O,success:()=>$g,stringbool:()=>zg,stringFormat:()=>Mu,string:()=>_7,strictObject:()=>du,set:()=>ou,refine:()=>DO,record:()=>PB,readonly:()=>rB,promise:()=>Ug,preprocess:()=>Ig,prefault:()=>hB,pipe:()=>FQ,partialRecord:()=>nu,optional:()=>l4,object:()=>lu,number:()=>ZB,nullish:()=>Dg,nullable:()=>u7,null:()=>OB,nonoptional:()=>mB,never:()=>EQ,nativeEnum:()=>au,nanoid:()=>Fu,nan:()=>Jg,meta:()=>Gg,map:()=>tu,mac:()=>Hu,looseRecord:()=>ru,looseObject:()=>iu,literal:()=>su,lazy:()=>aB,ksuid:()=>Zu,keyof:()=>mu,jwt:()=>Ru,json:()=>Hg,ipv6:()=>Iu,ipv4:()=>zu,invertCodec:()=>Yg,intersection:()=>vB,int64:()=>_u,int32:()=>Su,int:()=>UQ,instanceof:()=>Zg,iban:()=>Lu,httpUrl:()=>Qu,hostname:()=>Au,hex:()=>vu,hash:()=>Tu,guid:()=>e_,function:()=>Fg,float64:()=>bu,float32:()=>Pu,file:()=>eu,exactOptional:()=>uB,enum:()=>TQ,emoji:()=>Uu,email:()=>s_,e164:()=>wu,discriminatedUnion:()=>pu,describe:()=>qg,date:()=>hu,custom:()=>Kg,currencyCode:()=>Eu,cuid2:()=>Ku,cuid:()=>Wu,creditCard:()=>ju,codec:()=>Xg,cidrv6:()=>Ou,cidrv4:()=>Bu,check:()=>Wg,catch:()=>iB,boolean:()=>zB,bigint:()=>ku,base64url:()=>Vu,base64:()=>Nu,array:()=>f7,any:()=>fu,_function:()=>Fg,_default:()=>fB,_ZodString:()=>WQ,ZodXor:()=>RB,ZodXID:()=>BQ,ZodVoid:()=>jB,ZodUnknown:()=>VB,ZodUnion:()=>h7,ZodUndefined:()=>IB,ZodUUID:()=>L6,ZodURL:()=>g7,ZodULID:()=>IQ,ZodType:()=>VD,ZodTuple:()=>EB,ZodTransform:()=>_B,ZodTemplateLiteral:()=>tB,ZodSymbol:()=>HB,ZodSuccess:()=>lB,ZodStringFormat:()=>cD,ZodString:()=>e2,ZodSet:()=>SB,ZodRecord:()=>a2,ZodReadonly:()=>nB,ZodPromise:()=>sB,ZodPreprocess:()=>pB,ZodPrefault:()=>yB,ZodPipe:()=>l7,ZodOptional:()=>m7,ZodObject:()=>y7,ZodNumberFormat:()=>c4,ZodNumber:()=>D9,ZodNullable:()=>gB,ZodNull:()=>BB,ZodNonOptional:()=>SQ,ZodNever:()=>wB,ZodNanoID:()=>ZQ,ZodNaN:()=>cB,ZodMap:()=>bB,ZodMAC:()=>KB,ZodLiteral:()=>CB,ZodLazy:()=>oB,ZodKSUID:()=>OQ,ZodJWT:()=>AQ,ZodIntersection:()=>AB,ZodInstanceOf:()=>JO,ZodISOTime:()=>P1,ZodISODuration:()=>b1,ZodISODateTime:()=>E1,ZodISODate:()=>T1,ZodIPv6:()=>VQ,ZodIPv4:()=>NQ,ZodIBAN:()=>GB,ZodGUID:()=>qQ,ZodFunction:()=>eB,ZodFile:()=>kB,ZodExactOptional:()=>bQ,ZodEnum:()=>s2,ZodEmoji:()=>GQ,ZodEmail:()=>KQ,ZodE164:()=>MQ,ZodDiscriminatedUnion:()=>MB,ZodDefault:()=>xB,ZodDate:()=>x7,ZodCustomStringFormat:()=>i4,ZodCustom:()=>i7,ZodCreditCard:()=>qB,ZodCodec:()=>d7,ZodCatch:()=>dB,ZodCUID2:()=>HQ,ZodCUID:()=>zQ,ZodCIDRv6:()=>jQ,ZodCIDRv4:()=>wQ,ZodBoolean:()=>$9,ZodBigIntFormat:()=>vQ,ZodBigInt:()=>J9,ZodBase64URL:()=>RQ,ZodBase64:()=>LQ,ZodArray:()=>LB,ZodAny:()=>NB});function h3D(){if(!E0.localeError)Z0(V7())}function d4(){if(!E0.memoizer)Z0({memoizer:N7()})}function _7(D){return RH(e2,D)}function s_(D){return EY(KQ,D)}function e_(D){return TY(qQ,D)}function Du(D){return PY(L6,D)}function $u(D){return bY(L6,D)}function Ju(D){return SY(L6,D)}function Xu(D){return CY(L6,D)}function Yu(D){return A7(g7,D)}function Qu(D){return A7(g7,{protocol:X7,hostname:YG,...h.normalizeParams(D)})}function Uu(D){return kY(GQ,D)}function Fu(D){return _Y(ZQ,D)}function Wu(D){return uY(zQ,D)}function Ku(D){return gY(HQ,D)}function qu(D){return xY(IQ,D)}function Gu(D){return fY(BQ,D)}function Zu(D){return yY(OQ,D)}function zu(D){return hY(NQ,D)}function Hu(D){return AH(KB,D)}function Iu(D){return mY(VQ,D)}function Bu(D){return lY(wQ,D)}function Ou(D){return dY(jQ,D)}function Nu(D){return iY(LQ,D)}function Vu(D){return cY(RQ,D)}function wu(D){return pY(MQ,D)}function ju(D){return vH(qB,D)}function Lu(D){return EH(GB,D)}function Ru(D){return nY(AQ,D)}function Mu(D,$,J={}){return h4(i4,D,$,J)}function Au(D){return h4(i4,"hostname",XG,D)}function vu(D){return h4(i4,"hex",NG,D)}function Eu(D){return h4(i4,"currency_code",UG,D)}function Tu(D,$){let J=$?.enc??"hex",X=`${D}_${J}`,Y=i$[X];if(!Y)throw Error(`Unrecognized hash format: ${X}`);return h4(i4,X,Y,$)}function ZB(D){return PH(D9,D)}function UQ(D){return SH(c4,D)}function Pu(D){return CH(c4,D)}function bu(D){return kH(c4,D)}function Su(D){return _H(c4,D)}function Cu(D){return uH(c4,D)}function zB(D){return gH($9,D)}function ku(D){return fH(J9,D)}function _u(D){return hH(vQ,D)}function uu(D){return mH(vQ,D)}function gu(D){return lH(HB,D)}function xu(D){return dH(IB,D)}function OB(D){return iH(BB,D)}function fu(){return cH(NB)}function m4(){return pH(VB)}function EQ(D){return nH(wB,D)}function yu(D){return rH(jB,D)}function hu(D){return tH(x7,D)}function f7(D,$){return sH(LB,D,$)}function mu(D){let $=D._zod.def.shape;return TQ(Object.keys($))}function lu(D,$){let J={type:"object",shape:D??{},...h.normalizeParams($)};return new y7(J)}function du(D,$){return new y7({type:"object",shape:D,catchall:EQ(),...h.normalizeParams($)})}function iu(D,$){return new y7({type:"object",shape:D,catchall:m4(),...h.normalizeParams($)})}function X9(D,$){return new h7({type:"union",options:D,...h.normalizeParams($)})}function cu(D,$){return new RB({type:"union",options:D,inclusive:!1,...h.normalizeParams($)})}function pu(D,$,J){return new MB({type:"union",options:$,discriminator:D,...h.normalizeParams(J)})}function vB(D,$){return new AB({type:"intersection",left:D,right:$})}function TB(D,$,J){let X=$ instanceof zD,Y=X?J:$;return new EB({type:"tuple",items:D,rest:X?$:null,...h.normalizeParams(Y)})}function PB(D,$,J){if(!$||!$._zod)return new a2({type:"record",keyType:_7(),valueType:D,...h.normalizeParams($)});return new a2({type:"record",keyType:D,valueType:$,...h.normalizeParams(J)})}function nu(D,$,J){return new a2({type:"record",keyType:D,valueType:$,...h.normalizeParams(J),partial:!0})}function ru(D,$,J){return new a2({type:"record",keyType:D,valueType:$,mode:"loose",...h.normalizeParams(J)})}function tu(D,$,J){return new bB({type:"map",keyType:D,valueType:$,...h.normalizeParams(J)})}function ou(D,$){return new SB({type:"set",valueType:D,...h.normalizeParams($)})}function TQ(D,$){let J=Array.isArray(D)?Object.fromEntries(D.map((X)=>[X,X])):D;return new s2({type:"enum",entries:J,...h.normalizeParams($)})}function au(D,$){return new s2({type:"enum",entries:D,...h.normalizeParams($)})}function su(D,$){return new CB({type:"literal",values:Array.isArray(D)?D:[D],...h.normalizeParams($)})}function eu(D){return eH(kB,D)}function PQ(D){return new _B({type:"transform",transform:D})}function l4(D){return new m7({type:"optional",innerType:D})}function uB(D){return new bQ({type:"optional",innerType:D})}function u7(D){return new gB({type:"nullable",innerType:D})}function Dg(D){return l4(u7(D))}function fB(D,$){return new xB({type:"default",innerType:D,get defaultValue(){return typeof $==="function"?$():h.shallowClone($)}})}function hB(D,$){return new yB({type:"prefault",innerType:D,get defaultValue(){return typeof $==="function"?$():h.shallowClone($)}})}function mB(D,$){return new SQ({type:"nonoptional",innerType:D,...h.normalizeParams($)})}function $g(D){return new lB({type:"success",innerType:D})}function iB(D,$){return new dB({type:"catch",innerType:D,catchValue:typeof $==="function"?$:h.constantCatch($)})}function Jg(D){return aH(cB,D)}function FQ(D,$){return new l7({type:"pipe",in:D,out:$})}function Xg(D,$,J){return new d7({type:"pipe",in:D,out:$,transform:J.decode,reverseTransform:J.encode})}function Yg(D){let $=D._zod.def;return new d7({type:"pipe",in:$.out,out:$.in,transform:$.reverseTransform,reverseTransform:$.transform})}function rB(D){return new nB({type:"readonly",innerType:D})}function Qg(D,$){return new tB({type:"template_literal",parts:D,...h.normalizeParams($)})}function aB(D){return new oB({type:"lazy",getter:D})}function Ug(D){return new sB({type:"promise",innerType:D})}function Fg(D){return new eB({type:"function",input:Array.isArray(D?.input)?TB(D?.input):D?.input??f7(m4()),output:D?.output??m4()})}function Wg(D){let $=new nD({check:"custom"});return $._zod.check=D,$}function Kg(D,$){return DI(i7,D??(()=>!0),$)}function DO(D,$={}){return $I(i7,D,$)}function $O(D,$){return JI(D,$)}function Zg(D,$={}){let J=new JO({type:"custom",check:"custom",fn:(X)=>X instanceof D,abort:!0,...h.normalizeParams($)});return J._zod.bag.Class=D,J._zod.check=(X)=>{if(!(X.value instanceof D))X.issues.push({code:"invalid_type",expected:D.name,input:X.value,inst:J,path:[...J._zod.def.path??[]]})},J}function Hg(D){let $=aB(()=>{return X9([_7(D),ZB(),zB(),OB(),f7($),PB(_7(),$)])});return $}function Ig(D,$){return new pB({type:"pipe",in:PQ(D),out:$})}var VD,WQ,e2,cD,E1,T1,P1,b1,KQ,qQ,L6,g7,GQ,ZQ,zQ,HQ,IQ,BQ,OQ,NQ,KB,VQ,wQ,jQ,LQ,RQ,MQ,qB,GB,AQ,i4,D9,c4,$9,J9,vQ,HB,IB,BB,NB,VB,wB,jB,x7,LB,y7,h7,RB,MB,AB,EB,a2,bB,SB,s2,CB,kB,_B,m7,bQ,gB,xB,yB,SQ,lB,dB,cB,l7,d7,pB,nB,tB,oB,sB,eB,i7,qg,Gg,JO,zg=(...D)=>QI({Codec:d7,Boolean:$9,String:e2},...D);var S1=C(()=>{E$();E$();k7();S4();S7();Bz();YQ();WB();VD=E("ZodType",(D,$)=>{return h3D(),zD.init(D,$),D.def=$,D.type=$.type,D},{check(...D){let $=this.def;return this.clone(h.mergeDefs($,{checks:[...$.checks??[],...D.map((J)=>typeof J==="function"?{_zod:{check:J,def:{check:"custom"},onattach:[]}}:J)]}),{parent:!0})},with(...D){return this.check(...D)},clone(D,$){return fD(this,D,$)},brand(){return this},register(D,$){return D.add(this,$),this},refine(D,$){return this.check(DO(D,$))},superRefine(D,$){return this.check($O(D,$))},overwrite(D){return this.check(J6(D))},optional(){return l4(this)},exactOptional(){return uB(this)},nullable(){return u7(this)},nullish(){return l4(u7(this))},nonoptional(D){return mB(this,D)},array(){return f7(this)},or(D){return X9([this,D])},and(D){return vB(this,D)},transform(D){return FQ(this,PQ(D))},default(D){return fB(this,D)},prefault(D){return hB(this,D)},catch(D){return iB(this,D)},pipe(D){return FQ(this,D)},readonly(){return rB(this)},describe(D){let $=this.clone();return _0.add($,{description:D}),$},meta(...D){if(D.length===0)return _0.get(this);let $=this.clone();return _0.add($,D[0]),$},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(D,...$){return $.length===0?D(this):D(this,...$)},get "~standard"(){return h.hide(this,"~standard",{...XY(this),jsonSchema:{input:r2(this,"input"),output:r2(this,"output")}})},set "~standard"(D){h.own(this,"~standard",D)},parse:function D($,J){return oI(this,$,J,{callee:D})},parseAsync:async function D($,J){return await aI(this,$,J,{callee:D})},safeParse(D,$){return sI(this,D,$)},async safeParseAsync(D,$){return eI(this,D,$)},get spa(){return this?.safeParseAsync},set spa(D){h.own(this,"spa",D)},validate(D,$){return $7(this,D,$)},validateAsync(D,$){return J7(this,D,$)},encode:function D($,J){return DB(this,$,J,{callee:D})},decode:function D($,J){return $B(this,$,J,{callee:D})},encodeAsync:async function D($,J){return await JB(this,$,J,{callee:D})},decodeAsync:async function D($,J){return await XB(this,$,J,{callee:D})},safeEncode(D,$){return YB(this,D,$)},safeDecode(D,$){return QB(this,D,$)},async safeEncodeAsync(D,$){return UB(this,D,$)},async safeDecodeAsync(D,$){return FB(this,D,$)},toJSONSchema(D){return FI(this,{})(D)},get description(){return _0.get(this)?.description},get _def(){return this._zod.def}}),WQ=E("_ZodString",(D,$)=>{C4.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>qI(D,J,X,Y)},h.derived({format:(D)=>R0(D).format??null,minLength:(D)=>R0(D).minimum??null,maxLength:(D)=>R0(D).maximum??null},{regex(...D){return this.check(u2(...D))},includes(...D){return this.check(f2(...D))},startsWith(...D){return this.check(y2(...D))},endsWith(...D){return this.check(h2(...D))},min(...D){return this.check(x6(...D))},max(...D){return this.check(f4(...D))},length(...D){return this.check(y4(...D))},nonempty(...D){return this.check(x6(1,...D))},lowercase(D){return this.check(g2(D))},uppercase(D){return this.check(x2(D))},trim(){return this.check(i2())},normalize(...D){return this.check(d2(...D))},toLowerCase(){return this.check(c2())},toUpperCase(){return this.check(p2())},slugify(){return this.check(n2())}})),e2=E("ZodString",(D,$)=>{C4.init(D,$),WQ.init(D,$)},{email(D){return this.check(EY(KQ,D))},url(D){return this.check(A7(g7,D))},jwt(D){return this.check(nY(AQ,D))},emoji(D){return this.check(kY(GQ,D))},guid(D){return this.check(TY(qQ,D))},uuid(D){return this.check(PY(L6,D))},uuidv4(D){return this.check(bY(L6,D))},uuidv6(D){return this.check(SY(L6,D))},uuidv7(D){return this.check(CY(L6,D))},nanoid(D){return this.check(_Y(ZQ,D))},cuid(D){return this.check(uY(zQ,D))},cuid2(D){return this.check(gY(HQ,D))},ulid(D){return this.check(xY(IQ,D))},base64(D){return this.check(iY(LQ,D))},base64url(D){return this.check(cY(RQ,D))},xid(D){return this.check(fY(BQ,D))},ksuid(D){return this.check(yY(OQ,D))},ipv4(D){return this.check(hY(NQ,D))},ipv6(D){return this.check(mY(VQ,D))},cidrv4(D){return this.check(lY(wQ,D))},cidrv6(D){return this.check(dY(jQ,D))},e164(D){return this.check(pY(MQ,D))},datetime(D){return this.check(v7(E1,D))},date(D){return this.check(E7(T1,D))},time(D){return this.check(T7(P1,D))},duration(D){return this.check(P7(b1,D))}});cD=E("ZodStringFormat",(D,$)=>{yD.init(D,$),WQ.init(D,$)}),E1=E("ZodISODateTime",(D,$)=>{JZ.init(D,$),cD.init(D,$)}),T1=E("ZodISODate",(D,$)=>{XZ.init(D,$),cD.init(D,$)}),P1=E("ZodISOTime",(D,$)=>{YZ.init(D,$),cD.init(D,$)}),b1=E("ZodISODuration",(D,$)=>{QZ.init(D,$),cD.init(D,$)}),KQ=E("ZodEmail",(D,$)=>{cG.init(D,$),cD.init(D,$)});qQ=E("ZodGUID",(D,$)=>{dG.init(D,$),cD.init(D,$)});L6=E("ZodUUID",(D,$)=>{iG.init(D,$),cD.init(D,$)});g7=E("ZodURL",(D,$)=>{rG.init(D,$),cD.init(D,$)});GQ=E("ZodEmoji",(D,$)=>{tG.init(D,$),cD.init(D,$)});ZQ=E("ZodNanoID",(D,$)=>{oG.init(D,$),cD.init(D,$)});zQ=E("ZodCUID",(D,$)=>{aG.init(D,$),cD.init(D,$)});HQ=E("ZodCUID2",(D,$)=>{sG.init(D,$),cD.init(D,$)});IQ=E("ZodULID",(D,$)=>{eG.init(D,$),cD.init(D,$)});BQ=E("ZodXID",(D,$)=>{DZ.init(D,$),cD.init(D,$)});OQ=E("ZodKSUID",(D,$)=>{$Z.init(D,$),cD.init(D,$)});NQ=E("ZodIPv4",(D,$)=>{UZ.init(D,$),cD.init(D,$)});KB=E("ZodMAC",(D,$)=>{WZ.init(D,$),cD.init(D,$)});VQ=E("ZodIPv6",(D,$)=>{FZ.init(D,$),cD.init(D,$)});wQ=E("ZodCIDRv4",(D,$)=>{KZ.init(D,$),cD.init(D,$)});jQ=E("ZodCIDRv6",(D,$)=>{qZ.init(D,$),cD.init(D,$)});LQ=E("ZodBase64",(D,$)=>{GZ.init(D,$),cD.init(D,$)});RQ=E("ZodBase64URL",(D,$)=>{ZZ.init(D,$),cD.init(D,$)});MQ=E("ZodE164",(D,$)=>{zZ.init(D,$),cD.init(D,$)});qB=E("ZodCreditCard",(D,$)=>{HZ.init(D,$),cD.init(D,$)});GB=E("ZodIBAN",(D,$)=>{IZ.init(D,$),cD.init(D,$)});AQ=E("ZodJWT",(D,$)=>{BZ.init(D,$),cD.init(D,$)});i4=E("ZodCustomStringFormat",(D,$)=>{OZ.init(D,$),cD.init(D,$)});D9=E("ZodNumber",(D,$)=>{zY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>GI(D,J,X,Y),D.isFinite=!0},h.derived({minValue:(D)=>{let{minimum:$,exclusiveMinimum:J}=R0(D);return Math.max($??Number.NEGATIVE_INFINITY,J??Number.NEGATIVE_INFINITY)},maxValue:(D)=>{let{maximum:$,exclusiveMaximum:J}=R0(D);return Math.min($??Number.POSITIVE_INFINITY,J??Number.POSITIVE_INFINITY)},isInt:(D)=>{let{isInt:$,multipleOf:J}=R0(D);return!!$||!!J?.some(Number.isSafeInteger)},format:(D)=>R0(D).format??null},{gt(D,$){return this.check(w6(D,$))},gte(D,$){return this.check(v$(D,$))},min(D,$){return this.check(v$(D,$))},lt(D,$){return this.check(V6(D,$))},lte(D,$){return this.check(A$(D,$))},max(D,$){return this.check(A$(D,$))},int(D){return this.check(UQ(D))},safe(D){return this.check(UQ(D))},positive(D){return this.check(w6(0,D))},nonnegative(D){return this.check(v$(0,D))},negative(D){return this.check(V6(0,D))},nonpositive(D){return this.check(A$(0,D))},multipleOf(D,$){return this.check(L1(D,$))},step(D,$){return this.check(L1(D,$))},finite(){return this}}));c4=E("ZodNumberFormat",(D,$)=>{NZ.init(D,$),D9.init(D,$)});$9=E("ZodBoolean",(D,$)=>{Z7.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>ZI(D,J,X,Y)});J9=E("ZodBigInt",(D,$)=>{HY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>zI(D,J,X,Y)},h.derived({minValue:(D)=>R0(D).minimum??null,maxValue:(D)=>R0(D).maximum??null,format:(D)=>R0(D).format??null},{gte(D,$){return this.check(v$(D,$))},min(D,$){return this.check(v$(D,$))},gt(D,$){return this.check(w6(D,$))},lt(D,$){return this.check(V6(D,$))},lte(D,$){return this.check(A$(D,$))},max(D,$){return this.check(A$(D,$))},positive(D){return this.check(w6(BigInt(0),D))},negative(D){return this.check(V6(BigInt(0),D))},nonpositive(D){return this.check(A$(BigInt(0),D))},nonnegative(D){return this.check(v$(BigInt(0),D))},multipleOf(D,$){return this.check(L1(D,$))}}));vQ=E("ZodBigIntFormat",(D,$)=>{VZ.init(D,$),J9.init(D,$)});HB=E("ZodSymbol",(D,$)=>{wZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>HI(D,J,X,Y)});IB=E("ZodUndefined",(D,$)=>{jZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>BI(D,J,X,Y)});BB=E("ZodNull",(D,$)=>{LZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>II(D,J,X,Y)});NB=E("ZodAny",(D,$)=>{RZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>VI(D,J,X,Y)});VB=E("ZodUnknown",(D,$)=>{MZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>wI(D,J,X,Y)});wB=E("ZodNever",(D,$)=>{AZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>NI(D,J,X,Y)});jB=E("ZodVoid",(D,$)=>{vZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>OI(D,J,X,Y)});x7=E("ZodDate",(D,$)=>{EZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>jI(D,J,X,Y),D.min=(J,X)=>D.check(v$(J,X)),D.max=(J,X)=>D.check(A$(J,X))},h.derived({minDate:(D)=>{let{minimum:$}=R0(D);return $?new Date($):null},maxDate:(D)=>{let{maximum:$}=R0(D);return $?new Date($):null}},{}));LB=E("ZodArray",(D,$)=>{d4(),TZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>kI(D,J,X,Y),D.element=$.element},{min(D,$){return this.check(x6(D,$))},nonempty(D){return this.check(x6(1,D))},max(D,$){return this.check(f4(D,$))},length(D,$){return this.check(y4(D,$))},unwrap(){return this.element}});y7=E("ZodObject",(D,$)=>{d4(),PZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>_I(D,J,X,Y),h.installLazyProp(D,"shape",(J)=>J._zod.def.shape,!1)},{keyof(){return TQ(Object.keys(this._zod.def.shape))},catchall(D){return this.clone(h.mergeDefs(this._zod.def,{catchall:D}))},passthrough(){return this.clone(h.mergeDefs(this._zod.def,{catchall:m4()}))},loose(){return this.clone(h.mergeDefs(this._zod.def,{catchall:m4()}))},strict(){return this.clone(h.mergeDefs(this._zod.def,{catchall:EQ()}))},strip(){return this.clone(h.mergeDefs(this._zod.def,{catchall:void 0}))},extend(D){return h.extend(this,D)},safeExtend(D){return h.safeExtend(this,D)},merge(D){return h.merge(this,D)},pick(D){return h.pick(this,D)},omit(D){return h.omit(this,D)},partial(...D){return h.partial(m7,this,D[0])},exactPartial(...D){return h.partial(bQ,this,D[0],"exactPartial")},required(...D){return h.required(SQ,this,D[0])}});h7=E("ZodUnion",(D,$)=>{z7.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>DQ(D,J,X,Y),D.options=$.options});RB=E("ZodXor",(D,$)=>{h7.init(D,$),bZ.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>DQ(D,J,X,Y),D.options=$.options});MB=E("ZodDiscriminatedUnion",(D,$)=>{h7.init(D,$),CZ.init(D,$)});AB=E("ZodIntersection",(D,$)=>{kZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>uI(D,J,X,Y)});EB=E("ZodTuple",(D,$)=>{d4(),IY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>gI(D,J,X,Y)},{rest(D){return this.clone({...this._zod.def,rest:D})},partial(){let D=this._zod.def;if(D.checks?.length)throw Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...D,items:D.items.map(($)=>new m7({type:"optional",innerType:$}))})}});a2=E("ZodRecord",(D,$)=>{d4(),_Z.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>xI(D,J,X,Y),D.keyType=$.keyType,D.valueType=$.valueType});bB=E("ZodMap",(D,$)=>{d4(),uZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>SI(D,J,X,Y),D.keyType=$.keyType,D.valueType=$.valueType,D.min=(...J)=>D.check(j6(...J)),D.nonempty=(J)=>D.check(j6(1,J)),D.max=(...J)=>D.check(R1(...J)),D.size=(...J)=>D.check(x4(...J))});SB=E("ZodSet",(D,$)=>{d4(),gZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>CI(D,J,X,Y),D.min=(...J)=>D.check(j6(...J)),D.nonempty=(J)=>D.check(j6(1,J)),D.max=(...J)=>D.check(R1(...J)),D.size=(...J)=>D.check(x4(...J))});s2=E("ZodEnum",(D,$)=>{xZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(X,Y,Q)=>LI(D,X,Y,Q),D.enum=$.entries,D.options=[...D._zod.values];let J=new Set(Object.keys($.entries));D.extract=(X,Y)=>{let Q={};for(let U of X)if(J.has(U))Q[U]=$.entries[U];else throw Error(`Key ${U} not found in enum`);return new s2({...$,checks:[],...h.normalizeParams(Y),entries:Q})},D.exclude=(X,Y)=>{let Q={...$.entries};for(let U of X)if(J.has(U))delete Q[U];else throw Error(`Key ${U} not found in enum`);return new s2({...$,checks:[],...h.normalizeParams(Y),entries:Q})}});CB=E("ZodLiteral",(D,$)=>{fZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>RI(D,J,X,Y),D.values=new Set($.values),Object.defineProperty(D,"value",{get(){if($.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return $.values[0]}})});kB=E("ZodFile",(D,$)=>{yZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>vI(D,J,X,Y),D.min=(J,X)=>D.check(j6(J,X)),D.max=(J,X)=>D.check(R1(J,X)),D.mime=(J,X)=>D.check(l2(Array.isArray(J)?J:[J],X))});_B=E("ZodTransform",(D,$)=>{d4(),hZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>bI(D,J,X,Y),D._zod.parse=(J,X)=>{if(X.direction==="backward")throw new P4(D.constructor.name);J.addIssue=(Q)=>{if(typeof Q==="string")J.issues.push(h.issue(Q,J.value,$));else{let U=Q;if(U.fatal)U.continue=!1;if(U.code??(U.code="custom"),!("input"in U))U.input=J.value;U.inst??(U.inst=D),J.issues.push(h.issue(U))}};let Y=$.transform(J.value,J);if(Y instanceof Promise)return Y.then((Q)=>{return J.value=Q,J});return J.value=Y,J}});m7=E("ZodOptional",(D,$)=>{BY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>$Q(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});bQ=E("ZodExactOptional",(D,$)=>{mZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>$Q(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});gB=E("ZodNullable",(D,$)=>{lZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>fI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});xB=E("ZodDefault",(D,$)=>{dZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>mI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType,D.removeDefault=D.unwrap});yB=E("ZodPrefault",(D,$)=>{iZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>lI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});SQ=E("ZodNonOptional",(D,$)=>{cZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>yI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});lB=E("ZodSuccess",(D,$)=>{pZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>EI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});dB=E("ZodCatch",(D,$)=>{nZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>dI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType,D.removeCatch=D.unwrap});cB=E("ZodNaN",(D,$)=>{rZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>MI(D,J,X,Y)});l7=E("ZodPipe",(D,$)=>{OY.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>iI(D,J,X,Y),D.in=$.in,D.out=$.out});d7=E("ZodCodec",(D,$)=>{l7.init(D,$),H7.init(D,$)});pB=E("ZodPreprocess",(D,$)=>{l7.init(D,$),tZ.init(D,$)}),nB=E("ZodReadonly",(D,$)=>{oZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>cI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});tB=E("ZodTemplateLiteral",(D,$)=>{aZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>AI(D,J,X,Y)});oB=E("ZodLazy",(D,$)=>{I7.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>nI(D,J,X,Y),D.unwrap=()=>D._zod.def.getter()});sB=E("ZodPromise",(D,$)=>{eZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>pI(D,J,X,Y),D.unwrap=()=>D._zod.def.innerType});eB=E("ZodFunction",(D,$)=>{sZ.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>PI(D,J,X,Y)});i7=E("ZodCustom",(D,$)=>{Dz.init(D,$),VD.init(D,$),D._zod.processJSONSchema=(J,X,Y)=>TI(D,J,X,Y)});qg=XI,Gg=YI,JO=E("ZodInstanceOf",(D,$)=>{i7.init(D,$)},{properties(D,$){return this.check(m2(D,$))}})});function l3D(D){Z0({customError:D})}function d3D(){return Z0().customError}var m3D,XO;var Bg=C(()=>{E$();m3D={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};(function(D){})(XO||(XO={}))});var c7={};y0(c7,{time:()=>p3D,duration:()=>n3D,datetime:()=>i3D,date:()=>c3D,ZodISOTime:()=>P1,ZodISODuration:()=>b1,ZodISODateTime:()=>E1,ZodISODate:()=>T1});function i3D(D){return v7(E1,D)}function c3D(D){return E7(T1,D)}function p3D(D){return T7(P1,D)}function n3D(D){return P7(b1,D)}var CQ=C(()=>{E$();S1();S1()});function t3D(D,$){let J=D.$schema;if(J==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(J==="http://json-schema.org/draft-07/schema#")return"draft-7";if(J==="http://json-schema.org/draft-04/schema#")return"draft-4";return $??"draft-2020-12"}function Og(D,$){return D.map((J,X)=>X<$?J:J.optional())}function o3D(D){return D.replace(/~1/g,"/").replace(/~0/g,"~")}function a3D(D,$){if(!D.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let J=D.slice(1).split("/").filter(Boolean);if(J.length===0)return $.rootSchema;let X=$.version==="draft-2020-12"?"$defs":"definitions";if(J[0]===X){let Y=J[1]===void 0?void 0:o3D(J[1]);if(!Y||!$.defs[Y])throw Error(`Reference not found: ${D}`);return $.defs[Y]}throw Error(`Reference not found: ${D}`)}function s3D(D,$){return JD.transform((X)=>X).check((X)=>{let Y=X.value;if(typeof Y!=="object"||Y===null||Array.isArray(Y))return;let Q=Object.getOwnPropertyNames(Y);if($.minProperties!==void 0&&Q.length<$.minProperties)X.issues.push({origin:"object",code:"too_small",minimum:$.minProperties,inclusive:!0,message:`Too small: expected object to have >=${$.minProperties} properties`,input:Y,inst:D,continue:!0});if($.maxProperties!==void 0&&Q.length>$.maxProperties)X.issues.push({origin:"object",code:"too_big",maximum:$.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${$.maxProperties} properties`,input:Y,inst:D,continue:!0});if($.keySchema)for(let U of Q){let F=$.keySchema.safeParse(U);if(F.success)continue;X.issues.push({code:"invalid_key",origin:"record",issues:F.error.issues,input:U,path:[U],continue:!0})}}).pipe(D)}function YO(D,$){if(D===null)return"z";let J=typeof D;if(J!=="object"){if(J==="number"&&Number.isNaN(D))return null;let X=String(D);return`${J[0]}${X.length}:${X}`}if($.has(D))return null;$.add(D);try{if(Array.isArray(D)){let Q=[];for(let U of D){let F=YO(U,$);if(F===null)return null;Q.push(F)}return`a${Q.length}:[${Q.join(",")}]`}let X=Object.keys(D).sort(),Y=[];for(let Q of X){let U=YO(D[Q],$);if(U===null)return null;Y.push(`${Q.length}:${Q}=${U}`)}return`o${Y.length}:{${Y.join(",")}}`}finally{$.delete(D)}}function p7(D){if(typeof D!=="object"||D===null)return!1;if(Array.isArray(D))return D.some(p7);if(typeof D.$ref==="string")return!0;return Object.entries(D).some(([$,J])=>{if(e3D.has($))return p7(J);if(!DJD.has($)||typeof J!=="object"||J===null)return!1;return Object.values(J).some(p7)})}function Ng(D){return D===1?"element":"elements"}function $JD(D,$){return JD.transform((X)=>X).check((X)=>{let Y=X.value;if(!Array.isArray(Y))return;if($.uniqueItems===!0){let Q=new Map;for(let U=0;U<Y.length;U++){let F=YO(Y[U],new Set);if(F===null)continue;let W=Q.get(F);if(W===void 0){Q.set(F,U);continue}X.issues.push({code:"custom",message:`Array items must be unique: element at index ${U} duplicates the one at index ${W}`,input:Y,path:[U],continue:!0})}}if($.containsSchema){let Q=$.minContains??1,U=$.maxContains!==void 0?$.maxContains+1:Number.POSITIVE_INFINITY,F=0;for(let W of Y)if($.containsSchema.safeParse(W).success&&++F>=U)break;if(F<Q)X.issues.push({code:"custom",message:`Array must contain at least ${Q} matching ${Ng(Q)}; found ${F}`,input:Y,continue:!0});if($.maxContains!==void 0&&F>$.maxContains)X.issues.push({code:"custom",message:`Array must contain at most ${$.maxContains} matching ${Ng($.maxContains)}`,input:Y,continue:!0})}}).pipe(D)}function Vg(D,$){if(D===!1)return;if(D===void 0||D===!0)return JD.any();return Y$(D,$)}function wg(D,$){if(D.not!==void 0){if(typeof D.not==="object"&&Object.keys(D.not).length===0)return JD.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(D.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(D.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(D.if!==void 0||D.then!==void 0||D.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(D.dependentSchemas!==void 0||D.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(D.$ref){let Y=D.$ref;if($.refs.has(Y))return $.refs.get(Y);if($.processing.has(Y))return JD.lazy(()=>{if(!$.refs.has(Y))throw Error(`Circular reference not resolved: ${Y}`);return $.refs.get(Y)});$.processing.add(Y);let Q=a3D(Y,$),U=Y$(Q,$);return $.refs.set(Y,U),$.processing.delete(Y),U}if(D.enum!==void 0){let Y=D.enum;if($.version==="openapi-3.0"&&D.nullable===!0&&Y.length===1&&Y[0]===null)return JD.null();if(Y.length===0)return JD.never();if(Y.length===1)return JD.literal(Y[0]);if(Y.every((U)=>typeof U==="string"))return JD.enum(Y);let Q=Y.map((U)=>JD.literal(U));if(Q.length<2)return Q[0];return JD.union([Q[0],Q[1],...Q.slice(2)])}if(D.const!==void 0)return JD.literal(D.const);let J=D.type;if(Array.isArray(J)){let Y=J.map((Q)=>{let U={...D,type:Q};return wg(U,$)});if(Y.length===0)return JD.never();if(Y.length===1)return Y[0];return JD.union(Y)}if(!J)return JD.any();let X;switch(J){case"string":{let Y=JD.string();if(D.format){let Q=D.format;if(Q==="email")Y=Y.check(JD.email());else if(Q==="uri"||Q==="uri-reference")Y=Y.check(JD.url());else if(Q==="uuid"||Q==="guid")Y=Y.check(JD.uuid());else if(Q==="date-time")Y=Y.check(JD.iso.datetime({offset:!0}));else if(Q==="date")Y=Y.check(JD.iso.date());else if(Q==="time")Y=Y.check(JD.regex(JJD));else if(Q==="duration")Y=Y.check(JD.iso.duration());else if(Q==="hostname")Y=Y.check(JD.hostname());else if(Q==="ipv4")Y=Y.check(JD.ipv4());else if(Q==="ipv6")Y=Y.check(JD.ipv6());else if(Q==="mac")Y=Y.check(JD.mac());else if(Q==="cidr")Y=Y.check(JD.cidrv4());else if(Q==="cidr-v6")Y=Y.check(JD.cidrv6());else if(Q==="base64")Y=Y.check(JD.base64());else if(Q==="base64url")Y=Y.check(JD.base64url());else if(Q==="e164")Y=Y.check(JD.e164());else if(Q==="credit_card")Y=Y.check(JD.creditCard());else if(Q==="iban")Y=Y.check(JD.iban());else if(Q==="jwt")Y=Y.check(JD.jwt());else if(Q==="emoji")Y=Y.check(JD.emoji());else if(Q==="nanoid")Y=Y.check(JD.nanoid());else if(Q==="cuid")Y=Y.check(JD.cuid());else if(Q==="cuid2")Y=Y.check(JD.cuid2());else if(Q==="ulid")Y=Y.check(JD.ulid());else if(Q==="xid")Y=Y.check(JD.xid());else if(Q==="ksuid")Y=Y.check(JD.ksuid())}if(typeof D.minLength==="number")Y=Y.min(D.minLength);if(typeof D.maxLength==="number")Y=Y.max(D.maxLength);if(D.pattern)Y=Y.regex(new RegExp(D.pattern));X=Y;break}case"number":case"integer":{let Y=J==="integer"?JD.number().int():JD.number();if(typeof D.minimum==="number"&&D.exclusiveMinimum!==!0)Y=Y.min(D.minimum);if(typeof D.maximum==="number"&&D.exclusiveMaximum!==!0)Y=Y.max(D.maximum);if(typeof D.exclusiveMinimum==="number")Y=Y.gt(D.exclusiveMinimum);else if(D.exclusiveMinimum===!0&&typeof D.minimum==="number")Y=Y.gt(D.minimum);if(typeof D.exclusiveMaximum==="number")Y=Y.lt(D.exclusiveMaximum);else if(D.exclusiveMaximum===!0&&typeof D.maximum==="number")Y=Y.lt(D.maximum);if(typeof D.multipleOf==="number")Y=Y.multipleOf(D.multipleOf);X=Y;break}case"boolean":{X=JD.boolean();break}case"null":{X=JD.null();break}case"object":{let Y={},Q=D.properties||{},U=new Set(D.required||[]),F=typeof D.additionalProperties==="object"?Y$(D.additionalProperties,$):void 0;for(let[G,Z]of Object.entries(Q)){let H=Y$(Z,$);k0(Y,G,U.has(G)?H:H.optional())}if(D.patternProperties){let G=D.patternProperties,Z=Object.keys(G),H=[];for(let I of Z){let B=Y$(G[I],$),N=JD.string().regex(new RegExp(I));H.push(JD.looseRecord(N,B))}let z=[];if(Object.keys(Y).length>0)z.push(JD.object(Y).passthrough());if(z.push(...H),z.length===0)X=JD.object({}).passthrough();else if(z.length===1)X=z[0];else{let I=JD.intersection(z[0],z[1]);for(let B=2;B<z.length;B++)I=JD.intersection(I,z[B]);X=I}if(D.additionalProperties===!1){let I=Object.keys(Y),B=Z.map((V)=>new RegExp(V)),N=X;X=X.check((V)=>{if(!l$(V.value))return;let O=[];for(let j of Object.keys(V.value)){if(I.includes(j))continue;if(B.some((v)=>v.test(j)))continue;O.push(j)}if(O.length)V.issues.push({code:"unrecognized_keys",keys:O,input:V.value,inst:N})})}}else{let G=JD.object(Y);if(D.additionalProperties===!1)X=G.strict();else if(F)X=G.catchall(F);else X=G.passthrough()}let W=D.propertyNames!==void 0&&D.propertyNames!==!0,K=typeof D.minProperties==="number"?D.minProperties:void 0,q=typeof D.maxProperties==="number"?D.maxProperties:void 0;if(W||K!==void 0||q!==void 0){let G;if(W){let Z=typeof D.propertyNames==="object"&&D.propertyNames.type===void 0?{type:"string",...D.propertyNames}:D.propertyNames;G=Y$(Z,$)}X=s3D(X,{keySchema:G,minProperties:K,maxProperties:q})}break}case"array":{let{prefixItems:Y,items:Q}=D;if(Y&&Array.isArray(Y)){let U=typeof D.minItems==="number"?D.minItems:0,F=Y.map((G)=>Y$(G,$)),W=Og(F,U),K=!Array.isArray(Q)?Vg(Q,$):void 0,q=JD.tuple(W);if(X=K?q.rest(K):q,typeof D.minItems==="number")X=X.check(JD.minLength(D.minItems));if(typeof D.maxItems==="number")X=X.check(JD.maxLength(D.maxItems))}else if(Array.isArray(Q)){let U=typeof D.minItems==="number"?D.minItems:0,F=Q.map((G)=>Y$(G,$)),W=Og(F,U),K=Vg(D.additionalItems,$),q=JD.tuple(W);if(X=K?q.rest(K):q,typeof D.minItems==="number")X=X.check(JD.minLength(D.minItems));if(typeof D.maxItems==="number")X=X.check(JD.maxLength(D.maxItems))}else if(Q!==void 0){let U=Y$(Q,$),F=JD.array(U);if(typeof D.minItems==="number")F=F.min(D.minItems);if(typeof D.maxItems==="number")F=F.max(D.maxItems);X=F}else X=JD.array(JD.any());if(D.uniqueItems===!0||D.contains!==void 0)X=$JD(X,{uniqueItems:D.uniqueItems===!0,containsSchema:D.contains!==void 0?Y$(D.contains,$):void 0,minContains:typeof D.minContains==="number"?D.minContains:void 0,maxContains:typeof D.maxContains==="number"?D.maxContains:void 0});break}default:throw Error(`Unsupported type: ${J}`)}return X}function Y$(D,$){if(typeof D==="boolean")return D?JD.any():JD.never();let J=wg(D,$),X=D.type||D.enum!==void 0||D.const!==void 0;if(D.anyOf&&Array.isArray(D.anyOf)){let F=D.anyOf.map((K)=>Y$(K,$)),W=JD.union(F);J=X?JD.intersection(J,W):W}if(D.oneOf&&Array.isArray(D.oneOf)){let F=D.oneOf.map((K)=>Y$(K,$)),W=JD.xor(F);J=X?JD.intersection(J,W):W}if(D.allOf&&Array.isArray(D.allOf))if(D.allOf.length===0)J=X?J:JD.any();else{let F=X?J:Y$(D.allOf[0],$),W=X?0:1;for(let K=W;K<D.allOf.length;K++)F=JD.intersection(F,Y$(D.allOf[K],$));J=F}if(D.nullable===!0&&$.version==="openapi-3.0")J=JD.nullable(J);if(D.readOnly===!0)J=JD.readonly(J);if(D.default!==void 0)J=J.default(D.default);let Y={},Q=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let F of Q)if(F in D)Y[F]=D[F];let U=["contentEncoding","contentMediaType","contentSchema"];for(let F of U)if(F in D)Y[F]=D[F];if(D.type==="object"&&D.$ref===void 0){if(D.propertyNames!==void 0&&!p7(D.propertyNames))Y.propertyNames=D.propertyNames;for(let F of["minProperties","maxProperties"])if(D[F]!==void 0)Y[F]=D[F]}if(D.type==="array"&&D.$ref===void 0){if(D.contains!==void 0&&!p7(D.contains))Y.contains=D.contains;for(let F of["uniqueItems","minContains","maxContains"])if(D[F]!==void 0)Y[F]=D[F]}for(let F of Object.keys(D))if(!r3D.has(F))k0(Y,F,D[F]);if(Object.keys(Y).length>0)$.registry.add(J,Y);if(D.description)J=J.describe(D.description);return J}function jg(D,$){if(typeof D==="boolean")return D?JD.any():JD.never();let J;try{J=JSON.parse(JSON.stringify(D))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let X=t3D(J,$?.defaultTarget),Y=J.$defs||J.definitions||{},Q={version:X,defs:Y,refs:new Map,processing:new Set,rootSchema:J,registry:$?.registry??_0};return Y$(J,Q)}var JD,r3D,e3D,DJD,JJD;var Lg=C(()=>{M7();e();YQ();CQ();S1();JD={...Y9,...XQ,iso:c7},r3D=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);e3D=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),DJD=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);JJD=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function n7(D,$){let J=typeof $==="function"?$:(U,F)=>{let W=$[U._zod.def.type];return W?W(U,F):U},X=new Map;function Y(U){let F=X.get(U);if(F===Rg)return new I7({type:"lazy",getter:()=>X.get(U)});if(F!==void 0)return F;X.set(U,Rg);let W=Q(U),K=J(W,W!==U);return X.set(U,K),K}function Q(U){let F=U._zod.def,W=F.type;switch(W){case"object":{let K=F.shape,q=Object.keys(K),G=!1,Z={};for(let z of q){let I=Y(K[z]);if(I!==K[z])G=!0;Z[z]=I}let H=F.catchall;if(F.catchall){if(H=Y(F.catchall),H!==F.catchall)G=!0}return G?fD(U,{...F,shape:Z,catchall:H}):U}case"array":{let K=Y(F.element);return K===F.element?U:fD(U,{...F,element:K})}case"tuple":{let K=F.items,q=!1,G=[];for(let H of K){let z=Y(H);if(z!==H)q=!0;G.push(z)}let Z=F.rest;if(F.rest){if(Z=Y(F.rest),Z!==F.rest)q=!0}return q?fD(U,{...F,items:G,rest:Z}):U}case"record":case"map":{let K=Y(F.keyType),q=Y(F.valueType);return K===F.keyType&&q===F.valueType?U:fD(U,{...F,keyType:K,valueType:q})}case"set":{let K=Y(F.valueType);return K===F.valueType?U:fD(U,{...F,valueType:K})}case"union":{let K=F.options,q=!1,G=[];for(let Z of K){let H=Y(Z);if(H!==Z)q=!0;G.push(H)}return q?fD(U,{...F,options:G}):U}case"intersection":{let K=Y(F.left),q=Y(F.right);return K===F.left&&q===F.right?U:fD(U,{...F,left:K,right:q})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let K=Y(F.innerType);return K===F.innerType?U:fD(U,{...F,innerType:K})}case"pipe":{let K=Y(F.in),q=Y(F.out);return K===F.in&&q===F.out?U:fD(U,{...F,in:K,out:q})}case"function":{let K=Y(F.input),q=Y(F.output);return K===F.input&&q===F.output?U:fD(U,{...F,input:K,output:q})}case"lazy":{let K=F.getter,{_cachedInner:q,...G}=F;return fD(U,{...G,getter:()=>Y(K())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return U;default:return U}}return Y(D)}var Rg;var QO=C(()=>{S2();e();Rg=Symbol("z.visit/resolving")});function Mg(D){return n7(D,{object:($)=>$.partial(),union:($)=>{let J=$._zod.def;return J.discriminator===void 0?$:X9(J.options)}})}var Ag=C(()=>{QO();S1()});function XJD(D,$){if(!$?.length)return D;let J=D._zod.def;return fD(D,$6(J,{checks:[...J.checks??[],...$]}),{parent:!0})}function vg(D){return XJD(D.out,D.checks)}function YJD(D){return D.in._zod.traits.has("$ZodTransform")?vg(D):D.in}function Eg(D){return n7(D,{pipe:($)=>YJD($._zod.def),default:($,J)=>J?l4($._zod.def.innerType):$,catch:($,J)=>J?$._zod.def.innerType:$})}function Tg(D){return n7(D,{pipe:($)=>vg($._zod.def),prefault:($,J)=>J?$._zod.def.innerType:$})}var Pg=C(()=>{e();QO();S1()});var UO={};y0(UO,{string:()=>QJD,number:()=>UJD,date:()=>KJD,boolean:()=>FJD,bigint:()=>WJD});function QJD(D){return MH(e2,D)}function UJD(D){return bH(D9,D)}function FJD(D){return xH($9,D)}function WJD(D){return yH(J9,D)}function KJD(D){return oH(x7,D)}var bg=C(()=>{E$();S1()});var CD={};y0(CD,{xor:()=>cu,xid:()=>Gu,withParser:()=>MY,void:()=>yu,validateAsync:()=>J7,validate:()=>$7,uuidv7:()=>Xu,uuidv6:()=>Ju,uuidv4:()=>$u,uuid:()=>Du,util:()=>h,url:()=>Yu,uppercase:()=>x2,unknown:()=>m4,union:()=>X9,undefined:()=>xu,ulid:()=>qu,uint64:()=>uu,uint32:()=>Cu,tuple:()=>TB,trim:()=>i2,treeifyError:()=>_q,transform:()=>PQ,toZod:()=>i5,toUpperCase:()=>p2,toLowerCase:()=>c2,toJSONSchema:()=>JQ,templateLiteral:()=>Qg,symbol:()=>gu,superRefine:()=>$O,success:()=>$g,stringbool:()=>zg,stringFormat:()=>Mu,string:()=>_7,strictObject:()=>du,startsWith:()=>y2,slugify:()=>n2,size:()=>x4,setErrorMap:()=>l3D,set:()=>ou,safeParseAsync:()=>eI,safeParse:()=>sI,safeEncodeAsync:()=>UB,safeEncode:()=>YB,safeDecodeAsync:()=>FB,safeDecode:()=>QB,registry:()=>RY,regexes:()=>i$,regex:()=>u2,refine:()=>DO,record:()=>PB,readonly:()=>rB,property:()=>sY,properties:()=>m2,promise:()=>Ug,prettifyError:()=>uq,preprocess:()=>Ig,prefault:()=>hB,positive:()=>rY,pipe:()=>FQ,partialRecord:()=>nu,parseAsync:()=>aI,parse:()=>oI,overwrite:()=>J6,output:()=>Tg,optional:()=>l4,object:()=>lu,number:()=>ZB,nullish:()=>Dg,nullable:()=>u7,null:()=>OB,normalize:()=>d2,nonpositive:()=>oY,nonoptional:()=>mB,nonnegative:()=>aY,never:()=>EQ,negative:()=>tY,nativeEnum:()=>au,nanoid:()=>Fu,nan:()=>Jg,multipleOf:()=>L1,minSize:()=>j6,minLength:()=>x6,mime:()=>l2,meta:()=>Gg,memoizer:()=>N7,maxSize:()=>R1,maxLength:()=>f4,map:()=>tu,mac:()=>Hu,lte:()=>A$,lt:()=>V6,lowercase:()=>g2,looseRecord:()=>ru,looseObject:()=>iu,locales:()=>R7,literal:()=>su,length:()=>y4,lazy:()=>aB,ksuid:()=>Zu,keyof:()=>mu,jwt:()=>Ru,json:()=>Hg,iso:()=>c7,ipv6:()=>Iu,ipv4:()=>zu,invertCodec:()=>Yg,intersection:()=>vB,int64:()=>_u,int32:()=>Su,int:()=>UQ,instanceof:()=>Zg,input:()=>Eg,includes:()=>f2,iban:()=>Lu,httpUrl:()=>Qu,hostname:()=>Au,hex:()=>vu,hash:()=>Tu,guid:()=>e_,gte:()=>v$,gt:()=>w6,globalRegistry:()=>_0,getErrorMap:()=>d3D,getDiscriminatedOption:()=>SZ,function:()=>Fg,fromJSONSchema:()=>jg,formatError:()=>D7,float64:()=>bu,float32:()=>Pu,flattenError:()=>e5,file:()=>eu,exactOptional:()=>uB,enum:()=>TQ,endsWith:()=>h2,encodeAsync:()=>JB,encode:()=>DB,emoji:()=>Uu,email:()=>s_,e164:()=>wu,discriminatedUnion:()=>pu,describe:()=>qg,deepPartial:()=>Mg,decodeAsync:()=>XB,decode:()=>$B,date:()=>hu,custom:()=>Kg,currencyCode:()=>Eu,cuid2:()=>Ku,cuid:()=>Wu,creditCard:()=>ju,core:()=>f6,config:()=>Z0,compile:()=>jH,coerce:()=>UO,codec:()=>Xg,clone:()=>fD,cidrv6:()=>Ou,cidrv4:()=>Bu,check:()=>Wg,catch:()=>iB,boolean:()=>zB,bigint:()=>ku,base64url:()=>Vu,base64:()=>Nu,array:()=>f7,any:()=>fu,_function:()=>Fg,_default:()=>fB,_ZodString:()=>WQ,ZodXor:()=>RB,ZodXID:()=>BQ,ZodVoid:()=>jB,ZodUnknown:()=>VB,ZodUnion:()=>h7,ZodUndefined:()=>IB,ZodUUID:()=>L6,ZodURL:()=>g7,ZodULID:()=>IQ,ZodType:()=>VD,ZodTuple:()=>EB,ZodTransform:()=>_B,ZodTemplateLiteral:()=>tB,ZodSymbol:()=>HB,ZodSuccess:()=>lB,ZodStringFormat:()=>cD,ZodString:()=>e2,ZodSet:()=>SB,ZodRecord:()=>a2,ZodRealError:()=>O$,ZodReadonly:()=>nB,ZodPromise:()=>sB,ZodPreprocess:()=>pB,ZodPrefault:()=>yB,ZodPipe:()=>l7,ZodOptional:()=>m7,ZodObject:()=>y7,ZodNumberFormat:()=>c4,ZodNumber:()=>D9,ZodNullable:()=>gB,ZodNull:()=>BB,ZodNonOptional:()=>SQ,ZodNever:()=>wB,ZodNanoID:()=>ZQ,ZodNaN:()=>cB,ZodMap:()=>bB,ZodMAC:()=>KB,ZodLiteral:()=>CB,ZodLazy:()=>oB,ZodKSUID:()=>OQ,ZodJWT:()=>AQ,ZodIssueCode:()=>m3D,ZodIntersection:()=>AB,ZodInstanceOf:()=>JO,ZodISOTime:()=>P1,ZodISODuration:()=>b1,ZodISODateTime:()=>E1,ZodISODate:()=>T1,ZodIPv6:()=>VQ,ZodIPv4:()=>NQ,ZodIBAN:()=>GB,ZodGUID:()=>qQ,ZodFunction:()=>eB,ZodFirstPartyTypeKind:()=>XO,ZodFile:()=>kB,ZodExactOptional:()=>bQ,ZodError:()=>f3D,ZodEnum:()=>s2,ZodEmoji:()=>GQ,ZodEmail:()=>KQ,ZodE164:()=>MQ,ZodDiscriminatedUnion:()=>MB,ZodDefault:()=>xB,ZodDate:()=>x7,ZodCustomStringFormat:()=>i4,ZodCustom:()=>i7,ZodCreditCard:()=>qB,ZodCompileUnsupportedError:()=>ED,ZodCompileAsyncError:()=>N6,ZodCodec:()=>d7,ZodCatch:()=>dB,ZodCUID2:()=>HQ,ZodCUID:()=>zQ,ZodCIDRv6:()=>jQ,ZodCIDRv4:()=>wQ,ZodBoolean:()=>$9,ZodBigIntFormat:()=>vQ,ZodBigInt:()=>J9,ZodBase64URL:()=>RQ,ZodBase64:()=>LQ,ZodArray:()=>LB,ZodAny:()=>NB,TimePrecision:()=>TH,NEVER:()=>Pq,INVALID:()=>J$,$output:()=>IH,$input:()=>BH,$brand:()=>bq});var FO=C(()=>{E$();E$();k7();Lg();Ag();Pg();HH();CQ();CQ();bg();S1();YQ();tI();WB();Bg()});var Sg=C(()=>{FO();FO()});function avD(D,$,J){let X=J.filter((Q)=>D[Q]===!0);if(X.length<2)return;let Y=String(X[0]);for(let Q of X.slice(1))$.addIssue({code:"custom",message:`not used together with "${Y}"`,path:[Q]})}var Cg,qJD,svD,evD,DED,$ED;var kg=C(()=>{Sg();Cg=CD.object({name:CD.string().min(1),version:CD.string().min(1),requested_version:CD.string().optional(),ios_checksum:CD.string().optional(),android_checksum:CD.string().optional()}),qJD=CD.enum(["new_plugin","removed_plugin","version_mismatch","requested_version_changed","ios_code_changed","android_code_changed","both_platforms_changed","platform_checksum_metadata_changed"]),svD=CD.object({name:CD.string(),localVersion:CD.string().optional(),remoteVersion:CD.string().optional(),localRequestedVersion:CD.string().optional(),remoteRequestedVersion:CD.string().optional(),localIosChecksum:CD.string().optional(),remoteIosChecksum:CD.string().optional(),localAndroidChecksum:CD.string().optional(),remoteAndroidChecksum:CD.string().optional()}),evD=CD.object({compatible:CD.boolean(),reasons:qJD.array(),message:CD.string()}),DED=CD.object({isSecurityPolicyError:CD.boolean(),errorCode:CD.string(),message:CD.string()}),$ED=CD.record(CD.string(),CD.string()).transform((D,$)=>{if(D===null||typeof D!=="object"||Array.isArray(D)||Object.getPrototypeOf(D)!==Object.prototype)return $.addIssue({code:"custom",message:"a plain object of locale keys to release notes"}),CD.NEVER;let J=Object.create(null);for(let[X,Y]of Object.entries(D)){let Q=X.trim(),U=Y.trim();if(!Q)return $.addIssue({code:"custom",message:"a non-empty locale key"}),CD.NEVER;if(!U)return $.addIssue({code:"custom",message:"a non-empty release note"}),CD.NEVER;if(Object.hasOwn(J,Q))return $.addIssue({code:"custom",message:`a unique locale key (duplicate after trim: "${Q}")`}),CD.NEVER;J[Q]=U}return J})});function GJD(D){if(typeof D?.then==="function")throw TypeError("Expected synchronous schema validation result");return D}function WO(D,$){let J=GJD(D["~standard"].validate($));if(J.issues)return{success:!1,error:new _g(J.issues)};return{success:!0,data:J.value}}function XED(D,$){let J=WO(D,$);if(!J.success)throw J.error;return J.data}var _g;var ug=C(()=>{_g=class _g extends Error{issues;constructor(D){super(D.map(($)=>$.message).join("; ")||"Schema validation failed");this.name="SchemaError",this.issues=D}}});function gg(D){let $=D;if(typeof $.status==="number")return $.status;let J=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof J==="number"?J:void 0}function ZJD(D){if(!D||typeof D!=="object")return;let $=gg(D);if($!==void 0)return $;let J=D.cause;if(J&&typeof J==="object")return gg(J);return}function zJD(D){let $=[],J=new Set,X=D;if(typeof D==="string")return D;while(X){if(typeof X==="string"){$.push(X);break}if(typeof X!=="object")break;if(J.has(X))break;if(J.add(X),X instanceof Error){$.push(X.message),X=X.cause;continue}let Y=X;if(typeof Y.message==="string")$.push(Y.message);X=Y.cause}return $.join(" ")}function HJD(D){return zJD(D)}function xg(D){if(D&&typeof D==="object"&&"code"in D){let X=D.code;if(typeof X==="string"&&X.startsWith("commander."))return"commander"}let $=ZJD(D);if($!==void 0){if($===401)return"unauthorized";if($===403)return"forbidden";if($===404)return"not_found";if($===413)return"payload_too_large";if($===429)return"rate_limited";if($>=500)return"server_error"}let J=HJD(D).toLowerCase();if(/econnrefused|econnreset|enotfound|eai_again|fetch failed|failed to fetch|connect timeout|und_err/.test(J))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(J))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(J))return"validation_error";return"unknown"}function QED(D){if(D===401)return"unauthorized";if(D===403)return"forbidden";if(D===404)return"not_found";if(D===408||D===504)return"timeout";if(D===413)return"payload_too_large";if(D===429)return"rate_limited";if(D===400||D===422)return"validation_error";if(D>=500)return"server_error";return"unknown"}function Q9(D){let $=xg(D);return $==="network_error"||$==="timeout"}var KO=()=>{};function NJD(D){return new Promise(($)=>setTimeout($,D))}async function yg(D){let $={data:null,error:null};for(let J=1;J<=fg;J++){if($=await D(),!$.error)return $;if(!Q9($.error))return $;if(J<fg)await NJD(OJD[J-1]??1000)}return $}async function hg(D){if(!D.silent)lD.warn(BJD);let $=new qO;if(NC($))await VC({error:$,functionName:D.telemetryFunctionName,kind:"unhandled_error",status:0})}function mg(D){if(Q9(D))throw new qO;let $=D.message??"unknown error";throw Error(`Cannot check 2FA compliance: ${$}`)}var IJD="Cannot reach Capgo to verify 2FA compliance. Check your network connection and try again.",BJD="Could not verify 2FA compliance due to a network error. Continuing — Capgo will still enforce 2FA on this action if required.",fg=3,OJD,qO;var lg=C(()=>{D1();Nq();KO();OJD=[500,1000];qO=class qO extends Error{constructor(D=IJD){super(D);this.name="TwoFactorComplianceNetworkError"}}});function kQ(D){let $=D.replace(VJD,"[REDACTED PRIVATE KEY]");for(let{re:J,replace:X}of wJD)$=$.replace(J,X);return $}var VJD,wJD;var dg=C(()=>{VJD=/-----BEGIN [^-]+-----[\s\S]*?-----END [^-]+-----/g,wJD=[{re:/(authorization\s*:\s*bearer\s+)[\w.\-+/=]+/gi,replace:"$1[REDACTED]"},{re:/\bcapg_[A-Za-z0-9]{8,}\b/g,replace:"[REDACTED]"},{re:/(capgkey\s*[=:]\s*)[\w-]{6,}/gi,replace:"$1[REDACTED]"},{re:/\b(api[_-]?key|secret|token|password|passwd|pwd)(\s*[=:]\s*)["']?[\w.\-+/=]{6,}["']?/gi,replace:"$1$2[REDACTED]"},{re:/("(?:access_token|refresh_token|id_token|client_secret|private[_-]?key|apple_key_content|api[_-]?key|token|secret|password|p8|pem)"\s*:\s*")[^"]+(")/gi,replace:"$1[REDACTED]$2"}]});function jJD(D){return Object.values(_Q).includes(D)}function GO(D){let $="",J="";if(typeof D==="string")$=D,J=D;else if(D&&typeof D==="object"){let X=D;$=String(X.error||X.code||X.errorCode||""),J=String(X.message||X.error||"")}if(jJD($))return{isSecurityPolicyError:!0,errorCode:$,message:ig[$]||J};for(let[X,Y]of Object.entries(ig))if(J.includes(X))return{isSecurityPolicyError:!0,errorCode:X,message:Y};return{isSecurityPolicyError:!1,errorCode:$,message:J}}function cg(D){let $=GO(D);if($.isSecurityPolicyError)return`
❌ Security Policy Error: ${$.errorCode}
${$.message}
`;return $.message||"An unknown error occurred"}var _Q,ig;var pg=C(()=>{_Q={ORG_REQUIRES_EXPIRING_KEY:"org_requires_expiring_key",EXPIRATION_REQUIRED:"expiration_required",EXPIRATION_EXCEEDS_MAX:"expiration_exceeds_max"},ig={[_Q.ORG_REQUIRES_EXPIRING_KEY]:`This organization requires API keys with expiration dates.
Please generate a new API key with an expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with an expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`,[_Q.EXPIRATION_REQUIRED]:`This organization requires API keys to have an expiration date.
Please generate a new API key with an expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with an expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`,[_Q.EXPIRATION_EXCEEDS_MAX]:`Your API key expiration date exceeds the maximum allowed by this organization.
Please generate a new API key with a shorter expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with a valid expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`}});import ng from"node:fs";function LJD(){try{return ng.statSync("/.dockerenv"),!0}catch{return!1}}function RJD(){try{return ng.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function zO(){if(ZO===void 0)ZO=LJD()||RJD();return ZO}var ZO;var rg=()=>{};import MJD from"node:fs";function p4(){if(HO===void 0)HO=AJD()||zO();return HO}var HO,AJD=()=>{try{return MJD.statSync("/run/.containerenv"),!0}catch{return!1}};var IO=C(()=>{rg()});import og from"node:process";import vJD from"node:os";import BO from"node:fs";var tg=()=>{if(og.platform!=="linux")return!1;if(vJD.release().toLowerCase().includes("microsoft")){if(p4())return!1;return!0}try{if(BO.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!p4()}catch{}if(BO.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||BO.existsSync("/run/WSL"))return!p4();return!1},y6;var OO=C(()=>{IO();y6=og.env.__IS_WSL_TEST__?tg:tg()});import ag from"node:process";import{Buffer as EJD}from"node:buffer";import{promisify as TJD}from"node:util";import PJD from"node:child_process";var bJD,NO=()=>`${ag.env.SYSTEMROOT||ag.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,T$=async(D,$={})=>{let{powerShellPath:J,...X}=$,Y=T$.encodeCommand(D);return bJD(J??NO(),[...T$.argumentsPrefix,Y],{encoding:"utf8",...X})};var VO=C(()=>{bJD=TJD(PJD.execFile);T$.argumentsPrefix=["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"];T$.encodeCommand=(D)=>EJD.from(D,"utf16le").toString("base64");T$.escapeArgument=(D)=>`'${String(D).replaceAll("'","''")}'`});function sg(D){for(let $ of D.split(`
`)){if(/^\s*#/.test($))continue;let J=/^\s*root\s*=\s*(?<mountPoint>"[^"]*"|'[^']*'|[^#]*)/.exec($);if(!J)continue;return J.groups.mountPoint.trim().replaceAll(/^["']|["']$/g,"")}}import{promisify as SJD}from"node:util";import CJD from"node:child_process";import wO,{constants as Dx}from"node:fs/promises";var kJD,_JD,uJD=async()=>{return`${await _JD()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`},uQ,eg,$x=async()=>{return eg??=(async()=>{try{let D=await uQ();return await wO.access(D,Dx.X_OK),!0}catch{return!1}})(),eg},Jx=async()=>{let D=await uQ(),$=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,{stdout:J}=await T$($,{powerShellPath:D});return J.trim()},Xx=async(D)=>{if(/^[a-z]+:\/\//i.test(D))return D;try{let{stdout:$}=await kJD("wslpath",["-aw",D],{encoding:"utf8"});return $.trim()}catch{return D}};var Yx=C(()=>{OO();VO();OO();kJD=SJD(CJD.execFile),_JD=(()=>{let $;return async function(){if($)return $;let J="/etc/wsl.conf",X=!1;try{await wO.access(J,Dx.F_OK),X=!0}catch{}if(!X)return"/mnt/";let Y=await wO.readFile(J,{encoding:"utf8"}),Q=sg(Y);if(Q===void 0)return"/mnt/";return $=Q,$=$.endsWith("/")?$:`${$}/`,$}})(),uQ=y6?uJD:NO});function n4(D,$,J){let X=(Y)=>Object.defineProperty(D,$,{value:Y,enumerable:!0,writable:!0});return Object.defineProperty(D,$,{configurable:!0,enumerable:!0,get(){let Y=J();return X(Y),Y},set(Y){X(Y)}}),D}import{promisify as gJD}from"node:util";import xJD from"node:process";import{execFile as fJD}from"node:child_process";async function jO(){if(xJD.platform!=="darwin")throw Error("macOS only");let{stdout:D}=await yJD("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),J=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(D)?.groups.id??"com.apple.Safari";if(J==="com.apple.safari")return"com.apple.Safari";return J}var yJD;var Qx=C(()=>{yJD=gJD(fJD)});import hJD from"node:process";import{promisify as mJD}from"node:util";import{execFile as lJD,execFileSync as nED}from"node:child_process";async function Ux(D,{humanReadableOutput:$=!0,signal:J}={}){if(hJD.platform!=="darwin")throw Error("macOS only");let X=$?[]:["-ss"],Y={};if(J)Y.signal=J;let{stdout:Q}=await dJD("osascript",["-e",D,X],Y);return Q.trim()}var dJD;var Fx=C(()=>{dJD=mJD(lJD)});async function LO(D){return Ux(`tell application "Finder" to set app_path to application file id "${D}" as string
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}var Wx=C(()=>{Fx()});import{promisify as iJD}from"node:util";import{execFile as cJD}from"node:child_process";async function RO(D=pJD){let{stdout:$}=await D("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),J=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec($);if(!J)throw new Kx(`Cannot find Windows browser in stdout: ${JSON.stringify($)}`);let{id:X}=J.groups,Y=X.lastIndexOf("."),Q=X.lastIndexOf("-"),U=Y===-1?void 0:X.slice(0,Y),F=Q===-1?void 0:X.slice(0,Q);return gQ[X]??gQ[U]??gQ[F]??{name:X,id:X}}var pJD,gQ,xQ,Kx;var MO=C(()=>{pJD=iJD(cJD),gQ={MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},MSEdgeBHTML:{name:"Edge Beta",id:"com.microsoft.edge.beta"},MSEdgeDHTML:{name:"Edge Dev",id:"com.microsoft.edge.dev"},AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},ChromeBHTML:{name:"Chrome Beta",id:"com.google.chrome.beta"},ChromeDHTML:{name:"Chrome Dev",id:"com.google.chrome.dev"},ChromiumHTM:{name:"Chromium",id:"org.chromium.Chromium"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveDHTML:{name:"Brave Dev",id:"com.brave.Browser.dev"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},OperaStable:{name:"Opera",id:"com.operasoftware.Opera"},VivaldiHTM:{name:"Vivaldi",id:"com.vivaldi.Vivaldi"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"}},xQ=new Map(Object.entries(gQ));Kx=class Kx extends Error{}});import{promisify as nJD}from"node:util";import AO from"node:process";import{execFile as rJD}from"node:child_process";async function vO(){if(AO.platform==="darwin"){let D=await jO();return{name:await LO(D),id:D}}if(AO.platform==="linux"){let{stdout:D}=await tJD("xdg-mime",["query","default","x-scheme-handler/http"]),$=D.trim();return{name:oJD($.replace(/.desktop$/,"").replace("-"," ")),id:$}}if(AO.platform==="win32")return RO();throw Error("Only macOS, Linux, and Windows are supported")}var tJD,oJD=(D)=>D.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,($)=>$.toUpperCase());var qx=C(()=>{Qx();Wx();MO();MO();tJD=nJD(rJD)});import EO from"node:process";var aJD,Gx;var Zx=C(()=>{aJD=Boolean(EO.env.SSH_CONNECTION||EO.env.SSH_CLIENT||EO.env.SSH_TTY),Gx=aJD});var Nx={};y0(Nx,{openApp:()=>XXD,default:()=>YXD,apps:()=>r4});import TO from"node:process";import Ox from"node:path";import{fileURLToPath as sJD}from"node:url";import eJD from"node:child_process";import DXD,{constants as $XD}from"node:fs/promises";function Bx(D){if(typeof D==="string"||Array.isArray(D))return D;let{[Hx]:$}=D;if(!$)throw Error(`${Hx} is not supported`);return $}function t7({[U9]:D},{wsl:$}={}){if($&&y6)return Bx($);if(!D)throw Error(`${U9} is not supported`);return Bx(D)}var fQ,PO,zx,U9,Hx,Ix=async(D,$)=>{if(D.length===0)return;let J=[];for(let X of D)try{return await $(X)}catch(Y){J.push(Y)}throw AggregateError(J,"Failed to open in all supported apps")},r7=async(D)=>{D={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...D};let $=D[fQ]===!0;if(delete D[fQ],Array.isArray(D.app))return Ix(D.app,(K)=>r7({...D,app:K,[fQ]:!0}));let{name:J,arguments:X=[]}=D.app??{};if(X=[...X],Array.isArray(J))return Ix(J,(K)=>r7({...D,app:{name:K,arguments:X},[fQ]:!0}));if(J==="browser"||J==="browserPrivate"){let K={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","com.brave.browser":"brave","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","com.microsoft.edgemac":"edge","microsoft-edge.desktop":"edge","com.apple.safari":"safari"},q={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"},G;if(y6){let Z=await Jx();G=xQ.get(Z)??{}}else G=await vO();if(G.id in K){let Z=K[G.id.toLowerCase()];if(J==="browserPrivate"){if(Z==="safari")throw Error("Safari doesn't support opening in private mode via command line");X.push(q[Z])}return r7({...D,app:{name:r4[Z],arguments:X}})}throw Error(`${G.name} is not supported as a default browser`)}let Y,Q=[],U={},F=!1;if(y6&&!p4()&&!Gx&&!J)F=await $x();if(U9==="darwin"){if(Y="open",D.wait)Q.push("--wait-apps");if(D.background)Q.push("--background");if(D.newInstance)Q.push("--new");if(J)Q.push("-a",J)}else if(U9==="win32"||F){if(Y=await uQ(),Q.push(...T$.argumentsPrefix),!y6)U.windowsVerbatimArguments=!0;if(y6&&D.target)D.target=await Xx(D.target);let K=["$ProgressPreference = 'SilentlyContinue';","Start"];if(D.wait)K.push("-Wait");if(J){if(K.push(T$.escapeArgument(J)),D.target)X.push(D.target)}else if(D.target)K.push(T$.escapeArgument(D.target));if(X.length>0)X=X.map((q)=>T$.escapeArgument(q)),K.push("-ArgumentList",X.join(","));if(D.target=T$.encodeCommand(K.join(" ")),!D.wait)U.stdio="ignore"}else{if(J)Y=J;else{let K=!PO||PO==="/",q=!1;try{await DXD.access(zx,$XD.X_OK),q=!0}catch{}Y=TO.versions.electron??(U9==="android"||K||!q)?"xdg-open":zx}if(X.length>0)Q.push(...X);if(!D.wait)U.stdio="ignore",U.detached=!0}if(U9==="darwin"&&X.length>0)Q.push("--args",...X);if(D.target)Q.push(D.target);let W=eJD.spawn(Y,Q,U);if(D.wait)return new Promise((K,q)=>{W.once("error",q),W.once("close",(G)=>{if(!D.allowNonzeroExitCode&&G!==0){q(Error(`Exited with code ${G}`));return}K(W)})});if($)return new Promise((K,q)=>{W.once("error",q),W.once("spawn",()=>{W.once("close",(G)=>{if(W.off("error",q),G!==0){q(Error(`Exited with code ${G}`));return}W.unref(),K(W)})})});return W.unref(),new Promise((K,q)=>{W.once("error",q),W.once("spawn",()=>{W.off("error",q),K(W)})})},JXD=(D,$)=>{if(typeof D!=="string")throw TypeError("Expected a `target`");return r7({...$,target:D})},XXD=(D,$)=>{if(typeof D!=="string"&&!Array.isArray(D))throw TypeError("Expected a valid `name`");let{arguments:J=[]}=$??{};if(J!==void 0&&J!==null&&!Array.isArray(J))throw TypeError("Expected `appArguments` as Array type");return r7({...$,app:{name:D,arguments:J}})},r4,YXD;var Vx=C(()=>{Yx();VO();qx();IO();Zx();fQ=Symbol("fallbackAttempt"),PO=import.meta.url?Ox.dirname(sJD(import.meta.url)):"",zx=Ox.join(PO,"xdg-open"),{platform:U9,arch:Hx}=TO;r4={browser:"browser",browserPrivate:"browserPrivate"};n4(r4,"chrome",()=>t7({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium","chromium-browser"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));n4(r4,"brave",()=>t7({darwin:"brave browser",win32:"brave",linux:["brave-browser","brave"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",x64:["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]}}));n4(r4,"firefox",()=>t7({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));n4(r4,"edge",()=>t7({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));n4(r4,"safari",()=>t7({darwin:"Safari"}));YXD=JXD});import{spawn as QXD}from"node:child_process";import{existsSync as ID,readdirSync as K9,readFileSync as H0,statSync as UXD}from"node:fs";import{homedir as vx,platform as Ex}from"node:os";import a4,{dirname as h6,join as LD,relative as Tx,resolve as eD,sep as Px}from"node:path";import{cwd as T0,env as o4,stdin as bx,stdout as Sx}from"node:process";function yQ(D,$){let J=TE();if(J)J[D]($);else lD[D]($)}function kx(D=""){if(!D)return iQ;return`${iQ}${D.startsWith("/")?D:`/${D}`}`}function sTD(D){let $=zXD.toLocaleString("en-US");return[`Delta updates cannot upload this bundle: it has ${D.toLocaleString("en-US")} files, and Capgo allows at most ${$} files per delta (manifest) upload.`,"Delta mode tracks and uploads each file individually so devices can download only what changed. Very large file counts are not supported on that path.","What you can do:","1. Upload a full zip instead: npx @capgo/cli@latest bundle upload --no-delta","2. Or reduce files in your web build output (remove unused assets, avoid copying large trees into dist).","See https://capgo.app/docs/faq/#are-there-delta-update-file-path-limitations"].join(`
`)}function DPD(D){return[`Bundle upload timed out after ${Math.round(D/1000)}s.`,"The standard upload has to finish the whole transfer within this window and does not retry, so a large bundle or a slow connection can trip it.","What you can do:","1. Retry with the resumable upload, which uploads in chunks and retries automatically: npx @capgo/cli@latest bundle upload --tus","2. Or raise the limit for the standard upload: npx @capgo/cli@latest bundle upload --timeout <milliseconds>"].join(`
`)}function m0(D){if(!D)return"Unknown error";if(GO(D).isSecurityPolicyError)return cg(D);let J=D;if(typeof D==="string")return D;if(D instanceof Error){let X=J.message||J.cause?.message||J.stack||D.name,Y=J.cause?.name,Q=X.toLowerCase();if(Q.includes("fetch failed")||Q.includes("failed to fetch")||Q.includes("connect timeout")||Q.includes("network")||Y?.startsWith("UND_ERR"))return`Network error: ${X}${J.code?` (code ${J.code})`:""}. Check your network connection and API endpoint availability.`;let U=J.status||J.statusCode;return[X,J.code?`Code: ${J.code}`:void 0,U?`Status: ${U}`:void 0].filter(Boolean).join(" | ")||D.name}if(J.message){let X=[J.message,J.code?`Code: ${J.code}`:void 0,J.status||J.statusCode?`Status: ${J.status||J.statusCode}`:void 0].filter(Boolean).join(" | "),Y=J.message.toLowerCase();if(Y.includes("fetch failed")||Y.includes("failed to fetch")||J.error==="Failed to fetch")return`Network error: ${X}. Check your network connection and API endpoint availability.`;if(J.details||J.hint||J.error)return`${X}${X?" | ":""}${J.error?typeof J.error==="string"?J.error:J.error.message??"":""}${J.details?`Details: ${J.details}`:""}${J.hint?`Hint: ${J.hint}`:""}`.trim();return X}if(typeof J.error==="string"&&J.error.length>0)return J.error;if(J.error&&typeof J.error==="object"&&typeof J.error.message==="string"&&J.error.message.length>0)return J.error.message;return`
${Cx.default.render(D)}`}function bO(D){if(typeof D!=="string"&&typeof D!=="number")return;return kQ(String(D)).slice(0,_x)}function IXD(D){if(typeof D==="string")return kQ(D).slice(0,_x);if(!D||typeof D!=="object")return String(D);let $=D,J=bO($.name),X=bO($.message),Y=J&&X?`${J}: ${X}`:X||J||Object.prototype.toString.call(D),Q=[["code",$.code],["errno",$.errno],["syscall",$.syscall],["address",$.address],["port",$.port]].map(([U,F])=>{let W=bO(F);return W?`${U}=${W}`:void 0}).filter(Boolean);return`${Y}${Q.length>0?` (${Q.join(", ")})`:""}`}function JPD(D){let $=[],J=new Set,X=0,Y=(Q,U,F)=>{if(X>=HXD)return;if(Q&&typeof Q==="object"){if(J.has(Q))return;J.add(Q)}X++;let W=" ".repeat(F);if($.push(`${W}${U}${IXD(Q)}`),!Q||typeof Q!=="object")return;let K=Q,q=[K.causingError,K.cause].filter((G,Z,H)=>G!==void 0&&G!==null&&H.indexOf(G)===Z);for(let G of q)Y(G,"Caused by: ",F+1);if(Array.isArray(K.errors))K.errors.forEach((G,Z)=>{Y(G,`Contained error ${Z+1}: `,F+1)})};return Y(D,"",0),kQ($.join(`
`))}async function XPD(D,$,J=!1){let{data:X,error:Y}=await yg(()=>D.rpc("reject_access_due_to_2fa_for_org",{org_id:$}));if(Y){if(!J&&!Q9(Y))r.error(`Cannot check 2FA compliance: ${Y.message}`);if(Q9(Y)){await hg({silent:J,telemetryFunctionName:"check2FAAccessForOrg"});return}mg(Y)}if(X){if(!J)r.error(`\uD83D\uDD10 Access Denied: 2FA Required. Enable 2FA at ${kx("/settings/account")}`);throw Error("2FA required for this organization")}}function YPD({silent:D=!1,stdinIsTTY:$=!!bx.isTTY,stdoutIsTTY:J=!!Sx.isTTY,ci:X=xO.isCI}={}){return!D&&$&&J&&!X}function BXD(D={}){let $=D.ci??xO.isCI,J=D.stdinIsTTY??!!bx.isTTY,X=D.stdoutIsTTY??!!Sx.isTTY,Y=D.platform??Ex(),Q="display"in D?D.display:o4.DISPLAY;if($||!J||!X)return!1;if(Y==="linux"&&!Q)return!1;return!0}async function OXD(D){if(!BXD())return;try{await(await Promise.resolve().then(() => (Vx(),Nx))).default(D)}catch($){if($?.code==="ENOENT")return}}function QPD(D){return Xq(D)||Yq(D)}function m6(D){if(Xq(D))return $C(D);else if(Yq(D))return JC(D);return D}function ux(D=m6(T0()),$=void 0){let J=$?.split(",")[0],X=J??LD(D,N$);if(!ID(X)){let Q=J?`Package.json at ${X} does not exist`:`No package.json found at ${X}. Run this command from your project root (the folder that contains package.json), or pass --package-json <path> to point at it (for example in a monorepo).`;throw r.error(Q),Error(Q)}let Y=H0(X);return JSON.parse(Y)}function UPD(D=m6(T0()),$=void 0){return ux(D,$).scripts}function FPD(D=m6(T0()),$=void 0){return ux(D,$).version??""}function NXD(D){let $=D.replace("^","").replace("~","");if(y9($))try{let J=o$($);return wF(J)}catch{return $}return $}async function WPD(D,$=T0(),J){let X=J?J.split(",").map((U)=>U.trim()).filter(Boolean):[],Y=[],Q=(U)=>{let F=eD(U);if(!Y.includes(F))Y.push(F)};for(let U of X){let F=eD($,U);if(ID(F))Q(h6(F))}Q(eD($)),Q(T0());for(let U of Y)try{let F=`${D}/package.json`,{createRequire:W}=await import("node:module"),q=W(LD(U,"package.json")).resolve(F),G=JSON.parse(H0(q,"utf-8"));if(G.version)return G.version}catch{}for(let U of Y){let F=U,W=a4.parse(F).root;while(F!==W){let K=LD(F,"node_modules",D,N$);if(ID(K))try{let G=JSON.parse(H0(K,"utf-8"));if(G.version)return G.version}catch{}let q=h6(F);if(q===F)break;F=q}}if(D==="@capgo/capacitor-updater"){let U=null,F=LD($,"ios","App","Podfile");if(ID(F))try{let K=H0(F,"utf-8").match(/pod\s+['"]CapgoCapacitorUpdater['"],\s*:path\s*=>\s*['"]([^'"]+)['"]/);if(K?.[1])U=eD(LD($,"ios","App",K[1]))}catch{}if(!U){let W=LD($,"android","capacitor.settings.gradle");if(ID(W))try{let q=H0(W,"utf-8").match(/project\(':capgo-capacitor-updater'\)\.projectDir\s*=\s*new\s+File\(['"]([^'"]+)['"]/);if(q?.[1])U=eD(LD($,"android",q[1])).replace(/\/android$/,"")}catch{}}if(U){let W=LD(U,N$);if(ID(W))try{let K=JSON.parse(H0(W,"utf-8"));if(K.version)return K.version}catch{}}}try{let U=J?J.split(",").map((K)=>K.trim()).filter(Boolean).join(","):J,W=(await nQ($,U)).get(D);if(W)return W}catch{}return null}async function nQ(D=m6(T0()),$=void 0){let J=$?.split(",").map((Q)=>Q.trim()).filter(Boolean);if(J??=[LD(D,N$)],J){for(let Q of J)if(!ID(Q)){let U=`Package.json at ${Q} does not exist`;throw r.error(U),Error(U)}}let X=new Map,{createRequire:Y}=await import("node:module");for(let Q of J){let U=H0(Q),F=JSON.parse(U),W=h6(Q),K=(q,G)=>{try{let I=Y(LD(W,"package.json")).resolve(`${q}/package.json`),B=JSON.parse(H0(I,"utf-8"));if(B.version)return B.version}catch{}let Z=W,H=a4.parse(Z).root;while(Z!==H){let z=LD(Z,"node_modules",q,N$);if(ID(z))try{let B=JSON.parse(H0(z,"utf-8"));if(B.version)return B.version}catch{}let I=h6(Z);if(I===Z)break;Z=I}return NXD(G)};for(let q in F.dependencies)X.set(q,K(q,F.dependencies[q]));for(let q in F.devDependencies)X.set(q,K(q,F.devDependencies[q]))}return X}async function VXD(D=m6(T0()),$=void 0){let J=$?.split(",").map((Y)=>Y.trim()).filter(Boolean);if(J??=[LD(D,N$)],J){for(let Y of J)if(!ID(Y)){let Q=`Package.json at ${Y} does not exist`;throw r.error(Q),Error(Q)}}let X=new Map;for(let Y of J){let Q=H0(Y),U=JSON.parse(Q);for(let F in U.dependencies??{})if(typeof U.dependencies[F]==="string")X.set(F,U.dependencies[F]);for(let F in U.devDependencies??{})if(typeof U.devDependencies[F]==="string")X.set(F,U.devDependencies[F])}return X}function wXD(D){if(!D)return!1;if(D.config&&Object.keys(D.config).length>0)return!0;return!!D.path&&ID(D.path)}async function gx(D,$=!1){let J=jXD;try{let X=await D();if(!wXD(X)){if(!$)r.error(J);throw new xD(J)}return X}catch(X){if(X instanceof xD)throw X;let Y=m0(X);if(!$)r.error(`${J}: ${Y}`);throw new xD(J,{cause:Y})}}function $K(D=!1){return gx(Zq,D)}function LXD(D=!1){return gx(zq,D)}async function RXD(D,$){let J=await LXD();if(J?.config)J.config.plugins??={},J.config.plugins.extConfig??={},J.config.plugins[D]??={},J.config.plugins[D]={...J.config.plugins[D],...$},await Hq(D,J);return J}async function KPD(D){return RXD("CapacitorUpdater",D)}async function I4(D=!1){try{let $=await $K(D),J={host:$?.config?.plugins?.CapacitorUpdater?.localHost||wx,hostWeb:$?.config?.plugins?.CapacitorUpdater?.localWebHost||iQ,hostFilesApi:$?.config?.plugins?.CapacitorUpdater?.localApiFiles||jx,hostApi:$?.config?.plugins?.CapacitorUpdater?.localApi||dQ};if($?.config?.plugins?.CapacitorUpdater?.localSupa&&$?.config?.plugins?.CapacitorUpdater?.localSupaAnon){if(!D)r.info("Using custom supabase instance from capacitor.config.json");J.supaKey=$?.config?.plugins?.CapacitorUpdater?.localSupaAnon,J.supaHost=$?.config?.plugins?.CapacitorUpdater?.localSupa}return J}catch{return{host:wx,hostWeb:iQ,hostFilesApi:jx,hostApi:dQ}}}function Rx(D){return typeof D==="object"&&D!==null}function MXD(D){if(!Rx(D))return!1;let $=D.capacitor;if(Rx($)&&($.ios!==void 0||$.android!==void 0))return!0;return!1}function AXD(D){if(ID(LD(D,"plugin.xml")))return!0;let $=LD(D,N$);if(!ID($))return!1;try{return MXD(JSON.parse(H0($,"utf-8")))}catch{return!1}}async function a7(D=!1,$){let J=(Y)=>{let Q={...Y};return KE(Q,void 0,D),Q};if(!$&&SO)return J(SO);if(!$&&hQ)return hQ.then(J);let X=(async()=>{let Y=await I4(D);try{let Q=yx(),U=await fetch(`${Y.hostApi}/private/config`,{...$?{signal:$}:{},headers:K6(Q?{capgkey:Q}:void 0)});if(!U.ok)throw Error(`HTTP error! status: ${U.status}`);let W={...await U.json(),...Y};if(!$)SO=W;return{...W}}catch{if(!D)r.info(`Local config ${m0(Y)}`);return{...Y}}finally{if(!$)hQ=null}})();if(!$)hQ=X;return X.then(J)}async function qPD(){let D=await I4();try{let $=yx(),J=await fetch(`${D.hostFilesApi}/files/config`,{headers:K6($?{capgkey:$}:void 0)});if(!J.ok)throw Error(`HTTP error! status: ${J.status}`);return await J.json()}catch{return{partialUpload:!1,TUSUpload:!1,partialUploadForced:!1,TUSUploadForced:!1,maxUploadLength:qXD,maxChunkSize:GXD,alertUploadSize:KXD}}}function W9(D){let $=new URL(D);if(!["http:","https:"].includes($.protocol))throw Error("Invalid Supabase host protocol");let J=$.hostname==="localhost"||$.hostname==="127.0.0.1"||$.hostname==="[::1]";if($.protocol==="http:"&&!J)throw Error("Supabase host must use HTTPS (HTTP is only allowed for localhost)");if($.username||$.password)throw Error("Supabase host must not include credentials");if($.search||$.hash)throw Error("Supabase host must not include query parameters or fragments");let X=N1($.pathname);return`${$.origin}${X}`}function vXD(D){if(!D||typeof D!=="object")return"";let $=D;return[$.error,$.message,$.status].filter(Boolean).join(" | ")}function Mx(D,$){let J=D.indexOf($);if(J<0)return D;return D.slice(J+$.length).replace(/^:\s*/,"").split(`
`)[0].trim()}async function GPD(D){let $=await fx(D);if($?.error==="channel_zip_required"||$?.error==="channel_delta_required")return $.message||$.error;let J=D instanceof Error?D.message:String(D??"");if(J.includes("CHANNEL_ZIP_REQUIRED"))return Mx(J,"CHANNEL_ZIP_REQUIRED");if(J.includes("CHANNEL_DELTA_REQUIRED"))return Mx(J,"CHANNEL_DELTA_REQUIRED");return null}function o7(D){if(!D)return!1;try{let $=new URL(W9(D)).hostname.toLowerCase();return $==="sb.capgo.app"||$==="xvwzpoazmxkqosrdewyv.supabase.co"||$==="ibwjdnhknbkcqfbabwei.supabase.co"||$==="aucsybvnhavogdmzwtcw.supabase.co"}catch{return!1}}function EXD(D){if(D.supaHost&&D.supaKey&&D.hostApi===dQ&&!o7(D.supaHost))return`${W9(D.supaHost)}/functions/v1`;return D.hostApi}function ZPD(D){let $=D?.context;return typeof $?.status==="number"?$.status:void 0}async function fx(D){let $=D?.context;if(!$||typeof $.clone!=="function")return null;try{let J=await $.clone().text();try{return JSON.parse(J)}catch{return J?{message:J}:null}}catch{return null}}async function zPD(D){let $=await fx(D);if($){let J=vXD($);if(J)return J}return m0(D)}async function rQ(D,$){let J=($.method??"POST").toUpperCase(),X,Y=$.supaAnon;if($.supaHost&&$.supaAnon&&!o7($.supaHost))X=`${W9($.supaHost)}/functions/v1`;else{let F=await a7(!0);if(Y=$.supaAnon??F.supaKey,F.supaHost&&F.supaKey&&F.hostApi===dQ&&!o7(F.supaHost)&&!($.supaHost&&o7($.supaHost)))X=`${W9(F.supaHost)}/functions/v1`;else if($.useFilesHost)X=F.hostFilesApi;else X=F.hostApi}let Q=X.includes("/functions/v1"),U=`${N1(X)}/${D.replace(/^\//,"")}`;try{let F=await fetch(U,{method:J,redirect:"error",headers:K6({"Content-Type":"application/json",Authorization:Q&&Y?`Bearer ${Y}`:$.apikey,capgkey:$.apikey}),body:J==="GET"||J==="HEAD"?void 0:typeof $.body==="string"?$.body:JSON.stringify($.body??{}),signal:$.signal});if(!F.ok)return{data:null,error:new f$.FunctionsHttpError(F)};return{data:(F.headers.get("content-type")??"").includes("application/json")?await F.json().catch(()=>null):await F.text().catch(()=>null),error:null}}catch(F){return{data:null,error:F instanceof Error?F:Error(String(F))}}}async function HPD(D,$=!0){if(D?.supaHost&&D?.supaAnon){if(o7(D.supaHost))return(await I4($)).hostApi;return`${W9(D.supaHost)}/functions/v1`}let J=await I4($);if(J.supaHost&&J.supaKey)return EXD(J);return(await a7($)).hostApi}async function IPD(D,$,J,X=!1,Y=!0,Q){let U=await a7(X,Q);if($&&J){if(!X)r.info("Using custom supabase instance from provided options");U.supaHost=$,U.supaKey=J}if(!U.supaHost||!U.supaKey){if(!X)r.error(Lx);throw new xD(Lx,{missingSupaHost:!U.supaHost,missingSupaKey:!U.supaKey})}let F=W9(U.supaHost);return UL(F,U.supaKey,{auth:{persistSession:!1},global:{headers:{capgkey:oU("capgkey",D)},...QE()&&Y?{fetch:FE()}:{}}})}async function TXD(D,$){let{data:J}=await D.rpc("is_paying_org",{orgid:$}).single();return J||!1}async function PXD(D,$){let{data:J}=await D.rpc("is_trial_org",{orgid:$}).single();return J||0}async function bXD(D,$,J){let{data:X}=await D.rpc("has_usage_credits_org",J?{orgid:$,appid:J}:{orgid:$}).single();return X||!1}function SXD(D){let{trialDays:$,isPaying:J,hasCredits:X,warning:Y=!0}=D;return!!Y&&$>0&&!J&&!X}async function CXD(D,$){let{data:J,error:X}=await D.rpc("is_allowed_action_org",{orgid:$}).single();if(X)throw Error(`Cannot validate plan: ${m0(X)}`);return J===!0}async function CO(D,$,J,X){let{data:Y,error:Q}=X?await D.rpc("is_allowed_action_org_action",{orgid:$,actions:J,appid:X}):await D.rpc("is_allowed_action_org_action",{orgid:$,actions:J});if(Q){if(X&&Q.code==="PGRST202")return CXD(D,$);throw Error(`Cannot validate plan: ${m0(Q)}`)}return Y===!0}async function kXD(D,$,J,X){if(X){if(await CO(D,$,J,X))return"allowed";if(await CO(D,$,J))return"permission_denied";return"billing_denied"}return await CO(D,$,J)?"allowed":"billing_denied"}async function _XD(D,$){throw r.error(`You need to upgrade your plan to continue to use capgo.
Upgrade here: ${D}
`),await OXD(D),new xD($)}async function uXD(){throw r.error("Cannot validate plan usage for this app. The API key may lack permission to read app billing details."),new xD("Plan validation permission denied")}async function BPD(D,$,J){let{data:X,error:Y}=await D.rpc("get_organization_cli_warnings",{orgid:$,cli_version:J});if(Y){r.error(`Cannot get cli warnings: ${m0(Y)}`);return}if(X.length>0){r.warn(`Found ${X.length} cli warnings for your organization.`);let Q=null;for(let U of X){if(typeof U!=="object"||typeof U.message!=="string"||typeof U.fatal!=="boolean"){r.error(`Invalid cli warning: ${U}`);continue}let F=U;if(F.fatal)r.error(`${F.message.replaceAll("\\n",`
`)}`),Q=Error(F.message);else r.warn(`${F.message.replaceAll("\\n",`
`)}`)}if(Q)throw r.error("Please fix the warnings and try again."),Q;r.info("End of cli warnings.")}}async function OPD(D,$,J,X=!0){let Y=await a7(),Q=`${Y.hostWeb}/settings/organization/plans`,U=await kXD(D,$,["storage"],J);if(U==="permission_denied")await uXD();if(U==="billing_denied")await _XD(Q,"Plan upgrade required for upload");let[F,W,K]=await Promise.all([PXD(D,$),TXD(D,$),bXD(D,$,J)]);if(SXD({trialDays:F,isPaying:W,hasCredits:K,warning:X}))r.warn(`WARNING !!
Trial expires in ${F} days, upgrade here: ${Y.hostWeb}/settings/organization/plans
`)}function cQ(D){try{if(!ID(D))return;return H0(D,"utf8").trim()||void 0}catch{return}}function yx(){let D=o4.CAPGO_TOKEN?.trim();if(D)return D;let $=cQ(`${vx()}/.capgo`);if($)return $;return cQ(".capgo")}function ME(D=!1,$=(J)=>r.info(J)){let J=o4.CAPGO_TOKEN?.trim();if(J){if(!D)$("Use CAPGO_TOKEN environment variable");return J}let Y=`${vx()}/.capgo`,Q=cQ(Y);if(Q){if(!D)$(`Use global API key ${Y}`)}else if(Y=".capgo",Q=cQ(Y),Q&&!D)$(`Use local API key ${Y}`);if(!Q){let F=`No Capgo API key found. Run \`${wC()}\` first, then retry this command.`;throw r.error(F),new xD(F)}return Q}async function*fO(D){let $=await K9(D,{withFileTypes:!0});for(let J of $){let X=eD(D,J.name);if(J.isDirectory()&&!J.name.startsWith(".")&&!J.name.startsWith("node_modules")&&!J.name.startsWith("dist"))yield*fO(X);else yield X}}function NPD(D){let J=(D.endsWith(".br")?D.slice(0,-3):D).split(".").pop()?.toLowerCase()||"";return{html:"text/html",htm:"text/html",js:"application/javascript",mjs:"application/javascript",cjs:"application/javascript",css:"text/css",json:"application/json",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",svg:"image/svg+xml",ico:"image/x-icon",avif:"image/avif",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",otf:"font/otf",eot:"application/vnd.ms-fontobject",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",mp4:"video/mp4",webm:"video/webm",xml:"application/xml",txt:"text/plain",md:"text/markdown",pdf:"application/pdf",wasm:"application/wasm",map:"application/json"}[J]||"application/octet-stream"}function C1(D,$){return`${D}-${$?"ts":"js"}`}function k1(D,$){if(!$)r.info(`Found ${D} project`)}function gXD(D){if(ID(eD(D,"angular.json")))return"angular";if(ID(eD(D,"nuxt.config.js"))||ID(eD(D,"nuxt.config.ts")))return"nuxtjs";if(ID(eD(D,"next.config.js"))||ID(eD(D,"next.config.mjs"))||ID(eD(D,"next.config.ts")))return"nextjs";if(ID(eD(D,"svelte.config.js"))||ID(eD(D,"svelte.config.ts")))return"sveltekit";if(ID(eD(D,"vue.config.js"))||ID(eD(D,"vue.config.ts")))return"vue"}function hx(D){if(D.get("@angular/core"))return"angular";if(D.get("nuxt"))return"nuxtjs";if(D.get("next"))return"nextjs";if(D.get("@sveltejs/kit"))return"sveltekit";if(D.get("svelte"))return"svelte";if(D.get("vue"))return"vue";if(D.get("react"))return"react"}async function xXD(D,$){let J=ID(eD(D,"tsconfig.json")),X=gXD(D);if(X)return k1(X,$),C1(X,J);let Y=eD(D,N$);if(!ID(Y))return;let Q=await nQ(void 0,Y),U=hx(Q);if(!U)return;return k1(U,$),C1(U,J)}function kO(D,$){if(!$)return;let J=eD($);if(!D.includes(J))D.push(J)}function fXD(D){let $=D,J=a4.parse($).root;while(!0){if(ID(eD($,N$)))return $;if($===J)return;let X=h6($);if(X===$)return;$=X}}function yXD(D){let $=[],J=D?.split(",").map((X)=>X.trim()).filter(Boolean)[0];if(J)kO($,h6(eD(J)));return kO($,fXD(T0())),kO($,m6(T0())),$}async function VPD(D){let $=T0(),J=!1,X=D?.quiet??!1;for(let Q of yXD(D?.packageJsonPath)){let U=await xXD(Q,X);if(U)return U}let Y=eD($,"tsconfig.json");if(ID(Y))J=!0;for await(let Q of fO($)){if(Q.includes("angular.json"))return k1("angular",X),C1("angular",J);if(Q.includes("nuxt.config.js")||Q.includes("nuxt.config.ts"))return k1("nuxtjs",X),C1("nuxtjs",J);if(Q.includes("next.config.js")||Q.includes("next.config.mjs")||Q.includes("next.config.ts"))return k1("nextjs",X),C1("nextjs",J);if(Q.includes("svelte.config.js")||Q.includes("svelte.config.ts"))return k1("sveltekit",X),C1("sveltekit",J);if(Q.includes("vue.config.js")||Q.includes("vue.config.ts"))return k1("vue",X),C1("vue",J);if(Q.includes(N$)){let U=h6(Q),F=await nQ(U),W=hx(F);if(W)return k1(W,X),C1(W,J)}}return"unknown"}function wPD(D,$,J=T0()){if(D==="angular-js"||D==="angular-ts")return $?"src/main.ts":"src/main.js";if(D==="nextjs-js"||D==="nextjs-ts")return $?"src/app/layout.tsx":"src/app/layout.js";if(D==="svelte-js"||D==="svelte-ts")return $?"src/main.ts":"src/main.js";if(D==="vue-js"||D==="vue-ts")return $?"src/main.ts":"src/main.js";if(D==="react-js"||D==="react-ts"){let X=$?"src/main.tsx":"src/main.js",Y=$?"src/index.tsx":"src/index.js";if(ID(eD(J,X)))return X;return Y}return null}async function jPD(D){let $=D.replace(/-(?:ts|js)$/,"");if($==="angular")return r.info("Angular project detected"),"build";if($==="nuxtjs")return r.info("Nuxtjs project detected"),"generate";if($==="nextjs"){if(r.info("Nextjs project detected"),r.warn("Please make sure you have configured static export in your next.config.js: https://nextjs.org/docs/pages/building-your-application/deploying/static-exports"),r.warn("Please make sure you have the output: 'export' and distDir: 'dist' in your next.config.js"),!await O8({message:"Do you want to continue?"}))throw r.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}if($==="sveltekit"){if(r.info("Sveltekit project detected"),r.warn("Please make sure you have the adapter-static installed: https://kit.svelte.dev/docs/adapter-static"),r.warn("Please make sure you have the pages: 'dist' and assets: 'dest', in your svelte.config.js adapter"),!await O8({message:"Do you want to continue?"}))throw r.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}return"build"}async function LPD(D=!1,$=T0()){let J=/(main|index)\.(ts|tsx|js|jsx)$/,X="",Y=eD($),Q=Y.split("/").length;for await(let U of fO(Y))if(U.split("/").length-Q<=2&&J.test(U)){if(X=U,!D)r.info(`Found main file here ${U}`);break}return X}function RPD(D,$){return D.from("app_versions").upsert($,{onConflict:"name,app_id"}).eq("app_id",$.app_id).eq("name",$.name)}async function MPD(D,$,J,X){let Y={app_id:$,name:J,version:0};try{let Q=await rQ("files/upload_link",{apikey:D,body:Y,useFilesHost:!0,supaHost:X?.supaHost,supaAnon:X?.supaAnon});if(Q.error){if(Q.error instanceof f$.FunctionsHttpError){let U=await Q.error.context.json().catch(()=>({}));r.error(`Upload URL error: ${U.status||JSON.stringify(U)}`)}else r.error(`Cannot get upload url: ${Q.error.message}`);return""}return Q.data?.url??""}catch(Q){r.error(`Cannot get upload url ${m0(Q)}`)}return""}async function*mx(D){let $=K9(D,{withFileTypes:!0});for(let J of $){let X=LD(D,J.name);if(J.isDirectory())yield*mx(X);else yield X}}function TPD(D,$="5.10.0",J="6.25.0",X="7.25.0"){if(D.major===5&&n1(D,o$($)))return!0;if(D.major===6&&n1(D,o$(J)))return!0;if(D.major===7&&n1(D,o$(X)))return!0;return!1}async function PPD(D){let $=[],J=[".DS_Store",".git",".gitignore","node_modules","package-lock.json","tsconfig.json","tsconfig.app.json","tsconfig.spec.json","tsconfig.app.json","tsconfig.spec.json","tsconfig.app.json","tsconfig.spec.json"];for await(let X of mx(D)){if(J.some((F)=>X.includes(F))){r.info(`Ignoring file ${X}, please ensure you have only required files in your dist folder`);continue}let Y=H0(X);if(Y.length===0){r.info(`Ignoring empty file ${X}, please ensure you have only required files in your dist folder`);continue}let Q=await YC(Y,"sha256"),U=Tx(D,X);if(U.startsWith("/"))U=U.substring(1);$.push({file:U,hash:Q})}return $}async function bPD(D){if(Ex()==="win32")return mXD(D);else return hXD(D)}function hXD(D){let $=new gO.default;return $.addLocalFolder(D),$.toBuffer()}async function mXD(D){r.info("Zipping file windows mode");let $=new gO.default,J=(X,Y)=>{let Q=K9(X);for(let U of Q){let F=LD(X,U),W=UXD(F);if(W.isFile()){let K=H0(F);$.addFile(LD(Y,U).split(Px).join("/"),K)}else if(W.isDirectory())J(F,LD(Y,U))}};return J(D,""),$.toBuffer()}function lXD(D){let $=uO();return`App ${D} does not exist, run first \`${$.runner} @capgo/cli app add ${D}\` to create it`}function dXD(D){let J=D?.originalResponse?.getBody?.(),X=D instanceof Error?D.message:String(D??"");return`${J??""} ${X}`.includes("app_not_found")}async function SPD(D,$,J,X,Y,Q,U,F){return new Promise((W,K)=>{X2(D,{channel:"app",event:"App TUS upload",org_id:J,tracking_version:2,tags:{"app-id":X}}),new pQ.Upload($,{endpoint:`${U.hostFilesApi}/files/upload/attachments/`,chunkSize:F,retryDelays:[...ZXD],metadataForPartialUploads:{filename:`orgs/${J}/apps/${X}/${Y}.zip`,filetype:"application/gzip"},metadata:{filename:`orgs/${J}/apps/${X}/${Y}.zip`,filetype:"application/zip"},headers:K6({Authorization:D}),onError(G){if(r.error(`Error uploading bundle: ${G.message}`),dXD(G)){K(Error(lXD(X)));return}if(G instanceof pQ.DetailedError){let Z=G.originalResponse?.getBody(),H=G.originalResponse?.getStatus(),z=G.originalRequest?.getURL(),I=(()=>{try{let B=JSON.parse(Z||'{"error": "unknown error"}');return B.status||B.error||B.message||"unknown error"}catch{return Z||G.message}})();K(Error(`TUS upload failed (status ${H??"unknown"}, url ${z??"unknown"}): ${I}`))}else K(Error(`TUS upload failed: ${G.message||G.toString()}`))},onProgress(G,Z){let H=(G/Z*100).toFixed(2);Q.message(`Uploaded ${H}%`)},async onSuccess(){await X2(D,{channel:"app",event:"App TUS done",org_id:J,tracking_version:2,tags:{"app-id":X}}).catch(),W(!0)}}).start()})}async function CPD(D,$,J,X){let Q=await rQ("private/delete_failed_version",{apikey:D,method:"DELETE",body:{app_id:$,name:J},supaHost:X?.supaHost,supaAnon:X?.supaAnon});if(Q.error){if(Q.error instanceof f$.FunctionsHttpError){let U=await Q.error.context.json().catch(()=>({}));throw Error(U.status||U.message||JSON.stringify(U))}throw Error(Q.error.message)}}async function kPD(D,$,J,X,Y){let U=await rQ("private/set_manifest",{apikey:D,body:{app_id:$,name:J,manifest:X},supaHost:Y?.supaHost,supaAnon:Y?.supaAnon});if(U.error){if(U.error instanceof f$.FunctionsHttpError){let F=await U.error.context.json().catch(()=>({}));throw Error(F.error||F.status||F.message||JSON.stringify(F))}throw Error(U.error.message)}}async function _PD(D,$){if(!$.app_id||!$.name||!$.created_by)return r.error("missing app_id, name, or created_by"),Promise.reject(Error("missing app_id, name, or created_by"));let{data:J,error:X}=await D.from("channels").select().eq("app_id",$.app_id).eq("name",$.name).single();if(J&&!X)return D.from("channels").update($).eq("app_id",$.app_id).eq("name",$.name).select().single();return D.from("channels").insert($).select().single()}async function X2(D,$,J,X,Y,Q){if((d5(o4.CAPGO_DISABLE_TELEMETRY)||d5(o4.CAPGO_DISABLE_POSTHOG))&&!$.notifyConsole)return;try{let F={};try{F=DE()}catch(H){if(J)r.error(`Failed to enrich event tags, sending caller tags only: ${m0(H)}`)}let W={...$,nonPersonTags:{...F,...$.nonPersonTags??{}}};if(J)r.info(`Get remove config: for ${$.event}`);let K=Y??(await a7(!0,X)).hostApi;if(J)r.info(`Sending analytics event: ${JSON.stringify(W)}`);let q=new AbortController,G=setTimeout(()=>q.abort(),1e4),Z=X?typeof AbortSignal.any==="function"?AbortSignal.any([q.signal,X]):X:q.signal;try{let H=await fetch(`${N1(K)}/private/events`,{method:"POST",body:JSON.stringify(W),headers:K6({"Content-Type":"application/json",capgkey:D}),signal:Z,redirect:Q});if(clearTimeout(G),!H.ok)throw Error(`HTTP error! status: ${H.status}`);let z=await H.json();if(z.error&&J)r.error(`Failed to send analytics event: ${z.error}`)}finally{clearTimeout(G)}}catch(F){if(J)r.error("Failed to send Stats event details:"),r.error(m0(F))}}function iXD(D){if(r.error(`
\uD83D\uDD10 Access Denied: Two-Factor Authentication Required`),r.error("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"),D)r.error(`
The organization "${D}" requires all members to have 2FA enabled.`);else r.error(`
This organization requires all members to have 2FA enabled.`);throw r.error(`
To regain access:`),r.error(` 1. Go to ${kx("/settings/account")}`),r.error(" 2. Enable Two-Factor Authentication on your account"),r.error(" 3. Try your command again"),r.error(`
For more information, visit: https://capgo.app/docs/webapp/2fa-enforcement/
`),Error("2FA required for this organization")}async function cXD(D,$,J,X){return(await Promise.all(J.map(async(Q)=>{return await lx(D,$,X,{orgId:Q.gid})?Q:null}))).filter((Q)=>Q!==null)}async function pXD(D,$,J){let{error:X,data:Y}=await D.rpc("get_orgs_v7");if(X)throw r.error("Cannot get the list of organizations - exiting"),r.error(m0(X)),Error("Cannot get the list of organizations");if(Y.length===0)throw r.error("Could not get organization please create an organization first"),Error("No organizations available");let Q=await cXD(D,$,Y,J);if(Q.length===0)throw r.error(`Could not find organization with permission: ${J}`),Error("Could not find organization with required permission");return{allOrganizations:Y,allowedOrganizations:Q}}async function uPD(D,$,J){let{allOrganizations:X,allowedOrganizations:Y}=await pXD(D,$,J),Q=Y.length>1?await Ow({message:"Please pick the organization that you want to insert to",options:Y.map((W)=>{let K=W.enforcing_2fa&&!W["2fa_has_access"]?" ⚠️ (2FA required)":"";return{value:W.gid,label:`${W.name}${K}`}})}):Y[0].gid;if(p1(Q))throw r.warn("Canceled organization selection, exiting"),new xD("Organization selection cancelled");let U=Q,F=X.find((W)=>W.gid===U);if(F.enforcing_2fa&&!F["2fa_has_access"])iXD(F.name);return r.info(`Using the organization "${F.name}" as the app owner`),F}async function nXD(D,$,J=!1){let{data:X,error:Y}=await D.rpc("request_actor_user_id"),Q=(X||"").toString();if(Y){if(!J)r.error(Y.message);throw Y}if(!Q){if(!J)r.error("Capgo authentication failed: invalid Capgo API key or insufficient Capgo permissions.");throw Error("Capgo authentication failed: invalid Capgo API key or insufficient Capgo permissions.")}return Q}async function lx(D,$,J,X={}){let{data:Y,error:Q}=await D.rpc("cli_check_permission",{apikey:$,permission_key:J,org_id:X.orgId??null,app_id:X.appId??null,channel_id:X.channelId??null});if(Q)throw r.error(`Cannot check permission ${J}`),r.error(m0(Q)),Error(`Cannot check permission ${J}`);return!!Y}async function rXD(D,$,J,X={},Y={}){if(await lx(D,$,J,X))return;let U=Y.message||`Insufficient permissions for ${J}`;if(!Y.silent)r.error(U);throw new xD(`Insufficient permissions for ${J}`,{permissionKey:J,...X})}async function gPD(D,$,J,X,Y,Q){await nXD(D,$,Q),await rXD(D,$,J,{orgId:X},{message:Y,silent:Q})}async function AE(D,$,J){let{data:X,error:Y}=await rQ(`app/${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,supaHost:J?.supaHost,supaAnon:J?.supaAnon});if(!X?.owner_org||Y){let Q=m0(Y);throw r.error(`Cannot get organization id for app id ${$}: ${Q}`),new xD("Cannot get organization id for app",{appId:$,cause:Q})}return X.owner_org}function xPD(D){return new Date(D||"").toLocaleString()}function uO(){if(_O)return{pm:t4,command:F9,installCommand:`${t4} ${F9}`,runner:lQ};let D=m6(T0());return t4=S9(D,"npm"),F9=P3(t4),_O=!0,lQ=fV(D),{pm:t4,command:F9,installCommand:`${t4} ${F9}`,runner:lQ}}function fPD(D){t4=D.pm,F9=D.command,lQ=D.runner,_O=!0}function tXD(D,$){return{summary:`Best fix: recreate and sync ${$==="ios"?"iOS":"Android"} with this one-line command.`,command:`rm -rf ${$} && ${D} cap add ${$} && ${D} cap sync ${$}`}}function dx(D){return K9(D,{withFileTypes:!0}).flatMap((X)=>{let Y=LD(D,X.name);if(X.isDirectory())return dx(Y);else return Y.split(`node_modules${Px}`)[1]||Y})}function ix(D){if(!ID(D))return[];try{return K9(D,{withFileTypes:!0}).flatMap((X)=>{let Y=LD(D,X.name);if(X.isDirectory())return ix(Y);else return Y})}catch{return[]}}function oXD(D,$){let J=[];if($==="ios"){try{let Q=K9(D);for(let U of Q)if(U.endsWith(".podspec"))J.push(LD(D,U))}catch{}let X=LD(D,"Package.swift"),Y=LD(D,"ios","Package.swift");if(ID(X))J.push(X);if(ID(Y))J.push(Y)}else if($==="android"){let X=LD(D,"android"),Y=LD(X,"build.gradle"),Q=LD(X,"build.gradle.kts");if(ID(Y))J.push(Y);if(ID(Q))J.push(Q)}return J}async function aXD(D){let $=LD(D,"ios"),J=LD(D,"android"),X=async(U,F)=>{let W=ID(U)?ix(U).filter((H)=>xx.test(H)):[],K=oXD(D,F),q=[...W,...K].sort((H,z)=>H.localeCompare(z));if(q.length===0)return;let{createHash:G}=await import("node:crypto"),Z=G("sha256");for(let H of q)try{let z=Tx(D,H);Z.update(z);let I=H0(H);Z.update(I)}catch{}return Z.digest("hex")},[Y,Q]=await Promise.all([X($,"ios"),X(J,"android")]);return{ios_checksum:Y,android_checksum:Q}}function sXD(D){let $=[],J=D,X=a4.parse(J).root;while(!0){if($.push(LD(J,"node_modules")),J===X)break;let Y=h6(J);if(Y===J)break;J=Y}return $}async function eXD(D,$){let J=$?$.split(",").map((G)=>G.trim()).filter(Boolean):[],X;try{X=await nQ("",D)}catch(G){throw r.error("Invalid package.json, JSON parsing failed"),r.error(`json parse error: ${m0(G)}`),G instanceof Error?G:Error("Invalid package.json")}let Y=D?D.split(",")[0].trim():void 0,Q=!Y?m6(T0()):a4.resolve(Y).replace(N$,"");if(!X)throw r.error("Missing dependencies section in package.json"),Error("Missing dependencies section in package.json");for(let[G,Z]of Object.entries(X))if(typeof Z!=="string")throw r.error(`Invalid dependency ${G}: ${Z}, expected string, got ${typeof Z}`),Error(`Invalid dependency ${G}: expected string version`);let U=J.length===0?sXD(T0()):J;if(!U.some((G)=>ID(G))){let G=S9(Q,"npm"),Z=P3(G);throw r.error(`Missing node_modules folder at ${U.join(", ")}, please run ${G} ${Z}`),Error("Missing node_modules folder")}let W=!1,K=await VXD(m6(T0()),D),q=await Promise.all(Array.from(X.entries()).map(async([G,Z])=>{let H=!1,z=!1,I=Z,B=K.get(G)??Z,N;for(let j of U){let v=LD(j,G);if(ID(v)){H=!0,N=v;try{let A=LD(v,N$);if(ID(A)){let k=JSON.parse(H0(A,"utf-8"));if(k.version)I=k.version}}catch{}if(!AXD(v))continue;try{if(dx(v).some((k)=>xx.test(k))){z=!0;break}}catch(A){throw r.error(`Error reading node_modules files for ${G} package in ${j}`),r.error(m0(A)),A instanceof Error?A:Error(`Error reading node_modules files for ${G}`)}}}if(!H){W=!0;let j=S9(Q,"npm"),v=P3(j);return r.error(`Missing dependency ${G}, please run ${j} ${v}`),{name:G,version:I,requested_version:B}}let V,O;if(z&&N){let j=await aXD(N);V=j.ios_checksum,O=j.android_checksum}return{name:G,version:I,requested_version:B,native:z,ios_checksum:V,android_checksum:O}}));if(W||q.some((G)=>G.native===void 0))throw r.error("Missing dependencies or invalid dependencies"),r.error("If you use monorepo, workspace or any special package manager you can use the --package-json [path,] and --node-modules [path,] options to make the command work properly"),Error("Missing dependencies or invalid dependencies");return q}async function yPD(D,$,J){let{data:X,error:Y}=await D.from("channels").select("version:app_versions!channels_version_fkey(checksum)").eq("name",J).eq("app_id",$).single(),Q=X;if(Y||Q===null||!Q.version||!Q.version.checksum)return null;return Q.version.checksum}function Ax(D){if(!D)throw r.error("Error parsing native packages, perhaps the metadata does not exist in Capgo?"),Error("Error parsing native packages");for(let J of D){let X=WO(Cg,J);if(!X.success){let Y=X.error.issues.map((Q)=>`${(Q.path??[]).join(".")}: ${Q.message}`).join(", ");throw r.error(`Invalid remote native package data: ${Y}`),Error(`Invalid remote native package data: ${Y}`)}}return new Map(D.map((J)=>[J.name,J]))}async function cx(D,$,J){let{data:X,error:Y}=await D.from("channels").select(`version:app_versions!channels_version_fkey(
native_packages
)`).eq("name",J).eq("app_id",$).maybeSingle();if(Y){let U=Y.code==="PGRST116"||Y.message?.includes("Cannot coerce")?`Multiple channels matched for app "${$}" and channel "${J}". Contact support if this persists.`:Y.message;throw r.error(`Error fetching native packages: ${U}`),Error(`Error fetching native packages: ${U}`)}if(!X)return Ax([]);return Ax(X.version?.native_packages??[])}function vE(D,$){return D||$?.plugins?.CapacitorUpdater?.appId||$?.appId}function DYD(D){let $=[];if(!D.localVersion)return{compatible:!0,reasons:[],message:"Package only exists on remote (will be removed)"};if(!D.remoteVersion)return $.push("new_plugin"),{compatible:!1,reasons:$,message:"New native plugin added (requires app store update)"};let J=!1;try{let G=p3(D.localVersion),Z=p3(D.remoteVersion);J=kw(G,Z)}catch{J=!1}if(!J)$.push("version_mismatch");if(D.localRequestedVersion&&D.remoteRequestedVersion&&D.localRequestedVersion.trim()!==D.remoteRequestedVersion.trim())$.push("requested_version_changed");let X=(G)=>typeof G==="string"&&G.trim().length>0,Y=X(D.localIosChecksum)&&X(D.remoteIosChecksum)&&D.localIosChecksum!==D.remoteIosChecksum,Q=X(D.localAndroidChecksum)&&X(D.remoteAndroidChecksum)&&D.localAndroidChecksum!==D.remoteAndroidChecksum;if(Y&&Q)$.push("both_platforms_changed");else if(Y)$.push("ios_code_changed");else if(Q)$.push("android_code_changed");let U=X(D.localIosChecksum)!==X(D.remoteIosChecksum),F=X(D.localAndroidChecksum)!==X(D.remoteAndroidChecksum);if(U||F)$.push("platform_checksum_metadata_changed");let W=[],K=(G)=>G!=="requested_version_changed";for(let G of $)switch(G){case"version_mismatch":W.push(`version changed: ${D.remoteVersion} → ${D.localVersion}`);break;case"requested_version_changed":W.push(`requested version changed: ${D.remoteRequestedVersion??"unknown"} → ${D.localRequestedVersion??"unknown"}`);break;case"ios_code_changed":W.push("iOS native code changed");break;case"android_code_changed":W.push("Android native code changed");break;case"both_platforms_changed":W.push("iOS and Android native code changed");break;case"platform_checksum_metadata_changed":W.push("iOS/Android checksum metadata appeared or disappeared (may be Capgo CLI change — verify native code)");break;case"new_plugin":W.push("new plugin (requires app store update)");break;case"removed_plugin":W.push("plugin removed");break}if(!$.some(K))return{compatible:!0,reasons:$,message:W.length>0?W.join(", "):"Compatible"};return{compatible:!1,reasons:$,message:W.join(", ")}}function hPD(D){return DYD(D).compatible}async function mPD(D,$,J,X,Y){let Q=await eXD(X,Y),U=await cx(D,$,J),F=Q.filter((K)=>!!K.native).map((K)=>{let q=U.get(K.name);if(q)return{name:K.name,localVersion:K.version,localRequestedVersion:K.requested_version,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,localIosChecksum:K.ios_checksum,remoteIosChecksum:q.ios_checksum,localAndroidChecksum:K.android_checksum,remoteAndroidChecksum:q.android_checksum};return{name:K.name,localVersion:K.version,localRequestedVersion:K.requested_version,remoteVersion:void 0,localIosChecksum:K.ios_checksum,localAndroidChecksum:K.android_checksum}}),W=[...U].filter(([K])=>!Q.some((q)=>q.name===K)).map(([K,q])=>({name:K,localVersion:void 0,remoteVersion:q.version,remoteRequestedVersion:q.requested_version,remoteIosChecksum:q.ios_checksum,remoteAndroidChecksum:q.android_checksum}));return F.push(...W),{finalCompatibility:F,localDependencies:Q}}async function lPD(D,$,J,X){let Y=await cx(D,$,J),Q=X.map((F)=>{let W=Y.get(F.name);if(W)return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:W.version,remoteRequestedVersion:W.requested_version,localIosChecksum:F.ios_checksum,remoteIosChecksum:W.ios_checksum,localAndroidChecksum:F.android_checksum,remoteAndroidChecksum:W.android_checksum};return{name:F.name,localVersion:F.version,localRequestedVersion:F.requested_version,remoteVersion:void 0,localIosChecksum:F.ios_checksum,localAndroidChecksum:F.android_checksum}}),U=[...Y].filter(([F])=>!X.some((W)=>W.name===F)).map(([F,W])=>({name:F,localVersion:void 0,remoteVersion:W.version,remoteRequestedVersion:W.requested_version,remoteIosChecksum:W.ios_checksum,remoteAndroidChecksum:W.android_checksum}));return Q.push(...U),{finalCompatibility:Q,localDependencies:X}}function px(D){if(!ID(D))return null;try{return JSON.parse(H0(D,"utf-8"))}catch{return null}}function mQ(D){if(!D)return!1;return/@capgo\/capacitor-updater|CapgoCapacitorUpdater|CapacitorUpdaterPlugin/.test(D)}function $YD(D){let $=px(D);if(!$)return!1;let J=$.packageClassList;return Array.isArray(J)&&J.includes("CapacitorUpdaterPlugin")}function JYD(D,$){if(!$)return LD(D,N$);return a4.isAbsolute($)?$:eD(D,$)}function XYD(D=T0(),$){let J=JYD(D,$),X=a4.basename(J)===N$?h6(J):J,Y=[LD(X,"ios","App"),LD(D,"ios","App")].find((A)=>ID(A));if(!Y)return{shouldCheck:!1,valid:!0,details:[]};let Q=px(J),U={...Q?.dependencies,...Q?.devDependencies,...Q?.optionalDependencies},F=Object.hasOwn(U,"@capgo/capacitor-updater"),W=[X,D].some((A)=>ID(LD(A,"node_modules","@capgo","capacitor-updater"))),K=LD(Y,"Podfile"),q=LD(Y,"CapApp-SPM","Package.swift"),G=ID(K)?H0(K,"utf-8"):void 0,Z=ID(q)?H0(q,"utf-8"):void 0,H=mQ(G)||mQ(Z),z=LD(Y,"Podfile.lock"),I=LD(Y,"App","capacitor.plugins.json"),B=LD(Y,"App","capacitor.config.json"),N=ID(z)?H0(z,"utf-8"):void 0,V=ID(I)?H0(I,"utf-8"):void 0,O=mQ(N)||mQ(V)||$YD(B);if(!(F||W||H||O))return{shouldCheck:!1,valid:!0,details:[]};let v=[];if(!H)v.push(`Missing @capgo/capacitor-updater in iOS dependency files (${K} or ${q})`);if(!O)v.push(`Missing @capgo/capacitor-updater in iOS native project outputs (${z}, ${I}, or ${B})`);return{shouldCheck:!0,valid:H&&O,details:v}}function YYD(D,$,J){if(!D.shouldCheck||D.valid)return;let X=tXD($,"ios");J?.(),r.error("Capgo iOS dependency sync verification failed.");for(let Y of D.details)r.error(Y);throw r.error("Stop here to avoid testing on a broken native iOS project."),r.warn(X.summary),r.info(X.command),new xD(Oq)}async function dPD(D,$,J,X){let Y=await O8({message:"Would you like to sync your project with Capacitor now? This is recommended to ensure encrypted updates work properly."});if(p1(Y)){if(D&&$&&J)await J2("onboarding-v2",$,J,"canceled");throw r.warn("Canceled Capacitor sync"),new xD("Capacitor sync cancelled")}if(Y){let Q=uO(),U=N8();U.start("Running the command...");let F;try{await new Promise((W,K)=>{let q=QXD(Q.runner,["cap","sync"],{stdio:"pipe"});q.on("close",(G)=>{if(G===0)W();else K(Error(`Command failed with exit code ${G}`))}),q.on("error",(G)=>{K(G)})})}catch(W){F=W,r.error(`Failed to run Capacitor sync: ${W}`),r.warn(`Please run "${Q.runner} cap sync" manually to ensure encrypted updates work properly`)}if(X?.validateIosUpdater)YYD(XYD(T0(),X.packageJsonPath),Q.runner,()=>U.stop("iOS sync check failed ❌"));if(F){U.stop("Error");return}U.stop("Capacitor sync completed ✅")}else{let Q=uO();r.warn("⚠️ Important: If you upload encrypted bundles without syncing, updates will fail!"),r.info(`Remember to run "${Q.runner} cap sync" before uploading encrypted bundles`)}}var gO,xO,Cx,pQ,r,FXD=".capgo_key",WXD=".capgo_key_v2",tTD,oTD,wx="https://capgo.app",jx="https://files.capgo.app",dQ="https://api.capgo.app",iQ="https://console.capgo.app",aTD=120000,KXD=20971520,qXD=1073741824,GXD=103809024,ZXD,zXD=1e4,eTD="BundleUploadTimeoutError",N$="package.json",Lx="Cannot connect to server please try again later",$PD,HXD=12,_x=2000,jXD="No capacitor config file found, run `cap init` first",xx,SO=null,hQ=null,APD="5.10.0",vPD="6.25.0",EPD="7.0.30",_O=!1,t4="npm",F9="install",lQ="npx";var JK=C(()=>{yV();D1();AF();FL();T3();$E();WE();qE();RE();PE();Qq();QC();HC();Nq();jC();kg();ug();c1();KO();lg();dg();pg();gO=w$(hL(),1),xO=w$(lF(),1),Cx=w$(LR(),1),pQ=w$(tv(),1);r={error:(D)=>yQ("error",D),info:(D)=>yQ("info",D),success:(D)=>yQ("success",D),warn:(D)=>yQ("warn",D)},tTD=`${FXD}.pub`,oTD=`${WXD}.pub`;ZXD=[0,1000,3000,5000,1e4];$PD=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*))*))?(?:\+([0-9a-z-]+(?:\.[0-9a-z-]+)*))?$/i;xx=/([A-Za-z0-9]+)\.(java|swift|kt|scala)$/});var cO=S((Wf)=>{Object.defineProperty(Wf,"__esModule",{value:!0});function P$(D){let $=Object.create(null);for(let J of D.split(","))$[J]=1;return(J)=>(J in $)}var QYD=Object.freeze({}),UYD=Object.freeze([]),FYD=()=>{},WYD=()=>!1,KYD=(D)=>D.charCodeAt(0)===111&&D.charCodeAt(1)===110&&(D.charCodeAt(2)>122||D.charCodeAt(2)<97),qYD=(D)=>D.startsWith("onUpdate:"),GYD=Object.assign,ZYD=(D,$)=>{let J=D.indexOf($);if(J>-1)D.splice(J,1)},zYD=Object.prototype.hasOwnProperty,HYD=(D,$)=>zYD.call(D,$),s4=Array.isArray,ox=(D)=>e4(D)==="[object Map]",ax=(D)=>e4(D)==="[object Set]",mO=(D)=>e4(D)==="[object Date]",IYD=(D)=>e4(D)==="[object RegExp]",s7=(D)=>typeof D==="function",R6=(D)=>typeof D==="string",e7=(D)=>typeof D==="symbol",_1=(D)=>D!==null&&typeof D==="object",BYD=(D)=>{return(_1(D)||s7(D))&&s7(D.then)&&s7(D.catch)},lO=Object.prototype.toString,e4=(D)=>lO.call(D),OYD=(D)=>{return e4(D).slice(8,-1)},sx=(D)=>e4(D)==="[object Object]",NYD=(D)=>R6(D)&&D!=="NaN"&&D[0]!=="-"&&""+parseInt(D,10)===D,VYD=P$(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wYD=P$("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),tQ=(D)=>{let $=Object.create(null);return(J)=>{return $[J]||($[J]=D(J))}},jYD=/-\w/g,LYD=tQ((D)=>{return D.replace(jYD,($)=>$.slice(1).toUpperCase())}),RYD=/\B([A-Z])/g,ex=tQ((D)=>D.replace(RYD,"-$1").toLowerCase()),Df=tQ((D)=>{return D.charAt(0).toUpperCase()+D.slice(1)}),MYD=tQ((D)=>{return D?`on${Df(D)}`:""}),AYD=(D,$)=>!Object.is(D,$),vYD=(D,...$)=>{for(let J=0;J<D.length;J++)D[J](...$)},EYD=(D,$,J,X=!1)=>{Object.defineProperty(D,$,{configurable:!0,enumerable:!1,writable:X,value:J})},TYD=(D)=>{let $=parseFloat(D);return isNaN($)?D:$},PYD=(D)=>{let $=R6(D)?Number(D):NaN;return isNaN($)?D:$},rx,bYD=()=>{return rx||(rx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{})},SYD=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function CYD(D){return SYD.test(D)?`__props.${D}`:`__props[${JSON.stringify(D)}]`}function kYD(D,$){return D+JSON.stringify($,(J,X)=>typeof X==="function"?X.toString():X)}var _YD={TEXT:1,"1":"TEXT",CLASS:2,"2":"CLASS",STYLE:4,"4":"STYLE",PROPS:8,"8":"PROPS",FULL_PROPS:16,"16":"FULL_PROPS",NEED_HYDRATION:32,"32":"NEED_HYDRATION",STABLE_FRAGMENT:64,"64":"STABLE_FRAGMENT",KEYED_FRAGMENT:128,"128":"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,"256":"UNKEYED_FRAGMENT",NEED_PATCH:512,"512":"NEED_PATCH",DYNAMIC_SLOTS:1024,"1024":"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,"2048":"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},uYD={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"NEED_HYDRATION",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},gYD={ELEMENT:1,"1":"ELEMENT",FUNCTIONAL_COMPONENT:2,"2":"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,"4":"STATEFUL_COMPONENT",TEXT_CHILDREN:8,"8":"TEXT_CHILDREN",ARRAY_CHILDREN:16,"16":"ARRAY_CHILDREN",SLOTS_CHILDREN:32,"32":"SLOTS_CHILDREN",TELEPORT:64,"64":"TELEPORT",SUSPENSE:128,"128":"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,"256":"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,"512":"COMPONENT_KEPT_ALIVE",COMPONENT:6,"6":"COMPONENT"},xYD={STABLE:1,"1":"STABLE",DYNAMIC:2,"2":"DYNAMIC",FORWARDED:3,"3":"FORWARDED"},fYD={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},yYD="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",$f=P$(yYD),hYD=$f,tx=2;function mYD(D,$=0,J=D.length){if($=Math.max(0,Math.min($,D.length)),J=Math.max(0,Math.min(J,D.length)),$>J)return"";let X=D.split(/(\r?\n)/),Y=X.filter((F,W)=>W%2===1);X=X.filter((F,W)=>W%2===0);let Q=0,U=[];for(let F=0;F<X.length;F++)if(Q+=X[F].length+(Y[F]&&Y[F].length||0),Q>=$){for(let W=F-tx;W<=F+tx||J>Q;W++){if(W<0||W>=X.length)continue;let K=W+1;U.push(`${K}${" ".repeat(Math.max(3-String(K).length,0))}| ${X[W]}`);let q=X[W].length,G=Y[W]&&Y[W].length||0;if(W===F){let Z=$-(Q-(q+G)),H=Math.max(1,J>Q?q-Z:J-$);U.push(" | "+" ".repeat(Z)+"^".repeat(H))}else if(W>F){if(J>Q){let Z=Math.max(Math.min(J-Q,q),1);U.push(" | "+"^".repeat(Z))}Q+=q+G}}break}return U.join(`
`)}function dO(D){if(s4(D)){let $={};for(let J=0;J<D.length;J++){let X=D[J],Y=R6(X)?Jf(X):dO(X);if(Y)for(let Q in Y)$[Q]=Y[Q]}return $}else if(R6(D)||_1(D))return D}var lYD=/;(?![^(]*\))/g,dYD=/:([^]+)/,iYD=/\/\*[^]*?\*\//g;function Jf(D){let $={};return D.replace(iYD,"").split(lYD).forEach((J)=>{if(J){let X=J.split(dYD);X.length>1&&($[X[0].trim()]=X[1].trim())}}),$}function cYD(D){if(!D)return"";if(R6(D))return D;let $="";for(let J in D){let X=D[J];if(R6(X)||typeof X==="number"){let Y=J.startsWith("--")?J:ex(J);$+=`${Y}:${X};`}}return $}function iO(D){let $="";if(R6(D))$=D;else if(s4(D))for(let J=0;J<D.length;J++){let X=iO(D[J]);if(X)$+=X+" "}else if(_1(D)){for(let J in D)if(D[J])$+=J+" "}return $.trim()}function pYD(D){if(!D)return null;let{class:$,style:J}=D;if($&&!R6($))D.class=iO($);if(J)D.style=dO(J);return D}var nYD="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",rYD="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",tYD="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",oYD="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",aYD=P$(nYD),sYD=P$(rYD),eYD=P$(tYD),DQD=P$(oYD),Xf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$QD=P$(Xf),JQD=P$(Xf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function XQD(D){return!!D||D===""}var YQD=/[>/="'\u0009\u000a\u000c\u0020]/,yO={};function QQD(D){if(yO.hasOwnProperty(D))return yO[D];let $=YQD.test(D);if($)console.error(`unsafe attribute name: ${D}`);return yO[D]=!$}var UQD={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},FQD=P$("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),WQD=P$("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),KQD=P$("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function qQD(D){if(D==null)return!1;let $=typeof D;return $==="string"||$==="number"||$==="boolean"}var GQD=/["'&<>]/;function ZQD(D){let $=""+D,J=GQD.exec($);if(!J)return $;let X="",Y,Q,U=0;for(Q=J.index;Q<$.length;Q++){switch($.charCodeAt(Q)){case 34:Y=""";break;case 38:Y="&";break;case 39:Y="'";break;case 60:Y="<";break;case 62:Y=">";break;default:continue}if(U!==Q)X+=$.slice(U,Q);U=Q+1,X+=Y}return U!==Q?X+$.slice(U,Q):X}var zQD=/^(?:-?>)+|<!--|-->|--!>|<!-$/g;function HQD(D){let $;do $=D,D=D.replace(zQD,"");while(D!==$);return D}var Yf=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function IQD(D,$){return D.replace(Yf,(J)=>$?J==='"'?"\\\\\\\"":`\\\\${J}`:`\\${J}`)}function BQD(D,$){if(D.length!==$.length)return!1;let J=!0;for(let X=0;J&&X<D.length;X++)J=oQ(D[X],$[X]);return J}function oQ(D,$){if(D===$)return!0;let J=mO(D),X=mO($);if(J||X)return J&&X?D.getTime()===$.getTime():!1;if(J=e7(D),X=e7($),J||X)return D===$;if(J=s4(D),X=s4($),J||X)return J&&X?BQD(D,$):!1;if(J=_1(D),X=_1($),J||X){if(!J||!X)return!1;let Y=Object.keys(D).length,Q=Object.keys($).length;if(Y!==Q)return!1;for(let U in D){let F=D.hasOwnProperty(U),W=$.hasOwnProperty(U);if(F&&!W||!F&&W||!oQ(D[U],$[U]))return!1}}return String(D)===String($)}function OQD(D,$){return D.findIndex((J)=>oQ(J,$))}var Qf=(D)=>{return!!(D&&D.__v_isRef===!0)},Uf=(D)=>{return R6(D)?D:D==null?"":s4(D)||_1(D)&&(D.toString===lO||!s7(D.toString))?Qf(D)?Uf(D.value):JSON.stringify(D,Ff,2):String(D)},Ff=(D,$)=>{if(Qf($))return Ff(D,$.value);else if(ox($))return{[`Map(${$.size})`]:[...$.entries()].reduce((J,[X,Y],Q)=>{return J[hO(X,Q)+" =>"]=Y,J},{})};else if(ax($))return{[`Set(${$.size})`]:[...$.values()].map((J)=>hO(J))};else if(e7($))return hO($);else if(_1($)&&!s4($)&&!sx($))return String($);return $},hO=(D,$="")=>{var J;return e7(D)?`Symbol(${(J=D.description)!=null?J:$})`:D};function NQD(D){if(D==null)return"initial";if(typeof D==="string")return D===""?" ":D;if(typeof D!=="number"||!Number.isFinite(D))console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",D);return String(D)}Wf.EMPTY_ARR=UYD;Wf.EMPTY_OBJ=QYD;Wf.NO=WYD;Wf.NOOP=FYD;Wf.PatchFlagNames=uYD;Wf.PatchFlags=_YD;Wf.ShapeFlags=gYD;Wf.SlotFlags=xYD;Wf.camelize=LYD;Wf.capitalize=Df;Wf.cssVarNameEscapeSymbolsRE=Yf;Wf.def=EYD;Wf.escapeHtml=ZQD;Wf.escapeHtmlComment=HQD;Wf.extend=GYD;Wf.genCacheKey=kYD;Wf.genPropsAccessExp=CYD;Wf.generateCodeFrame=mYD;Wf.getEscapedCssVarName=IQD;Wf.getGlobalThis=bYD;Wf.hasChanged=AYD;Wf.hasOwn=HYD;Wf.hyphenate=ex;Wf.includeBooleanAttr=XQD;Wf.invokeArrayFns=vYD;Wf.isArray=s4;Wf.isBooleanAttr=JQD;Wf.isBuiltInDirective=wYD;Wf.isDate=mO;Wf.isFunction=s7;Wf.isGloballyAllowed=$f;Wf.isGloballyWhitelisted=hYD;Wf.isHTMLTag=aYD;Wf.isIntegerKey=NYD;Wf.isKnownHtmlAttr=FQD;Wf.isKnownMathMLAttr=KQD;Wf.isKnownSvgAttr=WQD;Wf.isMap=ox;Wf.isMathMLTag=eYD;Wf.isModelListener=qYD;Wf.isObject=_1;Wf.isOn=KYD;Wf.isPlainObject=sx;Wf.isPromise=BYD;Wf.isRegExp=IYD;Wf.isRenderableAttrValue=qQD;Wf.isReservedProp=VYD;Wf.isSSRSafeAttrName=QQD;Wf.isSVGTag=sYD;Wf.isSet=ax;Wf.isSpecialBooleanAttr=$QD;Wf.isString=R6;Wf.isSymbol=e7;Wf.isVoidTag=DQD;Wf.looseEqual=oQ;Wf.looseIndexOf=OQD;Wf.looseToNumber=TYD;Wf.makeMap=P$;Wf.normalizeClass=iO;Wf.normalizeCssVarValue=NQD;Wf.normalizeProps=pYD;Wf.normalizeStyle=dO;Wf.objectToString=lO;Wf.parseStringStyle=Jf;Wf.propsToAttrMap=UQD;Wf.remove=ZYD;Wf.slotFlagsText=fYD;Wf.stringifyStyle=cYD;Wf.toDisplayString=Uf;Wf.toHandlerKey=MYD;Wf.toNumber=PYD;Wf.toRawType=OYD;Wf.toTypeString=e4});var rO=S((qf)=>{var pO;Object.defineProperty(qf,"__esModule",{value:!0});qf.fromCodePoint=void 0;qf.replaceCodePoint=Kf;qf.decodeCodePoint=yUD;var fUD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);qf.fromCodePoint=(pO=String.fromCodePoint)!==null&&pO!==void 0?pO:(D)=>{let $="";if(D>65535)D-=65536,$+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023;return $+=String.fromCharCode(D),$};function Kf(D){var $;if(D>=55296&&D<=57343||D>1114111)return 65533;return($=fUD.get(D))!==null&&$!==void 0?$:D}function yUD(D){return qf.fromCodePoint(Kf(D))}});var tO=S((Gf)=>{Object.defineProperty(Gf,"__esModule",{value:!0});Gf.decodeBase64=lUD;function lUD(D){let $=typeof atob==="function"?atob(D):typeof Buffer.from==="function"?Buffer.from(D,"base64").toString("binary"):new Buffer(D,"base64").toString("binary"),J=$.length&-2,X=new Uint16Array(J/2);for(let Y=0,Q=0;Y<J;Y+=2){let U=$.charCodeAt(Y),F=$.charCodeAt(Y+1);X[Q++]=U|F<<8}return X}});var oO=S((Zf)=>{Object.defineProperty(Zf,"__esModule",{value:!0});Zf.htmlDecodeTree=void 0;var iUD=tO();Zf.htmlDecodeTree=(0,iUD.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")});var aO=S((Hf)=>{Object.defineProperty(Hf,"__esModule",{value:!0});Hf.xmlDecodeTree=void 0;var cUD=tO();Hf.xmlDecodeTree=(0,cUD.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")});var Vf=S((Of)=>{Object.defineProperty(Of,"__esModule",{value:!0});Of.BinTrieFlags=void 0;var Bf;(function(D){D[D.VALUE_LENGTH=49152]="VALUE_LENGTH",D[D.FLAG13=8192]="FLAG13",D[D.BRANCH_LENGTH=8064]="BRANCH_LENGTH",D[D.JUMP_TABLE=127]="JUMP_TABLE"})(Bf||(Of.BinTrieFlags=Bf={}))});var Mf=S((D8)=>{Object.defineProperty(D8,"__esModule",{value:!0});D8.xmlDecodeTree=D8.htmlDecodeTree=D8.replaceCodePoint=D8.fromCodePoint=D8.decodeCodePoint=D8.EntityDecoder=D8.DecodingMode=void 0;D8.determineBranch=Rf;D8.decodeHTML=sUD;D8.decodeHTMLAttribute=eUD;D8.decodeHTMLStrict=DFD;D8.decodeXML=$FD;var jf=rO(),pUD=oO(),nUD=aO(),b$=Vf(),F0;(function(D){D[D.NUM=35]="NUM",D[D.SEMI=59]="SEMI",D[D.EQUALS=61]="EQUALS",D[D.ZERO=48]="ZERO",D[D.NINE=57]="NINE",D[D.LOWER_A=97]="LOWER_A",D[D.LOWER_F=102]="LOWER_F",D[D.LOWER_X=120]="LOWER_X",D[D.LOWER_Z=122]="LOWER_Z",D[D.UPPER_A=65]="UPPER_A",D[D.UPPER_F=70]="UPPER_F",D[D.UPPER_Z=90]="UPPER_Z"})(F0||(F0={}));var wf=32;function sO(D){return D>=F0.ZERO&&D<=F0.NINE}function rUD(D){return D>=F0.UPPER_A&&D<=F0.UPPER_F||D>=F0.LOWER_A&&D<=F0.LOWER_F}function tUD(D){return D>=F0.UPPER_A&&D<=F0.UPPER_Z||D>=F0.LOWER_A&&D<=F0.LOWER_Z||sO(D)}function oUD(D){return D===F0.EQUALS||tUD(D)}var P0;(function(D){D[D.EntityStart=0]="EntityStart",D[D.NumericStart=1]="NumericStart",D[D.NumericDecimal=2]="NumericDecimal",D[D.NumericHex=3]="NumericHex",D[D.NamedEntity=4]="NamedEntity"})(P0||(P0={}));var X6;(function(D){D[D.Legacy=0]="Legacy",D[D.Strict=1]="Strict",D[D.Attribute=2]="Attribute"})(X6||(D8.DecodingMode=X6={}));class eO{constructor(D,$,J){this.decodeTree=D,this.emitCodePoint=$,this.errors=J,this.state=P0.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=X6.Strict,this.runConsumed=0}startEntity(D){this.decodeMode=D,this.state=P0.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(D,$){switch(this.state){case P0.EntityStart:{if(D.charCodeAt($)===F0.NUM)return this.state=P0.NumericStart,this.consumed+=1,this.stateNumericStart(D,$+1);return this.state=P0.NamedEntity,this.stateNamedEntity(D,$)}case P0.NumericStart:return this.stateNumericStart(D,$);case P0.NumericDecimal:return this.stateNumericDecimal(D,$);case P0.NumericHex:return this.stateNumericHex(D,$);case P0.NamedEntity:return this.stateNamedEntity(D,$)}}stateNumericStart(D,$){if($>=D.length)return-1;if((D.charCodeAt($)|wf)===F0.LOWER_X)return this.state=P0.NumericHex,this.consumed+=1,this.stateNumericHex(D,$+1);return this.state=P0.NumericDecimal,this.stateNumericDecimal(D,$)}stateNumericHex(D,$){while($<D.length){let J=D.charCodeAt($);if(sO(J)||rUD(J)){let X=J<=F0.NINE?J-F0.ZERO:(J|wf)-F0.LOWER_A+10;this.result=this.result*16+X,this.consumed++,$++}else return this.emitNumericEntity(J,3)}return-1}stateNumericDecimal(D,$){while($<D.length){let J=D.charCodeAt($);if(sO(J))this.result=this.result*10+(J-F0.ZERO),this.consumed++,$++;else return this.emitNumericEntity(J,2)}return-1}emitNumericEntity(D,$){var J;if(this.consumed<=$)return(J=this.errors)===null||J===void 0||J.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(D===F0.SEMI)this.consumed+=1;else if(this.decodeMode===X6.Strict)return 0;if(this.emitCodePoint((0,jf.replaceCodePoint)(this.result),this.consumed),this.errors){if(D!==F0.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(D,$){let{decodeTree:J}=this,X=J[this.treeIndex],Y=(X&b$.BinTrieFlags.VALUE_LENGTH)>>14;while($<D.length){if(Y===0&&(X&b$.BinTrieFlags.FLAG13)!==0){let U=(X&b$.BinTrieFlags.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let F=X&b$.BinTrieFlags.JUMP_TABLE;if(D.charCodeAt($)!==F)return this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}while(this.runConsumed<U){if($>=D.length)return-1;let F=this.runConsumed-1,W=J[this.treeIndex+1+(F>>1)],K=F%2===0?W&255:W>>8&255;if(D.charCodeAt($)!==K)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(U>>1),X=J[this.treeIndex],Y=(X&b$.BinTrieFlags.VALUE_LENGTH)>>14}if($>=D.length)break;let Q=D.charCodeAt($);if(Q===F0.SEMI&&Y!==0&&(X&b$.BinTrieFlags.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,Y,this.consumed+this.excess);if(this.treeIndex=Rf(J,X,this.treeIndex+Math.max(1,Y),Q),this.treeIndex<0)return this.result===0||this.decodeMode===X6.Attribute&&(Y===0||oUD(Q))?0:this.emitNotTerminatedNamedEntity();if(X=J[this.treeIndex],Y=(X&b$.BinTrieFlags.VALUE_LENGTH)>>14,Y!==0){if(Q===F0.SEMI)return this.emitNamedEntityData(this.treeIndex,Y,this.consumed+this.excess);if(this.decodeMode!==X6.Strict&&(X&b$.BinTrieFlags.FLAG13)===0)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}$++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var D;let{result:$,decodeTree:J}=this,X=(J[$]&b$.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData($,X,this.consumed),(D=this.errors)===null||D===void 0||D.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(D,$,J){let{decodeTree:X}=this;if(this.emitCodePoint($===1?X[D]&~(b$.BinTrieFlags.VALUE_LENGTH|b$.BinTrieFlags.FLAG13):X[D+1],J),$===3)this.emitCodePoint(X[D+2],J);return J}end(){var D;switch(this.state){case P0.NamedEntity:return this.result!==0&&(this.decodeMode!==X6.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case P0.NumericDecimal:return this.emitNumericEntity(0,2);case P0.NumericHex:return this.emitNumericEntity(0,3);case P0.NumericStart:return(D=this.errors)===null||D===void 0||D.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case P0.EntityStart:return 0}}}D8.EntityDecoder=eO;function Lf(D){let $="",J=new eO(D,(X)=>$+=(0,jf.fromCodePoint)(X));return function(Y,Q){let U=0,F=0;while((F=Y.indexOf("&",F))>=0){$+=Y.slice(U,F),J.startEntity(Q);let K=J.write(Y,F+1);if(K<0){U=F+J.end();break}U=F+K,F=K===0?U+1:U}let W=$+Y.slice(U);return $="",W}}function Rf(D,$,J,X){let Y=($&b$.BinTrieFlags.BRANCH_LENGTH)>>7,Q=$&b$.BinTrieFlags.JUMP_TABLE;if(Y===0)return Q!==0&&X===Q?J:-1;if(Q){let K=X-Q;return K<0||K>=Y?-1:D[J+K]-1}let U=Y+1>>1,F=0,W=Y-1;while(F<=W){let K=F+W>>>1,q=K>>1,Z=D[J+q]>>(K&1)*8&255;if(Z<X)F=K+1;else if(Z>X)W=K-1;else return D[J+U+K]}return-1}var DN=Lf(pUD.htmlDecodeTree),aUD=Lf(nUD.xmlDecodeTree);function sUD(D,$=X6.Legacy){return DN(D,$)}function eUD(D){return DN(D,X6.Attribute)}function DFD(D){return DN(D,X6.Strict)}function $FD(D){return aUD(D,X6.Strict)}var $N=rO();Object.defineProperty(D8,"decodeCodePoint",{enumerable:!0,get:function(){return $N.decodeCodePoint}});Object.defineProperty(D8,"fromCodePoint",{enumerable:!0,get:function(){return $N.fromCodePoint}});Object.defineProperty(D8,"replaceCodePoint",{enumerable:!0,get:function(){return $N.replaceCodePoint}});var JFD=oO();Object.defineProperty(D8,"htmlDecodeTree",{enumerable:!0,get:function(){return JFD.htmlDecodeTree}});var XFD=aO();Object.defineProperty(D8,"xmlDecodeTree",{enumerable:!0,get:function(){return XFD.xmlDecodeTree}})});var Ny=S((Oy)=>{Object.defineProperty(Oy,"__esModule",{value:!0});function ZFD(D,$){if(D==null)return{};var J={};for(var X in D)if({}.hasOwnProperty.call(D,X)){if($.indexOf(X)!==-1)continue;J[X]=D[X]}return J}class i6{constructor(D,$,J){this.line=void 0,this.column=void 0,this.index=void 0,this.line=D,this.column=$,this.index=J}}class F3{constructor(D,$){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=D,this.end=$}}function U$(D,$){let{line:J,column:X,index:Y}=D;return new i6(J,X+$,Y+$)}var Af="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",zFD={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Af},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Af}},vf={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},eQ=(D)=>D.type==="UpdateExpression"?vf.UpdateExpression[`${D.prefix}`]:vf[D.type],HFD={AccessorIsGenerator:({kind:D})=>`A ${D}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:D})=>`Missing initializer in ${D} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:D})=>`\`${D}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:D,exportName:$})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${D}' as '${$}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:D})=>`'${D==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:D})=>`Unsyntactic ${D==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:D})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${D}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:D})=>`Expected number in radix ${D}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:D})=>`Escape sequence in keyword ${D}.`,InvalidIdentifier:({identifierName:D})=>`Invalid identifier ${D}.`,InvalidLhs:({ancestor:D})=>`Invalid left-hand side in ${eQ(D)}.`,InvalidLhsBinding:({ancestor:D})=>`Binding invalid left-hand side in ${eQ(D)}.`,InvalidLhsOptionalChaining:({ancestor:D})=>`Invalid optional chaining in the left-hand side of ${eQ(D)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:D})=>`Unexpected character '${D}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:D})=>`Private name #${D} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:D})=>`Label '${D}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:D})=>`This experimental syntax requires enabling the parser plugin: ${D.map(($)=>JSON.stringify($)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:D})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${D.map(($)=>JSON.stringify($)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:D})=>`Duplicate key "${D}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:D})=>`An export name cannot include a lone surrogate, found '\\u${D.toString(16)}'.`,ModuleExportUndefined:({localName:D})=>`Export '${D}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:D})=>`Private names are only allowed in property accesses (\`obj.#${D}\`) or in \`in\` expressions (\`#${D} in obj\`).`,PrivateNameRedeclaration:({identifierName:D})=>`Duplicate private name #${D}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:D})=>`Unexpected keyword '${D}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:D})=>`Unexpected reserved word '${D}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:D,unexpected:$})=>`Unexpected token${$?` '${$}'.`:""}${D?`, expected "${D}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:D,onlyValidPropertyName:$})=>`The only valid meta property for ${D} is ${D}.${$}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:D})=>`Identifier '${D}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},IFD={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:D})=>`Assigning to '${D}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:D})=>`Binding '${D}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},BFD={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:D})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(D)}\`.`},OFD=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),NFD=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:D})=>`Invalid topic token ${D}. In order to use ${D} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${D}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:D})=>`Hack-style pipe body cannot be an unparenthesized ${eQ({type:D})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),VFD=["message"];function Ef(D,$,J){Object.defineProperty(D,$,{enumerable:!1,configurable:!0,value:J})}function wFD({toMessage:D,code:$,reasonCode:J,syntaxPlugin:X}){let Y=J==="MissingPlugin"||J==="MissingOneOfPlugins",Q={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(Q[J])J=Q[J];return function U(F,W){let K=SyntaxError();if(K.code=$,K.reasonCode=J,K.loc=F,K.pos=F.index,K.syntaxPlugin=X,Y)K.missingPlugin=W.missingPlugin;return Ef(K,"clone",function(G={}){var Z;let{line:H,column:z,index:I}=(Z=G.loc)!=null?Z:F;return U(new i6(H,z,I),Object.assign({},W,G.details))}),Ef(K,"details",W),Object.defineProperty(K,"message",{configurable:!0,get(){let q=`${D(W)} (${F.line}:${F.column})`;return this.message=q,q},set(q){Object.defineProperty(this,"message",{value:q,writable:!0})}}),K}}function M6(D,$){if(Array.isArray(D))return(X)=>M6(X,D[0]);let J={};for(let X of Object.keys(D)){let Y=D[X],Q=typeof Y==="string"?{message:()=>Y}:typeof Y==="function"?{message:Y}:Y,{message:U}=Q,F=ZFD(Q,VFD),W=typeof U==="string"?()=>U:U;J[X]=wFD(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:X,toMessage:W},$?{syntaxPlugin:$}:{},F))}return J}var M=Object.assign({},M6(zFD),M6(HFD),M6(IFD),M6(BFD),M6`pipelineOperator`(NFD));function jFD(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function LFD(D){let $=jFD();if(D==null)return $;if(D.annexB!=null&&D.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let J of Object.keys($))if(D[J]!=null)$[J]=D[J];if($.startLine===1){if(D.startIndex==null&&$.startColumn>0)$.startIndex=$.startColumn;else if(D.startColumn==null&&$.startIndex>0)$.startColumn=$.startIndex}else if(D.startColumn==null||D.startIndex==null){if(D.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}if($.sourceType==="commonjs"){if(D.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(D.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(D.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return $}var{defineProperty:RFD}=Object,Tf=(D,$)=>{if(D)RFD(D,$,{enumerable:!1,value:D[$]})};function D3(D){return Tf(D.loc.start,"index"),Tf(D.loc.end,"index"),D}var MFD=(D)=>class extends D{parse(){let J=D3(super.parse());if(this.optionFlags&256)J.tokens=J.tokens.map(D3);return J}parseRegExpLiteral({pattern:J,flags:X}){let Y=null;try{Y=new RegExp(J,X)}catch(U){}let Q=this.estreeParseLiteral(Y);return Q.regex={pattern:J,flags:X},Q}parseBigIntLiteral(J){let X;try{X=BigInt(J)}catch(Q){X=null}let Y=this.estreeParseLiteral(X);return Y.bigint=String(Y.value||J),Y}parseDecimalLiteral(J){let Y=this.estreeParseLiteral(null);return Y.decimal=String(Y.value||J),Y}estreeParseLiteral(J){return this.parseLiteral(J,"Literal")}parseStringLiteral(J){return this.estreeParseLiteral(J)}parseNumericLiteral(J){return this.estreeParseLiteral(J)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(J){return this.estreeParseLiteral(J)}estreeParseChainExpression(J,X){let Y=this.startNodeAtNode(J);return Y.expression=J,this.finishNodeAt(Y,"ChainExpression",X)}directiveToStmt(J){let X=J.value;delete J.value,this.castNodeTo(X,"Literal"),X.raw=X.extra.raw,X.value=X.extra.expressionValue;let Y=this.castNodeTo(J,"ExpressionStatement");return Y.expression=X,Y.directive=X.extra.rawValue,delete X.extra,Y}fillOptionalPropertiesForTSESLint(J){}cloneEstreeStringLiteral(J){let{start:X,end:Y,loc:Q,range:U,raw:F,value:W}=J,K=Object.create(J.constructor.prototype);return K.type="Literal",K.start=X,K.end=Y,K.loc=Q,K.range=U,K.raw=F,K.value=W,K}initFunction(J,X){super.initFunction(J,X),J.expression=!1}checkDeclaration(J){if(J!=null&&this.isObjectProperty(J))this.checkDeclaration(J.value);else super.checkDeclaration(J)}getObjectOrClassMethodParams(J){return J.value.params}isValidDirective(J){var X;return J.type==="ExpressionStatement"&&J.expression.type==="Literal"&&typeof J.expression.value==="string"&&!((X=J.expression.extra)!=null&&X.parenthesized)}parseBlockBody(J,X,Y,Q,U){super.parseBlockBody(J,X,Y,Q,U);let F=J.directives.map((W)=>this.directiveToStmt(W));J.body=F.concat(J.body),delete J.directives}parsePrivateName(){let J=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return J;return this.convertPrivateNameToPrivateIdentifier(J)}convertPrivateNameToPrivateIdentifier(J){let X=super.getPrivateNameSV(J);return delete J.id,J.name=X,this.castNodeTo(J,"PrivateIdentifier")}isPrivateName(J){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(J);return J.type==="PrivateIdentifier"}getPrivateNameSV(J){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(J);return J.name}parseLiteral(J,X){let Y=super.parseLiteral(J,X);return Y.raw=Y.extra.raw,delete Y.extra,Y}parseFunctionBody(J,X,Y=!1){super.parseFunctionBody(J,X,Y),J.expression=J.body.type!=="BlockStatement"}parseMethod(J,X,Y,Q,U,F,W=!1){let K=this.startNode();K.kind=J.kind,K=super.parseMethod(K,X,Y,Q,U,F,W),delete K.kind;let{typeParameters:q}=J;if(q)delete J.typeParameters,K.typeParameters=q,this.resetStartLocationFromNode(K,q);let G=this.castNodeTo(K,"FunctionExpression");if(J.value=G,F==="ClassPrivateMethod")J.computed=!1;if(F==="ObjectMethod"){if(J.kind==="method")J.kind="init";return J.shorthand=!1,this.finishNode(J,"Property")}else return this.finishNode(J,"MethodDefinition")}nameIsConstructor(J){if(J.type==="Literal")return J.value==="constructor";return super.nameIsConstructor(J)}parseClassProperty(...J){let X=super.parseClassProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return X;return this.castNodeTo(X,"PropertyDefinition"),X}parseClassPrivateProperty(...J){let X=super.parseClassPrivateProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return X;return this.castNodeTo(X,"PropertyDefinition"),X.computed=!1,X}parseClassAccessorProperty(J){let X=super.parseClassAccessorProperty(J);if(!this.getPluginOption("estree","classFeatures"))return X;if(X.abstract&&this.hasPlugin("typescript"))delete X.abstract,this.castNodeTo(X,"TSAbstractAccessorProperty");else this.castNodeTo(X,"AccessorProperty");return X}parseObjectProperty(J,X,Y,Q){let U=super.parseObjectProperty(J,X,Y,Q);if(U)U.kind="init",this.castNodeTo(U,"Property");return U}finishObjectProperty(J){return J.kind="init",this.finishNode(J,"Property")}isValidLVal(J,X,Y,Q){return J==="Property"?"value":super.isValidLVal(J,X,Y,Q)}isAssignable(J,X){if(J!=null&&this.isObjectProperty(J))return this.isAssignable(J.value,X);return super.isAssignable(J,X)}toAssignable(J,X=!1){if(J!=null&&this.isObjectProperty(J)){let{key:Y,value:Q}=J;if(this.isPrivateName(Y))this.classScope.usePrivateName(this.getPrivateNameSV(Y),Y.loc.start);this.toAssignable(Q,X)}else super.toAssignable(J,X)}toAssignableObjectExpressionProp(J,X,Y){if(J.type==="Property"&&(J.kind==="get"||J.kind==="set"))this.raise(M.PatternHasAccessor,J.key);else if(J.type==="Property"&&J.method)this.raise(M.PatternHasMethod,J.key);else super.toAssignableObjectExpressionProp(J,X,Y)}finishCallExpression(J,X){let Y=super.finishCallExpression(J,X);if(Y.callee.type==="Import"){var Q,U;this.castNodeTo(Y,"ImportExpression"),Y.source=Y.arguments[0],Y.options=(Q=Y.arguments[1])!=null?Q:null,Y.attributes=(U=Y.arguments[1])!=null?U:null,delete Y.arguments,delete Y.callee}else if(Y.type==="OptionalCallExpression")this.castNodeTo(Y,"CallExpression");else Y.optional=!1;return Y}toReferencedArguments(J){if(J.type==="ImportExpression")return;super.toReferencedArguments(J)}parseExport(J,X){let Y=this.state.lastTokStartLoc,Q=super.parseExport(J,X);switch(Q.type){case"ExportAllDeclaration":Q.exported=null;break;case"ExportNamedDeclaration":if(Q.specifiers.length===1&&Q.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(Q,"ExportAllDeclaration"),Q.exported=Q.specifiers[0].exported,delete Q.specifiers;case"ExportDefaultDeclaration":{var U;let{declaration:F}=Q;if((F==null?void 0:F.type)==="ClassDeclaration"&&((U=F.decorators)==null?void 0:U.length)>0&&F.start===Q.start)this.resetStartLocation(Q,Y)}break}return Q}stopParseSubscript(J,X){let Y=super.stopParseSubscript(J,X);if(X.optionalChainMember)return this.estreeParseChainExpression(Y,J.loc.end);return Y}parseMember(J,X,Y,Q,U){let F=super.parseMember(J,X,Y,Q,U);if(F.type==="OptionalMemberExpression")this.castNodeTo(F,"MemberExpression");else F.optional=!1;return F}isOptionalMemberExpression(J){if(J.type==="ChainExpression")return J.expression.type==="MemberExpression";return super.isOptionalMemberExpression(J)}hasPropertyAsPrivateName(J){if(J.type==="ChainExpression")J=J.expression;return super.hasPropertyAsPrivateName(J)}isObjectProperty(J){return J.type==="Property"&&J.kind==="init"&&!J.method}isObjectMethod(J){return J.type==="Property"&&(J.method||J.kind==="get"||J.kind==="set")}castNodeTo(J,X){let Y=super.castNodeTo(J,X);return this.fillOptionalPropertiesForTSESLint(Y),Y}cloneIdentifier(J){let X=super.cloneIdentifier(J);return this.fillOptionalPropertiesForTSESLint(X),X}cloneStringLiteral(J){if(J.type==="Literal")return this.cloneEstreeStringLiteral(J);return super.cloneStringLiteral(J)}finishNodeAt(J,X,Y){return D3(super.finishNodeAt(J,X,Y))}finishNode(J,X){let Y=super.finishNode(J,X);return this.fillOptionalPropertiesForTSESLint(Y),Y}resetStartLocation(J,X){super.resetStartLocation(J,X),D3(J)}resetEndLocation(J,X=this.state.lastTokEndLoc){super.resetEndLocation(J,X),D3(J)}};class q9{constructor(D,$){this.token=void 0,this.preserveSpace=void 0,this.token=D,this.preserveSpace=!!$}}var uD={brace:new q9("{"),j_oTag:new q9("<tag"),j_cTag:new q9("</tag"),j_expr:new q9("<tag>...</tag>",!0)};uD.template=new q9("`",!0);var RD=!0,DD=!0,JN=!0,$3=!0,u1=!0,AFD=!0;class ZN{constructor(D,$={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=D,this.keyword=$.keyword,this.beforeExpr=!!$.beforeExpr,this.startsExpr=!!$.startsExpr,this.rightAssociative=!!$.rightAssociative,this.isLoop=!!$.isLoop,this.isAssign=!!$.isAssign,this.prefix=!!$.prefix,this.postfix=!!$.postfix,this.binop=$.binop!=null?$.binop:null,this.updateContext=null}}var zN=new Map;function bD(D,$={}){$.keyword=D;let J=WD(D,$);return zN.set(D,J),J}function Q$(D,$){return WD(D,{beforeExpr:RD,binop:$})}var Q3=-1,c6=[],HN=[],IN=[],BN=[],ON=[],NN=[];function WD(D,$={}){var J,X,Y,Q;return++Q3,HN.push(D),IN.push((J=$.binop)!=null?J:-1),BN.push((X=$.beforeExpr)!=null?X:!1),ON.push((Y=$.startsExpr)!=null?Y:!1),NN.push((Q=$.prefix)!=null?Q:!1),c6.push(new ZN(D,$)),Q3}function MD(D,$={}){var J,X,Y,Q;return++Q3,zN.set(D,Q3),HN.push(D),IN.push((J=$.binop)!=null?J:-1),BN.push((X=$.beforeExpr)!=null?X:!1),ON.push((Y=$.startsExpr)!=null?Y:!1),NN.push((Q=$.prefix)!=null?Q:!1),c6.push(new ZN("name",$)),Q3}var vFD={bracketL:WD("[",{beforeExpr:RD,startsExpr:DD}),bracketHashL:WD("#[",{beforeExpr:RD,startsExpr:DD}),bracketBarL:WD("[|",{beforeExpr:RD,startsExpr:DD}),bracketR:WD("]"),bracketBarR:WD("|]"),braceL:WD("{",{beforeExpr:RD,startsExpr:DD}),braceBarL:WD("{|",{beforeExpr:RD,startsExpr:DD}),braceHashL:WD("#{",{beforeExpr:RD,startsExpr:DD}),braceR:WD("}"),braceBarR:WD("|}"),parenL:WD("(",{beforeExpr:RD,startsExpr:DD}),parenR:WD(")"),comma:WD(",",{beforeExpr:RD}),semi:WD(";",{beforeExpr:RD}),colon:WD(":",{beforeExpr:RD}),doubleColon:WD("::",{beforeExpr:RD}),dot:WD("."),question:WD("?",{beforeExpr:RD}),questionDot:WD("?."),arrow:WD("=>",{beforeExpr:RD}),template:WD("template"),ellipsis:WD("...",{beforeExpr:RD}),backQuote:WD("`",{startsExpr:DD}),dollarBraceL:WD("${",{beforeExpr:RD,startsExpr:DD}),templateTail:WD("...`",{startsExpr:DD}),templateNonTail:WD("...${",{beforeExpr:RD,startsExpr:DD}),at:WD("@"),hash:WD("#",{startsExpr:DD}),interpreterDirective:WD("#!..."),eq:WD("=",{beforeExpr:RD,isAssign:$3}),assign:WD("_=",{beforeExpr:RD,isAssign:$3}),slashAssign:WD("_=",{beforeExpr:RD,isAssign:$3}),xorAssign:WD("_=",{beforeExpr:RD,isAssign:$3}),moduloAssign:WD("_=",{beforeExpr:RD,isAssign:$3}),incDec:WD("++/--",{prefix:u1,postfix:AFD,startsExpr:DD}),bang:WD("!",{beforeExpr:RD,prefix:u1,startsExpr:DD}),tilde:WD("~",{beforeExpr:RD,prefix:u1,startsExpr:DD}),doubleCaret:WD("^^",{startsExpr:DD}),doubleAt:WD("@@",{startsExpr:DD}),pipeline:Q$("|>",0),nullishCoalescing:Q$("??",1),logicalOR:Q$("||",1),logicalAND:Q$("&&",2),bitwiseOR:Q$("|",3),bitwiseXOR:Q$("^",4),bitwiseAND:Q$("&",5),equality:Q$("==/!=/===/!==",6),lt:Q$("</>/<=/>=",7),gt:Q$("</>/<=/>=",7),relational:Q$("</>/<=/>=",7),bitShift:Q$("<</>>/>>>",8),bitShiftL:Q$("<</>>/>>>",8),bitShiftR:Q$("<</>>/>>>",8),plusMin:WD("+/-",{beforeExpr:RD,binop:9,prefix:u1,startsExpr:DD}),modulo:WD("%",{binop:10,startsExpr:DD}),star:WD("*",{binop:10}),slash:Q$("/",10),exponent:WD("**",{beforeExpr:RD,binop:11,rightAssociative:!0}),_in:bD("in",{beforeExpr:RD,binop:7}),_instanceof:bD("instanceof",{beforeExpr:RD,binop:7}),_break:bD("break"),_case:bD("case",{beforeExpr:RD}),_catch:bD("catch"),_continue:bD("continue"),_debugger:bD("debugger"),_default:bD("default",{beforeExpr:RD}),_else:bD("else",{beforeExpr:RD}),_finally:bD("finally"),_function:bD("function",{startsExpr:DD}),_if:bD("if"),_return:bD("return",{beforeExpr:RD}),_switch:bD("switch"),_throw:bD("throw",{beforeExpr:RD,prefix:u1,startsExpr:DD}),_try:bD("try"),_var:bD("var"),_const:bD("const"),_with:bD("with"),_new:bD("new",{beforeExpr:RD,startsExpr:DD}),_this:bD("this",{startsExpr:DD}),_super:bD("super",{startsExpr:DD}),_class:bD("class",{startsExpr:DD}),_extends:bD("extends",{beforeExpr:RD}),_export:bD("export"),_import:bD("import",{startsExpr:DD}),_null:bD("null",{startsExpr:DD}),_true:bD("true",{startsExpr:DD}),_false:bD("false",{startsExpr:DD}),_typeof:bD("typeof",{beforeExpr:RD,prefix:u1,startsExpr:DD}),_void:bD("void",{beforeExpr:RD,prefix:u1,startsExpr:DD}),_delete:bD("delete",{beforeExpr:RD,prefix:u1,startsExpr:DD}),_do:bD("do",{isLoop:JN,beforeExpr:RD}),_for:bD("for",{isLoop:JN}),_while:bD("while",{isLoop:JN}),_as:MD("as",{startsExpr:DD}),_assert:MD("assert",{startsExpr:DD}),_async:MD("async",{startsExpr:DD}),_await:MD("await",{startsExpr:DD}),_defer:MD("defer",{startsExpr:DD}),_from:MD("from",{startsExpr:DD}),_get:MD("get",{startsExpr:DD}),_let:MD("let",{startsExpr:DD}),_meta:MD("meta",{startsExpr:DD}),_of:MD("of",{startsExpr:DD}),_sent:MD("sent",{startsExpr:DD}),_set:MD("set",{startsExpr:DD}),_source:MD("source",{startsExpr:DD}),_static:MD("static",{startsExpr:DD}),_using:MD("using",{startsExpr:DD}),_yield:MD("yield",{startsExpr:DD}),_asserts:MD("asserts",{startsExpr:DD}),_checks:MD("checks",{startsExpr:DD}),_exports:MD("exports",{startsExpr:DD}),_global:MD("global",{startsExpr:DD}),_implements:MD("implements",{startsExpr:DD}),_intrinsic:MD("intrinsic",{startsExpr:DD}),_infer:MD("infer",{startsExpr:DD}),_is:MD("is",{startsExpr:DD}),_mixins:MD("mixins",{startsExpr:DD}),_proto:MD("proto",{startsExpr:DD}),_require:MD("require",{startsExpr:DD}),_satisfies:MD("satisfies",{startsExpr:DD}),_keyof:MD("keyof",{startsExpr:DD}),_readonly:MD("readonly",{startsExpr:DD}),_unique:MD("unique",{startsExpr:DD}),_abstract:MD("abstract",{startsExpr:DD}),_declare:MD("declare",{startsExpr:DD}),_enum:MD("enum",{startsExpr:DD}),_module:MD("module",{startsExpr:DD}),_namespace:MD("namespace",{startsExpr:DD}),_interface:MD("interface",{startsExpr:DD}),_type:MD("type",{startsExpr:DD}),_opaque:MD("opaque",{startsExpr:DD}),name:WD("name",{startsExpr:DD}),placeholder:WD("%%",{startsExpr:DD}),string:WD("string",{startsExpr:DD}),num:WD("num",{startsExpr:DD}),bigint:WD("bigint",{startsExpr:DD}),decimal:WD("decimal",{startsExpr:DD}),regexp:WD("regexp",{startsExpr:DD}),privateName:WD("#name",{startsExpr:DD}),eof:WD("eof"),jsxName:WD("jsxName"),jsxText:WD("jsxText",{beforeExpr:RD}),jsxTagStart:WD("jsxTagStart",{startsExpr:DD}),jsxTagEnd:WD("jsxTagEnd")};function gD(D){return D>=93&&D<=133}function EFD(D){return D<=92}function Q6(D){return D>=58&&D<=133}function hf(D){return D>=58&&D<=137}function TFD(D){return BN[D]}function X3(D){return ON[D]}function PFD(D){return D>=29&&D<=33}function Pf(D){return D>=129&&D<=131}function bFD(D){return D>=90&&D<=92}function VN(D){return D>=58&&D<=92}function SFD(D){return D>=39&&D<=59}function CFD(D){return D===34}function kFD(D){return NN[D]}function _FD(D){return D>=121&&D<=123}function uFD(D){return D>=124&&D<=130}function x1(D){return HN[D]}function DU(D){return IN[D]}function gFD(D){return D===57}function JU(D){return D>=24&&D<=25}function l6(D){return c6[D]}c6[8].updateContext=(D)=>{D.pop()};c6[5].updateContext=c6[7].updateContext=c6[23].updateContext=(D)=>{D.push(uD.brace)};c6[22].updateContext=(D)=>{if(D[D.length-1]===uD.template)D.pop();else D.push(uD.template)};c6[143].updateContext=(D)=>{D.push(uD.j_expr,uD.j_oTag)};var wN="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",mf="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",xFD=new RegExp("["+wN+"]"),fFD=new RegExp("["+wN+mf+"]");wN=mf=null;var lf=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],yFD=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function WN(D,$){let J=65536;for(let X=0,Y=$.length;X<Y;X+=2){if(J+=$[X],J>D)return!1;if(J+=$[X+1],J>=D)return!0}return!1}function A6(D){if(D<65)return D===36;if(D<=90)return!0;if(D<97)return D===95;if(D<=122)return!0;if(D<=65535)return D>=170&&xFD.test(String.fromCharCode(D));return WN(D,lf)}function J8(D){if(D<48)return D===36;if(D<58)return!0;if(D<65)return!1;if(D<=90)return!0;if(D<97)return D===95;if(D<=122)return!0;if(D<=65535)return D>=170&&fFD.test(String.fromCharCode(D));return WN(D,lf)||WN(D,yFD)}var jN={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},hFD=new Set(jN.keyword),mFD=new Set(jN.strict),lFD=new Set(jN.strictBind);function df(D,$){return $&&D==="await"||D==="enum"}function cf(D,$){return df(D,$)||mFD.has(D)}function pf(D){return lFD.has(D)}function nf(D,$){return cf(D,$)||pf(D)}function dFD(D){return hFD.has(D)}function iFD(D,$,J){return D===64&&$===64&&A6(J)}var cFD=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function pFD(D){return cFD.has(D)}class XU{constructor(D){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=D}}class YU{constructor(D,$){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=D,this.inModule=$}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let D=this.currentThisScopeFlags();return(D&64)>0&&(D&2)===0}get inStaticBlock(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&128)return!0;if($&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(D){return new XU(D)}enter(D){this.scopeStack.push(this.createScope(D))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(D){return!!(D.flags&130||!this.parser.inModule&&D.flags&1)}declareName(D,$,J){let X=this.currentScope();if($&8||$&16){this.checkRedeclarationInScope(X,D,$,J);let Y=X.names.get(D)||0;if($&16)Y=Y|4;else{if(!X.firstLexicalName)X.firstLexicalName=D;Y=Y|2}if(X.names.set(D,Y),$&8)this.maybeExportDefined(X,D)}else if($&4){for(let Y=this.scopeStack.length-1;Y>=0;--Y)if(X=this.scopeStack[Y],this.checkRedeclarationInScope(X,D,$,J),X.names.set(D,(X.names.get(D)||0)|1),this.maybeExportDefined(X,D),X.flags&1667)break}if(this.parser.inModule&&X.flags&1)this.undefinedExports.delete(D)}maybeExportDefined(D,$){if(this.parser.inModule&&D.flags&1)this.undefinedExports.delete($)}checkRedeclarationInScope(D,$,J,X){if(this.isRedeclaredInScope(D,$,J))this.parser.raise(M.VarRedeclaration,X,{identifierName:$})}isRedeclaredInScope(D,$,J){if(!(J&1))return!1;if(J&8)return D.names.has($);let X=D.names.get($)||0;if(J&16)return(X&2)>0||!this.treatFunctionsAsVarInScope(D)&&(X&1)>0;return(X&2)>0&&!(D.flags&8&&D.firstLexicalName===$)||!this.treatFunctionsAsVarInScope(D)&&(X&4)>0}checkLocalExport(D){let{name:$}=D;if(!this.scopeStack[0].names.has($))this.undefinedExports.set($,D.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&1667)return $}}currentThisScopeFlags(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&1731&&!($&4))return $}}}class rf extends XU{constructor(...D){super(...D);this.declareFunctions=new Set}}class tf extends YU{createScope(D){return new rf(D)}declareName(D,$,J){let X=this.currentScope();if($&2048){this.checkRedeclarationInScope(X,D,$,J),this.maybeExportDefined(X,D),X.declareFunctions.add(D);return}super.declareName(D,$,J)}isRedeclaredInScope(D,$,J){if(super.isRedeclaredInScope(D,$,J))return!0;if(J&2048&&!D.declareFunctions.has($)){let X=D.names.get($);return(X&4)>0||(X&2)>0}return!1}checkLocalExport(D){if(!this.scopeStack[0].declareFunctions.has(D.name))super.checkLocalExport(D)}}var nFD=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),qD=M6`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:D})=>`Cannot overwrite reserved type ${D}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:D,enumName:$})=>`Boolean enum members need to be initialized. Use either \`${D} = true,\` or \`${D} = false,\` in enum \`${$}\`.`,EnumDuplicateMemberName:({memberName:D,enumName:$})=>`Enum member names need to be unique, but the name \`${D}\` has already been used before in enum \`${$}\`.`,EnumInconsistentMemberValues:({enumName:D})=>`Enum \`${D}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:D,enumName:$})=>`Enum type \`${D}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${$}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:D})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${D}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:D,memberName:$,explicitType:J})=>`Enum \`${D}\` has type \`${J}\`, so the initializer of \`${$}\` needs to be a ${J} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:D,memberName:$})=>`Symbol enum members cannot be initialized. Use \`${$},\` in enum \`${D}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:D,memberName:$})=>`The enum member initializer for \`${$}\` needs to be a literal (either a boolean, number, or string) in enum \`${D}\`.`,EnumInvalidMemberName:({enumName:D,memberName:$,suggestion:J})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${$}\`, consider using \`${J}\`, in enum \`${D}\`.`,EnumNumberMemberNotInitialized:({enumName:D,memberName:$})=>`Number enum members need to be initialized, e.g. \`${$} = 1\` in enum \`${D}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:D})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${D}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:D})=>`Unexpected reserved type ${D}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:D,suggestion:$})=>`\`declare export ${D}\` is not supported. Use \`${$}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function rFD(D){return D.type==="DeclareExportAllDeclaration"||D.type==="DeclareExportDeclaration"&&(!D.declaration||D.declaration.type!=="TypeAlias"&&D.declaration.type!=="InterfaceDeclaration")}function bf(D){return D.importKind==="type"||D.importKind==="typeof"}var tFD={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function oFD(D,$){let J=[],X=[];for(let Y=0;Y<D.length;Y++)($(D[Y],Y,D)?J:X).push(D[Y]);return[J,X]}var aFD=/\*?\s*@((?:no)?flow)\b/,sFD=(D)=>class extends D{constructor(...J){super(...J);this.flowPragma=void 0}getScopeHandler(){return tf}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(J,X){if(J!==134&&J!==13&&J!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(J,X)}addComment(J){if(this.flowPragma===void 0){let X=aFD.exec(J.value);if(!X);else if(X[1]==="flow")this.flowPragma="flow";else if(X[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(J)}flowParseTypeInitialiser(J){let X=this.state.inType;this.state.inType=!0,this.expect(J||14);let Y=this.flowParseType();return this.state.inType=X,Y}flowParsePredicate(){let J=this.startNode(),X=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>X.index+1)this.raise(qD.UnexpectedSpaceBetweenModuloChecks,X);if(this.eat(10))return J.value=super.parseExpression(),this.expect(11),this.finishNode(J,"DeclaredPredicate");else return this.finishNode(J,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let J=this.state.inType;this.state.inType=!0,this.expect(14);let X=null,Y=null;if(this.match(54))this.state.inType=J,Y=this.flowParsePredicate();else if(X=this.flowParseType(),this.state.inType=J,this.match(54))Y=this.flowParsePredicate();return[X,Y]}flowParseDeclareClass(J){return this.next(),this.flowParseInterfaceish(J,!0),this.finishNode(J,"DeclareClass")}flowParseDeclareFunction(J){this.next();let X=J.id=this.parseIdentifier(),Y=this.startNode(),Q=this.startNode();if(this.match(47))Y.typeParameters=this.flowParseTypeParameterDeclaration();else Y.typeParameters=null;this.expect(10);let U=this.flowParseFunctionTypeParams();return Y.params=U.params,Y.rest=U.rest,Y.this=U._this,this.expect(11),[Y.returnType,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),Q.typeAnnotation=this.finishNode(Y,"FunctionTypeAnnotation"),X.typeAnnotation=this.finishNode(Q,"TypeAnnotation"),this.resetEndLocation(X),this.semicolon(),this.scope.declareName(J.id.name,2048,J.id.loc.start),this.finishNode(J,"DeclareFunction")}flowParseDeclare(J,X){if(this.match(80))return this.flowParseDeclareClass(J);else if(this.match(68))return this.flowParseDeclareFunction(J);else if(this.match(74))return this.flowParseDeclareVariable(J);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(J);else{if(X)this.raise(qD.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(J)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(J);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(J);else if(this.isContextual(129))return this.flowParseDeclareInterface(J);else if(this.match(82))return this.flowParseDeclareExportDeclaration(J,X);throw this.unexpected()}flowParseDeclareVariable(J){return this.next(),J.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(J.id.name,5,J.id.loc.start),this.semicolon(),this.finishNode(J,"DeclareVariable")}flowParseDeclareModule(J){if(this.scope.enter(0),this.match(134))J.id=super.parseExprAtom();else J.id=this.parseIdentifier();let X=J.body=this.startNode(),Y=X.body=[];this.expect(5);while(!this.match(8)){let F=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(qD.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);Y.push(super.parseImport(F))}else this.expectContextual(125,qD.UnsupportedStatementInDeclareModule),Y.push(this.flowParseDeclare(F,!0))}this.scope.exit(),this.expect(8),this.finishNode(X,"BlockStatement");let Q=null,U=!1;return Y.forEach((F)=>{if(rFD(F)){if(Q==="CommonJS")this.raise(qD.AmbiguousDeclareModuleKind,F);Q="ES"}else if(F.type==="DeclareModuleExports"){if(U)this.raise(qD.DuplicateDeclareModuleExports,F);if(Q==="ES")this.raise(qD.AmbiguousDeclareModuleKind,F);Q="CommonJS",U=!0}}),J.kind=Q||"CommonJS",this.finishNode(J,"DeclareModule")}flowParseDeclareExportDeclaration(J,X){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))J.declaration=this.flowParseDeclare(this.startNode());else J.declaration=this.flowParseType(),this.semicolon();return J.default=!0,this.finishNode(J,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!X){let Y=this.state.value;throw this.raise(qD.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:Y,suggestion:tFD[Y]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return J.declaration=this.flowParseDeclare(this.startNode()),J.default=!1,this.finishNode(J,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(J=this.parseExport(J,null),J.type==="ExportNamedDeclaration")return J.default=!1,delete J.exportKind,this.castNodeTo(J,"DeclareExportDeclaration");else return this.castNodeTo(J,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(J){return this.next(),this.expectContextual(111),J.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(J,"DeclareModuleExports")}flowParseDeclareTypeAlias(J){this.next();let X=this.flowParseTypeAlias(J);return this.castNodeTo(X,"DeclareTypeAlias"),X}flowParseDeclareOpaqueType(J){this.next();let X=this.flowParseOpaqueType(J,!0);return this.castNodeTo(X,"DeclareOpaqueType"),X}flowParseDeclareInterface(J){return this.next(),this.flowParseInterfaceish(J,!1),this.finishNode(J,"DeclareInterface")}flowParseInterfaceish(J,X){if(J.id=this.flowParseRestrictedIdentifier(!X,!0),this.scope.declareName(J.id.name,X?17:8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;if(J.extends=[],this.eat(81))do J.extends.push(this.flowParseInterfaceExtends());while(!X&&this.eat(12));if(X){if(J.implements=[],J.mixins=[],this.eatContextual(117))do J.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do J.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}J.body=this.flowParseObjectType({allowStatic:X,allowExact:!1,allowSpread:!1,allowProto:X,allowInexact:!1})}flowParseInterfaceExtends(){let J=this.startNode();if(J.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))J.typeParameters=this.flowParseTypeParameterInstantiation();else J.typeParameters=null;return this.finishNode(J,"InterfaceExtends")}flowParseInterface(J){return this.flowParseInterfaceish(J,!1),this.finishNode(J,"InterfaceDeclaration")}checkNotUnderscore(J){if(J==="_")this.raise(qD.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(J,X,Y){if(!nFD.has(J))return;this.raise(Y?qD.AssignReservedType:qD.UnexpectedReservedType,X,{reservedType:J})}flowParseRestrictedIdentifierName(J,X){return this.checkReservedType(this.state.value,this.state.startLoc,X),this.parseIdentifierName(J)}flowParseRestrictedIdentifier(J,X){let Y=this.startNode(),Q=this.flowParseRestrictedIdentifierName(J,X);return this.createIdentifier(Y,Q)}flowParseTypeAlias(J){if(J.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(J.id.name,8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;return J.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(J,"TypeAlias")}flowParseOpaqueType(J,X){if(this.expectContextual(130),J.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(J.id.name,8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;if(J.supertype=null,this.match(14))J.supertype=this.flowParseTypeInitialiser(14);if(J.impltype=null,!X)J.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(J,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let J=this.startNode();return this.next(),J.typeAnnotation=this.flowParseType(),this.finishNode(J,"TypeAnnotation")}}flowParseTypeParameter(J=!1){let X=this.state.startLoc,Y=this.startNode(),Q=this.flowParseVariance();if(Y.name=this.flowParseRestrictedIdentifierName(),Y.variance=Q,Y.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),Y.default=this.flowParseType();else if(J)this.raise(qD.MissingTypeParamDefault,X);return this.finishNode(Y,"TypeParameter")}flowParseTypeParameterDeclaration(){let J=this.state.inType,X=this.startNode();if(X.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let Y=!1;do{let Q=this.flowParseTypeParameter(Y);if(X.params.push(Q),Q.default)Y=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=J,this.finishNode(X,"TypeParameterDeclaration")}flowInTopLevelContext(J){if(this.curContext()!==uD.brace){let X=this.state.context;this.state.context=[X[0]];try{return J()}finally{this.state.context=X}}else return J()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let J=this.startNode(),X=this.state.inType;if(this.state.inType=!0,J.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(J.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=Y}),this.state.inType=X,!this.state.inType&&this.curContext()===uD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let J=this.startNode(),X=this.state.inType;J.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(J.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=X,this.finishNode(J,"TypeParameterInstantiation")}flowParseInterfaceType(){let J=this.startNode();if(this.expectContextual(129),J.extends=[],this.eat(81))do J.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return J.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(J,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(J,X,Y){if(J.static=X,this.lookahead().type===14)J.id=this.flowParseObjectPropertyKey(),J.key=this.flowParseTypeInitialiser();else J.id=null,J.key=this.flowParseType();return this.expect(3),J.value=this.flowParseTypeInitialiser(),J.variance=Y,this.finishNode(J,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(J,X){if(J.static=X,J.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))J.method=!0,J.optional=!1,J.value=this.flowParseObjectTypeMethodish(this.startNodeAt(J.loc.start));else{if(J.method=!1,this.eat(17))J.optional=!0;J.value=this.flowParseTypeInitialiser()}return this.finishNode(J,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(J){if(J.params=[],J.rest=null,J.typeParameters=null,J.this=null,this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(J.this=this.flowParseFunctionTypeParam(!0),J.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(J.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))J.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),J.returnType=this.flowParseTypeInitialiser(),this.finishNode(J,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(J,X){let Y=this.startNode();return J.static=X,J.value=this.flowParseObjectTypeMethodish(Y),this.finishNode(J,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:J,allowExact:X,allowSpread:Y,allowProto:Q,allowInexact:U}){let F=this.state.inType;this.state.inType=!0;let W=this.startNode();W.callProperties=[],W.properties=[],W.indexers=[],W.internalSlots=[];let K,q,G=!1;if(X&&this.match(6))this.expect(6),K=9,q=!0;else this.expect(5),K=8,q=!1;W.exact=q;while(!this.match(K)){let H=!1,z=null,I=null,B=this.startNode();if(Q&&this.isContextual(118)){let V=this.lookahead();if(V.type!==14&&V.type!==17)this.next(),z=this.state.startLoc,J=!1}if(J&&this.isContextual(106)){let V=this.lookahead();if(V.type!==14&&V.type!==17)this.next(),H=!0}let N=this.flowParseVariance();if(this.eat(0)){if(z!=null)this.unexpected(z);if(this.eat(0)){if(N)this.unexpected(N.loc.start);W.internalSlots.push(this.flowParseObjectTypeInternalSlot(B,H))}else W.indexers.push(this.flowParseObjectTypeIndexer(B,H,N))}else if(this.match(10)||this.match(47)){if(z!=null)this.unexpected(z);if(N)this.unexpected(N.loc.start);W.callProperties.push(this.flowParseObjectTypeCallProperty(B,H))}else{let V="init";if(this.isContextual(99)||this.isContextual(104)){let j=this.lookahead();if(hf(j.type))V=this.state.value,this.next()}let O=this.flowParseObjectTypeProperty(B,H,z,N,V,Y,U!=null?U:!q);if(O===null)G=!0,I=this.state.lastTokStartLoc;else W.properties.push(O)}if(this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9))this.raise(qD.UnexpectedExplicitInexactInObject,I)}if(this.expect(K),Y)W.inexact=G;let Z=this.finishNode(W,"ObjectTypeAnnotation");return this.state.inType=F,Z}flowParseObjectTypeProperty(J,X,Y,Q,U,F,W){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!F)this.raise(qD.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!W)this.raise(qD.InexactInsideExact,this.state.lastTokStartLoc);if(Q)this.raise(qD.InexactVariance,Q);return null}if(!F)this.raise(qD.UnexpectedSpreadType,this.state.lastTokStartLoc);if(Y!=null)this.unexpected(Y);if(Q)this.raise(qD.SpreadVariance,Q);return J.argument=this.flowParseType(),this.finishNode(J,"ObjectTypeSpreadProperty")}else{J.key=this.flowParseObjectPropertyKey(),J.static=X,J.proto=Y!=null,J.kind=U;let K=!1;if(this.match(47)||this.match(10)){if(J.method=!0,Y!=null)this.unexpected(Y);if(Q)this.unexpected(Q.loc.start);if(J.value=this.flowParseObjectTypeMethodish(this.startNodeAt(J.loc.start)),U==="get"||U==="set")this.flowCheckGetterSetterParams(J);if(!F&&J.key.name==="constructor"&&J.value.this)this.raise(qD.ThisParamBannedInConstructor,J.value.this)}else{if(U!=="init")this.unexpected();if(J.method=!1,this.eat(17))K=!0;J.value=this.flowParseTypeInitialiser(),J.variance=Q}return J.optional=K,this.finishNode(J,"ObjectTypeProperty")}}flowCheckGetterSetterParams(J){let X=J.kind==="get"?0:1,Y=J.value.params.length+(J.value.rest?1:0);if(J.value.this)this.raise(J.kind==="get"?qD.GetterMayNotHaveThisParam:qD.SetterMayNotHaveThisParam,J.value.this);if(Y!==X)this.raise(J.kind==="get"?M.BadGetterArity:M.BadSetterArity,J);if(J.kind==="set"&&J.value.rest)this.raise(M.BadSetterRestParameter,J)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(J,X){J!=null||(J=this.state.startLoc);let Y=X||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let Q=this.startNodeAt(J);Q.qualification=Y,Q.id=this.flowParseRestrictedIdentifier(!0),Y=this.finishNode(Q,"QualifiedTypeIdentifier")}return Y}flowParseGenericType(J,X){let Y=this.startNodeAt(J);if(Y.typeParameters=null,Y.id=this.flowParseQualifiedTypeIdentifier(J,X),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(Y,"GenericTypeAnnotation")}flowParseTypeofType(){let J=this.startNode();return this.expect(87),J.argument=this.flowParsePrimaryType(),this.finishNode(J,"TypeofTypeAnnotation")}flowParseTupleType(){let J=this.startNode();J.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(J.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(J,"TupleTypeAnnotation")}flowParseFunctionTypeParam(J){let X=null,Y=!1,Q=null,U=this.startNode(),F=this.lookahead(),W=this.state.type===78;if(F.type===14||F.type===17){if(W&&!J)this.raise(qD.ThisParamMustBeFirst,U);if(X=this.parseIdentifier(W),this.eat(17)){if(Y=!0,W)this.raise(qD.ThisParamMayNotBeOptional,U)}Q=this.flowParseTypeInitialiser()}else Q=this.flowParseType();return U.name=X,U.optional=Y,U.typeAnnotation=Q,this.finishNode(U,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(J){let X=this.startNodeAt(J.loc.start);return X.name=null,X.optional=!1,X.typeAnnotation=J,this.finishNode(X,"FunctionTypeParam")}flowParseFunctionTypeParams(J=[]){let X=null,Y=null;if(this.match(78)){if(Y=this.flowParseFunctionTypeParam(!0),Y.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(J.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))X=this.flowParseFunctionTypeParam(!1);return{params:J,rest:X,_this:Y}}flowIdentToTypeAnnotation(J,X,Y){switch(Y.name){case"any":return this.finishNode(X,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(X,"BooleanTypeAnnotation");case"mixed":return this.finishNode(X,"MixedTypeAnnotation");case"empty":return this.finishNode(X,"EmptyTypeAnnotation");case"number":return this.finishNode(X,"NumberTypeAnnotation");case"string":return this.finishNode(X,"StringTypeAnnotation");case"symbol":return this.finishNode(X,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(Y.name),this.flowParseGenericType(J,Y)}}flowParsePrimaryType(){let J=this.state.startLoc,X=this.startNode(),Y,Q,U=!1,F=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,Q=this.flowParseTupleType(),this.state.noAnonFunctionType=F,Q;case 47:{let W=this.startNode();return W.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),Y=this.flowParseFunctionTypeParams(),W.params=Y.params,W.rest=Y.rest,W.this=Y._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),this.finishNode(W,"FunctionTypeAnnotation")}case 10:{let W=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(gD(this.state.type)||this.match(78)){let K=this.lookahead().type;U=K!==17&&K!==14}else U=!0;if(U)if(this.state.noAnonFunctionType=!1,Q=this.flowParseType(),this.state.noAnonFunctionType=F,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),Q;else this.eat(12);if(Q)Y=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(Q)]);else Y=this.flowParseFunctionTypeParams();return W.params=Y.params,W.rest=Y.rest,W.this=Y._this,this.expect(11),this.expect(19),W.returnType=this.flowParseType(),W.typeParameters=null,this.finishNode(W,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return X.value=this.match(85),this.next(),this.finishNode(X,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",X);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",X);throw this.raise(qD.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(X,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(X,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(X,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(X,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(VN(this.state.type)){let W=x1(this.state.type);return this.next(),super.createIdentifier(X,W)}else if(gD(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(J,X,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let J=this.state.startLoc,X=this.flowParsePrimaryType(),Y=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let Q=this.startNodeAt(J),U=this.eat(18);if(Y=Y||U,this.expect(0),!U&&this.match(3))Q.elementType=X,this.next(),X=this.finishNode(Q,"ArrayTypeAnnotation");else if(Q.objectType=X,Q.indexType=this.flowParseType(),this.expect(3),Y)Q.optional=U,X=this.finishNode(Q,"OptionalIndexedAccessType");else X=this.finishNode(Q,"IndexedAccessType")}return X}flowParsePrefixType(){let J=this.startNode();if(this.eat(17))return J.typeAnnotation=this.flowParsePrefixType(),this.finishNode(J,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let J=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let X=this.startNodeAt(J.loc.start);return X.params=[this.reinterpretTypeAsFunctionTypeParam(J)],X.rest=null,X.this=null,X.returnType=this.flowParseType(),X.typeParameters=null,this.finishNode(X,"FunctionTypeAnnotation")}return J}flowParseIntersectionType(){let J=this.startNode();this.eat(45);let X=this.flowParseAnonFunctionWithoutParens();J.types=[X];while(this.eat(45))J.types.push(this.flowParseAnonFunctionWithoutParens());return J.types.length===1?X:this.finishNode(J,"IntersectionTypeAnnotation")}flowParseUnionType(){let J=this.startNode();this.eat(43);let X=this.flowParseIntersectionType();J.types=[X];while(this.eat(43))J.types.push(this.flowParseIntersectionType());return J.types.length===1?X:this.finishNode(J,"UnionTypeAnnotation")}flowParseType(){let J=this.state.inType;this.state.inType=!0;let X=this.flowParseUnionType();return this.state.inType=J,X}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let J=this.state.startLoc,X=this.parseIdentifier();return this.flowParseGenericType(J,X)}else return this.flowParseType()}flowParseTypeAnnotation(){let J=this.startNode();return J.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(J,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let J=this.startNode(),X=this.parseIdentifierName();if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(J,X)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}flowParseVariance(){let J=null;if(this.match(53)){if(J=this.startNode(),this.state.value==="+")J.kind="plus";else J.kind="minus";return this.next(),this.finishNode(J,"Variance")}return J}parseFunctionBody(J,X,Y=!1){if(X){this.forwardNoArrowParamsConversionAt(J,()=>super.parseFunctionBody(J,!0,Y));return}super.parseFunctionBody(J,!1,Y)}parseFunctionBodyAndFinish(J,X,Y=!1){if(this.match(14)){let Q=this.startNode();[Q.typeAnnotation,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),J.returnType=Q.typeAnnotation?this.finishNode(Q,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(J,X,Y)}parseStatementLike(J){if(this.state.strict&&this.isContextual(129)){let Y=this.lookahead();if(Q6(Y.type)){let Q=this.startNode();return this.next(),this.flowParseInterface(Q)}}else if(this.isContextual(126)){let Y=this.startNode();return this.next(),this.flowParseEnumDeclaration(Y)}let X=super.parseStatementLike(J);if(this.flowPragma===void 0&&!this.isValidDirective(X))this.flowPragma=null;return X}parseExpressionStatement(J,X,Y){if(X.type==="Identifier"){if(X.name==="declare"){if(this.match(80)||gD(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(J)}else if(gD(this.state.type)){if(X.name==="interface")return this.flowParseInterface(J);else if(X.name==="type")return this.flowParseTypeAlias(J);else if(X.name==="opaque")return this.flowParseOpaqueType(J,!1)}}return super.parseExpressionStatement(J,X,Y)}shouldParseExportDeclaration(){let{type:J}=this.state;if(J===126||Pf(J))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:J}=this.state;if(J===126||Pf(J))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let J=this.startNode();return this.next(),this.flowParseEnumDeclaration(J)}return super.parseExportDefaultExpression()}parseConditional(J,X,Y){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let Z=this.lookaheadCharCode();if(Z===44||Z===61||Z===58||Z===41)return this.setOptionalParametersError(Y),J}this.expect(17);let Q=this.state.clone(),U=this.state.noArrowAt,F=this.startNodeAt(X),{consequent:W,failed:K}=this.tryParseConditionalConsequent(),[q,G]=this.getArrowLikeExpressions(W);if(K||G.length>0){let Z=[...U];if(G.length>0){this.state=Q,this.state.noArrowAt=Z;for(let H=0;H<G.length;H++)Z.push(G[H].start);({consequent:W,failed:K}=this.tryParseConditionalConsequent()),[q,G]=this.getArrowLikeExpressions(W)}if(K&&q.length>1)this.raise(qD.AmbiguousConditionalArrow,Q.startLoc);if(K&&q.length===1)this.state=Q,Z.push(q[0].start),this.state.noArrowAt=Z,{consequent:W,failed:K}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(W,!0),this.state.noArrowAt=U,this.expect(14),F.test=J,F.consequent=W,F.alternate=this.forwardNoArrowParamsConversionAt(F,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(F,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let J=this.parseMaybeAssignAllowIn(),X=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:J,failed:X}}getArrowLikeExpressions(J,X){let Y=[J],Q=[];while(Y.length!==0){let U=Y.pop();if(U.type==="ArrowFunctionExpression"&&U.body.type!=="BlockStatement"){if(U.typeParameters||!U.returnType)this.finishArrowValidation(U);else Q.push(U);Y.push(U.body)}else if(U.type==="ConditionalExpression")Y.push(U.consequent),Y.push(U.alternate)}if(X)return Q.forEach((U)=>this.finishArrowValidation(U)),[Q,[]];return oFD(Q,(U)=>U.params.every((F)=>this.isAssignable(F,!0)))}finishArrowValidation(J){var X;this.toAssignableList(J.params,(X=J.extra)==null?void 0:X.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(J,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(J,X){let Y;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))this.state.noArrowParamsConversionAt.push(this.state.start),Y=X(),this.state.noArrowParamsConversionAt.pop();else Y=X();return Y}parseParenItem(J,X){let Y=super.parseParenItem(J,X);if(this.eat(17))Y.optional=!0,this.resetEndLocation(J);if(this.match(14)){let Q=this.startNodeAt(X);return Q.expression=Y,Q.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(Q,"TypeCastExpression")}return Y}assertModuleNodeAllowed(J){if(J.type==="ImportDeclaration"&&(J.importKind==="type"||J.importKind==="typeof")||J.type==="ExportNamedDeclaration"&&J.exportKind==="type"||J.type==="ExportAllDeclaration"&&J.exportKind==="type")return;super.assertModuleNodeAllowed(J)}parseExportDeclaration(J){if(this.isContextual(130)){J.exportKind="type";let X=this.startNode();if(this.next(),this.match(5))return J.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(J),null;else return this.flowParseTypeAlias(X)}else if(this.isContextual(131)){J.exportKind="type";let X=this.startNode();return this.next(),this.flowParseOpaqueType(X,!1)}else if(this.isContextual(129)){J.exportKind="type";let X=this.startNode();return this.next(),this.flowParseInterface(X)}else if(this.isContextual(126)){J.exportKind="value";let X=this.startNode();return this.next(),this.flowParseEnumDeclaration(X)}else return super.parseExportDeclaration(J)}eatExportStar(J){if(super.eatExportStar(J))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return J.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(J){let{startLoc:X}=this.state,Y=super.maybeParseExportNamespaceSpecifier(J);if(Y&&J.exportKind==="type")this.unexpected(X);return Y}parseClassId(J,X,Y){if(super.parseClassId(J,X,Y),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(J,X,Y){let{startLoc:Q}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(J,X))return;X.declare=!0}if(super.parseClassMember(J,X,Y),X.declare){if(X.type!=="ClassProperty"&&X.type!=="ClassPrivateProperty"&&X.type!=="PropertyDefinition")this.raise(qD.DeclareClassElement,Q);else if(X.value)this.raise(qD.DeclareClassFieldInitializer,X.value)}}isIterator(J){return J==="iterator"||J==="asyncIterator"}readIterator(){let J=super.readWord1(),X="@@"+J;if(!this.isIterator(J)||!this.state.inType)this.raise(M.InvalidIdentifier,this.state.curPosition(),{identifierName:X});this.finishToken(132,X)}getTokenFromCode(J){let X=this.input.charCodeAt(this.state.pos+1);if(J===123&&X===124)this.finishOp(6,2);else if(this.state.inType&&(J===62||J===60))this.finishOp(J===62?48:47,1);else if(this.state.inType&&J===63)if(X===46)this.finishOp(18,2);else this.finishOp(17,1);else if(iFD(J,X,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(J)}isAssignable(J,X){if(J.type==="TypeCastExpression")return this.isAssignable(J.expression,X);else return super.isAssignable(J,X)}toAssignable(J,X=!1){if(!X&&J.type==="AssignmentExpression"&&J.left.type==="TypeCastExpression")J.left=this.typeCastToParameter(J.left);super.toAssignable(J,X)}toAssignableList(J,X,Y){for(let Q=0;Q<J.length;Q++){let U=J[Q];if((U==null?void 0:U.type)==="TypeCastExpression")J[Q]=this.typeCastToParameter(U)}super.toAssignableList(J,X,Y)}toReferencedList(J,X){for(let Q=0;Q<J.length;Q++){var Y;let U=J[Q];if(U&&U.type==="TypeCastExpression"&&!((Y=U.extra)!=null&&Y.parenthesized)&&(J.length>1||!X))this.raise(qD.TypeCastInPattern,U.typeAnnotation)}return J}parseArrayLike(J,X,Y){let Q=super.parseArrayLike(J,X,Y);if(Y!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(Q.elements);return Q}isValidLVal(J,X,Y,Q){return J==="TypeCastExpression"||super.isValidLVal(J,X,Y,Q)}parseClassProperty(J){if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(J){return!this.match(14)&&super.isNonstaticConstructor(J)}pushClassMethod(J,X,Y,Q,U,F){if(X.variance)this.unexpected(X.variance.loc.start);if(delete X.variance,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(J,X,Y,Q,U,F),X.params&&U){let W=X.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(qD.ThisParamBannedInConstructor,X)}else if(X.type==="MethodDefinition"&&U&&X.value.params){let W=X.value.params;if(W.length>0&&this.isThisParam(W[0]))this.raise(qD.ThisParamBannedInConstructor,X)}}pushClassPrivateMethod(J,X,Y,Q){if(X.variance)this.unexpected(X.variance.loc.start);if(delete X.variance,this.match(47))X.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(J,X,Y,Q)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.match(47)||this.match(51)))J.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let X=J.implements=[];do{let Y=this.startNode();if(Y.id=this.flowParseRestrictedIdentifier(!0),this.match(47))Y.typeParameters=this.flowParseTypeParameterInstantiation();else Y.typeParameters=null;X.push(this.finishNode(Y,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(J){super.checkGetterSetterParams(J);let X=this.getObjectOrClassMethodParams(J);if(X.length>0){let Y=X[0];if(this.isThisParam(Y)&&J.kind==="get")this.raise(qD.GetterMayNotHaveThisParam,Y);else if(this.isThisParam(Y))this.raise(qD.SetterMayNotHaveThisParam,Y)}}parsePropertyNamePrefixOperator(J){J.variance=this.flowParseVariance()}parseObjPropValue(J,X,Y,Q,U,F,W){if(J.variance)this.unexpected(J.variance.loc.start);delete J.variance;let K;if(this.match(47)&&!F){if(K=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let q=super.parseObjPropValue(J,X,Y,Q,U,F,W);if(K)(q.value||q).typeParameters=K;return q}parseFunctionParamType(J){if(this.eat(17)){if(J.type!=="Identifier")this.raise(qD.PatternIsOptional,J);if(this.isThisParam(J))this.raise(qD.ThisParamMayNotBeOptional,J);J.optional=!0}if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(J))this.raise(qD.ThisParamAnnotationRequired,J);if(this.match(29)&&this.isThisParam(J))this.raise(qD.ThisParamNoDefault,J);return this.resetEndLocation(J),J}parseMaybeDefault(J,X){let Y=super.parseMaybeDefault(J,X);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(qD.TypeBeforeInitializer,Y.typeAnnotation);return Y}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(qD.ImportReflectionHasImportType,J.specifiers[0].loc.start)}parseImportSpecifierLocal(J,X,Y){X.local=bf(J)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),J.specifiers.push(this.finishImportSpecifier(X,Y))}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){if(!J)return!0;let X=this.lookaheadCharCode();return X===123||X===42}return!J&&this.isContextual(87)}applyImportPhase(J,X,Y,Q){if(super.applyImportPhase(J,X,Y,Q),X){if(!Y&&this.match(65))return;J.exportKind=Y==="type"?Y:"value"}else{if(Y==="type"&&this.match(55))this.unexpected();J.importKind=Y==="type"||Y==="typeof"?Y:"value"}}parseImportSpecifier(J,X,Y,Q,U){let F=J.imported,W=null;if(F.type==="Identifier"){if(F.name==="type")W="type";else if(F.name==="typeof")W="typeof"}let K=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let G=this.parseIdentifier(!0);if(W!==null&&!Q6(this.state.type))J.imported=G,J.importKind=W,J.local=this.cloneIdentifier(G);else J.imported=F,J.importKind=null,J.local=this.parseIdentifier()}else{if(W!==null&&Q6(this.state.type))J.imported=this.parseIdentifier(!0),J.importKind=W;else{if(X)throw this.raise(M.ImportBindingIsString,J,{importName:F.value});J.imported=F,J.importKind=null}if(this.eatContextual(93))J.local=this.parseIdentifier();else K=!0,J.local=this.cloneIdentifier(J.imported)}let q=bf(J);if(Y&&q)this.raise(qD.ImportTypeShorthandOnlyInPureImport,J);if(Y||q)this.checkReservedType(J.local.name,J.local.loc.start,!0);if(K&&!Y&&!q)this.checkReservedWord(J.local.name,J.loc.start,!0,!0);return this.finishImportSpecifier(J,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(J,X){let Y=J.kind;if(Y!=="get"&&Y!=="set"&&this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(J,X)}parseVarId(J,X){if(super.parseVarId(J,X),this.match(14))J.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,X){if(this.match(14)){let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,J.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=Y}return super.parseAsyncArrowFromCallExpression(J,X)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(J,X){var Y;let Q=null,U;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(Q=this.state.clone(),U=this.tryParse(()=>super.parseMaybeAssign(J,X),Q),!U.error)return U.node;let{context:K}=this.state,q=K[K.length-1];if(q===uD.j_oTag||q===uD.j_expr)K.pop()}if((Y=U)!=null&&Y.error||this.match(47)){var F,W;Q=Q||this.state.clone();let K,q=this.tryParse((Z)=>{var H;K=this.flowParseTypeParameterDeclaration();let z=this.forwardNoArrowParamsConversionAt(K,()=>{let B=super.parseMaybeAssign(J,X);return this.resetStartLocationFromNode(B,K),B});if((H=z.extra)!=null&&H.parenthesized)Z();let I=this.maybeUnwrapTypeCastExpression(z);if(I.type!=="ArrowFunctionExpression")Z();return I.typeParameters=K,this.resetStartLocationFromNode(I,K),z},Q),G=null;if(q.node&&this.maybeUnwrapTypeCastExpression(q.node).type==="ArrowFunctionExpression"){if(!q.error&&!q.aborted){if(q.node.async)this.raise(qD.UnexpectedTypeParameterBeforeAsyncArrowFunction,K);return q.node}G=q.node}if((F=U)!=null&&F.node)return this.state=U.failState,U.node;if(G)return this.state=q.failState,G;if((W=U)!=null&&W.thrown)throw U.error;if(q.thrown)throw q.error;throw this.raise(qD.UnexpectedTokenAfterTypeParameter,K)}return super.parseMaybeAssign(J,X)}parseArrow(J){if(this.match(14)){let X=this.tryParse(()=>{let Y=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let Q=this.startNode();if([Q.typeAnnotation,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=Y,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return Q});if(X.thrown)return null;if(X.error)this.state=X.failState;J.returnType=X.node.typeAnnotation?this.finishNode(X.node,"TypeAnnotation"):null}return super.parseArrow(J)}shouldParseArrow(J){return this.match(14)||super.shouldParseArrow(J)}setArrowFunctionParameters(J,X){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))J.params=X;else super.setArrowFunctionParameters(J,X)}checkParams(J,X,Y,Q=!0){if(Y&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))return;for(let U=0;U<J.params.length;U++)if(this.isThisParam(J.params[U])&&U>0)this.raise(qD.ThisParamMustBeFirst,J.params[U]);super.checkParams(J,X,Y,Q)}parseParenAndDistinguishExpression(J){return super.parseParenAndDistinguishExpression(J&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(J,X,Y){if(J.type==="Identifier"&&J.name==="async"&&this.state.noArrowAt.includes(X.index)){this.next();let Q=this.startNodeAt(X);Q.callee=J,Q.arguments=super.parseCallExpressionArguments(),J=this.finishNode(Q,"CallExpression")}else if(J.type==="Identifier"&&J.name==="async"&&this.match(47)){let Q=this.state.clone(),U=this.tryParse((W)=>this.parseAsyncArrowWithTypeParameters(X)||W(),Q);if(!U.error&&!U.aborted)return U.node;let F=this.tryParse(()=>super.parseSubscripts(J,X,Y),Q);if(F.node&&!F.error)return F.node;if(U.node)return this.state=U.failState,U.node;if(F.node)return this.state=F.failState,F.node;throw U.error||F.error}return super.parseSubscripts(J,X,Y)}parseSubscript(J,X,Y,Q){if(this.match(18)&&this.isLookaheadToken_lt()){if(Q.optionalChainMember=!0,Y)return Q.stop=!0,J;this.next();let U=this.startNodeAt(X);return U.callee=J,U.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),U.arguments=this.parseCallExpressionArguments(),U.optional=!0,this.finishCallExpression(U,!0)}else if(!Y&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let U=this.startNodeAt(X);U.callee=J;let F=this.tryParse(()=>{if(U.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),U.arguments=super.parseCallExpressionArguments(),Q.optionalChainMember)U.optional=!1;return this.finishCallExpression(U,Q.optionalChainMember)});if(F.node){if(F.error)this.state=F.failState;return F.node}}return super.parseSubscript(J,X,Y,Q)}parseNewCallee(J){super.parseNewCallee(J);let X=null;if(this.shouldParseTypes()&&this.match(47))X=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;J.typeArguments=X}parseAsyncArrowWithTypeParameters(J){let X=this.startNodeAt(J);if(this.parseFunctionParams(X,!1),!this.parseArrow(X))return;return super.parseArrowExpression(X,void 0,!0)}readToken_mult_modulo(J){let X=this.input.charCodeAt(this.state.pos+1);if(J===42&&X===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(J)}readToken_pipe_amp(J){let X=this.input.charCodeAt(this.state.pos+1);if(J===124&&X===125){this.finishOp(9,2);return}super.readToken_pipe_amp(J)}parseTopLevel(J,X){let Y=super.parseTopLevel(J,X);if(this.state.hasFlowComment)this.raise(qD.UnterminatedFlowComment,this.state.curPosition());return Y}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(qD.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let J=this.skipFlowComment();if(J)this.state.pos+=J,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:J}=this.state,X=2;while([32,9].includes(this.input.charCodeAt(J+X)))X++;let Y=this.input.charCodeAt(X+J),Q=this.input.charCodeAt(X+J+1);if(Y===58&&Q===58)return X+2;if(this.input.slice(X+J,X+J+12)==="flow-include")return X+12;if(Y===58&&Q!==58)return X;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(J,{enumName:X,memberName:Y}){this.raise(qD.EnumBooleanMemberNotInitialized,J,{memberName:Y,enumName:X})}flowEnumErrorInvalidMemberInitializer(J,X){return this.raise(!X.explicitType?qD.EnumInvalidMemberInitializerUnknownType:X.explicitType==="symbol"?qD.EnumInvalidMemberInitializerSymbolType:qD.EnumInvalidMemberInitializerPrimaryType,J,X)}flowEnumErrorNumberMemberNotInitialized(J,X){this.raise(qD.EnumNumberMemberNotInitialized,J,X)}flowEnumErrorStringMemberInconsistentlyInitialized(J,X){this.raise(qD.EnumStringMemberInconsistentlyInitialized,J,X)}flowEnumMemberInit(){let J=this.state.startLoc,X=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let Y=this.parseNumericLiteral(this.state.value);if(X())return{type:"number",loc:Y.loc.start,value:Y};return{type:"invalid",loc:J}}case 134:{let Y=this.parseStringLiteral(this.state.value);if(X())return{type:"string",loc:Y.loc.start,value:Y};return{type:"invalid",loc:J}}case 85:case 86:{let Y=this.parseBooleanLiteral(this.match(85));if(X())return{type:"boolean",loc:Y.loc.start,value:Y};return{type:"invalid",loc:J}}default:return{type:"invalid",loc:J}}}flowEnumMemberRaw(){let J=this.state.startLoc,X=this.parseIdentifier(!0),Y=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:J};return{id:X,init:Y}}flowEnumCheckExplicitTypeMismatch(J,X,Y){let{explicitType:Q}=X;if(Q===null)return;if(Q!==Y)this.flowEnumErrorInvalidMemberInitializer(J,X)}flowEnumMembers({enumName:J,explicitType:X}){let Y=new Set,Q={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},U=!1;while(!this.match(8)){if(this.eat(21)){U=!0;break}let F=this.startNode(),{id:W,init:K}=this.flowEnumMemberRaw(),q=W.name;if(q==="")continue;if(/^[a-z]/.test(q))this.raise(qD.EnumInvalidMemberName,W,{memberName:q,suggestion:q[0].toUpperCase()+q.slice(1),enumName:J});if(Y.has(q))this.raise(qD.EnumDuplicateMemberName,W,{memberName:q,enumName:J});Y.add(q);let G={enumName:J,explicitType:X,memberName:q};switch(F.id=W,K.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"boolean"),F.init=K.value,Q.booleanMembers.push(this.finishNode(F,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"number"),F.init=K.value,Q.numberMembers.push(this.finishNode(F,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"string"),F.init=K.value,Q.stringMembers.push(this.finishNode(F,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(K.loc,G);case"none":switch(X){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(K.loc,G);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(K.loc,G);break;default:Q.defaultedMembers.push(this.finishNode(F,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:Q,hasUnknownMembers:U}}flowEnumStringMembers(J,X,{enumName:Y}){if(J.length===0)return X;else if(X.length===0)return J;else if(X.length>J.length){for(let Q of J)this.flowEnumErrorStringMemberInconsistentlyInitialized(Q,{enumName:Y});return X}else{for(let Q of X)this.flowEnumErrorStringMemberInconsistentlyInitialized(Q,{enumName:Y});return J}}flowEnumParseExplicitType({enumName:J}){if(!this.eatContextual(102))return null;if(!gD(this.state.type))throw this.raise(qD.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:J});let{value:X}=this.state;if(this.next(),X!=="boolean"&&X!=="number"&&X!=="string"&&X!=="symbol")this.raise(qD.EnumInvalidExplicitType,this.state.startLoc,{enumName:J,invalidEnumType:X});return X}flowEnumBody(J,X){let Y=X.name,Q=X.loc.start,U=this.flowEnumParseExplicitType({enumName:Y});this.expect(5);let{members:F,hasUnknownMembers:W}=this.flowEnumMembers({enumName:Y,explicitType:U});switch(J.hasUnknownMembers=W,U){case"boolean":return J.explicitType=!0,J.members=F.booleanMembers,this.expect(8),this.finishNode(J,"EnumBooleanBody");case"number":return J.explicitType=!0,J.members=F.numberMembers,this.expect(8),this.finishNode(J,"EnumNumberBody");case"string":return J.explicitType=!0,J.members=this.flowEnumStringMembers(F.stringMembers,F.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(J,"EnumStringBody");case"symbol":return J.members=F.defaultedMembers,this.expect(8),this.finishNode(J,"EnumSymbolBody");default:{let K=()=>{return J.members=[],this.expect(8),this.finishNode(J,"EnumStringBody")};J.explicitType=!1;let q=F.booleanMembers.length,G=F.numberMembers.length,Z=F.stringMembers.length,H=F.defaultedMembers.length;if(!q&&!G&&!Z&&!H)return K();else if(!q&&!G)return J.members=this.flowEnumStringMembers(F.stringMembers,F.defaultedMembers,{enumName:Y}),this.expect(8),this.finishNode(J,"EnumStringBody");else if(!G&&!Z&&q>=H){for(let z of F.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(z.loc.start,{enumName:Y,memberName:z.id.name});return J.members=F.booleanMembers,this.expect(8),this.finishNode(J,"EnumBooleanBody")}else if(!q&&!Z&&G>=H){for(let z of F.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(z.loc.start,{enumName:Y,memberName:z.id.name});return J.members=F.numberMembers,this.expect(8),this.finishNode(J,"EnumNumberBody")}else return this.raise(qD.EnumInconsistentMemberValues,Q,{enumName:Y}),K()}}}flowParseEnumDeclaration(J){let X=this.parseIdentifier();return J.id=X,J.body=this.flowEnumBody(this.startNode(),X),this.finishNode(J,"EnumDeclaration")}jsxParseOpeningElementAfterName(J){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))J.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(J)}isLookaheadToken_lt(){let J=this.nextTokenStart();if(this.input.charCodeAt(J)===60){let X=this.input.charCodeAt(J+1);return X!==60&&X!==61}return!1}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}maybeUnwrapTypeCastExpression(J){return J.type==="TypeCastExpression"?J.expression:J}},eFD={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},DWD=/\r\n|[\r\n\u2028\u2029]/,aQ=new RegExp(DWD.source,"g");function Z9(D){switch(D){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Sf(D,$,J){for(let X=$;X<J;X++)if(Z9(D.charCodeAt(X)))return!0;return!1}var XN=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,YN=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function $WD(D){switch(D){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var $8=M6`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:D})=>`Expected corresponding JSX closing tag for <${D}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:D,HTMLEntity:$})=>`Unexpected token \`${D}\`. Did you mean \`${$}\` or \`{'${D}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function g1(D){return D?D.type==="JSXOpeningFragment"||D.type==="JSXClosingFragment":!1}function G9(D){if(D.type==="JSXIdentifier")return D.name;if(D.type==="JSXNamespacedName")return D.namespace.name+":"+D.name.name;if(D.type==="JSXMemberExpression")return G9(D.object)+"."+G9(D.property);throw Error("Node had unexpected type: "+D.type)}var JWD=(D)=>class extends D{jsxReadToken(){let J="",X=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise($8.UnterminatedJsxContent,this.state.startLoc);let Y=this.input.charCodeAt(this.state.pos);switch(Y){case 60:case 123:if(this.state.pos===this.state.start){if(Y===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(Y);return}J+=this.input.slice(X,this.state.pos),this.finishToken(142,J);return;case 38:J+=this.input.slice(X,this.state.pos),J+=this.jsxReadEntity(),X=this.state.pos;break;case 62:case 125:default:if(Z9(Y))J+=this.input.slice(X,this.state.pos),J+=this.jsxReadNewLine(!0),X=this.state.pos;else++this.state.pos}}}jsxReadNewLine(J){let X=this.input.charCodeAt(this.state.pos),Y;if(++this.state.pos,X===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,Y=J?`
`:`\r
`;else Y=String.fromCharCode(X);return++this.state.curLine,this.state.lineStart=this.state.pos,Y}jsxReadString(J){let X="",Y=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M.UnterminatedString,this.state.startLoc);let Q=this.input.charCodeAt(this.state.pos);if(Q===J)break;if(Q===38)X+=this.input.slice(Y,this.state.pos),X+=this.jsxReadEntity(),Y=this.state.pos;else if(Z9(Q))X+=this.input.slice(Y,this.state.pos),X+=this.jsxReadNewLine(!1),Y=this.state.pos;else++this.state.pos}X+=this.input.slice(Y,this.state.pos++),this.finishToken(134,X)}jsxReadEntity(){let J=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let X=10;if(this.codePointAtPos(this.state.pos)===120)X=16,++this.state.pos;let Y=this.readInt(X,void 0,!1,"bail");if(Y!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(Y)}else{let X=0,Y=!1;while(X++<10&&this.state.pos<this.length&&!(Y=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(Y){let Q=this.input.slice(J,this.state.pos),U=eFD[Q];if(++this.state.pos,U)return U}}return this.state.pos=J,"&"}jsxReadWord(){let J,X=this.state.pos;do J=this.input.charCodeAt(++this.state.pos);while(J8(J)||J===45);this.finishToken(141,this.input.slice(X,this.state.pos))}jsxParseIdentifier(){let J=this.startNode();if(this.match(141))J.name=this.state.value;else if(VN(this.state.type))J.name=x1(this.state.type);else this.unexpected();return this.next(),this.finishNode(J,"JSXIdentifier")}jsxParseNamespacedName(){let J=this.state.startLoc,X=this.jsxParseIdentifier();if(!this.eat(14))return X;let Y=this.startNodeAt(J);return Y.namespace=X,Y.name=this.jsxParseIdentifier(),this.finishNode(Y,"JSXNamespacedName")}jsxParseElementName(){let J=this.state.startLoc,X=this.jsxParseNamespacedName();if(X.type==="JSXNamespacedName")return X;while(this.eat(16)){let Y=this.startNodeAt(J);Y.object=X,Y.property=this.jsxParseIdentifier(),X=this.finishNode(Y,"JSXMemberExpression")}return X}jsxParseAttributeValue(){let J;switch(this.state.type){case 5:if(J=this.startNode(),this.setContext(uD.brace),this.next(),J=this.jsxParseExpressionContainer(J,uD.j_oTag),J.expression.type==="JSXEmptyExpression")this.raise($8.AttributeIsEmpty,J);return J;case 143:case 134:return this.parseExprAtom();default:throw this.raise($8.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let J=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(J,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(J){return this.next(),J.expression=this.parseExpression(),this.setContext(uD.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadChild")}jsxParseExpressionContainer(J,X){if(this.match(8))J.expression=this.jsxParseEmptyExpression();else{let Y=this.parseExpression();J.expression=Y}return this.setContext(X),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXExpressionContainer")}jsxParseAttribute(){let J=this.startNode();if(this.match(5))return this.setContext(uD.brace),this.next(),this.expect(21),J.argument=this.parseMaybeAssignAllowIn(),this.setContext(uD.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadAttribute");return J.name=this.jsxParseNamespacedName(),J.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(J,"JSXAttribute")}jsxParseOpeningElementAt(J){let X=this.startNodeAt(J);if(this.eat(144))return this.finishNode(X,"JSXOpeningFragment");return X.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(X)}jsxParseOpeningElementAfterName(J){let X=[];while(!this.match(56)&&!this.match(144))X.push(this.jsxParseAttribute());return J.attributes=X,J.selfClosing=this.eat(56),this.expect(144),this.finishNode(J,"JSXOpeningElement")}jsxParseClosingElementAt(J){let X=this.startNodeAt(J);if(this.eat(144))return this.finishNode(X,"JSXClosingFragment");return X.name=this.jsxParseElementName(),this.expect(144),this.finishNode(X,"JSXClosingElement")}jsxParseElementAt(J){let X=this.startNodeAt(J),Y=[],Q=this.jsxParseOpeningElementAt(J),U=null;if(!Q.selfClosing){D:for(;;)switch(this.state.type){case 143:if(J=this.state.startLoc,this.next(),this.eat(56)){U=this.jsxParseClosingElementAt(J);break D}Y.push(this.jsxParseElementAt(J));break;case 142:Y.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let F=this.startNode();if(this.setContext(uD.brace),this.next(),this.match(21))Y.push(this.jsxParseSpreadChild(F));else Y.push(this.jsxParseExpressionContainer(F,uD.j_expr));break}default:this.unexpected()}if(g1(Q)&&!g1(U)&&U!==null)this.raise($8.MissingClosingTagFragment,U);else if(!g1(Q)&&g1(U))this.raise($8.MissingClosingTagElement,U,{openingTagName:G9(Q.name)});else if(!g1(Q)&&!g1(U)){if(G9(U.name)!==G9(Q.name))this.raise($8.MissingClosingTagElement,U,{openingTagName:G9(Q.name)})}}if(g1(Q))X.openingFragment=Q,X.closingFragment=U;else X.openingElement=Q,X.closingElement=U;if(X.children=Y,this.match(47))throw this.raise($8.UnwrappedAdjacentJSXElements,this.state.startLoc);return g1(Q)?this.finishNode(X,"JSXFragment"):this.finishNode(X,"JSXElement")}jsxParseElement(){let J=this.state.startLoc;return this.next(),this.jsxParseElementAt(J)}setContext(J){let{context:X}=this.state;X[X.length-1]=J}parseExprAtom(J){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(J)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(J){let X=this.curContext();if(X===uD.j_expr){this.jsxReadToken();return}if(X===uD.j_oTag||X===uD.j_cTag){if(A6(J)){this.jsxReadWord();return}if(J===62){++this.state.pos,this.finishToken(144);return}if((J===34||J===39)&&X===uD.j_oTag){this.jsxReadString(J);return}}if(J===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(J)}updateContext(J){let{context:X,type:Y}=this.state;if(Y===56&&J===143)X.splice(-2,2,uD.j_cTag),this.state.canStartJSXElement=!1;else if(Y===143)X.push(uD.j_oTag);else if(Y===144){let Q=X[X.length-1];if(Q===uD.j_oTag&&J===56||Q===uD.j_cTag)X.pop(),this.state.canStartJSXElement=X[X.length-1]===uD.j_expr;else this.setContext(uD.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=TFD(Y)}};class of extends XU{constructor(...D){super(...D);this.tsNames=new Map}}class af extends YU{constructor(...D){super(...D);this.importsStack=[]}createScope(D){return this.importsStack.push(new Set),new of(D)}enter(D){if(D===1024)this.importsStack.push(new Set);super.enter(D)}exit(){let D=super.exit();if(D===1024)this.importsStack.pop();return D}hasImport(D,$){let J=this.importsStack.length;if(this.importsStack[J-1].has(D))return!0;if(!$&&J>1){for(let X=0;X<J-1;X++)if(this.importsStack[X].has(D))return!0}return!1}declareName(D,$,J){if($&4096){if(this.hasImport(D,!0))this.parser.raise(M.VarRedeclaration,J,{identifierName:D});this.importsStack[this.importsStack.length-1].add(D);return}let X=this.currentScope(),Y=X.tsNames.get(D)||0;if($&1024){this.maybeExportDefined(X,D),X.tsNames.set(D,Y|16);return}if(super.declareName(D,$,J),$&2){if(!($&1))this.checkRedeclarationInScope(X,D,$,J),this.maybeExportDefined(X,D);Y=Y|1}if($&256)Y=Y|2;if($&512)Y=Y|4;if($&128)Y=Y|8;if(Y)X.tsNames.set(D,Y)}isRedeclaredInScope(D,$,J){let X=D.tsNames.get($);if((X&2)>0){if(J&256){let Y=!!(J&512),Q=(X&4)>0;return Y!==Q}return!0}if(J&128&&(X&8)>0)if(D.names.get($)&2)return!!(J&1);else return!1;if(J&2&&(X&1)>0)return!0;return super.isRedeclaredInScope(D,$,J)}checkLocalExport(D){let{name:$}=D;if(this.hasImport($))return;let J=this.scopeStack.length;for(let X=J-1;X>=0;X--){let Q=this.scopeStack[X].tsNames.get($);if((Q&1)>0||(Q&16)>0)return}super.checkLocalExport(D)}}class sf{constructor(){this.stacks=[]}enter(D){this.stacks.push(D)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function $U(D,$){return(D?2:0)|($?1:0)}class ef{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(D){return D+this.startIndex}offsetToSourcePos(D){return D-this.startIndex}hasPlugin(D){if(typeof D==="string")return this.plugins.has(D);else{let[$,J]=D;if(!this.hasPlugin($))return!1;let X=this.plugins.get($);for(let Y of Object.keys(J))if((X==null?void 0:X[Y])!==J[Y])return!1;return!0}}getPluginOption(D,$){var J;return(J=this.plugins.get(D))==null?void 0:J[$]}}function Dy(D,$){if(D.trailingComments===void 0)D.trailingComments=$;else D.trailingComments.unshift(...$)}function XWD(D,$){if(D.leadingComments===void 0)D.leadingComments=$;else D.leadingComments.unshift(...$)}function W3(D,$){if(D.innerComments===void 0)D.innerComments=$;else D.innerComments.unshift(...$)}function Y6(D,$,J){let X=null,Y=$.length;while(X===null&&Y>0)X=$[--Y];if(X===null||X.start>J.start)W3(D,J.comments);else Dy(X,J.comments)}class $y extends ef{addComment(D){if(this.filename)D.loc.filename=this.filename;let{commentsLen:$}=this.state;if(this.comments.length!==$)this.comments.length=$;this.comments.push(D),this.state.commentsLen++}processComment(D){let{commentStack:$}=this.state,J=$.length;if(J===0)return;let X=J-1,Y=$[X];if(Y.start===D.end)Y.leadingNode=D,X--;let{start:Q}=D;for(;X>=0;X--){let U=$[X],F=U.end;if(F>Q)U.containingNode=D,this.finalizeComment(U),$.splice(X,1);else{if(F===Q)U.trailingNode=D;break}}}finalizeComment(D){var $;let{comments:J}=D;if(D.leadingNode!==null||D.trailingNode!==null){if(D.leadingNode!==null)Dy(D.leadingNode,J);if(D.trailingNode!==null)XWD(D.trailingNode,J)}else{let{containingNode:X,start:Y}=D;if(this.input.charCodeAt(this.offsetToSourcePos(Y)-1)===44)switch(X.type){case"ObjectExpression":case"ObjectPattern":Y6(X,X.properties,D);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Y6(X,X.arguments,D);break;case"ImportExpression":Y6(X,[X.source,($=X.options)!=null?$:null],D);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Y6(X,X.params,D);break;case"ArrayExpression":case"ArrayPattern":Y6(X,X.elements,D);break;case"ExportNamedDeclaration":case"ImportDeclaration":Y6(X,X.specifiers,D);break;case"TSEnumDeclaration":Y6(X,X.members,D);break;case"TSEnumBody":Y6(X,X.members,D);break;case"TSInterfaceBody":Y6(X,X.body,D);break;default:{if(X.type==="RecordExpression"){Y6(X,X.properties,D);break}if(X.type==="TupleExpression"){Y6(X,X.elements,D);break}W3(X,J)}}else W3(X,J)}}finalizeRemainingComments(){let{commentStack:D}=this.state;for(let $=D.length-1;$>=0;$--)this.finalizeComment(D[$]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(D){let{commentStack:$}=this.state,{length:J}=$;if(J===0)return;let X=$[J-1];if(X.leadingNode===D)X.leadingNode=null}takeSurroundingComments(D,$,J){let{commentStack:X}=this.state,Y=X.length;if(Y===0)return;let Q=Y-1;for(;Q>=0;Q--){let U=X[Q],F=U.end;if(U.start===J)U.leadingNode=D;else if(F===$)U.trailingNode=D;else if(F<$)break}}}class LN{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[uD.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(D){if(D)this.flags|=1;else this.flags&=-2}init({strictMode:D,sourceType:$,startIndex:J,startLine:X,startColumn:Y}){this.strict=D===!1?!1:D===!0?!0:$==="module",this.startIndex=J,this.curLine=X,this.lineStart=-Y,this.startLoc=this.endLoc=new i6(X,Y,J)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(D){if(D)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(D){if(D)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(D){if(D)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(D){if(D)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(D){if(D)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(D){if(D)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(D){if(D)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(D){if(D)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(D){if(D)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(D){if(D)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(D){if(D)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(D){if(D)this.flags|=4096;else this.flags&=-4097}curPosition(){return new i6(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let D=new LN;return D.flags=this.flags,D.startIndex=this.startIndex,D.curLine=this.curLine,D.lineStart=this.lineStart,D.startLoc=this.startLoc,D.endLoc=this.endLoc,D.errors=this.errors.slice(),D.potentialArrowAt=this.potentialArrowAt,D.noArrowAt=this.noArrowAt.slice(),D.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),D.topicContext=this.topicContext,D.labels=this.labels.slice(),D.commentsLen=this.commentsLen,D.commentStack=this.commentStack.slice(),D.pos=this.pos,D.type=this.type,D.value=this.value,D.start=this.start,D.end=this.end,D.lastTokEndLoc=this.lastTokEndLoc,D.lastTokStartLoc=this.lastTokStartLoc,D.context=this.context.slice(),D.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,D.strictErrors=this.strictErrors,D.tokensLength=this.tokensLength,D}}var YWD=function($){return $>=48&&$<=57},Cf={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},sQ={bin:(D)=>D===48||D===49,oct:(D)=>D>=48&&D<=55,dec:(D)=>D>=48&&D<=57,hex:(D)=>D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102};function kf(D,$,J,X,Y,Q){let U=J,F=X,W=Y,K="",q=null,G=J,{length:Z}=$;for(;;){if(J>=Z){Q.unterminated(U,F,W),K+=$.slice(G,J);break}let H=$.charCodeAt(J);if(QWD(D,H,$,J)){K+=$.slice(G,J);break}if(H===92){K+=$.slice(G,J);let z=UWD($,J,X,Y,D==="template",Q);if(z.ch===null&&!q)q={pos:J,lineStart:X,curLine:Y};else K+=z.ch;({pos:J,lineStart:X,curLine:Y}=z),G=J}else if(H===8232||H===8233)++J,++Y,X=J;else if(H===10||H===13)if(D==="template"){if(K+=$.slice(G,J)+`
`,++J,H===13&&$.charCodeAt(J)===10)++J;++Y,G=X=J}else Q.unterminated(U,F,W);else++J}return{pos:J,str:K,firstInvalidLoc:q,lineStart:X,curLine:Y,containsInvalid:!!q}}function QWD(D,$,J,X){if(D==="template")return $===96||$===36&&J.charCodeAt(X+1)===123;return $===(D==="double"?34:39)}function UWD(D,$,J,X,Y,Q){let U=!Y;$++;let F=(K)=>({pos:$,ch:K,lineStart:J,curLine:X}),W=D.charCodeAt($++);switch(W){case 110:return F(`
`);case 114:return F("\r");case 120:{let K;return{code:K,pos:$}=KN(D,$,J,X,2,!1,U,Q),F(K===null?null:String.fromCharCode(K))}case 117:{let K;return{code:K,pos:$}=Xy(D,$,J,X,U,Q),F(K===null?null:String.fromCodePoint(K))}case 116:return F("\t");case 98:return F("\b");case 118:return F("\v");case 102:return F("\f");case 13:if(D.charCodeAt($)===10)++$;case 10:J=$,++X;case 8232:case 8233:return F("");case 56:case 57:if(Y)return F(null);else Q.strictNumericEscape($-1,J,X);default:if(W>=48&&W<=55){let K=$-1,G=/^[0-7]+/.exec(D.slice(K,$+2))[0],Z=parseInt(G,8);if(Z>255)G=G.slice(0,-1),Z=parseInt(G,8);$+=G.length-1;let H=D.charCodeAt($);if(G!=="0"||H===56||H===57)if(Y)return F(null);else Q.strictNumericEscape(K,J,X);return F(String.fromCharCode(Z))}return F(String.fromCharCode(W))}}function KN(D,$,J,X,Y,Q,U,F){let W=$,K;if({n:K,pos:$}=Jy(D,$,J,X,16,Y,Q,!1,F,!U),K===null)if(U)F.invalidEscapeSequence(W,J,X);else $=W-1;return{code:K,pos:$}}function Jy(D,$,J,X,Y,Q,U,F,W,K){let q=$,G=Y===16?Cf.hex:Cf.decBinOct,Z=Y===16?sQ.hex:Y===10?sQ.dec:Y===8?sQ.oct:sQ.bin,H=!1,z=0;for(let I=0,B=Q==null?1/0:Q;I<B;++I){let N=D.charCodeAt($),V;if(N===95&&F!=="bail"){let O=D.charCodeAt($-1),j=D.charCodeAt($+1);if(!F){if(K)return{n:null,pos:$};W.numericSeparatorInEscapeSequence($,J,X)}else if(Number.isNaN(j)||!Z(j)||G.has(O)||G.has(j)){if(K)return{n:null,pos:$};W.unexpectedNumericSeparator($,J,X)}++$;continue}if(N>=97)V=N-97+10;else if(N>=65)V=N-65+10;else if(YWD(N))V=N-48;else V=1/0;if(V>=Y)if(V<=9&&K)return{n:null,pos:$};else if(V<=9&&W.invalidDigit($,J,X,Y))V=0;else if(U)V=0,H=!0;else break;++$,z=z*Y+V}if($===q||Q!=null&&$-q!==Q||H)return{n:null,pos:$};return{n:z,pos:$}}function Xy(D,$,J,X,Y,Q){let U=D.charCodeAt($),F;if(U===123){if(++$,{code:F,pos:$}=KN(D,$,J,X,D.indexOf("}",$)-$,!0,Y,Q),++$,F!==null&&F>1114111)if(Y)Q.invalidCodePoint($,J,X);else return{code:null,pos:$}}else({code:F,pos:$}=KN(D,$,J,X,4,!1,Y,Q));return{code:F,pos:$}}function J3(D,$,J){return new i6(J,D-$,D)}var FWD=new Set([103,109,115,105,121,117,100,118]);class d6{constructor(D){let $=D.startIndex||0;this.type=D.type,this.value=D.value,this.start=$+D.start,this.end=$+D.end,this.loc=new F3(D.startLoc,D.endLoc)}}class Yy extends $y{constructor(D,$){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(J,X,Y,Q)=>{if(!(this.optionFlags&2048))return!1;return this.raise(M.InvalidDigit,J3(J,X,Y),{radix:Q}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(M.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(M.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(M.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(M.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(J,X,Y)=>{this.recordStrictModeErrors(M.StrictNumericEscape,J3(J,X,Y))},unterminated:(J,X,Y)=>{throw this.raise(M.UnterminatedString,J3(J-1,X,Y))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(M.StrictNumericEscape),unterminated:(J,X,Y)=>{throw this.raise(M.UnterminatedTemplate,J3(J,X,Y))}}),this.state=new LN,this.state.init(D),this.input=$,this.length=$.length,this.comments=[],this.isLookahead=!1}pushToken(D){this.tokens.length=this.state.tokensLength,this.tokens.push(D),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&256)this.pushToken(new d6(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(D){if(this.match(D))return this.next(),!0;else return!1}match(D){return this.state.type===D}createLookaheadState(D){return{pos:D.pos,value:null,type:D.type,start:D.start,end:D.end,context:[this.curContext()],inType:D.inType,startLoc:D.startLoc,lastTokEndLoc:D.lastTokEndLoc,curLine:D.curLine,lineStart:D.lineStart,curPosition:D.curPosition}}lookahead(){let D=this.state;this.state=this.createLookaheadState(D),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let $=this.state;return this.state=D,$}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(D){return XN.lastIndex=D,XN.test(this.input)?XN.lastIndex:D}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(D){return this.input.charCodeAt(this.nextTokenStartSince(D))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(D){return YN.lastIndex=D,YN.test(this.input)?YN.lastIndex:D}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(D){let $=this.input.charCodeAt(D);if(($&64512)===55296&&++D<this.input.length){let J=this.input.charCodeAt(D);if((J&64512)===56320)$=65536+(($&1023)<<10)+(J&1023)}return $}setStrict(D){if(this.state.strict=D,D)this.state.strictErrors.forEach(([$,J])=>this.raise($,J)),this.state.strictErrors.clear()}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(D){let $;if(!this.isLookahead)$=this.state.curPosition();let J=this.state.pos,X=this.input.indexOf(D,J+2);if(X===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition());this.state.pos=X+D.length,aQ.lastIndex=J+2;while(aQ.test(this.input)&&aQ.lastIndex<=X)++this.state.curLine,this.state.lineStart=aQ.lastIndex;if(this.isLookahead)return;let Y={type:"CommentBlock",value:this.input.slice(J+2,X),start:this.sourceToOffsetPos(J),end:this.sourceToOffsetPos(X+D.length),loc:new F3($,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(Y);return Y}skipLineComment(D){let $=this.state.pos,J;if(!this.isLookahead)J=this.state.curPosition();let X=this.input.charCodeAt(this.state.pos+=D);if(this.state.pos<this.length)while(!Z9(X)&&++this.state.pos<this.length)X=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let Y=this.state.pos,U={type:"CommentLine",value:this.input.slice($+D,Y),start:this.sourceToOffsetPos($),end:this.sourceToOffsetPos(Y),loc:new F3(J,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(U);return U}skipSpace(){let D=this.state.pos,$=this.optionFlags&4096?[]:null;D:while(this.state.pos<this.length){let J=this.input.charCodeAt(this.state.pos);switch(J){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let X=this.skipBlockComment("*/");if(X!==void 0)this.addComment(X),$==null||$.push(X);break}case 47:{let X=this.skipLineComment(2);if(X!==void 0)this.addComment(X),$==null||$.push(X);break}default:break D}break;default:if($WD(J))++this.state.pos;else if(J===45&&!this.inModule&&this.optionFlags&8192){let X=this.state.pos;if(this.input.charCodeAt(X+1)===45&&this.input.charCodeAt(X+2)===62&&(D===0||this.state.lineStart>D)){let Y=this.skipLineComment(3);if(Y!==void 0)this.addComment(Y),$==null||$.push(Y)}else break D}else if(J===60&&!this.inModule&&this.optionFlags&8192){let X=this.state.pos;if(this.input.charCodeAt(X+1)===33&&this.input.charCodeAt(X+2)===45&&this.input.charCodeAt(X+3)===45){let Y=this.skipLineComment(4);if(Y!==void 0)this.addComment(Y),$==null||$.push(Y)}else break D}else break D}}if(($==null?void 0:$.length)>0){let J=this.state.pos,X={start:this.sourceToOffsetPos(D),end:this.sourceToOffsetPos(J),comments:$,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(X)}}finishToken(D,$){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let J=this.state.type;if(this.state.type=D,this.state.value=$,!this.isLookahead)this.updateContext(J)}replaceToken(D){this.state.type=D,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let D=this.state.pos+1,$=this.codePointAtPos(D);if($>=48&&$<=57)throw this.raise(M.UnexpectedDigitAfterHash,this.state.curPosition());if($===123||$===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise($===123?M.RecordExpressionHashIncorrectStartSyntaxType:M.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,$===123)this.finishToken(7);else this.finishToken(1)}else if(A6($))++this.state.pos,this.finishToken(139,this.readWord1($));else if($===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let D=this.input.charCodeAt(this.state.pos+1);if(D>=48&&D<=57){this.readNumber(!0);return}if(D===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let D=this.input.charCodeAt(this.state.pos+1);if(D!==33)return!1;let $=this.state.pos;this.state.pos+=1;while(!Z9(D)&&++this.state.pos<this.length)D=this.input.charCodeAt(this.state.pos);let J=this.input.slice($+2,this.state.pos);return this.finishToken(28,J),!0}readToken_mult_modulo(D){let $=D===42?55:54,J=1,X=this.input.charCodeAt(this.state.pos+1);if(D===42&&X===42)J++,X=this.input.charCodeAt(this.state.pos+2),$=57;if(X===61&&!this.state.inType)J++,$=D===37?33:30;this.finishOp($,J)}readToken_pipe_amp(D){let $=this.input.charCodeAt(this.state.pos+1);if($===D){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(D===124?41:42,2);return}if(D===124){if($===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&$===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&$===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if($===61){this.finishOp(30,2);return}this.finishOp(D===124?43:45,1)}readToken_caret(){let D=this.input.charCodeAt(this.state.pos+1);if(D===61&&!this.state.inType)this.finishOp(32,2);else if(D===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(D){let $=this.input.charCodeAt(this.state.pos+1);if($===D){this.finishOp(34,2);return}if($===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:D}=this.state,$=this.input.charCodeAt(D+1);if($===60){if(this.input.charCodeAt(D+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if($===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:D}=this.state,$=this.input.charCodeAt(D+1);if($===62){let J=this.input.charCodeAt(D+2)===62?3:2;if(this.input.charCodeAt(D+J)===61){this.finishOp(30,J+1);return}this.finishOp(52,J);return}if($===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(D){let $=this.input.charCodeAt(this.state.pos+1);if($===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(D===61&&$===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(D===61?29:35,1)}readToken_question(){let D=this.input.charCodeAt(this.state.pos+1),$=this.input.charCodeAt(this.state.pos+2);if(D===63)if($===61)this.finishOp(30,3);else this.finishOp(40,2);else if(D===46&&!($>=48&&$<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(D){switch(D){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let $=this.input.charCodeAt(this.state.pos+1);if($===120||$===88){this.readRadixNumber(16);return}if($===111||$===79){this.readRadixNumber(8);return}if($===98||$===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(D);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(D);return;case 124:case 38:this.readToken_pipe_amp(D);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(D);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(D);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(A6(D)){this.readWord(D);return}}throw this.raise(M.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(D)})}finishOp(D,$){let J=this.input.slice(this.state.pos,this.state.pos+$);this.state.pos+=$,this.finishToken(D,J)}readRegexp(){let D=this.state.startLoc,$=this.state.start+1,J,X,{pos:Y}=this.state;for(;;++Y){if(Y>=this.length)throw this.raise(M.UnterminatedRegExp,U$(D,1));let W=this.input.charCodeAt(Y);if(Z9(W))throw this.raise(M.UnterminatedRegExp,U$(D,1));if(J)J=!1;else{if(W===91)X=!0;else if(W===93&&X)X=!1;else if(W===47&&!X)break;J=W===92}}let Q=this.input.slice($,Y);++Y;let U="",F=()=>U$(D,Y+2-$);while(Y<this.length){let W=this.codePointAtPos(Y),K=String.fromCharCode(W);if(FWD.has(W)){if(W===118){if(U.includes("u"))this.raise(M.IncompatibleRegExpUVFlags,F())}else if(W===117){if(U.includes("v"))this.raise(M.IncompatibleRegExpUVFlags,F())}if(U.includes(K))this.raise(M.DuplicateRegExpFlags,F())}else if(J8(W)||W===92)this.raise(M.MalformedRegExpFlags,F());else break;++Y,U+=K}this.state.pos=Y,this.finishToken(138,{pattern:Q,flags:U})}readInt(D,$,J=!1,X=!0){let{n:Y,pos:Q}=Jy(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,$,J,X,this.errorHandlers_readInt,!1);return this.state.pos=Q,Y}readRadixNumber(D){let $=this.state.pos,J=this.state.curPosition(),X=!1;this.state.pos+=2;let Y=this.readInt(D);if(Y==null)this.raise(M.InvalidDigit,U$(J,2),{radix:D});let Q=this.input.charCodeAt(this.state.pos);if(Q===110)++this.state.pos,X=!0;else if(Q===109)throw this.raise(M.InvalidDecimal,J);if(A6(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(X){let U=this.input.slice($,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,U);return}this.finishToken(135,Y)}readNumber(D){let $=this.state.pos,J=this.state.curPosition(),X=!1,Y=!1,Q=!1,U=!1;if(!D&&this.readInt(10)===null)this.raise(M.InvalidNumber,this.state.curPosition());let F=this.state.pos-$>=2&&this.input.charCodeAt($)===48;if(F){let Z=this.input.slice($,this.state.pos);if(this.recordStrictModeErrors(M.StrictOctalLiteral,J),!this.state.strict){let H=Z.indexOf("_");if(H>0)this.raise(M.ZeroDigitNumericSeparator,U$(J,H))}U=F&&!/[89]/.test(Z)}let W=this.input.charCodeAt(this.state.pos);if(W===46&&!U)++this.state.pos,this.readInt(10),X=!0,W=this.input.charCodeAt(this.state.pos);if((W===69||W===101)&&!U){if(W=this.input.charCodeAt(++this.state.pos),W===43||W===45)++this.state.pos;if(this.readInt(10)===null)this.raise(M.InvalidOrMissingExponent,J);X=!0,Q=!0,W=this.input.charCodeAt(this.state.pos)}if(W===110){if(X||F)this.raise(M.InvalidBigIntLiteral,J);++this.state.pos,Y=!0}if(W===109){if(this.expectPlugin("decimal",this.state.curPosition()),Q||F)this.raise(M.InvalidDecimal,J);++this.state.pos;var K=!0}if(A6(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());let q=this.input.slice($,this.state.pos).replace(/[_mn]/g,"");if(Y){this.finishToken(136,q);return}if(K){this.finishToken(137,q);return}let G=U?parseInt(q,8):parseFloat(q);this.finishToken(135,G)}readCodePoint(D){let{code:$,pos:J}=Xy(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,this.errorHandlers_readCodePoint);return this.state.pos=J,$}readString(D){let{str:$,pos:J,curLine:X,lineStart:Y}=kf(D===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=J+1,this.state.lineStart=Y,this.state.curLine=X,this.finishToken(134,$)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let D=this.input[this.state.pos],{str:$,firstInvalidLoc:J,pos:X,curLine:Y,lineStart:Q}=kf("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=X+1,this.state.lineStart=Q,this.state.curLine=Y,J)this.state.firstInvalidTemplateEscapePos=new i6(J.curLine,J.pos-J.lineStart,this.sourceToOffsetPos(J.pos));if(this.input.codePointAt(X)===96)this.finishToken(24,J?null:D+$+"`");else this.state.pos++,this.finishToken(25,J?null:D+$+"${")}recordStrictModeErrors(D,$){let J=$.index;if(this.state.strict&&!this.state.strictErrors.has(J))this.raise(D,$);else this.state.strictErrors.set(J,[D,$])}readWord1(D){this.state.containsEsc=!1;let $="",J=this.state.pos,X=this.state.pos;if(D!==void 0)this.state.pos+=D<=65535?1:2;while(this.state.pos<this.length){let Y=this.codePointAtPos(this.state.pos);if(J8(Y))this.state.pos+=Y<=65535?1:2;else if(Y===92){this.state.containsEsc=!0,$+=this.input.slice(X,this.state.pos);let Q=this.state.curPosition(),U=this.state.pos===J?A6:J8;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(M.MissingUnicodeEscape,this.state.curPosition()),X=this.state.pos-1;continue}++this.state.pos;let F=this.readCodePoint(!0);if(F!==null){if(!U(F))this.raise(M.EscapedCharNotAnIdentifier,Q);$+=String.fromCodePoint(F)}X=this.state.pos}else break}return $+this.input.slice(X,this.state.pos)}readWord(D){let $=this.readWord1(D),J=zN.get($);if(J!==void 0)this.finishToken(J,x1(J));else this.finishToken(132,$)}checkKeywordEscapes(){let{type:D}=this.state;if(VN(D)&&this.state.containsEsc)this.raise(M.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:x1(D)})}raise(D,$,J={}){let X=$ instanceof i6?$:$.loc.start,Y=D(X,J);if(!(this.optionFlags&2048))throw Y;if(!this.isLookahead)this.state.errors.push(Y);return Y}raiseOverwrite(D,$,J={}){let X=$ instanceof i6?$:$.loc.start,Y=X.index,Q=this.state.errors;for(let U=Q.length-1;U>=0;U--){let F=Q[U];if(F.loc.index===Y)return Q[U]=D(X,J);if(F.loc.index<Y)break}return this.raise(D,$,J)}updateContext(D){}unexpected(D,$){throw this.raise(M.UnexpectedToken,D!=null?D:this.state.startLoc,{expected:$?x1($):null})}expectPlugin(D,$){if(this.hasPlugin(D))return!0;throw this.raise(M.MissingPlugin,$!=null?$:this.state.startLoc,{missingPlugin:[D]})}expectOnePlugin(D){if(!D.some(($)=>this.hasPlugin($)))throw this.raise(M.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:D})}errorBuilder(D){return($,J,X)=>{this.raise(D,J3($,J,X))}}}class Qy{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Uy{constructor(D){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=D}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Qy)}exit(){let D=this.stack.pop(),$=this.current();for(let[J,X]of Array.from(D.undefinedPrivateNames))if($){if(!$.undefinedPrivateNames.has(J))$.undefinedPrivateNames.set(J,X)}else this.parser.raise(M.InvalidPrivateFieldResolution,X,{identifierName:J})}declarePrivateName(D,$,J){let{privateNames:X,loneAccessors:Y,undefinedPrivateNames:Q}=this.current(),U=X.has(D);if($&3){let F=U&&Y.get(D);if(F){let W=F&4,K=$&4,q=F&3,G=$&3;if(U=q===G||W!==K,!U)Y.delete(D)}else if(!U)Y.set(D,$)}if(U)this.parser.raise(M.PrivateNameRedeclaration,J,{identifierName:D});X.add(D),Q.delete(D)}usePrivateName(D,$){let J;for(J of this.stack)if(J.privateNames.has(D))return;if(J)J.undefinedPrivateNames.set(D,$);else this.parser.raise(M.InvalidPrivateFieldResolution,$,{identifierName:D})}}class q3{constructor(D=0){this.type=D}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class RN extends q3{constructor(D){super(D);this.declarationErrors=new Map}recordDeclarationError(D,$){let J=$.index;this.declarationErrors.set(J,[D,$])}clearDeclarationError(D){this.declarationErrors.delete(D)}iterateErrors(D){this.declarationErrors.forEach(D)}}class Fy{constructor(D){this.parser=void 0,this.stack=[new q3],this.parser=D}enter(D){this.stack.push(D)}exit(){this.stack.pop()}recordParameterInitializerError(D,$){let J=$.loc.start,{stack:X}=this,Y=X.length-1,Q=X[Y];while(!Q.isCertainlyParameterDeclaration()){if(Q.canBeArrowParameterDeclaration())Q.recordDeclarationError(D,J);else return;Q=X[--Y]}this.parser.raise(D,J)}recordArrowParameterBindingError(D,$){let{stack:J}=this,X=J[J.length-1],Y=$.loc.start;if(X.isCertainlyParameterDeclaration())this.parser.raise(D,Y);else if(X.canBeArrowParameterDeclaration())X.recordDeclarationError(D,Y);else return}recordAsyncArrowParametersError(D){let{stack:$}=this,J=$.length-1,X=$[J];while(X.canBeArrowParameterDeclaration()){if(X.type===2)X.recordDeclarationError(M.AwaitBindingIdentifier,D);X=$[--J]}}validateAsPattern(){let{stack:D}=this,$=D[D.length-1];if(!$.canBeArrowParameterDeclaration())return;$.iterateErrors(([J,X])=>{this.parser.raise(J,X);let Y=D.length-2,Q=D[Y];while(Q.canBeArrowParameterDeclaration())Q.clearDeclarationError(X.index),Q=D[--Y]})}}function WWD(){return new q3(3)}function KWD(){return new RN(1)}function qWD(){return new RN(2)}function Wy(){return new q3}class Ky extends Yy{addExtra(D,$,J,X=!0){if(!D)return;let{extra:Y}=D;if(Y==null)Y={},D.extra=Y;if(X)Y[$]=J;else Object.defineProperty(Y,$,{enumerable:X,value:J})}isContextual(D){return this.state.type===D&&!this.state.containsEsc}isUnparsedContextual(D,$){if(this.input.startsWith($,D)){let J=this.input.charCodeAt(D+$.length);return!(J8(J)||(J&64512)===55296)}return!1}isLookaheadContextual(D){let $=this.nextTokenStart();return this.isUnparsedContextual($,D)}eatContextual(D){if(this.isContextual(D))return this.next(),!0;return!1}expectContextual(D,$){if(!this.eatContextual(D)){if($!=null)throw this.raise($,this.state.startLoc);this.unexpected(null,D)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Sf(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Sf(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(D=!0){if(D?this.isLineTerminator():this.eat(13))return;this.raise(M.MissingSemicolon,this.state.lastTokEndLoc)}expect(D,$){if(!this.eat(D))this.unexpected($,D)}tryParse(D,$=this.state.clone()){let J={node:null};try{let X=D((Y=null)=>{throw J.node=Y,J});if(this.state.errors.length>$.errors.length){let Y=this.state;return this.state=$,this.state.tokensLength=Y.tokensLength,{node:X,error:Y.errors[$.errors.length],thrown:!1,aborted:!1,failState:Y}}return{node:X,error:null,thrown:!1,aborted:!1,failState:null}}catch(X){let Y=this.state;if(this.state=$,X instanceof SyntaxError)return{node:null,error:X,thrown:!0,aborted:!1,failState:Y};if(X===J)return{node:J.node,error:null,thrown:!1,aborted:!0,failState:Y};throw X}}checkExpressionErrors(D,$){if(!D)return!1;let{shorthandAssignLoc:J,doubleProtoLoc:X,privateKeyLoc:Y,optionalParametersLoc:Q,voidPatternLoc:U}=D,F=!!J||!!X||!!Q||!!Y||!!U;if(!$)return F;if(J!=null)this.raise(M.InvalidCoverInitializedName,J);if(X!=null)this.raise(M.DuplicateProto,X);if(Y!=null)this.raise(M.UnexpectedPrivateField,Y);if(Q!=null)this.unexpected(Q);if(U!=null)this.raise(M.InvalidCoverDiscardElement,U)}isLiteralPropertyName(){return hf(this.state.type)}isPrivateName(D){return D.type==="PrivateName"}getPrivateNameSV(D){return D.id.name}hasPropertyAsPrivateName(D){return(D.type==="MemberExpression"||D.type==="OptionalMemberExpression")&&this.isPrivateName(D.property)}isObjectProperty(D){return D.type==="ObjectProperty"}isObjectMethod(D){return D.type==="ObjectMethod"}initializeScopes(D=this.options.sourceType==="module"){let $=this.state.labels;this.state.labels=[];let J=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let X=this.inModule;this.inModule=D;let Y=this.scope,Q=this.getScopeHandler();this.scope=new Q(this,D);let U=this.prodParam;this.prodParam=new sf;let F=this.classScope;this.classScope=new Uy(this);let W=this.expressionScope;return this.expressionScope=new Fy(this),()=>{this.state.labels=$,this.exportedIdentifiers=J,this.inModule=X,this.scope=Y,this.prodParam=U,this.classScope=F,this.expressionScope=W}}enterInitialScopes(){let D=0;if(this.inModule||this.optionFlags&1)D|=2;if(this.optionFlags&32)D|=1;let $=!this.inModule&&this.options.sourceType==="commonjs";if($||this.optionFlags&2)D|=4;this.prodParam.enter(D);let J=$?514:1;if(this.optionFlags&4)J|=512;this.scope.enter(J)}checkDestructuringPrivate(D){let{privateKeyLoc:$}=D;if($!==null)this.expectPlugin("destructuringPrivate",$)}}class U3{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class K3{constructor(D,$,J){if(this.type="",this.start=$,this.end=0,this.loc=new F3(J),(D==null?void 0:D.optionFlags)&128)this.range=[$,0];if(D!=null&&D.filename)this.loc.filename=D.filename}}var qN=K3.prototype;qN.__clone=function(){let D=new K3(void 0,this.start,this.loc.start),$=Object.keys(this);for(let J=0,X=$.length;J<X;J++){let Y=$[J];if(Y!=="leadingComments"&&Y!=="trailingComments"&&Y!=="innerComments")D[Y]=this[Y]}return D};class qy extends Ky{startNode(){let D=this.state.startLoc;return new K3(this,D.index,D)}startNodeAt(D){return new K3(this,D.index,D)}startNodeAtNode(D){return this.startNodeAt(D.loc.start)}finishNode(D,$){return this.finishNodeAt(D,$,this.state.lastTokEndLoc)}finishNodeAt(D,$,J){if(D.type=$,D.end=J.index,D.loc.end=J,this.optionFlags&128)D.range[1]=J.index;if(this.optionFlags&4096)this.processComment(D);return D}resetStartLocation(D,$){if(D.start=$.index,D.loc.start=$,this.optionFlags&128)D.range[0]=$.index}resetEndLocation(D,$=this.state.lastTokEndLoc){if(D.end=$.index,D.loc.end=$,this.optionFlags&128)D.range[1]=$.index}resetStartLocationFromNode(D,$){this.resetStartLocation(D,$.loc.start)}castNodeTo(D,$){return D.type=$,D}cloneIdentifier(D){let{type:$,start:J,end:X,loc:Y,range:Q,name:U}=D,F=Object.create(qN);if(F.type=$,F.start=J,F.end=X,F.loc=Y,F.range=Q,F.name=U,D.extra)F.extra=D.extra;return F}cloneStringLiteral(D){let{type:$,start:J,end:X,loc:Y,range:Q,extra:U}=D,F=Object.create(qN);return F.type=$,F.start=J,F.end=X,F.loc=Y,F.range=Q,F.extra=U,F.value=D.value,F}}var GN=(D)=>{return D.type==="ParenthesizedExpression"?GN(D.expression):D};class Gy extends qy{toAssignable(D,$=!1){var J,X;let Y=void 0;if(D.type==="ParenthesizedExpression"||(J=D.extra)!=null&&J.parenthesized)if(Y=GN(D),$){if(Y.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(M.InvalidParenthesizedAssignment,D);else if(Y.type!=="CallExpression"&&Y.type!=="MemberExpression"&&!this.isOptionalMemberExpression(Y))this.raise(M.InvalidParenthesizedAssignment,D)}else this.raise(M.InvalidParenthesizedAssignment,D);switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(D,"ObjectPattern");for(let U=0,F=D.properties.length,W=F-1;U<F;U++){var Q;let K=D.properties[U],q=U===W;if(this.toAssignableObjectExpressionProp(K,q,$),q&&K.type==="RestElement"&&(Q=D.extra)!=null&&Q.trailingCommaLoc)this.raise(M.RestTrailingComma,D.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:U,value:F}=D;if(this.isPrivateName(U))this.classScope.usePrivateName(this.getPrivateNameSV(U),U.loc.start);this.toAssignable(F,$);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(D,"ArrayPattern"),this.toAssignableList(D.elements,(X=D.extra)==null?void 0:X.trailingCommaLoc,$);break;case"AssignmentExpression":if(D.operator!=="=")this.raise(M.MissingEqInAssignment,D.left.loc.end);if(this.castNodeTo(D,"AssignmentPattern"),delete D.operator,D.left.type==="VoidPattern")this.raise(M.VoidPatternInitializer,D.left);this.toAssignable(D.left,$);break;case"ParenthesizedExpression":this.toAssignable(Y,$);break}}toAssignableObjectExpressionProp(D,$,J){if(D.type==="ObjectMethod")this.raise(D.kind==="get"||D.kind==="set"?M.PatternHasAccessor:M.PatternHasMethod,D.key);else if(D.type==="SpreadElement"){this.castNodeTo(D,"RestElement");let X=D.argument;if(this.checkToRestConversion(X,!1),this.toAssignable(X,J),!$)this.raise(M.RestTrailingComma,D)}else this.toAssignable(D,J)}toAssignableList(D,$,J){let X=D.length-1;for(let Y=0;Y<=X;Y++){let Q=D[Y];if(!Q)continue;if(this.toAssignableListItem(D,Y,J),Q.type==="RestElement"){if(Y<X)this.raise(M.RestTrailingComma,Q);else if($)this.raise(M.RestTrailingComma,$)}}}toAssignableListItem(D,$,J){let X=D[$];if(X.type==="SpreadElement"){this.castNodeTo(X,"RestElement");let Y=X.argument;this.checkToRestConversion(Y,!0),this.toAssignable(Y,J)}else this.toAssignable(X,J)}isAssignable(D,$){switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let J=D.properties.length-1;return D.properties.every((X,Y)=>{return X.type!=="ObjectMethod"&&(Y===J||X.type!=="SpreadElement")&&this.isAssignable(X)})}case"ObjectProperty":return this.isAssignable(D.value);case"SpreadElement":return this.isAssignable(D.argument);case"ArrayExpression":return D.elements.every((J)=>J===null||this.isAssignable(J));case"AssignmentExpression":return D.operator==="=";case"ParenthesizedExpression":return this.isAssignable(D.expression);case"MemberExpression":case"OptionalMemberExpression":return!$;default:return!1}}toReferencedList(D,$){return D}toReferencedListDeep(D,$){this.toReferencedList(D,$);for(let J of D)if((J==null?void 0:J.type)==="ArrayExpression")this.toReferencedListDeep(J.elements)}parseSpread(D){let $=this.startNode();return this.next(),$.argument=this.parseMaybeAssignAllowIn(D,void 0),this.finishNode($,"SpreadElement")}parseRestBinding(){let D=this.startNode();this.next();let $=this.parseBindingAtom();if($.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,$);return D.argument=$,this.finishNode(D,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let D=this.startNode();return this.next(),D.elements=this.parseBindingList(3,93,1),this.finishNode(D,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(D,$,J){let X=J&1,Y=[],Q=!0;while(!this.eat(D)){if(Q)Q=!1;else this.expect(12);if(X&&this.match(12))Y.push(null);else if(this.eat(D))break;else if(this.match(21)){let U=this.parseRestBinding();if(this.hasPlugin("flow")||J&2)U=this.parseFunctionParamType(U);if(Y.push(U),!this.checkCommaAfterRest($)){this.expect(D);break}}else{let U=[];if(J&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(M.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))U.push(this.parseDecorator())}Y.push(this.parseBindingElement(J,U))}}return Y}parseBindingRestProperty(D){if(this.next(),this.hasPlugin("discardBinding")&&this.match(88))D.argument=this.parseVoidPattern(null),this.raise(M.UnexpectedVoidPattern,D.argument);else D.argument=this.parseIdentifier();return this.checkCommaAfterRest(125),this.finishNode(D,"RestElement")}parseBindingProperty(){let{type:D,startLoc:$}=this.state;if(D===21)return this.parseBindingRestProperty(this.startNode());let J=this.startNode();if(D===139)this.expectPlugin("destructuringPrivate",$),this.classScope.usePrivateName(this.state.value,$),J.key=this.parsePrivateName();else this.parsePropertyName(J);return J.method=!1,this.parseObjPropValue(J,$,!1,!1,!0,!1)}parseBindingElement(D,$){let J=this.parseMaybeDefault();if(this.hasPlugin("flow")||D&2)this.parseFunctionParamType(J);if($.length)J.decorators=$,this.resetStartLocationFromNode(J,$[0]);return this.parseMaybeDefault(J.loc.start,J)}parseFunctionParamType(D){return D}parseMaybeDefault(D,$){if(D!=null||(D=this.state.startLoc),$=$!=null?$:this.parseBindingAtom(),!this.eat(29))return $;let J=this.startNodeAt(D);if($.type==="VoidPattern")this.raise(M.VoidPatternInitializer,$);return J.left=$,J.right=this.parseMaybeAssignAllowIn(),this.finishNode(J,"AssignmentPattern")}isValidLVal(D,$,J,X){switch(D){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!$&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(D){return D.type==="OptionalMemberExpression"}checkLVal(D,$,J=64,X=!1,Y=!1,Q=!1,U=!1){var F;let W=D.type;if(this.isObjectMethod(D))return;let K=this.isOptionalMemberExpression(D);if(K||W==="MemberExpression"){if(K){if(this.expectPlugin("optionalChainingAssign",D.loc.start),$.type!=="AssignmentExpression")this.raise(M.InvalidLhsOptionalChaining,D,{ancestor:$})}if(J!==64)this.raise(M.InvalidPropertyBindingPattern,D);return}if(W==="Identifier"){this.checkIdentifier(D,J,Y);let{name:B}=D;if(X)if(X.has(B))this.raise(M.ParamDupe,D);else X.add(B);return}else if(W==="VoidPattern"&&$.type==="CatchClause")this.raise(M.VoidPatternCatchClauseParam,D);let q=GN(D);U||(U=q.type==="CallExpression"&&(q.callee.type==="Import"||q.callee.type==="Super"));let G=this.isValidLVal(W,U,!(Q||(F=D.extra)!=null&&F.parenthesized)&&$.type==="AssignmentExpression",J);if(G===!0)return;if(G===!1){let B=J===64?M.InvalidLhs:M.InvalidLhsBinding;this.raise(B,D,{ancestor:$});return}let Z,H;if(typeof G==="string")Z=G,H=W==="ParenthesizedExpression";else[Z,H]=G;let z=W==="ArrayPattern"||W==="ObjectPattern"?{type:W}:$,I=D[Z];if(Array.isArray(I)){for(let B of I)if(B)this.checkLVal(B,z,J,X,Y,H,!0)}else if(I)this.checkLVal(I,z,J,X,Y,H,U)}checkIdentifier(D,$,J=!1){if(this.state.strict&&(J?nf(D.name,this.inModule):pf(D.name)))if($===64)this.raise(M.StrictEvalArguments,D,{referenceName:D.name});else this.raise(M.StrictEvalArgumentsBinding,D,{bindingName:D.name});if($&8192&&D.name==="let")this.raise(M.LetInLexicalBinding,D);if(!($&64))this.declareNameFromIdentifier(D,$)}declareNameFromIdentifier(D,$){this.scope.declareName(D.name,$,D.loc.start)}checkToRestConversion(D,$){switch(D.type){case"ParenthesizedExpression":this.checkToRestConversion(D.expression,$);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if($)break;default:this.raise(M.InvalidRestAssignmentPattern,D)}}checkCommaAfterRest(D){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===D?M.RestTrailingComma:M.ElementAfterRest,this.state.startLoc),!0}}var QN=/in(?:stanceof)?|as|satisfies/y;function GWD(D){if(D==null)throw Error(`Unexpected ${D} value.`);return D}function _f(D){if(!D)throw Error("Assert fail")}var YD=M6`typescript`({AbstractMethodHasImplementation:({methodName:D})=>`Method '${D}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:D})=>`Property '${D}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:D})=>`'declare' is not allowed in ${D}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:D})=>`Accessibility modifier already seen: '${D}'.`,DuplicateModifier:({modifier:D})=>`Duplicate modifier: '${D}'.`,EmptyHeritageClauseType:({token:D})=>`'${D}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:D})=>`'${D[0]}' modifier cannot be used with '${D[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:D})=>`Index signatures cannot have an accessibility modifier ('${D}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:D})=>`'${D}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:(D)=>`'${D}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:D})=>`'${D}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:D})=>`'${D}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:D})=>`'${D}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:(D)=>`'${D}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:D})=>`'${D[0]}' modifier must precede '${D[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:D})=>`Private elements cannot have an accessibility modifier ('${D}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:D})=>`Single type parameter ${D} should have a trailing comma. Example usage: <${D},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:D})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${D}.`,UsingDeclarationInAmbientContext:(D)=>`'${D}' declarations are not allowed in ambient contexts.`});function ZWD(D){switch(D){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function uf(D){return D==="private"||D==="public"||D==="protected"}function zWD(D){return D==="in"||D==="out"}var HWD=(D)=>class extends D{constructor(...J){super(...J);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:YD.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:YD.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:YD.InvalidModifierOnTypeParameter})}getScopeHandler(){return af}tsIsIdentifier(){return gD(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(J,X,Y){if(!gD(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let Q=this.state.value;if(J.includes(Q)){if(Y&&this.match(106))return;if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return Q}return}tsParseModifiers({allowedModifiers:J,disallowedModifiers:X,stopOnStartOfClassStaticBlock:Y,errorTemplate:Q=YD.InvalidModifierOnTypeMember},U){let F=(K,q,G,Z)=>{if(q===G&&U[Z])this.raise(YD.InvalidModifiersOrder,K,{orderedModifiers:[G,Z]})},W=(K,q,G,Z)=>{if(U[G]&&q===Z||U[Z]&&q===G)this.raise(YD.IncompatibleModifiers,K,{modifiers:[G,Z]})};for(;;){let{startLoc:K}=this.state,q=this.tsParseModifier(J.concat(X!=null?X:[]),Y,U.static);if(!q)break;if(uf(q))if(U.accessibility)this.raise(YD.DuplicateAccessibilityModifier,K,{modifier:q});else F(K,q,q,"override"),F(K,q,q,"static"),F(K,q,q,"readonly"),U.accessibility=q;else if(zWD(q)){if(U[q])this.raise(YD.DuplicateModifier,K,{modifier:q});U[q]=!0,F(K,q,"in","out")}else{if(hasOwnProperty.call(U,q))this.raise(YD.DuplicateModifier,K,{modifier:q});else F(K,q,"static","readonly"),F(K,q,"static","override"),F(K,q,"override","readonly"),F(K,q,"abstract","override"),W(K,q,"declare","override"),W(K,q,"static","abstract");U[q]=!0}if(X!=null&&X.includes(q))this.raise(Q,K,{modifier:q})}}tsIsListTerminator(J){switch(J){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(J,X){let Y=[];while(!this.tsIsListTerminator(J))Y.push(X());return Y}tsParseDelimitedList(J,X,Y){return GWD(this.tsParseDelimitedListWorker(J,X,!0,Y))}tsParseDelimitedListWorker(J,X,Y,Q){let U=[],F=-1;for(;;){if(this.tsIsListTerminator(J))break;F=-1;let W=X();if(W==null)return;if(U.push(W),this.eat(12)){F=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(J))break;if(Y)this.expect(12);return}if(Q)Q.value=F;return U}tsParseBracketedList(J,X,Y,Q,U){if(!Q)if(Y)this.expect(0);else this.expect(47);let F=this.tsParseDelimitedList(J,X,U);if(Y)this.expect(3);else this.expect(48);return F}tsParseImportType(){let J=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(YD.UnsupportedImportTypeArgument,this.state.startLoc),J.argument=super.parseExprAtom();else J.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))J.options=this.tsParseImportTypeOptions();else J.options=null;if(this.expect(11),this.eat(16))J.qualifier=this.tsParseEntityName(3);if(this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseImportTypeOptions(){let J=this.startNode();this.expect(5);let X=this.startNode();if(this.isContextual(76))X.method=!1,X.key=this.parseIdentifier(!0),X.computed=!1,X.shorthand=!1;else this.unexpected(null,76);return this.expect(14),X.value=this.tsParseImportTypeWithPropertyValue(),J.properties=[this.finishObjectProperty(X)],this.eat(12),this.expect(8),this.finishNode(J,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let J=this.startNode(),X=[];this.expect(5);while(!this.match(8)){let Y=this.state.type;if(gD(Y)||Y===134)X.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return J.properties=X,this.next(),this.finishNode(J,"ObjectExpression")}tsParseEntityName(J){let X;if(J&1&&this.match(78))if(J&2)X=this.parseIdentifier(!0);else{let Y=this.startNode();this.next(),X=this.finishNode(Y,"ThisExpression")}else X=this.parseIdentifier(!!(J&1));while(this.eat(16)){let Y=this.startNodeAtNode(X);Y.left=X,Y.right=this.parseIdentifier(!!(J&1)),X=this.finishNode(Y,"TSQualifiedName")}return X}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsParseThisTypePredicate(J){this.next();let X=this.startNodeAtNode(J);return X.parameterName=J,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(87),this.match(83))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseTypeParameter(J){let X=this.startNode();return J(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(81),X.default=this.tsEatThenParseType(29),this.finishNode(X,"TSTypeParameter")}tsTryParseTypeParameters(J){if(this.match(47))return this.tsParseTypeParameters(J)}tsParseTypeParameters(J){let X=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let Y={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,Y),X.params.length===0)this.raise(YD.EmptyTypeParameters,X);if(Y.value!==-1)this.addExtra(X,"trailingComma",Y.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsFillSignature(J,X){let Y=J===19,Q="parameters",U="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),X.parameters=this.tsParseBindingListForSignature(),Y)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsParseBindingListForSignature(){let J=super.parseBindingList(11,41,2);for(let X of J){let{type:Y}=X;if(Y==="AssignmentPattern"||Y==="TSParameterProperty")this.raise(YD.UnsupportedSignatureParameterKind,X,{type:Y})}return J}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(J,X){return this.tsFillSignature(14,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,J)}tsIsUnambiguouslyIndexSignature(){if(this.next(),gD(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(J){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let X=this.parseIdentifier();X.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(X),this.expect(3),J.parameters=[X];let Y=this.tsTryParseTypeAnnotation();if(Y)J.typeAnnotation=Y;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParsePropertyOrMethodSignature(J,X){if(this.eat(17))J.optional=!0;if(this.match(10)||this.match(47)){if(X)this.raise(YD.ReadonlyForMethodSignature,J);let Y=J;if(Y.kind&&this.match(47))this.raise(YD.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,Y),this.tsParseTypeMemberSemicolon();let Q="parameters",U="typeAnnotation";if(Y.kind==="get"){if(Y[Q].length>0){if(this.raise(M.BadGetterArity,this.state.curPosition()),this.isThisParam(Y[Q][0]))this.raise(YD.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(Y.kind==="set"){if(Y[Q].length!==1)this.raise(M.BadSetterArity,this.state.curPosition());else{let F=Y[Q][0];if(this.isThisParam(F))this.raise(YD.AccessorCannotDeclareThisParameter,this.state.curPosition());if(F.type==="Identifier"&&F.optional)this.raise(YD.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(F.type==="RestElement")this.raise(YD.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(Y[U])this.raise(YD.SetAccessorCannotHaveReturnType,Y[U])}else Y.kind="method";return this.finishNode(Y,"TSMethodSignature")}else{let Y=J;if(X)Y.readonly=!0;let Q=this.tsTryParseTypeAnnotation();if(Q)Y.typeAnnotation=Q;return this.tsParseTypeMemberSemicolon(),this.finishNode(Y,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(77)){let Y=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(Y,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},J);let X=this.tsTryParseIndexSignature(J);if(X)return X;if(super.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier()){if(J.kind=J.key.name,super.parsePropertyName(J),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),J}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let J=this.startNode();if(this.expect(5),this.match(53))J.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))J.readonly=!0;this.expect(0);let X=this.startNode();if(X.name=this.tsParseTypeParameterName(),X.constraint=this.tsExpectThenParseType(58),J.typeParameter=this.finishNode(X,"TSTypeParameter"),J.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))J.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(J,"TSMappedType")}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return J.elementTypes.forEach((Y)=>{let{type:Q}=Y;if(X&&Q!=="TSRestType"&&Q!=="TSOptionalType"&&!(Q==="TSNamedTupleMember"&&Y.optional))this.raise(YD.OptionalTypeBeforeRequired,Y);X||(X=Q==="TSNamedTupleMember"&&Y.optional||Q==="TSOptionalType")}),this.finishNode(J,"TSTupleType")}tsParseTupleElementType(){let J=this.state.startLoc,X=this.eat(21),{startLoc:Y}=this.state,Q,U,F,W,q=Q6(this.state.type)?this.lookaheadCharCode():null;if(q===58)Q=!0,F=!1,U=this.parseIdentifier(!0),this.expect(14),W=this.tsParseType();else if(q===63){F=!0;let G=this.state.value,Z=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)Q=!0,U=this.createIdentifier(this.startNodeAt(Y),G),this.expect(17),this.expect(14),W=this.tsParseType();else Q=!1,W=Z,this.expect(17)}else W=this.tsParseType(),F=this.eat(17),Q=this.eat(14);if(Q){let G;if(U){if(G=this.startNodeAt(Y),G.optional=F,G.label=U,G.elementType=W,this.eat(17))G.optional=!0,this.raise(YD.TupleOptionalAfterType,this.state.lastTokStartLoc)}else G=this.startNodeAt(Y),G.optional=F,this.raise(YD.InvalidTupleMemberLabel,W),G.label=W,G.elementType=this.tsParseType();W=this.finishNode(G,"TSNamedTupleMember")}else if(F){let G=this.startNodeAt(Y);G.typeAnnotation=W,W=this.finishNode(G,"TSOptionalType")}if(X){let G=this.startNodeAt(J);G.typeAnnotation=W,W=this.finishNode(G,"TSRestType")}return W}tsParseParenthesizedType(){let J=this.startNode();return this.expect(10),J.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(J,"TSParenthesizedType")}tsParseFunctionOrConstructorType(J,X){let Y=this.startNode();if(J==="TSConstructorType"){if(Y.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,Y)),this.finishNode(Y,J)}tsParseLiteralTypeNode(){let J=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:J.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(J,"TSLiteralType")}tsParseTemplateLiteralType(){let J=this.startNode();return J.literal=super.parseTemplate(!1),this.finishNode(J,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let J=this.startNode(),X=this.lookahead();if(X.type!==135&&X.type!==136)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:J}=this.state;if(gD(J)||J===88||J===84){let X=J===88?"TSVoidKeyword":J===84?"TSNullKeyword":ZWD(this.state.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let Y=this.startNode();return this.next(),this.finishNode(Y,X)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:J}=this.state,X=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let Y=this.startNodeAt(J);Y.elementType=X,this.expect(3),X=this.finishNode(Y,"TSArrayType")}else{let Y=this.startNodeAt(J);Y.objectType=X,Y.indexType=this.tsParseType(),this.expect(3),X=this.finishNode(Y,"TSIndexedAccessType")}return X}tsParseTypeOperator(){let J=this.startNode(),X=this.state.value;if(this.next(),J.operator=X,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(YD.UnexpectedReadonly,J)}}tsParseInferType(){let J=this.startNode();this.expectContextual(115);let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return J}}tsParseTypeOperatorOrHigher(){return _FD(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(J,X,Y){let Q=this.startNode(),U=this.eat(Y),F=[];do F.push(X());while(this.eat(Y));if(F.length===1&&!U)return F[0];return Q.types=F,this.finishNode(Q,J)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(gD(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:J}=this.state,X=J.length;try{return this.parseObjectLike(8,!0),J.length===X}catch(Y){return!1}}if(this.match(0)){this.next();let{errors:J}=this.state,X=J.length;try{return super.parseBindingList(3,93,1),J.length===X}catch(Y){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let X=this.startNode();this.expect(J);let Y=this.startNode(),Q=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(Q&&this.match(78)){let W=this.tsParseThisTypeOrThisTypePredicate();if(W.type==="TSThisType")Y.parameterName=W,Y.asserts=!0,Y.typeAnnotation=null,W=this.finishNode(Y,"TSTypePredicate");else this.resetStartLocationFromNode(W,Y),W.asserts=!0;return X.typeAnnotation=W,this.finishNode(X,"TSTypeAnnotation")}let U=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!U){if(!Q)return this.tsParseTypeAnnotation(!1,X);return Y.parameterName=this.parseIdentifier(),Y.asserts=Q,Y.typeAnnotation=null,X.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let F=this.tsParseTypeAnnotation(!1);return Y.parameterName=U,Y.typeAnnotation=F,Y.asserts=Q,X.typeAnnotation=this.finishNode(Y,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let J=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let J=this.state.containsEsc;if(this.next(),!gD(this.state.type)&&!this.match(78))return!1;if(J)this.raise(M.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(J=!0,X=this.startNode()){return this.tsInType(()=>{if(J)this.expect(14);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseType(){_f(this.state.inType);let J=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return J;let X=this.startNodeAtNode(J);return X.checkType=J,X.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),X.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),X.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(X,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(YD.ReservedTypeAssertion,this.state.startLoc);let J=this.startNode();return J.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),J.expression=this.parseMaybeUnary(),this.finishNode(J,"TSTypeAssertion")}tsParseHeritageClause(J){let X=this.state.startLoc,Y=this.tsParseDelimitedList("HeritageClauseElement",()=>{let Q=this.startNode();if(Q.expression=this.tsParseEntityName(3),this.match(47))Q.typeParameters=this.tsParseTypeArguments();return this.finishNode(Q,"TSExpressionWithTypeArguments")});if(!Y.length)this.raise(YD.EmptyHeritageClauseType,X,{token:J});return Y}tsParseInterfaceDeclaration(J,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),X.declare)J.declare=!0;if(gD(this.state.type))J.id=this.parseIdentifier(),this.checkIdentifier(J.id,130);else J.id=null,this.raise(YD.MissingInterfaceName,this.state.startLoc);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))J.extends=this.tsParseHeritageClause("extends");let Y=this.startNode();return Y.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),J.body=this.finishNode(Y,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdentifier(),this.checkIdentifier(J.id,2),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsInTopLevelContext(J){if(this.curContext()!==uD.brace){let X=this.state.context;this.state.context=[X[0]];try{return J()}finally{this.state.context=X}}else return J()}tsInType(J){let X=this.state.inType;this.state.inType=!0;try{return J()}finally{this.state.inType=X}}tsInDisallowConditionalTypesContext(J){let X=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.state.inDisallowConditionalTypesContext=X}}tsInAllowConditionalTypesContext(J){let X=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.state.inDisallowConditionalTypesContext=X}}tsEatThenParseType(J){if(this.match(J))return this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsInType(()=>{return this.expect(J),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))J.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,X={}){if(X.const)J.const=!0;if(X.declare)J.declare=!0;return this.expectContextual(126),J.id=this.parseIdentifier(),this.checkIdentifier(J.id,J.const?8971:8459),this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumDeclaration")}tsParseEnumBody(){let J=this.startNode();return this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumBody")}tsParseModuleBlock(){let J=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(J.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(J,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(J,X=!1){if(J.id=this.parseIdentifier(),!X)this.checkIdentifier(J.id,1024);if(this.eat(16)){let Y=this.startNode();this.tsParseModuleOrNamespaceDeclaration(Y,!0),J.body=Y}else this.scope.enter(1024),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(J,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(J){if(this.isContextual(112))J.kind="global",J.global=!0,J.id=this.parseIdentifier();else if(this.match(134))J.kind="module",J.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(J,X,Y){J.isExport=Y||!1,J.id=X||this.parseIdentifier(),this.checkIdentifier(J.id,4096),this.expect(29);let Q=this.tsParseModuleReference();if(J.importKind==="type"&&Q.type!=="TSExternalModuleReference")this.raise(YD.ImportAliasHasImportType,Q);return J.moduleReference=Q,this.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return J.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(J,"TSExternalModuleReference")}tsLookAhead(J){let X=this.state.clone(),Y=J();return this.state=X,Y}tsTryParseAndCatch(J){let X=this.tryParse((Y)=>J()||Y());if(X.aborted||!X.node)return;if(X.error)this.state=X.failState;return X.node}tsTryParse(J){let X=this.state.clone(),Y=J();if(Y!==void 0&&Y!==!1)return Y;this.state=X}tsTryParseDeclare(J){if(this.isLineTerminator())return;let X=this.state.type;return this.tsInAmbientContext(()=>{switch(X){case 68:return J.declare=!0,super.parseFunctionStatement(J,!1,!1);case 80:return J.declare=!0,this.parseClass(J,!0,!1);case 126:return this.tsParseEnumDeclaration(J,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(J);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(J,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(YD.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),J.declare=!0,this.parseVarStatement(J,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(YD.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),J.declare=!0,this.next(),this.parseVarStatement(J,"await using",!0);break;case 129:{let Y=this.tsParseInterfaceDeclaration(J,{declare:!0});if(Y)return Y}default:if(gD(X))return this.tsParseDeclaration(J,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(J,X,Y,Q){switch(X){case 124:if(this.tsCheckLineTerminator(Y)&&(this.match(80)||gD(this.state.type)))return this.tsParseAbstractDeclaration(J,Q);break;case 127:if(this.tsCheckLineTerminator(Y)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(J);else if(gD(this.state.type))return J.kind="module",this.tsParseModuleOrNamespaceDeclaration(J)}break;case 128:if(this.tsCheckLineTerminator(Y)&&gD(this.state.type))return J.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(J);break;case 130:if(this.tsCheckLineTerminator(Y)&&gD(this.state.type))return this.tsParseTypeAliasDeclaration(J);break}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(J){if(!this.match(47))return;let X=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let Y=this.tsTryParseAndCatch(()=>{let Q=this.startNodeAt(J);return Q.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(Q),Q.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),Q});if(this.state.maybeInArrowParameters=X,!Y)return;return super.parseArrowExpression(Y,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(YD.EmptyTypeArguments,J);else if(!this.state.inType&&this.curContext()===uD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return uFD(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(J,X){let Y=X.length?X[0].loc.start:this.state.startLoc,Q={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},Q);let{accessibility:U,override:F,readonly:W}=Q;if(!(J&4)&&(U||W||F))this.raise(YD.UnexpectedParameterModifier,Y);let K=this.parseMaybeDefault();if(J&2)this.parseFunctionParamType(K);let q=this.parseMaybeDefault(K.loc.start,K);if(U||W||F){let G=this.startNodeAt(Y);if(X.length)G.decorators=X;if(U)G.accessibility=U;if(W)G.readonly=W;if(F)G.override=F;if(q.type!=="Identifier"&&q.type!=="AssignmentPattern")this.raise(YD.UnsupportedParameterPropertyKind,G);return G.parameter=q,this.finishNode(G,"TSParameterProperty")}if(X.length)K.decorators=X;return q}isSimpleParameter(J){return J.type==="TSParameterProperty"&&super.isSimpleParameter(J.parameter)||super.isSimpleParameter(J)}tsDisallowOptionalPattern(J){for(let X of J.params)if(X.type!=="Identifier"&&X.optional&&!this.state.isAmbientContext)this.raise(YD.PatternIsOptional,X)}setArrowFunctionParameters(J,X,Y){super.setArrowFunctionParameters(J,X,Y),this.tsDisallowOptionalPattern(J)}parseFunctionBodyAndFinish(J,X,Y=!1){if(this.match(14))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let Q=X==="FunctionDeclaration"?"TSDeclareFunction":X==="ClassMethod"||X==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(Q&&!this.match(5)&&this.isLineTerminator())return this.finishNode(J,Q);if(Q==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(YD.DeclareFunctionHasImplementation,J),J.declare)return super.parseFunctionBodyAndFinish(J,Q,Y)}return this.tsDisallowOptionalPattern(J),super.parseFunctionBodyAndFinish(J,X,Y)}registerFunctionStatementId(J){if(!J.body&&J.id)this.checkIdentifier(J.id,1024);else super.registerFunctionStatementId(J)}tsCheckForInvalidTypeCasts(J){J.forEach((X)=>{if((X==null?void 0:X.type)==="TSTypeCastExpression")this.raise(YD.UnexpectedTypeAnnotation,X.typeAnnotation)})}toReferencedList(J,X){return this.tsCheckForInvalidTypeCasts(J),J}parseArrayLike(J,X,Y){let Q=super.parseArrayLike(J,X,Y);if(Q.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(Q.elements);return Q}parseSubscript(J,X,Y,Q){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let F=this.startNodeAt(X);return F.expression=J,this.finishNode(F,"TSNonNullExpression")}let U=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(Y)return Q.stop=!0,J;Q.optionalChainMember=U=!0,this.next()}if(this.match(47)||this.match(51)){let F,W=this.tsTryParseAndCatch(()=>{if(!Y&&this.atPossibleAsyncArrow(J)){let Z=this.tsTryParseGenericAsyncArrowFunction(X);if(Z)return Q.stop=!0,Z}let K=this.tsParseTypeArgumentsInExpression();if(!K)return;if(U&&!this.match(10)){F=this.state.curPosition();return}if(JU(this.state.type)){let Z=super.parseTaggedTemplateExpression(J,X,Q);return Z.typeParameters=K,Z}if(!Y&&this.eat(10)){let Z=this.startNodeAt(X);if(Z.callee=J,Z.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(Z.arguments),Z.typeParameters=K,Q.optionalChainMember)Z.optional=U;return this.finishCallExpression(Z,Q.optionalChainMember)}let q=this.state.type;if(q===48||q===52||q!==10&&q!==93&&q!==120&&X3(q)&&!this.hasPrecedingLineBreak())return;let G=this.startNodeAt(X);return G.expression=J,G.typeParameters=K,this.finishNode(G,"TSInstantiationExpression")});if(F)this.unexpected(F,10);if(W){if(W.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)this.raise(YD.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))W.expression=super.stopParseSubscript(J,Q)}return W}}return super.parseSubscript(J,X,Y,Q)}parseNewCallee(J){var X;super.parseNewCallee(J);let{callee:Y}=J;if(Y.type==="TSInstantiationExpression"&&!((X=Y.extra)!=null&&X.parenthesized))J.typeParameters=Y.typeParameters,J.callee=Y.expression}parseExprOp(J,X,Y){let Q;if(DU(58)>Y&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(Q=this.isContextual(120)))){let U=this.startNodeAt(X);return U.expression=J,U.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(Q)this.raise(M.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(U,Q?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(U,X,Y)}return super.parseExprOp(J,X,Y)}checkReservedWord(J,X,Y,Q){if(!this.state.isAmbientContext)super.checkReservedWord(J,X,Y,Q)}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(YD.ImportReflectionHasImportType,J.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){let X=this.lookaheadCharCode();return J?X===123||X===42:X!==61}return!J&&this.isContextual(87)}applyImportPhase(J,X,Y,Q){if(super.applyImportPhase(J,X,Y,Q),X)J.exportKind=Y==="type"?"type":"value";else J.importKind=Y==="type"||Y==="typeof"?Y:"value"}parseImport(J){if(this.match(134))return J.importKind="value",super.parseImport(J);let X;if(gD(this.state.type)&&this.lookaheadCharCode()===61)return J.importKind="value",this.tsParseImportEqualsDeclaration(J);else if(this.isContextual(130)){let Y=this.parseMaybeImportPhase(J,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(J,Y);else X=super.parseImportSpecifiersAndAfter(J,Y)}else X=super.parseImport(J);if(X.importKind==="type"&&X.specifiers.length>1&&X.specifiers[0].type==="ImportDefaultSpecifier")this.raise(YD.TypeImportCannotSpecifyDefaultAndNamed,X);return X}parseExport(J,X){if(this.match(83)){let Y=J;this.next();let Q=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))Q=this.parseMaybeImportPhase(Y,!1);else Y.importKind="value";return this.tsParseImportEqualsDeclaration(Y,Q,!0)}else if(this.eat(29)){let Y=J;return Y.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(Y,"TSExportAssignment")}else if(this.eatContextual(93)){let Y=J;return this.expectContextual(128),Y.id=this.parseIdentifier(),this.semicolon(),this.finishNode(Y,"TSNamespaceExportDeclaration")}else return super.parseExport(J,X)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0,!0)}if(this.match(129)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultExpression()}parseVarStatement(J,X,Y=!1){let{isAmbientContext:Q}=this.state,U=super.parseVarStatement(J,X,Y||Q);if(!Q)return U;if(!J.declare&&(X==="using"||X==="await using"))return this.raiseOverwrite(YD.UsingDeclarationInAmbientContext,J,X),U;for(let{id:F,init:W}of U.declarations){if(!W)continue;if(X==="var"||X==="let"||!!F.typeAnnotation)this.raise(YD.InitializerNotAllowedInAmbientContext,W);else if(!BWD(W,this.hasPlugin("estree")))this.raise(YD.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,W)}return U}parseStatementContent(J,X){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let Y=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(Y,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let Y=this.state.type,Q=this.startNode();this.next();let U=Y===125?this.tsTryParseDeclare(Q):this.tsParseAbstractDeclaration(Q,X);if(U){if(Y===125)U.declare=!0;return U}else return Q.expression=this.createIdentifier(this.startNodeAt(Q.loc.start),Y===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(Q,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let Q=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(Q)}break}case 129:{let Y=this.tsParseInterfaceDeclaration(this.startNode());if(Y)return Y;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,127,!1,X)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseDeclaration(Y,128,!1,X)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let Y=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(Y)}break}}return super.parseStatementContent(J,X)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(J,X){return X.some((Y)=>{if(uf(Y))return J.accessibility===Y;return!!J[Y]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(J,X,Y){let Q=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:Q,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:YD.InvalidModifierOnTypeParameterPositions},X);let U=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,Q))this.raise(YD.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(J,X)}else this.parseClassMemberWithIsStatic(J,X,Y,!!X.static)};if(X.declare)this.tsInAmbientContext(U);else U()}parseClassMemberWithIsStatic(J,X,Y,Q){let U=this.tsTryParseIndexSignature(X);if(U){if(J.body.push(U),X.abstract)this.raise(YD.IndexSignatureHasAbstract,X);if(X.accessibility)this.raise(YD.IndexSignatureHasAccessibility,X,{modifier:X.accessibility});if(X.declare)this.raise(YD.IndexSignatureHasDeclare,X);if(X.override)this.raise(YD.IndexSignatureHasOverride,X);return}if(!this.state.inAbstractClass&&X.abstract)this.raise(YD.NonAbstractClassHasAbstractMethod,X);if(X.override){if(!Y.hadSuperClass)this.raise(YD.OverrideNotInSubClass,X)}super.parseClassMemberWithIsStatic(J,X,Y,Q)}parsePostMemberNameModifiers(J){if(this.eat(17))J.optional=!0;if(J.readonly&&this.match(10))this.raise(YD.ClassMethodHasReadonly,J);if(J.declare&&this.match(10))this.raise(YD.ClassMethodHasDeclare,J)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(J,X,Y){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let Q=this.lookaheadCharCode();if(Q===44||Q===61||Q===58||Q===41)return this.setOptionalParametersError(Y),J}return super.parseConditional(J,X,Y)}parseParenItem(J,X){let Y=super.parseParenItem(J,X);if(this.eat(17))Y.optional=!0,this.resetEndLocation(J);if(this.match(14)){let Q=this.startNodeAt(X);return Q.expression=J,Q.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(Q,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let X=this.state.startLoc,Y=this.eatContextual(125);if(Y&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(YD.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let U=gD(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(J);if(!U)return null;if(U.type==="TSInterfaceDeclaration"||U.type==="TSTypeAliasDeclaration"||Y)J.exportKind="type";if(Y&&U.type!=="TSImportEqualsDeclaration")this.resetStartLocation(U,X),U.declare=!0;return U}parseClassId(J,X,Y,Q){if((!X||Y)&&this.isContextual(113))return;super.parseClassId(J,X,Y,J.declare?1024:8331);let U=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(U)J.typeParameters=U}parseClassPropertyAnnotation(J){if(!J.optional){if(this.eat(35))J.definite=!0;else if(this.eat(17))J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X}parseClassProperty(J){if(this.parseClassPropertyAnnotation(J),this.state.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(29))this.raise(YD.DeclareClassFieldHasInitializer,this.state.startLoc);if(J.abstract&&this.match(29)){let{key:X}=J;this.raise(YD.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:X.type==="Identifier"&&!J.computed?X.name:`[${this.input.slice(this.offsetToSourcePos(X.start),this.offsetToSourcePos(X.end))}]`})}return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(J.abstract)this.raise(YD.PrivateElementHasAbstract,J);if(J.accessibility)this.raise(YD.PrivateElementHasAccessibility,J,{modifier:J.accessibility});return this.parseClassPropertyAnnotation(J),super.parseClassPrivateProperty(J)}parseClassAccessorProperty(J){if(this.parseClassPropertyAnnotation(J),J.optional)this.raise(YD.AccessorCannotBeOptional,J);return super.parseClassAccessorProperty(J)}pushClassMethod(J,X,Y,Q,U,F){let W=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(W&&U)this.raise(YD.ConstructorHasTypeParameters,W);let{declare:K=!1,kind:q}=X;if(K&&(q==="get"||q==="set"))this.raise(YD.DeclareAccessor,X,{kind:q});if(W)X.typeParameters=W;super.pushClassMethod(J,X,Y,Q,U,F)}pushClassPrivateMethod(J,X,Y,Q){let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(U)X.typeParameters=U;super.pushClassPrivateMethod(J,X,Y,Q)}declareClassPrivateMethodInScope(J,X){if(J.type==="TSDeclareMethod")return;if(J.type==="MethodDefinition"&&J.value.body==null)return;super.declareClassPrivateMethodInScope(J,X)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass){if(J.superClass.type==="TSInstantiationExpression"){let X=J.superClass,Y=X.expression;this.takeSurroundingComments(Y,Y.start,Y.end);let Q=X.typeParameters;this.takeSurroundingComments(Q,Q.start,Q.end),J.superClass=Y,J.superTypeParameters=Q}else if(this.match(47)||this.match(51))J.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))J.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(J,X,Y,Q,U,F,W){let K=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(K)J.typeParameters=K;return super.parseObjPropValue(J,X,Y,Q,U,F,W)}parseFunctionParams(J,X){let Y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Y)J.typeParameters=Y;super.parseFunctionParams(J,X)}parseVarId(J,X){if(super.parseVarId(J,X),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))J.definite=!0;let Y=this.tsTryParseTypeAnnotation();if(Y)J.id.typeAnnotation=Y,this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,X){if(this.match(14))J.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(J,X)}parseMaybeAssign(J,X){var Y,Q,U,F,W;let K,q,G;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(K=this.state.clone(),q=this.tryParse(()=>super.parseMaybeAssign(J,X),K),!q.error)return q.node;let{context:z}=this.state,I=z[z.length-1];if(I===uD.j_oTag||I===uD.j_expr)z.pop()}if(!((Y=q)!=null&&Y.error)&&!this.match(47))return super.parseMaybeAssign(J,X);if(!K||K===this.state)K=this.state.clone();let Z,H=this.tryParse((z)=>{var I,B;Z=this.tsParseTypeParameters(this.tsParseConstModifier);let N=super.parseMaybeAssign(J,X);if(N.type!=="ArrowFunctionExpression"||(I=N.extra)!=null&&I.parenthesized)z();if(((B=Z)==null?void 0:B.params.length)!==0)this.resetStartLocationFromNode(N,Z);return N.typeParameters=Z,N},K);if(!H.error&&!H.aborted){if(Z)this.reportReservedArrowTypeParam(Z);return H.node}if(!q){if(_f(!this.hasPlugin("jsx")),G=this.tryParse(()=>super.parseMaybeAssign(J,X),K),!G.error)return G.node}if((Q=q)!=null&&Q.node)return this.state=q.failState,q.node;if(H.node){if(this.state=H.failState,Z)this.reportReservedArrowTypeParam(Z);return H.node}if((U=G)!=null&&U.node)return this.state=G.failState,G.node;throw((F=q)==null?void 0:F.error)||H.error||((W=G)==null?void 0:W.error)}reportReservedArrowTypeParam(J){var X;if(J.params.length===1&&!J.params[0].constraint&&!((X=J.extra)!=null&&X.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(YD.ReservedArrowTypeParam,J)}parseMaybeUnary(J,X){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(J,X)}parseArrow(J){if(this.match(14)){let X=this.tryParse((Y)=>{let Q=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))Y();return Q});if(X.aborted)return;if(!X.thrown){if(X.error)this.state=X.failState;J.returnType=X.node}}return super.parseArrow(J)}parseFunctionParamType(J){if(this.eat(17))J.optional=!0;let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X;return this.resetEndLocation(J),J}isAssignable(J,X){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,X);case"TSParameterProperty":return!0;default:return super.isAssignable(J,X)}}toAssignable(J,X=!1){switch(J.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(J,X);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X)this.expressionScope.recordArrowParameterBindingError(YD.UnexpectedTypeCastInParameter,J);else this.raise(YD.UnexpectedTypeCastInParameter,J);this.toAssignable(J.expression,X);break;case"AssignmentExpression":if(!X&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);default:super.toAssignable(J,X)}}toAssignableParenthesizedExpression(J,X){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(J.expression,X);break;default:super.toAssignable(J,X)}}checkToRestConversion(J,X){switch(J.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(J.expression,!1);break;default:super.checkToRestConversion(J,X)}}isValidLVal(J,X,Y,Q){switch(J){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(Q!==64||!Y)&&["expression",!0];default:return super.isValidLVal(J,X,Y,Q)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(J,X){if(this.match(47)||this.match(51)){let Y=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let Q=super.parseMaybeDecoratorArguments(J,X);return Q.typeParameters=Y,Q}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(J,X)}checkCommaAfterRest(J){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===J)return this.next(),!1;return super.checkCommaAfterRest(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(J,X){let Y=super.parseMaybeDefault(J,X);if(Y.type==="AssignmentPattern"&&Y.typeAnnotation&&Y.right.start<Y.typeAnnotation.start)this.raise(YD.TypeAnnotationAfterAssign,Y.typeAnnotation);return Y}getTokenFromCode(J){if(this.state.inType){if(J===62){this.finishOp(48,1);return}if(J===60){this.finishOp(47,1);return}}super.getTokenFromCode(J)}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}toAssignableListItem(J,X,Y){let Q=J[X];if(Q.type==="TSTypeCastExpression")J[X]=this.typeCastToParameter(Q);super.toAssignableListItem(J,X,Y)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}shouldParseArrow(J){if(this.match(14))return J.every((X)=>this.isAssignable(X,!0));return super.shouldParseArrow(J)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(J){if(this.match(47)||this.match(51)){let X=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(X)J.typeParameters=X}return super.jsxParseOpeningElementAfterName(J)}getGetterSetterExpectedParamCount(J){let X=super.getGetterSetterExpectedParamCount(J),Q=this.getObjectOrClassMethodParams(J)[0];return Q&&this.isThisParam(Q)?X+1:X}parseCatchClauseParam(){let J=super.parseCatchClauseParam(),X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X,this.resetEndLocation(J);return J}tsInAmbientContext(J){let{isAmbientContext:X,strict:Y}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return J()}finally{this.state.isAmbientContext=X,this.state.strict=Y}}parseClass(J,X,Y){let Q=this.state.inAbstractClass;this.state.inAbstractClass=!!J.abstract;try{return super.parseClass(J,X,Y)}finally{this.state.inAbstractClass=Q}}tsParseAbstractDeclaration(J,X){if(this.match(80))return J.abstract=!0,this.maybeTakeDecorators(X,this.parseClass(J,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return J.abstract=!0,this.raise(YD.NonClassMethodPropertyHasAbstractModifier,J),this.tsParseInterfaceDeclaration(J);else return null;throw this.unexpected(null,80)}parseMethod(J,X,Y,Q,U,F,W){let K=super.parseMethod(J,X,Y,Q,U,F,W);if(K.abstract||K.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?K.value:K).body){let{key:Z}=K;this.raise(YD.AbstractMethodHasImplementation,K,{methodName:Z.type==="Identifier"&&!K.computed?Z.name:`[${this.input.slice(this.offsetToSourcePos(Z.start),this.offsetToSourcePos(Z.end))}]`})}}return K}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(J,X,Y,Q){if(!X&&Q)return this.parseTypeOnlyImportExportSpecifier(J,!1,Y),this.finishNode(J,"ExportSpecifier");return J.exportKind="value",super.parseExportSpecifier(J,X,Y,Q)}parseImportSpecifier(J,X,Y,Q,U){if(!X&&Q)return this.parseTypeOnlyImportExportSpecifier(J,!0,Y),this.finishNode(J,"ImportSpecifier");return J.importKind="value",super.parseImportSpecifier(J,X,Y,Q,Y?4098:4096)}parseTypeOnlyImportExportSpecifier(J,X,Y){let Q=X?"imported":"local",U=X?"local":"exported",F=J[Q],W,K=!1,q=!0,G=F.loc.start;if(this.isContextual(93)){let H=this.parseIdentifier();if(this.isContextual(93)){let z=this.parseIdentifier();if(Q6(this.state.type))K=!0,F=H,W=X?this.parseIdentifier():this.parseModuleExportName(),q=!1;else W=z,q=!1}else if(Q6(this.state.type))q=!1,W=X?this.parseIdentifier():this.parseModuleExportName();else K=!0,F=H}else if(Q6(this.state.type))if(K=!0,X){if(F=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(F.name,F.loc.start,!0,!0)}else F=this.parseModuleExportName();if(K&&Y)this.raise(X?YD.TypeModifierIsUsedInTypeImports:YD.TypeModifierIsUsedInTypeExports,G);J[Q]=F,J[U]=W;let Z=X?"importKind":"exportKind";if(J[Z]=K?"type":"value",q&&this.eatContextual(93))J[U]=X?this.parseIdentifier():this.parseModuleExportName();if(!J[U])J[U]=this.cloneIdentifier(J[Q]);if(X)this.checkIdentifier(J[U],K?4098:4096)}fillOptionalPropertiesForTSESLint(J){var X,Y,Q,U,F,W,K,q,G,Z,H,z,I,B,N,V,O,j,v,A,k,u,_,y,T,d,c,p,o,R,w,L,P,f,x,s,g,i,HD,ND,PD,g$,z8,i1,EV,TV,PV,bV;switch(J.type){case"ExpressionStatement":(X=J.directive)!=null||(J.directive=void 0);return;case"RestElement":J.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(Y=J.decorators)!=null||(J.decorators=[]),(Q=J.optional)!=null||(J.optional=!1),(U=J.typeAnnotation)!=null||(J.typeAnnotation=void 0);return;case"TSParameterProperty":(F=J.accessibility)!=null||(J.accessibility=void 0),(W=J.decorators)!=null||(J.decorators=[]),(K=J.override)!=null||(J.override=!1),(q=J.readonly)!=null||(J.readonly=!1),(G=J.static)!=null||(J.static=!1);return;case"TSEmptyBodyFunctionExpression":J.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(Z=J.declare)!=null||(J.declare=!1),(H=J.returnType)!=null||(J.returnType=void 0),(z=J.typeParameters)!=null||(J.typeParameters=void 0);return;case"Property":(I=J.optional)!=null||(J.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(B=J.optional)!=null||(J.optional=!1);case"TSIndexSignature":(N=J.accessibility)!=null||(J.accessibility=void 0),(V=J.readonly)!=null||(J.readonly=!1),(O=J.static)!=null||(J.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(j=J.declare)!=null||(J.declare=!1),(v=J.definite)!=null||(J.definite=!1),(A=J.readonly)!=null||(J.readonly=!1),(k=J.typeAnnotation)!=null||(J.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(u=J.accessibility)!=null||(J.accessibility=void 0),(_=J.decorators)!=null||(J.decorators=[]),(y=J.override)!=null||(J.override=!1),(T=J.optional)!=null||(J.optional=!1);return;case"ClassExpression":(d=J.id)!=null||(J.id=null);case"ClassDeclaration":(c=J.abstract)!=null||(J.abstract=!1),(p=J.declare)!=null||(J.declare=!1),(o=J.decorators)!=null||(J.decorators=[]),(R=J.implements)!=null||(J.implements=[]),(w=J.superTypeArguments)!=null||(J.superTypeArguments=void 0),(L=J.typeParameters)!=null||(J.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(P=J.declare)!=null||(J.declare=!1);return;case"VariableDeclarator":(f=J.definite)!=null||(J.definite=!1);return;case"TSEnumDeclaration":(x=J.const)!=null||(J.const=!1),(s=J.declare)!=null||(J.declare=!1);return;case"TSEnumMember":(g=J.computed)!=null||(J.computed=!1);return;case"TSImportType":(i=J.qualifier)!=null||(J.qualifier=null),(HD=J.options)!=null||(J.options=null);return;case"TSInterfaceDeclaration":(ND=J.declare)!=null||(J.declare=!1),(PD=J.extends)!=null||(J.extends=[]);return;case"TSMappedType":(g$=J.optional)!=null||(J.optional=!1),(z8=J.readonly)!=null||(J.readonly=void 0);return;case"TSModuleDeclaration":(i1=J.declare)!=null||(J.declare=!1),(EV=J.global)!=null||(J.global=J.kind==="global");return;case"TSTypeParameter":(TV=J.const)!=null||(J.const=!1),(PV=J.in)!=null||(J.in=!1),(bV=J.out)!=null||(J.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(J,X){if(A6(J)){if(QN.lastIndex=X,QN.test(this.input)){let Y=this.codePointAtPos(QN.lastIndex);if(!J8(Y)&&Y!==92)return!1}return!0}else if(J===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);return this.chStartsBindingIdentifierAndNotRelationalOperator(X,J)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let J=this.nextTokenInLineStart(),X=this.codePointAtPos(J);return this.chStartsBindingIdentifier(X,J)||X===34||X===39}};function IWD(D){if(D.type!=="MemberExpression")return!1;let{computed:$,property:J}=D;if($&&J.type!=="StringLiteral"&&(J.type!=="TemplateLiteral"||J.expressions.length>0))return!1;return zy(D.object)}function BWD(D,$){var J;let{type:X}=D;if((J=D.extra)!=null&&J.parenthesized)return!1;if($){if(X==="Literal"){let{value:Y}=D;if(typeof Y==="string"||typeof Y==="boolean")return!0}}else if(X==="StringLiteral"||X==="BooleanLiteral")return!0;if(Zy(D,$)||OWD(D,$))return!0;if(X==="TemplateLiteral"&&D.expressions.length===0)return!0;if(IWD(D))return!0;return!1}function Zy(D,$){if($)return D.type==="Literal"&&(typeof D.value==="number"||("bigint"in D));return D.type==="NumericLiteral"||D.type==="BigIntLiteral"}function OWD(D,$){if(D.type==="UnaryExpression"){let{operator:J,argument:X}=D;if(J==="-"&&Zy(X,$))return!0}return!1}function zy(D){if(D.type==="Identifier")return!0;if(D.type!=="MemberExpression"||D.computed)return!1;return zy(D.object)}var gf=M6`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),NWD=(D)=>class extends D{parsePlaceholder(J){if(this.match(133)){let X=this.startNode();return this.next(),this.assertNoSpace(),X.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(X,J)}}finishPlaceholder(J,X){let Y=J;if(!Y.expectedNode||!Y.type)Y=this.finishNode(Y,"Placeholder");return Y.expectedNode=X,Y}getTokenFromCode(J){if(J===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(J)}parseExprAtom(J){return this.parsePlaceholder("Expression")||super.parseExprAtom(J)}parseIdentifier(J){return this.parsePlaceholder("Identifier")||super.parseIdentifier(J)}checkReservedWord(J,X,Y,Q){if(J!==void 0)super.checkReservedWord(J,X,Y,Q)}cloneIdentifier(J){let X=super.cloneIdentifier(J);if(X.type==="Placeholder")X.expectedNode=J.expectedNode;return X}cloneStringLiteral(J){if(J.type==="Placeholder")return this.cloneIdentifier(J);return super.cloneStringLiteral(J)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(J,X,Y,Q){return J==="Placeholder"||super.isValidLVal(J,X,Y,Q)}toAssignable(J,X){if(J&&J.type==="Placeholder"&&J.expectedNode==="Expression")J.expectedNode="Pattern";else super.toAssignable(J,X)}chStartsBindingIdentifier(J,X){if(super.chStartsBindingIdentifier(J,X))return!0;let Y=this.nextTokenStart();if(this.input.charCodeAt(Y)===37&&this.input.charCodeAt(Y+1)===37)return!0;return!1}verifyBreakContinue(J,X){var Y;if(((Y=J.label)==null?void 0:Y.type)==="Placeholder")return;super.verifyBreakContinue(J,X)}parseExpressionStatement(J,X){var Y;if(X.type!=="Placeholder"||(Y=X.extra)!=null&&Y.parenthesized)return super.parseExpressionStatement(J,X);if(this.match(14)){let U=J;return U.label=this.finishPlaceholder(X,"Identifier"),this.next(),U.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(U,"LabeledStatement")}this.semicolon();let Q=J;return Q.name=X.name,this.finishPlaceholder(Q,"Statement")}parseBlock(J,X,Y){return this.parsePlaceholder("BlockStatement")||super.parseBlock(J,X,Y)}parseFunctionId(J){return this.parsePlaceholder("Identifier")||super.parseFunctionId(J)}parseClass(J,X,Y){let Q=X?"ClassDeclaration":"ClassExpression";this.next();let U=this.state.strict,F=this.parsePlaceholder("Identifier");if(F)if(this.match(81)||this.match(133)||this.match(5))J.id=F;else if(Y||!X)return J.id=null,J.body=this.finishPlaceholder(F,"ClassBody"),this.finishNode(J,Q);else throw this.raise(gf.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(J,X,Y);return super.parseClassSuper(J),J.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!J.superClass,U),this.finishNode(J,Q)}parseExport(J,X){let Y=this.parsePlaceholder("Identifier");if(!Y)return super.parseExport(J,X);let Q=J;if(!this.isContextual(98)&&!this.match(12))return Q.specifiers=[],Q.source=null,Q.declaration=this.finishPlaceholder(Y,"Declaration"),this.finishNode(Q,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let U=this.startNode();return U.exported=Y,Q.specifiers=[this.finishNode(U,"ExportDefaultSpecifier")],super.parseExport(Q,X)}isExportDefaultSpecifier(){if(this.match(65)){let J=this.nextTokenStart();if(this.isUnparsedContextual(J,"from")){if(this.input.startsWith(x1(133),this.nextTokenStartSince(J+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(J,X){var Y;if((Y=J.specifiers)!=null&&Y.length)return!0;return super.maybeParseExportDefaultSpecifier(J,X)}checkExport(J){let{specifiers:X}=J;if(X!=null&&X.length)J.specifiers=X.filter((Y)=>Y.exported.type==="Placeholder");super.checkExport(J),J.specifiers=X}parseImport(J){let X=this.parsePlaceholder("Identifier");if(!X)return super.parseImport(J);if(J.specifiers=[],!this.isContextual(98)&&!this.match(12))return J.source=this.finishPlaceholder(X,"StringLiteral"),this.semicolon(),this.finishNode(J,"ImportDeclaration");let Y=this.startNodeAtNode(X);if(Y.local=X,J.specifiers.push(this.finishNode(Y,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(J))this.parseNamedImportSpecifiers(J)}return this.expectContextual(98),J.source=this.parseImportSource(),this.semicolon(),this.finishNode(J,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(gf.UnexpectedSpace,this.state.lastTokEndLoc)}},VWD=(D)=>class extends D{parseV8Intrinsic(){if(this.match(54)){let J=this.state.startLoc,X=this.startNode();if(this.next(),gD(this.state.type)){let Y=this.parseIdentifierName(),Q=this.createIdentifier(X,Y);if(this.castNodeTo(Q,"V8IntrinsicIdentifier"),this.match(10))return Q}this.unexpected(J)}}parseExprAtom(J){return this.parseV8Intrinsic()||super.parseExprAtom(J)}},xf=["minimal","fsharp","hack","smart"],ff=["^^","@@","^","%","#"];function wWD(D){if(D.has("decorators")){if(D.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let X=D.get("decorators").decoratorsBeforeExport;if(X!=null&&typeof X!=="boolean")throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let Y=D.get("decorators").allowCallParenthesized;if(Y!=null&&typeof Y!=="boolean")throw Error("'allowCallParenthesized' must be a boolean.")}if(D.has("flow")&&D.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(D.has("placeholders")&&D.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(D.has("pipelineOperator")){var $;let X=D.get("pipelineOperator").proposal;if(!xf.includes(X)){let Y=xf.map((Q)=>`"${Q}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${Y}.`)}if(X==="hack"){var J;if(D.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(D.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let Y=D.get("pipelineOperator").topicToken;if(!ff.includes(Y)){let Q=ff.map((U)=>`"${U}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Q}.`)}if(Y==="#"&&((J=D.get("recordAndTuple"))==null?void 0:J.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}else if(X==="smart"&&(($=D.get("recordAndTuple"))==null?void 0:$.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}if(D.has("moduleAttributes")){if(D.has("deprecatedImportAssert")||D.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(D.get("moduleAttributes").version!=="may-2020")throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(D.has("importAssertions")){if(D.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(D.has("deprecatedImportAssert"));else if(D.has("importAttributes")&&D.get("importAttributes").deprecatedAssertSyntax)D.set("deprecatedImportAssert",{});if(D.has("recordAndTuple")){let X=D.get("recordAndTuple").syntaxType;if(X!=null){let Y=["hash","bar"];if(!Y.includes(X))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+Y.map((Q)=>`'${Q}'`).join(", "))}}if(D.has("asyncDoExpressions")&&!D.has("doExpressions")){let X=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw X.missingPlugins="doExpressions",X}if(D.has("optionalChainingAssign")&&D.get("optionalChainingAssign").version!=="2023-07")throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(D.has("discardBinding")&&D.get("discardBinding").syntaxType!=="void")throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var Hy={estree:MFD,jsx:JWD,flow:sFD,typescript:HWD,v8intrinsic:VWD,placeholders:NWD},jWD=Object.keys(Hy);class Iy extends Gy{checkProto(D,$,J,X){if(D.type==="SpreadElement"||this.isObjectMethod(D)||D.computed||D.shorthand)return J;let Y=D.key;if((Y.type==="Identifier"?Y.name:Y.value)==="__proto__"){if($)return this.raise(M.RecordNoProto,Y),!0;if(J)if(X){if(X.doubleProtoLoc===null)X.doubleProtoLoc=Y.loc.start}else this.raise(M.DuplicateProto,Y);return!0}return J}shouldExitDescending(D,$){return D.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(D.start)===$}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(M.ParseExpressionEmptyInput,this.state.startLoc);let D=this.parseExpression();if(!this.match(140))throw this.raise(M.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});if(this.finalizeRemainingComments(),D.comments=this.comments,D.errors=this.state.errors,this.optionFlags&256)D.tokens=this.tokens;return D}parseExpression(D,$){if(D)return this.disallowInAnd(()=>this.parseExpressionBase($));return this.allowInAnd(()=>this.parseExpressionBase($))}parseExpressionBase(D){let $=this.state.startLoc,J=this.parseMaybeAssign(D);if(this.match(12)){let X=this.startNodeAt($);X.expressions=[J];while(this.eat(12))X.expressions.push(this.parseMaybeAssign(D));return this.toReferencedList(X.expressions),this.finishNode(X,"SequenceExpression")}return J}parseMaybeAssignDisallowIn(D,$){return this.disallowInAnd(()=>this.parseMaybeAssign(D,$))}parseMaybeAssignAllowIn(D,$){return this.allowInAnd(()=>this.parseMaybeAssign(D,$))}setOptionalParametersError(D){D.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(D,$){let J=this.state.startLoc,X=this.isContextual(108);if(X){if(this.prodParam.hasYield){this.next();let F=this.parseYield(J);if($)F=$.call(this,F,J);return F}}let Y;if(D)Y=!1;else D=new U3,Y=!0;let{type:Q}=this.state;if(Q===10||gD(Q))this.state.potentialArrowAt=this.state.start;let U=this.parseMaybeConditional(D);if($)U=$.call(this,U,J);if(PFD(this.state.type)){let F=this.startNodeAt(J),W=this.state.value;if(F.operator=W,this.match(29)){this.toAssignable(U,!0),F.left=U;let K=J.index;if(D.doubleProtoLoc!=null&&D.doubleProtoLoc.index>=K)D.doubleProtoLoc=null;if(D.shorthandAssignLoc!=null&&D.shorthandAssignLoc.index>=K)D.shorthandAssignLoc=null;if(D.privateKeyLoc!=null&&D.privateKeyLoc.index>=K)this.checkDestructuringPrivate(D),D.privateKeyLoc=null;if(D.voidPatternLoc!=null&&D.voidPatternLoc.index>=K)D.voidPatternLoc=null}else F.left=U;return this.next(),F.right=this.parseMaybeAssign(),this.checkLVal(U,this.finishNode(F,"AssignmentExpression"),void 0,void 0,void 0,void 0,W==="||="||W==="&&="||W==="??="),F}else if(Y)this.checkExpressionErrors(D,!0);if(X){let{type:F}=this.state;if((this.hasPlugin("v8intrinsic")?X3(F):X3(F)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.YieldNotInGeneratorFunction,J),this.parseYield(J)}return U}parseMaybeConditional(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,X=this.parseExprOps(D);if(this.shouldExitDescending(X,J))return X;return this.parseConditional(X,$,D)}parseConditional(D,$,J){if(this.eat(17)){let X=this.startNodeAt($);return X.test=D,X.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),X.alternate=this.parseMaybeAssign(),this.finishNode(X,"ConditionalExpression")}return D}parseMaybeUnaryOrPrivate(D){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(D)}parseExprOps(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,X=this.parseMaybeUnaryOrPrivate(D);if(this.shouldExitDescending(X,J))return X;return this.parseExprOp(X,$,-1)}parseExprOp(D,$,J){if(this.isPrivateName(D)){let Y=this.getPrivateNameSV(D);if(J>=DU(58)||!this.prodParam.hasIn||!this.match(58))this.raise(M.PrivateInExpectedIn,D,{identifierName:Y});this.classScope.usePrivateName(Y,D.loc.start)}let X=this.state.type;if(SFD(X)&&(this.prodParam.hasIn||!this.match(58))){let Y=DU(X);if(Y>J){if(X===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return D;this.checkPipelineAtInfixOperator(D,$)}let Q=this.startNodeAt($);Q.left=D,Q.operator=this.state.value;let U=X===41||X===42,F=X===40;if(F)Y=DU(42);if(this.next(),X===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(M.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}Q.right=this.parseExprOpRightExpr(X,Y);let W=this.finishNode(Q,U||F?"LogicalExpression":"BinaryExpression"),K=this.state.type;if(F&&(K===41||K===42)||U&&K===40)throw this.raise(M.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(W,$,J)}}return D}parseExprOpRightExpr(D,$){let J=this.state.startLoc;switch(D){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody($)})}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(M.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(D,$),J)});default:return this.parseExprOpBaseRightExpr(D,$)}}parseExprOpBaseRightExpr(D,$){let J=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),J,gFD(D)?$-1:$)}parseHackPipeBody(){var D;let{startLoc:$}=this.state,J=this.parseMaybeAssign();if(OFD.has(J.type)&&!((D=J.extra)!=null&&D.parenthesized))this.raise(M.PipeUnparenthesizedBody,$,{type:J.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipeTopicUnused,$);return J}checkExponentialAfterUnary(D){if(this.match(57))this.raise(M.UnexpectedTokenUnaryExponentiation,D.argument)}parseMaybeUnary(D,$){let J=this.state.startLoc,X=this.isContextual(96);if(X&&this.recordAwaitIfAllowed()){this.next();let F=this.parseAwait(J);if(!$)this.checkExponentialAfterUnary(F);return F}let Y=this.match(34),Q=this.startNode();if(kFD(this.state.type)){if(Q.operator=this.state.value,Q.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let F=this.match(89);if(this.next(),Q.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(D,!0),this.state.strict&&F){let W=Q.argument;if(W.type==="Identifier")this.raise(M.StrictDelete,Q);else if(this.hasPropertyAsPrivateName(W))this.raise(M.DeletePrivateField,Q)}if(!Y){if(!$)this.checkExponentialAfterUnary(Q);return this.finishNode(Q,"UnaryExpression")}}let U=this.parseUpdate(Q,Y,D);if(X){let{type:F}=this.state;if((this.hasPlugin("v8intrinsic")?X3(F):X3(F)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.AwaitNotInAsyncContext,J),this.parseAwait(J)}return U}parseUpdate(D,$,J){if($){let Q=D;return this.checkLVal(Q.argument,this.finishNode(Q,"UpdateExpression")),D}let X=this.state.startLoc,Y=this.parseExprSubscripts(J);if(this.checkExpressionErrors(J,!1))return Y;while(CFD(this.state.type)&&!this.canInsertSemicolon()){let Q=this.startNodeAt(X);Q.operator=this.state.value,Q.prefix=!1,Q.argument=Y,this.next(),this.checkLVal(Y,Y=this.finishNode(Q,"UpdateExpression"))}return Y}parseExprSubscripts(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,X=this.parseExprAtom(D);if(this.shouldExitDescending(X,J))return X;return this.parseSubscripts(X,$)}parseSubscripts(D,$,J){let X={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(D),stop:!1};do D=this.parseSubscript(D,$,J,X),X.maybeAsyncArrow=!1;while(!X.stop);return D}parseSubscript(D,$,J,X){let{type:Y}=this.state;if(!J&&Y===15)return this.parseBind(D,$,J,X);else if(JU(Y))return this.parseTaggedTemplateExpression(D,$,X);let Q=!1;if(Y===18){if(J){if(this.raise(M.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(D,X)}X.optionalChainMember=Q=!0,this.next()}if(!J&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(D,$,X,Q);else{let U=this.eat(0);if(U||Q||this.eat(16))return this.parseMember(D,$,X,U,Q);else return this.stopParseSubscript(D,X)}}stopParseSubscript(D,$){return $.stop=!0,D}parseMember(D,$,J,X,Y){let Q=this.startNodeAt($);if(Q.object=D,Q.computed=X,X)Q.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(D.type==="Super")this.raise(M.SuperPrivateField,$);this.classScope.usePrivateName(this.state.value,this.state.startLoc),Q.property=this.parsePrivateName()}else Q.property=this.parseIdentifier(!0);if(J.optionalChainMember)return Q.optional=Y,this.finishNode(Q,"OptionalMemberExpression");else return this.finishNode(Q,"MemberExpression")}parseBind(D,$,J,X){let Y=this.startNodeAt($);return Y.object=D,this.next(),Y.callee=this.parseNoCallExpr(),X.stop=!0,this.parseSubscripts(this.finishNode(Y,"BindExpression"),$,J)}parseCoverCallAndAsyncArrowHead(D,$,J,X){let Y=this.state.maybeInArrowParameters,Q=null;this.state.maybeInArrowParameters=!0,this.next();let U=this.startNodeAt($);U.callee=D;let{maybeAsyncArrow:F,optionalChainMember:W}=J;if(F)this.expressionScope.enter(qWD()),Q=new U3;if(W)U.optional=X;if(X)U.arguments=this.parseCallExpressionArguments();else U.arguments=this.parseCallExpressionArguments(D.type!=="Super",U,Q);let K=this.finishCallExpression(U,W);if(F&&this.shouldParseAsyncArrow()&&!X)J.stop=!0,this.checkDestructuringPrivate(Q),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),K=this.parseAsyncArrowFromCallExpression(this.startNodeAt($),K);else{if(F)this.checkExpressionErrors(Q,!0),this.expressionScope.exit();this.toReferencedArguments(K)}return this.state.maybeInArrowParameters=Y,K}toReferencedArguments(D,$){this.toReferencedListDeep(D.arguments,$)}parseTaggedTemplateExpression(D,$,J){let X=this.startNodeAt($);if(X.tag=D,X.quasi=this.parseTemplate(!0),J.optionalChainMember)this.raise(M.OptionalChainingNoTemplate,$);return this.finishNode(X,"TaggedTemplateExpression")}atPossibleAsyncArrow(D){return D.type==="Identifier"&&D.name==="async"&&this.state.lastTokEndLoc.index===D.end&&!this.canInsertSemicolon()&&D.end-D.start===5&&this.offsetToSourcePos(D.start)===this.state.potentialArrowAt}finishCallExpression(D,$){if(D.callee.type==="Import"){if(D.arguments.length===0||D.arguments.length>2)this.raise(M.ImportCallArity,D);else for(let J of D.arguments)if(J.type==="SpreadElement")this.raise(M.ImportCallSpreadArgument,J)}return this.finishNode(D,$?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(D,$,J){let X=[],Y=!0,Q=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(11)){if(Y)Y=!1;else if(this.expect(12),this.match(11)){if($)this.addTrailingCommaExtraToNode($);this.next();break}X.push(this.parseExprListItem(11,!1,J,D))}return this.state.inFSharpPipelineDirectBody=Q,X}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(D,$){var J;if(this.resetPreviousNodeTrailingComments($),this.expect(19),this.parseArrowExpression(D,$.arguments,!0,(J=$.extra)==null?void 0:J.trailingCommaLoc),$.innerComments)W3(D,$.innerComments);if($.callee.trailingComments)W3(D,$.callee.trailingComments);return D}parseNoCallExpr(){let D=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),D,!0)}parseExprAtom(D){let $,J=null,{type:X}=this.state;switch(X){case 79:return this.parseSuper();case 83:if($=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall($);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall($);else return this.finishNode($,"Import");else return this.raise(M.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode($,"Import");case 78:return $=this.startNode(),this.next(),this.finishNode($,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let Y=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(Y)}case 0:return this.parseArrayLike(3,!1,D);case 5:return this.parseObjectLike(8,!1,!1,D);case 68:return this.parseFunctionOrFunctionSent();case 26:J=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(J,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{$=this.startNode(),this.next(),$.object=null;let Y=$.callee=this.parseNoCallExpr();if(Y.type==="MemberExpression")return this.finishNode($,"BindExpression");else throw this.raise(M.UnsupportedBind,Y)}case 139:return this.raise(M.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let Y=this.getPluginOption("pipelineOperator","proposal");if(Y)return this.parseTopicReference(Y);throw this.unexpected()}case 47:{let Y=this.input.codePointAt(this.nextTokenStart());if(A6(Y)||Y===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(X===137)return this.parseDecimalLiteral(this.state.value);else if(X===2||X===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(X===6||X===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(gD(X)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let Y=this.state.potentialArrowAt===this.state.start,Q=this.state.containsEsc,U=this.parseIdentifier();if(!Q&&U.name==="async"&&!this.canInsertSemicolon()){let{type:F}=this.state;if(F===68)return this.resetPreviousNodeTrailingComments(U),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(U));else if(gD(F))if(Y&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(U));else return U;else if(F===90)return this.resetPreviousNodeTrailingComments(U),this.parseDo(this.startNodeAtNode(U),!0)}if(Y&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(U),[U],!1);return U}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(D,$){let J=this.getPluginOption("pipelineOperator","proposal");if(J)return this.state.type=D,this.state.value=$,this.state.pos--,this.state.end--,this.state.endLoc=U$(this.state.endLoc,-1),this.parseTopicReference(J);throw this.unexpected()}parseTopicReference(D){let $=this.startNode(),J=this.state.startLoc,X=this.state.type;return this.next(),this.finishTopicReference($,J,D,X)}finishTopicReference(D,$,J,X){if(this.testTopicReferenceConfiguration(J,$,X))if(J==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(M.PipeTopicUnbound,$);return this.registerTopicReference(),this.finishNode(D,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(M.PrimaryTopicNotAllowed,$);return this.registerTopicReference(),this.finishNode(D,"PipelinePrimaryTopicReference")}else throw this.raise(M.PipeTopicUnconfiguredToken,$,{token:x1(X)})}testTopicReferenceConfiguration(D,$,J){switch(D){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:x1(J)}]);case"smart":return J===27;default:throw this.raise(M.PipeTopicRequiresHackPipes,$)}}parseAsyncArrowUnaryFunction(D){this.prodParam.enter($U(!0,this.prodParam.hasYield));let $=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(M.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(D,$,!0)}parseDo(D,$){if(this.expectPlugin("doExpressions"),$)this.expectPlugin("asyncDoExpressions");D.async=$,this.next();let J=this.state.labels;if(this.state.labels=[],$)this.prodParam.enter(2),D.body=this.parseBlock(),this.prodParam.exit();else D.body=this.parseBlock();return this.state.labels=J,this.finishNode(D,"DoExpression")}parseSuper(){let D=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper){if(!(this.optionFlags&16))this.raise(M.SuperNotAllowed,D)}else if(!this.scope.allowSuper){if(!(this.optionFlags&16))this.raise(M.UnexpectedSuper,D)}if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(M.UnsupportedSuper,D);return this.finishNode(D,"Super")}parsePrivateName(){let D=this.startNode(),$=this.startNodeAt(U$(this.state.startLoc,1)),J=this.state.value;return this.next(),D.id=this.createIdentifier($,J),this.finishNode(D,"PrivateName")}parseFunctionOrFunctionSent(){let D=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let $=this.createIdentifier(this.startNodeAtNode(D),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(D,$,"sent")}return this.parseFunction(D)}parseMetaProperty(D,$,J){D.meta=$;let X=this.state.containsEsc;if(D.property=this.parseIdentifier(!0),D.property.name!==J||X)this.raise(M.UnsupportedMetaProperty,D.property,{target:$.name,onlyValidPropertyName:J});return this.finishNode(D,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(D){if(this.next(),this.isContextual(105)||this.isContextual(97)){let $=this.isContextual(105);return this.expectPlugin($?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),D.phase=$?"source":"defer",this.parseImportCall(D)}else{let $=this.createIdentifierAt(this.startNodeAtNode(D),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule)this.raise(M.ImportMetaOutsideModule,$);this.sawUnambiguousESM=!0}return this.parseMetaProperty(D,$,"meta")}}parseLiteralAtNode(D,$,J){return this.addExtra(J,"rawValue",D),this.addExtra(J,"raw",this.input.slice(this.offsetToSourcePos(J.start),this.state.end)),J.value=D,this.next(),this.finishNode(J,$)}parseLiteral(D,$){let J=this.startNode();return this.parseLiteralAtNode(D,$,J)}parseStringLiteral(D){return this.parseLiteral(D,"StringLiteral")}parseNumericLiteral(D){return this.parseLiteral(D,"NumericLiteral")}parseBigIntLiteral(D){return this.parseLiteral(D,"BigIntLiteral")}parseDecimalLiteral(D){return this.parseLiteral(D,"DecimalLiteral")}parseRegExpLiteral(D){let $=this.startNode();return this.addExtra($,"raw",this.input.slice(this.offsetToSourcePos($.start),this.state.end)),$.pattern=D.pattern,$.flags=D.flags,this.next(),this.finishNode($,"RegExpLiteral")}parseBooleanLiteral(D){let $=this.startNode();return $.value=D,this.next(),this.finishNode($,"BooleanLiteral")}parseNullLiteral(){let D=this.startNode();return this.next(),this.finishNode(D,"NullLiteral")}parseParenAndDistinguishExpression(D){let $=this.state.startLoc,J;this.next(),this.expressionScope.enter(KWD());let X=this.state.maybeInArrowParameters,Y=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Q=this.state.startLoc,U=[],F=new U3,W=!0,K,q;while(!this.match(11)){if(W)W=!1;else if(this.expect(12,F.optionalParametersLoc===null?null:F.optionalParametersLoc),this.match(11)){q=this.state.startLoc;break}if(this.match(21)){let H=this.state.startLoc;if(K=this.state.startLoc,U.push(this.parseParenItem(this.parseRestBinding(),H)),!this.checkCommaAfterRest(41))break}else U.push(this.parseMaybeAssignAllowInOrVoidPattern(11,F,this.parseParenItem))}let G=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=X,this.state.inFSharpPipelineDirectBody=Y;let Z=this.startNodeAt($);if(D&&this.shouldParseArrow(U)&&(Z=this.parseArrow(Z)))return this.checkDestructuringPrivate(F),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(Z,U,!1),Z;if(this.expressionScope.exit(),!U.length)this.unexpected(this.state.lastTokStartLoc);if(q)this.unexpected(q);if(K)this.unexpected(K);if(this.checkExpressionErrors(F,!0),this.toReferencedListDeep(U,!0),U.length>1)J=this.startNodeAt(Q),J.expressions=U,this.finishNode(J,"SequenceExpression"),this.resetEndLocation(J,G);else J=U[0];return this.wrapParenthesis($,J)}wrapParenthesis(D,$){if(!(this.optionFlags&1024))return this.addExtra($,"parenthesized",!0),this.addExtra($,"parenStart",D.index),this.takeSurroundingComments($,D.index,this.state.lastTokEndLoc.index),$;let J=this.startNodeAt(D);return J.expression=$,this.finishNode(J,"ParenthesizedExpression")}shouldParseArrow(D){return!this.canInsertSemicolon()}parseArrow(D){if(this.eat(19))return D}parseParenItem(D,$){return D}parseNewOrNewTarget(){let D=this.startNode();if(this.next(),this.match(16)){let $=this.createIdentifier(this.startNodeAtNode(D),"new");this.next();let J=this.parseMetaProperty(D,$,"target");if(!this.scope.allowNewTarget)this.raise(M.UnexpectedNewTarget,J);return J}return this.parseNew(D)}parseNew(D){if(this.parseNewCallee(D),this.eat(10)){let $=this.parseExprList(11);this.toReferencedList($),D.arguments=$}else D.arguments=[];return this.finishNode(D,"NewExpression")}parseNewCallee(D){let $=this.match(83),J=this.parseNoCallExpr();if(D.callee=J,$&&(J.type==="Import"||J.type==="ImportExpression"))this.raise(M.ImportCallNotNewExpression,J)}parseTemplateElement(D){let{start:$,startLoc:J,end:X,value:Y}=this.state,Q=$+1,U=this.startNodeAt(U$(J,1));if(Y===null){if(!D)this.raise(M.InvalidEscapeSequenceTemplate,U$(this.state.firstInvalidTemplateEscapePos,1))}let F=this.match(24),W=F?-1:-2,K=X+W;U.value={raw:this.input.slice(Q,K).replace(/\r\n?/g,`
`),cooked:Y===null?null:Y.slice(1,W)},U.tail=F,this.next();let q=this.finishNode(U,"TemplateElement");return this.resetEndLocation(q,U$(this.state.lastTokEndLoc,W)),q}parseTemplate(D){let $=this.startNode(),J=this.parseTemplateElement(D),X=[J],Y=[];while(!J.tail)Y.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),X.push(J=this.parseTemplateElement(D));return $.expressions=Y,$.quasis=X,this.finishNode($,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(D,$,J,X){if(J)this.expectPlugin("recordAndTuple");let Y=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Q=!1,U=!0,F=this.startNode();F.properties=[],this.next();while(!this.match(D)){if(U)U=!1;else if(this.expect(12),this.match(D)){this.addTrailingCommaExtraToNode(F);break}let K;if($)K=this.parseBindingProperty();else K=this.parsePropertyDefinition(X),Q=this.checkProto(K,J,Q,X);if(J&&!this.isObjectProperty(K)&&K.type!=="SpreadElement")this.raise(M.InvalidRecordProperty,K);if(K.shorthand)this.addExtra(K,"shorthand",!0);F.properties.push(K)}this.next(),this.state.inFSharpPipelineDirectBody=Y;let W="ObjectExpression";if($)W="ObjectPattern";else if(J)W="RecordExpression";return this.finishNode(F,W)}addTrailingCommaExtraToNode(D){this.addExtra(D,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(D,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(D){return!D.computed&&D.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(D){let $=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(M.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))$.push(this.parseDecorator())}let J=this.startNode(),X=!1,Y=!1,Q;if(this.match(21)){if($.length)this.unexpected();return this.parseSpread()}if($.length)J.decorators=$,$=[];if(J.method=!1,D)Q=this.state.startLoc;let U=this.eat(55);this.parsePropertyNamePrefixOperator(J);let F=this.state.containsEsc;if(this.parsePropertyName(J,D),!U&&!F&&this.maybeAsyncOrAccessorProp(J)){let{key:W}=J,K=W.name;if(K==="async"&&!this.hasPrecedingLineBreak())X=!0,this.resetPreviousNodeTrailingComments(W),U=this.eat(55),this.parsePropertyName(J);if(K==="get"||K==="set"){if(Y=!0,this.resetPreviousNodeTrailingComments(W),J.kind=K,this.match(55))U=!0,this.raise(M.AccessorIsGenerator,this.state.curPosition(),{kind:K}),this.next();this.parsePropertyName(J)}}return this.parseObjPropValue(J,Q,U,X,!1,Y,D)}getGetterSetterExpectedParamCount(D){return D.kind==="get"?0:1}getObjectOrClassMethodParams(D){return D.params}checkGetterSetterParams(D){var $;let J=this.getGetterSetterExpectedParamCount(D),X=this.getObjectOrClassMethodParams(D);if(X.length!==J)this.raise(D.kind==="get"?M.BadGetterArity:M.BadSetterArity,D);if(D.kind==="set"&&(($=X[X.length-1])==null?void 0:$.type)==="RestElement")this.raise(M.BadSetterRestParameter,D)}parseObjectMethod(D,$,J,X,Y){if(Y){let Q=this.parseMethod(D,$,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Q),Q}if(J||$||this.match(10)){if(X)this.unexpected();return D.kind="method",D.method=!0,this.parseMethod(D,$,J,!1,!1,"ObjectMethod")}}parseObjectProperty(D,$,J,X){if(D.shorthand=!1,this.eat(14))return D.value=J?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,X),this.finishObjectProperty(D);if(!D.computed&&D.key.type==="Identifier"){if(this.checkReservedWord(D.key.name,D.key.loc.start,!0,!1),J)D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key));else if(this.match(29)){let Y=this.state.startLoc;if(X!=null){if(X.shorthandAssignLoc===null)X.shorthandAssignLoc=Y}else this.raise(M.InvalidCoverInitializedName,Y);D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key))}else D.value=this.cloneIdentifier(D.key);return D.shorthand=!0,this.finishObjectProperty(D)}}finishObjectProperty(D){return this.finishNode(D,"ObjectProperty")}parseObjPropValue(D,$,J,X,Y,Q,U){let F=this.parseObjectMethod(D,J,X,Y,Q)||this.parseObjectProperty(D,$,Y,U);if(!F)this.unexpected();return F}parsePropertyName(D,$){if(this.eat(0))D.computed=!0,D.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:J,value:X}=this.state,Y;if(Q6(J))Y=this.parseIdentifier(!0);else switch(J){case 135:Y=this.parseNumericLiteral(X);break;case 134:Y=this.parseStringLiteral(X);break;case 136:Y=this.parseBigIntLiteral(X);break;case 139:{let Q=this.state.startLoc;if($!=null){if($.privateKeyLoc===null)$.privateKeyLoc=Q}else this.raise(M.UnexpectedPrivateField,Q);Y=this.parsePrivateName();break}default:if(J===137){Y=this.parseDecimalLiteral(X);break}this.unexpected()}if(D.key=Y,J!==139)D.computed=!1}}initFunction(D,$){D.id=null,D.generator=!1,D.async=$}parseMethod(D,$,J,X,Y,Q,U=!1){this.initFunction(D,J),D.generator=$,this.scope.enter(530|(U?576:0)|(Y?32:0)),this.prodParam.enter($U(J,D.generator)),this.parseFunctionParams(D,X);let F=this.parseFunctionBodyAndFinish(D,Q,!0);return this.prodParam.exit(),this.scope.exit(),F}parseArrayLike(D,$,J){if($)this.expectPlugin("recordAndTuple");let X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Y=this.startNode();return this.next(),Y.elements=this.parseExprList(D,!$,J,Y),this.state.inFSharpPipelineDirectBody=X,this.finishNode(Y,$?"TupleExpression":"ArrayExpression")}parseArrowExpression(D,$,J,X){this.scope.enter(518);let Y=$U(J,!1);if(!this.match(5)&&this.prodParam.hasIn)Y|=8;this.prodParam.enter(Y),this.initFunction(D,J);let Q=this.state.maybeInArrowParameters;if($)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(D,$,X);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(D,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Q,this.finishNode(D,"ArrowFunctionExpression")}setArrowFunctionParameters(D,$,J){this.toAssignableList($,J,!1),D.params=$}parseFunctionBodyAndFinish(D,$,J=!1){return this.parseFunctionBody(D,!1,J),this.finishNode(D,$)}parseFunctionBody(D,$,J=!1){let X=$&&!this.match(5);if(this.expressionScope.enter(Wy()),X)D.body=this.parseMaybeAssign(),this.checkParams(D,!1,$,!1);else{let Y=this.state.strict,Q=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),D.body=this.parseBlock(!0,!1,(U)=>{let F=!this.isSimpleParamList(D.params);if(U&&F)this.raise(M.IllegalLanguageModeDirective,(D.kind==="method"||D.kind==="constructor")&&!!D.key?D.key.loc.end:D);let W=!Y&&this.state.strict;if(this.checkParams(D,!this.state.strict&&!$&&!J&&!F,$,W),this.state.strict&&D.id)this.checkIdentifier(D.id,65,W)}),this.prodParam.exit(),this.state.labels=Q}this.expressionScope.exit()}isSimpleParameter(D){return D.type==="Identifier"}isSimpleParamList(D){for(let $=0,J=D.length;$<J;$++)if(!this.isSimpleParameter(D[$]))return!1;return!0}checkParams(D,$,J,X=!0){let Y=!$&&new Set,Q={type:"FormalParameters"};for(let U of D.params)this.checkLVal(U,Q,5,Y,X)}parseExprList(D,$,J,X){let Y=[],Q=!0;while(!this.eat(D)){if(Q)Q=!1;else if(this.expect(12),this.match(D)){if(X)this.addTrailingCommaExtraToNode(X);this.next();break}Y.push(this.parseExprListItem(D,$,J))}return Y}parseExprListItem(D,$,J,X){let Y;if(this.match(12)){if(!$)this.raise(M.UnexpectedToken,this.state.curPosition(),{unexpected:","});Y=null}else if(this.match(21)){let Q=this.state.startLoc;Y=this.parseParenItem(this.parseSpread(J),Q)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!X)this.raise(M.UnexpectedArgumentPlaceholder,this.state.startLoc);let Q=this.startNode();this.next(),Y=this.finishNode(Q,"ArgumentPlaceholder")}else Y=this.parseMaybeAssignAllowInOrVoidPattern(D,J,this.parseParenItem);return Y}parseIdentifier(D){let $=this.startNode(),J=this.parseIdentifierName(D);return this.createIdentifier($,J)}createIdentifier(D,$){return D.name=$,D.loc.identifierName=$,this.finishNode(D,"Identifier")}createIdentifierAt(D,$,J){return D.name=$,D.loc.identifierName=$,this.finishNodeAt(D,"Identifier",J)}parseIdentifierName(D){let $,{startLoc:J,type:X}=this.state;if(Q6(X))$=this.state.value;else this.unexpected();let Y=EFD(X);if(D){if(Y)this.replaceToken(132)}else this.checkReservedWord($,J,Y,!1);return this.next(),$}checkReservedWord(D,$,J,X){if(D.length>10)return;if(!pFD(D))return;if(J&&dFD(D)){this.raise(M.UnexpectedKeyword,$,{keyword:D});return}if((!this.state.strict?df:X?nf:cf)(D,this.inModule)){this.raise(M.UnexpectedReservedWord,$,{reservedWord:D});return}else if(D==="yield"){if(this.prodParam.hasYield){this.raise(M.YieldBindingIdentifier,$);return}}else if(D==="await"){if(this.prodParam.hasAwait){this.raise(M.AwaitBindingIdentifier,$);return}if(this.scope.inStaticBlock){this.raise(M.AwaitBindingIdentifierInStaticBlock,$);return}this.expressionScope.recordAsyncArrowParametersError($)}else if(D==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(M.ArgumentsInClass,$);return}}}recordAwaitIfAllowed(){let D=this.prodParam.hasAwait;if(D&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return D}parseAwait(D){let $=this.startNodeAt(D);if(this.expressionScope.recordParameterInitializerError(M.AwaitExpressionFormalParameter,$),this.eat(55))this.raise(M.ObsoleteAwaitStar,$);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)$.argument=this.parseMaybeUnary(null,!0);return this.finishNode($,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:D}=this.state;return D===53||D===10||D===0||JU(D)||D===102&&!this.state.containsEsc||D===138||D===56||this.hasPlugin("v8intrinsic")&&D===54}parseYield(D){let $=this.startNodeAt(D);this.expressionScope.recordParameterInitializerError(M.YieldInParameter,$);let J=!1,X=null;if(!this.hasPrecedingLineBreak())switch(J=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!J)break;default:X=this.parseMaybeAssign()}return $.delegate=J,$.argument=X,this.finishNode($,"YieldExpression")}parseImportCall(D){if(this.next(),D.source=this.parseMaybeAssignAllowIn(),D.options=null,this.eat(12))if(!this.match(11)){if(D.options=this.parseMaybeAssignAllowIn(),this.eat(12)){if(this.addTrailingCommaExtraToNode(D.options),!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(M.ImportCallArity,D)}}}else this.addTrailingCommaExtraToNode(D.source);return this.expect(11),this.finishNode(D,"ImportExpression")}checkPipelineAtInfixOperator(D,$){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(D.type==="SequenceExpression")this.raise(M.PipelineHeadSequenceExpression,$)}}parseSmartPipelineBodyInStyle(D,$){if(this.isSimpleReference(D)){let J=this.startNodeAt($);return J.callee=D,this.finishNode(J,"PipelineBareFunction")}else{let J=this.startNodeAt($);return this.checkSmartPipeTopicBodyEarlyErrors($),J.expression=D,this.finishNode(J,"PipelineTopicExpression")}}isSimpleReference(D){switch(D.type){case"MemberExpression":return!D.computed&&this.isSimpleReference(D.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(D){if(this.match(19))throw this.raise(M.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipelineTopicUnused,D)}withTopicBindingContext(D){let $=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return D()}finally{this.state.topicContext=$}}withSmartMixTopicForbiddingContext(D){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let $=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return D()}finally{this.state.topicContext=$}}else return D()}withSoloAwaitPermittingContext(D){let $=this.state.soloAwait;this.state.soloAwait=!0;try{return D()}finally{this.state.soloAwait=$}}allowInAnd(D){let $=this.prodParam.currentFlags();if(8&~$){this.prodParam.enter($|8);try{return D()}finally{this.prodParam.exit()}}return D()}disallowInAnd(D){let $=this.prodParam.currentFlags();if(8&$){this.prodParam.enter($&-9);try{return D()}finally{this.prodParam.exit()}}return D()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(D){let $=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let J=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let X=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),$,D);return this.state.inFSharpPipelineDirectBody=J,X}parseModuleExpression(){this.expectPlugin("moduleBlocks");let D=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let $=this.startNodeAt(this.state.endLoc);this.next();let J=this.initializeScopes(!0);this.enterInitialScopes();try{D.body=this.parseProgram($,8,"module")}finally{J()}return this.finishNode(D,"ModuleExpression")}parseVoidPattern(D){this.expectPlugin("discardBinding");let $=this.startNode();if(D!=null)D.voidPatternLoc=this.state.startLoc;return this.next(),this.finishNode($,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(D,$,J){if($!=null&&this.match(88)){let X=this.lookaheadCharCode();if(X===44||X===(D===3?93:D===8?125:41)||X===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern($))}return this.parseMaybeAssignAllowIn($,J)}parsePropertyNamePrefixOperator(D){}}var UN={kind:1},LWD={kind:2},RWD=/[\uD800-\uDFFF]/u,FN=/in(?:stanceof)?/y;function MWD(D,$,J){for(let X=0;X<D.length;X++){let Y=D[X],{type:Q}=Y;if(typeof Q==="number"){if(Q===139){let{loc:U,start:F,value:W,end:K}=Y,q=F+1,G=U$(U.start,1);D.splice(X,1,new d6({type:l6(27),value:"#",start:F,end:q,startLoc:U.start,endLoc:G}),new d6({type:l6(132),value:W,start:q,end:K,startLoc:G,endLoc:U.end})),X++;continue}if(JU(Q)){let{loc:U,start:F,value:W,end:K}=Y,q=F+1,G=U$(U.start,1),Z;if($.charCodeAt(F-J)===96)Z=new d6({type:l6(22),value:"`",start:F,end:q,startLoc:U.start,endLoc:G});else Z=new d6({type:l6(8),value:"}",start:F,end:q,startLoc:U.start,endLoc:G});let H,z,I,B;if(Q===24)z=K-1,I=U$(U.end,-1),H=W===null?null:W.slice(1,-1),B=new d6({type:l6(22),value:"`",start:z,end:K,startLoc:I,endLoc:U.end});else z=K-2,I=U$(U.end,-2),H=W===null?null:W.slice(1,-2),B=new d6({type:l6(23),value:"${",start:z,end:K,startLoc:I,endLoc:U.end});D.splice(X,1,Z,new d6({type:l6(20),value:H,start:q,end:z,startLoc:G,endLoc:I}),B),X+=2;continue}Y.type=l6(Q)}}return D}class By extends Iy{parseTopLevel(D,$){if(D.program=this.parseProgram($,140,this.options.sourceType==="module"?"module":"script"),D.comments=this.comments,this.optionFlags&256)D.tokens=MWD(this.tokens,this.input,this.startIndex);return this.finishNode(D,"File")}parseProgram(D,$,J){if(D.sourceType=J,D.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(D,!0,!0,$),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[Y,Q]of Array.from(this.scope.undefinedExports))this.raise(M.ModuleExportUndefined,Q,{localName:Y});this.addExtra(D,"topLevelAwait",this.state.hasTopLevelAwait)}let X;if($===140)X=this.finishNode(D,"Program");else X=this.finishNodeAt(D,"Program",U$(this.state.startLoc,-1));return X}stmtToDirective(D){let $=this.castNodeTo(D,"Directive"),J=this.castNodeTo(D.expression,"DirectiveLiteral"),X=J.value,Y=this.input.slice(this.offsetToSourcePos(J.start),this.offsetToSourcePos(J.end)),Q=J.value=Y.slice(1,-1);return this.addExtra(J,"raw",Y),this.addExtra(J,"rawValue",Q),this.addExtra(J,"expressionValue",X),$.value=J,delete D.expression,$}parseInterpreterDirective(){if(!this.match(28))return null;let D=this.startNode();return D.value=this.state.value,this.next(),this.finishNode(D,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;return this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);if(this.isUnparsedContextual(D,"of")){let J=this.lookaheadCharCodeSince(D+2);if(J!==61&&J!==58&&J!==59)return!1}if(this.chStartsBindingIdentifier($,D)||this.isUnparsedContextual(D,"void"))return!0;return!1}nextTokenIsIdentifierOnSameLine(){let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);return this.chStartsBindingIdentifier($,D)}isAwaitUsing(){if(!this.isContextual(96))return!1;let D=this.nextTokenInLineStart();if(this.isUnparsedContextual(D,"using")){D=this.nextTokenInLineStartSince(D+5);let $=this.codePointAtPos(D);if(this.chStartsBindingIdentifier($,D))return!0}return!1}chStartsBindingIdentifier(D,$){if(A6(D)){if(FN.lastIndex=$,FN.test(this.input)){let J=this.codePointAtPos(FN.lastIndex);if(!J8(J)&&J!==92)return!1}return!0}else if(D===92)return!0;else return!1}chStartsBindingPattern(D){return D===91||D===123}hasFollowingBindingAtom(){let D=this.nextTokenStart(),$=this.codePointAtPos(D);return this.chStartsBindingPattern($)||this.chStartsBindingIdentifier($,D)}hasInLineFollowingBindingIdentifierOrBrace(){let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);return $===123||this.chStartsBindingIdentifier($,D)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(D=!1){let $=0;if(this.options.annexB&&!this.state.strict){if($|=4,D)$|=8}return this.parseStatementLike($)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(D){let $=null;if(this.match(26))$=this.parseDecorators(!0);return this.parseStatementContent(D,$)}parseStatementContent(D,$){let J=this.state.type,X=this.startNode(),Y=!!(D&2),Q=!!(D&4),U=D&1;switch(J){case 60:return this.parseBreakContinueStatement(X,!0);case 63:return this.parseBreakContinueStatement(X,!1);case 64:return this.parseDebuggerStatement(X);case 90:return this.parseDoWhileStatement(X);case 91:return this.parseForStatement(X);case 68:if(this.lookaheadCharCode()===46)break;if(!Q)this.raise(this.state.strict?M.StrictFunction:this.options.annexB?M.SloppyFunctionAnnexB:M.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(X,!1,!Y&&Q);case 80:if(!Y)this.unexpected();return this.parseClass(this.maybeTakeDecorators($,X),!0);case 69:return this.parseIfStatement(X);case 70:return this.parseReturnStatement(X);case 71:return this.parseSwitchStatement(X);case 72:return this.parseThrowStatement(X);case 73:return this.parseTryStatement(X);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,X);else if(!Y)this.raise(M.UnexpectedLexicalDeclaration,X);else if(!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,X);return this.next(),this.parseVarStatement(X,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,this.state.startLoc);else if(!Y)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(X,"using");case 100:{if(this.state.containsEsc)break;let K=this.nextTokenStart(),q=this.codePointAtPos(K);if(q!==91){if(!Y&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(q,K)&&q!==123)break}}case 75:if(!Y)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let K=this.state.value;return this.parseVarStatement(X,K)}case 92:return this.parseWhileStatement(X);case 76:return this.parseWithStatement(X);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(X);case 83:{let K=this.lookaheadCharCode();if(K===40||K===46)break}case 82:{if(!(this.optionFlags&8)&&!U)this.raise(M.UnexpectedImportExport,this.state.startLoc);this.next();let K;if(J===83)K=this.parseImport(X);else K=this.parseExport(X,$);return this.assertModuleNodeAllowed(K),K}default:if(this.isAsyncFunction()){if(!Y)this.raise(M.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(X,!0,!Y&&Q)}}let F=this.state.value,W=this.parseExpression();if(gD(J)&&W.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(X,F,W,D);else return this.parseExpressionStatement(X,W,$)}assertModuleNodeAllowed(D){if(!(this.optionFlags&8)&&!this.inModule)this.raise(M.ImportOutsideModule,D)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(D,$,J){if(D){var X;if((X=$.decorators)!=null&&X.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(M.DecoratorsBeforeAfterExport,$.decorators[0]);$.decorators.unshift(...D)}else $.decorators=D;if(this.resetStartLocationFromNode($,D[0]),J)this.resetStartLocationFromNode(J,$)}return $}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(D){let $=[];do $.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!D)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(M.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(M.UnexpectedLeadingDecorator,this.state.startLoc);return $}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let D=this.startNode();if(this.next(),this.hasPlugin("decorators")){let $=this.state.startLoc,J;if(this.match(10)){let X=this.state.startLoc;this.next(),J=this.parseExpression(),this.expect(11),J=this.wrapParenthesis(X,J);let Y=this.state.startLoc;if(D.expression=this.parseMaybeDecoratorArguments(J,X),this.getPluginOption("decorators","allowCallParenthesized")===!1&&D.expression!==J)this.raise(M.DecoratorArgumentsOutsideParentheses,Y)}else{J=this.parseIdentifier(!1);while(this.eat(16)){let X=this.startNodeAt($);if(X.object=J,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),X.property=this.parsePrivateName();else X.property=this.parseIdentifier(!0);X.computed=!1,J=this.finishNode(X,"MemberExpression")}D.expression=this.parseMaybeDecoratorArguments(J,$)}}else D.expression=this.parseExprSubscripts();return this.finishNode(D,"Decorator")}parseMaybeDecoratorArguments(D,$){if(this.eat(10)){let J=this.startNodeAt($);return J.callee=D,J.arguments=this.parseCallExpressionArguments(),this.toReferencedList(J.arguments),this.finishNode(J,"CallExpression")}return D}parseBreakContinueStatement(D,$){if(this.next(),this.isLineTerminator())D.label=null;else D.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(D,$),this.finishNode(D,$?"BreakStatement":"ContinueStatement")}verifyBreakContinue(D,$){let J;for(J=0;J<this.state.labels.length;++J){let X=this.state.labels[J];if(D.label==null||X.name===D.label.name){if(X.kind!=null&&($||X.kind===1))break;if(D.label&&$)break}}if(J===this.state.labels.length){let X=$?"BreakStatement":"ContinueStatement";this.raise(M.IllegalBreakContinue,D,{type:X})}}parseDebuggerStatement(D){return this.next(),this.semicolon(),this.finishNode(D,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let D=this.parseExpression();return this.expect(11),D}parseDoWhileStatement(D){return this.next(),this.state.labels.push(UN),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),D.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(D,"DoWhileStatement")}parseForStatement(D){this.next(),this.state.labels.push(UN);let $=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())$=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if($!==null)this.unexpected($);return this.parseFor(D,null)}let J=this.isContextual(100);{let F=this.isAwaitUsing(),W=F||this.isForUsing(),K=J&&this.hasFollowingBindingAtom()||W;if(this.match(74)||this.match(75)||K){let q=this.startNode(),G;if(F){if(G="await using",!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else G=this.state.value;this.next(),this.parseVar(q,!0,G);let Z=this.finishNode(q,"VariableDeclaration"),H=this.match(58);if(H&&W)this.raise(M.ForInUsing,Z);if((H||this.isContextual(102))&&Z.declarations.length===1)return this.parseForIn(D,Z,$);if($!==null)this.unexpected($);return this.parseFor(D,Z)}}let X=this.isContextual(95),Y=new U3,Q=this.parseExpression(!0,Y),U=this.isContextual(102);if(U){if(J)this.raise(M.ForOfLet,Q);if($===null&&X&&Q.type==="Identifier")this.raise(M.ForOfAsync,Q)}if(U||this.match(58)){this.checkDestructuringPrivate(Y),this.toAssignable(Q,!0);let F=U?"ForOfStatement":"ForInStatement";return this.checkLVal(Q,{type:F}),this.parseForIn(D,Q,$)}else this.checkExpressionErrors(Y,!0);if($!==null)this.unexpected($);return this.parseFor(D,Q)}parseFunctionStatement(D,$,J){return this.next(),this.parseFunction(D,1|(J?2:0)|($?8:0))}parseIfStatement(D){return this.next(),D.test=this.parseHeaderExpression(),D.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),D.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(D,"IfStatement")}parseReturnStatement(D){if(!this.prodParam.hasReturn)this.raise(M.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())D.argument=null;else D.argument=this.parseExpression(),this.semicolon();return this.finishNode(D,"ReturnStatement")}parseSwitchStatement(D){this.next(),D.discriminant=this.parseHeaderExpression();let $=D.cases=[];this.expect(5),this.state.labels.push(LWD),this.scope.enter(256);let J;for(let X;!this.match(8);)if(this.match(61)||this.match(65)){let Y=this.match(61);if(J)this.finishNode(J,"SwitchCase");if($.push(J=this.startNode()),J.consequent=[],this.next(),Y)J.test=this.parseExpression();else{if(X)this.raise(M.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);X=!0,J.test=null}this.expect(14)}else if(J)J.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),J)this.finishNode(J,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(D,"SwitchStatement")}parseThrowStatement(D){if(this.next(),this.hasPrecedingLineBreak())this.raise(M.NewlineAfterThrow,this.state.lastTokEndLoc);return D.argument=this.parseExpression(),this.semicolon(),this.finishNode(D,"ThrowStatement")}parseCatchClauseParam(){let D=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&D.type==="Identifier"?8:0),this.checkLVal(D,{type:"CatchClause"},9),D}parseTryStatement(D){if(this.next(),D.block=this.parseBlock(),D.handler=null,this.match(62)){let $=this.startNode();if(this.next(),this.match(10))this.expect(10),$.param=this.parseCatchClauseParam(),this.expect(11);else $.param=null,this.scope.enter(0);$.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),D.handler=this.finishNode($,"CatchClause")}if(D.finalizer=this.eat(67)?this.parseBlock():null,!D.handler&&!D.finalizer)this.raise(M.NoCatchOrFinally,D);return this.finishNode(D,"TryStatement")}parseVarStatement(D,$,J=!1){return this.next(),this.parseVar(D,!1,$,J),this.semicolon(),this.finishNode(D,"VariableDeclaration")}parseWhileStatement(D){return this.next(),D.test=this.parseHeaderExpression(),this.state.labels.push(UN),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(D,"WhileStatement")}parseWithStatement(D){if(this.state.strict)this.raise(M.StrictWith,this.state.startLoc);return this.next(),D.object=this.parseHeaderExpression(),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(D,"WithStatement")}parseEmptyStatement(D){return this.next(),this.finishNode(D,"EmptyStatement")}parseLabeledStatement(D,$,J,X){for(let Q of this.state.labels)if(Q.name===$)this.raise(M.LabelRedeclaration,J,{labelName:$});let Y=bFD(this.state.type)?1:this.match(71)?2:null;for(let Q=this.state.labels.length-1;Q>=0;Q--){let U=this.state.labels[Q];if(U.statementStart===D.start)U.statementStart=this.sourceToOffsetPos(this.state.start),U.kind=Y;else break}return this.state.labels.push({name:$,kind:Y,statementStart:this.sourceToOffsetPos(this.state.start)}),D.body=X&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),D.label=J,this.finishNode(D,"LabeledStatement")}parseExpressionStatement(D,$,J){return D.expression=$,this.semicolon(),this.finishNode(D,"ExpressionStatement")}parseBlock(D=!1,$=!0,J){let X=this.startNode();if(D)this.state.strictErrors.clear();if(this.expect(5),$)this.scope.enter(0);if(this.parseBlockBody(X,D,!1,8,J),$)this.scope.exit();return this.finishNode(X,"BlockStatement")}isValidDirective(D){return D.type==="ExpressionStatement"&&D.expression.type==="StringLiteral"&&!D.expression.extra.parenthesized}parseBlockBody(D,$,J,X,Y){let Q=D.body=[],U=D.directives=[];this.parseBlockOrModuleBlockBody(Q,$?U:void 0,J,X,Y)}parseBlockOrModuleBlockBody(D,$,J,X,Y){let Q=this.state.strict,U=!1,F=!1;while(!this.match(X)){let W=J?this.parseModuleItem():this.parseStatementListItem();if($&&!F){if(this.isValidDirective(W)){let K=this.stmtToDirective(W);if($.push(K),!U&&K.value.value==="use strict")U=!0,this.setStrict(!0);continue}F=!0,this.state.strictErrors.clear()}D.push(W)}if(Y==null||Y.call(this,U),!Q)this.setStrict(!1);this.next()}parseFor(D,$){return D.init=$,this.semicolon(!1),D.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),D.update=this.match(11)?null:this.parseExpression(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,"ForStatement")}parseForIn(D,$,J){let X=this.match(58);if(this.next(),X){if(J!==null)this.unexpected(J)}else D.await=J!==null;if($.type==="VariableDeclaration"&&$.declarations[0].init!=null&&(!X||!this.options.annexB||this.state.strict||$.kind!=="var"||$.declarations[0].id.type!=="Identifier"))this.raise(M.ForInOfLoopInitializer,$,{type:X?"ForInStatement":"ForOfStatement"});if($.type==="AssignmentPattern")this.raise(M.InvalidLhs,$,{ancestor:{type:"ForStatement"}});return D.left=$,D.right=X?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,X?"ForInStatement":"ForOfStatement")}parseVar(D,$,J,X=!1){let Y=D.declarations=[];D.kind=J;for(;;){let Q=this.startNode();if(this.parseVarId(Q,J),Q.init=!this.eat(29)?null:$?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),Q.init===null&&!X){if(Q.id.type!=="Identifier"&&!($&&(this.match(58)||this.isContextual(102))))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((J==="const"||J==="using"||J==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:J})}if(Y.push(this.finishNode(Q,"VariableDeclarator")),!this.eat(12))break}return D}parseVarId(D,$){let J=this.parseBindingAtom();if($==="using"||$==="await using"){if(J.type==="ArrayPattern"||J.type==="ObjectPattern")this.raise(M.UsingDeclarationHasBindingPattern,J.loc.start)}else if(J.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,J.loc.start);this.checkLVal(J,{type:"VariableDeclarator"},$==="var"?5:8201),D.id=J}parseAsyncFunctionExpression(D){return this.parseFunction(D,8)}parseFunction(D,$=0){let J=$&2,X=!!($&1),Y=X&&!($&4),Q=!!($&8);if(this.initFunction(D,Q),this.match(55)){if(J)this.raise(M.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),D.generator=!0}if(X)D.id=this.parseFunctionId(Y);let U=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter($U(Q,D.generator)),!X)D.id=this.parseFunctionId();if(this.parseFunctionParams(D,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(D,X?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),X&&!J)this.registerFunctionStatementId(D);return this.state.maybeInArrowParameters=U,D}parseFunctionId(D){return D||gD(this.state.type)?this.parseIdentifier():null}parseFunctionParams(D,$){this.expect(10),this.expressionScope.enter(WWD()),D.params=this.parseBindingList(11,41,2|($?4:0)),this.expressionScope.exit()}registerFunctionStatementId(D){if(!D.id)return;this.scope.declareName(D.id.name,!this.options.annexB||this.state.strict||D.generator||D.async?this.scope.treatFunctionsAsVar?5:8201:17,D.id.loc.start)}parseClass(D,$,J){this.next();let X=this.state.strict;return this.state.strict=!0,this.parseClassId(D,$,J),this.parseClassSuper(D),D.body=this.parseClassBody(!!D.superClass,X),this.finishNode(D,$?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(D){return D.type==="Identifier"&&D.name==="constructor"||D.type==="StringLiteral"&&D.value==="constructor"}isNonstaticConstructor(D){return!D.computed&&!D.static&&this.nameIsConstructor(D.key)}parseClassBody(D,$){this.classScope.enter();let J={hadConstructor:!1,hadSuperClass:D},X=[],Y=this.startNode();if(Y.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(X.length>0)throw this.raise(M.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){X.push(this.parseDecorator());continue}let Q=this.startNode();if(X.length)Q.decorators=X,this.resetStartLocationFromNode(Q,X[0]),X=[];if(this.parseClassMember(Y,Q,J),Q.kind==="constructor"&&Q.decorators&&Q.decorators.length>0)this.raise(M.DecoratorConstructor,Q)}}),this.state.strict=$,this.next(),X.length)throw this.raise(M.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(Y,"ClassBody")}parseClassMemberFromModifier(D,$){let J=this.parseIdentifier(!0);if(this.isClassMethod()){let X=$;return X.kind="method",X.computed=!1,X.key=J,X.static=!1,this.pushClassMethod(D,X,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let X=$;return X.computed=!1,X.key=J,X.static=!1,D.body.push(this.parseClassProperty(X)),!0}return this.resetPreviousNodeTrailingComments(J),!1}parseClassMember(D,$,J){let X=this.isContextual(106);if(X){if(this.parseClassMemberFromModifier(D,$))return;if(this.eat(5)){this.parseClassStaticBlock(D,$);return}}this.parseClassMemberWithIsStatic(D,$,J,X)}parseClassMemberWithIsStatic(D,$,J,X){let Y=$,Q=$,U=$,F=$,W=$,K=Y,q=Y;if($.static=X,this.parsePropertyNamePrefixOperator($),this.eat(55)){K.kind="method";let B=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(K),B){this.pushClassPrivateMethod(D,Q,!0,!1);return}if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsGenerator,Y.key);this.pushClassMethod(D,Y,!0,!1,!1,!1);return}let G=!this.state.containsEsc&&gD(this.state.type),Z=this.parseClassElementName($),H=G?Z.name:null,z=this.isPrivateName(Z),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(q),this.isClassMethod()){if(K.kind="method",z){this.pushClassPrivateMethod(D,Q,!1,!1);return}let B=this.isNonstaticConstructor(Y),N=!1;if(B){if(Y.kind="constructor",J.hadConstructor&&!this.hasPlugin("typescript"))this.raise(M.DuplicateConstructor,Z);if(B&&this.hasPlugin("typescript")&&$.override)this.raise(M.OverrideOnConstructor,Z);J.hadConstructor=!0,N=J.hadSuperClass}this.pushClassMethod(D,Y,!1,!1,B,N)}else if(this.isClassProperty())if(z)this.pushClassPrivateProperty(D,F);else this.pushClassProperty(D,U);else if(H==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(Z);let B=this.eat(55);if(q.optional)this.unexpected(I);K.kind="method";let N=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(q),N)this.pushClassPrivateMethod(D,Q,B,!0);else{if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsAsync,Y.key);this.pushClassMethod(D,Y,B,!0,!1,!1)}}else if((H==="get"||H==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(Z),K.kind=H;let B=this.match(139);if(this.parseClassElementName(Y),B)this.pushClassPrivateMethod(D,Q,!1,!1);else{if(this.isNonstaticConstructor(Y))this.raise(M.ConstructorIsAccessor,Y.key);this.pushClassMethod(D,Y,!1,!1,!1,!1)}this.checkGetterSetterParams(Y)}else if(H==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(Z);let B=this.match(139);this.parseClassElementName(U),this.pushClassAccessorProperty(D,W,B)}else if(this.isLineTerminator())if(z)this.pushClassPrivateProperty(D,F);else this.pushClassProperty(D,U);else this.unexpected()}parseClassElementName(D){let{type:$,value:J}=this.state;if(($===132||$===134)&&D.static&&J==="prototype")this.raise(M.StaticPrototype,this.state.startLoc);if($===139){if(J==="constructor")this.raise(M.ConstructorClassPrivateField,this.state.startLoc);let X=this.parsePrivateName();return D.key=X,X}return this.parsePropertyName(D),D.key}parseClassStaticBlock(D,$){var J;this.scope.enter(720);let X=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let Y=$.body=[];if(this.parseBlockOrModuleBlockBody(Y,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=X,D.body.push(this.finishNode($,"StaticBlock")),(J=$.decorators)!=null&&J.length)this.raise(M.DecoratorStaticBlock,$)}pushClassProperty(D,$){if(!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);D.body.push(this.parseClassProperty($))}pushClassPrivateProperty(D,$){let J=this.parseClassPrivateProperty($);D.body.push(J),this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),0,J.key.loc.start)}pushClassAccessorProperty(D,$,J){if(!J&&!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);let X=this.parseClassAccessorProperty($);if(D.body.push(X),J)this.classScope.declarePrivateName(this.getPrivateNameSV(X.key),0,X.key.loc.start)}pushClassMethod(D,$,J,X,Y,Q){D.body.push(this.parseMethod($,J,X,Y,Q,"ClassMethod",!0))}pushClassPrivateMethod(D,$,J,X){let Y=this.parseMethod($,J,X,!1,!1,"ClassPrivateMethod",!0);D.body.push(Y);let Q=Y.kind==="get"?Y.static?6:2:Y.kind==="set"?Y.static?5:1:0;this.declareClassPrivateMethodInScope(Y,Q)}declareClassPrivateMethodInScope(D,$){this.classScope.declarePrivateName(this.getPrivateNameSV(D.key),$,D.key.loc.start)}parsePostMemberNameModifiers(D){}parseClassPrivateProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassPrivateProperty")}parseClassProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassProperty")}parseClassAccessorProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassAccessorProperty")}parseInitializer(D){this.scope.enter(592),this.expressionScope.enter(Wy()),this.prodParam.enter(0),D.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(D,$,J,X=8331){if(gD(this.state.type)){if(D.id=this.parseIdentifier(),$)this.declareNameFromIdentifier(D.id,X)}else if(J||!$)D.id=null;else throw this.raise(M.MissingClassName,this.state.startLoc)}parseClassSuper(D){D.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(D,$){let J=this.parseMaybeImportPhase(D,!0),X=this.maybeParseExportDefaultSpecifier(D,J),Y=!X||this.eat(12),Q=Y&&this.eatExportStar(D),U=Q&&this.maybeParseExportNamespaceSpecifier(D),F=Y&&(!U||this.eat(12)),W=X||Q;if(Q&&!U){if(X)this.unexpected();if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.parseExportFrom(D,!0),this.sawUnambiguousESM=!0,this.finishNode(D,"ExportAllDeclaration")}let K=this.maybeParseExportNamedSpecifiers(D);if(X&&Y&&!Q&&!K)this.unexpected(null,5);if(U&&F)this.unexpected(null,98);let q;if(W||K){if(q=!1,$)throw this.raise(M.UnsupportedDecoratorExport,D);this.parseExportFrom(D,W)}else q=this.maybeParseExportDeclaration(D);if(W||K||q){var G;let Z=D;if(this.checkExport(Z,!0,!1,!!Z.source),((G=Z.declaration)==null?void 0:G.type)==="ClassDeclaration")this.maybeTakeDecorators($,Z.declaration,Z);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.sawUnambiguousESM=!0,this.finishNode(Z,"ExportNamedDeclaration")}if(this.eat(65)){let Z=D,H=this.parseExportDefaultExpression();if(Z.declaration=H,H.type==="ClassDeclaration")this.maybeTakeDecorators($,H,Z);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.checkExport(Z,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(Z,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(D){return this.eat(55)}maybeParseExportDefaultSpecifier(D,$){if($||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",$==null?void 0:$.loc.start);let J=$||this.parseIdentifier(!0),X=this.startNodeAtNode(J);return X.exported=J,D.specifiers=[this.finishNode(X,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(D){if(this.isContextual(93)){var $,J;(J=($=D).specifiers)!=null||($.specifiers=[]);let X=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),X.exported=this.parseModuleExportName(),D.specifiers.push(this.finishNode(X,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(D){if(this.match(5)){let $=D;if(!$.specifiers)$.specifiers=[];let J=$.exportKind==="type";if($.specifiers.push(...this.parseExportSpecifiers(J)),$.source=null,this.hasPlugin("importAssertions"))$.assertions=[];else $.attributes=[];return $.declaration=null,!0}return!1}maybeParseExportDeclaration(D){if(this.shouldParseExportDeclaration()){if(D.specifiers=[],D.source=null,this.hasPlugin("importAssertions"))D.assertions=[];else D.attributes=[];return D.declaration=this.parseExportDeclaration(D),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let D=this.nextTokenInLineStart();return this.isUnparsedContextual(D,"function")}parseExportDefaultExpression(){let D=this.startNode();if(this.match(68))return this.next(),this.parseFunction(D,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(D,13);if(this.match(80))return this.parseClass(D,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(M.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(M.UnsupportedDefaultExport,this.state.startLoc);let $=this.parseMaybeAssignAllowIn();return this.semicolon(),$}parseExportDeclaration(D){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:D}=this.state;if(gD(D)){if(D===95&&!this.state.containsEsc||D===100)return!1;if((D===130||D===129)&&!this.state.containsEsc){let X=this.nextTokenStart(),Y=this.input.charCodeAt(X);if(Y===123||this.chStartsBindingIdentifier(Y,X)&&!this.input.startsWith("from",X))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let $=this.nextTokenStart(),J=this.isUnparsedContextual($,"from");if(this.input.charCodeAt($)===44||gD(this.state.type)&&J)return!0;if(this.match(65)&&J){let X=this.input.charCodeAt(this.nextTokenStartSince($+4));return X===34||X===39}return!1}parseExportFrom(D,$){if(this.eatContextual(98))D.source=this.parseImportSource(),this.checkExport(D),this.maybeParseImportAttributes(D),this.checkJSONModuleImport(D);else if($)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:D}=this.state;if(D===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(M.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isUsing())return this.raise(M.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(M.UsingDeclarationExport,this.state.startLoc),!0;return D===74||D===75||D===68||D===80||this.isLet()||this.isAsyncFunction()}checkExport(D,$,J,X){if($){var Y;if(J){if(this.checkDuplicateExports(D,"default"),this.hasPlugin("exportDefaultFrom")){var Q;let U=D.declaration;if(U.type==="Identifier"&&U.name==="from"&&U.end-U.start===4&&!((Q=U.extra)!=null&&Q.parenthesized))this.raise(M.ExportDefaultFromAsIdentifier,U)}}else if((Y=D.specifiers)!=null&&Y.length)for(let U of D.specifiers){let{exported:F}=U,W=F.type==="Identifier"?F.name:F.value;if(this.checkDuplicateExports(U,W),!X&&U.local){let{local:K}=U;if(K.type!=="Identifier")this.raise(M.ExportBindingIsString,U,{localName:K.value,exportName:W});else this.checkReservedWord(K.name,K.loc.start,!0,!1),this.scope.checkLocalExport(K)}}else if(D.declaration){let U=D.declaration;if(U.type==="FunctionDeclaration"||U.type==="ClassDeclaration"){let{id:F}=U;if(!F)throw Error("Assertion failure");this.checkDuplicateExports(D,F.name)}else if(U.type==="VariableDeclaration")for(let F of U.declarations)this.checkDeclaration(F.id)}}}checkDeclaration(D){if(D.type==="Identifier")this.checkDuplicateExports(D,D.name);else if(D.type==="ObjectPattern")for(let $ of D.properties)this.checkDeclaration($);else if(D.type==="ArrayPattern"){for(let $ of D.elements)if($)this.checkDeclaration($)}else if(D.type==="ObjectProperty")this.checkDeclaration(D.value);else if(D.type==="RestElement")this.checkDeclaration(D.argument);else if(D.type==="AssignmentPattern")this.checkDeclaration(D.left)}checkDuplicateExports(D,$){if(this.exportedIdentifiers.has($))if($==="default")this.raise(M.DuplicateDefaultExport,D);else this.raise(M.DuplicateExport,D,{exportName:$});this.exportedIdentifiers.add($)}parseExportSpecifiers(D){let $=[],J=!0;this.expect(5);while(!this.eat(8)){if(J)J=!1;else if(this.expect(12),this.eat(8))break;let X=this.isContextual(130),Y=this.match(134),Q=this.startNode();Q.local=this.parseModuleExportName(),$.push(this.parseExportSpecifier(Q,Y,D,X))}return $}parseExportSpecifier(D,$,J,X){if(this.eatContextual(93))D.exported=this.parseModuleExportName();else if($)D.exported=this.cloneStringLiteral(D.local);else if(!D.exported)D.exported=this.cloneIdentifier(D.local);return this.finishNode(D,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let D=this.parseStringLiteral(this.state.value),$=RWD.exec(D.value);if($)this.raise(M.ModuleExportNameHasLoneSurrogate,D,{surrogateCharCode:$[0].charCodeAt(0)});return D}return this.parseIdentifier(!0)}isJSONModuleImport(D){if(D.assertions!=null)return D.assertions.some(({key:$,value:J})=>{return J.value==="json"&&($.type==="Identifier"?$.name==="type":$.value==="type")});return!1}checkImportReflection(D){let{specifiers:$}=D,J=$.length===1?$[0].type:null;if(D.phase==="source"){if(J!=="ImportDefaultSpecifier")this.raise(M.SourcePhaseImportRequiresDefault,$[0].loc.start)}else if(D.phase==="defer"){if(J!=="ImportNamespaceSpecifier")this.raise(M.DeferImportRequiresNamespace,$[0].loc.start)}else if(D.module){var X;if(J!=="ImportDefaultSpecifier")this.raise(M.ImportReflectionNotBinding,$[0].loc.start);if(((X=D.assertions)==null?void 0:X.length)>0)this.raise(M.ImportReflectionHasAssertion,$[0].loc.start)}}checkJSONModuleImport(D){if(this.isJSONModuleImport(D)&&D.type!=="ExportAllDeclaration"){let{specifiers:$}=D;if($!=null){let J=$.find((X)=>{let Y;if(X.type==="ExportSpecifier")Y=X.local;else if(X.type==="ImportSpecifier")Y=X.imported;if(Y!==void 0)return Y.type==="Identifier"?Y.name!=="default":Y.value!=="default"});if(J!==void 0)this.raise(M.ImportJSONBindingNotDefault,J.loc.start)}}}isPotentialImportPhase(D){if(D)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(D,$,J,X){if($)return;if(J==="module")this.expectPlugin("importReflection",X),D.module=!0;else if(this.hasPlugin("importReflection"))D.module=!1;if(J==="source")this.expectPlugin("sourcePhaseImports",X),D.phase="source";else if(J==="defer")this.expectPlugin("deferredImportEvaluation",X),D.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))D.phase=null}parseMaybeImportPhase(D,$){if(!this.isPotentialImportPhase($))return this.applyImportPhase(D,$,null),null;let J=this.startNode(),X=this.parseIdentifierName(!0),{type:Y}=this.state;if(Q6(Y)?Y!==98||this.lookaheadCharCode()===102:Y!==12)return this.applyImportPhase(D,$,X,J.loc.start),null;else return this.applyImportPhase(D,$,null),this.createIdentifier(J,X)}isPrecedingIdImportPhase(D){let{type:$}=this.state;return gD($)?$!==98||this.lookaheadCharCode()===102:$!==12}parseImport(D){if(this.match(134))return this.parseImportSourceAndAttributes(D);return this.parseImportSpecifiersAndAfter(D,this.parseMaybeImportPhase(D,!1))}parseImportSpecifiersAndAfter(D,$){D.specifiers=[];let X=!this.maybeParseDefaultImportSpecifier(D,$)||this.eat(12),Y=X&&this.maybeParseStarImportSpecifier(D);if(X&&!Y)this.parseNamedImportSpecifiers(D);return this.expectContextual(98),this.parseImportSourceAndAttributes(D)}parseImportSourceAndAttributes(D){var $;return($=D.specifiers)!=null||(D.specifiers=[]),D.source=this.parseImportSource(),this.maybeParseImportAttributes(D),this.checkImportReflection(D),this.checkJSONModuleImport(D),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(D,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(D,$,J){$.local=this.parseIdentifier(),D.specifiers.push(this.finishImportSpecifier($,J))}finishImportSpecifier(D,$,J=8201){return this.checkLVal(D.local,{type:$},J),this.finishNode(D,$)}parseImportAttributes(){this.expect(5);let D=[],$=new Set;do{if(this.match(8))break;let J=this.startNode(),X=this.state.value;if($.has(X))this.raise(M.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:X});if($.add(X),this.match(134))J.key=this.parseStringLiteral(X);else J.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return this.expect(8),D}parseModuleAttributes(){let D=[],$=new Set;do{let J=this.startNode();if(J.key=this.parseIdentifier(!0),J.key.name!=="type")this.raise(M.ModuleAttributeDifferentFromType,J.key);if($.has(J.key.name))this.raise(M.ModuleAttributesWithDuplicateKeys,J.key,{key:J.key.name});if($.add(J.key.name),this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return D}maybeParseImportAttributes(D){let $;var J=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))$=this.parseModuleAttributes(),this.addExtra(D,"deprecatedWithLegacySyntax",!0);else $=this.parseImportAttributes();J=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(M.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(D,"deprecatedAssertSyntax",!0);this.next(),$=this.parseImportAttributes()}else $=[];if(!J&&this.hasPlugin("importAssertions"))D.assertions=$;else D.attributes=$}maybeParseDefaultImportSpecifier(D,$){if($){let J=this.startNodeAtNode($);return J.local=$,D.specifiers.push(this.finishImportSpecifier(J,"ImportDefaultSpecifier")),!0}else if(Q6(this.state.type))return this.parseImportSpecifierLocal(D,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(D){if(this.match(55)){let $=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(D,$,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(D){let $=!0;this.expect(5);while(!this.eat(8)){if($)$=!1;else{if(this.eat(14))throw this.raise(M.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let J=this.startNode(),X=this.match(134),Y=this.isContextual(130);J.imported=this.parseModuleExportName();let Q=this.parseImportSpecifier(J,X,D.importKind==="type"||D.importKind==="typeof",Y,void 0);D.specifiers.push(Q)}}parseImportSpecifier(D,$,J,X,Y){if(this.eatContextual(93))D.local=this.parseIdentifier();else{let{imported:Q}=D;if($)throw this.raise(M.ImportBindingIsString,D,{importName:Q.value});if(this.checkReservedWord(Q.name,D.loc.start,!0,!0),!D.local)D.local=this.cloneIdentifier(Q)}return this.finishImportSpecifier(D,"ImportSpecifier",Y)}isThisParam(D){return D.type==="Identifier"&&D.name==="this"}}class MN extends By{constructor(D,$,J){let X=LFD(D);super(X,$);this.options=X,this.initializeScopes(),this.plugins=J,this.filename=X.sourceFilename,this.startIndex=X.startIndex;let Y=0;if(X.allowAwaitOutsideFunction)Y|=1;if(X.allowReturnOutsideFunction)Y|=2;if(X.allowImportExportEverywhere)Y|=8;if(X.allowSuperOutsideMethod)Y|=16;if(X.allowUndeclaredExports)Y|=64;if(X.allowNewTargetOutsideFunction)Y|=4;if(X.allowYieldOutsideFunction)Y|=32;if(X.ranges)Y|=128;if(X.tokens)Y|=256;if(X.createImportExpressions)Y|=512;if(X.createParenthesizedExpressions)Y|=1024;if(X.errorRecovery)Y|=2048;if(X.attachComment)Y|=4096;if(X.annexB)Y|=8192;this.optionFlags=Y}getScopeHandler(){return YU}parse(){this.enterInitialScopes();let D=this.startNode(),$=this.startNode();this.nextToken(),D.errors=null;let J=this.parseTopLevel(D,$);return J.errors=this.state.errors,J.comments.length=this.state.commentsLen,J}}function AWD(D,$){var J;if(((J=$)==null?void 0:J.sourceType)==="unambiguous"){$=Object.assign({},$);try{$.sourceType="module";let X=Y3($,D),Y=X.parse();if(X.sawUnambiguousESM)return Y;if(X.ambiguousScriptDifferentAst)try{return $.sourceType="script",Y3($,D).parse()}catch(Q){}else Y.program.sourceType="script";return Y}catch(X){try{return $.sourceType="script",Y3($,D).parse()}catch(Y){}throw X}}else return Y3($,D).parse()}function vWD(D,$){let J=Y3($,D);if(J.options.strictMode)J.state.strict=!0;return J.getExpression()}function EWD(D){let $={};for(let J of Object.keys(D))$[J]=l6(D[J]);return $}var TWD=EWD(vFD);function Y3(D,$){let J=MN,X=new Map;if(D!=null&&D.plugins){for(let Y of D.plugins){let Q,U;if(typeof Y==="string")Q=Y;else[Q,U]=Y;if(!X.has(Q))X.set(Q,U||{})}wWD(X),J=PWD(X)}return new J(D,$,X)}var yf=new Map;function PWD(D){let $=[];for(let Y of jWD)if(D.has(Y))$.push(Y);let J=$.join("|"),X=yf.get(J);if(!X){X=MN;for(let Y of $)X=Hy[Y](X);yf.set(J,X)}return X}Oy.parse=AWD;Oy.parseExpression=vWD;Oy.tokTypes=TWD});var wy=S((QU,Vy)=>{(function(D,$){typeof QU==="object"&&typeof Vy<"u"?$(QU):typeof define==="function"&&define.amd?define(["exports"],$):(D=D||self,$(D.estreeWalker={}))})(QU,function(D){class ${constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(U)=>this.replacement=U}}replace(U,F,W,K){if(U)if(W!==null)U[F][W]=K;else U[F]=K}remove(U,F,W){if(U)if(W!==null)U[F].splice(W,1);else delete U[F]}}class J extends ${constructor(U,F){super();this.enter=U,this.leave=F}visit(U,F,W,K){if(U){if(this.enter){let q=this.should_skip,G=this.should_remove,Z=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let H=this.should_skip,z=this.should_remove;if(this.should_skip=q,this.should_remove=G,this.replacement=Z,H)return U;if(z)return null}for(let q in U){let G=U[q];if(typeof G!=="object")continue;else if(Array.isArray(G)){for(let Z=0;Z<G.length;Z+=1)if(G[Z]!==null&&typeof G[Z].type==="string"){if(!this.visit(G[Z],U,q,Z))Z--}}else if(G!==null&&typeof G.type==="string")this.visit(G,U,q,null)}if(this.leave){let q=this.replacement,G=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let Z=this.should_remove;if(this.replacement=q,this.should_remove=G,Z)return null}}return U}}class X extends ${constructor(U,F){super();this.enter=U,this.leave=F}async visit(U,F,W,K){if(U){if(this.enter){let q=this.should_skip,G=this.should_remove,Z=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let H=this.should_skip,z=this.should_remove;if(this.should_skip=q,this.should_remove=G,this.replacement=Z,H)return U;if(z)return null}for(let q in U){let G=U[q];if(typeof G!=="object")continue;else if(Array.isArray(G)){for(let Z=0;Z<G.length;Z+=1)if(G[Z]!==null&&typeof G[Z].type==="string"){if(!await this.visit(G[Z],U,q,Z))Z--}}else if(G!==null&&typeof G.type==="string")await this.visit(G,U,q,null)}if(this.leave){let q=this.replacement,G=this.should_remove;if(this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,U,F,W,K),this.replacement)U=this.replacement,this.replace(F,W,K,U);if(this.should_remove)this.remove(F,W,K);let Z=this.should_remove;if(this.replacement=q,this.should_remove=G,Z)return null}}return U}}function Y(U,{enter:F,leave:W}){return new J(F,W).visit(U,null)}async function Q(U,{enter:F,leave:W}){return await new X(F,W).visit(U,null)}D.asyncWalk=Q,D.walk=Y,Object.defineProperty(D,"__esModule",{value:!0})})});var Ly=S((kWD)=>{var jy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");kWD.encode=function(D){if(0<=D&&D<jy.length)return jy[D];throw TypeError("Must be between 0 and 63: "+D)};kWD.decode=function(D){var $=65,J=90,X=97,Y=122,Q=48,U=57,F=43,W=47,K=26,q=52;if($<=D&&D<=J)return D-$;if(X<=D&&D<=Y)return D-X+K;if(Q<=D&&D<=U)return D-Q+q;if(D==F)return 62;if(D==W)return 63;return-1}});var vN=S((fWD)=>{var Ry=Ly(),AN=5,My=1<<AN,Ay=My-1,vy=My;function gWD(D){return D<0?(-D<<1)+1:(D<<1)+0}function xWD(D){var $=(D&1)===1,J=D>>1;return $?-J:J}fWD.encode=function($){var J="",X,Y=gWD($);do{if(X=Y&Ay,Y>>>=AN,Y>0)X|=vy;J+=Ry.encode(X)}while(Y>0);return J};fWD.decode=function($,J,X){var Y=$.length,Q=0,U=0,F,W;do{if(J>=Y)throw Error("Expected more digits in base 64 VLQ value.");if(W=Ry.decode($.charCodeAt(J++)),W===-1)throw Error("Invalid base64 digit: "+$.charAt(J-1));F=!!(W&vy),W&=Ay,Q=Q+(W<<U),U+=AN}while(F);X.value=xWD(Q),X.rest=J}});var H9=S(($KD)=>{function mWD(D,$,J){if($ in D)return D[$];else if(arguments.length===3)return J;else throw Error('"'+$+'" is a required argument.')}$KD.getArg=mWD;var Ey=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,lWD=/^data:.+\,.+$/;function G3(D){var $=D.match(Ey);if(!$)return null;return{scheme:$[1],auth:$[2],host:$[3],port:$[4],path:$[5]}}$KD.urlParse=G3;function z9(D){var $="";if(D.scheme)$+=D.scheme+":";if($+="//",D.auth)$+=D.auth+"@";if(D.host)$+=D.host;if(D.port)$+=":"+D.port;if(D.path)$+=D.path;return $}$KD.urlGenerate=z9;var dWD=32;function iWD(D){var $=[];return function(J){for(var X=0;X<$.length;X++)if($[X].input===J){var Y=$[0];return $[0]=$[X],$[X]=Y,$[0].result}var Q=D(J);if($.unshift({input:J,result:Q}),$.length>dWD)$.pop();return Q}}var EN=iWD(function($){var J=$,X=G3($);if(X){if(!X.path)return $;J=X.path}var Y=$KD.isAbsolute(J),Q=[],U=0,F=0;while(!0)if(U=F,F=J.indexOf("/",U),F===-1){Q.push(J.slice(U));break}else{Q.push(J.slice(U,F));while(F<J.length&&J[F]==="/")F++}for(var W,K=0,F=Q.length-1;F>=0;F--)if(W=Q[F],W===".")Q.splice(F,1);else if(W==="..")K++;else if(K>0)if(W==="")Q.splice(F+1,K),K=0;else Q.splice(F,2),K--;if(J=Q.join("/"),J==="")J=Y?"/":".";if(X)return X.path=J,z9(X);return J});$KD.normalize=EN;function Ty(D,$){if(D==="")D=".";if($==="")$=".";var J=G3($),X=G3(D);if(X)D=X.path||"/";if(J&&!J.scheme){if(X)J.scheme=X.scheme;return z9(J)}if(J||$.match(lWD))return $;if(X&&!X.host&&!X.path)return X.host=$,z9(X);var Y=$.charAt(0)==="/"?$:EN(D.replace(/\/+$/,"")+"/"+$);if(X)return X.path=Y,z9(X);return Y}$KD.join=Ty;$KD.isAbsolute=function(D){return D.charAt(0)==="/"||Ey.test(D)};function cWD(D,$){if(D==="")D=".";D=D.replace(/\/$/,"");var J=0;while($.indexOf(D+"/")!==0){var X=D.lastIndexOf("/");if(X<0)return $;if(D=D.slice(0,X),D.match(/^([^\/]+:\/)?\/*$/))return $;++J}return Array(J+1).join("../")+$.substr(D.length+1)}$KD.relative=cWD;var Py=function(){var D=Object.create(null);return!("__proto__"in D)}();function by(D){return D}function pWD(D){if(Sy(D))return"$"+D;return D}$KD.toSetString=Py?by:pWD;function nWD(D){if(Sy(D))return D.slice(1);return D}$KD.fromSetString=Py?by:nWD;function Sy(D){if(!D)return!1;var $=D.length;if($<9)return!1;if(D.charCodeAt($-1)!==95||D.charCodeAt($-2)!==95||D.charCodeAt($-3)!==111||D.charCodeAt($-4)!==116||D.charCodeAt($-5)!==111||D.charCodeAt($-6)!==114||D.charCodeAt($-7)!==112||D.charCodeAt($-8)!==95||D.charCodeAt($-9)!==95)return!1;for(var J=$-10;J>=0;J--)if(D.charCodeAt(J)!==36)return!1;return!0}function rWD(D,$,J){var X=p6(D.source,$.source);if(X!==0)return X;if(X=D.originalLine-$.originalLine,X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0||J)return X;if(X=D.generatedColumn-$.generatedColumn,X!==0)return X;if(X=D.generatedLine-$.generatedLine,X!==0)return X;return p6(D.name,$.name)}$KD.compareByOriginalPositions=rWD;function tWD(D,$,J){var X=D.originalLine-$.originalLine;if(X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0||J)return X;if(X=D.generatedColumn-$.generatedColumn,X!==0)return X;if(X=D.generatedLine-$.generatedLine,X!==0)return X;return p6(D.name,$.name)}$KD.compareByOriginalPositionsNoSource=tWD;function oWD(D,$,J){var X=D.generatedLine-$.generatedLine;if(X!==0)return X;if(X=D.generatedColumn-$.generatedColumn,X!==0||J)return X;if(X=p6(D.source,$.source),X!==0)return X;if(X=D.originalLine-$.originalLine,X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0)return X;return p6(D.name,$.name)}$KD.compareByGeneratedPositionsDeflated=oWD;function aWD(D,$,J){var X=D.generatedColumn-$.generatedColumn;if(X!==0||J)return X;if(X=p6(D.source,$.source),X!==0)return X;if(X=D.originalLine-$.originalLine,X!==0)return X;if(X=D.originalColumn-$.originalColumn,X!==0)return X;return p6(D.name,$.name)}$KD.compareByGeneratedPositionsDeflatedNoLine=aWD;function p6(D,$){if(D===$)return 0;if(D===null)return 1;if($===null)return-1;if(D>$)return 1;return-1}function sWD(D,$){var J=D.generatedLine-$.generatedLine;if(J!==0)return J;if(J=D.generatedColumn-$.generatedColumn,J!==0)return J;if(J=p6(D.source,$.source),J!==0)return J;if(J=D.originalLine-$.originalLine,J!==0)return J;if(J=D.originalColumn-$.originalColumn,J!==0)return J;return p6(D.name,$.name)}$KD.compareByGeneratedPositionsInflated=sWD;function eWD(D){return JSON.parse(D.replace(/^\)]}'[^\n]*\n/,""))}$KD.parseSourceMapInput=eWD;function DKD(D,$,J){if($=$||"",D){if(D[D.length-1]!=="/"&&$[0]!=="/")D+="/";$=D+$}if(J){var X=G3(J);if(!X)throw Error("sourceMapURL could not be parsed");if(X.path){var Y=X.path.lastIndexOf("/");if(Y>=0)X.path=X.path.substring(0,Y+1)}$=Ty(z9(X),$)}return EN($)}$KD.computeSourceURL=DKD});var bN=S((NKD)=>{var TN=H9(),PN=Object.prototype.hasOwnProperty,X8=typeof Map<"u";function n6(){this._array=[],this._set=X8?new Map:Object.create(null)}n6.fromArray=function($,J){var X=new n6;for(var Y=0,Q=$.length;Y<Q;Y++)X.add($[Y],J);return X};n6.prototype.size=function(){return X8?this._set.size:Object.getOwnPropertyNames(this._set).length};n6.prototype.add=function($,J){var X=X8?$:TN.toSetString($),Y=X8?this.has($):PN.call(this._set,X),Q=this._array.length;if(!Y||J)this._array.push($);if(!Y)if(X8)this._set.set($,Q);else this._set[X]=Q};n6.prototype.has=function($){if(X8)return this._set.has($);else{var J=TN.toSetString($);return PN.call(this._set,J)}};n6.prototype.indexOf=function($){if(X8){var J=this._set.get($);if(J>=0)return J}else{var X=TN.toSetString($);if(PN.call(this._set,X))return this._set[X]}throw Error('"'+$+'" is not in the set.')};n6.prototype.at=function($){if($>=0&&$<this._array.length)return this._array[$];throw Error("No element indexed by "+$)};n6.prototype.toArray=function(){return this._array.slice()};NKD.ArraySet=n6});var ky=S((jKD)=>{var Cy=H9();function wKD(D,$){var J=D.generatedLine,X=$.generatedLine,Y=D.generatedColumn,Q=$.generatedColumn;return X>J||X==J&&Q>=Y||Cy.compareByGeneratedPositionsInflated(D,$)<=0}function UU(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}UU.prototype.unsortedForEach=function($,J){this._array.forEach($,J)};UU.prototype.add=function($){if(wKD(this._last,$))this._last=$,this._array.push($);else this._sorted=!1,this._array.push($)};UU.prototype.toArray=function(){if(!this._sorted)this._array.sort(Cy.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};jKD.MappingList=UU});var SN=S((MKD)=>{var Z3=vN(),I0=H9(),FU=bN().ArraySet,RKD=ky().MappingList;function c$(D){if(!D)D={};this._file=I0.getArg(D,"file",null),this._sourceRoot=I0.getArg(D,"sourceRoot",null),this._skipValidation=I0.getArg(D,"skipValidation",!1),this._ignoreInvalidMapping=I0.getArg(D,"ignoreInvalidMapping",!1),this._sources=new FU,this._names=new FU,this._mappings=new RKD,this._sourcesContents=null}c$.prototype._version=3;c$.fromSourceMap=function($,J){var X=$.sourceRoot,Y=new c$(Object.assign(J||{},{file:$.file,sourceRoot:X}));return $.eachMapping(function(Q){var U={generated:{line:Q.generatedLine,column:Q.generatedColumn}};if(Q.source!=null){if(U.source=Q.source,X!=null)U.source=I0.relative(X,U.source);if(U.original={line:Q.originalLine,column:Q.originalColumn},Q.name!=null)U.name=Q.name}Y.addMapping(U)}),$.sources.forEach(function(Q){var U=Q;if(X!==null)U=I0.relative(X,Q);if(!Y._sources.has(U))Y._sources.add(U);var F=$.sourceContentFor(Q);if(F!=null)Y.setSourceContent(Q,F)}),Y};c$.prototype.addMapping=function($){var J=I0.getArg($,"generated"),X=I0.getArg($,"original",null),Y=I0.getArg($,"source",null),Q=I0.getArg($,"name",null);if(!this._skipValidation){if(this._validateMapping(J,X,Y,Q)===!1)return}if(Y!=null){if(Y=String(Y),!this._sources.has(Y))this._sources.add(Y)}if(Q!=null){if(Q=String(Q),!this._names.has(Q))this._names.add(Q)}this._mappings.add({generatedLine:J.line,generatedColumn:J.column,originalLine:X!=null&&X.line,originalColumn:X!=null&&X.column,source:Y,name:Q})};c$.prototype.setSourceContent=function($,J){var X=$;if(this._sourceRoot!=null)X=I0.relative(this._sourceRoot,X);if(J!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[I0.toSetString(X)]=J}else if(this._sourcesContents){if(delete this._sourcesContents[I0.toSetString(X)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};c$.prototype.applySourceMap=function($,J,X){var Y=J;if(J==null){if($.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);Y=$.file}var Q=this._sourceRoot;if(Q!=null)Y=I0.relative(Q,Y);var U=new FU,F=new FU;this._mappings.unsortedForEach(function(W){if(W.source===Y&&W.originalLine!=null){var K=$.originalPositionFor({line:W.originalLine,column:W.originalColumn});if(K.source!=null){if(W.source=K.source,X!=null)W.source=I0.join(X,W.source);if(Q!=null)W.source=I0.relative(Q,W.source);if(W.originalLine=K.line,W.originalColumn=K.column,K.name!=null)W.name=K.name}}var q=W.source;if(q!=null&&!U.has(q))U.add(q);var G=W.name;if(G!=null&&!F.has(G))F.add(G)},this),this._sources=U,this._names=F,$.sources.forEach(function(W){var K=$.sourceContentFor(W);if(K!=null){if(X!=null)W=I0.join(X,W);if(Q!=null)W=I0.relative(Q,W);this.setSourceContent(W,K)}},this)};c$.prototype._validateMapping=function($,J,X,Y){if(J&&typeof J.line!=="number"&&typeof J.column!=="number"){var Q="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(Q);return!1}else throw Error(Q)}if($&&"line"in $&&"column"in $&&$.line>0&&$.column>=0&&!J&&!X&&!Y)return;else if($&&"line"in $&&"column"in $&&J&&"line"in J&&"column"in J&&$.line>0&&$.column>=0&&J.line>0&&J.column>=0&&X)return;else{var Q="Invalid mapping: "+JSON.stringify({generated:$,source:X,original:J,name:Y});if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(Q);return!1}else throw Error(Q)}};c$.prototype._serializeMappings=function(){var $=0,J=1,X=0,Y=0,Q=0,U=0,F="",W,K,q,G,Z=this._mappings.toArray();for(var H=0,z=Z.length;H<z;H++){if(K=Z[H],W="",K.generatedLine!==J){$=0;while(K.generatedLine!==J)W+=";",J++}else if(H>0){if(!I0.compareByGeneratedPositionsInflated(K,Z[H-1]))continue;W+=","}if(W+=Z3.encode(K.generatedColumn-$),$=K.generatedColumn,K.source!=null){if(G=this._sources.indexOf(K.source),W+=Z3.encode(G-U),U=G,W+=Z3.encode(K.originalLine-1-Y),Y=K.originalLine-1,W+=Z3.encode(K.originalColumn-X),X=K.originalColumn,K.name!=null)q=this._names.indexOf(K.name),W+=Z3.encode(q-Q),Q=q}F+=W}return F};c$.prototype._generateSourcesContent=function($,J){return $.map(function(X){if(!this._sourcesContents)return null;if(J!=null)X=I0.relative(J,X);var Y=I0.toSetString(X);return Object.prototype.hasOwnProperty.call(this._sourcesContents,Y)?this._sourcesContents[Y]:null},this)};c$.prototype.toJSON=function(){var $={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)$.file=this._file;if(this._sourceRoot!=null)$.sourceRoot=this._sourceRoot;if(this._sourcesContents)$.sourcesContent=this._generateSourcesContent($.sources,$.sourceRoot);return $};c$.prototype.toString=function(){return JSON.stringify(this.toJSON())};MKD.SourceMapGenerator=c$});var uy=S((vKD)=>{vKD.GREATEST_LOWER_BOUND=1;vKD.LEAST_UPPER_BOUND=2;function CN(D,$,J,X,Y,Q){var U=Math.floor(($-D)/2)+D,F=Y(J,X[U],!0);if(F===0)return U;else if(F>0){if($-U>1)return CN(U,$,J,X,Y,Q);if(Q==vKD.LEAST_UPPER_BOUND)return $<X.length?$:-1;else return U}else{if(U-D>1)return CN(D,U,J,X,Y,Q);if(Q==vKD.LEAST_UPPER_BOUND)return U;else return D<0?-1:D}}vKD.search=function($,J,X,Y){if(J.length===0)return-1;var Q=CN(-1,J.length,$,J,X,Y||vKD.GREATEST_LOWER_BOUND);if(Q<0)return-1;while(Q-1>=0){if(X(J[Q],J[Q-1],!0)!==0)break;--Q}return Q}});var xy=S((bKD)=>{function TKD(D){function $(Y,Q,U){var F=Y[Q];Y[Q]=Y[U],Y[U]=F}function J(Y,Q){return Math.round(Y+Math.random()*(Q-Y))}function X(Y,Q,U,F){if(U<F){var W=J(U,F),K=U-1;$(Y,W,F);var q=Y[F];for(var G=U;G<F;G++)if(Q(Y[G],q,!1)<=0)K+=1,$(Y,K,G);$(Y,K+1,G);var Z=K+1;X(Y,Q,U,Z-1),X(Y,Q,Z+1,F)}}return X}function PKD(D){let $=TKD.toString();return Function(`return ${$}`)()(D)}var gy=new WeakMap;bKD.quickSort=function(D,$,J=0){let X=gy.get($);if(X===void 0)X=PKD($),gy.set($,X);X(D,$,J,D.length-1)}});var hy=S((kKD)=>{var QD=H9(),uN=uy(),I9=bN().ArraySet,CKD=vN(),z3=xy().quickSort;function D0(D,$){var J=D;if(typeof D==="string")J=QD.parseSourceMapInput(D);return J.sections!=null?new U6(J,$):new u0(J,$)}D0.fromSourceMap=function(D,$){return u0.fromSourceMap(D,$)};D0.prototype._version=3;D0.prototype.__generatedMappings=null;Object.defineProperty(D0.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});D0.prototype.__originalMappings=null;Object.defineProperty(D0.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});D0.prototype._charIsMappingSeparator=function($,J){var X=$.charAt(J);return X===";"||X===","};D0.prototype._parseMappings=function($,J){throw Error("Subclasses must implement _parseMappings")};D0.GENERATED_ORDER=1;D0.ORIGINAL_ORDER=2;D0.GREATEST_LOWER_BOUND=1;D0.LEAST_UPPER_BOUND=2;D0.prototype.eachMapping=function($,J,X){var Y=J||null,Q=X||D0.GENERATED_ORDER,U;switch(Q){case D0.GENERATED_ORDER:U=this._generatedMappings;break;case D0.ORIGINAL_ORDER:U=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var F=this.sourceRoot,W=$.bind(Y),K=this._names,q=this._sources,G=this._sourceMapURL;for(var Z=0,H=U.length;Z<H;Z++){var z=U[Z],I=z.source===null?null:q.at(z.source);if(I!==null)I=QD.computeSourceURL(F,I,G);W({source:I,generatedLine:z.generatedLine,generatedColumn:z.generatedColumn,originalLine:z.originalLine,originalColumn:z.originalColumn,name:z.name===null?null:K.at(z.name)})}};D0.prototype.allGeneratedPositionsFor=function($){var J=QD.getArg($,"line"),X={source:QD.getArg($,"source"),originalLine:J,originalColumn:QD.getArg($,"column",0)};if(X.source=this._findSourceIndex(X.source),X.source<0)return[];var Y=[],Q=this._findMapping(X,this._originalMappings,"originalLine","originalColumn",QD.compareByOriginalPositions,uN.LEAST_UPPER_BOUND);if(Q>=0){var U=this._originalMappings[Q];if($.column===void 0){var F=U.originalLine;while(U&&U.originalLine===F)Y.push({line:QD.getArg(U,"generatedLine",null),column:QD.getArg(U,"generatedColumn",null),lastColumn:QD.getArg(U,"lastGeneratedColumn",null)}),U=this._originalMappings[++Q]}else{var W=U.originalColumn;while(U&&U.originalLine===J&&U.originalColumn==W)Y.push({line:QD.getArg(U,"generatedLine",null),column:QD.getArg(U,"generatedColumn",null),lastColumn:QD.getArg(U,"lastGeneratedColumn",null)}),U=this._originalMappings[++Q]}}return Y};kKD.SourceMapConsumer=D0;function u0(D,$){var J=D;if(typeof D==="string")J=QD.parseSourceMapInput(D);var X=QD.getArg(J,"version"),Y=QD.getArg(J,"sources"),Q=QD.getArg(J,"names",[]),U=QD.getArg(J,"sourceRoot",null),F=QD.getArg(J,"sourcesContent",null),W=QD.getArg(J,"mappings"),K=QD.getArg(J,"file",null);if(X!=this._version)throw Error("Unsupported version: "+X);if(U)U=QD.normalize(U);Y=Y.map(String).map(QD.normalize).map(function(q){return U&&QD.isAbsolute(U)&&QD.isAbsolute(q)?QD.relative(U,q):q}),this._names=I9.fromArray(Q.map(String),!0),this._sources=I9.fromArray(Y,!0),this._absoluteSources=this._sources.toArray().map(function(q){return QD.computeSourceURL(U,q,$)}),this.sourceRoot=U,this.sourcesContent=F,this._mappings=W,this._sourceMapURL=$,this.file=K}u0.prototype=Object.create(D0.prototype);u0.prototype.consumer=D0;u0.prototype._findSourceIndex=function(D){var $=D;if(this.sourceRoot!=null)$=QD.relative(this.sourceRoot,$);if(this._sources.has($))return this._sources.indexOf($);var J;for(J=0;J<this._absoluteSources.length;++J)if(this._absoluteSources[J]==D)return J;return-1};u0.fromSourceMap=function($,J){var X=Object.create(u0.prototype),Y=X._names=I9.fromArray($._names.toArray(),!0),Q=X._sources=I9.fromArray($._sources.toArray(),!0);X.sourceRoot=$._sourceRoot,X.sourcesContent=$._generateSourcesContent(X._sources.toArray(),X.sourceRoot),X.file=$._file,X._sourceMapURL=J,X._absoluteSources=X._sources.toArray().map(function(H){return QD.computeSourceURL(X.sourceRoot,H,J)});var U=$._mappings.toArray().slice(),F=X.__generatedMappings=[],W=X.__originalMappings=[];for(var K=0,q=U.length;K<q;K++){var G=U[K],Z=new yy;if(Z.generatedLine=G.generatedLine,Z.generatedColumn=G.generatedColumn,G.source){if(Z.source=Q.indexOf(G.source),Z.originalLine=G.originalLine,Z.originalColumn=G.originalColumn,G.name)Z.name=Y.indexOf(G.name);W.push(Z)}F.push(Z)}return z3(X.__originalMappings,QD.compareByOriginalPositions),X};u0.prototype._version=3;Object.defineProperty(u0.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function yy(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var _N=QD.compareByGeneratedPositionsDeflatedNoLine;function fy(D,$){let J=D.length,X=D.length-$;if(X<=1)return;else if(X==2){let Y=D[$],Q=D[$+1];if(_N(Y,Q)>0)D[$]=Q,D[$+1]=Y}else if(X<20)for(let Y=$;Y<J;Y++)for(let Q=Y;Q>$;Q--){let U=D[Q-1],F=D[Q];if(_N(U,F)<=0)break;D[Q-1]=F,D[Q]=U}else z3(D,_N,$)}u0.prototype._parseMappings=function($,J){var X=1,Y=0,Q=0,U=0,F=0,W=0,K=$.length,q=0,G={},Z={},H=[],z=[],I,B,N,V,O;let j=0;while(q<K)if($.charAt(q)===";")X++,q++,Y=0,fy(z,j),j=z.length;else if($.charAt(q)===",")q++;else{I=new yy,I.generatedLine=X;for(V=q;V<K;V++)if(this._charIsMappingSeparator($,V))break;B=$.slice(q,V),N=[];while(q<V)CKD.decode($,q,Z),O=Z.value,q=Z.rest,N.push(O);if(N.length===2)throw Error("Found a source, but no line and column");if(N.length===3)throw Error("Found a source and line, but no column");if(I.generatedColumn=Y+N[0],Y=I.generatedColumn,N.length>1){if(I.source=F+N[1],F+=N[1],I.originalLine=Q+N[2],Q=I.originalLine,I.originalLine+=1,I.originalColumn=U+N[3],U=I.originalColumn,N.length>4)I.name=W+N[4],W+=N[4]}if(z.push(I),typeof I.originalLine==="number"){let A=I.source;while(H.length<=A)H.push(null);if(H[A]===null)H[A]=[];H[A].push(I)}}fy(z,j),this.__generatedMappings=z;for(var v=0;v<H.length;v++)if(H[v]!=null)z3(H[v],QD.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...H)};u0.prototype._findMapping=function($,J,X,Y,Q,U){if($[X]<=0)throw TypeError("Line must be greater than or equal to 1, got "+$[X]);if($[Y]<0)throw TypeError("Column must be greater than or equal to 0, got "+$[Y]);return uN.search($,J,Q,U)};u0.prototype.computeColumnSpans=function(){for(var $=0;$<this._generatedMappings.length;++$){var J=this._generatedMappings[$];if($+1<this._generatedMappings.length){var X=this._generatedMappings[$+1];if(J.generatedLine===X.generatedLine){J.lastGeneratedColumn=X.generatedColumn-1;continue}}J.lastGeneratedColumn=1/0}};u0.prototype.originalPositionFor=function($){var J={generatedLine:QD.getArg($,"line"),generatedColumn:QD.getArg($,"column")},X=this._findMapping(J,this._generatedMappings,"generatedLine","generatedColumn",QD.compareByGeneratedPositionsDeflated,QD.getArg($,"bias",D0.GREATEST_LOWER_BOUND));if(X>=0){var Y=this._generatedMappings[X];if(Y.generatedLine===J.generatedLine){var Q=QD.getArg(Y,"source",null);if(Q!==null)Q=this._sources.at(Q),Q=QD.computeSourceURL(this.sourceRoot,Q,this._sourceMapURL);var U=QD.getArg(Y,"name",null);if(U!==null)U=this._names.at(U);return{source:Q,line:QD.getArg(Y,"originalLine",null),column:QD.getArg(Y,"originalColumn",null),name:U}}}return{source:null,line:null,column:null,name:null}};u0.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function($){return $==null})};u0.prototype.sourceContentFor=function($,J){if(!this.sourcesContent)return null;var X=this._findSourceIndex($);if(X>=0)return this.sourcesContent[X];var Y=$;if(this.sourceRoot!=null)Y=QD.relative(this.sourceRoot,Y);var Q;if(this.sourceRoot!=null&&(Q=QD.urlParse(this.sourceRoot))){var U=Y.replace(/^file:\/\//,"");if(Q.scheme=="file"&&this._sources.has(U))return this.sourcesContent[this._sources.indexOf(U)];if((!Q.path||Q.path=="/")&&this._sources.has("/"+Y))return this.sourcesContent[this._sources.indexOf("/"+Y)]}if(J)return null;else throw Error('"'+Y+'" is not in the SourceMap.')};u0.prototype.generatedPositionFor=function($){var J=QD.getArg($,"source");if(J=this._findSourceIndex(J),J<0)return{line:null,column:null,lastColumn:null};var X={source:J,originalLine:QD.getArg($,"line"),originalColumn:QD.getArg($,"column")},Y=this._findMapping(X,this._originalMappings,"originalLine","originalColumn",QD.compareByOriginalPositions,QD.getArg($,"bias",D0.GREATEST_LOWER_BOUND));if(Y>=0){var Q=this._originalMappings[Y];if(Q.source===X.source)return{line:QD.getArg(Q,"generatedLine",null),column:QD.getArg(Q,"generatedColumn",null),lastColumn:QD.getArg(Q,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};kKD.BasicSourceMapConsumer=u0;function U6(D,$){var J=D;if(typeof D==="string")J=QD.parseSourceMapInput(D);var X=QD.getArg(J,"version"),Y=QD.getArg(J,"sections");if(X!=this._version)throw Error("Unsupported version: "+X);this._sources=new I9,this._names=new I9;var Q={line:-1,column:0};this._sections=Y.map(function(U){if(U.url)throw Error("Support for url field in sections not implemented.");var F=QD.getArg(U,"offset"),W=QD.getArg(F,"line"),K=QD.getArg(F,"column");if(W<Q.line||W===Q.line&&K<Q.column)throw Error("Section offsets must be ordered and non-overlapping.");return Q=F,{generatedOffset:{generatedLine:W+1,generatedColumn:K+1},consumer:new D0(QD.getArg(U,"map"),$)}})}U6.prototype=Object.create(D0.prototype);U6.prototype.constructor=D0;U6.prototype._version=3;Object.defineProperty(U6.prototype,"sources",{get:function(){var D=[];for(var $=0;$<this._sections.length;$++)for(var J=0;J<this._sections[$].consumer.sources.length;J++)D.push(this._sections[$].consumer.sources[J]);return D}});U6.prototype.originalPositionFor=function($){var J={generatedLine:QD.getArg($,"line"),generatedColumn:QD.getArg($,"column")},X=uN.search(J,this._sections,function(Q,U){var F=Q.generatedLine-U.generatedOffset.generatedLine;if(F)return F;return Q.generatedColumn-U.generatedOffset.generatedColumn}),Y=this._sections[X];if(!Y)return{source:null,line:null,column:null,name:null};return Y.consumer.originalPositionFor({line:J.generatedLine-(Y.generatedOffset.generatedLine-1),column:J.generatedColumn-(Y.generatedOffset.generatedLine===J.generatedLine?Y.generatedOffset.generatedColumn-1:0),bias:$.bias})};U6.prototype.hasContentsOfAllSources=function(){return this._sections.every(function($){return $.consumer.hasContentsOfAllSources()})};U6.prototype.sourceContentFor=function($,J){for(var X=0;X<this._sections.length;X++){var Y=this._sections[X],Q=Y.consumer.sourceContentFor($,!0);if(Q||Q==="")return Q}if(J)return null;else throw Error('"'+$+'" is not in the SourceMap.')};U6.prototype.generatedPositionFor=function($){for(var J=0;J<this._sections.length;J++){var X=this._sections[J];if(X.consumer._findSourceIndex(QD.getArg($,"source"))===-1)continue;var Y=X.consumer.generatedPositionFor($);if(Y){var Q={line:Y.line+(X.generatedOffset.generatedLine-1),column:Y.column+(X.generatedOffset.generatedLine===Y.line?X.generatedOffset.generatedColumn-1:0)};return Q}}return{line:null,column:null}};U6.prototype._parseMappings=function($,J){this.__generatedMappings=[],this.__originalMappings=[];for(var X=0;X<this._sections.length;X++){var Y=this._sections[X],Q=Y.consumer._generatedMappings;for(var U=0;U<Q.length;U++){var F=Q[U],W=Y.consumer._sources.at(F.source);if(W!==null)W=QD.computeSourceURL(Y.consumer.sourceRoot,W,this._sourceMapURL);this._sources.add(W),W=this._sources.indexOf(W);var K=null;if(F.name)K=Y.consumer._names.at(F.name),this._names.add(K),K=this._names.indexOf(K);var q={source:W,generatedLine:F.generatedLine+(Y.generatedOffset.generatedLine-1),generatedColumn:F.generatedColumn+(Y.generatedOffset.generatedLine===F.generatedLine?Y.generatedOffset.generatedColumn-1:0),originalLine:F.originalLine,originalColumn:F.originalColumn,name:K};if(this.__generatedMappings.push(q),typeof q.originalLine==="number")this.__originalMappings.push(q)}}z3(this.__generatedMappings,QD.compareByGeneratedPositionsDeflated),z3(this.__originalMappings,QD.compareByOriginalPositions)};kKD.IndexedSourceMapConsumer=U6});var my=S((hKD)=>{var xKD=SN().SourceMapGenerator,WU=H9(),fKD=/(\r?\n)/,yKD=10,B9="$$$isSourceNode$$$";function S$(D,$,J,X,Y){if(this.children=[],this.sourceContents={},this.line=D==null?null:D,this.column=$==null?null:$,this.source=J==null?null:J,this.name=Y==null?null:Y,this[B9]=!0,X!=null)this.add(X)}S$.fromStringWithSourceMap=function($,J,X){var Y=new S$,Q=$.split(fKD),U=0,F=function(){var Z=z(),H=z()||"";return Z+H;function z(){return U<Q.length?Q[U++]:void 0}},W=1,K=0,q=null;if(J.eachMapping(function(Z){if(q!==null)if(W<Z.generatedLine)G(q,F()),W++,K=0;else{var H=Q[U]||"",z=H.substr(0,Z.generatedColumn-K);Q[U]=H.substr(Z.generatedColumn-K),K=Z.generatedColumn,G(q,z),q=Z;return}while(W<Z.generatedLine)Y.add(F()),W++;if(K<Z.generatedColumn){var H=Q[U]||"";Y.add(H.substr(0,Z.generatedColumn)),Q[U]=H.substr(Z.generatedColumn),K=Z.generatedColumn}q=Z},this),U<Q.length){if(q)G(q,F());Y.add(Q.splice(U).join(""))}return J.sources.forEach(function(Z){var H=J.sourceContentFor(Z);if(H!=null){if(X!=null)Z=WU.join(X,Z);Y.setSourceContent(Z,H)}}),Y;function G(Z,H){if(Z===null||Z.source===void 0)Y.add(H);else{var z=X?WU.join(X,Z.source):Z.source;Y.add(new S$(Z.originalLine,Z.originalColumn,z,H,Z.name))}}};S$.prototype.add=function($){if(Array.isArray($))$.forEach(function(J){this.add(J)},this);else if($[B9]||typeof $==="string"){if($)this.children.push($)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};S$.prototype.prepend=function($){if(Array.isArray($))for(var J=$.length-1;J>=0;J--)this.prepend($[J]);else if($[B9]||typeof $==="string")this.children.unshift($);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};S$.prototype.walk=function($){var J;for(var X=0,Y=this.children.length;X<Y;X++)if(J=this.children[X],J[B9])J.walk($);else if(J!=="")$(J,{source:this.source,line:this.line,column:this.column,name:this.name})};S$.prototype.join=function($){var J,X,Y=this.children.length;if(Y>0){J=[];for(X=0;X<Y-1;X++)J.push(this.children[X]),J.push($);J.push(this.children[X]),this.children=J}return this};S$.prototype.replaceRight=function($,J){var X=this.children[this.children.length-1];if(X[B9])X.replaceRight($,J);else if(typeof X==="string")this.children[this.children.length-1]=X.replace($,J);else this.children.push("".replace($,J));return this};S$.prototype.setSourceContent=function($,J){this.sourceContents[WU.toSetString($)]=J};S$.prototype.walkSourceContents=function($){for(var J=0,X=this.children.length;J<X;J++)if(this.children[J][B9])this.children[J].walkSourceContents($);var Y=Object.keys(this.sourceContents);for(var J=0,X=Y.length;J<X;J++)$(WU.fromSetString(Y[J]),this.sourceContents[Y[J]])};S$.prototype.toString=function(){var $="";return this.walk(function(J){$+=J}),$};S$.prototype.toStringWithSourceMap=function($){var J={code:"",line:1,column:0},X=new xKD($),Y=!1,Q=null,U=null,F=null,W=null;return this.walk(function(K,q){if(J.code+=K,q.source!==null&&q.line!==null&&q.column!==null){if(Q!==q.source||U!==q.line||F!==q.column||W!==q.name)X.addMapping({source:q.source,original:{line:q.line,column:q.column},generated:{line:J.line,column:J.column},name:q.name});Q=q.source,U=q.line,F=q.column,W=q.name,Y=!0}else if(Y)X.addMapping({generated:{line:J.line,column:J.column}}),Q=null,Y=!1;for(var G=0,Z=K.length;G<Z;G++)if(K.charCodeAt(G)===yKD){if(J.line++,J.column=0,G+1===Z)Q=null,Y=!1;else if(Y)X.addMapping({source:q.source,original:{line:q.line,column:q.column},generated:{line:J.line,column:J.column},name:q.name})}else J.column++}),this.walkSourceContents(function(K,q){X.setSourceContent(K,q)}),{code:J.code,map:X}};hKD.SourceNode=S$});var ly=S((lKD)=>{lKD.SourceMapGenerator=SN().SourceMapGenerator;lKD.SourceMapConsumer=hy().SourceMapConsumer;lKD.SourceNode=my().SourceNode});var Wm=S((Fm)=>{Object.defineProperty(Fm,"__esModule",{value:!0});var a=cO(),Y8=Mf(),V9=Ny(),pKD=wy(),nKD=ly(),j9=Symbol("Fragment"),w9=Symbol("Teleport"),MU=Symbol("Suspense"),I3=Symbol("KeepAlive"),pN=Symbol("BaseTransition"),d1=Symbol("openBlock"),nN=Symbol("createBlock"),rN=Symbol("createElementBlock"),AU=Symbol("createVNode"),vU=Symbol("createElementVNode"),v9=Symbol("createCommentVNode"),EU=Symbol("createTextVNode"),tN=Symbol("createStaticVNode"),B3=Symbol("resolveComponent"),TU=Symbol("resolveDynamicComponent"),PU=Symbol("resolveDirective"),bU=Symbol("resolveFilter"),SU=Symbol("withDirectives"),CU=Symbol("renderList"),oN=Symbol("renderSlot"),aN=Symbol("createSlots"),kU=Symbol("toDisplayString"),O3=Symbol("mergeProps"),_U=Symbol("normalizeClass"),uU=Symbol("normalizeStyle"),L9=Symbol("normalizeProps"),E9=Symbol("guardReactiveProps"),gU=Symbol("toHandlers"),OU=Symbol("camelize"),Uh=Symbol("capitalize"),NU=Symbol("toHandlerKey"),N3=Symbol("setBlockTracking"),Fh=Symbol("pushScopeId"),Wh=Symbol("popScopeId"),xU=Symbol("withCtx"),V3=Symbol("unref"),w3=Symbol("isRef"),fU=Symbol("withMemo"),sN=Symbol("isMemoSame"),V$={[j9]:"Fragment",[w9]:"Teleport",[MU]:"Suspense",[I3]:"KeepAlive",[pN]:"BaseTransition",[d1]:"openBlock",[nN]:"createBlock",[rN]:"createElementBlock",[AU]:"createVNode",[vU]:"createElementVNode",[v9]:"createCommentVNode",[EU]:"createTextVNode",[tN]:"createStaticVNode",[B3]:"resolveComponent",[TU]:"resolveDynamicComponent",[PU]:"resolveDirective",[bU]:"resolveFilter",[SU]:"withDirectives",[CU]:"renderList",[oN]:"renderSlot",[aN]:"createSlots",[kU]:"toDisplayString",[O3]:"mergeProps",[_U]:"normalizeClass",[uU]:"normalizeStyle",[L9]:"normalizeProps",[E9]:"guardReactiveProps",[gU]:"toHandlers",[OU]:"camelize",[Uh]:"capitalize",[NU]:"toHandlerKey",[N3]:"setBlockTracking",[Fh]:"pushScopeId",[Wh]:"popScopeId",[xU]:"withCtx",[V3]:"unref",[w3]:"isRef",[fU]:"withMemo",[sN]:"isMemoSame"};function rKD(D){Object.getOwnPropertySymbols(D).forEach(($)=>{V$[$]=D[$]})}var tKD={HTML:0,"0":"HTML",SVG:1,"1":"SVG",MATH_ML:2,"2":"MATH_ML"},oKD={ROOT:0,"0":"ROOT",ELEMENT:1,"1":"ELEMENT",TEXT:2,"2":"TEXT",COMMENT:3,"3":"COMMENT",SIMPLE_EXPRESSION:4,"4":"SIMPLE_EXPRESSION",INTERPOLATION:5,"5":"INTERPOLATION",ATTRIBUTE:6,"6":"ATTRIBUTE",DIRECTIVE:7,"7":"DIRECTIVE",COMPOUND_EXPRESSION:8,"8":"COMPOUND_EXPRESSION",IF:9,"9":"IF",IF_BRANCH:10,"10":"IF_BRANCH",FOR:11,"11":"FOR",TEXT_CALL:12,"12":"TEXT_CALL",VNODE_CALL:13,"13":"VNODE_CALL",JS_CALL_EXPRESSION:14,"14":"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,"15":"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,"16":"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,"17":"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,"18":"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,"19":"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,"20":"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,"21":"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,"22":"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,"23":"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,"24":"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,"25":"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,"26":"JS_RETURN_STATEMENT"},aKD={ELEMENT:0,"0":"ELEMENT",COMPONENT:1,"1":"COMPONENT",SLOT:2,"2":"SLOT",TEMPLATE:3,"3":"TEMPLATE"},sKD={NOT_CONSTANT:0,"0":"NOT_CONSTANT",CAN_SKIP_PATCH:1,"1":"CAN_SKIP_PATCH",CAN_CACHE:2,"2":"CAN_CACHE",CAN_STRINGIFY:3,"3":"CAN_STRINGIFY"},V0={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Kh(D,$=""){return{type:0,source:$,children:D,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:V0}}function R9(D,$,J,X,Y,Q,U,F=!1,W=!1,K=!1,q=V0){if(D){if(F)D.helper(d1),D.helper(K8(D.inSSR,K));else D.helper(W8(D.inSSR,K));if(U)D.helper(SU)}return{type:13,tag:$,props:J,children:X,patchFlag:Y,dynamicProps:Q,directives:U,isBlock:F,disableTracking:W,isComponent:K,loc:q}}function m1(D,$=V0){return{type:17,loc:$,elements:D}}function _$(D,$=V0){return{type:15,loc:$,properties:D}}function N0(D,$){return{type:16,loc:V0,key:a.isString(D)?OD(D,!0):D,value:$}}function OD(D,$=!1,J=V0,X=0){return{type:4,loc:J,content:D,isStatic:$,constType:$?3:X}}function eKD(D,$){return{type:5,loc:$,content:a.isString(D)?OD(D,!1,$):D}}function k$(D,$=V0){return{type:8,loc:$,children:D}}function f0(D,$=[],J=V0){return{type:14,loc:J,callee:D,arguments:$}}function F8(D,$=void 0,J=!1,X=!1,Y=V0){return{type:18,params:D,returns:$,newline:J,isSlot:X,loc:Y}}function VU(D,$,J,X=!0){return{type:19,test:D,consequent:$,alternate:J,newline:X,loc:V0}}function qh(D,$,J=!1,X=!1){return{type:20,index:D,value:$,needPauseTracking:J,inVOnce:X,needArraySpread:!1,loc:V0}}function Gh(D){return{type:21,body:D,loc:V0}}function DqD(D){return{type:22,elements:D,loc:V0}}function $qD(D,$,J){return{type:23,test:D,consequent:$,alternate:J,loc:V0}}function JqD(D,$){return{type:24,left:D,right:$,loc:V0}}function XqD(D){return{type:25,expressions:D,loc:V0}}function YqD(D){return{type:26,returns:D,loc:V0}}function W8(D,$){return D||$?AU:vU}function K8(D,$){return D||$?nN:rN}function yU(D,{helper:$,removeHelper:J,inSSR:X}){if(!D.isBlock)D.isBlock=!0,J(W8(X,D.isComponent)),$(d1),$(K8(X,D.isComponent))}var dy=new Uint8Array([123,123]),iy=new Uint8Array([125,125]);function cy(D){return D>=97&&D<=122||D>=65&&D<=90}function C$(D){return D===32||D===10||D===9||D===12||D===13}function f1(D){return D===47||D===62||C$(D)}function wU(D){let $=new Uint8Array(D.length);for(let J=0;J<D.length;J++)$[J]=D.charCodeAt(J);return $}var g0={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Zh{constructor(D,$){this.stack=D,this.cbs=$,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=dy,this.delimiterClose=iy,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0,this.entityDecoder=new Y8.EntityDecoder(Y8.htmlDecodeTree,(J,X)=>this.emitCodePoint(J,X))}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=dy,this.delimiterClose=iy}getPos(D){let $=1,J=D+1,X=this.newlines.length,Y=-1;if(X>100){let Q=-1,U=X;while(Q+1<U){let F=Q+U>>>1;this.newlines[F]<D?Q=F:U=F}Y=Q}else for(let Q=X-1;Q>=0;Q--)if(D>this.newlines[Q]){Y=Q;break}if(Y>=0)$=Y+2,J=D-this.newlines[Y];return{column:J,line:$,offset:D}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(D){if(D===60){if(this.index>this.sectionStart)this.cbs.ontext(this.sectionStart,this.index);this.state=5,this.sectionStart=this.index}else if(D===38)this.startEntity();else if(!this.inVPre&&D===this.delimiterOpen[0])this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(D)}stateInterpolationOpen(D){if(D===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let $=this.index+1-this.delimiterOpen.length;if($>this.sectionStart)this.cbs.ontext(this.sectionStart,$);this.state=3,this.sectionStart=$}else this.delimiterIndex++;else if(this.inRCDATA)this.state=32,this.stateInRCDATA(D);else this.state=1,this.stateText(D)}stateInterpolation(D){if(D===this.delimiterClose[0])this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(D)}stateInterpolationClose(D){if(D===this.delimiterClose[this.delimiterIndex])if(this.delimiterIndex===this.delimiterClose.length-1){if(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA)this.state=32;else this.state=1;this.sectionStart=this.index+1}else this.delimiterIndex++;else this.state=3,this.stateInterpolation(D)}stateSpecialStartSequence(D){let $=this.sequenceIndex===this.currentSequence.length;if(!($?f1(D):(D|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!$){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(D)}stateInRCDATA(D){if(this.sequenceIndex===this.currentSequence.length){if(D===62||C$(D)){let $=this.index-this.currentSequence.length;if(this.sectionStart<$){let J=this.index;this.index=$,this.cbs.ontext(this.sectionStart,$),this.index=J}this.sectionStart=$+2,this.stateInClosingTagName(D),this.inRCDATA=!1;return}this.sequenceIndex=0}if((D|32)===this.currentSequence[this.sequenceIndex])this.sequenceIndex+=1;else if(this.sequenceIndex===0){if(this.currentSequence===g0.TitleEnd||this.currentSequence===g0.TextareaEnd&&!this.inSFCRoot){if(D===38)this.startEntity();else if(!this.inVPre&&D===this.delimiterOpen[0])this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(D)}else if(this.fastForwardTo(60))this.sequenceIndex=1}else this.sequenceIndex=Number(D===60)}stateCDATASequence(D){if(D===g0.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===g0.Cdata.length)this.state=28,this.currentSequence=g0.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1}else this.sequenceIndex=0,this.state=23,this.stateInDeclaration(D)}fastForwardTo(D){while(++this.index<this.buffer.length){let $=this.buffer.charCodeAt(this.index);if($===10)this.newlines.push(this.index);if($===D)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(D){if(D===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===g0.CdataEnd)this.cbs.oncdata(this.sectionStart,this.index-2);else this.cbs.oncomment(this.sectionStart,this.index-2);this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0]))this.sequenceIndex=1}else if(D!==this.currentSequence[this.sequenceIndex-1])this.sequenceIndex=0}startSpecial(D,$){this.enterRCDATA(D,$),this.state=31}enterRCDATA(D,$){this.inRCDATA=!0,this.currentSequence=D,this.sequenceIndex=$}stateBeforeTagName(D){if(D===33)this.state=22,this.sectionStart=this.index+1;else if(D===63)this.state=24,this.sectionStart=this.index+1;else if(cy(D))if(this.sectionStart=this.index,this.mode===0)this.state=6;else if(this.inSFCRoot)this.state=34;else if(!this.inXML)if(D===116)this.state=30;else this.state=D===115?29:6;else this.state=6;else if(D===47)this.state=8;else this.state=1,this.stateText(D)}stateInTagName(D){if(f1(D))this.handleTagName(D)}stateInSFCRootTagName(D){if(f1(D)){let $=this.buffer.slice(this.sectionStart,this.index);if($!=="template")this.enterRCDATA(wU("</"+$),0);this.handleTagName(D)}}handleTagName(D){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(D)}stateBeforeClosingTagName(D){if(C$(D));else if(D===62)this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1;else this.state=cy(D)?9:27,this.sectionStart=this.index}stateInClosingTagName(D){if(D===62||C$(D))this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(D)}stateAfterClosingTagName(D){if(D===62)this.state=1,this.sectionStart=this.index+1}stateBeforeAttrName(D){if(D===62){if(this.cbs.onopentagend(this.index),this.inRCDATA)this.state=32;else this.state=1;this.sectionStart=this.index+1}else if(D===47){if(this.state=7,this.peek()!==62)this.cbs.onerr(22,this.index)}else if(D===60&&this.peek()===47)this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index;else if(!C$(D)){if(D===61)this.cbs.onerr(19,this.index);this.handleAttrStart(D)}}handleAttrStart(D){if(D===118&&this.peek()===45)this.state=13,this.sectionStart=this.index;else if(D===46||D===58||D===64||D===35)this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1;else this.state=12,this.sectionStart=this.index}stateInSelfClosingTag(D){if(D===62)this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1;else if(!C$(D))this.state=11,this.stateBeforeAttrName(D)}stateInAttrName(D){if(D===61||f1(D))this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===34||D===39||D===60)this.cbs.onerr(17,this.index)}stateInDirName(D){if(D===61||f1(D))this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===58)this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1;else if(D===46)this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1}stateInDirArg(D){if(D===61||f1(D))this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===91)this.state=15;else if(D===46)this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1}stateInDynamicDirArg(D){if(D===93)this.state=14;else if(D===61||f1(D))this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(D),this.cbs.onerr(27,this.index)}stateInDirModifier(D){if(D===61||f1(D))this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===46)this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1}handleAttrNameEnd(D){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(D)}stateAfterAttrName(D){if(D===61)this.state=18;else if(D===47||D===62)this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(D);else if(!C$(D))this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(D)}stateBeforeAttrValue(D){if(D===34)this.state=19,this.sectionStart=this.index+1;else if(D===39)this.state=20,this.sectionStart=this.index+1;else if(!C$(D))this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(D)}handleInAttrValue(D,$){if(D===$)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend($===34?3:2,this.index+1),this.state=11;else if(D===38)this.startEntity()}stateInAttrValueDoubleQuotes(D){this.handleInAttrValue(D,34)}stateInAttrValueSingleQuotes(D){this.handleInAttrValue(D,39)}stateInAttrValueNoQuotes(D){if(C$(D)||D===62)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(D);else if(D===34||D===39||D===60||D===61||D===96)this.cbs.onerr(18,this.index);else if(D===38)this.startEntity()}stateBeforeDeclaration(D){if(D===91)this.state=26,this.sequenceIndex=0;else this.state=D===45?25:23}stateInDeclaration(D){if(D===62||this.fastForwardTo(62))this.state=1,this.sectionStart=this.index+1}stateInProcessingInstruction(D){if(D===62||this.fastForwardTo(62))this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1}stateBeforeComment(D){if(D===45)this.state=28,this.currentSequence=g0.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1;else this.state=23}stateInSpecialComment(D){if(D===62||this.fastForwardTo(62))this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1}stateBeforeSpecialS(D){if(D===g0.ScriptEnd[3])this.startSpecial(g0.ScriptEnd,4);else if(D===g0.StyleEnd[3])this.startSpecial(g0.StyleEnd,4);else this.state=6,this.stateInTagName(D)}stateBeforeSpecialT(D){if(D===g0.TitleEnd[3])this.startSpecial(g0.TitleEnd,4);else if(D===g0.TextareaEnd[3])this.startSpecial(g0.TextareaEnd,4);else this.state=6,this.stateInTagName(D)}startEntity(){this.baseState=this.state,this.state=33,this.entityStart=this.index,this.entityDecoder.startEntity(this.baseState===1||this.baseState===32?Y8.DecodingMode.Legacy:Y8.DecodingMode.Attribute)}stateInEntity(){{let D=this.entityDecoder.write(this.buffer,this.index);if(D>=0){if(this.state=this.baseState,D===0)this.index=this.entityStart}else this.index=this.buffer.length-1}}parse(D){this.buffer=D;while(this.index<this.buffer.length){let $=this.buffer.charCodeAt(this.index);if($===10&&this.state!==33)this.newlines.push(this.index);switch(this.state){case 1:{this.stateText($);break}case 2:{this.stateInterpolationOpen($);break}case 3:{this.stateInterpolation($);break}case 4:{this.stateInterpolationClose($);break}case 31:{this.stateSpecialStartSequence($);break}case 32:{this.stateInRCDATA($);break}case 26:{this.stateCDATASequence($);break}case 19:{this.stateInAttrValueDoubleQuotes($);break}case 12:{this.stateInAttrName($);break}case 13:{this.stateInDirName($);break}case 14:{this.stateInDirArg($);break}case 15:{this.stateInDynamicDirArg($);break}case 16:{this.stateInDirModifier($);break}case 28:{this.stateInCommentLike($);break}case 27:{this.stateInSpecialComment($);break}case 11:{this.stateBeforeAttrName($);break}case 6:{this.stateInTagName($);break}case 34:{this.stateInSFCRootTagName($);break}case 9:{this.stateInClosingTagName($);break}case 5:{this.stateBeforeTagName($);break}case 17:{this.stateAfterAttrName($);break}case 20:{this.stateInAttrValueSingleQuotes($);break}case 18:{this.stateBeforeAttrValue($);break}case 8:{this.stateBeforeClosingTagName($);break}case 10:{this.stateAfterClosingTagName($);break}case 29:{this.stateBeforeSpecialS($);break}case 30:{this.stateBeforeSpecialT($);break}case 21:{this.stateInAttrValueNoQuotes($);break}case 7:{this.stateInSelfClosingTag($);break}case 23:{this.stateInDeclaration($);break}case 22:{this.stateBeforeDeclaration($);break}case 25:{this.stateBeforeComment($);break}case 24:{this.stateInProcessingInstruction($);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){if(this.sectionStart!==this.index){if(this.state===1||this.state===32&&this.sequenceIndex===0)this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index;else if(this.state===19||this.state===20||this.state===21)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index}}finish(){if(this.state===33)this.entityDecoder.end(),this.state=this.baseState;this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let D=this.buffer.length;if(this.sectionStart>=D)return;if(this.state===28)if(this.currentSequence===g0.CdataEnd)this.cbs.oncdata(this.sectionStart,D);else this.cbs.oncomment(this.sectionStart,D);else if(this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9);else this.cbs.ontext(this.sectionStart,D)}emitCodePoint(D,$){if(this.baseState!==1&&this.baseState!==32){if(this.sectionStart<this.entityStart)this.cbs.onattribdata(this.sectionStart,this.entityStart);this.sectionStart=this.entityStart+$,this.index=this.sectionStart-1,this.cbs.onattribentity(Y8.fromCodePoint(D),this.entityStart,this.sectionStart)}else{if(this.sectionStart<this.entityStart)this.cbs.ontext(this.sectionStart,this.entityStart);this.sectionStart=this.entityStart+$,this.index=this.sectionStart-1,this.cbs.ontextentity(Y8.fromCodePoint(D),this.entityStart,this.sectionStart)}}}var QqD={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},UqD={["COMPILER_IS_ON_ELEMENT"]:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},["COMPILER_V_BIND_SYNC"]:{message:(D)=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${D}.sync\` should be changed to \`v-model:${D}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},["COMPILER_V_BIND_OBJECT_ORDER"]:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},["COMPILER_V_ON_NATIVE"]:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},["COMPILER_V_IF_V_FOR_PRECEDENCE"]:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},["COMPILER_NATIVE_TEMPLATE"]:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},["COMPILER_INLINE_TEMPLATE"]:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},["COMPILER_FILTERS"]:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function xN(D,{compatConfig:$}){let J=$&&$[D];if(D==="MODE")return J||3;else return J}function l1(D,$){let J=xN("MODE",$),X=xN(D,$);return J===3?X===!0:X!==!1}function M9(D,$,J,...X){let Y=l1(D,$);if(Y)j3(D,$,J,...X);return Y}function j3(D,$,J,...X){if(xN(D,$)==="suppress-warning")return;let{message:Q,link:U}=UqD[D],F=`(deprecation ${D}) ${typeof Q==="function"?Q(...X):Q}${U?`
Details: ${U}`:""}`,W=SyntaxError(F);if(W.code=D,J)W.loc=J;$.onWarn(W)}function eN(D){throw D}function zh(D){console.warn(`[Vue warn] ${D.message}`)}function mD(D,$,J,X){let Y=(J||Hh)[D]+(X||""),Q=SyntaxError(String(Y));return Q.code=D,Q.loc=$,Q}var FqD={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,"0":"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,"1":"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,"2":"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,"3":"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,"4":"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,"5":"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,"6":"EOF_IN_CDATA",EOF_IN_COMMENT:7,"7":"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,"8":"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,"9":"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,"10":"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,"11":"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,"12":"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,"13":"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,"14":"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,"15":"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,"16":"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,"17":"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,"18":"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,"19":"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,"20":"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,"21":"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,"22":"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,"23":"X_INVALID_END_TAG",X_MISSING_END_TAG:24,"24":"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,"25":"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,"26":"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,"27":"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,"28":"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,"29":"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,"30":"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,"31":"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,"32":"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,"33":"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,"34":"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,"35":"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,"36":"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,"37":"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,"38":"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,"39":"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,"40":"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,"41":"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,"42":"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,"43":"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,"44":"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,"45":"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,"46":"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,"47":"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,"48":"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,"49":"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,"50":"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,"51":"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,"52":"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,"53":"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,"54":"__EXTEND_POINT__"},Hh={[0]:"Illegal comment.",[1]:"CDATA section is allowed only in XML context.",[2]:"Duplicate attribute.",[3]:"End tag cannot have attributes.",[4]:"Illegal '/' in tags.",[5]:"Unexpected EOF in tag.",[6]:"Unexpected EOF in CDATA section.",[7]:"Unexpected EOF in comment.",[8]:"Unexpected EOF in script.",[9]:"Unexpected EOF in tag.",[10]:"Incorrectly closed comment.",[11]:"Incorrectly opened comment.",[12]:"Illegal tag name. Use '<' to print '<'.",[13]:"Attribute value was expected.",[14]:"End tag name was expected.",[15]:"Whitespace was expected.",[16]:"Unexpected '<!--' in comment.",[17]:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,[18]:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",[19]:"Attribute name cannot start with '='.",[21]:"'<?' is allowed only in XML context.",[20]:"Unexpected null character.",[22]:"Illegal '/' in tags.",[23]:"Invalid end tag.",[24]:"Element is missing end tag.",[25]:"Interpolation end sign was not found.",[27]:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",[26]:"Legal directive name was expected.",[28]:"v-if/v-else-if is missing expression.",[29]:"v-if/else branches must use unique keys.",[30]:"v-else/v-else-if has no adjacent v-if or v-else-if.",[31]:"v-for is missing expression.",[32]:"v-for has invalid expression.",[33]:"<template v-for> key should be placed on the <template> tag.",[34]:"v-bind is missing expression.",[53]:"v-bind with same-name shorthand only allows static argument.",[35]:"v-on is missing expression.",[36]:"Unexpected custom directive on <slot> outlet.",[37]:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",[38]:"Duplicate slot names found. ",[39]:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",[40]:"v-slot can only be used on components or <template> tags.",[41]:"v-model is missing expression.",[42]:"v-model value must be a valid JavaScript member expression.",[43]:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",[44]:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,[45]:"v-model cannot be used on a const binding because it is not writable.",[46]:"Error parsing JavaScript expression: ",[47]:"<KeepAlive> expects exactly one child component.",[52]:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",[48]:'"prefixIdentifiers" option is not supported in this build of compiler.',[49]:"ES module mode is not supported in this build of compiler.",[50]:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',[51]:'"scopeId" option is only supported in module mode.',[54]:""};function Ih(D,$,J=!1,X=[],Y=Object.create(null)){let Q=D.type==="Program"?D.body[0].type==="ExpressionStatement"&&D.body[0].expression:D;pKD.walk(D,{enter(U,F){if(F&&X.push(F),F&&F.type.startsWith("TS")&&!JV.includes(F.type))return this.skip();if(U.type==="Identifier"){let W=!!Y[U.name],K=Bh(U,F,X);if(J||K&&!W)$(U,F,X,K,W)}else if(U.type==="ObjectProperty"&&(F==null?void 0:F.type)==="ObjectPattern")U.inPattern=!0;else if(Lh(U))if(U.scopeIds)U.scopeIds.forEach((W)=>N9(W,Y));else Nh(U,(W)=>H3(U,W,Y));else if(U.type==="BlockStatement")if(U.scopeIds)U.scopeIds.forEach((W)=>N9(W,Y));else DV(U,(W)=>H3(U,W,Y));else if(U.type==="SwitchStatement")if(U.scopeIds)U.scopeIds.forEach((W)=>N9(W,Y));else jh(U,!1,(W)=>H3(U,W,Y));else if(U.type==="CatchClause"&&U.param)if(U.scopeIds)U.scopeIds.forEach((W)=>N9(W,Y));else for(let W of F6(U.param))H3(U,W,Y);else if(Vh(U))if(U.scopeIds)U.scopeIds.forEach((W)=>N9(W,Y));else wh(U,!1,(W)=>H3(U,W,Y))},leave(U,F){if(F&&X.pop(),U!==Q&&U.scopeIds){for(let W of U.scopeIds)if(Y[W]--,Y[W]===0)delete Y[W]}}})}function Bh(D,$,J){if(!$)return!0;if(D.name==="arguments")return!1;if(WqD(D,$,J[J.length-2]))return!0;switch($.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectProperty":return $.key!==D&&jU($,J);case"ArrayPattern":return jU($,J)}return!1}function jU(D,$){if(D&&(D.type==="ObjectProperty"||D.type==="ArrayPattern")){let J=$.length;while(J--){let X=$[J];if(X.type==="AssignmentExpression")return!0;else if(X.type!=="ObjectProperty"&&!X.type.endsWith("Pattern"))break}}return!1}function Oh(D){let $=D.length;while($--){let J=D[$];if(J.type==="NewExpression")return!0;else if(J.type!=="MemberExpression")break}return!1}function Nh(D,$){for(let J of D.params)for(let X of F6(J))$(X)}function DV(D,$){let J=D.type==="SwitchCase"?D.consequent:D.body;for(let X of J)if(X.type==="VariableDeclaration"){if(X.declare)continue;for(let Y of X.declarations)for(let Q of F6(Y.id))$(Q)}else if(X.type==="FunctionDeclaration"||X.type==="ClassDeclaration"){if(X.declare||!X.id)continue;$(X.id)}else if(Vh(X))wh(X,!0,$);else if(X.type==="SwitchStatement")jh(X,!0,$)}function Vh(D){return D.type==="ForOfStatement"||D.type==="ForInStatement"||D.type==="ForStatement"}function wh(D,$,J){let X=D.type==="ForStatement"?D.init:D.left;if(X&&X.type==="VariableDeclaration"&&(X.kind==="var"?$:!$))for(let Y of X.declarations)for(let Q of F6(Y.id))J(Q)}function jh(D,$,J){for(let X of D.cases){for(let Y of X.consequent)if(Y.type==="VariableDeclaration"&&(Y.kind==="var"?$:!$))for(let Q of Y.declarations)for(let U of F6(Q.id))J(U);DV(X,J)}}function F6(D,$=[]){switch(D.type){case"Identifier":$.push(D);break;case"MemberExpression":let J=D;while(J.type==="MemberExpression")J=J.object;$.push(J);break;case"ObjectPattern":for(let X of D.properties)if(X.type==="RestElement")F6(X.argument,$);else F6(X.value,$);break;case"ArrayPattern":D.elements.forEach((X)=>{if(X)F6(X,$)});break;case"RestElement":F6(D.argument,$);break;case"AssignmentPattern":F6(D.left,$);break}return $}function N9(D,$){if(D in $)$[D]++;else $[D]=1}function H3(D,$,J){let{name:X}=$;if(D.scopeIds&&D.scopeIds.has(X))return;N9(X,J),(D.scopeIds||(D.scopeIds=new Set)).add(X)}var Lh=(D)=>{return/Function(?:Expression|Declaration)$|Method$/.test(D.type)},$V=(D)=>D&&(D.type==="ObjectProperty"||D.type==="ObjectMethod")&&!D.computed,Rh=(D,$)=>$V($)&&$.key===D;function WqD(D,$,J){switch($.type){case"MemberExpression":case"OptionalMemberExpression":if($.property===D)return!!$.computed;return $.object===D;case"JSXMemberExpression":return $.object===D;case"VariableDeclarator":return $.init===D;case"ArrowFunctionExpression":return $.body===D;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if($.key===D)return!!$.computed;return!1;case"ObjectProperty":if($.key===D)return!!$.computed;return!J||J.type!=="ObjectPattern";case"ClassProperty":if($.key===D)return!!$.computed;return!0;case"ClassPrivateProperty":return $.key!==D;case"ClassDeclaration":case"ClassExpression":return $.superClass===D;case"AssignmentExpression":return $.right===D;case"AssignmentPattern":return $.right===D;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(J==null?void 0:J.source)return!1;return $.local===D;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return $.key!==D;case"TSEnumMember":return $.id!==D;case"TSPropertySignature":if($.key===D)return!!$.computed;return!0}return!0}var JV=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function hU(D){if(JV.includes(D.type))return hU(D.expression);else return D}var W6=(D)=>D.type===4&&D.isStatic;function XV(D){switch(D){case"Teleport":case"teleport":return w9;case"Suspense":case"suspense":return MU;case"KeepAlive":case"keep-alive":return I3;case"BaseTransition":case"base-transition":return pN}}var KqD=/^$|^\d|[^\$\w\xA0-\uFFFF]/,o6=(D)=>!KqD.test(D),YV=/[A-Za-z_$\xA0-\uFFFF]/,qqD=/[\.\?\w$\xA0-\uFFFF]/,GqD=/\s+[.[]\s*|\s*[.[]\s+/g,mU=(D)=>D.type===4?D.content:D.loc.source,ZqD=(D)=>{let $=mU(D).trim().replace(GqD,(F)=>F.trim()),J=0,X=[],Y=0,Q=0,U=null;for(let F=0;F<$.length;F++){let W=$.charAt(F);switch(J){case 0:if(W==="[")X.push(J),J=1,Y++;else if(W==="(")X.push(J),J=2,Q++;else if(!(F===0?YV:qqD).test(W))return!1;break;case 1:if(W==="'"||W==='"'||W==="`")X.push(J),J=3,U=W;else if(W==="[")Y++;else if(W==="]"){if(!--Y)J=X.pop()}break;case 2:if(W==="'"||W==='"'||W==="`")X.push(J),J=3,U=W;else if(W==="(")Q++;else if(W===")"){if(F===$.length-1)return!1;if(!--Q)J=X.pop()}break;case 3:if(W===U)J=X.pop(),U=null;break}}return!Y&&!Q},Mh=(D,$)=>{try{let J=D.ast||V9.parseExpression(mU(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});return J=hU(J),J.type==="MemberExpression"||J.type==="OptionalMemberExpression"||J.type==="Identifier"&&J.name!=="undefined"}catch(J){return!1}},QV=Mh,zqD=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,HqD=(D)=>zqD.test(mU(D)),Ah=(D,$)=>{try{let J=D.ast||V9.parseExpression(mU(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});if(J.type==="Program"){if(J=J.body[0],J.type==="ExpressionStatement")J=J.expression}return J=hU(J),J.type==="FunctionExpression"||J.type==="ArrowFunctionExpression"}catch(J){return!1}},vh=Ah;function fN(D,$,J=$.length){return UV({offset:D.offset,line:D.line,column:D.column},$,J)}function UV(D,$,J=$.length){let X=0,Y=-1;for(let Q=0;Q<J;Q++)if($.charCodeAt(Q)===10)X++,Y=Q;return D.offset+=J,D.line+=X,D.column=Y===-1?D.column+J:J-Y,D}function yN(D,$){if(!D)throw Error($||"unexpected compiler condition")}function W$(D,$,J=!1){for(let X=0;X<D.props.length;X++){let Y=D.props[X];if(Y.type===7&&(J||Y.exp)&&(a.isString($)?Y.name===$:$.test(Y.name)))return Y}}function L3(D,$,J=!1,X=!1){for(let Y=0;Y<D.props.length;Y++){let Q=D.props[Y];if(Q.type===6){if(J)continue;if(Q.name===$&&(Q.value||X))return Q}else if(Q.name==="bind"&&(Q.exp||X)&&h1(Q.arg,$))return Q}}function h1(D,$){return!!(D&&W6(D)&&D.content===$)}function IqD(D){return D.props.some(($)=>$.type===7&&$.name==="bind"&&(!$.arg||$.arg.type!==4||!$.arg.isStatic))}function GU(D){return D.type===5||D.type===2}function hN(D){return D.type===7&&D.name==="pre"}function lU(D){return D.type===7&&D.name==="slot"}function A9(D){return D.type===1&&D.tagType===3}function R3(D){return D.type===1&&D.tagType===2}var BqD=new Set([L9,E9]);function FV(D,$=[]){if(D&&!a.isString(D)&&D.type===14){let J=D.callee;if(!a.isString(J)&&BqD.has(J))return FV(D.arguments[0],$.concat(D))}return[D,$]}function M3(D,$,J){if(D.type!==13&&OqD(D,$))return;let X,Y=D.type===13?D.props:D.arguments[2],Q=[],U;if(Y&&!a.isString(Y)&&Y.type===14){let F=FV(Y);Y=F[0],Q=F[1],U=Q[Q.length-1]}if(Y==null||a.isString(Y))X=_$([$]);else if(Y.type===14){let F=Y.arguments[0];if(!a.isString(F)&&F.type===15){if(!mN($,F))F.properties.unshift($)}else if(Y.callee===gU)X=f0(J.helper(O3),[_$([$]),Y]);else Y.arguments.unshift(_$([$]));!X&&(X=Y)}else if(Y.type===15){if(!mN($,Y))Y.properties.unshift($);X=Y}else if(X=f0(J.helper(O3),[_$([$]),Y]),U&&U.callee===E9)U=Q[Q.length-2];if(D.type===13)if(U)U.arguments[0]=X;else D.props=X;else if(U)U.arguments[0]=X;else D.arguments[2]=X}function OqD(D,$){var J,X,Y;if($.key.type!==4||$.key.content!=="key")return!1;let Q=D.arguments[2];if(Q&&!a.isString(Q)){let[U]=FV(Q);if(U&&!a.isString(U)&&U.type===15&&mN($,U))return!0}return(J=D.arguments)[2]||(J[2]="{}"),(X=D.arguments)[3]||(X[3]="undefined"),(Y=D.arguments)[4]||(Y[4]="undefined"),D.arguments[5]=$.value,!0}function mN(D,$){let J=!1;if(D.key.type===4){let X=D.key.content;J=$.properties.some((Y)=>Y.key.type===4&&Y.key.content===X)}return J}function q8(D,$){return`_${$}_${D.replace(/[^\w]/g,(J,X)=>{return J==="-"?"_":D.charCodeAt(X).toString()})}`}function c0(D,$){if(!D||Object.keys($).length===0)return!1;switch(D.type){case 1:for(let J=0;J<D.props.length;J++){let X=D.props[J];if(X.type===7&&(c0(X.arg,$)||c0(X.exp,$)))return!0}return D.children.some((J)=>c0(J,$));case 11:if(c0(D.source,$))return!0;return D.children.some((J)=>c0(J,$));case 9:return D.branches.some((J)=>c0(J,$));case 10:if(c0(D.condition,$))return!0;return D.children.some((J)=>c0(J,$));case 4:return!D.isStatic&&o6(D.content)&&!!$[D.content];case 8:return D.children.some((J)=>a.isObject(J)&&c0(J,$));case 5:case 12:return c0(D.content,$);case 2:case 3:case 20:return!1;default:return!1}}function Eh(D){if(D.type===14&&D.callee===fU)return D.arguments[1].returns;else return D}var Th=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function WV(D){for(let $=0;$<D.length;$++)if(!C$(D.charCodeAt($)))return!1;return!0}function dU(D){return D.type===2&&WV(D.content)||D.type===12&&dU(D.content)}function KV(D){return D.type===3||dU(D)}var Ph={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:a.NO,isPreTag:a.NO,isIgnoreNewlineTag:a.NO,isCustomElement:a.NO,onError:eN,onWarn:zh,comments:!0,prefixIdentifiers:!1},SD=Ph,A3=null,t6="",p0=null,AD=null,p$="",r6=-1,Q8=-1,qV=0,y1=!1,lN=null,W0=[],aD=new Zh(W0,{onerr:F$,ontext(D,$){KU(x0(D,$),D,$)},ontextentity(D,$,J){KU(D,$,J)},oninterpolation(D,$){if(y1)return KU(x0(D,$),D,$);let J=D+aD.delimiterOpen.length,X=$-aD.delimiterClose.length;while(C$(t6.charCodeAt(J)))J++;while(C$(t6.charCodeAt(X-1)))X--;let Y=x0(J,X);if(Y.includes("&"))Y=Y8.decodeHTML(Y);dN({type:5,content:zU(Y,!1,B0(J,X)),loc:B0(D,$)})},onopentagname(D,$){let J=x0(D,$);p0={type:1,tag:J,ns:SD.getNamespace(J,W0[0],SD.ns),tagType:0,props:[],children:[],loc:B0(D-1,$),codegenNode:void 0}},onopentagend(D){ny(D)},onclosetag(D,$){let J=x0(D,$);if(!SD.isVoidTag(J)){let X=!1;for(let Y=0;Y<W0.length;Y++)if(W0[Y].tag.toLowerCase()===J.toLowerCase()){if(X=!0,Y>0)F$(24,W0[0].loc.start.offset);for(let U=0;U<=Y;U++){let F=W0.shift();ZU(F,$,U<Y)}break}if(!X)F$(23,bh(D,60))}},onselfclosingtag(D){let $=p0.tag;if(p0.isSelfClosing=!0,ny(D),W0[0]&&W0[0].tag===$)ZU(W0.shift(),D)},onattribname(D,$){AD={type:6,name:x0(D,$),nameLoc:B0(D,$),value:void 0,loc:B0(D)}},ondirname(D,$){let J=x0(D,$),X=J==="."||J===":"?"bind":J==="@"?"on":J==="#"?"slot":J.slice(2);if(!y1&&X==="")F$(26,D);if(y1||X==="")AD={type:6,name:J,nameLoc:B0(D,$),value:void 0,loc:B0(D)};else if(AD={type:7,name:X,rawName:J,exp:void 0,arg:void 0,modifiers:J==="."?[OD("prop")]:[],loc:B0(D)},X==="pre"){y1=aD.inVPre=!0,lN=p0;let Y=p0.props;for(let Q=0;Q<Y.length;Q++)if(Y[Q].type===7)Y[Q]=EqD(Y[Q])}},ondirarg(D,$){if(D===$)return;let J=x0(D,$);if(y1&&!hN(AD))AD.name+=J,U8(AD.nameLoc,$);else{let X=J[0]!=="[";AD.arg=zU(X?J:J.slice(1,-1),X,B0(D,$),X?3:0)}},ondirmodifier(D,$){let J=x0(D,$);if(y1&&!hN(AD))AD.name+="."+J,U8(AD.nameLoc,$);else if(AD.name==="slot"){let X=AD.arg;if(X)X.content+="."+J,U8(X.loc,$)}else{let X=OD(J,!0,B0(D,$));AD.modifiers.push(X)}},onattribdata(D,$){if(p$+=x0(D,$),r6<0)r6=D;Q8=$},onattribentity(D,$,J){if(p$+=D,r6<0)r6=$;Q8=J},onattribnameend(D){let $=AD.loc.start.offset,J=x0($,D);if(AD.type===7)AD.rawName=J;if(p0.props.some((X)=>(X.type===7?X.rawName:X.name)===J))F$(2,$)},onattribend(D,$){if(p0&&AD){if(U8(AD.loc,$),D!==0)if(AD.type===6){if(AD.name==="class")p$=Ch(p$).trim();if(D===1&&!p$)F$(13,$);if(AD.value={type:2,content:p$,loc:D===1?B0(r6,Q8):B0(r6-1,Q8+1)},aD.inSFCRoot&&p0.tag==="template"&&AD.name==="lang"&&p$&&p$!=="html")aD.enterRCDATA(wU("</template"),0)}else{let J=0;if(AD.name==="for")J=3;else if(AD.name==="slot")J=1;else if(AD.name==="on"&&p$.includes(";"))J=2;if(AD.exp=zU(p$,!1,B0(r6,Q8),0,J),AD.name==="for")AD.forParseResult=VqD(AD.exp);let X=-1;if(AD.name==="bind"&&(X=AD.modifiers.findIndex((Y)=>Y.content==="sync"))>-1&&M9("COMPILER_V_BIND_SYNC",SD,AD.loc,AD.arg.loc.source))AD.name="model",AD.modifiers.splice(X,1)}if(AD.type!==7||AD.name!=="pre")p0.props.push(AD)}p$="",r6=Q8=-1},oncomment(D,$){if(SD.comments)dN({type:3,content:x0(D,$),loc:B0(D-4,$+3)})},onend(){let D=t6.length;if(aD.state!==1)switch(aD.state){case 5:case 8:F$(5,D);break;case 3:case 4:F$(25,aD.sectionStart);break;case 28:if(aD.currentSequence===g0.CdataEnd)F$(6,D);else F$(7,D);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:F$(9,D);break}for(let $=0;$<W0.length;$++)ZU(W0[$],D-1),F$(24,W0[$].loc.start.offset)},oncdata(D,$){if((W0[0]?W0[0].ns:SD.ns)!==0)KU(x0(D,$),D,$);else F$(1,D-9)},onprocessinginstruction(D){if((W0[0]?W0[0].ns:SD.ns)===0)F$(21,D-1)}}),py=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,NqD=/^\(|\)$/g;function VqD(D){let{loc:$,content:J}=D,X=J.match(Th);if(!X)return;let[,Y,Q]=X,U=(G,Z,H=!1)=>{let z=$.start.offset+Z,I=z+G.length;return zU(G,!1,B0(z,I),0,H?1:0)},F={source:U(Q.trim(),J.indexOf(Q,Y.length)),value:void 0,key:void 0,index:void 0,finalized:!1},W=Y.trim().replace(NqD,"").trim(),K=Y.indexOf(W),q=W.match(py);if(q){W=W.replace(py,"").trim();let G=q[1].trim(),Z;if(G)Z=J.indexOf(G,K+W.length),F.key=U(G,Z,!0);if(q[2]){let H=q[2].trim();if(H)F.index=U(H,J.indexOf(H,F.key?Z+G.length:K+W.length),!0)}}if(W)F.value=U(W,K,!0);return F}function x0(D,$){return t6.slice(D,$)}function ny(D){if(aD.inSFCRoot)p0.innerLoc=B0(D+1,D+1);dN(p0);let{tag:$,ns:J}=p0;if(J===0&&SD.isPreTag($))qV++;if(SD.isVoidTag($))ZU(p0,D);else if(W0.unshift(p0),J===1||J===2)aD.inXML=!0;p0=null}function KU(D,$,J){let X=W0[0]||A3,Y=X.children[X.children.length-1];if(Y&&Y.type===2)Y.content+=D,U8(Y.loc,J);else X.children.push({type:2,content:D,loc:B0($,J)})}function ZU(D,$,J=!1){if(J)U8(D.loc,bh($,60));else U8(D.loc,wqD($,62)+1);if(aD.inSFCRoot){if(D.children.length)D.innerLoc.end=a.extend({},D.children[D.children.length-1].loc.end);else D.innerLoc.end=a.extend({},D.innerLoc.start);D.innerLoc.source=x0(D.innerLoc.start.offset,D.innerLoc.end.offset)}let{tag:X,ns:Y,children:Q}=D;if(!y1){if(X==="slot")D.tagType=2;else if(ry(D))D.tagType=3;else if(LqD(D))D.tagType=1}if(!aD.inRCDATA)D.children=Sh(Q);if(Y===0&&SD.isIgnoreNewlineTag(X)){let U=Q[0];if(U&&U.type===2)U.content=U.content.replace(/^\r?\n/,"")}if(Y===0&&SD.isPreTag(X))qV--;if(lN===D)y1=aD.inVPre=!1,lN=null;if(aD.inXML&&(W0[0]?W0[0].ns:SD.ns)===0)aD.inXML=!1;{let U=D.props;if(l1("COMPILER_V_IF_V_FOR_PRECEDENCE",SD)){let W=!1,K=!1;for(let q=0;q<U.length;q++){let G=U[q];if(G.type===7){if(G.name==="if")W=!0;else if(G.name==="for")K=!0}if(W&&K){j3("COMPILER_V_IF_V_FOR_PRECEDENCE",SD,D.loc);break}}}if(!aD.inSFCRoot&&l1("COMPILER_NATIVE_TEMPLATE",SD)&&D.tag==="template"&&!ry(D)){j3("COMPILER_NATIVE_TEMPLATE",SD,D.loc);let W=W0[0]||A3,K=W.children.indexOf(D);W.children.splice(K,1,...D.children)}let F=U.find((W)=>W.type===6&&W.name==="inline-template");if(F&&M9("COMPILER_INLINE_TEMPLATE",SD,F.loc)&&D.children.length)F.value={type:2,content:x0(D.children[0].loc.start.offset,D.children[D.children.length-1].loc.end.offset),loc:F.loc}}}function wqD(D,$){let J=D;while(t6.charCodeAt(J)!==$&&J<t6.length-1)J++;return J}function bh(D,$){let J=D;while(t6.charCodeAt(J)!==$&&J>=0)J--;return J}var jqD=new Set(["if","else","else-if","for","slot"]);function ry({tag:D,props:$}){if(D==="template"){for(let J=0;J<$.length;J++)if($[J].type===7&&jqD.has($[J].name))return!0}return!1}function LqD({tag:D,props:$}){if(SD.isCustomElement(D))return!1;if(D==="component"||RqD(D.charCodeAt(0))||XV(D)||SD.isBuiltInComponent&&SD.isBuiltInComponent(D)||SD.isNativeTag&&!SD.isNativeTag(D))return!0;for(let J=0;J<$.length;J++){let X=$[J];if(X.type===6){if(X.name==="is"&&X.value){if(X.value.content.startsWith("vue:"))return!0;else if(M9("COMPILER_IS_ON_ELEMENT",SD,X.loc))return!0}}else if(X.name==="bind"&&h1(X.arg,"is")&&M9("COMPILER_IS_ON_ELEMENT",SD,X.loc))return!0}return!1}function RqD(D){return D>64&&D<91}var MqD=/\r\n/g;function Sh(D){let $=SD.whitespace!=="preserve",J=!1;for(let X=0;X<D.length;X++){let Y=D[X];if(Y.type===2)if(!qV){if(WV(Y.content)){let Q=D[X-1]&&D[X-1].type,U=D[X+1]&&D[X+1].type;if(!Q||!U||$&&(Q===3&&(U===3||U===1)||Q===1&&(U===3||U===1&&AqD(Y.content))))J=!0,D[X]=null;else Y.content=" "}else if($)Y.content=Ch(Y.content)}else Y.content=Y.content.replace(MqD,`
`)}return J?D.filter(Boolean):D}function AqD(D){for(let $=0;$<D.length;$++){let J=D.charCodeAt($);if(J===10||J===13)return!0}return!1}function Ch(D){let $="",J=!1;for(let X=0;X<D.length;X++)if(C$(D.charCodeAt(X))){if(!J)$+=" ",J=!0}else $+=D[X],J=!1;return $}function dN(D){(W0[0]||A3).children.push(D)}function B0(D,$){return{start:aD.getPos(D),end:$==null?$:aD.getPos($),source:$==null?$:x0(D,$)}}function vqD(D){return B0(D.start.offset,D.end.offset)}function U8(D,$){D.end=aD.getPos($),D.source=x0(D.start.offset,$)}function EqD(D){let $={type:6,name:D.rawName,nameLoc:B0(D.loc.start.offset,D.loc.start.offset+D.rawName.length),value:void 0,loc:D.loc};if(D.exp){let J=D.exp.loc;if(J.end.offset<D.loc.end.offset)J.start.offset--,J.start.column--,J.end.offset++,J.end.column++;$.value={type:2,content:D.exp.content,loc:J}}return $}function zU(D,$=!1,J,X=0,Y=0){let Q=OD(D,$,J,X);if(!$&&SD.prefixIdentifiers&&Y!==3&&D.trim()){if(o6(D))return Q.ast=null,Q;try{let U=SD.expressionPlugins,F={plugins:U?[...U,"typescript"]:["typescript"]};if(Y===2)Q.ast=V9.parse(` ${D} `,F).program;else if(Y===1)Q.ast=V9.parseExpression(`(${D})=>{}`,F);else Q.ast=V9.parseExpression(`(${D})`,F)}catch(U){Q.ast=!1,F$(46,J.start.offset,U.message)}}return Q}function F$(D,$,J){SD.onError(mD(D,B0($,$),void 0,J))}function TqD(){aD.reset(),p0=null,AD=null,p$="",r6=-1,Q8=-1,W0.length=0}function kh(D,$){if(TqD(),t6=D,SD=a.extend({},Ph),$){let Y;for(Y in $)if($[Y]!=null)SD[Y]=$[Y]}if(SD.decodeEntities)console.warn("[@vue/compiler-core] decodeEntities option is passed but will be ignored in non-browser builds.");aD.mode=SD.parseMode==="html"?1:SD.parseMode==="sfc"?2:0,aD.inXML=SD.ns===1||SD.ns===2;let J=$&&$.delimiters;if(J)aD.delimiterOpen=wU(J[0]),aD.delimiterClose=wU(J[1]);let X=A3=Kh([],D);return aD.parse(t6),X.loc=B0(0,D.length),X.children=Sh(X.children),A3=null,X}function PqD(D,$){HU(D,void 0,$,!!_h(D))}function _h(D){let $=D.children.filter((J)=>J.type!==3);return $.length===1&&$[0].type===1&&!R3($[0])?$[0]:null}function HU(D,$,J,X=!1,Y=!1){let{children:Q}=D,U=[];for(let q=0;q<Q.length;q++){let G=Q[q];if(G.type===1&&G.tagType===0){let Z=X?0:u$(G,J);if(Z>0){if(Z>=2){G.codegenNode.patchFlag=-1,U.push(G);continue}}else{let H=G.codegenNode;if(H.type===13){let z=H.patchFlag;if((z===void 0||z===512||z===1)&&gh(G,J)>=2){let I=xh(G);if(I)H.props=J.hoist(I)}if(H.dynamicProps)H.dynamicProps=J.hoist(H.dynamicProps)}}}else if(G.type===12){if((X?0:u$(G,J))>=2){if(G.codegenNode.type===14&&G.codegenNode.arguments.length>0)G.codegenNode.arguments.push(`-1 /* ${a.PatchFlagNames[-1]} */`);U.push(G);continue}}if(G.type===1){let Z=G.tagType===1;if(Z)J.scopes.vSlot++;if(HU(G,D,J,!1,Y),Z)J.scopes.vSlot--}else if(G.type===11)HU(G,D,J,G.children.length===1,!0);else if(G.type===9)for(let Z=0;Z<G.branches.length;Z++)HU(G.branches[Z],D,J,G.branches[Z].children.length===1,Y)}let F=!1;if(U.length===Q.length&&D.type===1){if(D.tagType===0&&D.codegenNode&&D.codegenNode.type===13&&a.isArray(D.codegenNode.children))D.codegenNode.children=W(m1(D.codegenNode.children)),F=!0;else if(D.tagType===1&&D.codegenNode&&D.codegenNode.type===13&&D.codegenNode.children&&!a.isArray(D.codegenNode.children)&&D.codegenNode.children.type===15){let q=K(D.codegenNode,"default");if(q)q.returns=W(m1(q.returns)),F=!0}else if(D.tagType===3&&$&&$.type===1&&$.tagType===1&&$.codegenNode&&$.codegenNode.type===13&&$.codegenNode.children&&!a.isArray($.codegenNode.children)&&$.codegenNode.children.type===15){let q=W$(D,"slot",!0),G=q&&q.arg&&K($.codegenNode,q.arg);if(G)G.returns=W(m1(G.returns)),F=!0}}if(!F)for(let q of U)q.codegenNode=J.cache(q.codegenNode);function W(q){let G=J.cache(q);return G.needArraySpread=!0,G}function K(q,G){if(q.children&&!a.isArray(q.children)&&q.children.type===15){let Z=q.children.properties.find((H)=>H.key===G||H.key.content===G);return Z&&Z.value}}if(U.length&&J.transformHoist)J.transformHoist(Q,J,D)}function u$(D,$){let{constantCache:J}=$;switch(D.type){case 1:if(D.tagType!==0)return 0;let X=J.get(D);if(X!==void 0)return X;let Y=D.codegenNode;if(Y.type!==13)return 0;if(Y.isBlock&&D.tag!=="svg"&&D.tag!=="foreignObject"&&D.tag!=="math")return 0;if(Y.patchFlag===void 0){let U=3,F=gh(D,$);if(F===0)return J.set(D,0),0;if(F<U)U=F;for(let W=0;W<D.children.length;W++){let K=u$(D.children[W],$);if(K===0)return J.set(D,0),0;if(K<U)U=K}if(U>1)for(let W=0;W<D.props.length;W++){let K=D.props[W];if(K.type===7&&K.name==="bind"&&K.exp){let q=u$(K.exp,$);if(q===0)return J.set(D,0),0;if(q<U)U=q}}if(Y.isBlock){for(let W=0;W<D.props.length;W++)if(D.props[W].type===7)return J.set(D,0),0;$.removeHelper(d1),$.removeHelper(K8($.inSSR,Y.isComponent)),Y.isBlock=!1,$.helper(W8($.inSSR,Y.isComponent))}return J.set(D,U),U}else return J.set(D,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return u$(D.content,$);case 4:return D.constType;case 8:let Q=3;for(let U=0;U<D.children.length;U++){let F=D.children[U];if(a.isString(F)||a.isSymbol(F))continue;let W=u$(F,$);if(W===0)return 0;else if(W<Q)Q=W}return Q;case 20:return 2;default:return 0}}var bqD=new Set([_U,uU,L9,E9]);function uh(D,$){if(D.type===14&&!a.isString(D.callee)&&bqD.has(D.callee)){let J=D.arguments[0];if(J.type===4)return u$(J,$);else if(J.type===14)return uh(J,$)}return 0}function gh(D,$){let J=3,X=xh(D);if(X&&X.type===15){let{properties:Y}=X;for(let Q=0;Q<Y.length;Q++){let{key:U,value:F}=Y[Q],W=u$(U,$);if(W===0)return W;if(W<J)J=W;let K;if(F.type===4)K=u$(F,$);else if(F.type===14)K=uh(F,$);else K=0;if(K===0)return K;if(K<J)J=K}}return J}function xh(D){let $=D.codegenNode;if($.type===13)return $.props}function fh(D,{filename:$="",prefixIdentifiers:J=!1,hoistStatic:X=!1,hmr:Y=!1,cacheHandlers:Q=!1,nodeTransforms:U=[],directiveTransforms:F={},transformHoist:W=null,isBuiltInComponent:K=a.NOOP,isCustomElement:q=a.NOOP,expressionPlugins:G=[],scopeId:Z=null,slotted:H=!0,ssr:z=!1,inSSR:I=!1,ssrCssVars:B="",bindingMetadata:N=a.EMPTY_OBJ,inline:V=!1,isTS:O=!1,onError:j=eN,onWarn:v=zh,compatConfig:A}){let k=$.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),u={filename:$,selfName:k&&a.capitalize(a.camelize(k[1])),prefixIdentifiers:J,hoistStatic:X,hmr:Y,cacheHandlers:Q,nodeTransforms:U,directiveTransforms:F,transformHoist:W,isBuiltInComponent:K,isCustomElement:q,expressionPlugins:G,scopeId:Z,slotted:H,ssr:z,inSSR:I,ssrCssVars:B,bindingMetadata:N,inline:V,isTS:O,onError:j,onWarn:v,compatConfig:A,root:D,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:D,childIndex:0,inVOnce:!1,helper(T){let d=u.helpers.get(T)||0;return u.helpers.set(T,d+1),T},removeHelper(T){let d=u.helpers.get(T);if(d){let c=d-1;if(!c)u.helpers.delete(T);else u.helpers.set(T,c)}},helperString(T){return`_${V$[u.helper(T)]}`},replaceNode(T){{if(!u.currentNode)throw Error("Node being replaced is already removed.");if(!u.parent)throw Error("Cannot replace root node.")}u.parent.children[u.childIndex]=u.currentNode=T},removeNode(T){if(!u.parent)throw Error("Cannot remove root node.");let d=u.parent.children,c=T?d.indexOf(T):u.currentNode?u.childIndex:-1;if(c<0)throw Error("node being removed is not a child of current parent");if(!T||T===u.currentNode)u.currentNode=null,u.onNodeRemoved();else if(u.childIndex>c)u.childIndex--,u.onNodeRemoved();u.parent.children.splice(c,1)},onNodeRemoved:a.NOOP,addIdentifiers(T){if(a.isString(T))_(T);else if(T.identifiers)T.identifiers.forEach(_);else if(T.type===4)_(T.content)},removeIdentifiers(T){if(a.isString(T))y(T);else if(T.identifiers)T.identifiers.forEach(y);else if(T.type===4)y(T.content)},hoist(T){if(a.isString(T))T=OD(T);u.hoists.push(T);let d=OD(`_hoisted_${u.hoists.length}`,!1,T.loc,2);return d.hoisted=T,d},cache(T,d=!1,c=!1){let p=qh(u.cached.length,T,d,c);return u.cached.push(p),p}};u.filters=new Set;function _(T){let{identifiers:d}=u;if(d[T]===void 0)d[T]=0;d[T]++}function y(T){u.identifiers[T]--}return u}function yh(D,$){let J=fh(D,$);if(v3(D,J),$.hoistStatic)PqD(D,J);if(!$.ssr)SqD(D,J);D.helpers=new Set([...J.helpers.keys()]),D.components=[...J.components],D.directives=[...J.directives],D.imports=J.imports,D.hoists=J.hoists,D.temps=J.temps,D.cached=J.cached,D.transformed=!0,D.filters=[...J.filters]}function SqD(D,$){let{helper:J}=$,{children:X}=D;if(X.length===1){let Y=_h(D);if(Y&&Y.codegenNode){let Q=Y.codegenNode;if(Q.type===13)yU(Q,$);D.codegenNode=Q}else D.codegenNode=X[0]}else if(X.length>1){let Y=64;if(X.filter((Q)=>Q.type!==3).length===1)Y|=2048;D.codegenNode=R9($,J(j9),void 0,D.children,Y,void 0,void 0,!0,void 0,!1)}}function CqD(D,$){let J=0,X=()=>{J--};for(;J<D.children.length;J++){let Y=D.children[J];if(a.isString(Y))continue;$.grandParent=$.parent,$.parent=D,$.childIndex=J,$.onNodeRemoved=X,v3(Y,$)}}function v3(D,$){$.currentNode=D;let{nodeTransforms:J}=$,X=[];for(let Q=0;Q<J.length;Q++){let U=J[Q](D,$);if(U)if(a.isArray(U))X.push(...U);else X.push(U);if(!$.currentNode)return;else D=$.currentNode}switch(D.type){case 3:if(!$.ssr)$.helper(v9);break;case 5:if(!$.ssr)$.helper(kU);break;case 9:for(let Q=0;Q<D.branches.length;Q++)v3(D.branches[Q],$);break;case 10:case 11:case 1:case 0:CqD(D,$);break}$.currentNode=D;let Y=X.length;while(Y--)X[Y]()}function GV(D,$){let J=a.isString(D)?(X)=>X===D:(X)=>D.test(X);return(X,Y)=>{if(X.type===1){let{props:Q}=X;if(X.tagType===3&&Q.some(lU))return;let U=[];for(let F=0;F<Q.length;F++){let W=Q[F];if(W.type===7&&J(W.name)){Q.splice(F,1),F--;let K=$(X,W,Y);if(K)U.push(K)}}return U}}}var iU="/*@__PURE__*/",IU=(D)=>`${V$[D]}: _${V$[D]}`;function ty(D,{mode:$="function",prefixIdentifiers:J=$==="module",sourceMap:X=!1,filename:Y="template.vue.html",scopeId:Q=null,optimizeImports:U=!1,runtimeGlobalName:F="Vue",runtimeModuleName:W="vue",ssrRuntimeModuleName:K="vue/server-renderer",ssr:q=!1,isTS:G=!1,inSSR:Z=!1}){let H={mode:$,prefixIdentifiers:J,sourceMap:X,filename:Y,scopeId:Q,optimizeImports:U,runtimeGlobalName:F,runtimeModuleName:W,ssrRuntimeModuleName:K,ssr:q,isTS:G,inSSR:Z,source:D.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(B){return`_${V$[B]}`},push(B,N=-2,V){if(H.code+=B,H.map){if(V){let O;if(V.type===4&&!V.isStatic){let j=V.content.replace(/^_ctx\./,"");if(j!==V.content&&o6(j))O=j}if(V.loc.source)I(V.loc.start,O)}if(N===-3)UV(H,B);else if(H.offset+=B.length,N===-2)H.column+=B.length;else{if(N===-1)N=B.length-1;H.line++,H.column=B.length-N}if(V&&V.loc!==V0&&V.loc.source)I(V.loc.end)}},indent(){z(++H.indentLevel)},deindent(B=!1){if(B)--H.indentLevel;else z(--H.indentLevel)},newline(){z(H.indentLevel)}};function z(B){H.push(`
`+" ".repeat(B),0)}function I(B,N=null){let{_names:V,_mappings:O}=H.map;if(N!==null&&!V.has(N))V.add(N);O.add({originalLine:B.line,originalColumn:B.column-1,generatedLine:H.line,generatedColumn:H.column-1,source:Y,name:N})}if(X)H.map=new nKD.SourceMapGenerator,H.map.setSourceContent(Y,H.source),H.map._sources.add(Y);return H}function hh(D,$={}){let J=ty(D,$);if($.onContextCreated)$.onContextCreated(J);let{mode:X,push:Y,prefixIdentifiers:Q,indent:U,deindent:F,newline:W,scopeId:K,ssr:q}=J,G=Array.from(D.helpers),Z=G.length>0,H=!Q&&X!=="module",z=K!=null&&X==="module",I=!!$.inline,B=I?ty(D,$):J;if(X==="module")_qD(D,B,z,I);else kqD(D,B);let N=q?"ssrRender":"render",V=q?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];if($.bindingMetadata&&!$.inline)V.push("$props","$setup","$data","$options");let O=$.isTS?V.map((j)=>`${j}: any`).join(","):V.join(", ");if(I)Y(`(${O}) => {`);else Y(`function ${N}(${O}) {`);if(U(),H){if(Y("with (_ctx) {"),U(),Z)Y(`const { ${G.map(IU).join(", ")} } = _Vue
`,-1),W()}if(D.components.length){if(gN(D.components,"component",J),D.directives.length||D.temps>0)W()}if(D.directives.length){if(gN(D.directives,"directive",J),D.temps>0)W()}if(D.filters&&D.filters.length)W(),gN(D.filters,"filter",J),W();if(D.temps>0){Y("let ");for(let j=0;j<D.temps;j++)Y(`${j>0?", ":""}_temp${j}`)}if(D.components.length||D.directives.length||D.temps)Y(`
`,0),W();if(!q)Y("return ");if(D.codegenNode)X0(D.codegenNode,J);else Y("null");if(H)F(),Y("}");return F(),Y("}"),{ast:D,code:J.code,preamble:I?B.code:"",map:J.map?J.map.toJSON():void 0}}function kqD(D,$){let{ssr:J,prefixIdentifiers:X,push:Y,newline:Q,runtimeModuleName:U,runtimeGlobalName:F,ssrRuntimeModuleName:W}=$,K=J?`require(${JSON.stringify(U)})`:F,q=Array.from(D.helpers);if(q.length>0){if(X)Y(`const { ${q.map(IU).join(", ")} } = ${K}
`,-1);else if(Y(`const _Vue = ${K}
`,-1),D.hoists.length){let G=[AU,vU,v9,EU,tN].filter((Z)=>q.includes(Z)).map(IU).join(", ");Y(`const { ${G} } = _Vue
`,-1)}}if(D.ssrHelpers&&D.ssrHelpers.length)Y(`const { ${D.ssrHelpers.map(IU).join(", ")} } = require("${W}")
`,-1);mh(D.hoists,$),Q(),Y("return ")}function _qD(D,$,J,X){let{push:Y,newline:Q,optimizeImports:U,runtimeModuleName:F,ssrRuntimeModuleName:W}=$;if(D.helpers.size){let K=Array.from(D.helpers);if(U)Y(`import { ${K.map((q)=>V$[q]).join(", ")} } from ${JSON.stringify(F)}
`,-1),Y(`
// Binding optimization for webpack code-split
const ${K.map((q)=>`_${V$[q]} = ${V$[q]}`).join(", ")}
`,-1);else Y(`import { ${K.map((q)=>`${V$[q]} as _${V$[q]}`).join(", ")} } from ${JSON.stringify(F)}
`,-1)}if(D.ssrHelpers&&D.ssrHelpers.length)Y(`import { ${D.ssrHelpers.map((K)=>`${V$[K]} as _${V$[K]}`).join(", ")} } from "${W}"
`,-1);if(D.imports.length)uqD(D.imports,$),Q();if(mh(D.hoists,$),Q(),!X)Y("export ")}function gN(D,$,{helper:J,push:X,newline:Y,isTS:Q}){let U=J($==="filter"?bU:$==="component"?B3:PU);for(let F=0;F<D.length;F++){let W=D[F],K=W.endsWith("__self");if(K)W=W.slice(0,-6);if(X(`const ${q8(W,$)} = ${U}(${JSON.stringify(W)}${K?", true":""})${Q?"!":""}`),F<D.length-1)Y()}}function mh(D,$){if(!D.length)return;$.pure=!0;let{push:J,newline:X}=$;X();for(let Y=0;Y<D.length;Y++){let Q=D[Y];if(Q)J(`const _hoisted_${Y+1} = `),X0(Q,$),X()}$.pure=!1}function uqD(D,$){if(!D.length)return;D.forEach((J)=>{$.push("import "),X0(J.exp,$),$.push(` from '${J.path}'`),$.newline()})}function gqD(D){return a.isString(D)||D.type===4||D.type===2||D.type===5||D.type===8}function cU(D,$){let J=D.length>3||D.some((X)=>a.isArray(X)||!gqD(X));$.push("["),J&&$.indent(),T9(D,$,J),J&&$.deindent(),$.push("]")}function T9(D,$,J=!1,X=!0){let{push:Y,newline:Q}=$;for(let U=0;U<D.length;U++){let F=D[U];if(a.isString(F))Y(F,-3);else if(a.isArray(F))cU(F,$);else X0(F,$);if(U<D.length-1)if(J)X&&Y(","),Q();else X&&Y(", ")}}function X0(D,$){if(a.isString(D)){$.push(D,-3);return}if(a.isSymbol(D)){$.push($.helper(D));return}switch(D.type){case 1:case 9:case 11:yN(D.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),X0(D.codegenNode,$);break;case 2:xqD(D,$);break;case 4:lh(D,$);break;case 5:fqD(D,$);break;case 12:X0(D.codegenNode,$);break;case 8:dh(D,$);break;case 3:hqD(D,$);break;case 13:mqD(D,$);break;case 14:dqD(D,$);break;case 15:iqD(D,$);break;case 17:cqD(D,$);break;case 18:pqD(D,$);break;case 19:nqD(D,$);break;case 20:rqD(D,$);break;case 21:T9(D.body,$,!0,!1);break;case 22:tqD(D,$);break;case 23:ih(D,$);break;case 24:oqD(D,$);break;case 25:aqD(D,$);break;case 26:sqD(D,$);break;case 10:break;default:return yN(!1,`unhandled codegen node type: ${D.type}`),D}}function xqD(D,$){$.push(JSON.stringify(D.content),-3,D)}function lh(D,$){let{content:J,isStatic:X}=D;$.push(X?JSON.stringify(J):J,-3,D)}function fqD(D,$){let{push:J,helper:X,pure:Y}=$;if(Y)J(iU);J(`${X(kU)}(`),X0(D.content,$),J(")")}function dh(D,$){for(let J=0;J<D.children.length;J++){let X=D.children[J];if(a.isString(X))$.push(X,-3);else X0(X,$)}}function yqD(D,$){let{push:J}=$;if(D.type===8)J("["),dh(D,$),J("]");else if(D.isStatic){let X=o6(D.content)?D.content:JSON.stringify(D.content);J(X,-2,D)}else J(`[${D.content}]`,-3,D)}function hqD(D,$){let{push:J,helper:X,pure:Y}=$;if(Y)J(iU);J(`${X(v9)}(${JSON.stringify(D.content)})`,-3,D)}function mqD(D,$){let{push:J,helper:X,pure:Y}=$,{tag:Q,props:U,children:F,patchFlag:W,dynamicProps:K,directives:q,isBlock:G,disableTracking:Z,isComponent:H}=D,z;if(W)if(W<0)z=W+` /* ${a.PatchFlagNames[W]} */`;else{let B=Object.keys(a.PatchFlagNames).map(Number).filter((N)=>N>0&&W&N).map((N)=>a.PatchFlagNames[N]).join(", ");z=W+` /* ${B} */`}if(q)J(X(SU)+"(");if(G)J(`(${X(d1)}(${Z?"true":""}), `);if(Y)J(iU);let I=G?K8($.inSSR,H):W8($.inSSR,H);if(J(X(I)+"(",-2,D),T9(lqD([Q,U,F,z,K]),$),J(")"),G)J(")");if(q)J(", "),X0(q,$),J(")")}function lqD(D){let $=D.length;while($--)if(D[$]!=null)break;return D.slice(0,$+1).map((J)=>J||"null")}function dqD(D,$){let{push:J,helper:X,pure:Y}=$,Q=a.isString(D.callee)?D.callee:X(D.callee);if(Y)J(iU);J(Q+"(",-2,D),T9(D.arguments,$),J(")")}function iqD(D,$){let{push:J,indent:X,deindent:Y,newline:Q}=$,{properties:U}=D;if(!U.length){J("{}",-2,D);return}let F=U.length>1||U.some((W)=>W.value.type!==4);J(F?"{":"{ "),F&&X();for(let W=0;W<U.length;W++){let{key:K,value:q}=U[W];if(yqD(K,$),J(": "),X0(q,$),W<U.length-1)J(","),Q()}F&&Y(),J(F?"}":" }")}function cqD(D,$){cU(D.elements,$)}function pqD(D,$){let{push:J,indent:X,deindent:Y}=$,{params:Q,returns:U,body:F,newline:W,isSlot:K}=D;if(K)J(`_${V$[xU]}(`);if(J("(",-2,D),a.isArray(Q))T9(Q,$);else if(Q)X0(Q,$);if(J(") => "),W||F)J("{"),X();if(U){if(W)J("return ");if(a.isArray(U))cU(U,$);else X0(U,$)}else if(F)X0(F,$);if(W||F)Y(),J("}");if(K){if(D.isNonScopedSlot)J(", undefined, true");J(")")}}function nqD(D,$){let{test:J,consequent:X,alternate:Y,newline:Q}=D,{push:U,indent:F,deindent:W,newline:K}=$;if(J.type===4){let G=!o6(J.content);G&&U("("),lh(J,$),G&&U(")")}else U("("),X0(J,$),U(")");Q&&F(),$.indentLevel++,Q||U(" "),U("? "),X0(X,$),$.indentLevel--,Q&&K(),Q||U(" "),U(": ");let q=Y.type===19;if(!q)$.indentLevel++;if(X0(Y,$),!q)$.indentLevel--;Q&&W(!0)}function rqD(D,$){let{push:J,helper:X,indent:Y,deindent:Q,newline:U}=$,{needPauseTracking:F,needArraySpread:W}=D;if(W)J("[...(");if(J(`_cache[${D.index}] || (`),F){if(Y(),J(`${X(N3)}(-1`),D.inVOnce)J(", true");J("),"),U(),J("(")}if(J(`_cache[${D.index}] = `),X0(D.value,$),F)J(`).cacheIndex = ${D.index},`),U(),J(`${X(N3)}(1),`),U(),J(`_cache[${D.index}]`),Q();if(J(")"),W)J(")]")}function tqD(D,$){let{push:J,indent:X,deindent:Y}=$;J("`");let Q=D.elements.length,U=Q>3;for(let F=0;F<Q;F++){let W=D.elements[F];if(a.isString(W))J(W.replace(/(`|\$|\\)/g,"\\$1"),-3);else{if(J("${"),U)X();if(X0(W,$),U)Y();J("}")}}J("`")}function ih(D,$){let{push:J,indent:X,deindent:Y}=$,{test:Q,consequent:U,alternate:F}=D;if(J("if ("),X0(Q,$),J(") {"),X(),X0(U,$),Y(),J("}"),F)if(J(" else "),F.type===23)ih(F,$);else J("{"),X(),X0(F,$),Y(),J("}")}function oqD(D,$){X0(D.left,$),$.push(" = "),X0(D.right,$)}function aqD(D,$){$.push("("),T9(D.expressions,$),$.push(")")}function sqD({returns:D},$){if($.push("return "),a.isArray(D))cU(D,$);else X0(D,$)}var eqD=a.makeMap("true,false,null,this"),ch=(D,$)=>{if(D.type===5)D.content=K$(D.content,$);else if(D.type===1){let J=W$(D,"memo");for(let X=0;X<D.props.length;X++){let Y=D.props[X];if(Y.type===7&&Y.name!=="for"){let{exp:Q,arg:U}=Y;if(Q&&Q.type===4&&!(Y.name==="on"&&U)&&!(J&&$.vForMemoKeyedNodes.has(D)&&U&&U.type===4&&U.content==="key"))Y.exp=K$(Q,$,Y.name==="slot");if(U&&U.type===4&&!U.isStatic)Y.arg=K$(U,$)}}}};function K$(D,$,J=!1,X=!1,Y=Object.create($.identifiers)){if(!$.prefixIdentifiers||!D.content.trim())return D;let{inline:Q,bindingMetadata:U}=$,F=(I,B,N)=>{let V=a.hasOwn(U,I)&&U[I];if(Q){let O=B&&B.type==="AssignmentExpression"&&B.left===N,j=B&&B.type==="UpdateExpression"&&B.argument===N,v=B&&jU(B,G),A=B&&Oh(G),k=(u)=>{let _=`${$.helperString(V3)}(${u})`;return A?`(${_})`:_};if(oy(V)||V==="setup-reactive-const"||Y[I])return I;else if(V==="setup-ref")return`${I}.value`;else if(V==="setup-maybe-ref")return O||j||v?`${I}.value`:k(I);else if(V==="setup-let")if(O){let{right:u,operator:_}=B,y=W.slice(u.start-1,u.end-1),T=ZV(K$(OD(y,!1),$,!1,!1,Z));return`${$.helperString(w3)}(${I})${$.isTS?` //@ts-ignore
`:""} ? ${I}.value ${_} ${T} : ${I}`}else if(j){N.start=B.start,N.end=B.end;let{prefix:u,operator:_}=B,y=u?_:"",T=u?"":_;return`${$.helperString(w3)}(${I})${$.isTS?` //@ts-ignore
`:""} ? ${y}${I}.value${T} : ${y}${I}${T}`}else if(v)return I;else return k(I);else if(V==="props")return a.genPropsAccessExp(I);else if(V==="props-aliased")return a.genPropsAccessExp(U.__propsAliases[I])}else if(V&&V.startsWith("setup")||V==="literal-const")return`$setup.${I}`;else if(V==="props-aliased")return`$props['${U.__propsAliases[I]}']`;else if(V)return`$${V}.${I}`;return`_ctx.${I}`},W=D.content,K=D.ast;if(K===!1)return D;if(K===null||!K&&o6(W)){let I=$.identifiers[W],B=a.isGloballyAllowed(W),N=eqD(W);if(!J&&!I&&!N&&(!B||U[W])){if(oy(U[W]))D.constType=1;D.content=F(W)}else if(!I)if(N)D.constType=3;else D.constType=2;return D}if(!K){let I=X?` ${W} `:`(${W})${J?"=>{}":""}`;try{K=V9.parseExpression(I,{sourceType:"module",plugins:$.expressionPlugins})}catch(B){return $.onError(mD(46,D.loc,void 0,B.message)),D}}let q=[],G=[],Z=Object.create($.identifiers);Ih(K,(I,B,N,V,O)=>{if(Rh(I,B))return;if(I.name.startsWith("_filter_"))return;let j=V&&DGD(I);if(j&&!O){if($V(B)&&B.shorthand)I.prefix=`${I.name}: `;I.name=F(I.name,B,I),q.push(I)}else{if(!(j&&O)&&(!B||B.type!=="CallExpression"&&B.type!=="NewExpression"&&B.type!=="MemberExpression"))I.isConstant=!0;q.push(I)}},!0,G,Z);let H=[];q.sort((I,B)=>I.start-B.start),q.forEach((I,B)=>{let N=I.start-1,V=I.end-1,O=q[B-1],j=W.slice(O?O.end-1:0,N);if(j.length||I.prefix)H.push(j+(I.prefix||""));let v=W.slice(N,V);if(H.push(OD(I.name,!1,{start:fN(D.loc.start,v,N),end:fN(D.loc.start,v,V),source:v},I.isConstant?3:0)),B===q.length-1&&V<W.length)H.push(W.slice(V))});let z;if(H.length)z=k$(H,D.loc),z.ast=K;else z=D,z.constType=3;return z.identifiers=Object.keys(Z),z}function DGD(D){if(a.isGloballyAllowed(D.name))return!1;if(D.name==="require")return!1;return!0}function ZV(D){if(a.isString(D))return D;else if(D.type===4)return D.content;else return D.children.map(ZV).join("")}function oy(D){return D==="setup-const"||D==="literal-const"}var $GD=GV(/^(?:if|else|else-if)$/,(D,$,J)=>{return ph(D,$,J,(X,Y,Q)=>{let U=J.parent.children,F=U.indexOf(X),W=0;while(F-->=0){let K=U[F];if(K&&K.type===9)W+=K.branches.length}return()=>{if(Q)X.codegenNode=sy(Y,W,J);else{let K=XGD(X.codegenNode);K.alternate=sy(Y,W+X.branches.length-1,J)}}})});function ph(D,$,J,X){if($.name!=="else"&&(!$.exp||!$.exp.content.trim())){let Y=$.exp?$.exp.loc:D.loc;J.onError(mD(28,$.loc)),$.exp=OD("true",!1,Y)}if(J.prefixIdentifiers&&$.exp)$.exp=K$($.exp,J);if($.name==="if"){let Y=ay(D,$),Q={type:9,loc:vqD(D.loc),branches:[Y]};if(J.replaceNode(Q),X)return X(Q,Y,!0)}else{let Y=J.parent.children,Q=[],U=Y.indexOf(D);while(U-->=-1){let F=Y[U];if(F&&KV(F)){if(J.removeNode(F),F.type===3)Q.unshift(F);continue}if(F&&F.type===9){if(($.name==="else-if"||$.name==="else")&&F.branches[F.branches.length-1].condition===void 0)J.onError(mD(30,D.loc));J.removeNode();let W=ay(D,$);if(Q.length&&!(J.parent&&J.parent.type===1&&(J.parent.tag==="transition"||J.parent.tag==="Transition")))W.children=[...Q,...W.children];{let q=W.userKey;if(q)F.branches.forEach(({userKey:G})=>{if(JGD(G,q))J.onError(mD(29,W.userKey.loc))})}F.branches.push(W);let K=X&&X(F,W,!1);if(v3(W,J),K)K();J.currentNode=null}else J.onError(mD(30,D.loc));break}}}function ay(D,$){let J=D.tagType===3;return{type:10,loc:D.loc,condition:$.name==="else"?void 0:$.exp,children:J&&!W$(D,"for")?D.children:[D],userKey:L3(D,"key"),isTemplateIf:J}}function sy(D,$,J){if(D.condition)return VU(D.condition,ey(D,$,J),f0(J.helper(v9),['"v-if"',"true"]));else return ey(D,$,J)}function ey(D,$,J){let{helper:X}=J,Y=N0("key",OD(`${$}`,!1,V0,2)),{children:Q}=D,U=Q[0];if(Q.length!==1||U.type!==1)if(Q.length===1&&U.type===11){let W=U.codegenNode;return M3(W,Y,J),W}else{let W=64;if(!D.isTemplateIf&&Q.filter((K)=>K.type!==3).length===1)W|=2048;return R9(J,X(j9),_$([Y]),Q,W,void 0,void 0,!0,!1,!1,D.loc)}else{let W=U.codegenNode,K=Eh(W);if(K.type===13)yU(K,J);return M3(K,Y,J),W}}function JGD(D,$){if(!D||D.type!==$.type)return!1;if(D.type===6){if(D.value.content!==$.value.content)return!1}else{let J=D.exp,X=$.exp;if(J.type!==X.type)return!1;if(J.type!==4||J.isStatic!==X.isStatic||J.content!==X.content)return!1}return!0}function XGD(D){while(!0)if(D.type===19)if(D.alternate.type===19)D=D.alternate;else return D;else if(D.type===20)D=D.value}var YGD=GV("for",(D,$,J)=>{let{helper:X,removeHelper:Y}=J;return nh(D,$,J,(Q)=>{let U=f0(X(CU),[Q.source]),F=A9(D),W=W$(D,"memo"),K=L3(D,"key",!1,!0),q=K&&K.type===7,G=K&&(K.type===6?K.value?OD(K.value.content,!0):void 0:K.exp),Z=G?N0("key",G):null;{if(F&&W)W.exp=K$(W.exp,J);if((F||W)&&Z&&q){if(G=K.exp=Z.value=K$(Z.value,J),W)J.vForMemoKeyedNodes.add(D)}}let H=Q.source.type===4&&Q.source.constType>0,z=H?64:K?128:256;return Q.codegenNode=R9(J,X(j9),void 0,U,z,void 0,void 0,!0,!H,!1,D.loc),()=>{let I,{children:B}=Q;if(F)D.children.some((O)=>{if(O.type===1){let j=L3(O,"key");if(j)return J.onError(mD(33,j.loc)),!0}});let N=B.length!==1||B[0].type!==1,V=R3(D)?D:F&&D.children.length===1&&R3(D.children[0])?D.children[0]:null;if(V){if(I=V.codegenNode,F&&Z)M3(I,Z,J)}else if(N)I=R9(J,X(j9),Z?_$([Z]):void 0,D.children,64,void 0,void 0,!0,void 0,!1);else{if(I=B[0].codegenNode,F&&Z)M3(I,Z,J);if(I.isBlock!==!H)if(I.isBlock)Y(d1),Y(K8(J.inSSR,I.isComponent));else Y(W8(J.inSSR,I.isComponent));if(I.isBlock=!H,I.isBlock)X(d1),X(K8(J.inSSR,I.isComponent));else X(W8(J.inSSR,I.isComponent))}if(W){let O=F8(LU(Q.parseResult,[OD("_cached")]));O.body=Gh([k$(["const _memo = (",W.exp,")"]),k$(["if (_cached && _cached.el",...G?[" && _cached.key === ",G]:[],` && ${J.helperString(sN)}(_cached, _memo)) return _cached`]),k$(["const _item = ",I]),OD("_item.memo = _memo"),OD("return _item")]),U.arguments.push(O,OD("_cache"),OD(String(J.cached.length))),J.cached.push(null)}else U.arguments.push(F8(LU(Q.parseResult),I,!0))}})});function nh(D,$,J,X){if(!$.exp){J.onError(mD(31,$.loc));return}let Y=$.forParseResult;if(!Y){J.onError(mD(32,$.loc));return}zV(Y,J);let{addIdentifiers:Q,removeIdentifiers:U,scopes:F}=J,{source:W,value:K,key:q,index:G}=Y,Z={type:11,loc:$.loc,source:W,valueAlias:K,keyAlias:q,objectIndexAlias:G,parseResult:Y,children:A9(D)?D.children:[D]};if(J.replaceNode(Z),F.vFor++,J.prefixIdentifiers)K&&Q(K),q&&Q(q),G&&Q(G);let H=X&&X(Z);return()=>{if(F.vFor--,J.prefixIdentifiers)K&&U(K),q&&U(q),G&&U(G);if(H)H()}}function zV(D,$){if(D.finalized)return;if($.prefixIdentifiers){if(D.source=K$(D.source,$),D.key)D.key=K$(D.key,$,!0);if(D.index)D.index=K$(D.index,$,!0);if(D.value)D.value=K$(D.value,$,!0)}D.finalized=!0}function LU({value:D,key:$,index:J},X=[]){return QGD([D,$,J,...X])}function QGD(D){let $=D.length;while($--)if(D[$])break;return D.slice(0,$+1).map((J,X)=>J||OD("_".repeat(X+1),!1))}var Dh=OD("undefined",!1),rh=(D,$)=>{if(D.type===1&&(D.tagType===1||D.tagType===3)){let J=W$(D,"slot");if(J){let X=J.exp;if($.prefixIdentifiers)X&&$.addIdentifiers(X);return $.scopes.vSlot++,()=>{if($.prefixIdentifiers)X&&$.removeIdentifiers(X);$.scopes.vSlot--}}}},th=(D,$)=>{let J;if(A9(D)&&D.props.some(lU)&&(J=W$(D,"for"))){let X=J.forParseResult;if(X){zV(X,$);let{value:Y,key:Q,index:U}=X,{addIdentifiers:F,removeIdentifiers:W}=$;return Y&&F(Y),Q&&F(Q),U&&F(U),()=>{Y&&W(Y),Q&&W(Q),U&&W(U)}}}},UGD=(D,$,J,X)=>F8(D,J,!1,!0,J.length?J[0].loc:X);function oh(D,$,J=UGD){$.helper(xU);let{children:X,loc:Y}=D,Q=[],U=[],F=$.scopes.vSlot>0||$.scopes.vFor>0;if(!$.ssr&&$.prefixIdentifiers)F=D.props.some((B)=>lU(B)&&(c0(B.arg,$.identifiers)||c0(B.exp,$.identifiers)))||X.some((B)=>c0(B,$.identifiers));let W=W$(D,"slot",!0);if(W){let{arg:B,exp:N}=W;if(B&&!W6(B))F=!0;Q.push(N0(B||OD("default",!0),J(N,void 0,X,Y)))}let K=!1,q=!1,G=[],Z=new Set,H=0;for(let B=0;B<X.length;B++){let N=X[B],V;if(!A9(N)||!(V=W$(N,"slot",!0))){if(N.type!==3)G.push(N);continue}if(W){$.onError(mD(37,V.loc));break}K=!0;let{children:O,loc:j}=N,{arg:v=OD("default",!0),exp:A,loc:k}=V,u;if(W6(v))u=v?v.content:"default";else F=!0;let _=W$(N,"for"),y=J(A,_,O,j),T,d;if(T=W$(N,"if"))F=!0,U.push(VU(T.exp,qU(v,y,H++),Dh));else if(d=W$(N,/^else(?:-if)?$/,!0)){let c=B,p;while(c--)if(p=X[c],!KV(p))break;if(p&&A9(p)&&W$(p,/^(?:else-)?if$/)){let o=U[U.length-1];while(o.alternate.type===19)o=o.alternate;o.alternate=d.exp?VU(d.exp,qU(v,y,H++),Dh):qU(v,y,H++)}else $.onError(mD(30,d.loc))}else if(_){F=!0;let c=_.forParseResult;if(c)zV(c,$),U.push(f0($.helper(CU),[c.source,F8(LU(c),qU(v,y),!0)]));else $.onError(mD(32,_.loc))}else{if(u){if(Z.has(u)){$.onError(mD(38,k));continue}if(Z.add(u),u==="default")q=!0}Q.push(N0(v,y))}}if(!W){let B=(N,V)=>{let O=J(N,void 0,V,Y);if($.compatConfig)O.isNonScopedSlot=!0;return N0("default",O)};if(!K)Q.push(B(void 0,X));else if(G.length&&!G.every(dU))if(q)$.onError(mD(39,G[0].loc));else Q.push(B(void 0,G))}let z=F?2:BU(D.children)?3:1,I=_$(Q.concat(N0("_",OD(z+` /* ${a.slotFlagsText[z]} */`,!1))),Y);if(U.length)I=f0($.helper(aN),[I,m1(U)]);return{slots:I,hasDynamicSlots:F}}function qU(D,$,J){let X=[N0("name",D),N0("fn",$)];if(J!=null)X.push(N0("key",OD(String(J),!0)));return _$(X)}function BU(D){for(let $=0;$<D.length;$++){let J=D[$];switch(J.type){case 1:if(J.tagType===2||BU(J.children))return!0;break;case 9:if(BU(J.branches))return!0;break;case 10:case 11:if(BU(J.children))return!0;break}}return!1}var ah=new WeakMap,sh=(D,$)=>{return function(){if(D=$.currentNode,!(D.type===1&&(D.tagType===0||D.tagType===1)))return;let{tag:X,props:Y}=D,Q=D.tagType===1,U=Q?eh(D,$):`"${X}"`,F=a.isObject(U)&&U.callee===TU,W,K,q=0,G,Z,H,z=F||U===w9||U===MU||!Q&&(X==="svg"||X==="foreignObject"||X==="math");if(Y.length>0){let I=HV(D,$,void 0,Q,F);W=I.props,q=I.patchFlag,Z=I.dynamicPropNames;let B=I.directives;if(H=B&&B.length?m1(B.map((N)=>Dm(N,$))):void 0,I.shouldUseBlock)z=!0}if(D.children.length>0){if(U===I3){if(z=!0,q|=1024,D.children.length>1)$.onError(mD(47,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}))}if(Q&&U!==w9&&U!==I3){let{slots:B,hasDynamicSlots:N}=oh(D,$);if(K=B,N)q|=1024}else if(D.children.length===1&&U!==w9){let B=D.children[0],N=B.type,V=N===5||N===8;if(V&&u$(B,$)===0)q|=1;if(V||N===2)K=B;else K=D.children}else K=D.children}if(Z&&Z.length)G=WGD(Z);D.codegenNode=R9($,U,W,K,q===0?void 0:q,G,H,!!z,!1,Q,D.loc)}};function eh(D,$,J=!1){let{tag:X}=D,Y=cN(X),Q=L3(D,"is",!1,!0);if(Q){if(Y||l1("COMPILER_IS_ON_ELEMENT",$)){let F;if(Q.type===6)F=Q.value&&OD(Q.value.content,!0);else if(F=Q.exp,!F)F=OD("is",!1,Q.arg.loc),F=Q.exp=K$(F,$);if(F)return f0($.helper(TU),[F])}else if(Q.type===6&&Q.value.content.startsWith("vue:"))X=Q.value.content.slice(4)}let U=XV(X)||$.isBuiltInComponent(X);if(U){if(!J)$.helper(U);return U}{let F=iN(X,$);if(F)return F;let W=X.indexOf(".");if(W>0){let K=iN(X.slice(0,W),$);if(K)return K+X.slice(W)}}if($.selfName&&a.capitalize(a.camelize(X))===$.selfName)return $.helper(B3),$.components.add(X+"__self"),q8(X,"component");return $.helper(B3),$.components.add(X),q8(X,"component")}function iN(D,$){let J=$.bindingMetadata;if(!J||J.__isScriptSetup===!1)return;let X=a.camelize(D),Y=a.capitalize(X),Q=(K)=>{if(J[D]===K)return D;if(J[X]===K)return X;if(J[Y]===K)return Y},U=Q("setup-const")||Q("setup-reactive-const")||Q("literal-const");if(U)return $.inline?U:`$setup[${JSON.stringify(U)}]`;let F=Q("setup-let")||Q("setup-ref")||Q("setup-maybe-ref");if(F)return $.inline?`${$.helperString(V3)}(${F})`:`$setup[${JSON.stringify(F)}]`;let W=Q("props");if(W)return`${$.helperString(V3)}(${$.inline?"__props":"$props"}[${JSON.stringify(W)}])`}function HV(D,$,J=D.props,X,Y,Q=!1){let{tag:U,loc:F,children:W}=D,K=[],q=[],G=[],Z=W.length>0,H=!1,z=0,I=!1,B=!1,N=!1,V=!1,O=!1,j=!1,v=[],A=(y)=>{if(K.length)q.push(_$($h(K),F)),K=[];if(y)q.push(y)},k=()=>{if($.scopes.vFor>0)K.push(N0(OD("ref_for",!0),OD("true")))},u=({key:y,value:T})=>{if(W6(y)){let d=y.content,c=a.isOn(d);if(c&&(!X||Y)&&d.toLowerCase()!=="onclick"&&d!=="onUpdate:modelValue"&&!a.isReservedProp(d))V=!0;if(c&&a.isReservedProp(d))j=!0;if(c&&T.type===14)T=T.arguments[0];if(T.type===20||(T.type===4||T.type===8)&&u$(T,$)>0)return;if(d==="ref")I=!0;else if(d==="class")B=!0;else if(d==="style")N=!0;else if(d!=="key"&&!v.includes(d))v.push(d);if(X&&(d==="class"||d==="style")&&!v.includes(d))v.push(d)}else O=!0};for(let y=0;y<J.length;y++){let T=J[y];if(T.type===6){let{loc:d,name:c,nameLoc:p,value:o}=T,R=!0;if(c==="ref"){if(I=!0,k(),o&&$.inline){let w=$.bindingMetadata[o.content];if(w==="setup-let"||w==="setup-ref"||w==="setup-maybe-ref")R=!1,K.push(N0(OD("ref_key",!0),OD(o.content,!0,o.loc)))}}if(c==="is"&&(cN(U)||o&&o.content.startsWith("vue:")||l1("COMPILER_IS_ON_ELEMENT",$)))continue;K.push(N0(OD(c,!0,p),OD(o?o.content:"",R,o?o.loc:d)))}else{let{name:d,arg:c,exp:p,loc:o,modifiers:R}=T,w=d==="bind",L=d==="on";if(d==="slot"){if(!X)$.onError(mD(40,o));continue}if(d==="once"||d==="memo")continue;if(d==="is"||w&&h1(c,"is")&&(cN(U)||l1("COMPILER_IS_ON_ELEMENT",$)))continue;if(L&&Q)continue;if(w&&h1(c,"key")||L&&Z&&h1(c,"vue:before-update"))H=!0;if(w&&h1(c,"ref"))k();if(!c&&(w||L)){if(O=!0,p)if(w){{if(A(),q.some((x)=>{if(x.type===15)return x.properties.some(({key:s})=>{if(s.type!==4||!s.isStatic)return!0;return s.content!=="class"&&s.content!=="style"&&!a.isOn(s.content)});else return!0}))M9("COMPILER_V_BIND_OBJECT_ORDER",$,o);if(l1("COMPILER_V_BIND_OBJECT_ORDER",$)){q.unshift(p);continue}}k(),A(),q.push(p)}else A({type:14,loc:o,callee:$.helper(gU),arguments:X?[p]:[p,"true"]});else $.onError(mD(w?34:35,o));continue}if(w&&R.some((f)=>f.content==="prop"))z|=32;let P=$.directiveTransforms[d];if(P){let{props:f,needRuntime:x}=P(T,D,$);if(!Q&&f.forEach(u),L&&c&&!W6(c))A(_$(f,F));else K.push(...f);if(x){if(G.push(T),a.isSymbol(x))ah.set(T,x)}}else if(!a.isBuiltInDirective(d)){if(G.push(T),Z)H=!0}}}let _=void 0;if(q.length)if(A(),q.length>1)_=f0($.helper(O3),q,F);else _=q[0];else if(K.length)_=_$($h(K),F);if(O)z|=16;else{if(B&&!X)z|=2;if(N&&!X)z|=4;if(v.length)z|=8;if(V)z|=32}if(!H&&(z===0||z===32)&&(I||j||G.length>0))z|=512;if(!$.inSSR&&_)switch(_.type){case 15:let y=-1,T=-1,d=!1;for(let o=0;o<_.properties.length;o++){let R=_.properties[o].key;if(W6(R)){if(R.content==="class")y=o;else if(R.content==="style")T=o}else if(!R.isHandlerKey)d=!0}let c=_.properties[y],p=_.properties[T];if(!d){if(c&&!W6(c.value))c.value=f0($.helper(_U),[c.value]);if(p&&(N||p.value.type===4&&p.value.content.trim()[0]==="["||p.value.type===17))p.value=f0($.helper(uU),[p.value])}else _=f0($.helper(L9),[_]);break;case 14:break;default:_=f0($.helper(L9),[f0($.helper(E9),[_])]);break}return{props:_,directives:G,patchFlag:z,dynamicPropNames:v,shouldUseBlock:H}}function $h(D){let $=new Map,J=[];for(let X=0;X<D.length;X++){let Y=D[X];if(Y.key.type===8||!Y.key.isStatic){J.push(Y);continue}let Q=Y.key.content,U=$.get(Q);if(U){if(Q==="style"||Q==="class"||a.isOn(Q))FGD(U,Y)}else $.set(Q,Y),J.push(Y)}return J}function FGD(D,$){if(D.value.type===17)D.value.elements.push($.value);else D.value=m1([D.value,$.value],D.loc)}function Dm(D,$){let J=[],X=ah.get(D);if(X)J.push($.helperString(X));else{let Q=iN("v-"+D.name,$);if(Q)J.push(Q);else $.helper(PU),$.directives.add(D.name),J.push(q8(D.name,"directive"))}let{loc:Y}=D;if(D.exp)J.push(D.exp);if(D.arg){if(!D.exp)J.push("void 0");J.push(D.arg)}if(Object.keys(D.modifiers).length){if(!D.arg){if(!D.exp)J.push("void 0");J.push("void 0")}let Q=OD("true",!1,Y);J.push(_$(D.modifiers.map((U)=>N0(U,Q)),Y))}return m1(J,D.loc)}function WGD(D){let $="[";for(let J=0,X=D.length;J<X;J++)if($+=JSON.stringify(D[J]),J<X-1)$+=", ";return $+"]"}function cN(D){return D==="component"||D==="Component"}var KGD=(D,$)=>{if(R3(D)){let{children:J,loc:X}=D,{slotName:Y,slotProps:Q}=$m(D,$),U=[$.prefixIdentifiers?"_ctx.$slots":"$slots",Y,"{}","undefined","true"],F=2;if(Q)U[2]=Q,F=3;if(J.length)U[3]=F8([],J,!1,!1,X),F=4;if($.scopeId&&!$.slotted)F=5;U.splice(F),D.codegenNode=f0($.helper(oN),U,X)}};function $m(D,$){let J='"default"',X=void 0,Y=[];for(let Q=0;Q<D.props.length;Q++){let U=D.props[Q];if(U.type===6){if(U.value)if(U.name==="name")J=JSON.stringify(U.value.content);else U.name=a.camelize(U.name),Y.push(U)}else if(U.name==="bind"&&h1(U.arg,"name")){if(U.exp)J=U.exp;else if(U.arg&&U.arg.type===4){let F=a.camelize(U.arg.content);J=U.exp=OD(F,!1,U.arg.loc),J=U.exp=K$(U.exp,$)}}else{if(U.name==="bind"&&U.arg&&W6(U.arg))U.arg.content=a.camelize(U.arg.content);Y.push(U)}}if(Y.length>0){let{props:Q,directives:U}=HV(D,$,Y,!1,!1);if(X=Q,U.length)$.onError(mD(36,U[0].loc))}return{slotName:J,slotProps:X}}var Jm=(D,$,J,X)=>{let{loc:Y,modifiers:Q,arg:U}=D;if(!D.exp&&!Q.length)J.onError(mD(35,Y));let F;if(U.type===4)if(U.isStatic){let G=U.content;if(G.startsWith("vnode"))J.onError(mD(52,U.loc));if(G.startsWith("vue:"))G=`vnode-${G.slice(4)}`;let Z=$.tagType!==0||G.startsWith("vnode")||!/[A-Z]/.test(G)?a.toHandlerKey(a.camelize(G)):`on:${G}`;F=OD(Z,!0,U.loc)}else F=k$([`${J.helperString(NU)}(`,U,")"]);else F=U,F.children.unshift(`${J.helperString(NU)}(`),F.children.push(")");let W=D.exp;if(W&&!W.content.trim())W=void 0;let K=J.cacheHandlers&&!W&&!J.inVOnce;if(W){let G=QV(W,J),Z=!(G||vh(W,J)),H=W.content.includes(";");if(J.prefixIdentifiers){if(Z&&J.addIdentifiers("$event"),W=D.exp=K$(W,J,!1,H),Z&&J.removeIdentifiers("$event"),K=J.cacheHandlers&&!J.inVOnce&&!(W.type===4&&W.constType>0)&&!(G&&$.tagType===1)&&!c0(W,J.identifiers),K&&G)if(W.type===4)W.content=`${W.content} && ${W.content}(...args)`;else W.children=[...W.children," && ",...W.children,"(...args)"]}if(Z||K&&G)W=k$([`${Z?J.isTS?"($event: any)":"$event":`${J.isTS?`
//@ts-ignore
`:""}(...args)`} => ${H?"{":"("}`,W,H?"}":")"])}let q={props:[N0(F,W||OD("() => {}",!1,Y))]};if(X)q=X(q);if(K)q.props[0].value=J.cache(q.props[0].value);return q.props.forEach((G)=>G.key.isHandlerKey=!0),q},Xm=(D,$,J)=>{let{modifiers:X,loc:Y}=D,Q=D.arg,{exp:U}=D;if(U&&U.type===4&&!U.content.trim())return J.onError(mD(34,Y)),{props:[N0(Q,OD("",!0,Y))]};if(Q.type!==4)Q.children.unshift("("),Q.children.push(') || ""');else if(!Q.isStatic)Q.content=Q.content?`${Q.content} || ""`:'""';if(X.some((F)=>F.content==="camel"))if(Q.type===4)if(Q.isStatic)Q.content=a.camelize(Q.content);else Q.content=`${J.helperString(OU)}(${Q.content})`;else Q.children.unshift(`${J.helperString(OU)}(`),Q.children.push(")");if(!J.inSSR){if(X.some((F)=>F.content==="prop"))Jh(Q,".");if(X.some((F)=>F.content==="attr"))Jh(Q,"^")}return{props:[N0(Q,U)]}},Jh=(D,$)=>{if(D.type===4)if(D.isStatic)D.content=$+D.content;else D.content=`\`${$}\${${D.content}}\``;else D.children.unshift(`'${$}' + (`),D.children.push(")")},qGD=(D,$)=>{if(D.type===0||D.type===1||D.type===11||D.type===10)return()=>{let J=D.children,X=void 0,Y=!1;for(let Q=0;Q<J.length;Q++){let U=J[Q];if(GU(U)){Y=!0;for(let F=Q+1;F<J.length;F++){let W=J[F];if(GU(W)){if(!X)X=J[Q]=k$([U],U.loc);X.children.push(" + ",W),J.splice(F,1),F--}else{X=void 0;break}}}}if(!Y||J.length===1&&(D.type===0||D.type===1&&D.tagType===0&&!D.props.find((Q)=>Q.type===7&&!$.directiveTransforms[Q.name])&&D.tag!=="template"))return;for(let Q=0;Q<J.length;Q++){let U=J[Q];if(GU(U)||U.type===8){let F=[];if(U.type!==2||U.content!==" ")F.push(U);if(!$.ssr&&u$(U,$)===0)F.push(`1 /* ${a.PatchFlagNames[1]} */`);J[Q]={type:12,content:U,loc:U.loc,codegenNode:f0($.helper(EU),F)}}}}},Xh=new WeakSet,GGD=(D,$)=>{if(D.type===1&&W$(D,"once",!0)){if(Xh.has(D)||$.inVOnce||$.inSSR)return;return Xh.add(D),$.inVOnce=!0,$.helper(N3),()=>{$.inVOnce=!1;let J=$.currentNode;if(J.codegenNode)J.codegenNode=$.cache(J.codegenNode,!0,!0)}}},Ym=(D,$,J)=>{let{exp:X,arg:Y}=D;if(!X)return J.onError(mD(41,D.loc)),O9();let Q=X.loc.source.trim(),U=X.type===4?X.content:Q,F=J.bindingMetadata[Q];if(F==="props"||F==="props-aliased")return J.onError(mD(44,X.loc)),O9();if(F==="literal-const"||F==="setup-const")return J.onError(mD(45,X.loc)),O9();let W=J.inline&&(F==="setup-let"||F==="setup-ref"||F==="setup-maybe-ref");if(!U.trim()||!QV(X,J)&&!W)return J.onError(mD(42,X.loc)),O9();if(J.prefixIdentifiers&&o6(U)&&J.identifiers[U])return J.onError(mD(43,X.loc)),O9();let K=Y?Y:OD("modelValue",!0),q=Y?W6(Y)?`onUpdate:${a.camelize(Y.content)}`:k$(['"onUpdate:" + ',Y]):"onUpdate:modelValue",G,Z=J.isTS?"($event: any)":"$event";if(W)if(F==="setup-ref")G=k$([`${Z} => ((`,OD(Q,!1,X.loc),").value = $event)"]);else{let z=F==="setup-let"?`${Q} = $event`:"null";G=k$([`${Z} => (${J.helperString(w3)}(${Q}) ? (`,OD(Q,!1,X.loc),`).value = $event : ${z})`])}else G=k$([`${Z} => ((`,X,") = $event)"]);let H=[N0(K,D.exp),N0(q,G)];if(J.prefixIdentifiers&&!J.inVOnce&&J.cacheHandlers&&!c0(X,J.identifiers))H[1].value=J.cache(H[1].value);if(D.modifiers.length&&$.tagType===1){let z=D.modifiers.map((B)=>B.content).map((B)=>(o6(B)?B:JSON.stringify(B))+": true").join(", "),I=Y?W6(Y)?`${Y.content}Modifiers`:k$([Y,' + "Modifiers"']):"modelModifiers";H.push(N0(I,OD(`{ ${z} }`,!1,D.loc,2)))}return O9(H)};function O9(D=[]){return{props:D}}var ZGD=/[\w).+\-_$\]]/,zGD=(D,$)=>{if(!l1("COMPILER_FILTERS",$))return;if(D.type===5)RU(D.content,$);else if(D.type===1)D.props.forEach((J)=>{if(J.type===7&&J.name!=="for"&&J.exp)RU(J.exp,$)})};function RU(D,$){if(D.type===4)Yh(D,$);else for(let J=0;J<D.children.length;J++){let X=D.children[J];if(typeof X!=="object")continue;if(X.type===4)Yh(X,$);else if(X.type===8)RU(X,$);else if(X.type===5)RU(X.content,$)}}function Yh(D,$){let J=D.content,X=!1,Y=!1,Q=!1,U=!1,F=0,W=0,K=0,q=0,G,Z,H,z,I=[];for(H=0;H<J.length;H++)if(Z=G,G=J.charCodeAt(H),X){if(G===39&&Z!==92)X=!1}else if(Y){if(G===34&&Z!==92)Y=!1}else if(Q){if(G===96&&Z!==92)Q=!1}else if(U){if(G===47&&Z!==92)U=!1}else if(G===124&&J.charCodeAt(H+1)!==124&&J.charCodeAt(H-1)!==124&&!F&&!W&&!K)if(z===void 0)q=H+1,z=J.slice(0,H).trim();else B();else{switch(G){case 34:Y=!0;break;case 39:X=!0;break;case 96:Q=!0;break;case 40:K++;break;case 41:K--;break;case 91:W++;break;case 93:W--;break;case 123:F++;break;case 125:F--;break}if(G===47){let N=H-1,V;for(;N>=0;N--)if(V=J.charAt(N),V!==" ")break;if(!V||!ZGD.test(V))U=!0}}if(z===void 0)z=J.slice(0,H).trim();else if(q!==0)B();function B(){I.push(J.slice(q,H).trim()),q=H+1}if(I.length){j3("COMPILER_FILTERS",$,D.loc);for(H=0;H<I.length;H++)z=HGD(z,I[H],$);D.content=z,D.ast=void 0}}function HGD(D,$,J){J.helper(bU);let X=$.indexOf("(");if(X<0)return J.filters.add($),`${q8($,"filter")}(${D})`;else{let Y=$.slice(0,X),Q=$.slice(X+1);return J.filters.add(Y),`${q8(Y,"filter")}(${D}${Q!==")"?","+Q:Q}`}}var Qh=new WeakSet,IGD=(D,$)=>{if(D.type===1){let J=W$(D,"memo");if(!J||Qh.has(D)||$.inSSR)return;return Qh.add(D),()=>{let X=D.codegenNode||$.currentNode.codegenNode;if(X&&X.type===13){if(D.tagType!==1)yU(X,$);D.codegenNode=f0($.helper(fU),[J.exp,F8(void 0,X),"_cache",String($.cached.length)]),$.cached.push(null)}}}},Qm=(D,$)=>{if(D.type===1){for(let J of D.props)if(J.type===7&&J.name==="bind"&&(!J.exp||!1)&&J.arg){let X=J.arg;if(X.type!==4||!X.isStatic)$.onError(mD(53,X.loc)),J.exp=OD("",!0,X.loc);else{let Y=a.camelize(X.content);if(YV.test(Y[0])||Y[0]==="-")J.exp=OD(Y,!1,X.loc)}}}};function Um(D){return[[Qm,GGD,$GD,IGD,YGD,zGD,...D?[th,ch]:[],KGD,sh,rh,qGD],{on:Jm,bind:Xm,model:Ym}]}function BGD(D,$={}){let J=$.onError||eN,X=$.mode==="module",Y=$.prefixIdentifiers===!0||X;if(!Y&&$.cacheHandlers)J(mD(50));if($.scopeId&&!X)J(mD(51));let Q=a.extend({},$,{prefixIdentifiers:Y}),U=a.isString(D)?kh(D,Q):D,[F,W]=Um(Y);if($.isTS){let{expressionPlugins:K}=$;if(!K||!K.includes("typescript"))$.expressionPlugins=[...K||[],"typescript"]}return yh(U,a.extend({},Q,{nodeTransforms:[...F,...$.nodeTransforms||[]],directiveTransforms:a.extend({},W,$.directiveTransforms||{})})),hh(U,Q)}var OGD={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},NGD=()=>({props:[]});Fm.generateCodeFrame=a.generateCodeFrame;Fm.BASE_TRANSITION=pN;Fm.BindingTypes=OGD;Fm.CAMELIZE=OU;Fm.CAPITALIZE=Uh;Fm.CREATE_BLOCK=nN;Fm.CREATE_COMMENT=v9;Fm.CREATE_ELEMENT_BLOCK=rN;Fm.CREATE_ELEMENT_VNODE=vU;Fm.CREATE_SLOTS=aN;Fm.CREATE_STATIC=tN;Fm.CREATE_TEXT=EU;Fm.CREATE_VNODE=AU;Fm.CompilerDeprecationTypes=QqD;Fm.ConstantTypes=sKD;Fm.ElementTypes=aKD;Fm.ErrorCodes=FqD;Fm.FRAGMENT=j9;Fm.GUARD_REACTIVE_PROPS=E9;Fm.IS_MEMO_SAME=sN;Fm.IS_REF=w3;Fm.KEEP_ALIVE=I3;Fm.MERGE_PROPS=O3;Fm.NORMALIZE_CLASS=_U;Fm.NORMALIZE_PROPS=L9;Fm.NORMALIZE_STYLE=uU;Fm.Namespaces=tKD;Fm.NodeTypes=oKD;Fm.OPEN_BLOCK=d1;Fm.POP_SCOPE_ID=Wh;Fm.PUSH_SCOPE_ID=Fh;Fm.RENDER_LIST=CU;Fm.RENDER_SLOT=oN;Fm.RESOLVE_COMPONENT=B3;Fm.RESOLVE_DIRECTIVE=PU;Fm.RESOLVE_DYNAMIC_COMPONENT=TU;Fm.RESOLVE_FILTER=bU;Fm.SET_BLOCK_TRACKING=N3;Fm.SUSPENSE=MU;Fm.TELEPORT=w9;Fm.TO_DISPLAY_STRING=kU;Fm.TO_HANDLERS=gU;Fm.TO_HANDLER_KEY=NU;Fm.TS_NODE_TYPES=JV;Fm.UNREF=V3;Fm.WITH_CTX=xU;Fm.WITH_DIRECTIVES=SU;Fm.WITH_MEMO=fU;Fm.advancePositionWithClone=fN;Fm.advancePositionWithMutation=UV;Fm.assert=yN;Fm.baseCompile=BGD;Fm.baseParse=kh;Fm.buildDirectiveArgs=Dm;Fm.buildProps=HV;Fm.buildSlots=oh;Fm.checkCompatEnabled=M9;Fm.convertToBlock=yU;Fm.createArrayExpression=m1;Fm.createAssignmentExpression=JqD;Fm.createBlockStatement=Gh;Fm.createCacheExpression=qh;Fm.createCallExpression=f0;Fm.createCompilerError=mD;Fm.createCompoundExpression=k$;Fm.createConditionalExpression=VU;Fm.createForLoopParams=LU;Fm.createFunctionExpression=F8;Fm.createIfStatement=$qD;Fm.createInterpolation=eKD;Fm.createObjectExpression=_$;Fm.createObjectProperty=N0;Fm.createReturnStatement=YqD;Fm.createRoot=Kh;Fm.createSequenceExpression=XqD;Fm.createSimpleExpression=OD;Fm.createStructuralDirectiveTransform=GV;Fm.createTemplateLiteral=DqD;Fm.createTransformContext=fh;Fm.createVNodeCall=R9;Fm.errorMessages=Hh;Fm.extractIdentifiers=F6;Fm.findDir=W$;Fm.findProp=L3;Fm.forAliasRE=Th;Fm.generate=hh;Fm.getBaseTransformPreset=Um;Fm.getConstantType=u$;Fm.getMemoedVNodeCall=Eh;Fm.getVNodeBlockHelper=K8;Fm.getVNodeHelper=W8;Fm.hasDynamicKeyVBind=IqD;Fm.hasScopeRef=c0;Fm.helperNameMap=V$;Fm.injectProp=M3;Fm.isAllWhitespace=WV;Fm.isCommentOrWhitespace=KV;Fm.isCoreComponent=XV;Fm.isFnExpression=vh;Fm.isFnExpressionBrowser=HqD;Fm.isFnExpressionNode=Ah;Fm.isFunctionType=Lh;Fm.isInDestructureAssignment=jU;Fm.isInNewExpression=Oh;Fm.isMemberExpression=QV;Fm.isMemberExpressionBrowser=ZqD;Fm.isMemberExpressionNode=Mh;Fm.isReferencedIdentifier=Bh;Fm.isSimpleIdentifier=o6;Fm.isSlotOutlet=R3;Fm.isStaticArgOf=h1;Fm.isStaticExp=W6;Fm.isStaticProperty=$V;Fm.isStaticPropertyKey=Rh;Fm.isTemplateNode=A9;Fm.isText=GU;Fm.isVPre=hN;Fm.isVSlot=lU;Fm.isWhitespaceText=dU;Fm.locStub=V0;Fm.noopDirectiveTransform=NGD;Fm.processExpression=K$;Fm.processFor=nh;Fm.processIf=ph;Fm.processSlotOutlet=$m;Fm.registerRuntimeHelpers=rKD;Fm.resolveComponentType=eh;Fm.stringifyExpression=ZV;Fm.toValidAssetId=q8;Fm.trackSlotScopes=rh;Fm.trackVForSlotScopes=th;Fm.transform=yh;Fm.transformBind=Xm;Fm.transformElement=sh;Fm.transformExpression=ch;Fm.transformModel=Ym;Fm.transformOn=Jm;Fm.transformVBindShorthand=Qm;Fm.traverseNode=v3;Fm.unwrapTSNode=hU;Fm.validFirstIdentCharRE=YV;Fm.walkBlockDeclarations=DV;Fm.walkFunctionParams=Nh;Fm.walkIdentifiers=Ih;Fm.warnDeprecation=j3});var jm=S((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});var jD=Wm(),TD=cO(),IV=Symbol("vModelRadio"),BV=Symbol("vModelCheckbox"),OV=Symbol("vModelText"),NV=Symbol("vModelSelect"),pU=Symbol("vModelDynamic"),VV=Symbol("vOnModifiersGuard"),wV=Symbol("vOnKeysGuard"),jV=Symbol("vShow"),rU=Symbol("Transition"),LV=Symbol("TransitionGroup");jD.registerRuntimeHelpers({[IV]:"vModelRadio",[BV]:"vModelCheckbox",[OV]:"vModelText",[NV]:"vModelSelect",[pU]:"vModelDynamic",[VV]:"withModifiers",[wV]:"withKeys",[jV]:"vShow",[rU]:"Transition",[LV]:"TransitionGroup"});var RV={parseMode:"html",isVoidTag:TD.isVoidTag,isNativeTag:(D)=>TD.isHTMLTag(D)||TD.isSVGTag(D)||TD.isMathMLTag(D),isPreTag:(D)=>D==="pre",isIgnoreNewlineTag:(D)=>D==="pre"||D==="textarea",decodeEntities:void 0,isBuiltInComponent:(D)=>{if(D==="Transition"||D==="transition")return rU;else if(D==="TransitionGroup"||D==="transition-group")return LV},getNamespace(D,$,J){let X=$?$.ns:J;if($&&X===2){if($.tag==="annotation-xml"){if(D==="svg")return 1;if($.props.some((Y)=>Y.type===6&&Y.name==="encoding"&&Y.value!=null&&(Y.value.content==="text/html"||Y.value.content==="application/xhtml+xml")))X=0}else if(/^m(?:[ions]|text)$/.test($.tag)&&D!=="mglyph"&&D!=="malignmark")X=0}else if($&&X===1){if($.tag==="foreignObject"||$.tag==="desc"||$.tag==="title")X=0}if(X===0){if(D==="svg")return 1;if(D==="math")return 2}return X}},Im=(D)=>{if(D.type===1)D.props.forEach(($,J)=>{if($.type===6&&$.name==="style"&&$.value)D.props[J]={type:7,name:"bind",arg:jD.createSimpleExpression("style",!0,$.loc),exp:JHD($.value.content,$.loc),modifiers:[],loc:$.loc}})},JHD=(D,$)=>{let J=TD.parseStringStyle(D);return jD.createSimpleExpression(JSON.stringify(J),!1,$,3)};function n$(D,$){return jD.createCompilerError(D,$,Bm)}var XHD={X_V_HTML_NO_EXPRESSION:54,"54":"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,"55":"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,"56":"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,"57":"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,"58":"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,"59":"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,"60":"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,"61":"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,"62":"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,"63":"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,"64":"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,"65":"__EXTEND_POINT__"},Bm={[54]:"v-html is missing expression.",[55]:"v-html will override element children.",[56]:"v-text is missing expression.",[57]:"v-text will override element children.",[58]:"v-model can only be used on <input>, <textarea> and <select> elements.",[59]:"v-model argument is not supported on plain elements.",[60]:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",[61]:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",[62]:"v-show is missing expression.",[63]:"<Transition> expects exactly one child element or component.",[64]:"Tags with side effect (<script> and <style>) are ignored in client component templates."},YHD=(D,$,J)=>{let{exp:X,loc:Y}=D;if(!X)J.onError(n$(54,Y));if($.children.length)J.onError(n$(55,Y)),$.children.length=0;return{props:[jD.createObjectProperty(jD.createSimpleExpression("innerHTML",!0,Y),X||jD.createSimpleExpression("",!0))]}},QHD=(D,$,J)=>{let{exp:X,loc:Y}=D;if(!X)J.onError(n$(56,Y));if($.children.length)J.onError(n$(57,Y)),$.children.length=0;return{props:[jD.createObjectProperty(jD.createSimpleExpression("textContent",!0),X?jD.getConstantType(X,J)>0?X:jD.createCallExpression(J.helperString(jD.TO_DISPLAY_STRING),[X],Y):jD.createSimpleExpression("",!0))]}},UHD=(D,$,J)=>{let X=jD.transformModel(D,$,J);if(!X.props.length||$.tagType===1)return X;if(D.arg)J.onError(n$(59,D.arg.loc));function Y(){let F=jD.findDir($,"bind");if(F&&jD.isStaticArgOf(F.arg,"value"))J.onError(n$(61,F.loc))}let{tag:Q}=$,U=J.isCustomElement(Q);if(Q==="input"||Q==="textarea"||Q==="select"||U){let F=OV,W=!1;if(Q==="input"||U){let K=jD.findProp($,"type");if(K){if(K.type===7)F=pU;else if(K.value)switch(K.value.content){case"radio":F=IV;break;case"checkbox":F=BV;break;case"file":W=!0,J.onError(n$(60,D.loc));break;default:Y();break}}else if(jD.hasDynamicKeyVBind($))F=pU;else Y()}else if(Q==="select")F=NV;else Y();if(!W)X.needRuntime=J.helper(F)}else J.onError(n$(58,D.loc));return X.props=X.props.filter((F)=>!(F.key.type===4&&F.key.content==="modelValue")),X},FHD=TD.makeMap("passive,once,capture"),WHD=TD.makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),KHD=TD.makeMap("left,right"),Om=TD.makeMap("onkeyup,onkeydown,onkeypress"),qHD=(D,$,J,X)=>{let Y=[],Q=[],U=[];for(let F=0;F<$.length;F++){let W=$[F].content;if(W==="native"&&jD.checkCompatEnabled("COMPILER_V_ON_NATIVE",J,X))U.push(W);else if(FHD(W))U.push(W);else if(KHD(W))if(jD.isStaticExp(D))if(Om(D.content.toLowerCase()))Y.push(W);else Q.push(W);else Y.push(W),Q.push(W);else if(WHD(W))Q.push(W);else Y.push(W)}return{keyModifiers:Y,nonKeyModifiers:Q,eventOptionModifiers:U}},Km=(D,$)=>{return jD.isStaticExp(D)&&D.content.toLowerCase()==="onclick"?jD.createSimpleExpression($,!0):D.type!==4?jD.createCompoundExpression(["(",D,`) === "onClick" ? "${$}" : (`,D,")"]):D},GHD=(D,$,J)=>{return jD.transformOn(D,$,J,(X)=>{let{modifiers:Y}=D;if(!Y.length)return X;let{key:Q,value:U}=X.props[0],{keyModifiers:F,nonKeyModifiers:W,eventOptionModifiers:K}=qHD(Q,Y,J,D.loc);if(W.includes("right"))Q=Km(Q,"onContextmenu");if(W.includes("middle"))Q=Km(Q,"onMouseup");if(W.length)U=jD.createCallExpression(J.helper(VV),[U,JSON.stringify(W)]);if(F.length&&(!jD.isStaticExp(Q)||Om(Q.content.toLowerCase())))U=jD.createCallExpression(J.helper(wV),[U,JSON.stringify(F)]);if(K.length){let q=K.map(TD.capitalize).join("");Q=jD.isStaticExp(Q)?jD.createSimpleExpression(`${Q.content}${q}`,!0):jD.createCompoundExpression(["(",Q,`) + "${q}"`])}return{props:[jD.createObjectProperty(Q,U)]}})},ZHD=(D,$,J)=>{let{exp:X,loc:Y}=D;if(!X)J.onError(n$(62,Y));return{props:[],needRuntime:J.helper(jV)}},zHD=(D,$)=>{if(D.type===1&&D.tagType===1){if($.isBuiltInComponent(D.tag)===rU)return()=>{if(!D.children.length)return;if(Nm(D))$.onError(n$(63,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}));let X=D.children[0];if(X.type===1){for(let Y of X.props)if(Y.type===7&&Y.name==="show")D.props.push({type:6,name:"persisted",nameLoc:D.loc,value:void 0,loc:D.loc})}}}};function Nm(D){let $=D.children=D.children.filter((X)=>!jD.isCommentOrWhitespace(X)),J=$[0];return $.length!==1||J.type===11||J.type===9&&J.branches.some(Nm)}var HHD=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,IHD=(D,$,J)=>{if($.scopes.vSlot>0)return;let X=J.type===1&&J.codegenNode&&J.codegenNode.type===13&&J.codegenNode.children&&!TD.isArray(J.codegenNode.children)&&J.codegenNode.children.type===20,Y=0,Q=0,U=[],F=(K)=>{if(Y>=20||Q>=5){let q=jD.createCallExpression($.helper(jD.CREATE_STATIC),[JSON.stringify(U.map((Z)=>MV(Z,$)).join("")).replace(HHD,'" + $1 + "'),String(U.length)]),G=U.length-1;if(X)D.splice(K-U.length,U.length,q);else if(U[0].codegenNode.value=q,U.length>1){D.splice(K-U.length+1,G);let Z=$.cached.indexOf(U[U.length-1].codegenNode);if(Z>-1){for(let H=Z;H<$.cached.length;H++){let z=$.cached[H];if(z)z.index-=G}$.cached.splice(Z-G+1,G)}}return G}return 0},W=0;for(;W<D.length;W++){let K=D[W];if(X||BHD(K)){let G=VHD(K);if(G){Y+=G[0],Q+=G[1],U.push(K);continue}}W-=F(W),Y=0,Q=0,U.length=0}F(W)},BHD=(D)=>{if((D.type===1&&D.tagType===0||D.type===12)&&D.codegenNode&&D.codegenNode.type===20)return D.codegenNode},OHD=/^(?:data|aria)-/,qm=(D,$)=>{return($===0?TD.isKnownHtmlAttr(D):$===1?TD.isKnownSvgAttr(D):$===2?TD.isKnownMathMLAttr(D):!1)||OHD.test(D)},NHD=TD.makeMap("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function VHD(D){if(D.type===1&&NHD(D.tag))return!1;if(D.type===1&&jD.findDir(D,"once",!0))return!1;if(D.type===12)return[1,0];let $=1,J=D.props.length>0?1:0,X=!1,Y=()=>{return X=!0,!1};function Q(U){let F=U.tag==="option"&&U.ns===0;for(let W=0;W<U.props.length;W++){let K=U.props[W];if(K.type===6&&!qm(K.name,U.ns))return Y();if(K.type===7&&K.name==="bind"){if(K.arg&&(K.arg.type===8||K.arg.isStatic&&!qm(K.arg.content,U.ns)))return Y();if(K.exp&&(K.exp.type===8||K.exp.constType<3))return Y();if(F&&jD.isStaticArgOf(K.arg,"value")&&K.exp&&!K.exp.isStatic)return Y()}}for(let W=0;W<U.children.length;W++){$++;let K=U.children[W];if(K.type===1){if(K.props.length>0)J++;if(Q(K),X)return!1}}return!0}return Q(D)?[$,J]:!1}function MV(D,$){if(TD.isString(D))return D;if(TD.isSymbol(D))return"";switch(D.type){case 1:return wHD(D,$);case 2:return TD.escapeHtml(D.content);case 3:return`<!--${TD.escapeHtml(D.content)}-->`;case 5:return TD.escapeHtml(TD.toDisplayString(Z8(D.content)));case 8:return TD.escapeHtml(Z8(D));case 12:return MV(D.content,$);default:return""}}function wHD(D,$){let J=`<${D.tag}`,X="";for(let Y=0;Y<D.props.length;Y++){let Q=D.props[Y];if(Q.type===6){if(J+=` ${Q.name}`,Q.value)J+=`="${TD.escapeHtml(Q.value.content)}"`}else if(Q.type===7){if(Q.name==="bind"){let U=Q.exp;if(U.content[0]==="_"){J+=` ${Q.arg.content}="__VUE_EXP_START__${U.content}__VUE_EXP_END__"`;continue}if(TD.isBooleanAttr(Q.arg.content)&&U.content==="false")continue;let F=Z8(U);if(F!=null){let W=Q.arg&&Q.arg.content;if(W==="class")F=TD.normalizeClass(F);else if(W==="style")F=TD.stringifyStyle(TD.normalizeStyle(F));J+=` ${Q.arg.content}="${TD.escapeHtml(F)}"`}}else if(Q.name==="html")X=Z8(Q.exp);else if(Q.name==="text")X=TD.escapeHtml(TD.toDisplayString(Z8(Q.exp)))}}if($.scopeId)J+=` ${$.scopeId}`;if(J+=">",X)J+=X;else for(let Y=0;Y<D.children.length;Y++)J+=MV(D.children[Y],$);if(!TD.isVoidTag(D.tag))J+=`</${D.tag}>`;return J}function Z8(D){if(D.type===4)return Function(`return (${D.content})`)();else{let $="";return D.children.forEach((J)=>{if(TD.isString(J)||TD.isSymbol(J))return;if(J.type===2)$+=J.content;else if(J.type===5)$+=TD.toDisplayString(Z8(J.content));else $+=Z8(J)}),$}}var jHD=(D,$)=>{if(D.type===1&&D.tagType===0&&(D.tag==="script"||D.tag==="style"))$.onError(n$(64,D.loc)),$.removeNode()};function LHD(D,$){if(D==="template")return!0;if(D in Gm)return Gm[D].has($);if($ in Zm)return Zm[$].has(D);if(D in zm){if(zm[D].has($))return!1}if($ in Hm){if(Hm[$].has(D))return!1}return!0}var P9=new Set(["h1","h2","h3","h4","h5","h6"]),G8=new Set([]),Gm={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:G8,iframe:G8,option:G8,textarea:G8,style:G8,title:G8},Zm={html:G8,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},zm={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},Hm={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:P9,h2:P9,h3:P9,h4:P9,h5:P9,h6:P9},RHD=(D,$)=>{if(D.type===1&&D.tagType===0&&$.parent&&$.parent.type===1&&$.parent.tagType===0&&!LHD($.parent.tag,D.tag)){let J=SyntaxError(`<${D.tag}> cannot be child of <${$.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);J.loc=D.loc,$.onWarn(J)}},Vm=[Im,zHD,RHD],wm={cloak:jD.noopDirectiveTransform,html:YHD,text:QHD,model:UHD,on:GHD,show:ZHD};function MHD(D,$={}){return jD.baseCompile(D,TD.extend({},RV,$,{nodeTransforms:[jHD,...Vm,...$.nodeTransforms||[]],directiveTransforms:TD.extend({},wm,$.directiveTransforms||{}),transformHoist:IHD}))}function AHD(D,$={}){return jD.baseParse(D,TD.extend({},RV,$))}nU.DOMDirectiveTransforms=wm;nU.DOMErrorCodes=XHD;nU.DOMErrorMessages=Bm;nU.DOMNodeTransforms=Vm;nU.TRANSITION=rU;nU.TRANSITION_GROUP=LV;nU.V_MODEL_CHECKBOX=BV;nU.V_MODEL_DYNAMIC=pU;nU.V_MODEL_RADIO=IV;nU.V_MODEL_SELECT=NV;nU.V_MODEL_TEXT=OV;nU.V_ON_WITH_KEYS=wV;nU.V_ON_WITH_MODIFIERS=VV;nU.V_SHOW=jV;nU.compile=MHD;nU.createDOMCompilerError=n$;nU.parse=AHD;nU.parserOptions=RV;nU.transformStyle=Im;Object.keys(jD).forEach(function(D){if(D!=="default"&&!Object.prototype.hasOwnProperty.call(nU,D))nU[D]=jD[D]})});import{exit as XID}from"node:process";import{workerData as YID}from"node:worker_threads";T3();JK();async function nx(D,$){let{project:J,apiHost:X,anonKey:Y,apikey:Q,command:U,attemptId:F}=D;xV(U);let W=async(z,I,B={})=>{try{await X2(Q,{channel:$.channel,event:z,tracking_version:2,timestamp:new Date(I),tags:{app_id:J.appId},nonPersonTags:{attempt_id:F,command_path:U,...B}},!1,AbortSignal.timeout(500),X,"error")}catch{}};await W("scan_started",Date.now());let K=Date.now(),q=K,G="error",Z="not_attempted",H;try{if(G=$.scan(J),q=Date.now(),G!=="found")return;Z="failed";let z=await fetch(`${N1(X)}/app/${encodeURIComponent(J.appId)}`,{method:"PUT",headers:K6({"Content-Type":"application/json",Authorization:X.includes("/functions/v1")&&Y?`Bearer ${Y}`:Q,capgkey:Q}),body:JSON.stringify({onboarding:{steps:{[$.step]:{status:"done"}}}}),redirect:"error"});H=z.status,Z=z.ok?"success":"rejected",await z.body?.cancel()}finally{if(G==="error")q=Date.now();await W("scan_ended",q,{result:G,duration_ms:q-K,todo_report_status:Z,...H===void 0?{}:{todo_report_http_status:H}})}}var E3=w$(jm(),1);import{existsSync as Lm,readdirSync as cHD,readFileSync as pHD,realpathSync as nHD,statSync as rHD}from"node:fs";import{basename as tHD,dirname as bm,extname as Rm,isAbsolute as oHD,join as Mm,relative as Sm,resolve as aHD,sep as AV}from"node:path";import kD from"typescript";var vV="@capgo/capacitor-updater",Am=/\.(?:[cm]?[jt]sx?|vue)$/,vm=/^(?:\..*|node_modules|dist|build|www|coverage|android|ios|test|tests|__tests__|__mocks__|fixtures|__fixtures__|e2e|cypress|playwright|scripts)$/,sHD=/\.(?:test|spec|d)\.[cm]?[jt]sx?$|^capacitor\.config\./;function Em(D,$){let J=Sm(D,$);return!oHD(J)&&J!==".."&&!J.startsWith(`..${AV}`)}function eHD(D){let $=kD.findConfigFile(D,kD.sys.fileExists);if(!$)return{};let J=kD.readConfigFile($,kD.sys.readFile);if(J.error)return{};return kD.parseJsonConfigFileContent({...J.config,files:[],include:[]},kD.sys,bm($)).options}function DID(D){return E3.parse(D,{parseMode:"sfc",onError:(J)=>{throw J}}).children.flatMap((J)=>{if(J.type!==E3.NodeTypes.ELEMENT||J.tag!=="script")return[];return J.children.flatMap((X)=>X.type===E3.NodeTypes.TEXT?[X.content]:[])}).join(`
`)}function $ID(D){for(let $=D.parent;$;$=$.parent)if(kD.isImportDeclaration($))return $;return}function Tm(D){let $=$ID(D);return!!$&&kD.isStringLiteral($.moduleSpecifier)&&$.moduleSpecifier.text===vV&&!$.importClause?.isTypeOnly}function Pm(D,$){if(kD.isIdentifier(D))return!!$.getSymbolAtLocation(D)?.declarations?.some((J)=>{if(kD.isImportSpecifier(J))return!J.isTypeOnly&&(J.propertyName??J.name).text==="CapacitorUpdater"&&Tm(J);if(!kD.isBindingElement(J)||!kD.isObjectBindingPattern(J.parent))return!1;let X=J.parent.parent,Y=J.propertyName??J.name;if(!kD.isIdentifier(Y)||Y.text!=="CapacitorUpdater"||!kD.isVariableDeclaration(X))return!1;let Q=X.initializer;return!!Q&&kD.isCallExpression(Q)&&kD.isIdentifier(Q.expression)&&Q.expression.text==="require"&&!$.getSymbolAtLocation(Q.expression)&&Q.arguments.length===1&&kD.isStringLiteral(Q.arguments[0])&&Q.arguments[0].text===vV&&kD.isVariableDeclarationList(X.parent)&&!!(X.parent.flags&kD.NodeFlags.Const)});if(kD.isPropertyAccessExpression(D)&&D.name.text==="CapacitorUpdater"&&kD.isIdentifier(D.expression))return!!$.getSymbolAtLocation(D.expression)?.declarations?.some((J)=>kD.isNamespaceImport(J)&&Tm(J));return!1}function JID(D,$){function J(X){if(kD.isCallExpression(X)){let Y=X.expression;if(kD.isPropertyAccessExpression(Y)&&Y.name.text==="notifyAppReady"&&Pm(Y.expression,$))return!0;if(kD.isElementAccessExpression(Y)&&kD.isStringLiteral(Y.argumentExpression)&&Y.argumentExpression.text==="notifyAppReady"&&Pm(Y.expression,$))return!0}return kD.forEachChild(X,J)??!1}return J(D)}function Cm(D){try{let W=function(I){if(F(),!Am.test(I)||sHD.test(tHD(I)))return;let B=nHD(I);if(Y.has(B)||!Em(D.workspaceRoot,B)||Sm(D.workspaceRoot,B).split(AV).some((A)=>vm.test(A))||D.webDir&&D.webDir!==D.dir&&Em(D.webDir,B))return;Y.add(B);let N=rHD(B).size;if(N>1048576)throw Error("Source file too large");U+=N,F();let V=pHD(B,"utf8"),O=B.split(AV).join("/"),j=Rm(B)===".vue"?`${O}.tsx`:O,v=Rm(B)===".vue"?DID(V):V;J.set(j,v),X.set(j,B)},K=function(I){F();for(let B of cHD(I,{withFileTypes:!0})){let N=Mm(I,B.name);if(B.isDirectory()){if(!vm.test(B.name)&&!Lm(Mm(N,"package.json")))K(N)}else if(B.isFile())W(N)}},$=Date.now()+5000,J=new Map,X=new Map,Y=new Set,Q=eHD(D.dir),U=0,F=()=>{if(Date.now()>$||Y.size>1e4||U>20971520)throw Error("Source scan budget exceeded")};K(D.dir);for(let[I,B]of J){F();let N=X.get(I);for(let V of kD.preProcessFile(B,!0,!0).importedFiles){let O=V.fileName;if(O===vV)continue;let j=kD.resolveModuleName(O,N,Q,kD.sys).resolvedModule?.resolvedFileName??(O.startsWith(".")&&Am.test(O)?aHD(bm(N),O):void 0);if(j&&Lm(j))W(j)}}let q={allowJs:!0,noLib:!0,noResolve:!0,types:[],jsx:kD.JsxEmit.Preserve},G=kD.createCompilerHost(q);G.getSourceFile=(I,B)=>{let N=J.get(I);return N===void 0?void 0:kD.createSourceFile(I,N,B,!0)};let Z=kD.createProgram([...J.keys()],q,G),H=Z.getTypeChecker(),z=!1;for(let I of Z.getSourceFiles()){if(F(),Z.getSyntacticDiagnostics(I).length){z=!0;continue}if(JID(I,H))return"found"}return z?"unknown":"not_found"}catch{return"unknown"}}nx(YID,{channel:"notify-app-ready",step:"add_code",scan:Cm}).catch(()=>{}).finally(()=>XID(0));