@moreai/code 0.0.0-stage → 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +336 -2
  3. package/dist/THIRD_PARTY_LICENSES.txt +7412 -0
  4. package/dist/daemon.mjs +3791 -0
  5. package/dist/locales/am.json +1185 -0
  6. package/dist/locales/bho.json +1185 -0
  7. package/dist/locales/bn.json +1185 -0
  8. package/dist/locales/da.json +1185 -0
  9. package/dist/locales/de.json +1185 -0
  10. package/dist/locales/es-419.json +1187 -0
  11. package/dist/locales/es.json +1187 -0
  12. package/dist/locales/fi.json +1185 -0
  13. package/dist/locales/fil.json +1185 -0
  14. package/dist/locales/fr.json +1187 -0
  15. package/dist/locales/gu.json +1185 -0
  16. package/dist/locales/ha.json +1185 -0
  17. package/dist/locales/hi.json +1185 -0
  18. package/dist/locales/id.json +1149 -0
  19. package/dist/locales/it.json +1187 -0
  20. package/dist/locales/ja.json +1149 -0
  21. package/dist/locales/kn.json +1185 -0
  22. package/dist/locales/ko.json +1149 -0
  23. package/dist/locales/ml.json +1185 -0
  24. package/dist/locales/mr.json +1185 -0
  25. package/dist/locales/nb.json +1185 -0
  26. package/dist/locales/nl.json +1185 -0
  27. package/dist/locales/pt-BR.json +1187 -0
  28. package/dist/locales/ru.json +1261 -0
  29. package/dist/locales/sv.json +1185 -0
  30. package/dist/locales/sw.json +1185 -0
  31. package/dist/locales/ta.json +1185 -0
  32. package/dist/locales/te.json +1185 -0
  33. package/dist/locales/th.json +1149 -0
  34. package/dist/locales/tr.json +1185 -0
  35. package/dist/locales/uk.json +1261 -0
  36. package/dist/locales/vi.json +1149 -0
  37. package/dist/locales/zh-TW.json +1148 -0
  38. package/dist/locales/zh.json +1148 -0
  39. package/dist/moreai.mjs +504 -0
  40. package/dist/resources/file-acl/macos/moreai-file-acl +0 -0
  41. package/package.json +63 -4
@@ -0,0 +1,504 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
3
+ var N4=Object.create;var AB=Object.defineProperty;var M4=Object.getOwnPropertyDescriptor;var O4=Object.getOwnPropertyNames;var H4=Object.getPrototypeOf,k4=Object.prototype.hasOwnProperty;var i=(e,o)=>AB(e,"name",{value:o,configurable:!0}),Go=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,r)=>(typeof require<"u"?require:o)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var L=(e,o,r)=>()=>{if(r)throw r[0];try{return e&&(o=e(e=0)),o}catch(c){throw r=[c],c}};var Yn=(e,o)=>()=>{try{return o||e((o={exports:{}}).exports,o),o.exports}catch(r){throw o=0,r}},mi=(e,o)=>{for(var r in o)AB(e,r,{get:o[r],enumerable:!0})},U4=(e,o,r,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let u of O4(o))!k4.call(e,u)&&u!==r&&AB(e,u,{get:()=>o[u],enumerable:!(c=M4(o,u))||c.enumerable});return e};var Ue=(e,o,r)=>(r=e!=null?N4(H4(e)):{},U4(o||!e||!e.__esModule?AB(r,"default",{value:e,enumerable:!0}):r,e));var dB=L(()=>{"use strict"});function z4(e){return[e,`${e}/`,`${e}/*`]}function KE(e,o,r){let c={};for(let u of o)for(let f of r){let m=`${e} ${u} ${f}`;c[m]=m.split(" ").length+1}return c}var L4,G4,Fr,dP,fP,gP,F4,pP,K4,Y4,q4,mP,P4,J4,j4,V4,hP,yD=L(()=>{"use strict";dB();L4=new Set(["status","log","diff","show","ls-files","ls-tree","rev-parse","blame","shortlog","cat-file","describe","symbolic-ref","rev-list","name-rev","reflog","grep","whatchanged"]),G4=new Set(["timeout","time","nice","nohup","stdbuf","command","builtin","exec"]),Fr=i(e=>new Set(e.split(/\s+/).filter(Boolean)),"flagSet"),dP={long:Fr("--auto-hybrid-regex --binary --block-buffered --byte-offset --case-sensitive --column --count --count-matches --crlf --debug --files --files-with-matches --files-without-match --fixed-strings --follow --glob-case-insensitive --heading --help --hidden --ignore-case --ignore-file-case-insensitive --include-zero --invert-match --json --line-buffered --line-number --line-regexp --max-columns-preview --mmap --multiline --multiline-dotall --no-config --no-filename --no-ignore --no-ignore-dot --no-ignore-exclude --no-ignore-files --no-ignore-global --no-ignore-messages --no-ignore-parent --no-ignore-vcs --no-line-number --no-messages --no-pcre2-unicode --no-require-git --no-unicode --null --null-data --one-file-system --only-matching --passthru --pcre2 --pcre2-version --pretty --quiet --smart-case --sort-files --stats --stop-on-nonmatch --text --trace --trim --type-list --unrestricted --version --vimgrep --with-filename --word-regexp"),longValue:Fr("--after-context --before-context --color --colors --context --context-separator --dfa-size-limit --encoding --engine --field-context-separator --field-match-separator --file --generate --glob --hyperlink-format --iglob --ignore-file --max-columns --max-count --max-depth --max-filesize --path-separator --pre-glob --regex-size-limit --regexp --replace --sort --sortr --threads --type --type-add --type-clear --type-not"),deniedLong:Fr("--pre --hostname-bin --search-zip"),short:Fr("0 . a b c F H I L N P S U V h i l n o p q s u v w x"),shortValue:Fr("A B C E M T d e f g j m r t"),deniedShort:Fr("z")},fP={long:Fr("--absolute-path --case-sensitive --fixed-strings --follow --full-path --glob --help --hidden --ignore-case --list-details --no-ignore --no-ignore-parent --no-ignore-vcs --no-require-git --one-file-system --print0 --prune --quiet --show-errors --strip-cwd-prefix --unrestricted --version"),longValue:Fr("--and --base-directory --changed-before --changed-within --color --exact-depth --exclude --extension --format --ignore-file --max-depth --max-results --min-depth --owner --path-separator --search-path --size --threads --type"),longOptionalValue:Fr("--hyperlink"),deniedLong:Fr("--exec --exec-batch"),short:Fr("0 1 F H I L a g i l p q s u"),shortValue:Fr("E S c d e j o t"),deniedShort:Fr("x X")},gP={long:Fr("--debug --dictionary-order --general-numeric-sort --help --human-numeric-sort --ignore-case --ignore-leading-blanks --ignore-nonprinting --merge --month-sort --numeric-sort --random-sort --reverse --stable --unique --version --version-sort --zero-terminated"),longValue:Fr("--batch-size --buffer-size --field-separator --files0-from --key --parallel --random-source"),longOptionalValue:Fr("--check"),deniedLong:Fr("--compress-program --output --temporary-directory"),short:Fr("C M R V b c d f g h i m n r s u z"),shortValue:Fr("S k t"),deniedShort:Fr("T o")},F4=["/bin","/sbin","/lib","/lib64","/usr","/etc","/var","/opt","/boot","/dev","/proc","/sys","/root","/home","/System","/Library","/Applications","/Users","/private"];i(z4,"rmTargetVariants");pP=new Set(["/","/*","~","~/","~/*","$HOME","${HOME}","$HOME/","$HOME/*",...F4.flatMap(z4)]),K4=new Set(["sh","bash","zsh","dash","ksh","fish"]),Y4=new Set(["fetch","pull","push","clone","ls-remote"]),q4=new Set(["switch","checkout","branch","remote","init","clone","pull","push","worktree"]),mP=new Set([...L4,...Y4,...q4,"add","am","apply","archive","bisect","bundle","check-ignore","cherry","cherry-pick","clean","commit","config","count-objects","diff-tree","difftool","fsck","gc","help","merge","merge-base","mergetool","mv","notes","prune","range-diff","rebase","reset","restore","revert","rm","show-branch","show-ref","sparse-checkout","stash","submodule","switch","tag","update-index","update-ref","verify-commit","verify-tag","version"]);i(KE,"nestedGroupArity");P4={cat:1,cd:1,chmod:1,chown:1,cp:1,echo:1,grep:1,kill:1,killall:1,ln:1,ls:1,mkdir:1,mv:1,ps:1,pwd:1,rm:1,rmdir:1,sleep:1,tail:1,touch:1,unset:1,which:1,export:0,...Object.fromEntries([...K4].map(e=>[e,2])),".":2,"deno eval":0,"deno run":3,node:2,perl:2,php:2,powershell:2,pwsh:2,py:2,python3:2,ruby:2,source:2,"ts-node":2,tsx:2,doas:0,pkexec:0,run0:0,ssh:0,su:0,sudo:0,"docker exec":0,"docker run":0,"docker compose exec":0,"docker compose run":0,"kubectl exec":0,"kubectl run":0,"podman exec":0,"podman run":0,aws:3,az:3,bazel:2,brew:2,bun:2,"bun run":3,bundle:2,cargo:2,"cargo add":3,"cargo run":3,cdk:2,cf:2,cmake:2,composer:2,consul:2,"consul kv":3,crictl:2,deno:2,"deno task":3,doctl:3,docker:2,"docker builder":3,"docker compose":3,"docker container":3,"docker image":3,"docker network":3,"docker volume":3,eksctl:2,"eksctl create":3,firebase:2,fj:3,"fj actions secrets":4,"fj actions variables":4,"fj org label":4,"fj org repo":4,"fj org team":4,"fj release asset":4,"fj repo labels":4,"fj repo units":4,"fj user edit":4,"fj user gpg":4,"fj user key":4,flyctl:2,gcloud:3,gh:3,"gh api":0,git:2,"git config":3,"git remote":3,"git stash":3,glab:3,"glab api":0,"glab ci cancel":4,"glab cluster agent":4,"glab cluster agent token":5,"glab container-registry repository":4,"glab container-registry tag":4,"glab issue board":4,"glab opentofu state":4,...KE("glab",["repo","project"],["members"]),"glab runner-controller scope":4,"glab runner-controller token":4,"glab security config":4,go:2,gradle:2,helm:2,heroku:2,hugo:2,ip:2,"ip addr":3,"ip link":3,"ip netns":3,"ip route":3,kind:2,"kind create":3,kubectl:2,"kubectl kustomize":3,"kubectl rollout":3,kustomize:2,make:2,mc:2,"mc admin":3,minikube:2,mongosh:2,mysql:2,mvn:2,ng:2,npm:2,"npm init":3,"npm run":3,"npm view":3,nvm:2,nx:2,openssl:2,"openssl req":3,"openssl x509":3,pip:2,pip3:2,pipenv:2,pipx:2,pnpm:2,"pnpm run":3,poetry:2,podman:2,"podman container":3,"podman image":3,psql:2,pulumi:2,"pulumi stack":3,pyenv:2,python:2,rake:2,rbenv:2,"redis-cli":2,rustup:2,serverless:2,sfdx:3,skaffold:2,sls:2,sst:2,swift:2,systemctl:2,tea:3,...KE("tea",["actions"],["secrets","variables","vars","var","runs","run","workflows","workflow"]),...KE("tea",["admin","a"],["users","u"]),...KE("tea",["milestones","milestone","ms"],["issues","i"]),...KE("tea",["releases","release","r"],["assets","asset","a"]),terraform:2,"terraform workspace":3,tmux:2,turbo:2,ufw:2,uv:2,"uv pip":3,"uv tool":3,vault:2,"vault auth":3,"vault kv":3,vercel:2,volta:2,wp:2,yarn:2,"yarn run":3},J4={...Object.fromEntries([...G4].map(e=>[e,1])),timeout:2,"cross-env":1,env:1,xargs:1,bunx:1,"bun x":2,"npm exec":2,npx:1,"pnpm dlx":2,"pnpm exec":2,"yarn dlx":2,"yarn exec":2,"pipx run":2,"uv run":2,"uv tool run":3,uvx:1,"bundle exec":2,"pipenv run":2,"poetry run":2,"pyenv exec":2,"rbenv exec":2,"volta run":2,"py -m":2,"python -m":2,"python3 -m":2},j4={"docker compose --file":4,"docker compose -f":4,"git -C":3,"helm --namespace":3,"helm -n":3,"kubectl --context":3,"kubectl --namespace":3,"kubectl -n":3,"make -C":3,"npm --prefix":3,"npm --workspace":3,"npm -w":3,"pnpm --dir":3,"pnpm --filter":3,"pnpm --recursive":2,"pnpm -C":3,"pnpm -F":3,"pnpm -r":2,"yarn --cwd":3,"yarn workspace":3},V4=[["arity",P4],["runner",J4],["target",j4]],hP=Math.max(...V4.flatMap(([,e])=>Object.keys(e).map(o=>o.split(" ").length)))});var Ol,fB=L(()=>{"use strict";dB();yD();dB();Ol=["plan","read-only","accept-edits","auto","full"]});var ID,BD=L(()=>{"use strict";ID={"app.welcome.workspace":"Workspace","app.welcome.runtime":"Runtime","app.welcome.start":"Start","app.welcome.runtimeDesktop":"desktop app \u2014 sessions sync live","app.welcome.runtimeBackground":"background engine \u2014 no desktop app needed","app.welcome.startShort":"Enter a task \xB7 /model \xB7 /help","app.welcome.startLong":"Enter a task \xB7 /model switch model \xB7 /help commands \xB7 /login sync","app.firstRun.title":"Connect an AI provider","app.firstRun.choose":"Choose an API key, subscription sign-in, or local model below.","app.firstRun.account":"Optional: /login adds web and phone sync, dictation and Google services.","app.firstRun.envFound":"{{names}} found in your environment \u2014 pick it at the top of the list.","app.firstRun.noProvider":"no provider connected \u2014 /auth to set one up, then resend your task","app.engine.connecting":"connecting","app.engine.reconnecting":"reconnecting","app.engine.failed":"failed","app.engine.background":"background engine","app.engine.desktop":"desktop app","app.engine.shared":"shared engine","app.engine.connectingLine":"connecting to the More AI engine\u2026","app.engine.reconnectingLine":"engine connection lost \u2014 reconnecting\u2026","app.engine.unreachable":"could not reach the engine","app.engine.retryHint":"send a message to retry \xB7 `moreai doctor` diagnoses \xB7 /quit exits","app.engine.lost":"lost the engine \u2014 send a message to retry, or run `moreai doctor`","app.engine.reconnected":"reconnected to the engine","app.toast.browserOpened":"opened your browser to continue signing in","app.toast.connectionLost":"engine connection lost \u2014 restoring the run\u2026","app.toast.runRestored":"run restored","app.toast.notConnected":"engine is not connected yet","app.toast.claudeAgentKey":"Claude Agent needs a selected Anthropic API key or Z.ai Coding Plan key \u2014 connect one with /auth","app.toast.sessionGone":"session disappeared before the run started","app.toast.accessMode":"access mode: {{mode}}","app.toast.analyticsUsage":"usage: /analytics [on|usage|off]","app.toast.engineDisconnected":"engine disconnected \u2014 wait for the run to reconnect","app.toast.providerConnected":"provider connected","app.ctrlCAgain":"press ctrl+c again to exit","app.exit.resume":"resume \u201C{{title}}\u201D: {{command}}","app.account.signedIn":"Signed in as {{email}}","app.account.next":"Your sessions now sync to the web and phone apps. /connectors adds Gmail, GitHub and other services.","app.run.working":"working\u2026","app.run.escToInterrupt":"esc to interrupt","app.run.tokens":"{{tokens}} tokens","app.run.helperTokens":"{{tokens}} by helpers","app.run.done":"done in {{elapsed}}","app.run.interrupted":"interrupted","app.run.error":"error ({{code}})","app.run.thoughtFor":"Thought for {{elapsed}}","app.run.buildPlan":"Implement the approved plan.","app.held.title":"held: {{command}}","app.held.hint":"ask for it explicitly in your next message to approve it","app.sharedTree.title":"shared working tree","app.sharedTree.body_one":"{{count}} other run is active in this folder \u2014 edits stay narrow","app.sharedTree.body_other":"{{count}} other runs are active in this folder \u2014 edits stay narrow","app.connectorFailed":"connector failed: {{name}}","app.stepBudget.outputLength":"output length limit reached","app.stepBudget.steps":"step budget reached","app.stepBudget.hint":'send "continue" to keep going',"app.decision.allowed":"allowed","app.decision.denied":"denied","app.decision.awaiting":"awaiting approval","app.question.awaiting":"awaiting answer","app.question.label":"question","app.question.answered":"answered","app.question.dismissed":"dismissed","app.session.resumed":"resumed \u201C{{title}}\u201D","app.session.messages_one":"{{count}} message","app.session.messages_other":"{{count}} messages","app.session.fromOtherSurface":"from another surface","app.session.otherSurfaceRunning":"another surface is running this session\u2026","app.session.worksIn":"works in {{path}}","app.session.openWith":"open it with","app.session.switchedTo":"Switched to {{model}}","app.analytics.state":"analytics: {{state}}","app.analytics.stateChange":"analytics: {{state}} \xB7 /analytics to change","app.status.contextLeft":"{{percent}}% context left","app.status.defaultModel":"default model","app.status.aiSetupNeeded":"AI setup needed","app.status.aiReady":"AI ready","app.status.aiChecking":"AI checking","app.status.syncChecking":"sync checking","app.status.syncOn":"sync on","app.status.syncOff":"sync off"}});var SD,vD=L(()=>{"use strict";SD={"auth.title":"AI provider","auth.subtitle":"Choose how More AI Code reaches a model.","auth.stage.choose":"CHOOSE","auth.stage.method":"METHOD","auth.stage.connect":"CONNECT","auth.stage.disconnect":"DISCONNECT","auth.keychainNote":"Keys stay on this machine. CLI, desktop and VS Code share this profile.","auth.loading":"Finding available providers\u2026","auth.failedFooter":"Enter or Esc close \xB7 moreai doctor checks the engine","auth.section.found":"Found in your environment","auth.section.connected":"Connected","auth.section.popular":"Popular","auth.section.all":"All providers","auth.searchHint_one":"{{count}} provider \u2014 type a name","auth.searchHint_other":"{{count}} providers \u2014 type a name","auth.noMatch":"No provider matches \u201C{{query}}\u201D.","auth.tag.default":"default","auth.tag.custom":"custom","auth.tag.envFound":"{{name}} found","auth.way.signIn":"sign-in","auth.way.local":"local","auth.way.key":"key","auth.pickFooter.clear":"type to search \xB7 \u2191\u2193 choose \xB7 Enter open \xB7 Esc clear","auth.pickFooter.close":"type to search \xB7 \u2191\u2193 choose \xB7 Enter open \xB7 Esc close","auth.pickFooter.later":"type to search \xB7 \u2191\u2193 choose \xB7 Enter open \xB7 Esc later","auth.managedByAccount":"managed by your More AI account \u2014 use /login or `moreai login`","auth.method.env":"Use {{name}} from your environment","auth.method.oauth":"Sign in with your subscription (browser)","auth.method.keyless":"Connect to the local server","auth.method.key":"Paste an API key","auth.method.keyWithHint":"Paste an API key ({{hint}})","auth.method.disconnect":"Disconnect","auth.methodFooter":"\u2191\u2193 choose \xB7 Enter continue \xB7 Esc back","auth.status.signedIn":"signed in","auth.status.signedInAs":"signed in ({{account}})","auth.status.account":"account","auth.status.accountAs":"account ({{account}})","auth.status.local":"local","auth.status.apiKey":"api key","auth.statusLine":"{{provider}} \u2014 {{status}}","auth.statusLineDefault":"{{provider}} (default) \u2014 {{status}}","auth.connectedModels_one":"{{provider}} connected \u2014 {{count}} model","auth.connectedModels_other":"{{provider}} connected \u2014 {{count}} models","auth.connectedUnverified":"{{provider}} connected (key saved \u2014 endpoint has no /models to verify)","auth.signedIn":"{{provider}} signed in","auth.signedInAs":"{{provider}} signed in as {{account}}","auth.disconnected":"{{provider}} disconnected","auth.error.signInFailed":"sign-in failed","auth.error.olderHost":"this engine host has no provider setup (older build) \u2014 update the More AI desktop app / daemon","auth.key.title":"{{provider}} API key","auth.key.getOne":"get one: {{url}}","auth.key.label":"Key","auth.key.checking":"Checking the connection\u2026","auth.key.footer":"The key is hidden \xB7 Enter save \xB7 Esc back","auth.pasteHere":"paste here","auth.characters_one":"{{count}} character","auth.characters_other":"{{count}} characters","auth.oauth.title":"Sign in to {{provider}}","auth.oauth.open":"Open {{url}}","auth.oauth.codeLabel":"Code","auth.oauth.completing":"Completing sign-in\u2026","auth.oauth.codeFooter":"The code is hidden \xB7 Enter submit \xB7 Esc cancel","auth.oauth.enterCodeInBrowser":"Enter code in browser:","auth.oauth.waiting":"Waiting for browser approval\u2026 Esc cancel","auth.oauth.remoteHint":"Over SSH? The browser returns to localhost:{{port}} on this machine \u2014 forward it first from your computer: ssh -L {{port}}:localhost:{{port}} <this host>","auth.signIn.default":"Authorize in the browser, then paste the code it shows here.","auth.signIn.authorizeAnthropic":"Authorize in the browser, then copy the code Anthropic shows and paste it here.","auth.disconnect.confirm":"Disconnect {{provider}}?","auth.disconnect.footer":"Y or Enter confirm \xB7 N or Esc back","auth.cmd.hubOff":"the desktop app is running with its local hub OFF","auth.cmd.hubOffFix":"enable desktop app \u2192 Settings \u2192 Agent tools \u2192 External clients, then retry","auth.cmd.noEngine":"no engine is running \u2014 `moreai auth` starts one and connects a provider","auth.cmd.noneConnected":"no providers connected on this engine \u2014 run `moreai auth`","auth.cmd.connectedTitle":"Connected providers","auth.cmd.olderHost":"this engine host has no provider setup (older build) \u2014 update the More AI app","auth.cmd.statusFailed":"could not read provider status: {{error}}","auth.cmd.unknownAction":'moreai auth: unknown action "{{action}}" (try `moreai auth`, `moreai auth status` or `moreai auth env`)',"auth.cmd.envNone":"no provider API key in this environment (looked for {{names}}, \u2026)","auth.cmd.envNothingNew":"nothing to connect \u2014 every provider with a key in this environment is already connected","auth.cmd.envConnected_one":"{{provider}} connected with {{name}} \u2014 {{count}} model","auth.cmd.envConnected_other":"{{provider}} connected with {{name}} \u2014 {{count}} models","auth.cmd.envUnverified":"{{provider}} connected with {{name}} (not verified)","auth.cmd.envFailed":"{{provider}} ({{name}}): {{error}}","auth.cmd.needsTerminal":"moreai auth needs a terminal \u2014 use `moreai auth status` when piping","auth.cmd.doneConnected":"{{provider}} connected \u2014 run {{moreai}} in a repo, then {{model}} to choose a model","auth.cmd.doneReady":"ready \u2014 run {{moreai}} in a repo, then {{model}} to choose a model","auth.cmd.noProvider":"no provider connected","auth.account.title":"More AI account","auth.account.optional":"optional","auth.account.syncLine":"Your sessions on the web and phone, voice dictation, Gmail, Calendar and Drive.","auth.account.checking":"Checking sign-in\u2026","auth.account.step.email":"YOUR EMAIL","auth.account.step.approve":"APPROVE SIGN-IN","auth.account.step.verify":"VERIFY EMAIL","auth.account.emailLabel":"Email","auth.account.codeLabel":"Code","auth.account.sending":"Sending sign-in request\u2026","auth.account.emailFooter":"Enter continue \xB7 Esc close \xB7 own API keys work without an account","auth.account.emailFooterPurpose":"Enter continue \xB7 Esc back","auth.account.approveHint":"Open More AI on a signed-in device and match this code:","auth.account.sendingCode":"Sending an email code\u2026","auth.account.approveFooter":"Waiting for approval \xB7 Enter use email instead \xB7 Esc close","auth.account.codeSentTo":"Six-digit code sent to {{email}}","auth.account.checkingCode":"Checking code\u2026","auth.account.codeFooter":"Enter sign in \xB7 R resend code \xB7 Esc close","auth.account.connected":"Connected","auth.account.signedInFooter":"Sync starts automatically \xB7 Enter or Esc to close","auth.account.invalidEmail":"Enter a valid email address.","auth.account.invalidCode":"Enter the six-digit code from the latest email.","auth.account.approvalClaimed":"Approval was already claimed. Start sign-in again.","auth.account.approvalDenied":"Approval denied. Start sign-in again.","auth.account.approvalExpired":"Approval expired. Start sign-in again.","auth.account.error.notConfigured":"Account sign-in is unavailable on this engine. Update More AI Code or the running app.","auth.account.error.network":"Could not reach More AI. Check your connection and try again.","auth.account.error.keychain":"The system keyring is unavailable. Unlock it, then try again.","auth.account.error.rateLimited":"Too many attempts. Wait a little before trying again.","auth.account.error.emailSendFailed":"The email could not be sent. Try again shortly.","auth.account.error.invalidCode":"That code did not match. Check the latest email and try again.","auth.account.error.staleCode":"A newer code was sent. Check the latest email.","auth.account.error.expiredCode":"That code expired. Press R to request a new one.","auth.account.error.tooOld":"This engine is too old for account sign-in. Update it or restart the bundled engine.","auth.login.error.notConfigured":"account sign-in is unavailable on this engine; update More AI Code or the running desktop app","auth.login.error.network":"could not reach More AI \u2014 check your connection and try again","auth.login.error.rateLimited":"too many attempts \u2014 wait a little before trying again","auth.login.error.emailSendFailed":"the sign-in email could not be sent \u2014 try again shortly","auth.login.error.invalidCode":"incorrect code \u2014 check the latest email and try again","auth.login.error.staleCode":"this code was replaced by a newer one \u2014 use the latest email","auth.login.error.expiredCode":"the code expired \u2014 run `moreai login` to request a new one","auth.login.error.tooOld":"this engine is too old for account sign-in; update the desktop app, or close it so the CLI starts its bundled engine","auth.login.noSession":"approval was received, but this engine has no account session; run `moreai login` again","auth.login.signedInAs":"signed in as {{email}}","auth.login.alreadySignedIn":"already signed in as {{email}}","auth.login.syncNote":"account data and sessions will sync while the engine is running","auth.login.invalidCode":"enter the six-digit code from the latest More AI email","auth.login.invalidEmail":"enter a valid email address","auth.login.signInFailed":"sign-in failed: {{error}}","auth.login.startFailed":"could not start sign-in: {{error}}","auth.login.fallbackFailed":"could not send an email code: {{error}}","auth.login.emailCodeSent":"email code sent","auth.login.codeSent":"six-digit sign-in code sent to {{email}}","auth.login.approveOnDevice":"Approve this sign-in on a device already signed in to More AI:","auth.login.confirmationCode":"confirmation code {{code}}","auth.login.challengeId":"challenge id: {{id}}","auth.login.toWait":"To wait for approval:","auth.login.toFallback":"To get an email code instead:","auth.login.thenPipe":"then pipe the six-digit code into: {{command}}","auth.login.pipeCodeInto":"Pipe the code into: {{command}}","auth.login.pipeCodeHint":"Pipe the code into `{{command}}`.","auth.login.pressEnterForEmail":"Press Enter to get an email code instead:","auth.login.emailCodePrompt":"Six-digit email code:","auth.login.emailPrompt":"Email:","auth.login.codePrompt":"Code:","auth.login.approvalCheckFailed":"approval check failed: {{error}}","auth.login.approvalDenied":"sign-in approval denied","auth.login.approvalExpired":"sign-in approval expired","auth.login.approvalDeniedRetry":"sign-in approval denied; run `moreai login` to try again","auth.login.approvalExpiredRetry":"sign-in approval expired; run `moreai login` to try again","auth.login.approvalTimeout":"approval has not arrived; switching to an email code","auth.login.waiting":"Waiting for approval on your signed-in device\u2026","auth.login.stillPending":"approval still pending \u2014 retry with --wait, or use --fallback","auth.login.needsEmail":"moreai login: supply an email when not in a terminal, e.g. `moreai login you@example.com`","auth.login.codeStdinNeedsPipe":"moreai login: --code-stdin requires a code piped on stdin","auth.login.unfinished":"Sign-in unfinished. Run `moreai login` to try again.","auth.login.notSaved":"Sign-in approval was not saved by this engine. Run `moreai login` again.","auth.login.switchHint":"To switch accounts, run `moreai logout` first.","auth.login.nextConnectors":"Next, choose a service with `moreai connectors` in a terminal.","auth.login.chooseService":"Connect a service for your agent (optional \u2014 Esc skips):","auth.login.servicesLater":"No service connected \u2014 add Gmail, GitHub and others any time with `moreai connectors`.","auth.accountCmd.unknownAction":'moreai account: unknown action "{{action}}" (try `moreai account`)',"auth.accountCmd.signedOut":"signed out","auth.accountCmd.signedOutHint":"Run `moreai login` for account and session sync. You can still use `moreai auth` with your own keys.","auth.accountCmd.plan":"plan: {{plan}}","auth.accountCmd.planWithSync":"plan: {{plan}} \xB7 {{app}} sync","auth.accountCmd.planOffline":"current plan unavailable while offline","auth.accountCmd.syncNote":"sync starts automatically when this engine is running","auth.logout.noArgs":"moreai logout: no arguments expected","auth.logout.alreadySignedOut":"already signed out","auth.logout.done":"signed out of More AI on this engine","auth.logout.keysRemain":"Your own provider keys remain connected."}});var QD,bD=L(()=>{"use strict";QD={"cards.moreLines_one":"\u2026 +{{count}} line","cards.moreLines_other":"\u2026 +{{count}} lines","cards.diff.write":"Write({{path}})","cards.diff.edit":"Edit({{path}})","cards.diff.moreLines_one":"\u2026 +{{count}} more line","cards.diff.moreLines_other":"\u2026 +{{count}} more lines","cards.diff.truncated":"\u2026 diff truncated","cards.plan.heading":"Plan","cards.explore.live":"Exploring","cards.explore.done":"Explored","cards.explore.steps_one":"{{count}} step","cards.explore.steps_other":"{{count}} steps","cards.helpers.toolUses_one":"{{count}} tool use","cards.helpers.toolUses_other":"{{count}} tool uses","cards.helpers.tokens":"{{tokens}} tokens","cards.helpers.done":"Done","cards.helpers.failed":"Failed: {{error}}","cards.helpers.stopped":"Stopped","cards.helpers.progress":"{{done}}/{{total}} done","cards.helpers.background_one":"{{count}} helper working in the background","cards.helpers.background_other":"{{count}} helpers working in the background","cards.helpers.finished":"Helper finished","cards.elapsed.minutes":"{{minutes}}m{{seconds}}s","cards.elapsed.seconds":"{{seconds}}s","cards.permission.title":"Permission","cards.permission.allowOnce":"Allow once","cards.permission.allowSession":"Allow for this session","cards.permission.allowAlways":"Always allow","cards.permission.deny":"Deny","cards.permission.footer":"enter confirm \xB7 1\u2013{{max}} choose \xB7 esc deny","cards.permission.waiting":"read the request\u2026","cards.question.other":"Other\u2026","cards.question.otherHint":"type your own answer","cards.question.footerMulti":"space select \xB7 enter confirm \xB7 esc skip","cards.question.footerSingle":"enter select \xB7 esc skip","cards.planCard.title":"Plan ready","cards.planCard.hint":"approve to implement it (runs at auto access)","cards.planCard.build":"Build it now","cards.planCard.keepPlanning":"Keep planning","cards.analytics.title":"Help improve More AI","cards.analytics.explainer":`More AI collects usage analytics to find bugs and see which features work:
4
+ commands you use, errors, and how agent runs go. With AI traces on, run
5
+ content is included too, so failed runs can be debugged. API keys are never
6
+ sent. Change this any time: /analytics in a session, or \`moreai analytics off\`.`,"cards.analytics.all":"Share usage analytics and AI traces","cards.analytics.allDetail":"recommended \xB7 includes the content of your runs","cards.analytics.usage":"Share usage analytics only","cards.analytics.usageDetail":"events and error reports, no conversation content","cards.analytics.off":"Don\u2019t share anything","cards.analytics.offDetail":"turn analytics off","cards.analytics.footer":"\u2191\u2193 choose \xB7 Enter confirm","cards.analytics.footerCancel":"\u2191\u2193 choose \xB7 Enter confirm \xB7 Esc cancel","cards.analytics.state.envOff":"off \u2014 DO_NOT_TRACK / MOREAI_TELEMETRY=0 is set for the engine","cards.analytics.state.off":"off","cards.analytics.state.all":"on, with AI traces","cards.analytics.state.usage":"on, usage only (no conversation content)","cards.analytics.notice":"usage analytics are on. Turn them off with `moreai analytics off` or DO_NOT_TRACK=1.","cards.analytics.label":"analytics","cards.analytics.usageLine":"usage: moreai analytics [status|on|usage|off]","cards.analytics.unreachable":"could not reach the More AI engine: {{error}}","cards.analytics.verbs":"`moreai analytics on` \xB7 `usage` (no conversation content) \xB7 `off`"}});var RD,wD=L(()=>{"use strict";RD={"cli.help.title":"More AI Code \u2014 the terminal coding agent on your own keys.","cli.help.usage":"Usage","cli.help.run":"interactive session in the current repo","cli.help.runTask":"interactive, runs the task immediately","cli.help.print":"non-interactive: run once, print, exit","cli.help.sessions":"list this repo's sessions","cli.help.setup":"first-run account/provider setup","cli.help.cloud":"list your account's cloud sessions","cli.help.cloudRun":"move this folder to the cloud and run the task there","cli.help.cloudOpen":"show a cloud session and its link","cli.help.login":"sign in to More AI: sync, dictation, services","cli.help.account":"show account and sync status","cli.help.logout":"sign out of the More AI account","cli.help.auth":"connect an AI provider (API key or sign-in)","cli.help.authStatus":"list connected providers on the engine","cli.help.authEnv":"connect keys from ANTHROPIC_API_KEY, OPENAI_API_KEY\u2026","cli.help.connectors":"choose an external service from the catalog","cli.help.connectorsList":"list configured services","cli.help.connectorsCatalog":"list available services and their IDs","cli.help.connectorsAdd":"connect a catalog service or custom MCP URL","cli.help.connectorsAddToken":"read its token from stdin","cli.help.connectorsToggle":"turn a connected service on or off","cli.help.connectorsRemove":"disconnect a service and clear its credentials","cli.help.browserPair":"pair the Chrome extension with this engine","cli.help.browserStatus":"is a browser paired / connected right now?","cli.help.browserUnpair":"forget the paired browser","cli.help.doctor":"diagnose the engine connection","cli.help.update":"check this release channel for a new version","cli.help.updateInstall":"install that version with npm","cli.help.analytics":"show the usage-analytics setting","cli.help.analyticsSet":"change it (usage = no conversation content)","cli.help.headless":"Headless sign-in","cli.help.loginEmail":"send an email code or push request","cli.help.loginCode":"verify a code piped on stdin","cli.help.loginWait":"wait for push approval","cli.help.loginFallback":"email a code instead","cli.help.options":"Options","cli.help.optPrint":"non-interactive mode (stdout only, exit at settle)","cli.help.optJson":"with -p: one JSON event per line","cli.help.optContinue":"continue the most recent session for this repo","cli.help.optSession":"resume a specific session","cli.help.optModel":"model for this run (default: engine's default)","cli.help.optProvider":"provider serving --model (default: resolved from it)","cli.help.optMode":"{{modes}} (default: auto)","cli.help.optCwd":"working directory (default: current)","cli.help.optCloud":"run the task in a cloud session instead of here","cli.help.optFinish":"cloud: bring work back as pr | push | branch | folder","cli.help.optDetach":"cloud: start the task and return without following it","cli.help.optHelper":"hand the research to parallel helpers (@explore, @scout, @general)","cli.help.optLang":"interface language (ru, de, ja\u2026; default: as the app/system)","cli.help.optVersion":"print version","cli.help.optHelp":"this help","cli.help.inside":"Inside the session","cli.help.insideKeys":"Enter send \xB7 Ctrl+J newline \xB7 Esc interrupt \xB7 Shift+Tab cycle access mode","cli.help.insideCommands":"/ commands ({{commands}}) \xB7 \u2191\u2193 history","cli.help.insideSteer":"Type while the agent works to steer it mid-run.","cli.help.engine":`The CLI attaches to the shared More AI engine \u2014 the desktop app when it is
7
+ running (sessions live-sync both ways), or a bundled headless daemon otherwise.`,"cli.help.analyticsNote":"Usage analytics are on by default; the first session asks. DO_NOT_TRACK=1 or\nMOREAI_TELEMETRY=0 turns them off for a process, `moreai analytics off` for good.","cli.args.challengeNeedsId":"--challenge requires an id","cli.args.sessionNeedsId":"--session requires a session id","cli.args.modelNeedsId":"--model requires a model id","cli.args.providerNeedsId":"--provider requires a provider id","cli.args.modeInvalid":"--mode must be one of: {{modes}}","cli.args.cwdNeedsDir":"--cwd requires a directory","cli.args.unknownOption":"unknown option: {{option}}","cli.args.jsonNeedsPrint":"--json requires --print (-p)","cli.args.sessionAndContinue":"--session and --continue are mutually exclusive","cli.args.loginOnly":"--code-stdin, --challenge, --fallback and --wait are for `moreai login` only","cli.args.tokenStdinNeedsAdd":"--token-stdin requires `moreai connectors add <id-or-url>`","cli.args.installUpdateOnly":"--install is for `moreai update` only","cli.args.updateNoArgs":"`moreai update` takes no arguments","cli.args.codeStdinWithChallenge":"--code-stdin cannot be combined with a push challenge option","cli.args.fallbackNeedsChallenge":"--fallback requires --challenge <id>","cli.args.waitNeedsChallenge":"--wait requires --challenge <id>","cli.args.fallbackAndWait":"--fallback and --wait are mutually exclusive","cli.args.challengeWithEmail":"give an email only when starting or verifying login, not with --challenge","cli.args.finishInvalid":"--finish must be one of: {{finishes}}","cli.args.cloudOnlyRun":'--cloud, --finish and --detach are for running a task in the cloud (`moreai cloud run "task"`)',"cli.main.tryHelp":"try: moreai --help","cli.main.printNeedsTask":"--print needs a task (argument or piped stdin)","cli.main.needsTerminal":"interactive mode needs a terminal \u2014 use -p/--print when piping","cli.engineUnreachable":"could not reach the More AI engine: {{message}}","cli.doctor.label.backend":"backend","cli.doctor.label.dataDir":"data dir","cli.doctor.label.daemon":"daemon","cli.doctor.label.engine":"engine","cli.doctor.label.lookedIn":"looked in","cli.doctor.label.discovery":"discovery","cli.doctor.label.health":"health","cli.doctor.label.endpoint":"endpoint","cli.doctor.label.account":"account","cli.doctor.label.providers":"providers","cli.doctor.label.services":"services","cli.doctor.label.details":"details","cli.doctor.daemonReady":"bundled and ready","cli.doctor.daemonMissing":"missing from this install","cli.doctor.noneDiscovered":"none discovered","cli.doctor.engineNone":"{{status}} \u2014 no desktop app or daemon has published a hub","cli.doctor.launchHint":"Launching `moreai` will start its bundled headless engine automatically.","cli.doctor.setupHint":"Run `moreai setup` to sign in and connect an AI provider without the desktop app.","cli.doctor.alive":"alive","cli.doctor.dead":"dead","cli.doctor.discovery":"pid {{pid}} ({{state}}) \xB7 port {{port}} \xB7 started {{started}}","cli.doctor.hubOff":"desktop app is running with its local hub OFF","cli.doctor.hubOffTitle":"The CLI cannot attach until the hub is enabled:","cli.doctor.hubOffSteps":"desktop app \u2192 Settings \u2192 Agent tools \u2192 External clients \u2014 turn it on.","cli.doctor.hubOffClose":"Or close the desktop app to let the CLI run its bundled headless engine.","cli.doctor.healthOk":"ok \u2014 hub is reachable","cli.doctor.healthIncompatible":"engine is running with an incompatible protocol","cli.doctor.healthStale":"unreachable (stale discovery record)","cli.doctor.signedIn":"signed in","cli.doctor.signedOut":"signed out \u2014 `moreai login`","cli.doctor.unavailable":"unavailable on this engine","cli.doctor.providersConnected_one":"{{count}} connected","cli.doctor.providersConnected_other":"{{count}} connected","cli.doctor.servicesReady_one":"{{count}} ready","cli.doctor.servicesReady_other":"{{count}} ready","cli.doctor.detailsFailed":"could not inspect account/provider setup","cli.doctor.readyWord":"Ready.","cli.doctor.ready":"{{ready}} `moreai` will attach to this engine.","cli.doctor.updateBoth":"Update the CLI and desktop app, or close the older engine before starting the bundled one.","cli.doctor.staleRecord":"The record looks stale \u2014 `moreai` will spawn a fresh headless engine.","cli.print.openedBrowser":"opened browser: {{url}}","cli.print.doctorHint":"run `moreai doctor` for diagnostics","cli.print.sessionGone":"session disappeared before the run started","cli.print.outputDiverged":"saved output diverged from streamed output; resume the session to read the complete answer","cli.print.replayNoSession":"run replay unavailable: session id is missing","cli.print.replayUnavailable":"run replay unavailable; reopen session {{id}} to inspect its result","cli.print.planTitle":"Plan presented","cli.print.planDetail":"run interactively (or in the desktop app) to approve and build it","cli.print.held":"held: {{command}}","cli.print.connectorFailed":"connector failed: {{name}}","cli.print.sharedTree":"shared working tree","cli.print.othersActive_one":"{{count}} other run is active in this folder \u2014 edits stay narrow","cli.print.othersActive_other":"{{count}} other runs are active in this folder \u2014 edits stay narrow","cli.print.declined":"declined: {{title}}","cli.print.declinedDetail":"non-interactive run \u2014 approvals need the TUI or the desktop app","cli.print.outputLimit":"output length limit reached","cli.print.stepBudget":"step budget reached","cli.print.continueHint":"run again with -c to continue this session","cli.print.runError":"error ({{code}}): {{message}}","cli.print.reconnectFailed":"connection could not be restored","cli.print.reconnectFailedSession":"connection could not be restored; reopen session {{id}} to inspect the result","cli.print.startFailed":"failed to start: {{message}}","cli.setup.needsTerminal":"moreai setup needs a terminal. For scripts, run `moreai login <email>` and `moreai auth` separately.","cli.setup.tagline":"Your coding workspace, wherever you open a terminal.","cli.setup.fullTitle":"Account + service + model","cli.setup.fullDetail":"Sync your work, connect a service, and start coding","cli.setup.modelTitle":"Model only","cli.setup.modelDetail":"Use your own API key or provider sign-in","cli.setup.accountTitle":"Account + service","cli.setup.accountDetail":"Sync now; connect a model later","cli.setup.select":"Select","cli.setup.invalidChoice":"Choose 1, 2 or 3 (01, 02 and 03 also work).","cli.setup.stepAccount":"{{step}} / Account","cli.setup.stepModel":"{{step}} / Model","cli.setup.accountUnfinished":"Account or service setup is unfinished. Run `moreai login` when ready.","cli.setup.modelUnfinished":"Model setup is unfinished. Run `moreai auth` when ready.","cli.setup.analytics":"Analytics","cli.setup.analyticsSet":"Analytics {{state}} \xB7 change with {{command}}","cli.setup.accountReady":"Account ready \xB7 sync starts while the engine runs","cli.setup.modelReady":"Model ready \xB7 open a project and run {{command}}","cli.setup.modelLater":"Connect a model later with `moreai auth`.","cli.update.failed":"moreai update: {{message}}","cli.update.registryReplied":"npm registry replied {{status}}","cli.update.notPublished":"No {{channel}} version of {{package}} is published yet. Current: {{version}}.","cli.update.current":"More AI Code {{version}} is current on {{channel}}.","cli.update.runInstall":"Run {{install}} or {{npm}}.","cli.update.notice":"More AI Code {{version}} is available \xB7 moreai update --install","cli.browser.notRunning":"the browser bridge is not running on this engine","cli.browser.enableHint":"enable it in the desktop app (Settings \u2192 Browser \u2192 Personal browser)","cli.browser.connected":"a browser is connected","cli.browser.pairedIdle":"paired, but no browser is connected","cli.browser.notPaired":"no browser paired yet \u2014 run {{command}}","cli.browser.unknownCommand":"unknown browser command: {{command}} \u2014 try pair, status or unpair","cli.browser.forgotten":"the paired browser has been forgotten","cli.browser.noBridge":"this engine is not running a browser bridge \u2014 nothing to pair with","cli.browser.pairingCode":"pairing code {{code}}","cli.browser.pairingHint_one":"open the More AI side panel in Chrome and type it \u2014 expires in {{count}} min","cli.browser.pairingHint_other":"open the More AI side panel in Chrome and type it \u2014 expires in {{count}} min","cli.sessions.justNow":"just now","cli.sessions.minutesAgo_one":"{{count}}m ago","cli.sessions.minutesAgo_other":"{{count}}m ago","cli.sessions.hoursAgo_one":"{{count}}h ago","cli.sessions.hoursAgo_other":"{{count}}h ago","cli.sessions.daysAgo_one":"{{count}}d ago","cli.sessions.daysAgo_other":"{{count}}d ago","cli.sessions.none":"no sessions for {{path}} yet \u2014 run `moreai` to start one","cli.sessions.count_one":"{{count}} session \xB7 {{path}}","cli.sessions.count_other":"{{count}} sessions \xB7 {{path}}","cli.errorHint.noProvider":"No AI provider is connected yet. Run /auth here (or `moreai auth`) to paste an API key,\nsign in with a subscription or use a local model. A key already in ANTHROPIC_API_KEY,\nOPENAI_API_KEY\u2026 connects with `moreai auth env`.","cli.errorHint.noModel":"The provider has no usable model \u2014 pass one with --model <id> or pick one in the desktop app.","cli.errorHint.disconnected":"The engine went away mid-run (desktop app quit or daemon stopped). Run `moreai doctor` to check, then retry \u2014 the session is persisted.","cli.errorHint.harnessProvider":"The session\u2019s coding agent cannot drive this model\u2019s provider. Pick a compatible model (`/model`), or switch the agent with `/harness native`.","cli.errorHint.unsupported":"This engine host does not support the operation (an older desktop build?). Update the More AI desktop app.","cli.model.ambiguous":`several connected providers offer "{{model}}" ({{providers}}) \u2014 add --provider <id> to choose; running on the engine's default for now`,"cli.model.severalForAgent":"Several providers offer {{model}}; select one with --provider.","cli.model.cannotVerify":"Could not verify providers for this coding agent. Reconnect the engine and try again.","cli.model.notOffered":"The model {{model}} is not offered by a connected provider. Select a compatible provider first.","cli.model.claudeNeedsSelectedKey":"Claude Agent requires a selected Anthropic API key or Z.ai Coding Plan key.","cli.model.needsApiKey":"{{provider}} needs a connected API key for this coding agent.","cli.model.notOfferedBy":"{{model}} is not offered by {{provider}}. Choose a compatible model before running.","cli.model.claudeNeedsKey":"Claude Agent requires an Anthropic API key or Z.ai Coding Plan key.","cli.model.codexNeedsKey":"Codex needs an OpenAI, OpenRouter or Z.ai Coding Plan API key.","cli.model.opencodeProtocol":"{{provider}} has no verified local OpenCode protocol.","cli.session.notFound":"session not found: {{id}}","cli.session.defaultTitle":"{{name}} session","cli.session.fallbackName":"session"}});var xD,DD=L(()=>{"use strict";xD={"cloud.list.title":"Cloud sessions","cloud.list.empty":'No cloud sessions yet \u2014 `moreai cloud run "task"` moves this folder into one.',"cloud.list.hint":"Open one: moreai cloud open <id> \xB7 in a browser: {{url}}","cloud.status.queued":"queued","cloud.status.scheduled":"scheduled","cloud.status.running":"working","cloud.status.awaiting_user":"needs you","cloud.status.done":"done","cloud.status.error":"failed","cloud.status.cancelled":"stopped","cloud.status.idle":"idle","cloud.signedOut":"Cloud runs use your More AI account \u2014 sign in first: `moreai login` (or /login in a session).","cloud.olderEngine":"This engine cannot run cloud sessions yet \u2014 update the More AI app (or close it so the CLI starts its own engine).","cloud.noModel":"No model is available for cloud runs on this account. Upload a provider key in the More AI app (Settings \u2192 Privacy) or check your plan.","cloud.blocked":"This folder cannot move to the cloud: {{reason}}","cloud.run.moving":"Moving {{name}} to the cloud","cloud.run.repository":"branch {{branch}} \xB7 {{changes}} \xB7 {{history}}","cloud.run.changes_one":"{{count}} changed file","cloud.run.changes_other":"{{count}} changed files","cloud.run.folder_one":"folder \xB7 {{count}} file","cloud.run.folder_other":"folder \xB7 {{count}} files","cloud.run.historyFull":"full history","cloud.run.historySnapshot":"latest commit only (history too large)","cloud.run.skippedSecrets":"left behind (look like secrets): {{files}}","cloud.run.model":"model {{model}}","cloud.run.modelPlan":"{{model}} \xB7 your More AI plan","cloud.run.modelKey":"{{model}} \xB7 your {{provider}} key in the cloud","cloud.stage.packaging":"packaging","cloud.stage.uploading":"uploading {{loaded}} / {{total}}","cloud.stage.summarizing":"summarizing this session for the cloud agent","cloud.stage.creating":"starting the cloud session","cloud.run.started":"Cloud session started \u2014 watch or continue in the browser:","cloud.run.workBack":"The work comes back on branch {{branch}} when the task finishes.","cloud.run.detached":"Following stopped \u2014 the task keeps running in the cloud. Open it again with: moreai cloud open {{id}}","cloud.follow.working":"working in the cloud","cloud.follow.step":"step {{step}}","cloud.follow.needsYou":"The task needs you \u2014 answer in the browser: {{url}}","cloud.follow.done":"done in the cloud \xB7 {{elapsed}}","cloud.follow.failed":"the cloud task failed: {{error}}","cloud.follow.stopped":"the cloud task was stopped","cloud.finish.working":"Bringing the work back\u2026","cloud.finish.branch":"Work is on local branch {{branch}} ({{commits}} commits) \u2014 your branch was not touched.","cloud.finish.pushed":"Branch {{branch}} pushed to {{remote}}.","cloud.finish.pullRequest":"Pull request: {{url}}","cloud.finish.openForm":"Open the pull request: {{url}}","cloud.finish.folder_one":"{{count}} file updated in this folder.","cloud.finish.folder_other":"{{count}} files updated in this folder.","cloud.finish.conflicts":"Kept your edits in: {{files}}","cloud.finish.unchanged":"The task changed nothing \u2014 there is nothing to bring back.","cloud.finish.fromCloud":"The pull request is opened from the cloud \u2014 see the session page.","cloud.finish.failed":"Could not bring the work back ({{step}}): {{error}}","cloud.finish.retry":"Try again: moreai cloud finish {{id}}","cloud.finish.none":"Nothing to bring back from this computer for that session.","cloud.open.notFound":"No cloud session {{id}} on this account.","cloud.open.prompt":"You","cloud.open.answer":"Agent","cloud.models.title":"Models for cloud runs","cloud.models.plan":"your More AI plan","cloud.models.key":"your {{provider}} key","cloud.models.recommended":"recommended","cloud.models.hint":'Pick one with: moreai cloud run -m <model> "task"',"cloud.usage":'usage: moreai cloud [list | open <id> | run "task" | finish <id> | cancel <id> | models]',"cloud.needsTask":'moreai cloud run needs a task: moreai cloud run "fix the failing tests"',"cloud.needsId":"moreai cloud {{action}} needs a session id (see `moreai cloud`)","cloud.cancelled":"Asked the cloud to stop the task.","cloud.cancelFailed":"Could not stop the task."}});var TD,_D=L(()=>{"use strict";TD={"common.language.title":"Language","common.language.current":"now {{name}}","common.language.search":"languages\u2026","common.language.auto":"Automatic","common.language.autoDetail":"as the desktop app and your system \u2014 {{name}}","common.language.footer":"\u2191\u2193 move \xB7 Enter choose \xB7 Esc close","common.language.note":"Slash commands, flags and keys stay in English.","common.language.switched":"Language: {{name}}","common.language.switchedAuto":"Language follows the desktop app and your system \u2014 {{name}}","common.language.unknown":"Unknown language \u201C{{tag}}\u201D. /language lists the {{count}} available.","common.search":"Search","common.noMatch":"Nothing matches \u201C{{query}}\u201D."}});var ND,MD=L(()=>{"use strict";ND={"composer.placeholder.idle":"Ask about this repository or describe a task\u2026","composer.placeholder.running":"Add direction while the agent works\u2026","composer.hint.idle":"Enter send \xB7 / commands \xB7 Shift+Tab access \xB7 Ctrl+J newline \xB7 Ctrl+T voice","composer.hint.running":"Enter steer \xB7 Esc interrupt","composer.hint.paste":"Enter send \xB7 Ctrl+O expand paste \xB7 Backspace removes it","composer.hint.escAgain":"Esc again to clear the draft","composer.moreLines_one":"{{count}} more line","composer.moreLines_other":"{{count}} more lines","composer.menu.more_one":"{{count}} more","composer.menu.more_other":"{{count}} more","composer.menu.footer":"\u2191\u2193 select \xB7 Tab complete \xB7 Enter run \xB7 Esc close","composer.pasted.label":"Pasted text #{{n}}","composer.pasted.short":"Pasted text","composer.pasted.lines_one":"{{n}} line","composer.pasted.lines_other":"{{n}} lines","composer.pasted.chars_one":"{{n}} char","composer.pasted.chars_other":"{{n}} chars"}});var OD,HD=L(()=>{"use strict";OD={"connectors.title":"Connectors","connectors.subtitle":"services your agent can use","connectors.loading":"Loading your services\u2026","connectors.closeHint":"Enter or Esc close","connectors.searchPlaceholder":"services, categories\u2026","connectors.found_one":"{{count}} found","connectors.found_other":"{{count}} found","connectors.onCount_one":"{{count}} on","connectors.onCount_other":"{{count}} on","connectors.inCatalog_one":"{{count}} in catalog","connectors.inCatalog_other":"{{count}} in catalog","connectors.noMatch":"Nothing matches \u201C{{query}}\u201D. Try a service name or a category.","connectors.footer":"type to search \xB7 \u2191\u2193 move \xB7 Enter connect \xB7 Space on/off \xB7 ^D disconnect \xB7 Esc close","connectors.footerShort":"type \xB7 \u2191\u2193 \xB7 Enter connect \xB7 Space on/off \xB7 ^D remove \xB7 Esc","connectors.confirmDisconnect":"Ctrl+D again to disconnect","connectors.section.connected":"Connected","connectors.state.on":"on","connectors.state.off":"off","connectors.state.needsAuth":"sign in needed","connectors.state.needsAccount":"More AI account","connectors.state.needsAddress":"needs your address","connectors.state.apiKey":"API key","connectors.state.open":"no sign-in","connectors.state.signIn":"sign in","connectors.connected":"{{name}} connected","connectors.connectedTools_one":"{{name}} connected \u2014 {{count}} tool","connectors.connectedTools_other":"{{name}} connected \u2014 {{count}} tools","connectors.turnedOn":"{{name}} turned on","connectors.turnedOff":"{{name}} turned off","connectors.disconnected":"{{name}} disconnected","connectors.isConnected":"{{name}} is connected \u2014 Space turns it off, Ctrl+D disconnects","connectors.isConnectedAs":"{{name}} is connected as {{account}} \u2014 Space turns it off, Ctrl+D disconnects","connectors.error.engineTooOld":"This engine is too old for this. Update More AI Code or the desktop app.","connectors.error.signInUnfinished":"Sign-in did not finish.","connectors.error.addedInDesktop":"{{name}} was added in the desktop app \u2014 reconnect it there.","connectors.error.addedInDesktopUnnamed":"This service was added in the desktop app \u2014 reconnect it there.","connectors.tenant.footer":"Enter continue \xB7 Esc back","connectors.token.label":"API key or token","connectors.token.placeholder":"paste token here","connectors.token.testing":"Testing connection\u2026","connectors.token.footer":"Enter connect \xB7 Esc back \xB7 the key stays in this machine\u2019s keychain","connectors.wait.signIn":"Sign in to {{name}} in your browser\u2026","connectors.wait.url":"If no browser opened: {{url}}","connectors.wait.google":"Google services connect to your More AI account \u2014 they work on every device.","connectors.wait.waiting":"Waiting for authorization\u2026","connectors.wait.footer":"Esc back to the list (the sign-in keeps waiting)","connectors.account.title":"{{name}} needs a More AI account","connectors.account.required":"{{name}} connects through your More AI account. Sign in once \u2014 it then works here, in the desktop app, on the web, on your phone and in cloud runs.","connectors.account.preferred":"{{name}} keeps its sign-in with your More AI account, so it works on every device and in cloud runs. Sign in to continue.","connectors.account.signIn":"Sign in to More AI and connect","connectors.account.signInDetail":"recommended \u2014 free, takes a minute with an email code","connectors.account.deviceOnly":"Connect on this computer only","connectors.account.deviceOnlyDetail":"no account \u2014 it will not reach your other devices or cloud runs","connectors.account.connecting":"Connecting\u2026","connectors.account.footer":"Enter choose \xB7 {{keys}} pick \xB7 Esc back","connectors.cmd.usage":"use `list`, `catalog`, `add <id-or-url>`, `on <id>`, `off <id>` or `remove <id>`","connectors.cmd.addNeedsId":"provide an id from `moreai connectors catalog` or a URL","connectors.cmd.needsId":"provide an id from `moreai connectors list`","connectors.cmd.unexpectedArgument":"unexpected argument: {{arg}}","connectors.cmd.urlTakesNoTenant":"custom URLs take no tenant argument","connectors.cmd.needsTerminal":"moreai connectors needs a terminal; use `moreai connectors list` to inspect connections","connectors.cmd.catalogTitle":"Available services","connectors.cmd.connected":"connected","connectors.cmd.noneConfigured":"no services configured \u2014 run `moreai connectors` to choose one","connectors.cmd.listTitle":"External services","connectors.cmd.ready":"ready","connectors.cmd.disabled":"disabled","connectors.cmd.needsSignIn":"needs sign-in","connectors.cmd.notFound":"connector not found: {{id}}","connectors.cmd.disconnected":"disconnected {{name}}","connectors.cmd.tokenNeedsPipe":"--token-stdin needs piped input","connectors.cmd.tokenEmpty":"stdin did not contain a token","connectors.cmd.signInFirst":"Sign in with `moreai login`, then run this again \u2014 or open `moreai connectors` to connect it on this computer only.","connectors.cmd.signInPage":"Sign-in page: {{url}}","connectors.cmd.pendingElsewhere":"Browser sign-in is pending. Finish it on an interactive client, then run `moreai connectors list`.","connectors.cmd.waiting":"Finish sign-in in your browser. Waiting for the connection\u2026","connectors.cmd.connectedId":"connected {{id}}","connectors.cmd.toolsAvailable_one":"{{count}} tool available","connectors.cmd.toolsAvailable_other":"{{count}} tools available","connectors.cmd.signInUnfinished":"sign-in did not finish","connectors.cmd.timedOut":"sign-in timed out; run `moreai connectors` to try again","connectors.cmd.serviceReady":"service ready \u2014 use its tools from {{command}}","connectors.cmd.noneChosen":"No service chosen. Run `moreai connectors` when ready.","connectors.cmd.engineTooOld":"this engine is too old for connectors; update the desktop app or restart the bundled daemon"}});var kD,UD=L(()=>{"use strict";kD={"connectors.category.automation":"Automation","connectors.category.cms":"CMS & web","connectors.category.crm":"CRM","connectors.category.data":"Data & analytics","connectors.category.database":"Database","connectors.category.design":"Design","connectors.category.dev":"Software development","connectors.category.docs":"Documentation","connectors.category.lifestyle":"Travel & lifestyle","connectors.category.marketing":"Marketing","connectors.category.meetings":"Meetings & notes","connectors.category.other":"Other","connectors.category.payments":"Payments","connectors.category.pm":"Project management","connectors.category.productivity":"Productivity","connectors.category.research":"Research & science","connectors.category.search":"Search & research","connectors.category.storage":"Storage & assets","connectors.category.support":"Customer support","subagents.backgrounded":"Continued in the background \u2014 its report arrives in a later turn.","subagents.clear":"Clear subagent","subagents.done":"{{total}} done","subagents.menuTitle":"Subagents","subagents.none":"No subagents \u2014 manage them in Settings","subagents.nowLabel":"Now:","subagents.running":"{{running}} running \xB7 {{total}}","subagents.thinking":"Thinking\u2026","subagents.title":"Sub-agents","subagents.tokens":"{{value}} tokens","subagents.tools_one":"{{count}} tool","subagents.tools_other":"{{count}} tools","toolSteps.actionFailed":"Failed: {{action}}","toolSteps.actions.browser.done":"Browser used","toolSteps.actions.browser.group":"Browser actions","toolSteps.actions.browser.running":"Using browser","toolSteps.actions.command.done":"Command executed","toolSteps.actions.command.group":"Commands executed","toolSteps.actions.command.running":"Running command","toolSteps.actions.connector.done":"Connected app used","toolSteps.actions.connector.group":"Connected app actions","toolSteps.actions.connector.running":"Using connected app","toolSteps.actions.context.done":"Context action completed","toolSteps.actions.context.group":"Context actions","toolSteps.actions.context.running":"Managing context","toolSteps.actions.create.done":"File created","toolSteps.actions.create.group":"Files created","toolSteps.actions.create.running":"Creating file","toolSteps.actions.delete.done":"File deleted","toolSteps.actions.delete.group":"Files deleted","toolSteps.actions.delete.running":"Deleting file","toolSteps.actions.document.done":"Document processed","toolSteps.actions.document.group":"Documents processed","toolSteps.actions.document.running":"Working with document","toolSteps.actions.edit.done":"File edited","toolSteps.actions.edit.group":"Files edited","toolSteps.actions.edit.running":"Editing file","toolSteps.actions.history.done":"Conversation history searched","toolSteps.actions.history.group":"History searches","toolSteps.actions.history.running":"Searching conversation history","toolSteps.actions.image.done":"Image generated","toolSteps.actions.image.group":"Images generated","toolSteps.actions.image.running":"Generating image","toolSteps.actions.list.done":"Folder listed","toolSteps.actions.list.group":"Folders listed","toolSteps.actions.list.running":"Listing folder","toolSteps.actions.memory.done":"Memory action completed","toolSteps.actions.memory.group":"Memory actions","toolSteps.actions.memory.running":"Working with memory","toolSteps.actions.permission.done":"Access requested","toolSteps.actions.permission.group":"Access requests","toolSteps.actions.permission.running":"Requesting access","toolSteps.actions.process.done":"Process action completed","toolSteps.actions.process.group":"Process actions","toolSteps.actions.process.running":"Managing process","toolSteps.actions.read.done":"File read","toolSteps.actions.read.group":"Files read","toolSteps.actions.read.running":"Reading file","toolSteps.actions.readMany.done":"Files read","toolSteps.actions.readMany.group":"Files read","toolSteps.actions.readMany.running":"Reading files","toolSteps.actions.search.done":"Search completed","toolSteps.actions.search.group":"Searches completed","toolSteps.actions.search.running":"Searching","toolSteps.actions.skill.done":"Skill used","toolSteps.actions.skill.group":"Skills used","toolSteps.actions.skill.running":"Loading skill","toolSteps.actions.tool.done":"Action completed","toolSteps.actions.tool.group":"Actions","toolSteps.actions.tool.running":"Performing action","toolSteps.actions.write.done":"File saved","toolSteps.actions.write.group":"Files saved","toolSteps.actions.write.running":"Saving file","toolSteps.addSheet.done":"Added sheet {{name}}","toolSteps.addSheet.running":"Adding sheet {{name}}","toolSteps.addSlide.done":"Added a slide from {{name}}","toolSteps.addSlide.running":"Adding a slide from {{name}}","toolSteps.aggregateRange.done":"Aggregated a range in {{path}}","toolSteps.aggregateRange.running":"Aggregating a range in {{path}}","toolSteps.applyPatch.done":"Edited {{path}}","toolSteps.applyPatch.running":"Editing {{path}}","toolSteps.browserBatch.done":"Browser steps done ({{query}})","toolSteps.browserBatch.running":"Browser steps ({{query}})","toolSteps.browserClick.done":"Clicked {{name}}","toolSteps.browserClick.running":"Clicking {{name}}","toolSteps.browserDevtools.done":"Browser log read","toolSteps.browserDevtools.running":"Reading the browser log","toolSteps.browserDownload.done":"Downloaded file","toolSteps.browserDownload.running":"Getting the downloaded file","toolSteps.browserDrag.done":"Dragged {{name}}","toolSteps.browserDrag.running":"Dragging {{name}}","toolSteps.browserEval.done":"JavaScript ran","toolSteps.browserEval.running":"Running JavaScript in the page","toolSteps.browserFind.done":"Found on the page: {{query}}","toolSteps.browserFind.running":"Finding on the page: {{query}}","toolSteps.browserGeneratePassword.done":"Password created","toolSteps.browserGeneratePassword.running":"Creating a password for the new account","toolSteps.browserHandoff.done":"You finished the step in Chrome","toolSteps.browserHandoff.running":"Waiting for you in Chrome","toolSteps.browserHover.done":"Hovered over {{name}}","toolSteps.browserHover.running":"Hovering over {{name}}","toolSteps.browserNavigate.done":"Browsed {{query}}","toolSteps.browserNavigate.running":"Browsing {{query}}","toolSteps.browserObservePage.done":"Read cloud browser page","toolSteps.browserObservePage.running":"Reading cloud browser page","toolSteps.browserOpenLink.done":"Followed link on {{query}}","toolSteps.browserOpenLink.running":"Following link on {{query}}","toolSteps.browserOpenResult.done":"Opened search result from {{query}}","toolSteps.browserOpenResult.running":"Opening search result from {{query}}","toolSteps.browserPress.done":"Pressed {{name}}","toolSteps.browserPress.running":"Pressing {{name}}","toolSteps.browserReadPage.done":"Read the page","toolSteps.browserReadPage.running":"Reading the page","toolSteps.browserRequestTakeover.done":"Asked you to take control of cloud browser","toolSteps.browserRequestTakeover.running":"Asking you to take control of cloud browser","toolSteps.browserResize.done":"Device viewport applied","toolSteps.browserResize.running":"Switching the page to another device","toolSteps.browserScreenshot.done":"Screenshot taken","toolSteps.browserScreenshot.running":"Screenshotting the page","toolSteps.browserScroll.done":"Scrolled the page","toolSteps.browserScroll.running":"Scrolling the page","toolSteps.browserScrollPage.done":"Scrolled cloud browser page","toolSteps.browserScrollPage.running":"Scrolling cloud browser page","toolSteps.browserSearch.done":"Searched in cloud browser: {{query}}","toolSteps.browserSearch.running":"Searching in cloud browser: {{query}}","toolSteps.browserTabs.done":"Browser tabs updated","toolSteps.browserTabs.running":"Managing browser tabs","toolSteps.browserType.done":"Typed in the browser","toolSteps.browserType.running":"Typing in the browser","toolSteps.browserUpload.done":"File attached","toolSteps.browserUpload.running":"Attaching the file","toolSteps.browserVisit.done":"Opened {{query}} in cloud browser","toolSteps.browserVisit.running":"Opening {{query}} in cloud browser","toolSteps.cached":"cached","toolSteps.cancelCheck.done":"Cancelled scheduled check","toolSteps.cancelCheck.running":"Cancelling scheduled check","toolSteps.capturePage.done":"Captured {{query}}","toolSteps.capturePage.running":"Capturing {{query}}","toolSteps.charm.0":"Still working \u2014 this one is taking a moment\u2026","toolSteps.charm.1":"Still on it \u2014 large task in progress\u2026","toolSteps.charm.2":"Not stuck, just thorough\u2026","toolSteps.checkContext.done":"Checked remaining context","toolSteps.checkContext.running":"Checking remaining context","toolSteps.cleanup.done":"Cleaned up temporary files ({{count}})","toolSteps.cleanup.running":"Cleaning up temporary files ({{count}})","toolSteps.codeMode.done":"Ran a program ({{count}} lines)","toolSteps.codeMode.running":"Running a program ({{count}} lines)","toolSteps.computerAccess.done":"Asked to use {{name}}","toolSteps.computerAccess.running":"Asking to use {{name}}","toolSteps.computerApps.done":"Checked your apps","toolSteps.computerApps.running":"Checking your apps","toolSteps.computerHandoff.done":"Handed you a step in {{name}}","toolSteps.computerHandoff.running":"Waiting for you in {{name}}","toolSteps.computerUse.done":"Used {{name}}","toolSteps.computerUse.running":"Using {{name}}","toolSteps.connectorCall.done":"Connector tool: {{name}}","toolSteps.connectorCall.running":"Starting connector tool: {{name}}","toolSteps.connectorFetch.done":"Fetched: {{url}}","toolSteps.connectorFetch.running":"Fetching: {{url}}","toolSteps.connectorFind.done":"Found connector tools: {{query}}","toolSteps.connectorFind.running":"Finding connector tools: {{query}}","toolSteps.connectorInspect.done":"Tool details: {{name}}","toolSteps.connectorInspect.running":"Reading tool details: {{name}}","toolSteps.connectorSearch.done":"Searched: {{query}}","toolSteps.connectorSearch.running":"Searching: {{query}}","toolSteps.connectorTools.done":"Connector tools found","toolSteps.connectorTools.running":"Choosing a connector tool","toolSteps.convertMedia.done":"Converted {{path}}","toolSteps.convertMedia.running":"Converting {{path}}","toolSteps.createPr.done":"Opened pull request: {{name}}","toolSteps.createPr.running":"Opening pull request: {{name}}","toolSteps.delegate.done":"Finished sub-tasks ({{count}})","toolSteps.delegate.running":"Running sub-tasks ({{count}})","toolSteps.deleteFile.done":"Deleted {{path}}","toolSteps.deleteFile.running":"Deleting {{path}}","toolSteps.details":"Details","toolSteps.diskCleanup.done":"Disk cleanup","toolSteps.diskCleanup.running":"Disk cleanup","toolSteps.documentInventory.done":"Mapped {{path}}","toolSteps.documentInventory.running":"Mapping {{path}}","toolSteps.editCells.done":"Edited cells in {{path}}","toolSteps.editCells.running":"Editing cells in {{path}}","toolSteps.editDocument.done":"Edited document {{path}}","toolSteps.editDocument.running":"Editing document {{path}}","toolSteps.editFile.done":"Edited {{path}}","toolSteps.editFile.running":"Editing {{path}}","toolSteps.editPdf.done":"Edited PDF {{path}}","toolSteps.editPdf.running":"Editing PDF {{path}}","toolSteps.editSlide.done":"Edited slide in {{path}}","toolSteps.editSlide.running":"Editing slide in {{path}}","toolSteps.extraToolCall.done":"Extra tool: {{name}}","toolSteps.extraToolCall.running":"Running extra tool: {{name}}","toolSteps.extraToolInspect.done":"Tool details: {{name}}","toolSteps.extraToolInspect.running":"Reading tool details: {{name}}","toolSteps.fetchUrl.done":"Fetched {{query}}","toolSteps.fetchUrl.running":"Fetching {{query}}","toolSteps.file":"File","toolSteps.fileVersions.done":"Listed versions of {{path}}","toolSteps.fileVersions.running":"Listing versions of {{path}}","toolSteps.findCells.done":"Searched cells: {{query}}","toolSteps.findCells.running":"Searching cells: {{query}}","toolSteps.findFiles.done":"Found files: {{query}}","toolSteps.findFiles.running":"Finding files: {{query}}","toolSteps.generateImage.done":"Drew: {{query}}","toolSteps.generateImage.running":"Drawing: {{query}}","toolSteps.generic.done":"Finished {{name}}","toolSteps.generic.running":"Running {{name}}","toolSteps.gitPush.done":"Pushed to remote","toolSteps.gitPush.running":"Pushing to remote","toolSteps.github.done":"GitHub: {{command}}","toolSteps.github.running":"GitHub: {{command}}","toolSteps.gitlab.done":"GitLab: {{command}}","toolSteps.gitlab.running":"GitLab: {{command}}","toolSteps.imageAlt":"What the agent saw","toolSteps.imageGone":"This picture is no longer stored","toolSteps.killProcess.done":"Stopped process {{name}}","toolSteps.killProcess.running":"Stopping process {{name}}","toolSteps.library.done":"Library: {{query}}","toolSteps.library.running":"Library: {{query}}","toolSteps.libraryUpload.done":"Saved to Library: {{path}}","toolSteps.libraryUpload.running":"Saving to Library: {{path}}","toolSteps.listChecks.done":"Listed scheduled checks","toolSteps.listChecks.running":"Listing scheduled checks","toolSteps.listDir.done":"Listed {{path}}","toolSteps.listDir.running":"Browsing {{path}}","toolSteps.loadSkill.done":"Used skill: {{name}}","toolSteps.loadSkill.running":"Loading skill: {{name}}","toolSteps.manageRoutines.done":"Routines: {{name}}","toolSteps.manageRoutines.running":"Routines: {{name}}","toolSteps.memory.done":"Memory updated","toolSteps.memory.running":"Updating memory","toolSteps.mergePdfs.done":"Merged PDFs into {{path}}","toolSteps.mergePdfs.running":"Merging PDFs into {{path}}","toolSteps.monitorProcess.done":"Monitoring set: {{name}}","toolSteps.monitorProcess.running":"Monitoring: {{name}}","toolSteps.newContext.done":"Asked for a fresh context","toolSteps.newContext.running":"Asking for a fresh context","toolSteps.noDetails":"No additional details were saved.","toolSteps.packDocument.done":"Packed {{path}}","toolSteps.packDocument.running":"Packing {{path}}","toolSteps.pollProcess.done":"Checked process {{name}}","toolSteps.pollProcess.running":"Checking process {{name}}","toolSteps.process":"Worked","toolSteps.publishFile.done":"Published {{path}}","toolSteps.publishFile.running":"Publishing {{path}}","toolSteps.readArtifact.done":"Read artifact {{name}}","toolSteps.readArtifact.running":"Reading artifact {{name}}","toolSteps.readDocument.done":"Read document {{path}}","toolSteps.readDocument.running":"Reading document {{path}}","toolSteps.readFile.done":"Read {{path}}","toolSteps.readFile.running":"Reading {{path}}","toolSteps.readHistory.done":"Searched earlier in this conversation: {{name}}","toolSteps.readHistory.running":"Searching earlier in this conversation: {{name}}","toolSteps.readPdf.done":"Read PDF {{path}}","toolSteps.readPdf.running":"Reading PDF {{path}}","toolSteps.readResult.done":"Read saved result {{name}}","toolSteps.readResult.running":"Reading saved result {{name}}","toolSteps.readSheet.done":"Read sheet {{path}}","toolSteps.readSheet.running":"Reading sheet {{path}}","toolSteps.readSkillFile.done":"Read skill file {{path}}","toolSteps.readSkillFile.running":"Reading skill file {{path}}","toolSteps.readSlide.done":"Read slide in {{path}}","toolSteps.readSlide.running":"Reading slide in {{path}}","toolSteps.recalcSheet.done":"Recalculated {{path}}","toolSteps.recalcSheet.running":"Recalculating {{path}}","toolSteps.renderDocument.done":"Rendered {{path}}","toolSteps.renderDocument.running":"Rendering {{path}}","toolSteps.requestPermissions.done":"Asked for access: {{name}}","toolSteps.requestPermissions.running":"Asking for access: {{name}}","toolSteps.rerunScript.done":"Re-ran {{path}}","toolSteps.rerunScript.running":"Re-running {{path}}","toolSteps.restoreFileVersion.done":"Restored a version of {{path}}","toolSteps.restoreFileVersion.running":"Restoring a version of {{path}}","toolSteps.runAppleScript.done":"Ran AppleScript: {{name}}","toolSteps.runAppleScript.running":"Running AppleScript: {{name}}","toolSteps.runCommand.done":"Ran: {{command}}","toolSteps.runCommand.running":"Running: {{command}}","toolSteps.runScript.done":"Generated with {{name}}","toolSteps.runScript.running":"Generating with {{name}}","toolSteps.scheduleCheck.done":"Scheduled: {{name}}","toolSteps.scheduleCheck.running":"Scheduling: {{name}}","toolSteps.searchResults_one":"{{count}} result","toolSteps.searchResults_other":"{{count}} results","toolSteps.searchText.done":"Searched for \u201C{{query}}\u201D","toolSteps.searchText.running":"Searching for \u201C{{query}}\u201D","toolSteps.sendToAgent.done":"Continued agent {{name}}","toolSteps.sendToAgent.running":"Continuing agent {{name}}","toolSteps.shell.backgroundBadge":"in background","toolSteps.shell.didNotComplete":"Did not complete","toolSteps.shell.exited":"Exited with code {{code}}","toolSteps.shell.movedToBackground":"Still running \u2014 moved to background ({{id}}); stops when the task settles","toolSteps.shell.sandboxed":"sandboxed","toolSteps.shell.timedOut":"Timed out","toolSteps.simulatorBuild":"Building for the simulator","toolSteps.simulatorControl":"iOS Simulator","toolSteps.splitPdf.done":"Split PDF {{path}}","toolSteps.splitPdf.running":"Splitting PDF {{path}}","toolSteps.startProcess.done":"Started: {{command}}","toolSteps.startProcess.running":"Starting: {{command}}","toolSteps.tellUser.done":"Messaged you","toolSteps.tellUser.running":"Messaging you","toolSteps.traceFormula.done":"Traced a formula in {{path}}","toolSteps.traceFormula.running":"Tracing a formula in {{path}}","toolSteps.unpackDocument.done":"Unpacked {{path}}","toolSteps.unpackDocument.running":"Unpacking {{path}}","toolSteps.usedConnector":"Used {{connector}}: {{tool}}","toolSteps.videoFrames.done":"Watched video {{path}}","toolSteps.videoFrames.running":"Watching video {{path}}","toolSteps.waitFor.done":"Waited for: {{command}}","toolSteps.waitFor.running":"Waiting for: {{command}}","toolSteps.waitingAnswer":"Waiting for your answer","toolSteps.waitingConfirmation":"Waiting for your confirmation","toolSteps.webSearch.done":"Searched the web: {{query}}","toolSteps.webSearch.running":"Searching the web: {{query}}","toolSteps.writeFile.done":"Wrote {{path}}","toolSteps.writeFile.running":"Writing {{path}}","toolSteps.writeStdin.done":"Answered process {{name}}","toolSteps.writeStdin.running":"Answering process {{name}}"}});var LD,GD=L(()=>{"use strict";LD={"pickers.list.more_one":"{{count}} more","pickers.list.more_other":"{{count}} more","pickers.list.empty":"Nothing here yet.","pickers.model.title":"Select model","pickers.model.current":"current {{model}}","pickers.model.noCurrent":"current none yet","pickers.model.searchHint":"models, providers, vendors\u2026","pickers.model.matchCount":"{{shown}} of {{total}}","pickers.model.count_one":"{{count}} model","pickers.model.count_other":"{{count}} models","pickers.model.scopeAll":"All","pickers.model.section.current":"Current model","pickers.model.section.pinned":"Pinned","pickers.model.section.recent":"Recent","pickers.model.section.vendor":"{{provider}} \u203A {{vendor}}","pickers.model.planRequired":"{{plan}} plan","pickers.model.notInPlan":"not in plan","pickers.model.free":"free","pickers.model.pinned":"pinned {{model}} \u2014 it shows under Pinned here and in the desktop app","pickers.model.unpinned":"unpinned {{model}}","pickers.model.pinNeedsNewerEngine":"Pinning needs a newer engine \u2014 update the desktop app.","pickers.model.loading":"Loading models\u2026","pickers.model.noProviders":"No connected provider has models yet.","pickers.model.noProvidersHint":"Ctrl+A connects one.","pickers.model.noMatch":"No models match \u201C{{query}}\u201D. Esc clears the search.","pickers.model.footerWide":"\u2191\u2193 move \xB7 \u2190\u2192 provider \xB7 Enter use \xB7 ^F pin \xB7 ^A add provider \xB7 Esc close","pickers.model.footerMedium":"\u2191\u2193 move \xB7 \u2190\u2192 provider \xB7 Enter use \xB7 ^F pin \xB7 Esc","pickers.model.footerNarrow":"\u2191\u2193 \xB7 Enter use \xB7 Esc","pickers.sessions.title":"Sessions","pickers.sessions.scopeHere":"This folder {{n}}","pickers.sessions.scopeAll":"All folders {{n}}","pickers.sessions.searchHint":"titles and folders\u2026","pickers.sessions.today":"Today","pickers.sessions.yesterday":"Yesterday","pickers.sessions.thisWeek":"This week","pickers.sessions.older":"Older","pickers.sessions.justNow":"just now","pickers.sessions.minutesAgo_one":"{{count}}m ago","pickers.sessions.minutesAgo_other":"{{count}}m ago","pickers.sessions.hoursAgo_one":"{{count}}h ago","pickers.sessions.hoursAgo_other":"{{count}}h ago","pickers.sessions.daysAgo_one":"{{count}}d ago","pickers.sessions.daysAgo_other":"{{count}}d ago","pickers.sessions.current":"current","pickers.sessions.untitled":"Untitled session","pickers.sessions.noFolder":"no folder","pickers.sessions.noMatch":"No session matches \u201C{{query}}\u201D.","pickers.sessions.noneHere":"No sessions in this folder yet \u2014 \u2190\u2192 shows all folders.","pickers.sessions.none":"No sessions yet. Send a task to create one.","pickers.sessions.footer":"type to search \xB7 \u2191\u2193 move \xB7 \u2190\u2192 this folder / all \xB7 Enter resume \xB7 Esc close","pickers.cloud.footer":"type to search \xB7 \u2191\u2193 move \xB7 Enter show and follow \xB7 Esc close"}});var FD,zD=L(()=>{"use strict";FD={"slash.desc.new":"start a fresh session","slash.desc.sessions":"search sessions \u2014 this folder or all","slash.desc.cloud":"cloud sessions, or run a task in the cloud","slash.cloudBusy":"a cloud task is already being followed \u2014 wait for it, or follow the new one later with /cloud","slash.desc.auth":"connect an AI provider (key or sign-in)","slash.desc.connectors":"your services (Gmail, MCP\u2026) and the catalog","slash.desc.login":"sign in to More AI: sync, dictation, Google services","slash.desc.mode":"set the access mode","slash.desc.model":"search and switch models","slash.desc.models":"same picker as /model","slash.desc.language":"interface language","slash.desc.harness":"list or switch coding agents","slash.desc.status":"engine \xB7 session \xB7 mode \xB7 model","slash.desc.analytics":"usage analytics and AI traces","slash.desc.help":"keys and commands","slash.desc.quit":"exit","slash.desc.voice":"speak into the input box (Ctrl+T)","slash.desc.helperExplore":"helper that maps the code and reports back","slash.desc.helperScout":"helper that researches libraries, APIs and docs","slash.desc.helperGeneral":"general-purpose helper for a focused question","slash.finishRunFirst":"finish or interrupt the run first","slash.engineNotConnected":"engine is not connected yet","slash.noSessions":"no sessions yet \u2014 send a task to start one","slash.modeMustBe":"mode must be one of: {{modes}}","slash.newSession":"new session","slash.harness.title":"coding agents","slash.harness.useHint":"Use /harness <id> to install and switch.","slash.harness.finishRunFirst":"finish or interrupt the run before switching coding agents","slash.harness.unknown":"unknown coding agent: {{name}}","slash.harness.notLocal":"{{name}} is unavailable for local sessions","slash.harness.claudeNeedsKey":"Claude Agent needs a selected Anthropic API key or Z.ai Coding Plan key \u2014 connect one with /auth","slash.harness.notReady":"{{name}} is not ready ({{state}})","slash.harness.switched":"coding agent: {{name}}","slash.harness.unavailable":"unavailable","slash.harness.state.builtIn":"built-in","slash.harness.state.missing":"missing","slash.harness.state.installing":"installing","slash.harness.state.ready":"ready","slash.harness.state.updating":"updating","slash.harness.state.error":"error","slash.harness.state.unsupported":"unsupported","slash.status.title":"status","slash.status.version":"version","slash.status.backend":"backend","slash.status.engine":"engine","slash.status.repo":"repo","slash.status.session":"session","slash.status.mode":"mode","slash.status.model":"model","slash.status.harness":"harness","slash.status.noSession":"none yet","slash.status.engineDefault":"engine default","slash.status.via":"via {{provider}}","slash.help.title":"help","slash.help.editing":"{{enter}} send \xB7 {{ctrlJ}} or trailing {{backslash}} newline \xB7 {{arrows}} lines, then history","slash.help.cursor":"{{altArrows}} words \xB7 {{ctrlAE}} line start/end \xB7 {{ctrlUKW}} delete","slash.help.paste":"a big paste becomes one {{pasted}} line \xB7 {{ctrlO}} expands it","slash.help.interrupt":"{{esc}} interrupt the run (twice clears a draft) \xB7 {{shiftTab}} cycle access mode","slash.help.clear":"{{ctrlC}} clear input (kept in history) / press twice to exit","slash.help.voice":"{{ctrlT}} voice: speak, then {{enter}} puts the text in the input \xB7 {{esc}} discards","slash.help.steer":"type while the agent works to **steer** it mid-run","slash.help.helpers":"{{at}} (or @scout, @general) at the start of a task sends parallel helper agents to research first","slash.help.commands":"{{model}} search and switch models \xB7 {{sessions}} every session \xB7 {{connectors}} services"}});var KD,YD=L(()=>{"use strict";KD={"voice.starting":"turning on the microphone\u2026","voice.transcribing":"transcribing\u2026","voice.noSoundYet":"no sound from the microphone yet","voice.left":"{{seconds}} s left","voice.hint.recording":"Enter or Ctrl+T puts the text in the input \xB7 Esc discards","voice.hint.waiting":"Esc stops waiting","voice.hint.failedRetry":"Ctrl+T tries again \xB7 any other key closes this","voice.hint.failed":"Ctrl+T records again \xB7 any other key closes this","voice.noEngine":"not connected to the More AI engine","voice.engineTooOld":"this More AI engine has no voice input yet \u2014 update the More AI app","voice.notSetUp":"dictation is not set up: /login turns on More AI dictation, or add a transcription service in the More AI app (Settings \u2192 Dictation)","voice.signIn":"sign in with /login to use More AI dictation","voice.outOfMinutes":"this month\u2019s dictation minutes are used up","voice.localNotReady":"the on-device speech model is not ready \u2014 finish setting it up in the More AI app (Settings \u2192 Dictation)","voice.failed":"could not transcribe: {{message}}","voice.retryHint":"The recording is kept.","voice.noRecorder":"no program to record from the microphone was found.","voice.hint.installMac":"Install the More AI app, or run: brew install ffmpeg","voice.hint.installWindows":"Install the More AI app, or run: winget install Gyan.FFmpeg","voice.hint.installLinux":"Install pulseaudio-utils (parecord), alsa-utils (arecord), ffmpeg or sox.","voice.micFailed":"the microphone could not be opened ({{reason}}).","voice.noSound":"no sound came from the microphone.","voice.nothingHeard":"no words were recognised in the recording.","voice.hint.macPermission":"Allow {{app}} in System Settings \u2192 Privacy & Security \u2192 Microphone, then restart it.","voice.hint.windowsPermission":"Allow microphone access for desktop apps in Settings \u2192 Privacy & security \u2192 Microphone ({{app}}).","voice.hint.linuxPermission":"Check that a microphone is connected and not muted.","voice.yourTerminal":"your terminal app"}});var yu,nQ=L(()=>{"use strict";BD();vD();bD();wD();DD();_D();MD();HD();UD();GD();zD();YD();yu={...kD,...TD,...ID,...ND,...KD,...FD,...LD,...OD,...SD,...QD,...RD,...xD}});var PD,qD=L(()=>{PD=[{id:"am",label:"\u12A0\u121B\u122D\u129B",englishName:"Amharic"},{id:"bn",label:"\u09AC\u09BE\u0982\u09B2\u09BE",englishName:"Bangla"},{id:"bho",label:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940",englishName:"Bhojpuri"},{id:"zh",label:"\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09",englishName:"Chinese (Simplified)"},{id:"zh-TW",label:"\u4E2D\u6587\uFF08\u7E41\u9AD4\uFF09",englishName:"Chinese (Traditional)"},{id:"da",label:"Dansk",englishName:"Danish"},{id:"nl",label:"Nederlands",englishName:"Dutch"},{id:"en",label:"English (United States)",englishName:"English (United States)"},{id:"fil",label:"Filipino",englishName:"Filipino"},{id:"fi",label:"Suomi",englishName:"Finnish"},{id:"fr",label:"Fran\xE7ais (France)",englishName:"French (France)"},{id:"de",label:"Deutsch (Deutschland)",englishName:"German (Germany)"},{id:"gu",label:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",englishName:"Gujarati"},{id:"ha",label:"Hausa",englishName:"Hausa"},{id:"hi",label:"\u0939\u093F\u0928\u094D\u0926\u0940 (\u092D\u093E\u0930\u0924)",englishName:"Hindi (India)"},{id:"id",label:"Indonesia (Indonesia)",englishName:"Indonesian (Indonesia)"},{id:"it",label:"Italiano (Italia)",englishName:"Italian (Italy)"},{id:"ja",label:"\u65E5\u672C\u8A9E (\u65E5\u672C)",englishName:"Japanese (Japan)"},{id:"kn",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",englishName:"Kannada"},{id:"ko",label:"\uD55C\uAD6D\uC5B4(\uB300\uD55C\uBBFC\uAD6D)",englishName:"Korean (South Korea)"},{id:"ml",label:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",englishName:"Malayalam"},{id:"mr",label:"\u092E\u0930\u093E\u0920\u0940",englishName:"Marathi"},{id:"nb",label:"Norsk bokm\xE5l",englishName:"Norwegian Bokm\xE5l"},{id:"pt-BR",label:"Portugu\xEAs (Brasil)",englishName:"Portuguese (Brazil)"},{id:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",englishName:"Russian"},{id:"es-419",label:"Espa\xF1ol (Latinoam\xE9rica)",englishName:"Spanish (Latin America)"},{id:"es",label:"Espa\xF1ol (Espa\xF1a)",englishName:"Spanish (Spain)"},{id:"sw",label:"Kiswahili",englishName:"Swahili"},{id:"sv",label:"Svenska",englishName:"Swedish"},{id:"ta",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",englishName:"Tamil"},{id:"te",label:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",englishName:"Telugu"},{id:"th",label:"\u0E44\u0E17\u0E22",englishName:"Thai"},{id:"tr",label:"T\xFCrk\xE7e",englishName:"Turkish"},{id:"uk",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",englishName:"Ukrainian"},{id:"vi",label:"Ti\u1EBFng Vi\u1EC7t",englishName:"Vietnamese"}]});function JD(e,o){let r=e.replaceAll("_","-").toLowerCase(),c=o.find(E=>E.toLowerCase()===r);if(c)return c;let u=r.split("-"),f=u[0],m=f;return f==="zh"&&(m=u.includes("hans")?"zh":u.some(E=>["hant","tw","hk","mo"].includes(E))?"zh-TW":"zh"),f==="es"&&(m=u.some(E=>/^(419|ar|bo|br|bz|cl|co|cr|cu|do|ec|gt|hn|mx|ni|pa|pe|pr|py|sv|us|uy|ve)$/.test(E))?"es-419":"es"),f==="pt"&&(m="pt-BR"),(f==="no"||f==="nb")&&(m="nb"),f==="tl"&&(m="fil"),o.find(E=>E===m)}var jD=L(()=>{"use strict";i(JD,"resolveLanguageTag")});function Tf(e){if(!e)return;let o=e.split(".")[0]?.split("@")[0]?.trim();if(!(!o||o==="C"||o==="POSIX"))return JD(o,VD)}var zA,VD,gB=L(()=>{"use strict";qD();jD();zA=PD,VD=zA.map(e=>e.id);i(Tf,"supportedLanguage")});function iQ(e){let{runtime:o,processEnv:r,build:c}=e;return oQ(o)?o:oQ(r)?r:oQ(c)?c:"production"}var rQ,oQ,aQ=L(()=>{"use strict";rQ={production:{authBaseUrl:"https://auth.more-ai.net",apiBaseUrl:"https://api.more-ai.net"},dev:{authBaseUrl:"https://auth-dev.more-ai.net",apiBaseUrl:"https://api-dev.more-ai.net"}},oQ=i(e=>e==="production"||e==="dev","isAppEnvId");i(iQ,"resolveAppEnvId")});function e3(){try{return"production"}catch{return}}function t3(){return globalThis.__MOREAI_ENV__}function n3(){return globalThis.process?.env?.MOREAI_ENV}function rm(e,o){return o==="production"?e?"More AI":"More AI Dev (production)":e?"More AI (dev backend)":"More AI Dev"}var Z4,W4,$4,pB,Vi,om,_f=L(()=>{"use strict";aQ();aQ();Z4={id:"production",label:"Production",...rQ.production,webAppUrl:"https://app.more-ai.net",connectorsBaseUrl:"https://connectors.more-ai.net",reportsUrl:"https://reports.more-ai.net",reportsToken:"b0184659a6710dba1b1f31b7a61168114249dda3619fbee99802e7d1ad971baa",posthogKey:"phc_nmEEq86Losaq7aWVMF8hXdVAtPKiZpy2JpknJypWSd7W"},W4={id:"dev",label:"Dev",...rQ.dev,webAppUrl:"https://dev.more-ai-app.pages.dev",connectorsBaseUrl:"https://connectors-dev.more-ai.net",reportsUrl:"https://reports-dev.more-ai.net",reportsToken:"",posthogKey:"phc_nmEEq86Losaq7aWVMF8hXdVAtPKiZpy2JpknJypWSd7W"},$4={production:Z4,dev:W4};i(e3,"buildStamp");i(t3,"runtimeStamp");i(n3,"processStamp");pB=iQ({runtime:t3(),processEnv:n3(),build:e3()}),Vi=$4[pB],om=i(e=>e.replace(/^https?:\/\//,"").replace(/\/$/,""),"hostOf");i(rm,"appProfileName")});import o3 from"node:os";import YE from"node:path";function XD(){let e=o3.homedir();switch(process.platform){case"darwin":return YE.join(e,"Library","Application Support");case"win32":return process.env.APPDATA||YE.join(e,"AppData","Roaming");default:return process.env.XDG_CONFIG_HOME||YE.join(e,".config")}}function i3(e=r3){return YE.join(XD(),e)}function qE(e=pB){let o=e==="production"?[rm(!0,e),rm(!1,e)]:[rm(!1,e),rm(!0,e)];return[...new Set(o)].map(r=>YE.join(XD(),r))}async function KA(e,o=pB){let r=qE(o);for(let c of r)if(await e(c))return c;return r[0]??i3()}var r3,im=L(()=>{"use strict";_f();r3=rm(!0,"production");i(XD,"appDataDir");i(i3,"resolveUserDataDir");i(qE,"userDataDirCandidates");i(KA,"resolveClientDataDir")});import{execFileSync as a3}from"node:child_process";import sQ from"node:fs";import cQ from"node:path";function Nf(e){let o=i(c=>c&&c!=="auto"?Tf(c):void 0,"pick"),r=[["flag",[e.flag]],["env",[e.env]],["cli",[e.cliPref]],["desktop",[e.desktop]],["locale",e.localeEnv??[]],["system",e.system??[]]];for(let[c,u]of r)for(let f of u){let m=o(f);if(m)return{id:m,source:c}}return{id:"en",source:"default"}}function lQ(e){try{let o=JSON.parse(sQ.readFileSync(e,"utf8"));return o&&typeof o=="object"?o:void 0}catch{return}}function s3(){if(process.platform!=="darwin")return[];try{return[...a3("defaults",["read","-g","AppleLanguages"],{encoding:"utf8",timeout:800,stdio:["ignore","pipe","ignore"]}).matchAll(/"?([A-Za-z]{2,3}(?:[-_][A-Za-z0-9]+)*)"?/g)].map(o=>o[1])}catch{return[]}}function Iu(e={}){let o=e.dirs??qE(),r=e.dataDir?[e.dataDir,...o.filter(S=>S!==e.dataDir)]:o,c,u;for(let S of r){let v=lQ(ZD(S))?.language;!c&&typeof v=="string"&&(c=v);let b=lQ(cQ.join(S,"settings.json"));!u&&b?.onboardingCompleted===!0&&typeof b.language=="string"&&(u=b.language)}let f=process.env,m=[f.LC_ALL,f.LC_MESSAGES,f.LANG,f.LANGUAGE?.split(":")[0]],E={...e.flag?{flag:e.flag}:{},...f.MOREAI_LANG?{env:f.MOREAI_LANG}:{},...c?{cliPref:c}:{},...u?{desktop:u}:{},localeEnv:m};return Nf({...u?{desktop:u}:{},localeEnv:m}).source==="default"&&(E.system=[...s3(),Intl.DateTimeFormat().resolvedOptions().locale]),E}function uQ(e,o){let r=ZD(e);try{sQ.mkdirSync(cQ.dirname(r),{recursive:!0}),sQ.writeFileSync(r,JSON.stringify({...lQ(r),language:o},null,2))}catch{}}function AQ(e){let o=[],r;for(let c=0;c<e.length;c++){let u=e[c];if(u==="--"){o.push(...e.slice(c));break}if(u==="--lang"&&e[c+1]&&!e[c+1].startsWith("-")){r=e[++c];continue}if(u.startsWith("--lang=")){r=u.slice(7);continue}o.push(u)}return{argv:o,...r?{lang:r}:{}}}function mB(e){return Nf({...e,flag:void 0,env:void 0,cliPref:void 0}).id}var ZD,WD=L(()=>{"use strict";im();gB();i(Nf,"detectLanguage");ZD=i(e=>cQ.join(e,"cli","prefs.json"),"prefsFile");i(lQ,"readJson");i(s3,"appleLanguages");i(Iu,"readLanguageSignals");i(uQ,"saveLanguagePreference");i(AQ,"splitLanguageFlag");i(mB,"automaticLanguage")});import l3 from"node:fs";import hB from"node:path";import{fileURLToPath as c3}from"node:url";function za(){return EB}function u3(){let e=hB.dirname(c3(import.meta.url));return[hB.join(e,"locales"),hB.join(e,"..","..","locales")]}function A3(e){if(e==="en")return yu;for(let o of u3())try{let r=JSON.parse(l3.readFileSync(hB.join(o,`${e}.json`),"utf8"));if(r&&typeof r=="object")return r}catch{}}function YA(e){let o=Tf(e)??"en",r=A3(o);EB=r?o:"en",CB=r??yu;try{dQ=new Intl.PluralRules(EB)}catch{dQ=$D}return EB}function d3(e,o){let r=o?.count;if(typeof r=="number"){let c=CB[`${e}_${dQ.select(r)}`]??CB[`${e}_other`];if(c!==void 0)return c;let u=yu[`${e}_${$D.select(r)}`]??yu[`${e}_other`];if(u!==void 0)return u}return CB[e]??yu[e]??e}function C(e,o){let r=d3(e,o);return o?r.replace(/\{\{\s*(\w+)\s*\}\}/g,(c,u)=>{let f=o[u];return f===void 0?c:String(f)}):r}function am(e){return zA.find(o=>o.id===e)?.label??e}var EB,CB,dQ,$D,Vt=L(()=>{"use strict";nQ();gB();gB();WD();EB="en",CB=yu,dQ=new Intl.PluralRules("en"),$D=new Intl.PluralRules("en");i(za,"currentLanguage");i(u3,"localeDirs");i(A3,"loadMessages");i(YA,"setLanguage");i(d3,"lookup");i(C,"t");i(am,"languageLabel")});function PE(e){let o={command:"run",print:!1,json:!1,continueSession:!1,codeStdin:!1,tokenStdin:!1,updateInstall:!1,fallback:!1,wait:!1,cloud:!1,detach:!1},r=[];for(let c=0;c<e.length;c++){let u=e[c],f=i(()=>{let m=e[c+1];if(!(m===void 0||m.startsWith("-")&&m!=="-"))return c++,m},"next");switch(u){case"-h":case"--help":return{args:{...o,command:"help"}};case"-v":case"--version":return{args:{...o,command:"version"}};case"-p":case"--print":o.print=!0;break;case"--json":o.json=!0;break;case"--code-stdin":o.codeStdin=!0;break;case"--token-stdin":o.tokenStdin=!0;break;case"--install":o.updateInstall=!0;break;case"--challenge":{let m=f();if(!m)return{error:C("cli.args.challengeNeedsId")};o.challenge=m;break}case"--fallback":o.fallback=!0;break;case"--cloud":o.cloud=!0;break;case"--detach":o.detach=!0;break;case"--finish":{let m=f(),E=m==="pr"?"pull-request":m;if(!E||!f3.includes(E))return{error:C("cli.args.finishInvalid",{finishes:"pr, push, branch, folder"})};o.finish=E;break}case"--wait":o.wait=!0;break;case"-c":case"--continue":o.continueSession=!0;break;case"--session":{let m=f();if(!m)return{error:C("cli.args.sessionNeedsId")};o.session=m;break}case"-m":case"--model":{let m=f();if(!m)return{error:C("cli.args.modelNeedsId")};o.model=m;break}case"--provider":{let m=f();if(!m)return{error:C("cli.args.providerNeedsId")};o.provider=m;break}case"--mode":{let m=f();if(!m||!Ol.includes(m))return{error:C("cli.args.modeInvalid",{modes:Ol.join(", ")})};o.mode=m;break}case"-C":case"--cwd":{let m=f();if(!m)return{error:C("cli.args.cwdNeedsDir")};o.cwd=m;break}default:if(u.startsWith("-")&&u!=="-")return{error:C("cli.args.unknownOption",{option:u})};r.push(u)}}if(r[0]==="sessions"||r[0]==="doctor"||r[0]==="auth"||r[0]==="connectors"||r[0]==="browser"||r[0]==="login"||r[0]==="logout"||r[0]==="account"||r[0]==="setup"||r[0]==="update"||r[0]==="analytics"||r[0]==="cloud"?(o.command=r[0],r.shift()):r[0]==="help"&&(o.command="help",r.shift()),r.length&&(o.task=r.join(" ")),o.cloud){if(o.command!=="run"&&o.command!=="cloud")return{error:C("cli.args.cloudOnlyRun")};o.command==="run"&&(o.command="cloud",o.task=o.task?`run ${o.task}`:"run")}return(o.finish||o.detach)&&o.command!=="cloud"?{error:C("cli.args.cloudOnlyRun")}:o.json&&!o.print?{error:C("cli.args.jsonNeedsPrint")}:o.session&&o.continueSession?{error:C("cli.args.sessionAndContinue")}:(o.codeStdin||o.challenge||o.fallback||o.wait)&&o.command!=="login"?{error:C("cli.args.loginOnly")}:o.tokenStdin&&(o.command!=="connectors"||!o.task?.startsWith("add "))?{error:C("cli.args.tokenStdinNeedsAdd")}:o.updateInstall&&o.command!=="update"?{error:C("cli.args.installUpdateOnly")}:o.command==="update"&&o.task?{error:C("cli.args.updateNoArgs")}:o.codeStdin&&(o.challenge||o.fallback||o.wait)?{error:C("cli.args.codeStdinWithChallenge")}:o.fallback&&!o.challenge?{error:C("cli.args.fallbackNeedsChallenge")}:o.wait&&!o.challenge?{error:C("cli.args.waitNeedsChallenge")}:o.fallback&&o.wait?{error:C("cli.args.fallbackAndWait")}:o.command==="login"&&o.challenge&&o.task?{error:C("cli.args.challengeWithEmail")}:{args:o}}function yB([e,o,r],c=g3){return e+" ".repeat(Math.max(2,c-e.length))+C(o,r)}function tT(){return[C("cli.help.title"),"",C("cli.help.usage"),...p3.map(e=>yB(e)),"",C("cli.help.headless"),yB([" moreai login you@example.com","cli.help.loginEmail"],eT-1),...m3.map(e=>yB(e,eT)),"",C("cli.help.options"),...h3.map(e=>yB(e)),"",C("cli.help.inside"),` ${C("cli.help.insideKeys")}`,` ${C("cli.help.insideCommands",{commands:E3})}`,` ${C("cli.help.insideSteer")}`,"",C("cli.help.engine"),"",C("cli.help.analyticsNote"),""].join(`
8
+ `)}var f3,g3,eT,p3,m3,h3,E3,fQ=L(()=>{"use strict";fB();Vt();f3=["pull-request","push","branch","folder"];i(PE,"parseArgs");g3=31,eT=45,p3=[[" moreai","cli.help.run"],[' moreai "task"',"cli.help.runTask"],[' moreai -p "task"',"cli.help.print"],[' moreai "@explore task"',"cli.help.optHelper"],[" moreai sessions","cli.help.sessions"],[" moreai cloud","cli.help.cloud"],[' moreai cloud run "task"',"cli.help.cloudRun"],[" moreai cloud open ID","cli.help.cloudOpen"],[" moreai setup","cli.help.setup"],[" moreai login","cli.help.login"],[" moreai account","cli.help.account"],[" moreai logout","cli.help.logout"],[" moreai auth","cli.help.auth"],[" moreai auth status","cli.help.authStatus"],[" moreai auth env","cli.help.authEnv"],[" moreai connectors","cli.help.connectors"],[" moreai connectors list","cli.help.connectorsList"],[" moreai connectors catalog","cli.help.connectorsCatalog"],[" moreai connectors add ID","cli.help.connectorsAdd"],[" moreai connectors add ID --token-stdin","cli.help.connectorsAddToken"],[" moreai connectors on|off ID","cli.help.connectorsToggle"],[" moreai connectors remove ID","cli.help.connectorsRemove"],[" moreai browser pair","cli.help.browserPair"],[" moreai browser status","cli.help.browserStatus"],[" moreai browser unpair","cli.help.browserUnpair"],[" moreai doctor","cli.help.doctor"],[" moreai update","cli.help.update"],[" moreai update --install","cli.help.updateInstall"],[" moreai analytics","cli.help.analytics"],[" moreai analytics on|usage|off","cli.help.analyticsSet"]],m3=[[" moreai login you@example.com --code-stdin","cli.help.loginCode"],[" moreai login --challenge <id> --wait","cli.help.loginWait"],[" moreai login --challenge <id> --fallback","cli.help.loginFallback"]],h3=[[" -p, --print","cli.help.optPrint"],[" --json","cli.help.optJson"],[" -c, --continue","cli.help.optContinue"],[" --session <id>","cli.help.optSession"],[" -m, --model <id>","cli.help.optModel"],[" --provider <id>","cli.help.optProvider"],[" --mode <mode>","cli.help.optMode",{modes:Ol.join(" | ")}],[" -C, --cwd <dir>","cli.help.optCwd"],[" --cloud","cli.help.optCloud"],[" --finish <kind>","cli.help.optFinish"],[" --detach","cli.help.optDetach"],[" --lang <id>","cli.help.optLang"],[" -v, --version","cli.help.optVersion"],[" -h, --help","cli.help.optHelp"]],E3="/new /sessions /cloud /login /auth /connectors /mode /model /language /status /analytics /help /quit";i(yB,"helpRow");i(tT,"helpText")});var ti,Mf=L(()=>{"use strict";ti="0.1.0-beta.1"});import C3 from"node:fs/promises";import y3 from"node:path";function gQ(e){return y3.join(e,"hub","owner.json")}async function Ic(e){try{let o=await C3.readFile(gQ(e),"utf8"),r=JSON.parse(o);if(r?.version===I3&&typeof r.url=="string")return r}catch{}}var I3,sm=L(()=>{"use strict";I3="v1";i(gQ,"hubDiscoveryPath");i(Ic,"readHubDiscovery")});import Of from"node:fs/promises";import pQ from"node:path";function b3(e){return`${gQ(e)}.lock`}function R3(e){if(!Number.isInteger(e)||e<=0)return!1;try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}async function nT(e){try{let o=await Of.readFile(pQ.join(e,"owner.json"),"utf8"),r=JSON.parse(o);return typeof r?.pid=="number"&&typeof r?.at=="number"?r:null}catch{return null}}async function oT(e){await Of.rm(e,{recursive:!0,force:!0}).catch(()=>{})}async function w3(e){try{return await Of.mkdir(e,{recursive:!1}),!0}catch(o){let r=o.code;if(r==="EEXIST")return!1;if(r==="ENOENT"){await Of.mkdir(pQ.dirname(e),{recursive:!0});try{return await Of.mkdir(e,{recursive:!1}),!0}catch(c){if(c.code==="EEXIST")return!1;throw c}}throw o}}async function x3(e,o){if(o)return Date.now()-o.at;try{let r=await Of.stat(e);return Date.now()-r.mtimeMs}catch{return Number.POSITIVE_INFINITY}}async function rT(e,o){let r=b3(e),c=Date.now()+B3;for(;;){let u;try{u=await w3(r)}catch(E){return console.warn("[hub] startup lock unavailable \u2014 proceeding without it:",E.message),o()}if(u){await Of.writeFile(pQ.join(r,"owner.json"),JSON.stringify({pid:process.pid,at:Date.now()})).catch(()=>{});try{return await o()}finally{let E=await nT(r);(!E||E.pid===process.pid)&&await oT(r)}}let f=await nT(r);if(f&&!R3(f.pid)||await x3(r,f)>v3){await oT(r);continue}if(Date.now()>=c)return console.warn("[hub] startup lock wait timed out \u2014 proceeding without it"),o();await Q3(S3)}}var B3,S3,v3,Q3,iT=L(()=>{"use strict";sm();B3=15e3,S3=100,v3=3e4,Q3=i(e=>new Promise(o=>setTimeout(o,e)),"delay");i(b3,"lockDir");i(R3,"pidAlive");i(nT,"readOwner");i(oT,"removeLock");i(w3,"tryAcquire");i(x3,"lockAgeMs");i(rT,"withHubStartupLock")});var aT=L(()=>{"use strict"});function lT(e,o,r,c){return{kind:"command",version:mQ,requestId:o,clientId:e,command:r,params:c}}var mQ,sT,IB=L(()=>{"use strict";aT();mQ="v2",sT="google:";i(lT,"commandFrame")});function cT(e){if(!Number.isInteger(e)||e<=0)return!1;try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}async function uT(e,o=1e3){let r=new AbortController,c=setTimeout(()=>r.abort(),o);try{let u=await fetch(`http://${e.host}:${e.port}/health`,{signal:r.signal});if(!u.ok)return;let f=await u.json();return f?.ok===!0&&f.pid===e.pid&&typeof f.protocol=="string"?f:void 0}catch{return}finally{clearTimeout(c)}}async function hQ(e,o=1e3){return(await uT(e,o))?.protocol===mQ}async function Js(e){let o=await Ic(e);if(o&&o.port!==0&&cT(o.pid)&&await hQ(o))return{url:o.url,authToken:o.authToken}}async function EQ(e){let o=await Ic(e);return!o||o.pid===process.pid||!cT(o.pid)?!1:o.port===0?!0:!!await uT(o)}async function AT(e,o){let r=await Js(e);return r?{endpoint:r,spawned:!1}:rT(e,async()=>{let c=await Js(e);if(c)return{endpoint:c,spawned:!1};if(await EQ(e))throw new Error("A More AI engine already owns this profile but its local hub is unavailable or uses an incompatible protocol. Update the CLI and desktop app, or enable External clients in the desktop settings.");return{endpoint:await o(),spawned:!0}})}var JE=L(()=>{"use strict";sm();iT();IB();i(cT,"pidAlive");i(uT,"probeHubOwner");i(hQ,"probeHubHealth");i(Js,"resolveLiveHub");i(EQ,"machineHasLiveOwner");i(AT,"ensureHub")});function BQ(e){yQ=e}function dT(e=process.stdout,o=process.stderr){e.on("error",()=>{CQ||(CQ=!0,yQ?yQ():process.exit(141))}),o.on("error",()=>{})}var CQ,yQ,IQ,SQ=L(()=>{"use strict";CQ=!1,yQ=null,IQ=i(()=>CQ,"stdoutClosed");i(BQ,"onStdoutClosed");i(dT,"guardStdout")});var D3,T3,_3,qA,BB=L(()=>{"use strict";IB();D3="moreai-hub",T3="tok.",_3={"harness.ensureInstalled":15*6e4,"stt.transcribe":5*6e4,"stt.retranscribe":5*6e4},qA=class{static{i(this,"HubClient")}clientId;url;authToken;requestTimeoutMs;webSocketImpl;socket=null;pending=new Map;listeners=new Set;closeListeners=new Set;seq=0;constructor(o){this.clientId=o.clientId,this.url=o.url,this.authToken=o.authToken,this.requestTimeoutMs=o.requestTimeoutMs??6e4,this.webSocketImpl=o.webSocketImpl}connect(){return new Promise((o,r)=>{let c=this.webSocketImpl??globalThis.WebSocket;if(!c){r({code:"connect-failed",message:"No WebSocket implementation \u2014 pass webSocketImpl on hosts without a global"});return}let u=new c(this.url,[D3,`${T3}${this.authToken}`]);this.socket=u,u.addEventListener("open",()=>o()),u.addEventListener("error",()=>r({code:"connect-failed",message:"Hub connection failed"})),u.addEventListener("close",()=>this.onClose(u)),u.addEventListener("message",f=>{this.socket===u&&this.onMessage(String(f.data))})})}onMessage(o){let r;try{r=JSON.parse(o)}catch{return}if(r.kind==="reply"){let c=this.pending.get(r.requestId);if(!c)return;this.pending.delete(r.requestId),clearTimeout(c.timer),r.ok?c.resolve(r.result):c.reject(r.error??{code:"unknown",message:"Hub error"})}else if(r.kind==="event")for(let c of this.listeners)c(r.payload)}onClose(o){if(this.socket===o){this.socket=null;for(let[,r]of this.pending)clearTimeout(r.timer),r.reject({code:"disconnected",message:"Hub connection closed"});this.pending.clear();for(let r of this.closeListeners)r()}}onDisconnect(o){return this.closeListeners.add(o),()=>this.closeListeners.delete(o)}command(o,r){let c=this.socket;if(!c||c.readyState!==c.OPEN)return Promise.reject({code:"disconnected",message:"Hub not connected"});let u=`${this.clientId}-${++this.seq}`;return new Promise((f,m)=>{let E=setTimeout(()=>{this.pending.delete(u),m({code:"timeout",message:`Command ${o} timed out`})},Math.max(this.requestTimeoutMs,_3[o]??0));E.unref?.(),this.pending.set(u,{resolve:f,reject:m,timer:E}),c.send(JSON.stringify(lT(this.clientId,u,o,r)))})}on(o){return this.listeners.add(o),()=>this.listeners.delete(o)}isConnected(){return this.socket!==null&&this.socket.readyState===this.socket.OPEN}close(){let o=this.socket;o&&(o.close(),this.onClose(o))}}});import{fork as N3}from"node:child_process";async function k3(e,o,r){let c=N3(o,["--user-data-dir",e],{detached:!0,stdio:"ignore",env:{...process.env,MOREAI_DAEMON_CLIENT:r}}),u=null;c.on("error",m=>{u=m}),c.unref(),c.connected&&c.disconnect();let f=Date.now()+M3;for(;Date.now()<f;){let m=await Js(e);if(m)return m;if(u)throw new Error(`daemon failed to spawn: ${u.message}`);if(c.exitCode!==null)throw new Error(`daemon exited early (code ${c.exitCode}) before becoming ready`);await H3(O3)}throw new Error("daemon did not become ready in time")}async function fT(e,o,r){let c=await KA(async S=>!!await Js(S)),{endpoint:u,spawned:f}=await AT(c,()=>k3(c,e,r.clientId)),m=new qA({...u,clientId:r.clientId,webSocketImpl:r.webSocketImpl});await m.connect();let E=m.on(o);return{client:m,spawned:f,dataDir:c,onDisconnect:i(S=>m.onDisconnect(S),"onDisconnect"),dispose:i(()=>{E(),m.close()},"dispose")}}var M3,O3,H3,gT=L(()=>{"use strict";BB();JE();im();M3=15e3,O3=150,H3=i(e=>new Promise(o=>setTimeout(o,e)),"delay");i(k3,"spawnDaemon");i(fT,"connectEngine")});import{spawn as U3}from"node:child_process";function pT(e){if(!/^https?:\/\//i.test(e))return;let[o,r]=process.platform==="darwin"?["open",[e]]:process.platform==="win32"?["cmd",["/c","start","",e]]:["xdg-open",[e]];try{let c=U3(o,r,{detached:!0,stdio:"ignore"});c.on("error",()=>{}),c.unref()}catch{}}var mT=L(()=>{"use strict";i(pT,"openUrl")});var Bu=Yn((hj,CT)=>{"use strict";var hT=["nodebuffer","arraybuffer","fragments"],ET=typeof Blob<"u";ET&&hT.push("blob");CT.exports={BINARY_TYPES:hT,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:ET,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:i(()=>{},"NOOP")}});var jE=Yn((Cj,SB)=>{"use strict";var{EMPTY_BUFFER:L3}=Bu(),vQ=Buffer[Symbol.species];function G3(e,o){if(e.length===0)return L3;if(e.length===1)return e[0];let r=Buffer.allocUnsafe(o),c=0;for(let u=0;u<e.length;u++){let f=e[u];r.set(f,c),c+=f.length}return c<o?new vQ(r.buffer,r.byteOffset,c):r}i(G3,"concat");function yT(e,o,r,c,u){for(let f=0;f<u;f++)r[c+f]=e[f]^o[f&3]}i(yT,"_mask");function IT(e,o){for(let r=0;r<e.length;r++)e[r]^=o[r&3]}i(IT,"_unmask");function F3(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}i(F3,"toArrayBuffer");function QQ(e){if(QQ.readOnly=!0,Buffer.isBuffer(e))return e;let o;return e instanceof ArrayBuffer?o=new vQ(e):ArrayBuffer.isView(e)?o=new vQ(e.buffer,e.byteOffset,e.byteLength):(o=Buffer.from(e),QQ.readOnly=!1),o}i(QQ,"toBuffer");SB.exports={concat:G3,mask:yT,toArrayBuffer:F3,toBuffer:QQ,unmask:IT};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=Go("bufferutil");SB.exports.mask=function(o,r,c,u,f){f<48?yT(o,r,c,u,f):e.mask(o,r,c,u,f)},SB.exports.unmask=function(o,r){o.length<32?IT(o,r):e.unmask(o,r)}}catch{}});var vT=Yn((Ij,ST)=>{"use strict";var BT=Symbol("kDone"),bQ=Symbol("kRun"),RQ=class{static{i(this,"Limiter")}constructor(o){this[BT]=()=>{this.pending--,this[bQ]()},this.concurrency=o||1/0,this.jobs=[],this.pending=0}add(o){this.jobs.push(o),this[bQ]()}[bQ](){if(this.pending!==this.concurrency&&this.jobs.length){let o=this.jobs.shift();this.pending++,o(this[BT])}}};ST.exports=RQ});var um=Yn((Sj,wT)=>{"use strict";var VE=Go("zlib"),QT=jE(),z3=vT(),{kStatusCode:bT}=Bu(),K3=Buffer[Symbol.species],Y3=Buffer.from([0,0,255,255]),QB=Symbol("permessage-deflate"),Su=Symbol("total-length"),lm=Symbol("callback"),PA=Symbol("buffers"),cm=Symbol("error"),vB,wQ=class{static{i(this,"PerMessageDeflate")}constructor(o){if(this._options=o||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!vB){let r=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;vB=new z3(r)}}static get extensionName(){return"permessage-deflate"}offer(){let o={};return this._options.serverNoContextTakeover&&(o.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(o.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(o.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?o.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(o.client_max_window_bits=!0),o}accept(o){return o=this.normalizeParams(o),this.params=this._isServer?this.acceptAsServer(o):this.acceptAsClient(o),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let o=this._deflate[lm];this._deflate.close(),this._deflate=null,o&&o(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(o){let r=this._options,c=o.find(u=>!(r.serverNoContextTakeover===!1&&u.server_no_context_takeover||u.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>u.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&(typeof u.client_max_window_bits=="number"?r.clientMaxWindowBits>u.client_max_window_bits:!u.client_max_window_bits)));if(!c)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(c.server_no_context_takeover=!0),r.clientNoContextTakeover&&(c.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(c.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?c.client_max_window_bits=r.clientMaxWindowBits:(c.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete c.client_max_window_bits,c}acceptAsClient(o){let r=o[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(o){return o.forEach(r=>{Object.keys(r).forEach(c=>{let u=r[c];if(u.length>1)throw new Error(`Parameter "${c}" must have only a single value`);if(u=u[0],c==="client_max_window_bits"){if(u!==!0){let f=+u;if(!Number.isInteger(f)||f<8||f>15)throw new TypeError(`Invalid value for parameter "${c}": ${u}`);u=f}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${c}": ${u}`)}else if(c==="server_max_window_bits"){let f=+u;if(!Number.isInteger(f)||f<8||f>15)throw new TypeError(`Invalid value for parameter "${c}": ${u}`);u=f}else if(c==="client_no_context_takeover"||c==="server_no_context_takeover"){if(u!==!0)throw new TypeError(`Invalid value for parameter "${c}": ${u}`)}else throw new Error(`Unknown parameter "${c}"`);r[c]=u})}),o}decompress(o,r,c){vB.add(u=>{this._decompress(o,r,(f,m)=>{u(),c(f,m)})})}compress(o,r,c){vB.add(u=>{this._compress(o,r,(f,m)=>{u(),c(f,m)})})}_decompress(o,r,c){let u=this._isServer?"client":"server";if(!this._inflate){let f=`${u}_max_window_bits`,m=typeof this.params[f]!="number"?VE.Z_DEFAULT_WINDOWBITS:this.params[f];this._inflate=VE.createInflateRaw({...this._options.zlibInflateOptions,windowBits:m}),this._inflate[QB]=this,this._inflate[Su]=0,this._inflate[PA]=[],this._inflate.on("error",P3),this._inflate.on("data",RT)}this._inflate[lm]=c,this._inflate.write(o),r&&this._inflate.write(Y3),this._inflate.flush(()=>{let f=this._inflate[cm];if(f){this._inflate.close(),this._inflate=null,c(f);return}let m=QT.concat(this._inflate[PA],this._inflate[Su]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Su]=0,this._inflate[PA]=[],r&&this.params[`${u}_no_context_takeover`]&&this._inflate.reset()),c(null,m)})}_compress(o,r,c){let u=this._isServer?"server":"client";if(!this._deflate){let f=`${u}_max_window_bits`,m=typeof this.params[f]!="number"?VE.Z_DEFAULT_WINDOWBITS:this.params[f];this._deflate=VE.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:m}),this._deflate[Su]=0,this._deflate[PA]=[],this._deflate.on("data",q3)}this._deflate[lm]=c,this._deflate.write(o),this._deflate.flush(VE.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let f=QT.concat(this._deflate[PA],this._deflate[Su]);r&&(f=new K3(f.buffer,f.byteOffset,f.length-4)),this._deflate[lm]=null,this._deflate[Su]=0,this._deflate[PA]=[],r&&this.params[`${u}_no_context_takeover`]&&this._deflate.reset(),c(null,f)})}};wT.exports=wQ;function q3(e){this[PA].push(e),this[Su]+=e.length}i(q3,"deflateOnData");function RT(e){if(this[Su]+=e.length,this[QB]._maxPayload<1||this[Su]<=this[QB]._maxPayload){this[PA].push(e);return}this[cm]=new RangeError("Max payload size exceeded"),this[cm].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[cm][bT]=1009,this.removeListener("data",RT),this.reset()}i(RT,"inflateOnData");function P3(e){if(this[QB]._inflate=null,this[cm]){this[lm](this[cm]);return}e[bT]=1007,this[lm](e)}i(P3,"inflateOnError")});var Am=Yn((Qj,bB)=>{"use strict";var{isUtf8:xT}=Go("buffer"),{hasBlob:J3}=Bu(),j3=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function V3(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}i(V3,"isValidStatusCode");function xQ(e){let o=e.length,r=0;for(;r<o;)if((e[r]&128)===0)r++;else if((e[r]&224)===192){if(r+1===o||(e[r+1]&192)!==128||(e[r]&254)===192)return!1;r+=2}else if((e[r]&240)===224){if(r+2>=o||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160)return!1;r+=3}else if((e[r]&248)===240){if(r+3>=o||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244)return!1;r+=4}else return!1;return!0}i(xQ,"_isValidUTF8");function X3(e){return J3&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}i(X3,"isBlob");bB.exports={isBlob:X3,isValidStatusCode:V3,isValidUTF8:xQ,tokenChars:j3};if(xT)bB.exports.isValidUTF8=function(e){return e.length<24?xQ(e):xT(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=Go("utf-8-validate");bB.exports.isValidUTF8=function(o){return o.length<32?xQ(o):e(o)}}catch{}});var MQ=Yn((Rj,HT)=>{"use strict";var{Writable:Z3}=Go("stream"),DT=um(),{BINARY_TYPES:W3,EMPTY_BUFFER:TT,kStatusCode:$3,kWebSocket:e8}=Bu(),{concat:DQ,toArrayBuffer:t8,unmask:n8}=jE(),{isValidStatusCode:o8,isValidUTF8:_T}=Am(),RB=Buffer[Symbol.species],js=0,NT=1,MT=2,OT=3,TQ=4,_Q=5,wB=6,NQ=class extends Z3{static{i(this,"Receiver")}constructor(o={}){super(),this._allowSynchronousEvents=o.allowSynchronousEvents!==void 0?o.allowSynchronousEvents:!0,this._binaryType=o.binaryType||W3[0],this._extensions=o.extensions||{},this._isServer=!!o.isServer,this._maxBufferedChunks=o.maxBufferedChunks|0,this._maxFragments=o.maxFragments|0,this._maxPayload=o.maxPayload|0,this._skipUTF8Validation=!!o.skipUTF8Validation,this[e8]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=js}_write(o,r,c){if(this._opcode===8&&this._state==js)return c();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){c(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=o.length,this._buffers.push(o),this.startLoop(c)}consume(o){if(this._bufferedBytes-=o,o===this._buffers[0].length)return this._buffers.shift();if(o<this._buffers[0].length){let c=this._buffers[0];return this._buffers[0]=new RB(c.buffer,c.byteOffset+o,c.length-o),new RB(c.buffer,c.byteOffset,o)}let r=Buffer.allocUnsafe(o);do{let c=this._buffers[0],u=r.length-o;o>=c.length?r.set(this._buffers.shift(),u):(r.set(new Uint8Array(c.buffer,c.byteOffset,o),u),this._buffers[0]=new RB(c.buffer,c.byteOffset+o,c.length-o)),o-=c.length}while(o>0);return r}startLoop(o){this._loop=!0;do switch(this._state){case js:this.getInfo(o);break;case NT:this.getPayloadLength16(o);break;case MT:this.getPayloadLength64(o);break;case OT:this.getMask();break;case TQ:this.getData(o);break;case _Q:case wB:this._loop=!1;return}while(this._loop);this._errored||o()}getInfo(o){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if((r[0]&48)!==0){let u=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");o(u);return}let c=(r[0]&64)===64;if(c&&!this._extensions[DT.extensionName]){let u=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");o(u);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(c){let u=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");o(u);return}if(!this._fragmented){let u=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");o(u);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let u=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");o(u);return}this._compressed=c}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let u=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");o(u);return}if(c){let u=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");o(u);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let u=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");o(u);return}}else{let u=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");o(u);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let u=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");o(u);return}}else if(this._masked){let u=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");o(u);return}this._payloadLength===126?this._state=NT:this._payloadLength===127?this._state=MT:this.haveLength(o)}getPayloadLength16(o){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(o)}getPayloadLength64(o){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),c=r.readUInt32BE(0);if(c>Math.pow(2,21)-1){let u=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");o(u);return}this._payloadLength=c*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(o)}haveLength(o){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");o(r);return}this._masked?this._state=OT:this._state=TQ}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=TQ}getData(o){let r=TT;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&n8(r,this._mask)}if(this._opcode>7){this.controlMessage(r,o);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let c=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");o(c);return}if(this._compressed){this._state=_Q,this.decompress(r,o);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(o)}decompress(o,r){this._extensions[DT.extensionName].decompress(o,this._fin,(u,f)=>{if(u)return r(u);if(f.length){if(this._messageLength+=f.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let m=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(m);return}this._fragments.push(f)}this.dataMessage(r),this._state===js&&this.startLoop(r)})}dataMessage(o){if(!this._fin){this._state=js;return}let r=this._messageLength,c=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let u;this._binaryType==="nodebuffer"?u=DQ(c,r):this._binaryType==="arraybuffer"?u=t8(DQ(c,r)):this._binaryType==="blob"?u=new Blob(c):u=c,this._allowSynchronousEvents?(this.emit("message",u,!0),this._state=js):(this._state=wB,setImmediate(()=>{this.emit("message",u,!0),this._state=js,this.startLoop(o)}))}else{let u=DQ(c,r);if(!this._skipUTF8Validation&&!_T(u)){let f=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");o(f);return}this._state===_Q||this._allowSynchronousEvents?(this.emit("message",u,!1),this._state=js):(this._state=wB,setImmediate(()=>{this.emit("message",u,!1),this._state=js,this.startLoop(o)}))}}controlMessage(o,r){if(this._opcode===8){if(o.length===0)this._loop=!1,this.emit("conclude",1005,TT),this.end();else{let c=o.readUInt16BE(0);if(!o8(c)){let f=this.createError(RangeError,`invalid status code ${c}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(f);return}let u=new RB(o.buffer,o.byteOffset+2,o.length-2);if(!this._skipUTF8Validation&&!_T(u)){let f=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(f);return}this._loop=!1,this.emit("conclude",c,u),this.end()}this._state=js;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",o),this._state=js):(this._state=wB,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",o),this._state=js,this.startLoop(r)}))}createError(o,r,c,u,f){this._loop=!1,this._errored=!0;let m=new o(c?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(m,this.createError),m.code=f,m[$3]=u,m}};HT.exports=NQ});var kQ=Yn((Dj,LT)=>{"use strict";var{Duplex:xj}=Go("stream"),{randomFillSync:r8}=Go("crypto"),{types:{isUint8Array:i8}}=Go("util"),kT=um(),{EMPTY_BUFFER:a8,kWebSocket:s8,NOOP:l8}=Bu(),{isBlob:dm,isValidStatusCode:c8}=Am(),{mask:UT,toBuffer:Hf}=jE(),Vs=Symbol("kByteLength"),u8=Buffer.alloc(4),xB=8*1024,kf,fm=xB,Hl=0,A8=1,d8=2,OQ=class e{static{i(this,"Sender")}constructor(o,r,c){this._extensions=r||{},c&&(this._generateMask=c,this._maskBuffer=Buffer.alloc(4)),this._socket=o,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Hl,this.onerror=l8,this[s8]=void 0}static frame(o,r){let c,u=!1,f=2,m=!1;r.mask&&(c=r.maskBuffer||u8,r.generateMask?r.generateMask(c):(fm===xB&&(kf===void 0&&(kf=Buffer.alloc(xB)),r8(kf,0,xB),fm=0),c[0]=kf[fm++],c[1]=kf[fm++],c[2]=kf[fm++],c[3]=kf[fm++]),m=(c[0]|c[1]|c[2]|c[3])===0,f=6);let E;typeof o=="string"?(!r.mask||m)&&r[Vs]!==void 0?E=r[Vs]:(o=Buffer.from(o),E=o.length):(E=o.length,u=r.mask&&r.readOnly&&!m);let S=E;E>=65536?(f+=8,S=127):E>125&&(f+=2,S=126);let v=Buffer.allocUnsafe(u?E+f:f);return v[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(v[0]|=64),v[1]=S,S===126?v.writeUInt16BE(E,2):S===127&&(v[2]=v[3]=0,v.writeUIntBE(E,4,6)),r.mask?(v[1]|=128,v[f-4]=c[0],v[f-3]=c[1],v[f-2]=c[2],v[f-1]=c[3],m?[v,o]:u?(UT(o,c,v,f,E),[v]):(UT(o,c,o,0,E),[v,o])):[v,o]}close(o,r,c,u){let f;if(o===void 0)f=a8;else{if(typeof o!="number"||!c8(o))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)f=Buffer.allocUnsafe(2),f.writeUInt16BE(o,0);else{let E=Buffer.byteLength(r);if(E>123)throw new RangeError("The message must not be greater than 123 bytes");if(f=Buffer.allocUnsafe(2+E),f.writeUInt16BE(o,0),typeof r=="string")f.write(r,2);else if(i8(r))f.set(r,2);else throw new TypeError("Second argument must be a string or a Uint8Array")}}let m={[Vs]:f.length,fin:!0,generateMask:this._generateMask,mask:c,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Hl?this.enqueue([this.dispatch,f,!1,m,u]):this.sendFrame(e.frame(f,m),u)}ping(o,r,c){let u,f;if(typeof o=="string"?(u=Buffer.byteLength(o),f=!1):dm(o)?(u=o.size,f=!1):(o=Hf(o),u=o.length,f=Hf.readOnly),u>125)throw new RangeError("The data size must not be greater than 125 bytes");let m={[Vs]:u,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:f,rsv1:!1};dm(o)?this._state!==Hl?this.enqueue([this.getBlobData,o,!1,m,c]):this.getBlobData(o,!1,m,c):this._state!==Hl?this.enqueue([this.dispatch,o,!1,m,c]):this.sendFrame(e.frame(o,m),c)}pong(o,r,c){let u,f;if(typeof o=="string"?(u=Buffer.byteLength(o),f=!1):dm(o)?(u=o.size,f=!1):(o=Hf(o),u=o.length,f=Hf.readOnly),u>125)throw new RangeError("The data size must not be greater than 125 bytes");let m={[Vs]:u,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:f,rsv1:!1};dm(o)?this._state!==Hl?this.enqueue([this.getBlobData,o,!1,m,c]):this.getBlobData(o,!1,m,c):this._state!==Hl?this.enqueue([this.dispatch,o,!1,m,c]):this.sendFrame(e.frame(o,m),c)}send(o,r,c){let u=this._extensions[kT.extensionName],f=r.binary?2:1,m=r.compress,E,S;typeof o=="string"?(E=Buffer.byteLength(o),S=!1):dm(o)?(E=o.size,S=!1):(o=Hf(o),E=o.length,S=Hf.readOnly),this._firstFragment?(this._firstFragment=!1,m&&u&&u.params[u._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(m=E>=u._threshold),this._compress=m):(m=!1,f=0),r.fin&&(this._firstFragment=!0);let v={[Vs]:E,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:f,readOnly:S,rsv1:m};dm(o)?this._state!==Hl?this.enqueue([this.getBlobData,o,this._compress,v,c]):this.getBlobData(o,this._compress,v,c):this._state!==Hl?this.enqueue([this.dispatch,o,this._compress,v,c]):this.dispatch(o,this._compress,v,c)}getBlobData(o,r,c,u){this._bufferedBytes+=c[Vs],this._state=d8,o.arrayBuffer().then(f=>{if(this._socket.destroyed){let E=new Error("The socket was closed while the blob was being read");process.nextTick(HQ,this,E,u);return}this._bufferedBytes-=c[Vs];let m=Hf(f);r?this.dispatch(m,r,c,u):(this._state=Hl,this.sendFrame(e.frame(m,c),u),this.dequeue())}).catch(f=>{process.nextTick(f8,this,f,u)})}dispatch(o,r,c,u){if(!r){this.sendFrame(e.frame(o,c),u);return}let f=this._extensions[kT.extensionName];this._bufferedBytes+=c[Vs],this._state=A8,f.compress(o,c.fin,(m,E)=>{if(this._socket.destroyed){let S=new Error("The socket was closed while data was being compressed");HQ(this,S,u);return}this._bufferedBytes-=c[Vs],this._state=Hl,c.readOnly=!1,this.sendFrame(e.frame(E,c),u),this.dequeue()})}dequeue(){for(;this._state===Hl&&this._queue.length;){let o=this._queue.shift();this._bufferedBytes-=o[3][Vs],Reflect.apply(o[0],this,o.slice(1))}}enqueue(o){this._bufferedBytes+=o[3][Vs],this._queue.push(o)}sendFrame(o,r){o.length===2?(this._socket.cork(),this._socket.write(o[0]),this._socket.write(o[1],r),this._socket.uncork()):this._socket.write(o[0],r)}};LT.exports=OQ;function HQ(e,o,r){typeof r=="function"&&r(o);for(let c=0;c<e._queue.length;c++){let u=e._queue[c],f=u[u.length-1];typeof f=="function"&&f(o)}}i(HQ,"callCallbacks");function f8(e,o,r){HQ(e,o,r),e.onerror(o)}i(f8,"onError")});var jT=Yn((_j,JT)=>{"use strict";var{kForOnEventAttribute:XE,kListener:UQ}=Bu(),GT=Symbol("kCode"),FT=Symbol("kData"),zT=Symbol("kError"),KT=Symbol("kMessage"),YT=Symbol("kReason"),gm=Symbol("kTarget"),qT=Symbol("kType"),PT=Symbol("kWasClean"),vu=class{static{i(this,"Event")}constructor(o){this[gm]=null,this[qT]=o}get target(){return this[gm]}get type(){return this[qT]}};Object.defineProperty(vu.prototype,"target",{enumerable:!0});Object.defineProperty(vu.prototype,"type",{enumerable:!0});var Uf=class extends vu{static{i(this,"CloseEvent")}constructor(o,r={}){super(o),this[GT]=r.code===void 0?0:r.code,this[YT]=r.reason===void 0?"":r.reason,this[PT]=r.wasClean===void 0?!1:r.wasClean}get code(){return this[GT]}get reason(){return this[YT]}get wasClean(){return this[PT]}};Object.defineProperty(Uf.prototype,"code",{enumerable:!0});Object.defineProperty(Uf.prototype,"reason",{enumerable:!0});Object.defineProperty(Uf.prototype,"wasClean",{enumerable:!0});var pm=class extends vu{static{i(this,"ErrorEvent")}constructor(o,r={}){super(o),this[zT]=r.error===void 0?null:r.error,this[KT]=r.message===void 0?"":r.message}get error(){return this[zT]}get message(){return this[KT]}};Object.defineProperty(pm.prototype,"error",{enumerable:!0});Object.defineProperty(pm.prototype,"message",{enumerable:!0});var ZE=class extends vu{static{i(this,"MessageEvent")}constructor(o,r={}){super(o),this[FT]=r.data===void 0?null:r.data}get data(){return this[FT]}};Object.defineProperty(ZE.prototype,"data",{enumerable:!0});var g8={addEventListener(e,o,r={}){for(let u of this.listeners(e))if(!r[XE]&&u[UQ]===o&&!u[XE])return;let c;if(e==="message")c=i(function(f,m){let E=new ZE("message",{data:m?f:f.toString()});E[gm]=this,DB(o,this,E)},"onMessage");else if(e==="close")c=i(function(f,m){let E=new Uf("close",{code:f,reason:m.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});E[gm]=this,DB(o,this,E)},"onClose");else if(e==="error")c=i(function(f){let m=new pm("error",{error:f,message:f.message});m[gm]=this,DB(o,this,m)},"onError");else if(e==="open")c=i(function(){let f=new vu("open");f[gm]=this,DB(o,this,f)},"onOpen");else return;c[XE]=!!r[XE],c[UQ]=o,r.once?this.once(e,c):this.on(e,c)},removeEventListener(e,o){for(let r of this.listeners(e))if(r[UQ]===o&&!r[XE]){this.removeListener(e,r);break}}};JT.exports={CloseEvent:Uf,ErrorEvent:pm,Event:vu,EventTarget:g8,MessageEvent:ZE};function DB(e,o,r){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,r):e.call(o,r)}i(DB,"callListener")});var TB=Yn((Mj,VT)=>{"use strict";var{tokenChars:WE}=Am();function Bc(e,o,r){e[o]===void 0?e[o]=[r]:e[o].push(r)}i(Bc,"push");function p8(e){let o=Object.create(null),r=Object.create(null),c=!1,u=!1,f=!1,m,E,S=-1,v=-1,b=-1,N=0;for(;N<e.length;N++)if(v=e.charCodeAt(N),m===void 0)if(b===-1&&WE[v]===1)S===-1&&(S=N);else if(N!==0&&(v===32||v===9))b===-1&&S!==-1&&(b=N);else if(v===59||v===44){if(S===-1)throw new SyntaxError(`Unexpected character at index ${N}`);b===-1&&(b=N);let M=e.slice(S,b);v===44?(Bc(o,M,r),r=Object.create(null)):m=M,S=b=-1}else throw new SyntaxError(`Unexpected character at index ${N}`);else if(E===void 0)if(b===-1&&WE[v]===1)S===-1&&(S=N);else if(v===32||v===9)b===-1&&S!==-1&&(b=N);else if(v===59||v===44){if(S===-1)throw new SyntaxError(`Unexpected character at index ${N}`);b===-1&&(b=N),Bc(r,e.slice(S,b),!0),v===44&&(Bc(o,m,r),r=Object.create(null),m=void 0),S=b=-1}else if(v===61&&S!==-1&&b===-1)E=e.slice(S,N),S=b=-1;else throw new SyntaxError(`Unexpected character at index ${N}`);else if(u){if(WE[v]!==1)throw new SyntaxError(`Unexpected character at index ${N}`);S===-1?S=N:c||(c=!0),u=!1}else if(f)if(WE[v]===1)S===-1&&(S=N);else if(v===34&&S!==-1)f=!1,b=N;else if(v===92)u=!0;else throw new SyntaxError(`Unexpected character at index ${N}`);else if(v===34&&e.charCodeAt(N-1)===61)f=!0;else if(b===-1&&WE[v]===1)S===-1&&(S=N);else if(S!==-1&&(v===32||v===9))b===-1&&(b=N);else if(v===59||v===44){if(S===-1)throw new SyntaxError(`Unexpected character at index ${N}`);b===-1&&(b=N);let M=e.slice(S,b);c&&(M=M.replace(/\\/g,""),c=!1),Bc(r,E,M),v===44&&(Bc(o,m,r),r=Object.create(null),m=void 0),E=void 0,S=b=-1}else throw new SyntaxError(`Unexpected character at index ${N}`);if(S===-1||f||v===32||v===9)throw new SyntaxError("Unexpected end of input");b===-1&&(b=N);let R=e.slice(S,b);return m===void 0?Bc(o,R,r):(E===void 0?Bc(r,R,!0):c?Bc(r,E,R.replace(/\\/g,"")):Bc(r,E,R),Bc(o,m,r)),o}i(p8,"parse");function m8(e){return Object.keys(e).map(o=>{let r=e[o];return Array.isArray(r)||(r=[r]),r.map(c=>[o].concat(Object.keys(c).map(u=>{let f=c[u];return Array.isArray(f)||(f=[f]),f.map(m=>m===!0?u:`${u}=${m}`).join("; ")})).join("; ")).join(", ")}).join(", ")}i(m8,"format");VT.exports={format:m8,parse:p8}});var OB=Yn((Uj,s_)=>{"use strict";var h8=Go("events"),E8=Go("https"),C8=Go("http"),WT=Go("net"),y8=Go("tls"),{randomBytes:I8,createHash:B8}=Go("crypto"),{Duplex:Hj,Readable:kj}=Go("stream"),{URL:LQ}=Go("url"),JA=um(),S8=MQ(),v8=kQ(),{isBlob:Q8}=Am(),{BINARY_TYPES:XT,CLOSE_TIMEOUT:b8,EMPTY_BUFFER:_B,GUID:R8,kForOnEventAttribute:GQ,kListener:w8,kStatusCode:x8,kWebSocket:hi,NOOP:$T}=Bu(),{EventTarget:{addEventListener:D8,removeEventListener:T8}}=jT(),{format:_8,parse:N8}=TB(),{toBuffer:M8}=jE(),e_=Symbol("kAborted"),FQ=[8,13],Qu=["CONNECTING","OPEN","CLOSING","CLOSED"],O8=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,Fo=class e extends h8{static{i(this,"WebSocket")}constructor(o,r,c){super(),this._binaryType=XT[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=_B,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,o!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?r=[]:Array.isArray(r)||(typeof r=="object"&&r!==null?(c=r,r=[]):r=[r]),t_(this,o,r,c)):(this._autoPong=c.autoPong,this._closeTimeout=c.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(o){XT.includes(o)&&(this._binaryType=o,this._receiver&&(this._receiver._binaryType=o))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(o,r,c){let u=new S8({allowSynchronousEvents:c.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:c.maxBufferedChunks,maxFragments:c.maxFragments,maxPayload:c.maxPayload,skipUTF8Validation:c.skipUTF8Validation}),f=new v8(o,this._extensions,c.generateMask);this._receiver=u,this._sender=f,this._socket=o,u[hi]=this,f[hi]=this,o[hi]=this,u.on("conclude",U8),u.on("drain",L8),u.on("error",G8),u.on("message",F8),u.on("ping",z8),u.on("pong",K8),f.onerror=Y8,o.setTimeout&&o.setTimeout(0),o.setNoDelay&&o.setNoDelay(),r.length>0&&o.unshift(r),o.on("close",r_),o.on("data",MB),o.on("end",i_),o.on("error",a_),this._readyState=e.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[JA.extensionName]&&this._extensions[JA.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(o,r){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){fs(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(o,r,!this._isServer,c=>{c||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),o_(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(o,r,c){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof o=="function"?(c=o,o=r=void 0):typeof r=="function"&&(c=r,r=void 0),typeof o=="number"&&(o=o.toString()),this.readyState!==e.OPEN){zQ(this,o,c);return}r===void 0&&(r=!this._isServer),this._sender.ping(o||_B,r,c)}pong(o,r,c){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof o=="function"?(c=o,o=r=void 0):typeof r=="function"&&(c=r,r=void 0),typeof o=="number"&&(o=o.toString()),this.readyState!==e.OPEN){zQ(this,o,c);return}r===void 0&&(r=!this._isServer),this._sender.pong(o||_B,r,c)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(o,r,c){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(c=r,r={}),typeof o=="number"&&(o=o.toString()),this.readyState!==e.OPEN){zQ(this,o,c);return}let u={binary:typeof o!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[JA.extensionName]||(u.compress=!1),this._sender.send(o||_B,u,c)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){fs(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(Fo,"CONNECTING",{enumerable:!0,value:Qu.indexOf("CONNECTING")});Object.defineProperty(Fo.prototype,"CONNECTING",{enumerable:!0,value:Qu.indexOf("CONNECTING")});Object.defineProperty(Fo,"OPEN",{enumerable:!0,value:Qu.indexOf("OPEN")});Object.defineProperty(Fo.prototype,"OPEN",{enumerable:!0,value:Qu.indexOf("OPEN")});Object.defineProperty(Fo,"CLOSING",{enumerable:!0,value:Qu.indexOf("CLOSING")});Object.defineProperty(Fo.prototype,"CLOSING",{enumerable:!0,value:Qu.indexOf("CLOSING")});Object.defineProperty(Fo,"CLOSED",{enumerable:!0,value:Qu.indexOf("CLOSED")});Object.defineProperty(Fo.prototype,"CLOSED",{enumerable:!0,value:Qu.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(Fo.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach(e=>{Object.defineProperty(Fo.prototype,`on${e}`,{enumerable:!0,get(){for(let o of this.listeners(e))if(o[GQ])return o[w8];return null},set(o){for(let r of this.listeners(e))if(r[GQ]){this.removeListener(e,r);break}typeof o=="function"&&this.addEventListener(e,o,{[GQ]:!0})}})});Fo.prototype.addEventListener=D8;Fo.prototype.removeEventListener=T8;s_.exports=Fo;function t_(e,o,r,c){let u={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:b8,protocolVersion:FQ[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...c,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=u.autoPong,e._closeTimeout=u.closeTimeout,!FQ.includes(u.protocolVersion))throw new RangeError(`Unsupported protocol version: ${u.protocolVersion} (supported versions: ${FQ.join(", ")})`);let f;if(o instanceof LQ)f=o;else try{f=new LQ(o)}catch{throw new SyntaxError(`Invalid URL: ${o}`)}f.protocol==="http:"?f.protocol="ws:":f.protocol==="https:"&&(f.protocol="wss:"),e._url=f.href;let m=f.protocol==="wss:",E=f.protocol==="ws+unix:",S;if(f.protocol!=="ws:"&&!m&&!E?S=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:E&&!f.pathname?S="The URL's pathname is empty":f.hash&&(S="The URL contains a fragment identifier"),S){let k=new SyntaxError(S);if(e._redirects===0)throw k;NB(e,k);return}let v=m?443:80,b=I8(16).toString("base64"),N=m?E8.request:C8.request,R=new Set,M;if(u.createConnection=u.createConnection||(m?k8:H8),u.defaultPort=u.defaultPort||v,u.port=f.port||v,u.host=f.hostname.startsWith("[")?f.hostname.slice(1,-1):f.hostname,u.headers={...u.headers,"Sec-WebSocket-Version":u.protocolVersion,"Sec-WebSocket-Key":b,Connection:"Upgrade",Upgrade:"websocket"},u.path=f.pathname+f.search,u.timeout=u.handshakeTimeout,u.perMessageDeflate&&(M=new JA({...u.perMessageDeflate,isServer:!1,maxPayload:u.maxPayload}),u.headers["Sec-WebSocket-Extensions"]=_8({[JA.extensionName]:M.offer()})),r.length){for(let k of r){if(typeof k!="string"||!O8.test(k)||R.has(k))throw new SyntaxError("An invalid or duplicated subprotocol was specified");R.add(k)}u.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(u.origin&&(u.protocolVersion<13?u.headers["Sec-WebSocket-Origin"]=u.origin:u.headers.Origin=u.origin),(f.username||f.password)&&(u.auth=`${f.username}:${f.password}`),E){let k=u.path.split(":");u.socketPath=k[0],u.path=k[1]}let D;if(u.followRedirects){if(e._redirects===0){e._originalIpc=E,e._originalSecure=m,e._originalHostOrSocketPath=E?u.socketPath:f.host;let k=c&&c.headers;if(c={...c,headers:{}},k)for(let[H,$]of Object.entries(k))c.headers[H.toLowerCase()]=$}else if(e.listenerCount("redirect")===0){let k=E?e._originalIpc?u.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:f.host===e._originalHostOrSocketPath;(!k||e._originalSecure&&!m)&&(delete u.headers.authorization,delete u.headers.cookie,k||delete u.headers.host,u.auth=void 0)}u.auth&&!c.headers.authorization&&(c.headers.authorization="Basic "+Buffer.from(u.auth).toString("base64")),D=e._req=N(u),e._redirects&&e.emit("redirect",e.url,D)}else D=e._req=N(u);u.timeout&&D.on("timeout",()=>{fs(e,D,"Opening handshake has timed out")}),D.on("error",k=>{D===null||D[e_]||(D=e._req=null,NB(e,k))}),D.on("response",k=>{let H=k.headers.location,$=k.statusCode;if(H&&u.followRedirects&&$>=300&&$<400){if(++e._redirects>u.maxRedirects){fs(e,D,"Maximum redirects exceeded");return}D.abort();let Qe;try{Qe=new LQ(H,o)}catch{let Ce=new SyntaxError(`Invalid URL: ${H}`);NB(e,Ce);return}t_(e,Qe,r,c)}else e.emit("unexpected-response",D,k)||fs(e,D,`Unexpected server response: ${k.statusCode}`)}),D.on("upgrade",(k,H,$)=>{if(e.emit("upgrade",k),e.readyState!==Fo.CONNECTING)return;D=e._req=null;let Qe=k.headers.upgrade;if(Qe===void 0||Qe.toLowerCase()!=="websocket"){fs(e,H,"Invalid Upgrade header");return}let Ee=B8("sha1").update(b+R8).digest("base64");if(k.headers["sec-websocket-accept"]!==Ee){fs(e,H,"Invalid Sec-WebSocket-Accept header");return}let Ce=k.headers["sec-websocket-protocol"],Me;if(Ce!==void 0?R.size?R.has(Ce)||(Me="Server sent an invalid subprotocol"):Me="Server sent a subprotocol but none was requested":R.size&&(Me="Server sent no subprotocol"),Me){fs(e,H,Me);return}Ce&&(e._protocol=Ce);let ge=k.headers["sec-websocket-extensions"];if(ge!==void 0){if(!M){fs(e,H,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let Le;try{Le=N8(ge)}catch{fs(e,H,"Invalid Sec-WebSocket-Extensions header");return}let le=Object.keys(Le);if(le.length!==1||le[0]!==JA.extensionName){fs(e,H,"Server indicated an extension that was not requested");return}try{M.accept(Le[JA.extensionName])}catch{fs(e,H,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[JA.extensionName]=M}e.setSocket(H,$,{allowSynchronousEvents:u.allowSynchronousEvents,generateMask:u.generateMask,maxBufferedChunks:u.maxBufferedChunks,maxFragments:u.maxFragments,maxPayload:u.maxPayload,skipUTF8Validation:u.skipUTF8Validation})}),u.finishRequest?u.finishRequest(D,e):D.end()}i(t_,"initAsClient");function NB(e,o){e._readyState=Fo.CLOSING,e._errorEmitted=!0,e.emit("error",o),e.emitClose()}i(NB,"emitErrorAndClose");function H8(e){return e.path=e.socketPath,WT.connect(e)}i(H8,"netConnect");function k8(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=WT.isIP(e.host)?"":e.host),y8.connect(e)}i(k8,"tlsConnect");function fs(e,o,r){e._readyState=Fo.CLOSING;let c=new Error(r);Error.captureStackTrace(c,fs),o.setHeader?(o[e_]=!0,o.abort(),o.socket&&!o.socket.destroyed&&o.socket.destroy(),process.nextTick(NB,e,c)):(o.destroy(c),o.once("error",e.emit.bind(e,"error")),o.once("close",e.emitClose.bind(e)))}i(fs,"abortHandshake");function zQ(e,o,r){if(o){let c=Q8(o)?o.size:M8(o).length;e._socket?e._sender._bufferedBytes+=c:e._bufferedAmount+=c}if(r){let c=new Error(`WebSocket is not open: readyState ${e.readyState} (${Qu[e.readyState]})`);process.nextTick(r,c)}}i(zQ,"sendAfterClose");function U8(e,o){let r=this[hi];r._closeFrameReceived=!0,r._closeMessage=o,r._closeCode=e,r._socket[hi]!==void 0&&(r._socket.removeListener("data",MB),process.nextTick(n_,r._socket),e===1005?r.close():r.close(e,o))}i(U8,"receiverOnConclude");function L8(){let e=this[hi];e.isPaused||e._socket.resume()}i(L8,"receiverOnDrain");function G8(e){let o=this[hi];o._socket[hi]!==void 0&&(o._socket.removeListener("data",MB),process.nextTick(n_,o._socket),o.close(e[x8])),o._errorEmitted||(o._errorEmitted=!0,o.emit("error",e))}i(G8,"receiverOnError");function ZT(){this[hi].emitClose()}i(ZT,"receiverOnFinish");function F8(e,o){this[hi].emit("message",e,o)}i(F8,"receiverOnMessage");function z8(e){let o=this[hi];o._autoPong&&o.pong(e,!this._isServer,$T),o.emit("ping",e)}i(z8,"receiverOnPing");function K8(e){this[hi].emit("pong",e)}i(K8,"receiverOnPong");function n_(e){e.resume()}i(n_,"resume");function Y8(e){let o=this[hi];o.readyState!==Fo.CLOSED&&(o.readyState===Fo.OPEN&&(o._readyState=Fo.CLOSING,o_(o)),this._socket.end(),o._errorEmitted||(o._errorEmitted=!0,o.emit("error",e)))}i(Y8,"senderOnError");function o_(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}i(o_,"setCloseTimer");function r_(){let e=this[hi];if(this.removeListener("close",r_),this.removeListener("data",MB),this.removeListener("end",i_),e._readyState=Fo.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let o=this.read(this._readableState.length);e._receiver.write(o)}e._receiver.end(),this[hi]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",ZT),e._receiver.on("finish",ZT))}i(r_,"socketOnClose");function MB(e){this[hi]._receiver.write(e)||this.pause()}i(MB,"socketOnData");function i_(){let e=this[hi];e._readyState=Fo.CLOSING,e._receiver.end(),this.end()}i(i_,"socketOnEnd");function a_(){let e=this[hi];this.removeListener("error",a_),this.on("error",$T),e&&(e._readyState=Fo.CLOSING,this.destroy())}i(a_,"socketOnError")});var A_=Yn((Fj,u_)=>{"use strict";var Gj=OB(),{Duplex:q8}=Go("stream");function l_(e){e.emit("close")}i(l_,"emitClose");function P8(){!this.destroyed&&this._writableState.finished&&this.destroy()}i(P8,"duplexOnEnd");function c_(e){this.removeListener("error",c_),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e)}i(c_,"duplexOnError");function J8(e,o){let r=!0,c=new q8({...o,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",i(function(f,m){let E=!m&&c._readableState.objectMode?f.toString():f;c.push(E)||e.pause()},"message")),e.once("error",i(function(f){c.destroyed||(r=!1,c.destroy(f))},"error")),e.once("close",i(function(){c.destroyed||c.push(null)},"close")),c._destroy=function(u,f){if(e.readyState===e.CLOSED){f(u),process.nextTick(l_,c);return}let m=!1;e.once("error",i(function(S){m=!0,f(S)},"error")),e.once("close",i(function(){m||f(u),process.nextTick(l_,c)},"close")),r&&e.terminate()},c._final=function(u){if(e.readyState===e.CONNECTING){e.once("open",i(function(){c._final(u)},"open"));return}e._socket!==null&&(e._socket._writableState.finished?(u(),c._readableState.endEmitted&&c.destroy()):(e._socket.once("finish",i(function(){u()},"finish")),e.close()))},c._read=function(){e.isPaused&&e.resume()},c._write=function(u,f,m){if(e.readyState===e.CONNECTING){e.once("open",i(function(){c._write(u,f,m)},"open"));return}e.send(u,m)},c.on("end",P8),c.on("error",c_),c}i(J8,"createWebSocketStream");u_.exports=J8});var KQ=Yn((Kj,d_)=>{"use strict";var{tokenChars:j8}=Am();function V8(e){let o=new Set,r=-1,c=-1,u=0;for(u;u<e.length;u++){let m=e.charCodeAt(u);if(c===-1&&j8[m]===1)r===-1&&(r=u);else if(u!==0&&(m===32||m===9))c===-1&&r!==-1&&(c=u);else if(m===44){if(r===-1)throw new SyntaxError(`Unexpected character at index ${u}`);c===-1&&(c=u);let E=e.slice(r,c);if(o.has(E))throw new SyntaxError(`The "${E}" subprotocol is duplicated`);o.add(E),r=c=-1}else throw new SyntaxError(`Unexpected character at index ${u}`)}if(r===-1||c!==-1)throw new SyntaxError("Unexpected end of input");let f=e.slice(r,u);if(o.has(f))throw new SyntaxError(`The "${f}" subprotocol is duplicated`);return o.add(f),o}i(V8,"parse");d_.exports={parse:V8}});var C_=Yn((Pj,E_)=>{"use strict";var X8=Go("events"),HB=Go("http"),{Duplex:qj}=Go("stream"),{createHash:Z8}=Go("crypto"),f_=TB(),Lf=um(),W8=KQ(),$8=OB(),{CLOSE_TIMEOUT:e6,GUID:t6,kWebSocket:n6}=Bu(),o6=/^[+/0-9A-Za-z]{22}==$/,g_=0,p_=1,h_=2,YQ=class extends X8{static{i(this,"WebSocketServer")}constructor(o,r){if(super(),o={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:256*1024,maxFragments:16*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:e6,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:$8,...o},o.port==null&&!o.server&&!o.noServer||o.port!=null&&(o.server||o.noServer)||o.server&&o.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(o.port!=null?(this._server=HB.createServer((c,u)=>{let f=HB.STATUS_CODES[426];u.writeHead(426,{"Content-Length":f.length,"Content-Type":"text/plain"}),u.end(f)}),this._server.listen(o.port,o.host,o.backlog,r)):o.server&&(this._server=o.server),this._server){let c=this.emit.bind(this,"connection");this._removeListeners=r6(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:i((u,f,m)=>{this.handleUpgrade(u,f,m,c)},"upgrade")})}o.perMessageDeflate===!0&&(o.perMessageDeflate={}),o.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=o,this._state=g_}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(o){if(this._state===h_){o&&this.once("close",()=>{o(new Error("The server is not running"))}),process.nextTick($E,this);return}if(o&&this.once("close",o),this._state!==p_)if(this._state=p_,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick($E,this):process.nextTick($E,this);else{let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{$E(this)})}}shouldHandle(o){if(this.options.path){let r=o.url.indexOf("?");if((r!==-1?o.url.slice(0,r):o.url)!==this.options.path)return!1}return!0}handleUpgrade(o,r,c,u){r.on("error",m_);let f=o.headers["sec-websocket-key"],m=o.headers.upgrade,E=+o.headers["sec-websocket-version"];if(o.method!=="GET"){Gf(this,o,r,405,"Invalid HTTP method");return}if(m===void 0||m.toLowerCase()!=="websocket"){Gf(this,o,r,400,"Invalid Upgrade header");return}if(f===void 0||!o6.test(f)){Gf(this,o,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(E!==13&&E!==8){Gf(this,o,r,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(o)){eC(r,400);return}let S=o.headers["sec-websocket-protocol"],v=new Set;if(S!==void 0)try{v=W8.parse(S)}catch{Gf(this,o,r,400,"Invalid Sec-WebSocket-Protocol header");return}let b=o.headers["sec-websocket-extensions"],N={};if(this.options.perMessageDeflate&&b!==void 0){let R=new Lf({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let M=f_.parse(b);M[Lf.extensionName]&&(R.accept(M[Lf.extensionName]),N[Lf.extensionName]=R)}catch{Gf(this,o,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let R={origin:o.headers[`${E===8?"sec-websocket-origin":"origin"}`],secure:!!(o.socket.authorized||o.socket.encrypted),req:o};if(this.options.verifyClient.length===2){this.options.verifyClient(R,(M,D,k,H)=>{if(!M)return eC(r,D||401,k,H);this.completeUpgrade(N,f,v,o,r,c,u)});return}if(!this.options.verifyClient(R))return eC(r,401)}this.completeUpgrade(N,f,v,o,r,c,u)}completeUpgrade(o,r,c,u,f,m,E){if(!f.readable||!f.writable)return f.destroy();if(f[n6])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>g_)return eC(f,503);let v=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Z8("sha1").update(r+t6).digest("base64")}`],b=new this.options.WebSocket(null,void 0,this.options);if(c.size){let N=this.options.handleProtocols?this.options.handleProtocols(c,u):c.values().next().value;N&&(v.push(`Sec-WebSocket-Protocol: ${N}`),b._protocol=N)}if(o[Lf.extensionName]){let N=o[Lf.extensionName].params,R=f_.format({[Lf.extensionName]:[N]});v.push(`Sec-WebSocket-Extensions: ${R}`),b._extensions=o}this.emit("headers",v,u),f.write(v.concat(`\r
9
+ `).join(`\r
10
+ `)),f.removeListener("error",m_),b.setSocket(f,m,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(b),b.on("close",()=>{this.clients.delete(b),this._shouldEmitClose&&!this.clients.size&&process.nextTick($E,this)})),E(b,u)}};E_.exports=YQ;function r6(e,o){for(let r of Object.keys(o))e.on(r,o[r]);return i(function(){for(let c of Object.keys(o))e.removeListener(c,o[c])},"removeListeners")}i(r6,"addListeners");function $E(e){e._state=h_,e.emit("close")}i($E,"emitClose");function m_(){this.destroy()}i(m_,"socketOnError");function eC(e,o,r,c){r=r||HB.STATUS_CODES[o],c={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...c},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${o} ${HB.STATUS_CODES[o]}\r
11
+ `+Object.keys(c).map(u=>`${u}: ${c[u]}`).join(`\r
12
+ `)+`\r
13
+ \r
14
+ `+r)}i(eC,"abortHandshake");function Gf(e,o,r,c,u,f){if(e.listenerCount("wsClientError")){let m=new Error(u);Error.captureStackTrace(m,Gf),e.emit("wsClientError",m,r,o)}else eC(r,c,u,f)}i(Gf,"abortHandshakeOrEmitwsClientError")});var R_={};mi(R_,{PerMessageDeflate:()=>B_.default,Receiver:()=>S_.default,Sender:()=>v_.default,WebSocket:()=>qQ.default,WebSocketServer:()=>b_.default,createWebSocketStream:()=>y_.default,default:()=>tC,extension:()=>I_.default,subprotocol:()=>Q_.default});var y_,I_,B_,S_,v_,Q_,qQ,b_,tC,kB=L(()=>{y_=Ue(A_(),1),I_=Ue(TB(),1),B_=Ue(um(),1),S_=Ue(MQ(),1),v_=Ue(kQ(),1),Q_=Ue(KQ(),1),qQ=Ue(OB(),1),b_=Ue(C_(),1),tC=qQ.default});import w_ from"node:path";import{fileURLToPath as i6}from"node:url";function PQ(){return w_.join(w_.dirname(i6(import.meta.url)),"daemon.mjs")}async function nC(){return globalThis.WebSocket?void 0:(await Promise.resolve().then(()=>(kB(),R_))).default}async function hr(e,o){let r=await nC();return fT(PQ(),c=>{if(c.event==="capability.openExternal"){pT(c.url),o?.(c.url);return}e(c)},{clientId:"cli",webSocketImpl:r})}var Xs=L(()=>{"use strict";gT();mT();i(PQ,"daemonBundlePath");i(nC,"webSocketImpl");i(hr,"connectCliEngine")});function D_(e){x_=e}function JQ(e){return e.replace(/\x1b\[[0-9;]*m/g,"")}function Ru(e,o){let r=JQ(e);return r.length<=o?e:`${r.slice(0,Math.max(0,o-1))}\u2026`}var x_,mm,bu,ht,ie,T_,eV,__,Kt,It,Bt,En,Fn,tV,Zs,Dn,nV,Bo=L(()=>{"use strict";x_=!process.env.NO_COLOR&&process.env.FORCE_COLOR!=="0"&&(!!process.stdout.isTTY||!!process.env.FORCE_COLOR);i(D_,"setColorEnabled");mm=i((e,o)=>r=>x_?`${e}${r}${o}`:r,"wrap"),bu=i(e=>mm(`\x1B[38;5;${e}m`,"\x1B[39m"),"fg"),ht=mm("\x1B[1m","\x1B[22m"),ie=mm("\x1B[2m","\x1B[22m"),T_=mm("\x1B[3m","\x1B[23m"),eV=mm("\x1B[7m","\x1B[27m"),__=mm("\x1B[9m","\x1B[29m"),Kt=bu(209),It=bu(114),Bt=bu(203),En=bu(179),Fn=bu(80),tV=bu(75),Zs=bu(245),Dn=bu(240),nV=bu(255);i(JQ,"stripAnsi");i(Ru,"truncate")});function jQ({onlyFirst:e=!1}={}){let u="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(u,e?void 0:"g")}var N_=L(()=>{i(jQ,"ansiRegex")});function VQ(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(a6,"")}var a6,M_=L(()=>{N_();a6=jQ();i(VQ,"stripAnsi")});var O_,H_,k_,U_,L_,G_,XQ,F_=L(()=>{O_=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],H_=12288,k_=65510,U_=[12288,12288,65281,65376,65504,65510],L_=4352,G_=262141,XQ=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var UB,z_=L(()=>{UB=i((e,o)=>{let r=0,c=Math.floor(e.length/2)-1;for(;r<=c;){let u=Math.floor((r+c)/2),f=u*2;if(o<e[f])c=u-1;else if(o>e[f+1])r=u+1;else return!0}return!1},"isInRange")});function A6(e){let o=e[0],r=e[1];for(let c=0;c<e.length;c+=2){let u=e[c],f=e[c+1];if(K_>=u&&K_<=f)return[u,f];f-u>r-o&&(o=u,r=f)}return[o,r]}var K_,c6,u6,Y_,oC,rC,ZQ=L(()=>{F_();z_();K_=19968,[c6,u6]=A6(XQ);i(A6,"findWideFastPathRange");Y_=i(e=>e<161||e>1114109?!1:UB(O_,e),"isAmbiguous"),oC=i(e=>e<H_||e>k_?!1:UB(U_,e),"isFullWidth"),rC=i(e=>e>=c6&&e<=u6?!0:e<L_||e>G_?!1:UB(XQ,e),"isWide")});function d6(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function iC(e,{ambiguousAsWide:o=!1}={}){return d6(e),oC(e)||rC(e)||o&&Y_(e)?2:1}var WQ=L(()=>{ZQ();ZQ();i(d6,"validate");i(iC,"eastAsianWidth")});function E6(e){if(e.length>50)return!1;if(m6.test(e))return!0;if(e.includes("\u200D")){let o=e.match(h6);return o!==null&&o.length>=2}return!1}function C6(e){let o=e.search(q_);return o===-1?void 0:e.slice(o)}function P_(e){return e>=4352&&e<=4447||e>=43360&&e<=43388}function J_(e){return e>=4448&&e<=4519||e>=55216&&e<=55238}function j_(e){return e>=4520&&e<=4607||e>=55243&&e<=55291}function y6(e){return P_(e)||J_(e)||j_(e)}function I6(e,o){let r=[];for(let u of e)q_.test(u)&&r.push(u.codePointAt(0));if(r.length===0)return;let c=0;for(let u=0;u<r.length;u++){let f=r[u];if(!y6(f)){if(c===0)return;for(let m=u;m<r.length;m++)c+=iC(r[m],o);return c}if(P_(f)&&J_(r[u+1])){c+=2,u+=j_(r[u+2])?2:1;continue}c+=iC(f,o)}return c}function B6(e,o){let r=0,c=!0;for(let u of e){if(c){c=!1;continue}(g6.test(u)||u>="\uFF00"&&u<="\uFFEF")&&(r+=iC(u.codePointAt(0),o))}return r}function Ot(e,o={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:c=!1}=o,u=e;if(!c&&(u.includes("\x1B")||u.includes("\x9B"))&&(u=VQ(u)),u.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(u))return u.length;let f=0,m={ambiguousAsWide:!r};for(let{segment:E}of f6.segment(u)){let S=C6(E);if(S===void 0)continue;if(p6.test(E)||E6(E)){f+=2;continue}let v=I6(S,m);if(v!==void 0){f+=v;continue}let b=S.codePointAt(0);f+=iC(b,m),f+=B6(S,m)}return f}var f6,q_,g6,p6,m6,h6,Ea=L(()=>{M_();WQ();f6=new Intl.Segmenter,q_=new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]","v"),g6=new RegExp("\\p{Spacing_Mark}","v"),p6=new RegExp("^\\p{RGI_Emoji}$","v"),m6=/^[\d#*]\u20E3$/,h6=new RegExp("\\p{Extended_Pictographic}","gu");i(E6,"isDoubleWidthNonRgiEmojiSequence");i(C6,"baseVisible");i(P_,"isHangulLeadingJamo");i(J_,"isHangulVowelJamo");i(j_,"isHangulTrailingJamo");i(y6,"isHangulJamo");i(I6,"hangulClusterWidth");i(B6,"trailingWidth");i(Ot,"stringWidth")});var Z_={};mi(Z_,{runDoctor:()=>b6});import{existsSync as S6}from"node:fs";function v6(e){try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}function X_(){return Math.max(Q6,...Object.values(V_).map(e=>Ot(C(e))+2))}function gs(e,o){let r=C(V_[e]);return`${ie(r)}${" ".repeat(X_()-Ot(r))}${o}`}async function b6(){let e=qE(),o=await KA(async v=>!!await Ic(v)),r=[];r.push(`${ht("More AI Code")} v${ti} \xB7 node ${process.version} \xB7 ${process.platform}/${process.arch}`),r.push(gs("backend",`${Vi.id==="production"?It("production"):En(Vi.label.toLowerCase())} \xB7 ${om(Vi.apiBaseUrl)}`)),r.push(gs("dataDir",o));let c=S6(PQ());r.push(gs("daemon",c?It(C("cli.doctor.daemonReady")):Bt(C("cli.doctor.daemonMissing"))));let u=await Ic(o);if(!u)return r.push(gs("engine",C("cli.doctor.engineNone",{status:En(C("cli.doctor.noneDiscovered"))}))),e.length>1&&r.push(gs("lookedIn",e.join(`
15
+ ${" ".repeat(X_()+1)}`))),r.push(""),r.push(C("cli.doctor.launchHint")),r.push(C("cli.doctor.setupHint")),console.log(r.join(`
16
+ `)),c?0:1;let f=v6(u.pid),m=new Date(u.startedAt).toLocaleString(za()==="en"?void 0:za());if(r.push(gs("discovery",C("cli.doctor.discovery",{pid:u.pid,state:f?It(C("cli.doctor.alive")):Bt(C("cli.doctor.dead")),port:u.port,started:m}))),u.port===0)return r.push(gs("engine",En(C("cli.doctor.hubOff")))),r.push(""),r.push(C("cli.doctor.hubOffTitle")),r.push(` ${C("cli.doctor.hubOffSteps")}`),r.push(C("cli.doctor.hubOffClose")),console.log(r.join(`
17
+ `)),1;let E=f&&await hQ(u),S=!E&&f&&await EQ(o);if(r.push(gs("health",E?It(C("cli.doctor.healthOk")):S?En(C("cli.doctor.healthIncompatible")):Bt(C("cli.doctor.healthStale")))),r.push(gs("endpoint",u.url)),E){let v=await Js(o);if(v){let b=new qA({...v,clientId:"cli-doctor",webSocketImpl:await nC()});try{await b.connect();let N=await Promise.allSettled([b.command("account.state",void 0),b.command("provider.list",void 0),b.command("connector.list",void 0)]),R=N[0],M=N[1],D=N[2],k=C("cli.doctor.unavailable");r.push(gs("account",R.status==="fulfilled"?R.value.signedIn?It(R.value.user?.email??C("cli.doctor.signedIn")):En(C("cli.doctor.signedOut")):En(k))),r.push(gs("providers",M.status==="fulfilled"?C("cli.doctor.providersConnected",{count:M.value.providers.filter(H=>H.connected).length}):k)),r.push(gs("services",D.status==="fulfilled"?C("cli.doctor.servicesReady",{count:D.value.filter(H=>H.status==="ready").length}):k))}catch{r.push(gs("details",En(C("cli.doctor.detailsFailed"))))}finally{b.close()}}r.push(""),r.push(C("cli.doctor.ready",{ready:It(C("cli.doctor.readyWord"))}))}else r.push(""),r.push(S?C("cli.doctor.updateBoth"):C("cli.doctor.staleRecord"));return console.log(r.join(`
18
+ `)),S?1:E||c?0:1}var V_,Q6,W_=L(()=>{"use strict";sm();JE();BB();im();Mf();_f();Xs();Bo();Ea();Vt();i(v6,"pidAlive");V_={backend:"cli.doctor.label.backend",dataDir:"cli.doctor.label.dataDir",daemon:"cli.doctor.label.daemon",engine:"cli.doctor.label.engine",lookedIn:"cli.doctor.label.lookedIn",discovery:"cli.doctor.label.discovery",health:"cli.doctor.label.health",endpoint:"cli.doctor.label.endpoint",account:"cli.doctor.label.account",providers:"cli.doctor.label.providers",services:"cli.doctor.label.services",details:"cli.doctor.label.details"},Q6=11;i(X_,"valueColumn");i(gs,"row");i(b6,"runDoctor")});var e2={};mi(e2,{newerVersion:()=>tb,runUpdate:()=>N6,updateChannel:()=>eb,updateNotice:()=>nb});import{spawn as R6}from"node:child_process";import{readFile as w6,writeFile as x6}from"node:fs/promises";import D6 from"node:path";function eb(e){return/^\d+\.\d+\.\d+-/.test(e)?"beta":"latest"}function tb(e,o){let r=i(f=>{let m=/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/.exec(f);return m?{parts:m.slice(1,4).map(Number),prerelease:m[4]?.split(".")}:null},"parse"),c=r(e),u=r(o);if(!c||!u)return!1;for(let f=0;f<3;f++)if(c.parts[f]!==u.parts[f])return u.parts[f]>c.parts[f];if(!c.prerelease)return!1;if(!u.prerelease)return!0;for(let f=0;f<Math.max(c.prerelease.length,u.prerelease.length);f++){let m=c.prerelease[f],E=u.prerelease[f];if(m===void 0)return!0;if(E===void 0)return!1;if(m===E)continue;let S=/^\d+$/.test(m),v=/^\d+$/.test(E);return S&&v?Number(E)>Number(m):S!==v?!v:E>m}return!1}async function $_(e){let o=await fetch(T6,{signal:AbortSignal.timeout(3e3),headers:{Accept:"application/vnd.npm.install-v1+json"}});if(o.status===404)return null;if(!o.ok)throw new Error(C("cli.update.registryReplied",{status:o.status}));let c=(await o.json())["dist-tags"]??{};return typeof c[e]=="string"?c[e]:null}async function N6(e){let o=eb(ti),r;try{r=await $_(o)}catch(f){return console.error(Bt(C("cli.update.failed",{message:f instanceof Error?f.message:String(f)}))),1}if(!r)return console.log(En(C("cli.update.notPublished",{channel:o,package:$Q,version:ti}))),0;if(!tb(ti,r))return console.log(`${It("\u2713")} ${C("cli.update.current",{version:ti,channel:o})}`),0;if(console.log(`${ht("More AI Code")} ${ti} \u2192 ${r} (${o})`),!e)return console.log(C("cli.update.runInstall",{install:ht("moreai update --install"),npm:ht(`npm install -g ${$Q}@${o}`)})),0;let c=process.platform==="win32"?"npm.cmd":"npm",u=R6(c,["install","-g",`${$Q}@${o}`],{stdio:"inherit"});return new Promise(f=>{u.once("error",m=>{console.error(Bt(`npm: ${m.message}`)),f(1)}),u.once("close",m=>f(m??1))})}async function nb(e){let o=D6.join(e,"cli-update.json"),r={checkedAt:0};try{r=JSON.parse(await w6(o,"utf8"))}catch{}let c=eb(ti);if(Date.now()-r.checkedAt>=_6)try{r.latest=await $_(c)??void 0,r.checkedAt=Date.now()}catch{return null}let u=r.latest,f=!!u&&tb(ti,u)&&r.notified!==u;f&&(r.notified=u);try{await x6(o,JSON.stringify(r),{mode:384})}catch{}return f?ie(C("cli.update.notice",{version:u})):null}var $Q,T6,_6,ob=L(()=>{"use strict";Mf();Bo();Vt();$Q="@moreai/code",T6="https://registry.npmjs.org/%40more-ai%2Fcode",_6=1440*60*1e3;i(eb,"updateChannel");i(tb,"newerVersion");i($_,"publishedVersion");i(N6,"runUpdate");i(nb,"updateNotice")});function t2(e){if(e.accountAuth)return[];let o=[];return e.oauth&&o.push({kind:"oauth",label:C("auth.method.oauth")}),e.keyless&&o.push({kind:"keyless",label:C("auth.method.keyless")}),e.keyConnectable&&o.push({kind:"key",label:e.keyHint?C("auth.method.keyWithHint",{hint:e.keyHint}):C("auth.method.key")}),o}function n2(e,o){let r=t2(e);return o&&!e.connected&&e.keyConnectable&&r.unshift({kind:"env",label:C("auth.method.env",{name:o.name})}),e.connected&&!e.accountAuth&&r.push({kind:"disconnect",label:C("auth.method.disconnect")}),r}function o2(e){let o=e.providers.filter(u=>u.connected||t2(u).length>0),r=o.filter(u=>u.connected),c=o.filter(u=>!u.connected);return[...r,...c.filter(u=>u.custom),...c.filter(u=>!u.custom&&u.popular),...c.filter(u=>!u.custom&&!u.popular)]}function r2(e){switch(e.connectedVia){case"oauth":return e.account?C("auth.status.signedInAs",{account:e.account}):C("auth.status.signedIn");case"account":return e.account?C("auth.status.accountAs",{account:e.account}):C("auth.status.account");case"keyless":return C("auth.status.local");default:return C("auth.status.apiKey")}}function i2(e){return e.connected?`\u2713 ${r2(e)}`:""}function a2(e){return e.providers.filter(o=>o.connected).map(o=>{let r={provider:o.label,status:r2(o)};return o.id===e.defaultProviderId?C("auth.statusLineDefault",r):C("auth.statusLine",r)})}function s2(e){return C("auth.keychainNote")}function l2(e){try{let o=new URL(e).searchParams.get("redirect_uri");if(!o)return;let r=new URL(o);if(!["localhost","127.0.0.1","[::1]"].includes(r.hostname))return;let c=Number(r.port);return Number.isInteger(c)&&c>0?c:void 0}catch{return}}function c2(e=process.env){return!!(e.SSH_CONNECTION||e.SSH_TTY||e.SSH_CLIENT)}var rb=L(()=>{"use strict";Vt();i(t2,"connectMethods");i(n2,"methodsFor");i(o2,"authRows");i(r2,"statusWords");i(i2,"statusTag");i(a2,"statusLines");i(s2,"keychainNote");i(l2,"loopbackPortOf");i(c2,"isRemoteTerminal")});var LB,ib=L(()=>{"use strict";LB=[{id:"anthropic",label:"Anthropic",openAICompatible:!1,defaultBaseUrl:"https://api.anthropic.com",models:["claude-opus-4-8","claude-sonnet-4-6","claude-haiku-4-5"],docsUrl:"https://console.anthropic.com/settings/keys",siteUrl:"https://www.anthropic.com",keyHint:"sk-ant-\u2026",popular:!0,oauth:{label:"auth.loginWithClaude",consent:!0},envKeys:["ANTHROPIC_API_KEY"]},{id:"openai",label:"OpenAI",openAICompatible:!0,defaultBaseUrl:"https://api.openai.com/v1",models:["gpt-4o","gpt-4o-mini","o3-mini"],docsUrl:"https://platform.openai.com/api-keys",siteUrl:"https://openai.com",keyHint:"sk-\u2026",popular:!0,envKeys:["OPENAI_API_KEY"]},{id:"openai-chatgpt",label:"ChatGPT (Pro/Plus)",openAICompatible:!1,models:["gpt-5-codex","gpt-5","codex-mini-latest"],docsUrl:"https://chatgpt.com",siteUrl:"https://chatgpt.com",popular:!0,oauth:{label:"auth.loginWithChatgpt",experimental:!0,consent:!0}},{id:"gemini",label:"Google Gemini",openAICompatible:!0,protocol:"google",defaultBaseUrl:"https://generativelanguage.googleapis.com/v1beta/openai",models:["gemini-2.5-pro","gemini-2.5-flash","gemini-2.5-flash-lite"],docsUrl:"https://aistudio.google.com/apikey",siteUrl:"https://gemini.google.com",keyHint:"AIza\u2026",popular:!0,freeStart:2,envKeys:["GEMINI_API_KEY","GOOGLE_GENERATIVE_AI_API_KEY","GOOGLE_API_KEY"]},{id:"github-copilot",label:"GitHub Copilot",openAICompatible:!0,models:["gpt-4.1","gpt-4o","o4-mini","claude-sonnet-4","gemini-2.5-pro"],docsUrl:"https://github.com/settings/copilot",siteUrl:"https://github.com",popular:!0,oauth:{label:"auth.loginWithGithub",consent:!0}},{id:"openrouter",label:"OpenRouter",openAICompatible:!0,defaultBaseUrl:"https://openrouter.ai/api/v1",models:["anthropic/claude-sonnet-4.6","openai/gpt-4o","deepseek/deepseek-chat"],docsUrl:"https://openrouter.ai/keys",siteUrl:"https://openrouter.ai",keyHint:"sk-or-\u2026",popular:!0,freeStart:4,envKeys:["OPENROUTER_API_KEY"]},{id:"timeweb",label:"Timeweb Cloud AI Gateway",openAICompatible:!0,defaultBaseUrl:"https://api.timeweb.ai/v1",models:[],docsUrl:"https://timeweb.cloud/docs/ai-agents/api-usage/ai-gateway",siteUrl:"https://timeweb.cloud",popular:!0,languages:["ru"],priceCurrency:"RUB"},{id:"routerai",label:"RouterAI",openAICompatible:!0,defaultBaseUrl:"https://routerai.ru/api/v1",models:["anthropic/claude-sonnet-5","openai/gpt-5.6-sol","deepseek/deepseek-v4-pro"],docsUrl:"https://routerai.ru/docs/guides",siteUrl:"https://routerai.ru",popular:!0,languages:["ru"]},{id:"aitunnel",label:"AITunnel",openAICompatible:!0,defaultBaseUrl:"https://api.aitunnel.ru/v1",models:["deepseek-v4-pro","gemini-3-7-flash"],docsUrl:"https://aitunnel.ru/docs",siteUrl:"https://aitunnel.ru",keyHint:"sk-aitunnel-\u2026",popular:!0,languages:["ru"]},{id:"proxyapi",label:"ProxyAPI",openAICompatible:!0,defaultBaseUrl:"https://api.proxyapi.ru/openai/v1",models:["gpt-4o","gpt-4o-mini"],docsUrl:"https://proxyapi.ru/docs",siteUrl:"https://proxyapi.ru",popular:!0,languages:["ru"]},{id:"vsegpt",label:"VseGPT",openAICompatible:!0,defaultBaseUrl:"https://api.vsegpt.ru/v1",models:["openai/gpt-4o-mini"],docsUrl:"https://vsegpt.ru/Docs/API",siteUrl:"https://vsegpt.ru",popular:!0,languages:["ru"]},{id:"polza",label:"Polza.ai",openAICompatible:!0,defaultBaseUrl:"https://polza.ai/api/v1",models:["anthropic/claude-opus-5","z-ai/glm-5.3"],docsUrl:"https://polza.ai/docs",siteUrl:"https://polza.ai",popular:!0,languages:["ru"]},{id:"deepseek",label:"DeepSeek",openAICompatible:!0,defaultBaseUrl:"https://api.deepseek.com/v1",models:["deepseek-chat","deepseek-reasoner"],docsUrl:"https://platform.deepseek.com/api_keys",siteUrl:"https://www.deepseek.com",popular:!0,envKeys:["DEEPSEEK_API_KEY"]},{id:"zai",label:"Z.ai (GLM)",openAICompatible:!0,defaultBaseUrl:"https://api.z.ai/api/paas/v4",plans:[{id:"standard",label:"providers.zaiPlanStandard",baseUrl:"https://api.z.ai/api/paas/v4"},{id:"coding",label:"providers.zaiPlanCoding",baseUrl:"https://api.z.ai/api/coding/paas/v4",note:"providers.zaiCodingNote"}],models:["glm-5.3","glm-5.3-flash","glm-5.2","glm-4.6","glm-4.6v","glm-4.5-air"],docsUrl:"https://z.ai/manage-apikey/apikey-list",siteUrl:"https://z.ai",popular:!0,envKeys:["ZAI_API_KEY","ZHIPUAI_API_KEY"]},{id:"groq",label:"Groq",openAICompatible:!0,defaultBaseUrl:"https://api.groq.com/openai/v1",models:["llama-3.3-70b-versatile","llama-3.1-8b-instant"],docsUrl:"https://console.groq.com/keys",siteUrl:"https://groq.com",popular:!0,freeStart:3,envKeys:["GROQ_API_KEY"]},{id:"ollama-cloud",label:"Ollama Cloud",openAICompatible:!0,defaultBaseUrl:"https://ollama.com/v1",models:["gpt-oss:120b","qwen3-coder:480b","deepseek-v3.1:671b","glm-4.6"],docsUrl:"https://ollama.com/settings/keys",siteUrl:"https://ollama.com",popular:!0,envKeys:["OLLAMA_API_KEY"]},{id:"xai",label:"xAI (Grok)",openAICompatible:!0,defaultBaseUrl:"https://api.x.ai/v1",models:["grok-4","grok-3","grok-3-mini"],docsUrl:"https://console.x.ai/",siteUrl:"https://x.ai",keyHint:"xai-\u2026",envKeys:["XAI_API_KEY","GROK_API_KEY"]},{id:"mistral",label:"Mistral",openAICompatible:!0,defaultBaseUrl:"https://api.mistral.ai/v1",models:["mistral-large-latest","mistral-small-latest","codestral-latest"],docsUrl:"https://console.mistral.ai/api-keys",siteUrl:"https://mistral.ai",envKeys:["MISTRAL_API_KEY"]},{id:"qwen",label:"Qwen (DashScope)",openAICompatible:!0,defaultBaseUrl:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",models:["qwen-max","qwen-plus","qwen-turbo"],docsUrl:"https://bailian.console.alibabacloud.com/",siteUrl:"https://qwen.ai",envKeys:["DASHSCOPE_API_KEY"]},{id:"perplexity",label:"Perplexity",openAICompatible:!0,defaultBaseUrl:"https://api.perplexity.ai",models:["sonar-pro","sonar","sonar-reasoning"],docsUrl:"https://www.perplexity.ai/settings/api",siteUrl:"https://www.perplexity.ai",keyHint:"pplx-\u2026",envKeys:["PERPLEXITY_API_KEY"]},{id:"together",label:"Together AI",openAICompatible:!0,defaultBaseUrl:"https://api.together.xyz/v1",models:["meta-llama/Llama-3.3-70B-Instruct-Turbo","deepseek-ai/DeepSeek-V3"],docsUrl:"https://api.together.ai/settings/api-keys",siteUrl:"https://www.together.ai",envKeys:["TOGETHER_API_KEY"]},{id:"fireworks",label:"Fireworks AI",openAICompatible:!0,defaultBaseUrl:"https://api.fireworks.ai/inference/v1",models:["accounts/fireworks/models/llama-v3p3-70b-instruct"],docsUrl:"https://fireworks.ai/account/api-keys",siteUrl:"https://fireworks.ai",envKeys:["FIREWORKS_API_KEY"]},{id:"cerebras",label:"Cerebras",openAICompatible:!0,defaultBaseUrl:"https://api.cerebras.ai/v1",models:["llama-3.3-70b","llama3.1-8b"],docsUrl:"https://cloud.cerebras.ai/",siteUrl:"https://www.cerebras.ai",envKeys:["CEREBRAS_API_KEY"]},{id:"deepinfra",label:"DeepInfra",openAICompatible:!0,defaultBaseUrl:"https://api.deepinfra.com/v1/openai",models:["meta-llama/Llama-3.3-70B-Instruct","deepseek-ai/DeepSeek-V3"],docsUrl:"https://deepinfra.com/dash/api_keys",siteUrl:"https://deepinfra.com",envKeys:["DEEPINFRA_API_KEY"]},{id:"moonshot",label:"Moonshot (Kimi)",openAICompatible:!0,defaultBaseUrl:"https://api.moonshot.ai/v1",models:["kimi-k2-0905-preview","moonshot-v1-128k"],docsUrl:"https://platform.moonshot.ai/console/api-keys",siteUrl:"https://www.moonshot.ai",envKeys:["MOONSHOT_API_KEY"]},{id:"nebius",label:"Nebius AI Studio",openAICompatible:!0,defaultBaseUrl:"https://api.studio.nebius.com/v1",models:["meta-llama/Llama-3.3-70B-Instruct","deepseek-ai/DeepSeek-V3"],docsUrl:"https://studio.nebius.com/settings/api-keys",siteUrl:"https://nebius.com",envKeys:["NEBIUS_API_KEY"]},{id:"hyperbolic",label:"Hyperbolic",openAICompatible:!0,defaultBaseUrl:"https://api.hyperbolic.xyz/v1",models:["meta-llama/Llama-3.3-70B-Instruct"],docsUrl:"https://app.hyperbolic.xyz/settings",siteUrl:"https://hyperbolic.xyz",envKeys:["HYPERBOLIC_API_KEY"]},{id:"novita",label:"Novita AI",openAICompatible:!0,defaultBaseUrl:"https://api.novita.ai/v3/openai",models:["meta-llama/llama-3.3-70b-instruct","deepseek/deepseek-v3"],docsUrl:"https://novita.ai/settings/key-management",siteUrl:"https://novita.ai",envKeys:["NOVITA_API_KEY"]},{id:"minimax",label:"MiniMax",openAICompatible:!0,defaultBaseUrl:"https://api.minimax.io/v1",models:["MiniMax-M2","MiniMax-M1","MiniMax-Text-01"],docsUrl:"https://platform.minimax.io/user-center/basic-information/interface-key",siteUrl:"https://www.minimax.io",envKeys:["MINIMAX_API_KEY"]},{id:"huggingface",label:"Hugging Face",openAICompatible:!0,defaultBaseUrl:"https://router.huggingface.co/v1",models:["deepseek-ai/DeepSeek-V3.1","moonshotai/Kimi-K2-Instruct","Qwen/Qwen3-235B-A22B"],docsUrl:"https://huggingface.co/settings/tokens",siteUrl:"https://huggingface.co",keyHint:"hf_\u2026",envKeys:["HF_TOKEN","HUGGING_FACE_HUB_TOKEN"]},{id:"github-models",label:"GitHub Models",openAICompatible:!0,defaultBaseUrl:"https://models.github.ai/inference",modelsUrl:"https://models.github.ai/catalog/models",models:["openai/gpt-4.1","openai/gpt-4o","meta/Llama-3.3-70B-Instruct"],docsUrl:"https://github.com/settings/personal-access-tokens",siteUrl:"https://github.com",keyHint:"github_pat_\u2026",envKeys:["GITHUB_TOKEN"]},{id:"nvidia",label:"NVIDIA NIM",openAICompatible:!0,defaultBaseUrl:"https://integrate.api.nvidia.com/v1",models:["deepseek-ai/deepseek-r1","meta/llama-3.3-70b-instruct","qwen/qwen3-235b-a22b"],docsUrl:"https://build.nvidia.com",siteUrl:"https://www.nvidia.com",keyHint:"nvapi-\u2026",envKeys:["NVIDIA_API_KEY"]},{id:"cohere",label:"Cohere",openAICompatible:!0,defaultBaseUrl:"https://api.cohere.ai/compatibility/v1",models:["command-a-03-2025","command-r-plus-08-2024","command-r7b-12-2024"],docsUrl:"https://dashboard.cohere.com/api-keys",siteUrl:"https://cohere.com",envKeys:["COHERE_API_KEY","CO_API_KEY"]},{id:"siliconflow",label:"SiliconFlow",openAICompatible:!0,defaultBaseUrl:"https://api.siliconflow.com/v1",models:["deepseek-ai/DeepSeek-V3.2","Qwen/Qwen3-235B-A22B","zai-org/GLM-4.6"],docsUrl:"https://cloud.siliconflow.com/account/ak",siteUrl:"https://siliconflow.com",envKeys:["SILICONFLOW_API_KEY"]},{id:"vercel-gateway",label:"Vercel AI Gateway",openAICompatible:!0,defaultBaseUrl:"https://ai-gateway.vercel.sh/v1",models:["openai/gpt-5.4","anthropic/claude-sonnet-4.6","google/gemini-3-pro"],docsUrl:"https://vercel.com/docs/ai-gateway",siteUrl:"https://vercel.com",keyHint:"vck_\u2026",envKeys:["AI_GATEWAY_API_KEY"]},{id:"poe",label:"Poe",openAICompatible:!0,defaultBaseUrl:"https://api.poe.com/v1",models:["Claude-Sonnet-4.5","GPT-5","Gemini-2.5-Pro"],docsUrl:"https://poe.com/api_key",siteUrl:"https://poe.com",envKeys:["POE_API_KEY"]},{id:"ollama",label:"Ollama",openAICompatible:!0,defaultBaseUrl:"http://localhost:11434/v1",models:["llama3.3","qwen3","gpt-oss:20b"],docsUrl:"https://ollama.com/download",siteUrl:"https://ollama.com",keyless:!0,freeStart:1},{id:"lmstudio",label:"LM Studio",openAICompatible:!0,defaultBaseUrl:"http://localhost:1234/v1",models:["openai/gpt-oss-20b","qwen/qwen3-4b-2507"],docsUrl:"https://lmstudio.ai/docs/app/api",siteUrl:"https://lmstudio.ai",keyless:!0,envKeys:["LMSTUDIO_API_KEY"]}]});function ab(e,o=process.env){let r=LB.find(c=>c.id===e)?.envKeys??[];for(let c of r){let u=o[c]?.trim();if(u&&u.length>=8&&!/\s/.test(u))return{name:c,value:u}}}function hm(e,o=process.env){return e.flatMap(r=>{if(r.connected||!r.keyConnectable)return[];let c=ab(r.id,o);return c?[{provider:r,key:c}]:[]})}var GB=L(()=>{"use strict";ib();i(ab,"envKeyFor");i(hm,"envConnectable")});var A2=Yn(FB=>{"use strict";var M6=Symbol.for("react.transitional.element"),O6=Symbol.for("react.fragment");function u2(e,o,r){var c=null;if(r!==void 0&&(c=""+r),o.key!==void 0&&(c=""+o.key),"key"in o){r={};for(var u in o)u!=="key"&&(r[u]=o[u])}else r=o;return o=r.ref,{$$typeof:M6,type:e,key:c,ref:o!==void 0?o:null,props:r}}i(u2,"jsxProd");FB.Fragment=O6;FB.jsx=u2;FB.jsxs=u2});var v2=Yn(tn=>{"use strict";var cb=Symbol.for("react.transitional.element"),H6=Symbol.for("react.portal"),k6=Symbol.for("react.fragment"),U6=Symbol.for("react.strict_mode"),L6=Symbol.for("react.profiler"),G6=Symbol.for("react.consumer"),F6=Symbol.for("react.context"),z6=Symbol.for("react.forward_ref"),K6=Symbol.for("react.suspense"),Y6=Symbol.for("react.memo"),m2=Symbol.for("react.lazy"),q6=Symbol.for("react.activity"),P6=Symbol.for("react.view_transition"),d2=Symbol.iterator;function J6(e){return e===null||typeof e!="object"?null:(e=d2&&e[d2]||e["@@iterator"],typeof e=="function"?e:null)}i(J6,"getIteratorFn");var h2={isMounted:i(function(){return!1},"isMounted"),enqueueForceUpdate:i(function(){},"enqueueForceUpdate"),enqueueReplaceState:i(function(){},"enqueueReplaceState"),enqueueSetState:i(function(){},"enqueueSetState")},E2=Object.assign,C2={};function Cm(e,o,r){this.props=e,this.context=o,this.refs=C2,this.updater=r||h2}i(Cm,"Component");Cm.prototype.isReactComponent={};Cm.prototype.setState=function(e,o){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,o,"setState")};Cm.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function y2(){}i(y2,"ComponentDummy");y2.prototype=Cm.prototype;function ub(e,o,r){this.props=e,this.context=o,this.refs=C2,this.updater=r||h2}i(ub,"PureComponent");var Ab=ub.prototype=new y2;Ab.constructor=ub;E2(Ab,Cm.prototype);Ab.isPureReactComponent=!0;var f2=Array.isArray;function lb(){}i(lb,"noop");var So={H:null,A:null,T:null,S:null},I2=Object.prototype.hasOwnProperty;function db(e,o,r){var c=r.ref;return{$$typeof:cb,type:e,key:o,ref:c!==void 0?c:null,props:r}}i(db,"ReactElement");function j6(e,o){return db(e.type,o,e.props)}i(j6,"cloneAndReplaceKey");function fb(e){return typeof e=="object"&&e!==null&&e.$$typeof===cb}i(fb,"isValidElement");function V6(e){var o={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return o[r]})}i(V6,"escape");var g2=/\/+/g;function sb(e,o){return typeof e=="object"&&e!==null&&e.key!=null?V6(""+e.key):o.toString(36)}i(sb,"getElementKey");function X6(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(lb,lb):(e.status="pending",e.then(function(o){e.status==="pending"&&(e.status="fulfilled",e.value=o)},function(o){e.status==="pending"&&(e.status="rejected",e.reason=o)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}i(X6,"resolveThenable");function Em(e,o,r,c,u){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var m=!1;if(e===null)m=!0;else switch(f){case"bigint":case"string":case"number":m=!0;break;case"object":switch(e.$$typeof){case cb:case H6:m=!0;break;case m2:return m=e._init,Em(m(e._payload),o,r,c,u)}}if(m)return u=u(e),m=c===""?"."+sb(e,0):c,f2(u)?(r="",m!=null&&(r=m.replace(g2,"$&/")+"/"),Em(u,o,r,"",function(v){return v})):u!=null&&(fb(u)&&(u=j6(u,r+(u.key==null||e&&e.key===u.key?"":(""+u.key).replace(g2,"$&/")+"/")+m)),o.push(u)),1;m=0;var E=c===""?".":c+":";if(f2(e))for(var S=0;S<e.length;S++)c=e[S],f=E+sb(c,S),m+=Em(c,o,r,f,u);else if(S=J6(e),typeof S=="function")for(e=S.call(e),S=0;!(c=e.next()).done;)c=c.value,f=E+sb(c,S++),m+=Em(c,o,r,f,u);else if(f==="object"){if(typeof e.then=="function")return Em(X6(e),o,r,c,u);throw o=String(e),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return m}i(Em,"mapIntoArray");function zB(e,o,r){if(e==null)return e;var c=[],u=0;return Em(e,c,"","",function(f){return o.call(r,f,u++)}),c}i(zB,"mapChildren");function Z6(e){if(e._status===-1){var o=e._result,r=o();r.then(function(c){(e._status===0||e._status===-1)&&(e._status=1,e._result=c,r.status===void 0&&(r.status="fulfilled",r.value=c))},function(c){(e._status===0||e._status===-1)&&(e._status=2,e._result=c,r.status===void 0&&(r.status="rejected",r.reason=c))}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}i(Z6,"lazyInitializer");var p2=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function B2(e){var o=So.T,r={};r.types=o!==null?o.types:null,So.T=r;try{var c=e(),u=So.S;u!==null&&u(r,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(lb,p2)}catch(f){p2(f)}finally{o!==null&&r.types!==null&&(o.types=r.types),So.T=o}}i(B2,"startTransition");function S2(e){var o=So.T;if(o!==null){var r=o.types;r===null?o.types=[e]:r.indexOf(e)===-1&&r.push(e)}else B2(S2.bind(null,e))}i(S2,"addTransitionType");var W6={map:zB,forEach:i(function(e,o,r){zB(e,function(){o.apply(this,arguments)},r)},"forEach"),count:i(function(e){var o=0;return zB(e,function(){o++}),o},"count"),toArray:i(function(e){return zB(e,function(o){return o})||[]},"toArray"),only:i(function(e){if(!fb(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};tn.Activity=q6;tn.Children=W6;tn.Component=Cm;tn.Fragment=k6;tn.Profiler=L6;tn.PureComponent=ub;tn.StrictMode=U6;tn.Suspense=K6;tn.ViewTransition=P6;tn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=So;tn.__COMPILER_RUNTIME={__proto__:null,c:i(function(e){return So.H.useMemoCache(e)},"c")};tn.addTransitionType=S2;tn.cache=function(e){return function(){return e.apply(null,arguments)}};tn.cacheSignal=function(){return null};tn.cloneElement=function(e,o,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var c=E2({},e.props),u=e.key;if(o!=null)for(f in o.key!==void 0&&(u=""+o.key),o)!I2.call(o,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&o.ref===void 0||(c[f]=o[f]);var f=arguments.length-2;if(f===1)c.children=r;else if(1<f){for(var m=Array(f),E=0;E<f;E++)m[E]=arguments[E+2];c.children=m}return db(e.type,u,c)};tn.createContext=function(e){return e={$$typeof:F6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:G6,_context:e},e};tn.createElement=function(e,o,r){var c,u={},f=null;if(o!=null)for(c in o.key!==void 0&&(f=""+o.key),o)I2.call(o,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(u[c]=o[c]);var m=arguments.length-2;if(m===1)u.children=r;else if(1<m){for(var E=Array(m),S=0;S<m;S++)E[S]=arguments[S+2];u.children=E}if(e&&e.defaultProps)for(c in m=e.defaultProps,m)u[c]===void 0&&(u[c]=m[c]);return db(e,f,u)};tn.createRef=function(){return{current:null}};tn.forwardRef=function(e){return{$$typeof:z6,render:e}};tn.isValidElement=fb;tn.lazy=function(e){return{$$typeof:m2,_payload:{_status:-1,_result:e},_init:Z6}};tn.memo=function(e,o){return{$$typeof:Y6,type:e,compare:o===void 0?null:o}};tn.startTransition=B2;tn.unstable_useCacheRefresh=function(){return So.H.useCacheRefresh()};tn.use=function(e){return So.H.use(e)};tn.useActionState=function(e,o,r){return So.H.useActionState(e,o,r)};tn.useCallback=function(e,o){return So.H.useCallback(e,o)};tn.useContext=function(e){return So.H.useContext(e)};tn.useDebugValue=function(){};tn.useDeferredValue=function(e,o){return So.H.useDeferredValue(e,o)};tn.useEffect=function(e,o){return So.H.useEffect(e,o)};tn.useEffectEvent=function(e){return So.H.useEffectEvent(e)};tn.useId=function(){return So.H.useId()};tn.useImperativeHandle=function(e,o,r){return So.H.useImperativeHandle(e,o,r)};tn.useInsertionEffect=function(e,o){return So.H.useInsertionEffect(e,o)};tn.useLayoutEffect=function(e,o){return So.H.useLayoutEffect(e,o)};tn.useMemo=function(e,o){return So.H.useMemo(e,o)};tn.useOptimistic=function(e,o){return So.H.useOptimistic(e,o)};tn.useReducer=function(e,o,r){return So.H.useReducer(e,o,r)};tn.useRef=function(e){return So.H.useRef(e)};tn.useState=function(e){return So.H.useState(e)};tn.useSyncExternalStore=function(e,o,r){return So.H.useSyncExternalStore(e,o,r)};tn.useTransition=function(){return So.H.useTransition()};tn.version="19.3.0"});var Q2=Yn(($t,KB)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(w,j){Object.defineProperty(c.prototype,w,{get:i(function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])},"get")})}i(e,"defineDeprecationWarning");function o(w){return w===null||typeof w!="object"?null:(w=Lt&&w[Lt]||w["@@iterator"],typeof w=="function"?w:null)}i(o,"getIteratorFn");function r(w,j){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var ze=w+"."+j;gt[ze]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",j,w),gt[ze]=!0)}i(r,"warnNoop");function c(w,j,ze){this.props=w,this.context=j,this.refs=at,this.updater=ze||Be}i(c,"Component");function u(){}i(u,"ComponentDummy");function f(w,j,ze){this.props=w,this.context=j,this.refs=at,this.updater=ze||Be}i(f,"PureComponent");function m(){}i(m,"noop");function E(w){return""+w}i(E,"testStringCoercion");function S(w){try{E(w);var j=!1}catch{j=!0}if(j){j=console;var ze=j.error,ke=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return ze.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ke),E(w)}}i(S,"checkKeyStringCoercion");function v(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===xe?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case pt:return"Fragment";case be:return"Profiler";case P:return"StrictMode";case mt:return"Suspense";case ne:return"SuspenseList";case At:return"Activity";case Qt:return"ViewTransition"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case ut:return"Portal";case oe:return w.displayName||"Context";case Xe:return(w._context.displayName||"Context")+".Consumer";case nt:var j=w.render;return w=w.displayName,w||(w=j.displayName||j.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case se:return j=w.displayName||null,j!==null?j:v(w.type)||"Memo";case Te:j=w._payload,w=w._init;try{return v(w(j))}catch{}}return null}i(v,"getComponentNameFromType");function b(w){if(w===pt)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===Te)return"<...>";try{var j=v(w);return j?"<"+j+">":"<...>"}catch{return"<...>"}}i(b,"getTaskName");function N(){var w=he.A;return w===null?null:w.getOwner()}i(N,"getOwner");function R(){return Error("react-stack-top-frame")}i(R,"UnknownOwner");function M(w){if(Ze.call(w,"key")){var j=Object.getOwnPropertyDescriptor(w,"key").get;if(j&&j.isReactWarning)return!1}return w.key!==void 0}i(M,"hasValidKey");function D(w,j){function ze(){Hn||(Hn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",j))}i(ze,"warnAboutAccessingKey"),ze.isReactWarning=!0,Object.defineProperty(w,"key",{get:ze,configurable:!0})}i(D,"defineKeyPropWarningGetter");function k(){var w=v(this.type);return Ro[w]||(Ro[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}i(k,"elementRefGetterWithDeprecationWarning");function H(w,j,ze,ke,it,An){var ft=ze.ref;return w={$$typeof:W,type:w,key:j,props:ze,_owner:ke},(ft!==void 0?ft:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:k}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:it}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:An}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}i(H,"ReactElement");function $(w,j){return j=H(w.type,j,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(j._store.validated=w._store.validated),j}i($,"cloneAndReplaceKey");function Qe(w){Ee(w)?w._store&&(w._store.validated=1):typeof w=="object"&&w!==null&&w.$$typeof===Te&&(w._payload.status==="fulfilled"?Ee(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}i(Qe,"validateChildKeys");function Ee(w){return typeof w=="object"&&w!==null&&w.$$typeof===W}i(Ee,"isValidElement");function Ce(w){var j={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(ze){return j[ze]})}i(Ce,"escape");function Me(w,j){return typeof w=="object"&&w!==null&&w.key!=null?(S(w.key),Ce(""+w.key)):j.toString(36)}i(Me,"getElementKey");function ge(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(m,m):(w.status="pending",w.then(function(j){w.status==="pending"&&(w.status="fulfilled",w.value=j)},function(j){w.status==="pending"&&(w.status="rejected",w.reason=j)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}i(ge,"resolveThenable");function Le(w,j,ze,ke,it){var An=typeof w;(An==="undefined"||An==="boolean")&&(w=null);var ft=!1;if(w===null)ft=!0;else switch(An){case"bigint":case"string":case"number":ft=!0;break;case"object":switch(w.$$typeof){case W:case ut:ft=!0;break;case Te:return ft=w._init,Le(ft(w._payload),j,ze,ke,it)}}if(ft){ft=w,it=it(ft);var wt=ke===""?"."+Me(ft,0):ke;return Re(it)?(ze="",wt!=null&&(ze=wt.replace(Pr,"$&/")+"/"),Le(it,j,ze,"",function(sr){return sr})):it!=null&&(Ee(it)&&(it.key!=null&&(ft&&ft.key===it.key||S(it.key)),ze=$(it,ze+(it.key==null||ft&&ft.key===it.key?"":(""+it.key).replace(Pr,"$&/")+"/")+wt),ke!==""&&ft!=null&&Ee(ft)&&ft.key==null&&ft._store&&!ft._store.validated&&(ze._store.validated=2),it=ze),j.push(it)),1}if(ft=0,wt=ke===""?".":ke+":",Re(w))for(var sn=0;sn<w.length;sn++)ke=w[sn],An=wt+Me(ke,sn),ft+=Le(ke,j,ze,An,it);else if(sn=o(w),typeof sn=="function")for(sn===w.entries&&(ir||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ir=!0),w=sn.call(w),sn=0;!(ke=w.next()).done;)ke=ke.value,An=wt+Me(ke,sn++),ft+=Le(ke,j,ze,An,it);else if(An==="object"){if(typeof w.then=="function")return Le(ge(w),j,ze,ke,it);throw j=String(w),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return ft}i(Le,"mapIntoArray");function le(w,j,ze){if(w==null)return w;var ke=[],it=0;return Le(w,ke,"","",function(An){return j.call(ze,An,it++)}),ke}i(le,"mapChildren");function ue(w){if(w._status===-1){var j=null,ze=null,ke=w._ioInfo;ke!=null&&(ke.start=ke.end=performance.now(),ke.value=new Promise(function(ft,wt){j=ft,ze=wt})),ke=w._result;var it=ke();if(it.then(function(ft){if(w._status===0||w._status===-1){w._status=1,w._result=ft;var wt=w._ioInfo;if(wt!=null){wt.end=performance.now();var sn=ft?.default;j(sn),wt.value.status="fulfilled",wt.value.value=sn}it.status===void 0&&(it.status="fulfilled",it.value=ft)}},function(ft){if(w._status===0||w._status===-1){w._status=2,w._result=ft;var wt=w._ioInfo;wt!=null&&(wt.end=performance.now(),wt.value.then(m,m),ze(ft),wt.value.status="rejected",wt.value.reason=ft),it.status===void 0&&(it.status="rejected",it.reason=ft)}}),ke=w._ioInfo,ke!=null){var An=it.displayName;typeof An=="string"&&(ke.name=An)}w._status===-1&&(w._status=0,w._result=it)}if(w._status===1)return ke=w._result,ke===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
19
+
20
+ Your code should look like:
21
+ const MyComponent = lazy(() => import('./MyComponent'))
22
+
23
+ Did you accidentally put curly braces around the import?`,ke),"default"in ke||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
24
+
25
+ Your code should look like:
26
+ const MyComponent = lazy(() => import('./MyComponent'))`,ke),ke.default;throw w._result}i(ue,"lazyInitializer");function te(){var w=he.H;return w===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
27
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
28
+ 2. You might be breaking the Rules of Hooks
29
+ 3. You might have more than one copy of React in the same app
30
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),w}i(te,"resolveDispatcher");function re(){he.asyncTransitions--}i(re,"releaseAsyncTransition");function ee(w){var j=he.T,ze={};ze.types=j!==null?j.types:null,ze._updatedFibers=new Set,he.T=ze;try{var ke=w(),it=he.S;it!==null&&it(ze,ke),typeof ke=="object"&&ke!==null&&typeof ke.then=="function"&&(he.asyncTransitions++,ke.then(re,re),ke.then(m,ot))}catch(An){ot(An)}finally{j===null&&ze._updatedFibers&&(w=ze._updatedFibers.size,ze._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),j!==null&&ze.types!==null&&(j.types!==null&&j.types!==ze.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),j.types=ze.types),he.T=j}}i(ee,"startTransition");function Se(w){var j=he.T;if(j!==null){var ze=j.types;ze===null?j.types=[w]:ze.indexOf(w)===-1&&ze.push(w)}else he.asyncTransitions===0&&console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."),ee(Se.bind(null,w))}i(Se,"addTransitionType");function tt(w){if(Et===null)try{var j=("require"+Math.random()).slice(0,7);Et=(KB&&KB[j]).call(KB,"timers").setImmediate}catch{Et=i(function(ke){bt===!1&&(bt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var it=new MessageChannel;it.port1.onmessage=ke,it.port2.postMessage(void 0)},"enqueueTaskImpl")}return Et(w)}i(tt,"enqueueTask");function Ie(w){return 1<w.length&&typeof AggregateError=="function"?new AggregateError(w):w[0]}i(Ie,"aggregateErrors");function Pe(w,j){j!==en-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),en=j}i(Pe,"popActScope");function ct(w,j,ze){var ke=he.actQueue;if(ke!==null)if(ke.length!==0)try{Je(ke),tt(function(){return ct(w,j,ze)});return}catch(it){he.thrownErrors.push(it)}else he.actQueue=null;0<he.thrownErrors.length?(ke=Ie(he.thrownErrors),he.thrownErrors.length=0,ze(ke)):j(w)}i(ct,"recursivelyFlushAsyncActWork");function Je(w){if(!ar){ar=!0;var j=0;try{for(;j<w.length;j++){var ze=w[j];do{he.didUsePromise=!1;var ke=ze(!1);if(ke!==null){if(he.didUsePromise){w[j]=ze,w.splice(0,j);return}ze=ke}else break}while(!0)}w.length=0}catch(it){w.splice(0,j+1),he.thrownErrors.push(it)}finally{ar=!1}}}i(Je,"flushActQueue"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var W=Symbol.for("react.transitional.element"),ut=Symbol.for("react.portal"),pt=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Xe=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),mt=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),At=Symbol.for("react.activity"),Qt=Symbol.for("react.view_transition"),Lt=Symbol.iterator,gt={},Be={isMounted:i(function(){return!1},"isMounted"),enqueueForceUpdate:i(function(w){r(w,"forceUpdate")},"enqueueForceUpdate"),enqueueReplaceState:i(function(w){r(w,"replaceState")},"enqueueReplaceState"),enqueueSetState:i(function(w){r(w,"setState")},"enqueueSetState")},_e=Object.assign,at={};Object.freeze(at),c.prototype.isReactComponent={},c.prototype.setState=function(w,j){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,j,"setState")},c.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var Mt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Tn in Mt)Mt.hasOwnProperty(Tn)&&e(Tn,Mt[Tn]);u.prototype=c.prototype,Mt=f.prototype=new u,Mt.constructor=f,_e(Mt,c.prototype),Mt.isPureReactComponent=!0;var Re=Array.isArray,xe=Symbol.for("react.client.reference"),he={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ze=Object.prototype.hasOwnProperty,Gt=console.createTask?console.createTask:function(){return null};Mt={react_stack_bottom_frame:i(function(w){return w()},"react_stack_bottom_frame")};var Hn,Qn,Ro={},qr=Mt.react_stack_bottom_frame.bind(Mt,R)(),wo=Gt(b(R)),ir=!1,Pr=/\/+/g,ot=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},bt=!1,Et=null,en=0,uo=!1,ar=!1,Ia=typeof queueMicrotask=="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:tt;Mt=Object.freeze({__proto__:null,c:i(function(w){return te().useMemoCache(w)},"c")});var Tn={map:le,forEach:i(function(w,j,ze){le(w,function(){j.apply(this,arguments)},ze)},"forEach"),count:i(function(w){var j=0;return le(w,function(){j++}),j},"count"),toArray:i(function(w){return le(w,function(j){return j})||[]},"toArray"),only:i(function(w){if(!Ee(w))throw Error("React.Children.only expected to receive a single React element child.");return w},"only")};$t.Activity=At,$t.Children=Tn,$t.Component=c,$t.Fragment=pt,$t.Profiler=be,$t.PureComponent=f,$t.StrictMode=P,$t.Suspense=mt,$t.ViewTransition=Qt,$t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=he,$t.__COMPILER_RUNTIME=Mt,$t.act=function(w){var j=he.actQueue,ze=en;en++;var ke=he.actQueue=j!==null?j:[],it=!1;try{var An=w()}catch(sn){he.thrownErrors.push(sn)}if(0<he.thrownErrors.length)throw Pe(j,ze),w=Ie(he.thrownErrors),he.thrownErrors.length=0,w;if(An!==null&&typeof An=="object"&&typeof An.then=="function"){var ft=An;return Ia(function(){it||uo||(uo=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:i(function(sn,sr){it=!0,ft.then(function(po){if(Pe(j,ze),ze===0){try{Je(ke),tt(function(){return ct(po,sn,sr)})}catch(Ir){he.thrownErrors.push(Ir)}if(0<he.thrownErrors.length){var jo=Ie(he.thrownErrors);he.thrownErrors.length=0,sr(jo)}}else sn(po)},function(po){Pe(j,ze),0<he.thrownErrors.length&&(po=Ie(he.thrownErrors),he.thrownErrors.length=0),sr(po)})},"then")}}var wt=An;if(Pe(j,ze),ze===0&&(Je(ke),ke.length!==0&&Ia(function(){it||uo||(uo=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),he.actQueue=null),0<he.thrownErrors.length)throw w=Ie(he.thrownErrors),he.thrownErrors.length=0,w;return{then:i(function(sn,sr){it=!0,ze===0?(he.actQueue=ke,tt(function(){return ct(wt,sn,sr)})):sn(wt)},"then")}},$t.addTransitionType=Se,$t.cache=function(w){return function(){return w.apply(null,arguments)}},$t.cacheSignal=function(){return null},$t.captureOwnerStack=function(){var w=he.getCurrentStack;return w===null?null:w()},$t.cloneElement=function(w,j,ze){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ke=_e({},w.props),it=w.key,An=w._owner;if(j!=null){var ft;e:{if(Ze.call(j,"ref")&&(ft=Object.getOwnPropertyDescriptor(j,"ref").get)&&ft.isReactWarning){ft=!1;break e}ft=j.ref!==void 0}ft&&(An=N()),M(j)&&(S(j.key),it=""+j.key);for(wt in j)!Ze.call(j,wt)||wt==="key"||wt==="__self"||wt==="__source"||wt==="ref"&&j.ref===void 0||(ke[wt]=j[wt])}var wt=arguments.length-2;if(wt===1)ke.children=ze;else if(1<wt){ft=Array(wt);for(var sn=0;sn<wt;sn++)ft[sn]=arguments[sn+2];ke.children=ft}for(ke=H(w.type,it,ke,An,w._debugStack,w._debugTask),it=2;it<arguments.length;it++)Qe(arguments[it]);return ke},$t.createContext=function(w){return w={$$typeof:oe,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:Xe,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},$t.createElement=function(w,j,ze){for(var ke=2;ke<arguments.length;ke++)Qe(arguments[ke]);var it;ke={};var An=null;if(j!=null)for(it in Qn||!("__self"in j)||"key"in j||(Qn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(j)&&(S(j.key),An=""+j.key),j)Ze.call(j,it)&&it!=="key"&&it!=="__self"&&it!=="__source"&&(ke[it]=j[it]);var ft=arguments.length-2;if(ft===1)ke.children=ze;else if(1<ft){for(var wt=Array(ft),sn=0;sn<ft;sn++)wt[sn]=arguments[sn+2];Object.freeze&&Object.freeze(wt),ke.children=wt}if(w&&w.defaultProps)for(it in ft=w.defaultProps,ft)ke[it]===void 0&&(ke[it]=ft[it]);return An&&D(ke,typeof w=="function"?w.displayName||w.name||"Unknown":w),(it=1e4>he.recentlyCreatedOwnerStacks++)?(wt=Error.stackTraceLimit,Error.stackTraceLimit=10,ft=Error("react-stack-top-frame"),Error.stackTraceLimit=wt):ft=qr,H(w,An,ke,N(),ft,it?Gt(b(w)):wo)},$t.createRef=function(){var w={current:null};return Object.seal(w),w},$t.forwardRef=function(w){w!=null&&w.$$typeof===se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var j={$$typeof:nt,render:w},ze;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:i(function(){return ze},"get"),set:i(function(ke){ze=ke,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ke}),w.displayName=ke)},"set")}),j},$t.isValidElement=Ee,$t.lazy=function(w){w={_status:-1,_result:w};var j={$$typeof:Te,_payload:w,_init:ue},ze={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=ze,j._debugInfo=[{awaited:ze}],j},$t.memo=function(w,j){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),j={$$typeof:se,type:w,compare:j===void 0?null:j};var ze;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:i(function(){return ze},"get"),set:i(function(ke){ze=ke,w.name||w.displayName||(Object.defineProperty(w,"name",{value:ke}),w.displayName=ke)},"set")}),j},$t.startTransition=ee,$t.unstable_useCacheRefresh=function(){return te().useCacheRefresh()},$t.use=function(w){return te().use(w)},$t.useActionState=function(w,j,ze){return te().useActionState(w,j,ze)},$t.useCallback=function(w,j){return te().useCallback(w,j)},$t.useContext=function(w){var j=te();return w.$$typeof===Xe&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),j.useContext(w)},$t.useDebugValue=function(w,j){return te().useDebugValue(w,j)},$t.useDeferredValue=function(w,j){return te().useDeferredValue(w,j)},$t.useEffect=function(w,j){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),te().useEffect(w,j)},$t.useEffectEvent=function(w){return te().useEffectEvent(w)},$t.useId=function(){return te().useId()},$t.useImperativeHandle=function(w,j,ze){return te().useImperativeHandle(w,j,ze)},$t.useInsertionEffect=function(w,j){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),te().useInsertionEffect(w,j)},$t.useLayoutEffect=function(w,j){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),te().useLayoutEffect(w,j)},$t.useMemo=function(w,j){return te().useMemo(w,j)},$t.useOptimistic=function(w,j){return te().useOptimistic(w,j)},$t.useReducer=function(w,j,ze){return te().useReducer(w,j,ze)},$t.useRef=function(w){return te().useRef(w)},$t.useState=function(w){return te().useState(w)},$t.useSyncExternalStore=function(w,j,ze){return te().useSyncExternalStore(w,j,ze)},$t.useTransition=function(){return te().useTransition()},$t.version="19.3.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Nt=Yn((uX,gb)=>{"use strict";process.env.NODE_ENV==="production"?gb.exports=v2():gb.exports=Q2()});var b2=Yn(YB=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===ee?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case H:return"Fragment";case Qe:return"Profiler";case $:return"StrictMode";case ge:return"Suspense";case Le:return"SuspenseList";case te:return"Activity";case re:return"ViewTransition"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case k:return"Portal";case Ce:return P.displayName||"Context";case Ee:return(P._context.displayName||"Context")+".Consumer";case Me:var be=P.render;return P=P.displayName,P||(P=be.displayName||be.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case le:return be=P.displayName||null,be!==null?be:e(P.type)||"Memo";case ue:be=P._payload,P=P._init;try{return e(P(be))}catch{}}return null}i(e,"getComponentNameFromType");function o(P){return""+P}i(o,"testStringCoercion");function r(P){try{o(P);var be=!1}catch{be=!0}if(be){be=console;var Xe=be.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return Xe.call(be,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),o(P)}}i(r,"checkKeyStringCoercion");function c(P){if(P===H)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===ue)return"<...>";try{var be=e(P);return be?"<"+be+">":"<...>"}catch{return"<...>"}}i(c,"getTaskName");function u(){var P=Se.A;return P===null?null:P.getOwner()}i(u,"getOwner");function f(){return Error("react-stack-top-frame")}i(f,"UnknownOwner");function m(P){if(tt.call(P,"key")){var be=Object.getOwnPropertyDescriptor(P,"key").get;if(be&&be.isReactWarning)return!1}return P.key!==void 0}i(m,"hasValidKey");function E(P,be){function Xe(){ct||(ct=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",be))}i(Xe,"warnAboutAccessingKey"),Xe.isReactWarning=!0,Object.defineProperty(P,"key",{get:Xe,configurable:!0})}i(E,"defineKeyPropWarningGetter");function S(){var P=e(this.type);return Je[P]||(Je[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}i(S,"elementRefGetterWithDeprecationWarning");function v(P,be,Xe,oe,nt,mt){var ne=Xe.ref;return P={$$typeof:D,type:P,key:be,props:Xe,_owner:oe},(ne!==void 0?ne:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:S}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:nt}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:mt}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}i(v,"ReactElement");function b(P,be,Xe,oe,nt,mt){var ne=be.children;if(ne!==void 0)if(oe)if(Ie(ne)){for(oe=0;oe<ne.length;oe++)N(ne[oe]);Object.freeze&&Object.freeze(ne)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(ne);if(tt.call(be,"key")){ne=e(P);var se=Object.keys(be).filter(function(At){return At!=="key"});oe=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",pt[ne+oe]||(se=0<se.length?"{"+se.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
31
+ let props = %s;
32
+ <%s {...props} />
33
+ React keys must be passed directly to JSX without using spread:
34
+ let props = %s;
35
+ <%s key={someKey} {...props} />`,oe,ne,se,ne),pt[ne+oe]=!0)}if(ne=null,Xe!==void 0&&(r(Xe),ne=""+Xe),m(be)&&(r(be.key),ne=""+be.key),"key"in be){Xe={};for(var Te in be)Te!=="key"&&(Xe[Te]=be[Te])}else Xe=be;return ne&&E(Xe,typeof P=="function"?P.displayName||P.name||"Unknown":P),v(P,ne,Xe,u(),nt,mt)}i(b,"jsxDEVImpl");function N(P){R(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===ue&&(P._payload.status==="fulfilled"?R(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}i(N,"validateChildKeys");function R(P){return typeof P=="object"&&P!==null&&P.$$typeof===D}i(R,"isValidElement");var M=Nt(),D=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),Ee=Symbol.for("react.consumer"),Ce=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),re=Symbol.for("react.view_transition"),ee=Symbol.for("react.client.reference"),Se=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt=Object.prototype.hasOwnProperty,Ie=Array.isArray,Pe=console.createTask?console.createTask:function(){return null};M={react_stack_bottom_frame:i(function(P){return P()},"react_stack_bottom_frame")};var ct,Je={},W=M.react_stack_bottom_frame.bind(M,f)(),ut=Pe(c(f)),pt={};YB.Fragment=H,YB.jsx=function(P,be,Xe){var oe=1e4>Se.recentlyCreatedOwnerStacks++;if(oe){var nt=Error.stackTraceLimit;Error.stackTraceLimit=10;var mt=Error("react-stack-top-frame");Error.stackTraceLimit=nt}else mt=W;return b(P,be,Xe,!1,mt,oe?Pe(c(P)):ut)},YB.jsxs=function(P,be,Xe){var oe=1e4>Se.recentlyCreatedOwnerStacks++;if(oe){var nt=Error.stackTraceLimit;Error.stackTraceLimit=10;var mt=Error("react-stack-top-frame");Error.stackTraceLimit=nt}else mt=W;return b(P,be,Xe,!0,mt,oe?Pe(c(P)):ut)}})()});var Sn=Yn((fX,pb)=>{"use strict";process.env.NODE_ENV==="production"?pb.exports=A2():pb.exports=b2()});function R2(e,o,{signal:r,edges:c}={}){let u,f=null,m=c!=null&&c.includes("leading"),E=c==null||c.includes("trailing"),S=i(()=>{f!==null&&(e.apply(u,f),u=void 0,f=null)},"invoke"),v=i(()=>{E&&S(),M()},"onTimerEnd"),b=null,N=i(()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,v()},o)},"schedule"),R=i(()=>{b!==null&&(clearTimeout(b),b=null)},"cancelTimer"),M=i(()=>{R(),u=void 0,f=null},"cancel"),D=i(()=>{S()},"flush"),k=i(function(...H){if(r?.aborted)return;u=this,f=H;let $=b==null;N(),m&&$&&S()},"debounced");return k.schedule=N,k.cancel=M,k.flush=D,r?.addEventListener("abort",M,{once:!0}),k}var w2=L(()=>{i(R2,"debounce")});function x2(e,o=0,r={}){typeof r!="object"&&(r={});let{leading:c=!1,trailing:u=!0,maxWait:f}=r,m=Array(2);c&&(m[0]="leading"),u&&(m[1]="trailing");let E,S=null,v=R2(function(...R){E=e.apply(this,R),S=null},o,{edges:m}),b=i(function(...R){return f!=null&&(S===null&&(S=Date.now()),Date.now()-S>=f)?(E=e.apply(this,R),S=Date.now(),v.cancel(),v.schedule(),E):(v.apply(this,R),E)},"debounced"),N=i(()=>(v.flush(),E),"flush");return b.cancel=v.cancel,b.flush=N,b}var D2=L(()=>{w2();i(x2,"debounce")});function qB(e,o=0,r={}){let{leading:c=!0,trailing:u=!0}=r;return x2(e,o,{leading:c,maxWait:o,trailing:u})}var T2=L(()=>{D2();i(qB,"throttle")});var _2=L(()=>{T2()});var ym,vX,QX,bX,RX,wX,xX,DX,TX,_X,aC,NX,MX,OX,HX,kX,N2=L(()=>{ym=globalThis.window?.document!==void 0,vX=globalThis.process?.versions?.node!==void 0,QX=globalThis.process?.versions?.bun!==void 0,bX=globalThis.Deno?.version?.deno!==void 0,RX=globalThis.process?.versions?.electron!==void 0,wX=globalThis.navigator?.userAgent?.includes("jsdom")===!0,xX=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,DX=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,TX=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,_X=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,aC=globalThis.navigator?.userAgentData?.platform,NX=aC==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",MX=aC==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",OX=aC==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",HX=aC==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),kX=aC==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android"});var vo={};mi(vo,{ConEmu:()=>F2,beep:()=>wF,beginSynchronizedOutput:()=>U2,clearScreen:()=>IF,clearTerminal:()=>vF,clearViewport:()=>BF,cursorBackward:()=>aF,cursorDown:()=>rF,cursorForward:()=>iF,cursorGetPosition:()=>cF,cursorHide:()=>dF,cursorLeft:()=>H2,cursorMove:()=>oF,cursorNextLine:()=>uF,cursorPrevLine:()=>AF,cursorRestorePosition:()=>lF,cursorSavePosition:()=>sF,cursorShow:()=>fF,cursorTo:()=>nF,cursorUp:()=>O2,endSynchronizedOutput:()=>L2,enterAlternativeScreen:()=>QF,eraseDown:()=>hF,eraseEndLine:()=>pF,eraseLine:()=>k2,eraseLines:()=>gF,eraseScreen:()=>PB,eraseStartLine:()=>mF,eraseUp:()=>EF,exitAlternativeScreen:()=>bF,iTerm:()=>G2,image:()=>DF,link:()=>xF,scrollDown:()=>yF,scrollUp:()=>CF,setCwd:()=>TF,synchronizedOutput:()=>RF});import Im from"node:process";import $6 from"node:os";var qn,Bm,Ff,sC,M2,eF,tF,mb,Sm,nF,oF,O2,rF,iF,aF,H2,sF,lF,cF,uF,AF,dF,fF,gF,pF,mF,k2,hF,EF,PB,CF,yF,IF,BF,SF,vF,QF,bF,U2,L2,RF,wF,xF,DF,G2,F2,TF,hb=L(()=>{N2();qn="\x1B[",Bm="\x1B]",Ff="\x07",sC=";",M2=!ym&&Im.env.TERM_PROGRAM==="Apple_Terminal",eF=!ym&&Im.platform==="win32",tF=!ym&&(Im.env.TERM?.startsWith("screen")||Im.env.TERM?.startsWith("tmux")||Im.env.TMUX!==void 0),mb=ym?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Im.cwd,Sm=i(e=>tF?"\x1BPtmux;"+e.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":e,"wrapOsc"),nF=i((e,o)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof o!="number"?qn+(e+1)+"G":qn+(o+1)+sC+(e+1)+"H"},"cursorTo"),oF=i((e,o)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=qn+-e+"D":e>0&&(r+=qn+e+"C"),o<0?r+=qn+-o+"A":o>0&&(r+=qn+o+"B"),r},"cursorMove"),O2=i((e=1)=>qn+e+"A","cursorUp"),rF=i((e=1)=>qn+e+"B","cursorDown"),iF=i((e=1)=>qn+e+"C","cursorForward"),aF=i((e=1)=>qn+e+"D","cursorBackward"),H2=qn+"G",sF=M2?"\x1B7":qn+"s",lF=M2?"\x1B8":qn+"u",cF=qn+"6n",uF=qn+"E",AF=qn+"F",dF=qn+"?25l",fF=qn+"?25h",gF=i(e=>{let o="";for(let r=0;r<e;r++)o+=k2+(r<e-1?O2():"");return e&&(o+=H2),o},"eraseLines"),pF=qn+"K",mF=qn+"1K",k2=qn+"2K",hF=qn+"J",EF=qn+"1J",PB=qn+"2J",CF=qn+"S",yF=qn+"T",IF="\x1Bc",BF=`${PB}${qn}H`,SF=i(()=>{if(ym||!eF)return!1;let e=$6.release().split("."),o=Number(e[0]),r=Number(e[2]??0);return o<10||o===10&&r<10586},"isOldWindows"),vF=SF()?`${PB}${qn}0f`:`${PB}${qn}3J${qn}H`,QF=qn+"?1049h",bF=qn+"?1049l",U2=qn+"?2026h",L2=qn+"?2026l",RF=i(e=>U2+e+L2,"synchronizedOutput"),wF=Ff,xF=i((e,o)=>{let r=Sm(`${Bm}8${sC}${sC}${o}${Ff}`),c=Sm(`${Bm}8${sC}${sC}${Ff}`);return r+e+c},"link"),DF=i((e,o={})=>{let r=`${Bm}1337;File=inline=1`;o.width&&(r+=`;width=${o.width}`),o.height&&(r+=`;height=${o.height}`),o.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0");let c=Buffer.from(e);return Sm(r+`;size=${c.byteLength}:`+c.toString("base64")+Ff)},"image"),G2={setCwd:i((e=mb())=>Sm(`${Bm}50;CurrentDir=${e}${Ff}`),"setCwd"),annotation(e,o={}){let r=`${Bm}1337;`,c=o.x!==void 0,u=o.y!==void 0;if((c||u)&&!(c&&u&&o.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),r+=o.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",o.length>0?r+=(c?[e,o.length,o.x,o.y]:[o.length,e]).join("|"):r+=e,Sm(r+Ff)}},F2={setCwd:i((e=mb())=>Sm(`${Bm}9;9;${e}${Ff}`),"setCwd")},TF=i((e=mb())=>G2.setCwd(e)+F2.setCwd(e),"setCwd")});var JB=L(()=>{hb();hb()});import{env as Eb}from"node:process";var z2,_F,jB,Cb=L(()=>{z2=i(e=>e in Eb&&Eb[e]!=="0"&&Eb[e]!=="false","check"),_F=z2("CI")||z2("CONTINUOUS_INTEGRATION"),jB=_F});function yb(e,{include:o,exclude:r}={}){let c=i(u=>{let f=i(m=>typeof m=="string"?u===m:m.test(u),"match");return o?o.some(f):r?!r.some(f):!0},"filter");for(let[u,f]of NF(e.constructor.prototype)){if(f==="constructor"||!c(f))continue;let m=Reflect.getOwnPropertyDescriptor(u,f);m&&typeof m.value=="function"&&(e[f]=e[f].bind(e))}return e}var NF,K2=L(()=>{NF=i(e=>{let o=new Set;do for(let r of Reflect.ownKeys(e))o.add([e,r]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return o},"getAllProperties");i(yb,"autoBind")});var Y2=Yn((XX,VB)=>{VB.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&VB.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&VB.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Sb=Yn((ZX,bm)=>{var zo=global.process,zf=i(function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"},"processOk");zf(zo)?(q2=Go("assert"),vm=Y2(),P2=/^win/i.test(zo.platform),lC=Go("events"),typeof lC!="function"&&(lC=lC.EventEmitter),zo.__signal_exit_emitter__?Ei=zo.__signal_exit_emitter__:(Ei=zo.__signal_exit_emitter__=new lC,Ei.count=0,Ei.emitted={}),Ei.infinite||(Ei.setMaxListeners(1/0),Ei.infinite=!0),bm.exports=function(e,o){if(!zf(global.process))return function(){};q2.equal(typeof e,"function","a callback must be provided for exit handler"),Qm===!1&&Ib();var r="exit";o&&o.alwaysLast&&(r="afterexit");var c=i(function(){Ei.removeListener(r,e),Ei.listeners("exit").length===0&&Ei.listeners("afterexit").length===0&&XB()},"remove");return Ei.on(r,e),c},XB=i(function(){!Qm||!zf(global.process)||(Qm=!1,vm.forEach(function(o){try{zo.removeListener(o,ZB[o])}catch{}}),zo.emit=WB,zo.reallyExit=Bb,Ei.count-=1)},"unload"),bm.exports.unload=XB,Kf=i(function(o,r,c){Ei.emitted[o]||(Ei.emitted[o]=!0,Ei.emit(o,r,c))},"emit"),ZB={},vm.forEach(function(e){ZB[e]=i(function(){if(zf(global.process)){var r=zo.listeners(e);r.length===Ei.count&&(XB(),Kf("exit",null,e),Kf("afterexit",null,e),P2&&e==="SIGHUP"&&(e="SIGINT"),zo.kill(zo.pid,e))}},"listener")}),bm.exports.signals=function(){return vm},Qm=!1,Ib=i(function(){Qm||!zf(global.process)||(Qm=!0,Ei.count+=1,vm=vm.filter(function(o){try{return zo.on(o,ZB[o]),!0}catch{return!1}}),zo.emit=j2,zo.reallyExit=J2)},"load"),bm.exports.load=Ib,Bb=zo.reallyExit,J2=i(function(o){zf(global.process)&&(zo.exitCode=o||0,Kf("exit",zo.exitCode,null),Kf("afterexit",zo.exitCode,null),Bb.call(zo,zo.exitCode))},"processReallyExit"),WB=zo.emit,j2=i(function(o,r){if(o==="exit"&&zf(global.process)){r!==void 0&&(zo.exitCode=r);var c=WB.apply(this,arguments);return Kf("exit",zo.exitCode,null),Kf("afterexit",zo.exitCode,null),c}else return WB.apply(this,arguments)},"processEmit")):bm.exports=function(){return function(){}};var q2,vm,P2,lC,Ei,XB,Kf,ZB,Qm,Ib,Bb,J2,WB,j2});import{PassThrough as V2}from"node:stream";var X2,vb,MF,Z2,W2=L(()=>{X2=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],vb={},MF=i(e=>{let o=new V2,r=new V2;o.write=u=>{e("stdout",u)},r.write=u=>{e("stderr",u)};let c=new console.Console(o,r);for(let u of X2)vb[u]=console[u],console[u]=c[u];return()=>{for(let u of X2)console[u]=vb[u];vb={}}},"patchConsole"),Z2=MF});var $2=Yn(jA=>{"use strict";jA.ConcurrentRoot=1;jA.ContinuousEventPriority=8;jA.DefaultEventPriority=32;jA.DiscreteEventPriority=2;jA.IdleEventPriority=268435456;jA.LegacyRoot=0;jA.NoEventPriority=0});var eN=Yn(VA=>{"use strict";process.env.NODE_ENV!=="production"&&(VA.ConcurrentRoot=1,VA.ContinuousEventPriority=8,VA.DefaultEventPriority=32,VA.DiscreteEventPriority=2,VA.IdleEventPriority=268435456,VA.LegacyRoot=0,VA.NoEventPriority=0)});var $B=Yn((rZ,Qb)=>{"use strict";process.env.NODE_ENV==="production"?Qb.exports=$2():Qb.exports=eN()});var OF,tN,nN=L(()=>{OF=(()=>{var e=import.meta.url;return(function(o){o=o||{};var r;r||(r=typeof o<"u"?o:{});var c,u;r.ready=new Promise(function(x,T){c=x,u=T});var f=Object.assign({},r),m="";typeof document<"u"&&document.currentScript&&(m=document.currentScript.src),e&&(m=e),m.indexOf("blob:")!==0?m=m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):m="";var E=r.print||console.log.bind(console),S=r.printErr||console.warn.bind(console);Object.assign(r,f),f=null;var v;r.wasmBinary&&(v=r.wasmBinary);var b=r.noExitRuntime||!0;typeof WebAssembly!="object"&&Pe("no native wasm support detected");var N,R=!1;function M(x,T,G){G=T+G;for(var Y="";!(T>=G);){var V=x[T++];if(!V)break;if(V&128){var ye=x[T++]&63;if((V&224)==192)Y+=String.fromCharCode((V&31)<<6|ye);else{var Oe=x[T++]&63;V=(V&240)==224?(V&15)<<12|ye<<6|Oe:(V&7)<<18|ye<<12|Oe<<6|x[T++]&63,65536>V?Y+=String.fromCharCode(V):(V-=65536,Y+=String.fromCharCode(55296|V>>10,56320|V&1023))}}else Y+=String.fromCharCode(V)}return Y}i(M,"z");var D,k,H,$,Qe,Ee,Ce,Me,ge;function Le(){var x=N.buffer;D=x,r.HEAP8=k=new Int8Array(x),r.HEAP16=$=new Int16Array(x),r.HEAP32=Ee=new Int32Array(x),r.HEAPU8=H=new Uint8Array(x),r.HEAPU16=Qe=new Uint16Array(x),r.HEAPU32=Ce=new Uint32Array(x),r.HEAPF32=Me=new Float32Array(x),r.HEAPF64=ge=new Float64Array(x)}i(Le,"na");var le,ue=[],te=[],re=[];function ee(){var x=r.preRun.shift();ue.unshift(x)}i(ee,"sa");var Se=0,tt=null,Ie=null;function Pe(x){throw r.onAbort&&r.onAbort(x),x="Aborted("+x+")",S(x),R=!0,x=new WebAssembly.RuntimeError(x+". Build with -sASSERTIONS for more info."),u(x),x}i(Pe,"x");function ct(x){return x.startsWith("data:application/octet-stream;base64,")}i(ct,"ua");var Je;if(Je="data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAAAGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAV/f39/fwBgAn9/AX1gBX9/f319AX1gAX8BfWADf35/AX5gB39/f39/f38AYAZ/f39/f38AYAR/f39/AX9gBn9/f319fQF9YAR/f31/AGADf399AX1gBn98f39/fwF/YAR/fHx/AGACf30AYAh/f39/f39/fwBgDX9/f39/f39/f39/f38AYAp/f39/f39/f39/AGAFf39/f38BfGAEfHx/fwF9YA1/fX1/f399fX9/f39/AX9gB39/f319f38AYAJ+fwF/YAN/fX0BfWABfAF8YAN/fHwAYAR/f319AGAHf39/fX19fQF9YA1/fX99f31/fX19fX1/AX9gC39/f39/f399fX19AX9gCH9/f39/f319AGAEf39+fgBgB39/f39/f38Bf2ACfH8BfGAFf398fH8AYAN/f38BfGAEf39/fABgA39/fQBgBn9/fX99fwF/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhAWUAEQFhAWYAIAFhAWcAAAFhAWgAIQFhAWkAAwFhAWoAAAFhAWsAFwFhAWwACgFhAW0ABQFhAW4AAwFhAW8AAQFhAXAAFwFhAXEABgFhAXIAAAFhAXMAIgFhAXQACgFhAXUADQFhAXYAFgFhAXcAAgFhAXgAAwFhAXkAGAFhAXoAAgFhAUEAAQFhAUIAEQFhAUMAAQFhAUQAAAOiAqACAgMSBwcACRkDAAoRBgYKEwAPDxMBBiMTCgcHGgMUASQFJRQHAwMKCgMmAQYYDxobFAAKBw8KBwMDAgkCAAAFGw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XIzyUIQQLIANBEGokACAEQwAAAACXQwAAAAAgBCAEWxsL2AICBH8BfSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgAC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AEF/DAELIAAgAToAAEEBCwvEAgACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABQQlrDhIACgsMCgsCAwQFDAsMDAoLBwgJCyACIAIoAgAiAUEEajYCACAAIAEoAgA2AgAPCwALIAIgAigCACIBQQRqNgIAIAAgATIBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIANBEGokAAtdAQR/IAAoAgAhAgNAIAIsAAAiAxBXBEBBfyEEIAAgAkEBaiICNgIAIAFBzJmz5gBNBH9BfyADQTBrIgMgAUEKbCIEaiADIARB/////wdzShsFIAQLIQEMAQsLIAELrhQCEn8BfiMAQdAAayIIJAAgCCABNgJMIAhBN2ohFyAIQThqIRQCQAJAAkACQANAIAEhDSAHIA5B/////wdzSg0BIAcgDmohDgJAAkACQCANIgctAAAiCQRAA0ACQAJAIAlB/wFxIgFFBEAgByEBDAELIAFBJUcNASAHIQkDQCAJLQABQSVHBEAgCSEBDAILIAdBAWohByAJLQACIQogCUECaiIBIQkgCkElRg0ACwsgByANayIHIA5B/////wdzIhhKDQcgAARAIAAgDSAH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6EFwLIQEgAEIANwIEIAAgATYCACABIAA2AgQgAkEQaiQAIAALGwEBfyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDA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YgAjgCEAJ/IAEgB0GXGyAGQQxqIAZBEGoQEiIIRAAAAAAAAPBBYyAIRAAAAAAAAAAAZnEEQCAIqwwBC0EACyEBIAYoAgwhAyAAIAEpAwA3AwAgACABKQMINwMIIAMQESAGQTBqJAALCQAgABCQARAjCwwAIAAoAghB6BwQZgsJACAAEJIBECMLVQECfyMAQTBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEwEB4gAkEwECshACACQTBqJAAgAAs7AQF/IAEgACgCBCIFQQF1aiEBIAAoAgAhACABIAIgAyAEIAVBAXEEfyABKAIAIABqKAIABSAACxEdAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERIACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRDAALNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwA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DCAIIAlBASAFIAQQLQwBCyAFIAVcIQwgBQsgA0H/AXEgCyAMIAQgBUEBQQAgCkEIakEAQfA6KAIAED0EQCAAIAAtAIgDQQNxIAQgBRB2IABEAAAAAAAAAABEAAAAAAAAAAAQcwsgCkFAayQACw0AIAAoAgAtAABBAXELFQAgACgCACIAIAAtAABB/gFxOgAACxAAIAAoAgAtAABBBHFBAnYLegECfyMAQRBrIgEkACAAKAIAIgAoAggEQANAIAAtAAAiAkEEcUUEQCAAIAJBBHI6AAAgACgCECICBEAgACACEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQELCyABQRBqJAAPCyABQYAINgIAIABBBUHYJSABECwQJAALLgEBfyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgBBADYCEAsXACAAKAIEKAIIIgAgACgCACgCCBEAAAsuAQF/IAAoAgghAiAAIAE2AgggAgRAIAIgAigCACgCBBEAAAsgACgCAEEFNgIQCz4BAX8gACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIAIgBBADYCCCAAIAAtAABB7wFxOgAAC0kBAX8jAEEQayIGJAAgBiABKAIEKAIEIgEgAiADIAQgBSABKAIAKAIIERAAIAAgBisDALY4AgAgACAGKwMItjgCBCAGQRBqJAALcwECfyMAQRBrIgIkACAAKAIEIQMgACABNgIEIAMEQCADIAMoAgAoAgQRAAALIAAoAgAiACgC6AMgACgC7ANHBEAgAkH5IzYCACAAQQVB2CUgAhAsECQACyAAQQQ2AgggACAALQAAQRByOgAAIAJBEGokAAs8AQF/AkAgACgCACIAKALsAyAAKALoAyIAa0ECdSABTQ0AIAAgAUECdGooAgAiAEUNACAAKAIEIQILIAILGQAgACgCACgC5AMiAEUEQEEADwsgACgCBAsXACAAKAIAIgAoAuwDIAAoAugDa0ECdQuOAwEDfyMAQdACayICJAACQCAAKAIAIgAoAuwDIAAoAugDRg0AIAEoAgAiAygC5AMhASAAIAMQb0UNACAAIAFGBEAgAkEIakEAQcQCECoaIAJ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QAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!ct(Je)){var W=Je;Je=r.locateFile?r.locateFile(W,m):m+W}function ut(){var x=Je;try{if(x==Je&&v)return new Uint8Array(v);if(ct(x))try{var T=Oi(x.slice(37)),G=new Uint8Array(T.length);for(x=0;x<T.length;++x)G[x]=T.charCodeAt(x);var Y=G}catch{throw Error("Converting base64 string to bytes failed.")}else Y=void 0;var V=Y;if(V)return V;throw"both async and sync fetching of the wasm failed"}catch(ye){Pe(ye)}}i(ut,"wa");function pt(){return v||typeof fetch!="function"?Promise.resolve().then(function(){return ut()}):fetch(Je,{credentials:"same-origin"}).then(function(x){if(!x.ok)throw"failed to load wasm binary file at '"+Je+"'";return x.arrayBuffer()}).catch(function(){return ut()})}i(pt,"ya");function P(x){for(;0<x.length;)x.shift()(r)}i(P,"za");function be(x){if(x===void 0)return"_unknown";x=x.replace(/[^a-zA-Z0-9_]/g,"$");var T=x.charCodeAt(0);return 48<=T&&57>=T?"_"+x:x}i(be,"Aa");function Xe(x,T){return x=be(x),function(){return T.apply(this,arguments)}}i(Xe,"Ba");var oe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],nt=[];function mt(x){var T=Error,G=Xe(x,function(Y){this.name=x,this.message=Y,Y=Error(Y).stack,Y!==void 0&&(this.stack=this.toString()+`
36
+ `+Y.replace(/^Error(:[^\n]*)?\n/,""))});return G.prototype=Object.create(T.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},G}i(mt,"Da");var ne=void 0;function se(x){throw new ne(x)}i(se,"L");var Te=i(x=>(x||se("Cannot use deleted val. handle = "+x),oe[x].value),"M"),At=i(x=>{switch(x){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var T=nt.length?nt.pop():oe.length;return oe[T]={ga:1,value:x},T}},"Ea"),Qt=void 0,Lt=void 0;function gt(x){for(var T="";H[x];)T+=Lt[H[x++]];return T}i(gt,"N");var Be=[];function _e(){for(;Be.length;){var x=Be.pop();x.M.$=!1,x.delete()}}i(_e,"Ha");var at=void 0,Mt={};function Re(x,T){for(T===void 0&&se("ptr should not be undefined");x.R;)T=x.ba(T),x=x.R;return T}i(Re,"Ia");var xe={};function he(x){x=Br(x);var T=gt(x);return Sr(x),T}i(he,"Ja");function Ze(x,T){var G=xe[x];return G===void 0&&se(T+" has unknown type "+he(x)),G}i(Ze,"La");function Gt(){}i(Gt,"Ma");var Hn=!1;function Qn(x){--x.count.value,x.count.value===0&&(x.T?x.U.W(x.T):x.P.N.W(x.O))}i(Qn,"Oa");function Ro(x,T,G){return T===G?x:G.R===void 0?null:(x=Ro(x,T,G.R),x===null?null:G.na(x))}i(Ro,"Pa");var qr={};function wo(x,T){return T=Re(x,T),Mt[T]}i(wo,"Ra");var ir=void 0;function Pr(x){throw new ir(x)}i(Pr,"Ta");function ot(x,T){return T.P&&T.O||Pr("makeClassHandle requires ptr and ptrType"),!!T.U!=!!T.T&&Pr("Both smartPtrType and smartPtr must be specified"),T.count={value:1},bt(Object.create(x,{M:{value:T}}))}i(ot,"Ua");function bt(x){return typeof FinalizationRegistry>"u"?(bt=i(T=>T,"T"),x):(Hn=new FinalizationRegistry(T=>{Qn(T.M)}),bt=i(T=>{var G=T.M;return G.T&&Hn.register(T,{M:G},T),T},"T"),Gt=i(T=>{Hn.unregister(T)},"Ma"),bt(x))}i(bt,"T");var Et={};function en(x){for(;x.length;){var T=x.pop();x.pop()(T)}}i(en,"Wa");function uo(x){return this.fromWireType(Ee[x>>2])}i(uo,"Xa");var ar={},Ia={};function Tn(x,T,G){function Y(ve){ve=G(ve),ve.length!==x.length&&Pr("Mismatched type converter count");for(var We=0;We<x.length;++We)j(x[We],ve[We])}i(Y,"d"),x.forEach(function(ve){Ia[ve]=T});var V=Array(T.length),ye=[],Oe=0;T.forEach((ve,We)=>{xe.hasOwnProperty(ve)?V[We]=xe[ve]:(ye.push(ve),ar.hasOwnProperty(ve)||(ar[ve]=[]),ar[ve].push(()=>{V[We]=xe[ve],++Oe,Oe===ye.length&&Y(V)}))}),ye.length===0&&Y(V)}i(Tn,"V");function w(x){switch(x){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+x)}}i(w,"Za");function j(x,T,G={}){if(!("argPackAdvance"in T))throw new TypeError("registerType registeredInstance requires argPackAdvance");var Y=T.name;if(x||se('type "'+Y+'" must have a positive integer typeid pointer'),xe.hasOwnProperty(x)){if(G.ua)return;se("Cannot register type '"+Y+"' twice")}xe[x]=T,delete Ia[x],ar.hasOwnProperty(x)&&(T=ar[x],delete ar[x],T.forEach(V=>V()))}i(j,"W");function ze(x){se(x.M.P.N.name+" instance already deleted")}i(ze,"$a");function ke(){}i(ke,"X");function it(x,T,G){if(x[T].S===void 0){var Y=x[T];x[T]=function(){return x[T].S.hasOwnProperty(arguments.length)||se("Function '"+G+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+x[T].S+")!"),x[T].S[arguments.length].apply(this,arguments)},x[T].S=[],x[T].S[Y.Z]=Y}}i(it,"ab");function An(x,T){r.hasOwnProperty(x)?(se("Cannot register public name '"+x+"' twice"),it(r,x,x),r.hasOwnProperty(void 0)&&se("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),r[x].S[void 0]=T):r[x]=T}i(An,"bb");function ft(x,T,G,Y,V,ye,Oe,ve){this.name=x,this.constructor=T,this.X=G,this.W=Y,this.R=V,this.pa=ye,this.ba=Oe,this.na=ve,this.ja=[]}i(ft,"cb");function wt(x,T,G){for(;T!==G;)T.ba||se("Expected null or instance of "+G.name+", got an instance of "+T.name),x=T.ba(x),T=T.R;return x}i(wt,"db");function sn(x,T){return T===null?(this.ea&&se("null is not a valid "+this.name),0):(T.M||se('Cannot pass "'+Ba(T)+'" as a '+this.name),T.M.O||se("Cannot pass deleted object as a pointer of type "+this.name),wt(T.M.O,T.M.P.N,this.N))}i(sn,"eb");function sr(x,T){if(T===null){if(this.ea&&se("null is not a valid "+this.name),this.da){var G=this.fa();return x!==null&&x.push(this.W,G),G}return 0}if(T.M||se('Cannot pass "'+Ba(T)+'" as a '+this.name),T.M.O||se("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&T.M.P.ca&&se("Cannot convert argument of type "+(T.M.U?T.M.U.name:T.M.P.name)+" to parameter type "+this.name),G=wt(T.M.O,T.M.P.N,this.N),this.da)switch(T.M.T===void 0&&se("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:T.M.U===this?G=T.M.T:se("Cannot convert argument of type "+(T.M.U?T.M.U.name:T.M.P.name)+" to parameter type "+this.name);break;case 1:G=T.M.T;break;case 2:if(T.M.U===this)G=T.M.T;else{var Y=T.clone();G=this.xa(G,At(function(){Y.delete()})),x!==null&&x.push(this.W,G)}break;default:se("Unsupporting sharing policy")}return G}i(sr,"gb");function po(x,T){return T===null?(this.ea&&se("null is not a valid "+this.name),0):(T.M||se('Cannot pass "'+Ba(T)+'" as a '+this.name),T.M.O||se("Cannot pass deleted object as a pointer of type "+this.name),T.M.P.ca&&se("Cannot convert argument of type "+T.M.P.name+" to parameter type "+this.name),wt(T.M.O,T.M.P.N,this.N))}i(po,"hb");function jo(x,T,G,Y){this.name=x,this.N=T,this.ea=G,this.ca=Y,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,T.R!==void 0?this.toWireType=sr:(this.toWireType=Y?sn:po,this.V=null)}i(jo,"Y");function Ir(x,T){r.hasOwnProperty(x)||Pr("Replacing nonexistant public symbol"),r[x]=T,r[x].Z=void 0}i(Ir,"ib");function Dt(x,T){var G=[];return function(){if(G.length=0,Object.assign(G,arguments),x.includes("j")){var Y=r["dynCall_"+x];Y=G&&G.length?Y.apply(null,[T].concat(G)):Y.call(null,T)}else Y=le.get(T).apply(null,G);return Y}}i(Dt,"jb");function Nn(x,T){x=gt(x);var G=x.includes("j")?Dt(x,T):le.get(T);return typeof G!="function"&&se("unknown function pointer with signature "+x+": "+T),G}i(Nn,"Z");var Yt=void 0;function Tr(x,T){function G(ye){V[ye]||xe[ye]||(Ia[ye]?Ia[ye].forEach(G):(Y.push(ye),V[ye]=!0))}i(G,"c");var Y=[],V={};throw T.forEach(G),new Yt(x+": "+Y.map(he).join([", "]))}i(Tr,"nb");function ri(x,T,G,Y,V){var ye=T.length;2>ye&&se("argTypes array size mismatch! Must at least get return value and 'this' types!");var Oe=T[1]!==null&&G!==null,ve=!1;for(G=1;G<T.length;++G)if(T[G]!==null&&T[G].V===void 0){ve=!0;break}var We=T[0].name!=="void",qe=ye-2,lt=Array(qe),xt=[],nn=[];return function(){if(arguments.length!==qe&&se("function "+x+" called with "+arguments.length+" arguments, expected "+qe+" args!"),nn.length=0,xt.length=Oe?2:1,xt[0]=V,Oe){var _n=T[1].toWireType(nn,this);xt[1]=_n}for(var Mn=0;Mn<qe;++Mn)lt[Mn]=T[Mn+2].toWireType(nn,arguments[Mn]),xt.push(lt[Mn]);if(Mn=Y.apply(null,xt),ve)en(nn);else for(var no=Oe?1:2;no<T.length;no++){var lr=no===1?_n:lt[no-2];T[no].V!==null&&T[no].V(lr)}return _n=We?T[0].fromWireType(Mn):void 0,_n}}i(ri,"ob");function ta(x,T){for(var G=[],Y=0;Y<x;Y++)G.push(Ce[T+4*Y>>2]);return G}i(ta,"pb");function na(x){4<x&&--oe[x].ga===0&&(oe[x]=void 0,nt.push(x))}i(na,"qb");function Ba(x){if(x===null)return"null";var T=typeof x;return T==="object"||T==="array"||T==="function"?x.toString():""+x}i(Ba,"fb");function Sa(x,T){switch(T){case 2:return function(G){return this.fromWireType(Me[G>>2])};case 3:return function(G){return this.fromWireType(ge[G>>3])};default:throw new TypeError("Unknown float type: "+x)}}i(Sa,"rb");function Jr(x,T,G){switch(T){case 0:return G?function(Y){return k[Y]}:function(Y){return H[Y]};case 1:return G?function(Y){return $[Y>>1]}:function(Y){return Qe[Y>>1]};case 2:return G?function(Y){return Ee[Y>>2]}:function(Y){return Ce[Y>>2]};default:throw new TypeError("Unknown integer type: "+x)}}i(Jr,"sb");function ii(x,T){for(var G="",Y=0;!(Y>=T/2);++Y){var V=$[x+2*Y>>1];if(V==0)break;G+=String.fromCharCode(V)}return G}i(ii,"tb");function Es(x,T,G){if(G===void 0&&(G=2147483647),2>G)return 0;G-=2;var Y=T;G=G<2*x.length?G/2:x.length;for(var V=0;V<G;++V)$[T>>1]=x.charCodeAt(V),T+=2;return $[T>>1]=0,T-Y}i(Es,"ub");function Mc(x){return 2*x.length}i(Mc,"vb");function Ja(x,T){for(var G=0,Y="";!(G>=T/4);){var V=Ee[x+4*G>>2];if(V==0)break;++G,65536<=V?(V-=65536,Y+=String.fromCharCode(55296|V>>10,56320|V&1023)):Y+=String.fromCharCode(V)}return Y}i(Ja,"wb");function ja(x,T,G){if(G===void 0&&(G=2147483647),4>G)return 0;var Y=T;G=Y+G-4;for(var V=0;V<x.length;++V){var ye=x.charCodeAt(V);if(55296<=ye&&57343>=ye){var Oe=x.charCodeAt(++V);ye=65536+((ye&1023)<<10)|Oe&1023}if(Ee[T>>2]=ye,T+=4,T+4>G)break}return Ee[T>>2]=0,T-Y}i(ja,"xb");function Oc(x){for(var T=0,G=0;G<x.length;++G){var Y=x.charCodeAt(G);55296<=Y&&57343>=Y&&++G,T+=4}return T}i(Oc,"yb");var Va={};function He(x){var T=Va[x];return T===void 0?gt(x):T}i(He,"Ab");var Jn=[];function ao(x){var T=Jn.length;return Jn.push(x),T}i(ao,"Cb");function Bi(x,T){for(var G=Array(x),Y=0;Y<x;++Y)G[Y]=Ze(Ce[T+4*Y>>2],"parameter "+Y);return G}i(Bi,"Db");var oa=[],Ni=[null,[],[]];ne=r.BindingError=mt("BindingError"),r.count_emval_handles=function(){for(var x=0,T=5;T<oe.length;++T)oe[T]!==void 0&&++x;return x},r.get_first_emval=function(){for(var x=5;x<oe.length;++x)if(oe[x]!==void 0)return oe[x];return null},Qt=r.PureVirtualError=mt("PureVirtualError");for(var Mi=Array(256),xo=0;256>xo;++xo)Mi[xo]=String.fromCharCode(xo);Lt=Mi,r.getInheritedInstanceCount=function(){return Object.keys(Mt).length},r.getLiveInheritedInstances=function(){var x=[],T;for(T in Mt)Mt.hasOwnProperty(T)&&x.push(Mt[T]);return x},r.flushPendingDeletes=_e,r.setDelayFunction=function(x){at=x,Be.length&&at&&at(_e)},ir=r.InternalError=mt("InternalError"),ke.prototype.isAliasOf=function(x){if(!(this instanceof ke&&x instanceof ke))return!1;var T=this.M.P.N,G=this.M.O,Y=x.M.P.N;for(x=x.M.O;T.R;)G=T.ba(G),T=T.R;for(;Y.R;)x=Y.ba(x),Y=Y.R;return T===Y&&G===x},ke.prototype.clone=function(){if(this.M.O||ze(this),this.M.aa)return this.M.count.value+=1,this;var x=bt,T=Object,G=T.create,Y=Object.getPrototypeOf(this),V=this.M;return x=x(G.call(T,Y,{M:{value:{count:V.count,$:V.$,aa:V.aa,O:V.O,P:V.P,T:V.T,U:V.U}}})),x.M.count.value+=1,x.M.$=!1,x},ke.prototype.delete=function(){this.M.O||ze(this),this.M.$&&!this.M.aa&&se("Object already scheduled for deletion"),Gt(this),Qn(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},ke.prototype.isDeleted=function(){return!this.M.O},ke.prototype.deleteLater=function(){return this.M.O||ze(this),this.M.$&&!this.M.aa&&se("Object already scheduled for deletion"),Be.push(this),Be.length===1&&at&&at(_e),this.M.$=!0,this},jo.prototype.qa=function(x){return this.ka&&(x=this.ka(x)),x},jo.prototype.ha=function(x){this.W&&this.W(x)},jo.prototype.argPackAdvance=8,jo.prototype.readValueFromPointer=uo,jo.prototype.deleteObject=function(x){x!==null&&x.delete()},jo.prototype.fromWireType=function(x){function T(){return this.da?ot(this.N.X,{P:this.wa,O:G,U:this,T:x}):ot(this.N.X,{P:this,O:x})}i(T,"b");var G=this.qa(x);if(!G)return this.ha(x),null;var Y=wo(this.N,G);if(Y!==void 0)return Y.M.count.value===0?(Y.M.O=G,Y.M.T=x,Y.clone()):(Y=Y.clone(),this.ha(x),Y);if(Y=this.N.pa(G),Y=qr[Y],!Y)return T.call(this);Y=this.ca?Y.la:Y.pointerType;var V=Ro(G,this.N,Y.N);return V===null?T.call(this):this.da?ot(Y.N.X,{P:Y,O:V,U:this,T:x}):ot(Y.N.X,{P:Y,O:V})},Yt=r.UnboundTypeError=mt("UnboundTypeError");var Oi=typeof atob=="function"?atob:function(x){var T="",G=0;x=x.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++)),V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++)),ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++)),Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++));Y=Y<<2|V>>4,V=(V&15)<<4|ye>>2;var ve=(ye&3)<<6|Oe;T+=String.fromCharCode(Y),ye!==64&&(T+=String.fromCharCode(V)),Oe!==64&&(T+=String.fromCharCode(ve))}while(G<x.length);return T},to={l:i(function(x,T,G,Y){Pe("Assertion failed: "+(x?M(H,x):"")+", at: "+[T?T?M(H,T):"":"unknown filename",G,Y?Y?M(H,Y):"":"unknown function"])},"l"),q:i(function(x,T,G){x=gt(x),T=Ze(T,"wrapper"),G=Te(G);var Y=[].slice,V=T.N,ye=V.X,Oe=V.R.X,ve=V.R.constructor;x=Xe(x,function(){V.R.ja.forEach(function(qe){if(this[qe]===Oe[qe])throw new Qt("Pure virtual function "+qe+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:ye}),this.__construct.apply(this,Y.call(arguments))}),ye.__construct=function(){this===ye&&se("Pass correct 'this' to __construct");var qe=ve.implement.apply(void 0,[this].concat(Y.call(arguments)));Gt(qe);var lt=qe.M;qe.notifyOnDestruction(),lt.aa=!0,Object.defineProperties(this,{M:{value:lt}}),bt(this),qe=lt.O,qe=Re(V,qe),Mt.hasOwnProperty(qe)?se("Tried to register registered instance: "+qe):Mt[qe]=this},ye.__destruct=function(){this===ye&&se("Pass correct 'this' to __destruct"),Gt(this);var qe=this.M.O;qe=Re(V,qe),Mt.hasOwnProperty(qe)?delete Mt[qe]:se("Tried to unregister unregistered instance: "+qe)},x.prototype=Object.create(ye);for(var We in G)x.prototype[We]=G[We];return At(x)},"q"),j:i(function(x){var T=Et[x];delete Et[x];var G=T.fa,Y=T.W,V=T.ia,ye=V.map(Oe=>Oe.ta).concat(V.map(Oe=>Oe.za));Tn([x],ye,Oe=>{var ve={};return V.forEach((We,qe)=>{var lt=Oe[qe],xt=We.ra,nn=We.sa,_n=Oe[qe+V.length],Mn=We.ya,no=We.Aa;ve[We.oa]={read:i(lr=>lt.fromWireType(xt(nn,lr)),"read"),write:i((lr,Hi)=>{var Mo=[];Mn(no,lr,_n.toWireType(Mo,Hi)),en(Mo)},"write")}}),[{name:T.name,fromWireType:i(function(We){var qe={},lt;for(lt in ve)qe[lt]=ve[lt].read(We);return Y(We),qe},"fromWireType"),toWireType:i(function(We,qe){for(var lt in ve)if(!(lt in qe))throw new TypeError('Missing field: "'+lt+'"');var xt=G();for(lt in ve)ve[lt].write(xt,qe[lt]);return We!==null&&We.push(Y,xt),xt},"toWireType"),argPackAdvance:8,readValueFromPointer:uo,V:Y}]})},"j"),v:i(function(){},"v"),B:i(function(x,T,G,Y,V){var ye=w(G);T=gt(T),j(x,{name:T,fromWireType:i(function(Oe){return!!Oe},"fromWireType"),toWireType:i(function(Oe,ve){return ve?Y:V},"toWireType"),argPackAdvance:8,readValueFromPointer:i(function(Oe){if(G===1)var ve=k;else if(G===2)ve=$;else if(G===4)ve=Ee;else throw new TypeError("Unknown boolean type size: "+T);return this.fromWireType(ve[Oe>>ye])},"readValueFromPointer"),V:null})},"B"),f:i(function(x,T,G,Y,V,ye,Oe,ve,We,qe,lt,xt,nn){lt=gt(lt),ye=Nn(V,ye),ve&&(ve=Nn(Oe,ve)),qe&&(qe=Nn(We,qe)),nn=Nn(xt,nn);var _n=be(lt);An(_n,function(){Tr("Cannot construct "+lt+" due to unbound types",[Y])}),Tn([x,T,G],Y?[Y]:[],function(Mn){if(Mn=Mn[0],Y)var no=Mn.N,lr=no.X;else lr=ke.prototype;Mn=Xe(_n,function(){if(Object.getPrototypeOf(this)!==Hi)throw new ne("Use 'new' to construct "+lt);if(Mo.Y===void 0)throw new ne(lt+" has no accessible constructor");var cr=Mo.Y[arguments.length];if(cr===void 0)throw new ne("Tried to invoke ctor of "+lt+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Mo.Y).toString()+") parameters instead!");return cr.apply(this,arguments)});var Hi=Object.create(lr,{constructor:{value:Mn}});Mn.prototype=Hi;var Mo=new ft(lt,Mn,Hi,nn,no,ye,ve,qe);no=new jo(lt,Mo,!0,!1),lr=new jo(lt+"*",Mo,!1,!1);var Vo=new jo(lt+" const*",Mo,!1,!0);return qr[x]={pointerType:lr,la:Vo},Ir(_n,Mn),[no,lr,Vo]})},"f"),d:i(function(x,T,G,Y,V,ye,Oe){var ve=ta(G,Y);T=gt(T),ye=Nn(V,ye),Tn([],[x],function(We){function qe(){Tr("Cannot call "+lt+" due to unbound types",ve)}i(qe,"l"),We=We[0];var lt=We.name+"."+T;T.startsWith("@@")&&(T=Symbol[T.substring(2)]);var xt=We.N.constructor;return xt[T]===void 0?(qe.Z=G-1,xt[T]=qe):(it(xt,T,lt),xt[T].S[G-1]=qe),Tn([],ve,function(nn){return nn=ri(lt,[nn[0],null].concat(nn.slice(1)),null,ye,Oe),xt[T].S===void 0?(nn.Z=G-1,xt[T]=nn):xt[T].S[G-1]=nn,[]}),[]})},"d"),p:i(function(x,T,G,Y,V,ye){0<T||Pe();var Oe=ta(T,G);V=Nn(Y,V),Tn([],[x],function(ve){ve=ve[0];var We="constructor "+ve.name;if(ve.N.Y===void 0&&(ve.N.Y=[]),ve.N.Y[T-1]!==void 0)throw new ne("Cannot register multiple constructors with identical number of parameters ("+(T-1)+") for class '"+ve.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return ve.N.Y[T-1]=()=>{Tr("Cannot construct "+ve.name+" due to unbound types",Oe)},Tn([],Oe,function(qe){return qe.splice(1,0,null),ve.N.Y[T-1]=ri(We,qe,null,V,ye),[]}),[]})},"p"),a:i(function(x,T,G,Y,V,ye,Oe,ve){var We=ta(G,Y);T=gt(T),ye=Nn(V,ye),Tn([],[x],function(qe){function lt(){Tr("Cannot call "+xt+" due to unbound types",We)}i(lt,"n"),qe=qe[0];var xt=qe.name+"."+T;T.startsWith("@@")&&(T=Symbol[T.substring(2)]),ve&&qe.N.ja.push(T);var nn=qe.N.X,_n=nn[T];return _n===void 0||_n.S===void 0&&_n.className!==qe.name&&_n.Z===G-2?(lt.Z=G-2,lt.className=qe.name,nn[T]=lt):(it(nn,T,xt),nn[T].S[G-2]=lt),Tn([],We,function(Mn){return Mn=ri(xt,Mn,qe,ye,Oe),nn[T].S===void 0?(Mn.Z=G-2,nn[T]=Mn):nn[T].S[G-2]=Mn,[]}),[]})},"a"),A:i(function(x,T){T=gt(T),j(x,{name:T,fromWireType:i(function(G){var Y=Te(G);return na(G),Y},"fromWireType"),toWireType:i(function(G,Y){return At(Y)},"toWireType"),argPackAdvance:8,readValueFromPointer:uo,V:null})},"A"),n:i(function(x,T,G){G=w(G),T=gt(T),j(x,{name:T,fromWireType:i(function(Y){return Y},"fromWireType"),toWireType:i(function(Y,V){return V},"toWireType"),argPackAdvance:8,readValueFromPointer:Sa(T,G),V:null})},"n"),e:i(function(x,T,G,Y,V){T=gt(T),V===-1&&(V=4294967295),V=w(G);var ye=i(ve=>ve,"f");if(Y===0){var Oe=32-8*G;ye=i(ve=>ve<<Oe>>>Oe,"f")}G=T.includes("unsigned")?function(ve,We){return We>>>0}:function(ve,We){return We},j(x,{name:T,fromWireType:ye,toWireType:G,argPackAdvance:8,readValueFromPointer:Jr(T,V,Y!==0),V:null})},"e"),b:i(function(x,T,G){function Y(ye){ye>>=2;var Oe=Ce;return new V(D,Oe[ye+1],Oe[ye])}i(Y,"d");var V=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][T];G=gt(G),j(x,{name:G,fromWireType:Y,argPackAdvance:8,readValueFromPointer:Y},{ua:!0})},"b"),o:i(function(x,T){T=gt(T);var G=T==="std::string";j(x,{name:T,fromWireType:i(function(Y){var V=Ce[Y>>2],ye=Y+4;if(G)for(var Oe=ye,ve=0;ve<=V;++ve){var We=ye+ve;if(ve==V||H[We]==0){if(Oe=Oe?M(H,Oe,We-Oe):"",qe===void 0)var qe=Oe;else qe+="\0",qe+=Oe;Oe=We+1}}else{for(qe=Array(V),ve=0;ve<V;++ve)qe[ve]=String.fromCharCode(H[ye+ve]);qe=qe.join("")}return Sr(Y),qe},"fromWireType"),toWireType:i(function(Y,V){V instanceof ArrayBuffer&&(V=new Uint8Array(V));var ye,Oe=typeof V=="string";if(Oe||V instanceof Uint8Array||V instanceof Uint8ClampedArray||V instanceof Int8Array||se("Cannot pass non-string to std::string"),G&&Oe){var ve=0;for(ye=0;ye<V.length;++ye){var We=V.charCodeAt(ye);127>=We?ve++:2047>=We?ve+=2:55296<=We&&57343>=We?(ve+=4,++ye):ve+=3}ye=ve}else ye=V.length;if(ve=va(4+ye+1),We=ve+4,Ce[ve>>2]=ye,G&&Oe){if(Oe=We,We=ye+1,ye=H,0<We){We=Oe+We-1;for(var qe=0;qe<V.length;++qe){var lt=V.charCodeAt(qe);if(55296<=lt&&57343>=lt){var xt=V.charCodeAt(++qe);lt=65536+((lt&1023)<<10)|xt&1023}if(127>=lt){if(Oe>=We)break;ye[Oe++]=lt}else{if(2047>=lt){if(Oe+1>=We)break;ye[Oe++]=192|lt>>6}else{if(65535>=lt){if(Oe+2>=We)break;ye[Oe++]=224|lt>>12}else{if(Oe+3>=We)break;ye[Oe++]=240|lt>>18,ye[Oe++]=128|lt>>12&63}ye[Oe++]=128|lt>>6&63}ye[Oe++]=128|lt&63}}ye[Oe]=0}}else if(Oe)for(Oe=0;Oe<ye;++Oe)qe=V.charCodeAt(Oe),255<qe&&(Sr(We),se("String has UTF-16 code units that do not fit in 8 bits")),H[We+Oe]=qe;else for(Oe=0;Oe<ye;++Oe)H[We+Oe]=V[Oe];return Y!==null&&Y.push(Sr,ve),ve},"toWireType"),argPackAdvance:8,readValueFromPointer:uo,V:i(function(Y){Sr(Y)},"V")})},"o"),i:i(function(x,T,G){if(G=gt(G),T===2)var Y=ii,V=Es,ye=Mc,Oe=i(()=>Qe,"g"),ve=1;else T===4&&(Y=Ja,V=ja,ye=Oc,Oe=i(()=>Ce,"g"),ve=2);j(x,{name:G,fromWireType:i(function(We){for(var qe=Ce[We>>2],lt=Oe(),xt,nn=We+4,_n=0;_n<=qe;++_n){var Mn=We+4+_n*T;(_n==qe||lt[Mn>>ve]==0)&&(nn=Y(nn,Mn-nn),xt===void 0?xt=nn:(xt+="\0",xt+=nn),nn=Mn+T)}return Sr(We),xt},"fromWireType"),toWireType:i(function(We,qe){typeof qe!="string"&&se("Cannot pass non-string to C++ string type "+G);var lt=ye(qe),xt=va(4+lt+T);return Ce[xt>>2]=lt>>ve,V(qe,xt+4,lt+T),We!==null&&We.push(Sr,xt),xt},"toWireType"),argPackAdvance:8,readValueFromPointer:uo,V:i(function(We){Sr(We)},"V")})},"i"),k:i(function(x,T,G,Y,V,ye){Et[x]={name:gt(T),fa:Nn(G,Y),W:Nn(V,ye),ia:[]}},"k"),h:i(function(x,T,G,Y,V,ye,Oe,ve,We,qe){Et[x].ia.push({oa:gt(T),ta:G,ra:Nn(Y,V),sa:ye,za:Oe,ya:Nn(ve,We),Aa:qe})},"h"),C:i(function(x,T){T=gt(T),j(x,{va:!0,name:T,argPackAdvance:0,fromWireType:i(function(){},"fromWireType"),toWireType:i(function(){},"toWireType")})},"C"),s:i(function(x,T,G,Y,V){x=Jn[x],T=Te(T),G=He(G);var ye=[];return Ce[Y>>2]=At(ye),x(T,G,ye,V)},"s"),t:i(function(x,T,G,Y){x=Jn[x],T=Te(T),G=He(G),x(T,G,null,Y)},"t"),g:na,m:i(function(x,T){var G=Bi(x,T),Y=G[0];T=Y.name+"_$"+G.slice(1).map(function(Oe){return Oe.name}).join("_")+"$";var V=oa[T];if(V!==void 0)return V;var ye=Array(x-1);return V=ao((Oe,ve,We,qe)=>{for(var lt=0,xt=0;xt<x-1;++xt)ye[xt]=G[xt+1].readValueFromPointer(qe+lt),lt+=G[xt+1].argPackAdvance;for(Oe=Oe[ve].apply(Oe,ye),xt=0;xt<x-1;++xt)G[xt+1].ma&&G[xt+1].ma(ye[xt]);if(!Y.va)return Y.toWireType(We,Oe)}),oa[T]=V},"m"),D:i(function(x){4<x&&(oe[x].ga+=1)},"D"),r:i(function(x){var T=Te(x);en(T),na(x)},"r"),c:i(function(){Pe("")},"c"),x:i(function(x,T,G){H.copyWithin(x,T,T+G)},"x"),w:i(function(x){var T=H.length;if(x>>>=0,2147483648<x)return!1;for(var G=1;4>=G;G*=2){var Y=T*(1+.2/G);Y=Math.min(Y,x+100663296);var V=Math;Y=Math.max(x,Y),V=V.min.call(V,2147483648,Y+(65536-Y%65536)%65536);e:{try{N.grow(V-D.byteLength+65535>>>16),Le();var ye=1;break e}catch{}ye=void 0}if(ye)return!0}return!1},"w"),z:i(function(){return 52},"z"),u:i(function(){return 70},"u"),y:i(function(x,T,G,Y){for(var V=0,ye=0;ye<G;ye++){var Oe=Ce[T>>2],ve=Ce[T+4>>2];T+=8;for(var We=0;We<ve;We++){var qe=H[Oe+We],lt=Ni[x];qe===0||qe===10?((x===1?E:S)(M(lt,0)),lt.length=0):lt.push(qe)}V+=ve}return Ce[Y>>2]=V,0},"y")};(function(){function x(V){r.asm=V.exports,N=r.asm.E,Le(),le=r.asm.J,te.unshift(r.asm.F),Se--,r.monitorRunDependencies&&r.monitorRunDependencies(Se),Se==0&&(tt!==null&&(clearInterval(tt),tt=null),Ie&&(V=Ie,Ie=null,V()))}i(x,"a");function T(V){x(V.instance)}i(T,"b");function G(V){return pt().then(function(ye){return WebAssembly.instantiate(ye,Y)}).then(function(ye){return ye}).then(V,function(ye){S("failed to asynchronously prepare wasm: "+ye),Pe(ye)})}i(G,"c");var Y={a:to};if(Se++,r.monitorRunDependencies&&r.monitorRunDependencies(Se),r.instantiateWasm)try{return r.instantiateWasm(Y,x)}catch(V){S("Module.instantiateWasm callback failed with error: "+V),u(V)}return(function(){return v||typeof WebAssembly.instantiateStreaming!="function"||ct(Je)||typeof fetch!="function"?G(T):fetch(Je,{credentials:"same-origin"}).then(function(V){return WebAssembly.instantiateStreaming(V,Y).then(T,function(ye){return S("wasm streaming compile failed: "+ye),S("falling back to ArrayBuffer instantiation"),G(T)})})})().catch(u),{}})(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.F).apply(null,arguments)};var Br=r.___getTypeName=function(){return(Br=r.___getTypeName=r.asm.G).apply(null,arguments)};r.__embind_initialize_bindings=function(){return(r.__embind_initialize_bindings=r.asm.H).apply(null,arguments)};var va=r._malloc=function(){return(va=r._malloc=r.asm.I).apply(null,arguments)},Sr=r._free=function(){return(Sr=r._free=r.asm.K).apply(null,arguments)};r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.L).apply(null,arguments)};var Si;Ie=i(function x(){Si||Xa(),Si||(Ie=x)},"Lb");function Xa(){function x(){if(!Si&&(Si=!0,r.calledRun=!0,!R)){if(P(te),c(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;){var T=r.postRun.shift();re.unshift(T)}P(re)}}if(i(x,"a"),!(0<Se)){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)ee();P(ue),0<Se||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),x()},1)):x())}}if(i(Xa,"Mb"),r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);0<r.preInit.length;)r.preInit.pop()();return Xa(),o.ready})})(),tN=OF});var wu,oN,rN,cC,bb,xu,Rm,HF,e0,Rb,wm,xm,wb,iN,xb,Db,kl,Tb,kF,aN,t0=L(()=>{wu=(function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e})({}),oN=(function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e})({}),rN=(function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e})({}),cC=(function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e})({}),bb=(function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e})({}),xu=(function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e})({}),Rm=(function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e})({}),HF=(function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e})({}),e0=(function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e})({}),Rb=(function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e})({}),wm=(function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e})({}),xm=(function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e})({}),wb=(function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e})({}),iN=(function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e})({}),xb=(function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e})({}),Db=(function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e})({}),kl=(function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e})({}),Tb=(function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e})({}),kF={ALIGN_AUTO:wu.Auto,ALIGN_FLEX_START:wu.FlexStart,ALIGN_CENTER:wu.Center,ALIGN_FLEX_END:wu.FlexEnd,ALIGN_STRETCH:wu.Stretch,ALIGN_BASELINE:wu.Baseline,ALIGN_SPACE_BETWEEN:wu.SpaceBetween,ALIGN_SPACE_AROUND:wu.SpaceAround,ALIGN_SPACE_EVENLY:wu.SpaceEvenly,BOX_SIZING_BORDER_BOX:oN.BorderBox,BOX_SIZING_CONTENT_BOX:oN.ContentBox,DIMENSION_WIDTH:rN.Width,DIMENSION_HEIGHT:rN.Height,DIRECTION_INHERIT:cC.Inherit,DIRECTION_LTR:cC.LTR,DIRECTION_RTL:cC.RTL,DISPLAY_FLEX:bb.Flex,DISPLAY_NONE:bb.None,DISPLAY_CONTENTS:bb.Contents,EDGE_LEFT:xu.Left,EDGE_TOP:xu.Top,EDGE_RIGHT:xu.Right,EDGE_BOTTOM:xu.Bottom,EDGE_START:xu.Start,EDGE_END:xu.End,EDGE_HORIZONTAL:xu.Horizontal,EDGE_VERTICAL:xu.Vertical,EDGE_ALL:xu.All,ERRATA_NONE:Rm.None,ERRATA_STRETCH_FLEX_BASIS:Rm.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Rm.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Rm.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Rm.All,ERRATA_CLASSIC:Rm.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:HF.WebFlexBasis,FLEX_DIRECTION_COLUMN:e0.Column,FLEX_DIRECTION_COLUMN_REVERSE:e0.ColumnReverse,FLEX_DIRECTION_ROW:e0.Row,FLEX_DIRECTION_ROW_REVERSE:e0.RowReverse,GUTTER_COLUMN:Rb.Column,GUTTER_ROW:Rb.Row,GUTTER_ALL:Rb.All,JUSTIFY_FLEX_START:wm.FlexStart,JUSTIFY_CENTER:wm.Center,JUSTIFY_FLEX_END:wm.FlexEnd,JUSTIFY_SPACE_BETWEEN:wm.SpaceBetween,JUSTIFY_SPACE_AROUND:wm.SpaceAround,JUSTIFY_SPACE_EVENLY:wm.SpaceEvenly,LOG_LEVEL_ERROR:xm.Error,LOG_LEVEL_WARN:xm.Warn,LOG_LEVEL_INFO:xm.Info,LOG_LEVEL_DEBUG:xm.Debug,LOG_LEVEL_VERBOSE:xm.Verbose,LOG_LEVEL_FATAL:xm.Fatal,MEASURE_MODE_UNDEFINED:wb.Undefined,MEASURE_MODE_EXACTLY:wb.Exactly,MEASURE_MODE_AT_MOST:wb.AtMost,NODE_TYPE_DEFAULT:iN.Default,NODE_TYPE_TEXT:iN.Text,OVERFLOW_VISIBLE:xb.Visible,OVERFLOW_HIDDEN:xb.Hidden,OVERFLOW_SCROLL:xb.Scroll,POSITION_TYPE_STATIC:Db.Static,POSITION_TYPE_RELATIVE:Db.Relative,POSITION_TYPE_ABSOLUTE:Db.Absolute,UNIT_UNDEFINED:kl.Undefined,UNIT_POINT:kl.Point,UNIT_PERCENT:kl.Percent,UNIT_AUTO:kl.Auto,WRAP_NO_WRAP:Tb.NoWrap,WRAP_WRAP:Tb.Wrap,WRAP_WRAP_REVERSE:Tb.WrapReverse},aN=kF});function _b(e){function o(u,f,m){let E=u[f];u[f]=function(){for(var S=arguments.length,v=new Array(S),b=0;b<S;b++)v[b]=arguments[b];return m.call(this,E,...v)}}i(o,"patch");for(let u of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let f={[kl.Point]:e.Node.prototype[u],[kl.Percent]:e.Node.prototype[`${u}Percent`],[kl.Auto]:e.Node.prototype[`${u}Auto`]};o(e.Node.prototype,u,function(m){for(var E=arguments.length,S=new Array(E>1?E-1:0),v=1;v<E;v++)S[v-1]=arguments[v];let b=S.pop(),N,R;if(b==="auto")N=kl.Auto,R=void 0;else if(typeof b=="object")N=b.unit,R=b.valueOf();else if(N=typeof b=="string"&&b.endsWith("%")?kl.Percent:kl.Point,R=parseFloat(b),b!==void 0&&!Number.isNaN(b)&&Number.isNaN(R))throw new Error(`Invalid value ${b} for ${u}`);if(!f[N])throw new Error(`Failed to execute "${u}": Unsupported unit '${b}'`);return R!==void 0?f[N].call(this,...S,R):f[N].call(this,...S)})}function r(u){return e.MeasureCallback.implement({measure:i(function(){let{width:f,height:m}=u(...arguments);return{width:f??NaN,height:m??NaN}},"measure")})}i(r,"wrapMeasureFunction"),o(e.Node.prototype,"setMeasureFunc",function(u,f){return f?u.call(this,r(f)):this.unsetMeasureFunc()});function c(u){return e.DirtiedCallback.implement({dirtied:u})}return i(c,"wrapDirtiedFunc"),o(e.Node.prototype,"setDirtiedFunc",function(u,f){u.call(this,c(f))}),o(e.Config.prototype,"free",function(){e.Config.destroy(this)}),o(e.Node,"create",(u,f)=>f?e.Node.createWithConfig(f):e.Node.createDefault()),o(e.Node.prototype,"free",function(){e.Node.destroy(this)}),o(e.Node.prototype,"freeRecursive",function(){for(let u=0,f=this.getChildCount();u<f;++u)this.getChild(0).freeRecursive();this.free()}),o(e.Node.prototype,"calculateLayout",function(u){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cC.LTR;return u.call(this,f,m,E)}),{Config:e.Config,Node:e.Node,...aN}}var sN=L(()=>{t0();t0();i(_b,"wrapAssembly")});var UF,st,XA=L(async()=>{nN();sN();t0();UF=_b(await tN()),st=UF});function FF(){let e=new Map;for(let[o,r]of Object.entries(Ko)){for(let[c,u]of Object.entries(r))Ko[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},r[c]=Ko[c],e.set(u[0],u[1]);Object.defineProperty(Ko,o,{value:r,enumerable:!1})}return Object.defineProperty(Ko,"codes",{value:e,enumerable:!1}),Ko.color.close="\x1B[39m",Ko.bgColor.close="\x1B[49m",Ko.color.ansi=lN(),Ko.color.ansi256=cN(),Ko.color.ansi16m=uN(),Ko.bgColor.ansi=lN(10),Ko.bgColor.ansi256=cN(10),Ko.bgColor.ansi16m=uN(10),Object.defineProperties(Ko,{rgbToAnsi256:{value(o,r,c){return o===r&&r===c?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(r/255*5)+Math.round(c/255*5)},enumerable:!1},hexToRgb:{value(o){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!r)return[0,0,0];let[c]=r;c.length===3&&(c=[...c].map(f=>f+f).join(""));let u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:i(o=>Ko.rgbToAnsi256(...Ko.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let r,c,u;if(o>=232)r=((o-232)*10+8)/255,c=r,u=r;else{o-=16;let E=o%36;r=Math.floor(o/36)/5,c=Math.floor(E/6)/5,u=E%6/5}let f=Math.max(r,c,u)*2;if(f===0)return 30;let m=30+(Math.round(u)<<2|Math.round(c)<<1|Math.round(r));return f===2&&(m+=60),m},enumerable:!1},rgbToAnsi:{value:i((o,r,c)=>Ko.ansi256ToAnsi(Ko.rgbToAnsi256(o,r,c)),"value"),enumerable:!1},hexToAnsi:{value:i(o=>Ko.ansi256ToAnsi(Ko.hexToAnsi256(o)),"value"),enumerable:!1}}),Ko}var lN,cN,uN,Ko,mZ,LF,GF,hZ,zF,Qo,uC=L(()=>{lN=i((e=0)=>o=>`\x1B[${o+e}m`,"wrapAnsi16"),cN=i((e=0)=>o=>`\x1B[${38+e};5;${o}m`,"wrapAnsi256"),uN=i((e=0)=>(o,r,c)=>`\x1B[${38+e};2;${o};${r};${c}m`,"wrapAnsi16m"),Ko={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},mZ=Object.keys(Ko.modifier),LF=Object.keys(Ko.color),GF=Object.keys(Ko.bgColor),hZ=[...LF,...GF];i(FF,"assembleStyles");zF=FF(),Qo=zF});function Ws(e,o,r){return d5(String(e)).replaceAll(`\r
37
+ `,`
38
+ `).split(`
39
+ `).map(c=>A5(c5(c),o,r)).join(`
40
+ `)}var Dm,hN,EN,CN,yN,IN,o0,BN,SN,vN,Mb,Ob,Hb,QN,bN,KF,RN,wN,YF,qF,PF,xN,DN,JF,jF,AN,TN,VF,AC,dN,fN,gN,XF,_N,pN,kb,Tm,NN,ZF,WF,$F,MN,n0,mN,e5,t5,ON,n5,o5,r5,i5,a5,s5,Nb,l5,c5,u5,A5,d5,dC=L(()=>{Ea();uC();Dm="\x1B",hN="\x07",EN="\x9B",CN="[",yN="]",IN="m",o0=0,BN=39,SN=49,vN=59,Mb=38,Ob=48,Hb=58,QN=2,bN=5,KF=`${yN}8;`,RN=new Set([Dm,EN]),wN=[...RN].join(""),YF=`(?:${Dm}\\${CN}|${EN})`,qF="[0-?]*[ -/]*[@-~]",PF=`(?<sgr>[0-9;:]*)${IN}`,xN=`(?:${hN}|${Dm}\\\\)`,DN=String.raw`[^\u0000-\u001F\u007F-\u009F]*`,JF=String.raw`8;(?<parameters>[^;\u0000-\u001F\u007F-\u009F]*);(?<uri>${DN})${xN}`,jF=`${DN}${xN}`,AN=new RegExp(`${YF}(?:${PF}|${qF})|${Dm}\\${yN}(?:${JF}|${jF})`,"y"),TN=new Set(Qo.codes.values());TN.delete(o0);VF=new Intl.Segmenter,AC=i(e=>Ot(e,{countAnsiEscapeCodes:!0}),"getStringWidth"),dN=8,fN=new RegExp(`[${wN}]`,"g"),gN=new RegExp(`[\\n${wN}]`,"g"),XF=/^[ -~]*$/,_N=i(e=>`${Dm}${CN}${e}${IN}`,"wrapAnsiCode"),pN=i((e,o="")=>`${Dm}${KF}${o};${e}${hN}`,"wrapAnsiHyperlink"),kb=i((e,o)=>{if(RN.has(e[o]))return AN.lastIndex=o,AN.exec(e)??void 0},"matchAnsiEscape"),Tm=i((e,o,r=()=>{})=>{let c=0,u=0;for(;u<e.length;){fN.lastIndex=u;let f=fN.exec(e);if(!f)break;let m=kb(e,f.index);if(!m){u=f.index+1;continue}f.index>c&&o(e.slice(c,f.index)),r(m[0]),u=f.index+m[0].length,c=u}c<e.length&&o(e.slice(c))},"forEachSegment"),NN=i(e=>{let o="";return Tm(e,r=>{o+=r}),AC(o)},"getWidth"),ZF=i(e=>{let o=[];return Tm(e,r=>{if(XF.test(r)){for(let c of r)o.push({value:c,width:1});return}for(let{segment:c}of VF.segment(r))o.push({value:c,width:AC(c)})},r=>{o.push({value:r,width:0})}),o},"getTokens"),WF=i(e=>{let o={value:"",plainText:""},r=[o];Tm(e,c=>{let u=c.split(" ");o.value+=u[0],o.plainText+=u[0];for(let f=1;f<u.length;f++)o={value:u[f],plainText:u[f]},r.push(o)},c=>{o.value+=c});for(let c of r)c.width=AC(c.plainText);return r},"splitWords"),$F=i(e=>{let o=e.split(":"),r=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10);if(![Mb,Ob,Hb].includes(r))return;if(c===bN&&o.length===3&&/^\d+$/.test(o[2]))return{code:r,open:e,hasArguments:!0};if(c!==QN)return;let u=o.length===6?o.slice(3):o.slice(2),f=o.length===6?o[2]:void 0;if(u.length===3&&u.every(m=>/^\d+$/.test(m))&&(f===void 0||/^\d*$/.test(f)))return{code:r,open:e,hasArguments:!0}},"getColonColorToken"),MN=i(e=>{let o=e.split(";"),r=[];for(let c=0;c<o.length;c++){let u=o[c];if(u.includes(":")){let m=$F(u);m&&r.push(m);continue}let f=u===""?o0:Number.parseInt(u,10);if(Number.isFinite(f)){if(f===Mb||f===Ob||f===Hb){if(c+1>=o.length)break;let m=Number.parseInt(o[c+1],10),E=Number.parseInt(o[c+2],10);if(m===bN&&Number.isFinite(E)){r.push({code:f,open:[f,m,E].join(";"),hasArguments:!0}),c+=2;continue}let S=Number.parseInt(o[c+2],10),v=Number.parseInt(o[c+3],10),b=Number.parseInt(o[c+4],10);if(m===QN&&Number.isFinite(S)&&Number.isFinite(v)&&Number.isFinite(b)){r.push({code:f,open:[f,m,S,v,b].join(";"),hasArguments:!0}),c+=4;continue}break}r.push({code:f,open:String(f),hasArguments:!1})}}return r},"getSgrTokens"),n0=i((e,o)=>{let r=e.findIndex(c=>c.family===o);r!==-1&&e.splice(r,1)},"removeActiveStyle"),mN=i((e,o)=>{n0(e,o.family),e.push(o)},"upsertActiveStyle"),e5=i((e,o)=>{for(let r=e.length-1;r>=0;r--){let c=e[r];c.family.startsWith("modifier-")&&c.close===o&&e.splice(r,1)}},"removeModifierStylesByClose"),t5=i(e=>{let{code:o,open:r,hasArguments:c}=e;if(o>=30&&o<=37||o>=90&&o<=97||o===Mb&&c)return{family:"foreground",open:r,close:BN};if(o>=40&&o<=47||o>=100&&o<=107||o===Ob&&c)return{family:"background",open:r,close:SN};if(o===Hb&&c)return{family:"underlineColor",open:r,close:vN}},"getColorStyle"),ON=i((e,o)=>e===o0?(o.length=0,!0):e===BN?(n0(o,"foreground"),!0):e===SN?(n0(o,"background"),!0):e===vN?(n0(o,"underlineColor"),!0):TN.has(e)?(e5(o,e),!0):!1,"applySgrResetCode"),n5=i((e,o)=>{let{code:r}=e;if(ON(r,o))return;let c=t5(e);if(c){mN(o,c);return}let u=Qo.codes.get(r);u!==void 0&&u!==o0&&mN(o,{family:`modifier-${r}`,open:e.open,close:u})},"applySgrToken"),o5=i((e,o)=>{for(let r of MN(e))n5(r,o)},"applySgrParameters"),r5=i((e,o)=>{for(let{code:r}of MN(e))ON(r,o)},"applySgrResets"),i5=i((e,o,r)=>{let c=o;for(;c<e.length;){let u=kb(e,c);if(!u)break;u.groups.sgr!==void 0&&r5(u.groups.sgr,r),c+=u[0].length}},"applyLeadingSgrResets"),a5=i(e=>[...e].reverse().map(o=>_N(o.close)).join(""),"getClosingSgrSequence"),s5=i(e=>e.map(o=>_N(o.open)).join(""),"getOpeningSgrSequence"),Nb=i((e,o,r,c)=>{let u=ZF(o),f=c;for(let m=0;m<u.length;m++){let E=u[m];E.width>0&&f>0&&f+E.width>r&&(e.push(""),f=0),e[e.length-1]+=E.value,f+=E.width,f===r&&m<u.length-1&&(e.push(""),f=0)}return!f&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop()),NN(e.at(-1))},"wrapWord"),l5=i(e=>{if(!e.includes(" "))return e;let o=[];Tm(e,r=>{o.push({value:r,isEscape:!1})},r=>{o.push({value:r,isEscape:!0})});for(let r=o.length-1;r>=0;r--){let c=o[r];if(c.isEscape)continue;let u=c.value.length;for(;u>0&&c.value[u-1]===" ";)u--;if(c.value=c.value.slice(0,u),AC(c.value)>0)break}return o.map(r=>r.value).join("")},"stringVisibleTrimSpacesRight"),c5=i(e=>{if(!e.includes(" "))return e;let o=0,r="",c="";return Tm(e,i(f=>{let m=f.split(" ");for(let[E,S]of m.entries())if(r+=S,c+=S,E<m.length-1){o+=AC(c),c="";let v=dN-o%dN;r+=" ".repeat(v),o+=v}},"expandPlainText"),f=>{r+=f}),r},"expandTabs"),u5=i(e=>{let o="",r,c=[],u=0,f=0;for(;u<e.length;){gN.lastIndex=u;let m=gN.exec(e);if(!m)break;if(u=m.index,m[0]!==`
41
+ `){let E=kb(e,u);if(!E){u++;continue}let{groups:S}=E;S.sgr!==void 0?o5(S.sgr,c):S.uri!==void 0&&(r=S.uri.length===0?void 0:{parameters:S.parameters,uri:S.uri}),u+=E[0].length;continue}if(o+=e.slice(f,u),u>f&&(r&&(o+=pN("")),o+=a5(c)),o+=`
42
+ `,u++,f=u,u<e.length&&e[u]!==`
43
+ `){let E=[...c];i5(e,u,E),o+=s5(E),r&&(o+=pN(r.uri,r.parameters))}}return o+e.slice(f)},"restoreStylesAcrossRows"),A5=i((e,o,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let c=WF(e),u=[""],f=0,m=-1,E=!0;for(let S of c){let v=u.length-1;if(r.trim!==!1&&m!==v){let b=u[v],N=b.trimStart();N.length!==b.length&&(u[v]=N,f=NN(N)),N.length>0&&(m=v)}if(E?E=!1:(f>=o&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),f=0),(f>0||r.trim===!1)&&(u[u.length-1]+=" ",f++)),r.hard&&r.wordWrap!==!1&&S.width>o){let b=o-f,N=1+Math.floor((S.width-b-1)/o);Math.floor((S.width-1)/o)<N&&(u.push(""),f=0),f=Nb(u,S.value,o,f);continue}if(f+S.width>o&&f>0&&S.width>0){if(r.wordWrap===!1&&f<o){f=Nb(u,S.value,o,f);continue}u.push(""),f=0}if(f+S.width>o&&r.wordWrap===!1){f=Nb(u,S.value,o,f);continue}u[u.length-1]+=S.value,f+=S.width}return r.trim!==!1&&(u=u.map(S=>l5(S))),u5(u.join(`
44
+ `))},"exec"),d5=i(e=>{let o="";return Tm(e,r=>{o+=r.normalize()},r=>{o+=r}),o},"normalizeText");i(Ws,"wrapAnsi")});import Yf from"node:process";import{execFileSync as f5}from"node:child_process";import fC from"node:fs";import g5 from"node:tty";function Gb(){let{env:e,stdout:o,stderr:r}=Yf;if(o?.columns&&o?.rows)return r0(o.columns,o.rows);if(r?.columns&&r?.rows)return r0(r.columns,r.rows);if(e.COLUMNS&&e.LINES)return r0(e.COLUMNS,e.LINES);let c={columns:kN,rows:UN};return Yf.platform==="win32"?Ub()??c:Yf.platform==="darwin"?HN()??Ub()??c:HN()??Ub()??m5()??c}var kN,UN,Lb,r0,LN,p5,HN,Ub,m5,GN=L(()=>{kN=80,UN=24,Lb=i((e,o,{shell:r,env:c}={})=>f5(e,o,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:r,env:c}).trim(),"exec"),r0=i((e,o)=>({columns:Number.parseInt(e,10),rows:Number.parseInt(o,10)}),"create"),LN=i((e,o)=>{let{columns:r,rows:c}=r0(e,o);if(!(Number.isNaN(r)||Number.isNaN(c))&&!(r===kN&&c===UN))return{columns:r,rows:c}},"createIfNotDefault"),p5=i(()=>{if(Yf.platform!=="linux")return!0;try{let e=fC.readFileSync("/proc/self/stat","utf8"),o=e.lastIndexOf(") ");if(o===-1)return!1;let r=e.slice(o+2).trim().split(/\s+/),c=Number.parseInt(r[2],10),u=Number.parseInt(r[5],10);return Number.isNaN(c)||Number.isNaN(u)||u<=0?!1:c===u}catch{return!1}},"isForegroundProcess");i(Gb,"terminalSize");HN=i(()=>{try{let e=Yf.platform==="darwin"?fC.constants.O_EVTONLY|fC.constants.O_NONBLOCK:fC.constants.O_NONBLOCK,{columns:o,rows:r}=g5.WriteStream(fC.openSync("/dev/tty",e));return{columns:o,rows:r}}catch{}},"devTty"),Ub=i(()=>{try{let e=Lb("tput",["cols"],{env:{TERM:"dumb",...Yf.env}}),o=Lb("tput",["lines"],{env:{TERM:"dumb",...Yf.env}});if(e&&o)return LN(e,o)}catch{}},"tput"),m5=i(()=>{try{if(!p5())return;let e=Lb("resize",["-u"]).match(/\d+/g);if(e.length===2)return LN(e[0],e[1])}catch{}},"resize")});var Du,Fb=L(()=>{GN();Du=i(e=>{let{columns:o,rows:r}=e;if(o&&r)return{columns:o,rows:r};let c=Gb();return{columns:o||c.columns||80,rows:r||c.rows||24}},"getWindowSize")});var XN=Yn(Yo=>{"use strict";function qb(e,o){var r=e.length;e.push(o);e:for(;0<r;){var c=r-1>>>1,u=e[c];if(0<i0(u,o))e[c]=o,e[r]=u,r=c;else break e}}i(qb,"push");function Sc(e){return e.length===0?null:e[0]}i(Sc,"peek");function s0(e){if(e.length===0)return null;var o=e[0],r=e.pop();if(r!==o){e[0]=r;e:for(var c=0,u=e.length,f=u>>>1;c<f;){var m=2*(c+1)-1,E=e[m],S=m+1,v=e[S];if(0>i0(E,r))S<u&&0>i0(v,E)?(e[c]=v,e[S]=r,c=S):(e[c]=E,e[m]=r,c=m);else if(S<u&&0>i0(v,r))e[c]=v,e[S]=r,c=S;else break e}}return o}i(s0,"pop");function i0(e,o){var r=e.sortIndex-o.sortIndex;return r!==0?r:e.id-o.id}i(i0,"compare");Yo.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(FN=performance,Yo.unstable_now=function(){return FN.now()}):(zb=Date,zN=zb.now(),Yo.unstable_now=function(){return zb.now()-zN});var FN,zb,zN,Tu=[],ZA=[],h5=1,$s=null,Xi=3,Pb=!1,gC=!1,pC=!1,Jb=!1,qN=typeof setTimeout=="function"?setTimeout:null,PN=typeof clearTimeout=="function"?clearTimeout:null,KN=typeof setImmediate<"u"?setImmediate:null;function a0(e){for(var o=Sc(ZA);o!==null;){if(o.callback===null)s0(ZA);else if(o.startTime<=e)s0(ZA),o.sortIndex=o.expirationTime,qb(Tu,o);else break;o=Sc(ZA)}}i(a0,"advanceTimers");function jb(e){if(pC=!1,a0(e),!gC)if(Sc(Tu)!==null)gC=!0,Nm||(Nm=!0,_m());else{var o=Sc(ZA);o!==null&&Vb(jb,o.startTime-e)}}i(jb,"handleTimeout");var Nm=!1,mC=-1,JN=5,jN=-1;function VN(){return Jb?!0:!(Yo.unstable_now()-jN<JN)}i(VN,"shouldYieldToHost");function Kb(){if(Jb=!1,Nm){var e=Yo.unstable_now();jN=e;var o=!0;try{e:{gC=!1,pC&&(pC=!1,PN(mC),mC=-1),Pb=!0;var r=Xi;try{t:{for(a0(e),$s=Sc(Tu);$s!==null&&!($s.expirationTime>e&&VN());){var c=$s.callback;if(typeof c=="function"){$s.callback=null,Xi=$s.priorityLevel;var u=c($s.expirationTime<=e);if(e=Yo.unstable_now(),typeof u=="function"){$s.callback=u,a0(e),o=!0;break t}$s===Sc(Tu)&&s0(Tu),a0(e)}else s0(Tu);$s=Sc(Tu)}if($s!==null)o=!0;else{var f=Sc(ZA);f!==null&&Vb(jb,f.startTime-e),o=!1}}break e}finally{$s=null,Xi=r,Pb=!1}o=void 0}}finally{o?_m():Nm=!1}}}i(Kb,"performWorkUntilDeadline");var _m;typeof KN=="function"?_m=i(function(){KN(Kb)},"schedulePerformWorkUntilDeadline"):typeof MessageChannel<"u"?(Yb=new MessageChannel,YN=Yb.port2,Yb.port1.onmessage=Kb,_m=i(function(){YN.postMessage(null)},"schedulePerformWorkUntilDeadline")):_m=i(function(){qN(Kb,0)},"schedulePerformWorkUntilDeadline");var Yb,YN;function Vb(e,o){mC=qN(function(){e(Yo.unstable_now())},o)}i(Vb,"requestHostTimeout");Yo.unstable_IdlePriority=5;Yo.unstable_ImmediatePriority=1;Yo.unstable_LowPriority=4;Yo.unstable_NormalPriority=3;Yo.unstable_Profiling=null;Yo.unstable_UserBlockingPriority=2;Yo.unstable_cancelCallback=function(e){e.callback=null};Yo.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):JN=0<e?Math.floor(1e3/e):5};Yo.unstable_getCurrentPriorityLevel=function(){return Xi};Yo.unstable_next=function(e){switch(Xi){case 1:case 2:case 3:var o=3;break;default:o=Xi}var r=Xi;Xi=o;try{return e()}finally{Xi=r}};Yo.unstable_requestPaint=function(){Jb=!0};Yo.unstable_runWithPriority=function(e,o){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Xi;Xi=e;try{return o()}finally{Xi=r}};Yo.unstable_scheduleCallback=function(e,o,r){var c=Yo.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?c+r:c):r=c,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return u=r+u,e={id:h5++,callback:o,priorityLevel:e,startTime:r,expirationTime:u,sortIndex:-1},r>c?(e.sortIndex=r,qb(ZA,e),Sc(Tu)===null&&e===Sc(ZA)&&(pC?(PN(mC),mC=-1):pC=!0,Vb(jb,r-c))):(e.sortIndex=u,qb(Tu,e),gC||Pb||(gC=!0,Nm||(Nm=!0,_m()))),e};Yo.unstable_shouldYield=VN;Yo.unstable_wrapCallback=function(e){var o=Xi;return function(){var r=Xi;Xi=o;try{return e.apply(this,arguments)}finally{Xi=r}}}});var ZN=Yn(qo=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(){if(Ce=!1,le){var Ie=qo.unstable_now();re=Ie;var Pe=!0;try{e:{Qe=!1,Ee&&(Ee=!1,ge(ue),ue=-1),$=!0;var ct=H;try{t:{for(f(Ie),k=r(R);k!==null&&!(k.expirationTime>Ie&&E());){var Je=k.callback;if(typeof Je=="function"){k.callback=null,H=k.priorityLevel;var W=Je(k.expirationTime<=Ie);if(Ie=qo.unstable_now(),typeof W=="function"){k.callback=W,f(Ie),Pe=!0;break t}k===r(R)&&c(R),f(Ie)}else c(R);k=r(R)}if(k!==null)Pe=!0;else{var ut=r(M);ut!==null&&S(m,ut.startTime-Ie),Pe=!1}}break e}finally{k=null,H=ct,$=!1}Pe=void 0}}finally{Pe?ee():le=!1}}}i(e,"performWorkUntilDeadline");function o(Ie,Pe){var ct=Ie.length;Ie.push(Pe);e:for(;0<ct;){var Je=ct-1>>>1,W=Ie[Je];if(0<u(W,Pe))Ie[Je]=Pe,Ie[ct]=W,ct=Je;else break e}}i(o,"push");function r(Ie){return Ie.length===0?null:Ie[0]}i(r,"peek");function c(Ie){if(Ie.length===0)return null;var Pe=Ie[0],ct=Ie.pop();if(ct!==Pe){Ie[0]=ct;e:for(var Je=0,W=Ie.length,ut=W>>>1;Je<ut;){var pt=2*(Je+1)-1,P=Ie[pt],be=pt+1,Xe=Ie[be];if(0>u(P,ct))be<W&&0>u(Xe,P)?(Ie[Je]=Xe,Ie[be]=ct,Je=be):(Ie[Je]=P,Ie[pt]=ct,Je=pt);else if(be<W&&0>u(Xe,ct))Ie[Je]=Xe,Ie[be]=ct,Je=be;else break e}}return Pe}i(c,"pop");function u(Ie,Pe){var ct=Ie.sortIndex-Pe.sortIndex;return ct!==0?ct:Ie.id-Pe.id}i(u,"compare");function f(Ie){for(var Pe=r(M);Pe!==null;){if(Pe.callback===null)c(M);else if(Pe.startTime<=Ie)c(M),Pe.sortIndex=Pe.expirationTime,o(R,Pe);else break;Pe=r(M)}}i(f,"advanceTimers");function m(Ie){if(Ee=!1,f(Ie),!Qe)if(r(R)!==null)Qe=!0,le||(le=!0,ee());else{var Pe=r(M);Pe!==null&&S(m,Pe.startTime-Ie)}}i(m,"handleTimeout");function E(){return Ce?!0:!(qo.unstable_now()-re<te)}i(E,"shouldYieldToHost");function S(Ie,Pe){ue=Me(function(){Ie(qo.unstable_now())},Pe)}if(i(S,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),qo.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;qo.unstable_now=function(){return v.now()}}else{var b=Date,N=b.now();qo.unstable_now=function(){return b.now()-N}}var R=[],M=[],D=1,k=null,H=3,$=!1,Qe=!1,Ee=!1,Ce=!1,Me=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,Le=typeof setImmediate<"u"?setImmediate:null,le=!1,ue=-1,te=5,re=-1;if(typeof Le=="function")var ee=i(function(){Le(e)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var Se=new MessageChannel,tt=Se.port2;Se.port1.onmessage=e,ee=i(function(){tt.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ee=i(function(){Me(e,0)},"schedulePerformWorkUntilDeadline");qo.unstable_IdlePriority=5,qo.unstable_ImmediatePriority=1,qo.unstable_LowPriority=4,qo.unstable_NormalPriority=3,qo.unstable_Profiling=null,qo.unstable_UserBlockingPriority=2,qo.unstable_cancelCallback=function(Ie){Ie.callback=null},qo.unstable_forceFrameRate=function(Ie){0>Ie||125<Ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<Ie?Math.floor(1e3/Ie):5},qo.unstable_getCurrentPriorityLevel=function(){return H},qo.unstable_next=function(Ie){switch(H){case 1:case 2:case 3:var Pe=3;break;default:Pe=H}var ct=H;H=Pe;try{return Ie()}finally{H=ct}},qo.unstable_requestPaint=function(){Ce=!0},qo.unstable_runWithPriority=function(Ie,Pe){switch(Ie){case 1:case 2:case 3:case 4:case 5:break;default:Ie=3}var ct=H;H=Ie;try{return Pe()}finally{H=ct}},qo.unstable_scheduleCallback=function(Ie,Pe,ct){var Je=qo.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?Je+ct:Je):ct=Je,Ie){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ct+W,Ie={id:D++,callback:Pe,priorityLevel:Ie,startTime:ct,expirationTime:W,sortIndex:-1},ct>Je?(Ie.sortIndex=ct,o(M,Ie),r(R)===null&&Ie===r(M)&&(Ee?(ge(ue),ue=-1):Ee=!0,S(m,ct-Je))):(Ie.sortIndex=W,o(R,Ie),Qe||$||(Qe=!0,le||(le=!0,ee()))),Ie},qo.unstable_shouldYield=E,qo.unstable_wrapCallback=function(Ie){var Pe=H;return function(){var ct=H;H=Pe;try{return Ie.apply(this,arguments)}finally{H=ct}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var l0=Yn((kZ,Xb)=>{"use strict";process.env.NODE_ENV==="production"?Xb.exports=XN():Xb.exports=ZN()});var WN=Yn((UZ,hC)=>{"use strict";hC.exports=function(e){function o(a,s,A,g){return new Ug(a,s,A,g)}i(o,"createFiber");function r(){}i(r,"noop");function c(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)s+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}i(c,"formatProdErrorMessage");function u(a){var s=a,A=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(A=s.return),a=s.return;while(a)}return s.tag===3?A:null}i(u,"getNearestMountedFiber");function f(a){if(u(a)!==a)throw Error(c(188))}i(f,"assertIsMounted");function m(a){var s=a.alternate;if(!s){if(s=u(a),s===null)throw Error(c(188));return s!==a?null:a}for(var A=a,g=s;;){var y=A.return;if(y===null)break;var I=y.alternate;if(I===null){if(g=y.return,g!==null){A=g;continue}break}if(y.child===I.child){for(I=y.child;I;){if(I===A)return f(y),a;if(I===g)return f(y),s;I=I.sibling}throw Error(c(188))}if(A.return!==g.return)A=y,g=I;else{for(var _=!1,F=y.child;F;){if(F===A){_=!0,A=y,g=I;break}if(F===g){_=!0,g=y,A=I;break}F=F.sibling}if(!_){for(F=I.child;F;){if(F===A){_=!0,A=I,g=y;break}if(F===g){_=!0,g=I,A=y;break}F=F.sibling}if(!_)throw Error(c(189))}}if(A.alternate!==g)throw Error(c(190))}if(A.tag!==3)throw Error(c(188));return A.stateNode.current===A?a:s}i(m,"findCurrentFiberUsingSlowPath");function E(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=E(a),s!==null)return s;a=a.sibling}return null}i(E,"findCurrentHostFiberImpl");function S(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(a.tag!==4&&(s=S(a),s!==null))return s;a=a.sibling}return null}i(S,"findCurrentHostFiberWithNoPortalsImpl");function v(a){return a===null||typeof a!="object"?null:(a=Lh&&a[Lh]||a["@@iterator"],typeof a=="function"?a:null)}i(v,"getIteratorFn");function b(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Gh?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case zc:return"Fragment";case qd:return"Profiler";case kh:return"StrictMode";case Kc:return"Suspense";case Zn:return"SuspenseList";case qg:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case tc:return"Portal";case hl:return a.displayName||"Context";case Yg:return(a._context.displayName||"Context")+".Consumer";case rA:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Uh:return s=a.displayName||null,s!==null?s:b(a.type)||"Memo";case nc:s=a._payload,a=a._init;try{return b(a(s))}catch{}}return null}i(b,"getComponentNameFromType");function N(a){return{current:a}}i(N,"createCursor");function R(a){0>uA||(a.current=ef[uA],ef[uA]=null,uA--)}i(R,"pop");function M(a,s){uA++,ef[uA]=a.current,a.current=s}i(M,"push");function D(a){return a>>>=0,a===0?32:31-(yI(a)/II|0)|0}i(D,"clz32Fallback");function k(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}i(k,"getHighestPriorityLanes");function H(a,s,A){var g=a.pendingLanes;if(g===0)return 0;var y=0,I=a.suspendedLanes,_=a.pingedLanes;a=a.warmLanes;var F=g&134217727;return F!==0?(g=F&~I,g!==0?y=k(g):(_&=F,_!==0?y=k(_):A||(A=F&~a,A!==0&&(y=k(A))))):(F=g&~I,F!==0?y=k(F):_!==0?y=k(_):A||(A=g&~a,A!==0&&(y=k(A)))),y===0?0:s!==0&&s!==y&&(s&I)===0&&(I=y&-y,A=s&-s,I>=A||I===32&&(A&4194048)!==0)?s:y}i(H,"getNextLanes");function $(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}i($,"checkIfRootIsPrerendering");function Qe(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}i(Qe,"computeExpirationTime");function Ee(){var a=AA;return AA<<=1,(AA&62914560)===0&&(AA=4194304),a}i(Ee,"claimNextRetryLane");function Ce(a){for(var s=[],A=0;31>A;A++)s.push(a);return s}i(Ce,"createLaneMap");function Me(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}i(Me,"markRootUpdated$1");function ge(a,s,A,g,y,I){var _=a.pendingLanes;a.pendingLanes=A,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=A,a.entangledLanes&=A,a.errorRecoveryDisabledLanes&=A,a.shellSuspendCounter=0;var F=a.entanglements,pe=a.expirationTimes,Fe=a.hiddenUpdates;for(A=_&~A;0<A;){var rt=31-Fi(A),$e=1<<rt;F[rt]=0,pe[rt]=-1;var Ct=Fe[rt];if(Ct!==null)for(Fe[rt]=null,rt=0;rt<Ct.length;rt++){var zt=Ct[rt];zt!==null&&(zt.lane&=-536870913)}A&=~$e}g!==0&&Le(a,g,0),I!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=I&~(_&~s))}i(ge,"markRootFinished");function Le(a,s,A){a.pendingLanes|=s,a.suspendedLanes&=~s;var g=31-Fi(s);a.entangledLanes|=s,a.entanglements[g]=a.entanglements[g]|1073741824|A&261930}i(Le,"markSpawnedDeferredLane");function le(a,s){var A=a.entangledLanes|=s;for(a=a.entanglements;A;){var g=31-Fi(A),y=1<<g;y&s|a[g]&s&&(a[g]|=s),A&=~y}}i(le,"markRootEntangled");function ue(a,s){var A=s&-s;return A=(A&42)!==0?1:te(A),(A&(a.suspendedLanes|s))!==0?0:A}i(ue,"getBumpedLaneForHydration");function te(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}i(te,"getBumpedLaneForHydrationByLane");function re(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}i(re,"lanesToEventPriority");function ee(a){if(typeof sp=="function"&&nE(a),$o&&typeof $o.setStrictMode=="function")try{$o.setStrictMode(Zc,a)}catch{}}i(ee,"setIsStrictModeForDevtools");function Se(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}i(Se,"is");function tt(a){if(fA===void 0)try{throw Error()}catch(A){var s=A.stack.trim().match(/\n( *(at )?)/);fA=s&&s[1]||"",Ki=-1<A.stack.indexOf(`
45
+ at`)?" (<anonymous>)":-1<A.stack.indexOf("@")?"@unknown:0:0":""}return`
46
+ `+fA+a+Ki}i(tt,"describeBuiltInComponentFrame");function Ie(a,s){if(!a||of)return"";of=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:i(function(){try{if(s){var $e=i(function(){throw Error()},"Fake");if(Object.defineProperty($e.prototype,"props",{set:i(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($e,[])}catch(zt){var Ct=zt}Reflect.construct(a,[],$e)}else{try{$e.call()}catch(zt){Ct=zt}a.call($e.prototype)}}else{try{throw Error()}catch(zt){Ct=zt}($e=a())&&typeof $e.catch=="function"&&$e.catch(function(){})}}catch(zt){if(zt&&Ct&&typeof zt.stack=="string")return[zt.stack,Ct.stack]}return[null,null]},"DetermineComponentFrameRoot")};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=g.DetermineComponentFrameRoot(),_=I[0],F=I[1];if(_&&F){var pe=_.split(`
47
+ `),Fe=F.split(`
48
+ `);for(y=g=0;g<pe.length&&!pe[g].includes("DetermineComponentFrameRoot");)g++;for(;y<Fe.length&&!Fe[y].includes("DetermineComponentFrameRoot");)y++;if(g===pe.length||y===Fe.length)for(g=pe.length-1,y=Fe.length-1;1<=g&&0<=y&&pe[g]!==Fe[y];)y--;for(;1<=g&&0<=y;g--,y--)if(pe[g]!==Fe[y]){if(g!==1||y!==1)do if(g--,y--,0>y||pe[g]!==Fe[y]){var rt=`
49
+ `+pe[g].replace(" at new "," at ");return a.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",a.displayName)),rt}while(1<=g&&0<=y);break}}}finally{of=!1,Error.prepareStackTrace=A}return(A=a?a.displayName||a.name:"")?tt(A):""}i(Ie,"describeNativeComponentFrame");function Pe(a,s){switch(a.tag){case 26:case 27:case 5:return tt(a.type);case 16:return tt("Lazy");case 13:return a.child!==s&&s!==null?tt("Suspense Fallback"):tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return Ie(a.type,!1);case 11:return Ie(a.type.render,!1);case 1:return Ie(a.type,!0);case 31:return tt("Activity");default:return""}}i(Pe,"describeFiber");function ct(a){try{var s="",A=null;do s+=Pe(a,A),A=a,a=a.return;while(a);return s}catch(g){return`
50
+ Error generating stack: `+g.message+`
51
+ `+g.stack}}i(ct,"getStackByFiberInDevAndProd");function Je(a,s){if(typeof a=="object"&&a!==null){var A=SI.get(a);return A!==void 0?A:(s={value:a,source:s,stack:ct(s)},SI.set(a,s),s)}return{value:a,source:s,stack:ct(s)}}i(Je,"createCapturedValueAtFiber");function W(a,s){Wc[gA++]=ce,Wc[gA++]=dr,dr=a,ce=s}i(W,"pushTreeFork");function ut(a,s,A){_a[Na++]=xi,_a[Na++]=Ts,_a[Na++]=Sl,Sl=a;var g=xi;a=Ts;var y=32-Fi(g)-1;g&=~(1<<y),A+=1;var I=32-Fi(s)+y;if(30<I){var _=y-y%5;I=(g&(1<<_)-1).toString(32),g>>=_,y-=_,xi=1<<32-Fi(s)+y|A<<y|g,Ts=I+a}else xi=1<<I|A<<y|g,Ts=a}i(ut,"pushTreeId");function pt(a){a.return!==null&&(W(a,1),ut(a,1,0))}i(pt,"pushMaterializedTreeId");function P(a){for(;a===dr;)dr=Wc[--gA],Wc[gA]=null,ce=Wc[--gA],Wc[gA]=null;for(;a===Sl;)Sl=_a[--Na],_a[Na]=null,Ts=_a[--Na],_a[Na]=null,xi=_a[--Na],_a[Na]=null}i(P,"popTreeContext");function be(a,s){_a[Na++]=xi,_a[Na++]=Ts,_a[Na++]=Sl,xi=s.id,Ts=s.overflow,Sl=a}i(be,"restoreSuspendedTreeContext");function Xe(a,s){M(ac,s),M(rf,a),M($r,null),a=VS(s),R($r),M($r,a)}i(Xe,"pushHostContainer");function oe(){R($r),R(rf),R(ac)}i(oe,"popHostContainer");function nt(a){a.memoizedState!==null&&M(cp,a);var s=$r.current,A=My(s,a.type);s!==A&&(M(rf,a),M($r,A))}i(nt,"pushHostContext");function mt(a){rf.current===a&&(R($r),R(rf)),cp.current===a&&(R(cp),Da?rc._currentValue=wi:rc._currentValue2=wi)}i(mt,"popHostContext");function ne(a){var s=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gt(Je(s,a)),rE}i(ne,"throwOnHydrationMismatch");function se(a,s){if(!Xr)throw Error(c(175));sA(a.stateNode,a.type,a.memoizedProps,s,a)||ne(a,!0)}i(se,"prepareToHydrateHostInstance");function Te(a){for(br=a.return;br;)switch(br.tag){case 5:case 31:case 13:Ma=!1;return;case 27:case 3:Ma=!0;return;default:br=br.return}}i(Te,"popToNextHostParent");function At(a){if(!Xr||a!==br)return!1;if(!hn)return Te(a),hn=!0,!1;var s=a.tag;if(Ar?s!==3&&s!==27&&(s!==5||pI(a.type)&&!jd(a.type,a.memoizedProps))&&ho&&ne(a):s!==3&&(s!==5||pI(a.type)&&!jd(a.type,a.memoizedProps))&&ho&&ne(a),Te(a),s===13){if(!Xr)throw Error(c(316));if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));ho=cI(a)}else if(s===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));ho=lI(a)}else ho=Ar&&s===27?oI(a.type,ho):br?Vh(a.stateNode):null;return!0}i(At,"popHydrationState");function Qt(){Xr&&(ho=br=null,hn=!1)}i(Qt,"resetHydrationState");function Lt(){var a=vl;return a!==null&&(Pi===null?Pi=a:Pi.push.apply(Pi,a),vl=null),a}i(Lt,"upgradeHydrationErrorsToRecoverable");function gt(a){vl===null?vl=[a]:vl.push(a)}i(gt,"queueHydrationError");function Be(a,s,A){Da?(M(_s,s._currentValue),s._currentValue=A):(M(_s,s._currentValue2),s._currentValue2=A)}i(Be,"pushProvider");function _e(a){var s=_s.current;Da?a._currentValue=s:a._currentValue2=s,R(_s)}i(_e,"popProvider");function at(a,s,A){for(;a!==null;){var g=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,g!==null&&(g.childLanes|=s)):g!==null&&(g.childLanes&s)!==s&&(g.childLanes|=s),a===A)break;a=a.return}}i(at,"scheduleContextWorkOnParentPath");function Mt(a,s,A,g){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var I=y.dependencies;if(I!==null){var _=y.child;I=I.firstContext;e:for(;I!==null;){var F=I;I=y;for(var pe=0;pe<s.length;pe++)if(F.context===s[pe]){I.lanes|=A,F=I.alternate,F!==null&&(F.lanes|=A),at(I.return,A,a),g||(_=null);break e}I=F.next}}else if(y.tag===18){if(_=y.return,_===null)throw Error(c(341));_.lanes|=A,I=_.alternate,I!==null&&(I.lanes|=A),at(_,A,a),_=null}else _=y.child;if(_!==null)_.return=y;else for(_=y;_!==null;){if(_===a){_=null;break}if(y=_.sibling,y!==null){y.return=_.return,_=y;break}_=_.return}y=_}}i(Mt,"propagateContextChanges");function Re(a,s,A,g){a=null;for(var y=s,I=!1;y!==null;){if(!I){if((y.flags&524288)!==0)I=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var _=y.alternate;if(_===null)throw Error(c(387));if(_=_.memoizedProps,_!==null){var F=y.type;Wr(y.pendingProps.value,_.value)||(a!==null?a.push(F):a=[F])}}else if(y===cp.current){if(_=y.alternate,_===null)throw Error(c(387));_.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(rc):a=[rc])}y=y.return}a!==null&&Mt(s,a,A,g),s.flags|=262144}i(Re,"propagateParentContextChanges");function xe(a){for(a=a.firstContext;a!==null;){var s=a.context;if(!Wr(Da?s._currentValue:s._currentValue2,a.memoizedValue))return!0;a=a.next}return!1}i(xe,"checkIfContextChanged");function he(a){Di=a,Eo=null,a=a.dependencies,a!==null&&(a.firstContext=null)}i(he,"prepareToReadContext");function Ze(a){return Hn(Di,a)}i(Ze,"readContext");function Gt(a,s){return Di===null&&he(a),Hn(a,s)}i(Gt,"readContextDuringReconciliation");function Hn(a,s){var A=Da?s._currentValue:s._currentValue2;if(s={context:s,memoizedValue:A,next:null},Eo===null){if(a===null)throw Error(c(308));Eo=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else Eo=Eo.next=s;return A}i(Hn,"readContextForConsumer");function Qn(){return{controller:new Ns,data:new Map,refCount:0}}i(Qn,"createCache");function Ro(a){a.refCount--,a.refCount===0&&di(lv,function(){a.controller.abort()})}i(Ro,"releaseCache");function qr(){}i(qr,"noop$1");function wo(a){a!==Yi&&a.next===null&&(Yi===null?er=Yi=a:Yi=Yi.next=a),pA=!0,iE||(iE=!0,uo())}i(wo,"ensureRootIsScheduled");function ir(a,s){if(!$c&&pA){$c=!0;do for(var A=!1,g=er;g!==null;){if(!s)if(a!==0){var y=g.pendingLanes;if(y===0)var I=0;else{var _=g.suspendedLanes,F=g.pingedLanes;I=(1<<31-Fi(42|a)+1)-1,I&=y&~(_&~F),I=I&201326741?I&201326741|1:I?I|2:0}I!==0&&(A=!0,en(g,I))}else I=bn,I=H(g,g===so?I:0,g.cancelPendingCommit!==null||g.timeoutHandle!==El),(I&3)===0||$(g,I)||(A=!0,en(g,I));g=g.next}while(A);$c=!1}}i(ir,"flushSyncWorkAcrossRoots_impl");function Pr(){ot()}i(Pr,"processRootScheduleInImmediateTask");function ot(){pA=iE=!1;var a=0;as!==0&&Yh()&&(a=as);for(var s=Vn(),A=null,g=er;g!==null;){var y=g.next,I=bt(g,s);I===0?(g.next=null,A===null?er=y:A.next=y,y===null&&(Yi=A)):(A=g,(a!==0||(I&3)!==0)&&(pA=!0)),g=y}$n!==0&&$n!==5||ir(a,!1),as!==0&&(as=0)}i(ot,"processRootScheduleInMicrotask");function bt(a,s){for(var A=a.suspendedLanes,g=a.pingedLanes,y=a.expirationTimes,I=a.pendingLanes&-62914561;0<I;){var _=31-Fi(I),F=1<<_,pe=y[_];pe===-1?((F&A)===0||(F&g)!==0)&&(y[_]=Qe(F,s)):pe<=s&&(a.expiredLanes|=F),I&=~F}if(s=so,A=bn,A=H(a,a===s?A:0,a.cancelPendingCommit!==null||a.timeoutHandle!==El),g=a.callbackNode,A===0||a===s&&(Wn===2||Wn===9)||a.cancelPendingCommit!==null)return g!==null&&g!==null&&fn(g),a.callbackNode=null,a.callbackPriority=0;if((A&3)===0||$(a,A)){if(s=A&-A,s===a.callbackPriority)return s;switch(g!==null&&fn(g),re(A)){case 2:case 8:A=Il;break;case 32:A=Bl;break;case 268435456:A=dA;break;default:A=Bl}return g=Et.bind(null,a),A=ap(A,g),a.callbackPriority=s,a.callbackNode=A,s}return g!==null&&g!==null&&fn(g),a.callbackPriority=2,a.callbackNode=null,2}i(bt,"scheduleTaskForRootDuringMicrotask");function Et(a,s){if($n!==0&&$n!==5)return a.callbackNode=null,a.callbackPriority=0,null;var A=a.callbackNode;if(Wo()&&a.callbackNode!==A)return null;var g=bn;return g=H(a,a===so?g:0,a.cancelPendingCommit!==null||a.timeoutHandle!==El),g===0?null:(Qh(a,g,s),bt(a,Vn()),a.callbackNode!=null&&a.callbackNode===A?Et.bind(null,a):null)}i(Et,"performWorkOnRootViaSchedulerTask");function en(a,s){if(Wo())return null;Qh(a,s,!0)}i(en,"performSyncWorkOnRoot");function uo(){zy?xs(function(){(yn&6)!==0?ap(BI,Pr):ot()}):ap(BI,Pr)}i(uo,"scheduleImmediateRootScheduleTask");function ar(){if(as===0){var a=mA;a===0&&(a=tf,tf<<=1,(tf&261888)===0&&(tf=256)),as=a}return as}i(ar,"requestTransitionLane");function Ia(a,s){if(af===null){var A=af=[];aE=0,mA=ar(),hA={status:"pending",value:void 0,then:i(function(g){A.push(g)},"then")}}return aE++,s.then(Tn,Tn),s}i(Ia,"entangleAsyncAction");function Tn(){if(--aE===0&&af!==null){hA!==null&&(hA.status="fulfilled");var a=af;af=null,mA=0,hA=null;for(var s=0;s<a.length;s++)(0,a[s])()}}i(Tn,"pingEngtangledActionScope");function w(a,s){var A=[],g={status:"pending",value:null,reason:null,then:i(function(y){A.push(y)},"then")};return a.then(function(){g.status="fulfilled",g.value=s;for(var y=0;y<A.length;y++)(0,A[y])(s)},function(y){for(g.status="rejected",g.reason=y,y=0;y<A.length;y++)(0,A[y])(void 0)}),g}i(w,"chainThenableValue");function j(){var a=sc.current;return a!==null?a:so.pooledCache}i(j,"peekCacheFromPool");function ze(a,s){s===null?M(sc,sc.current):M(sc,s.pool)}i(ze,"pushTransition");function ke(){var a=j();return a===null?null:{parent:Da?Do._currentValue:Do._currentValue2,pool:a}}i(ke,"getSuspendedCache");function it(a,s){if(Wr(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var A=Object.keys(a),g=Object.keys(s);if(A.length!==g.length)return!1;for(g=0;g<A.length;g++){var y=A[g];if(!oE.call(s,y)||!Wr(a[y],s[y]))return!1}return!0}i(it,"shallowEqual");function An(a){return a=a.status,a==="fulfilled"||a==="rejected"}i(An,"isThenableResolved");function ft(a,s,A){switch(A=a[A],A===void 0?a.push(s):A!==s&&(s.then(qr,qr),s=A),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,sr(a),a;default:if(typeof s.status=="string")s.then(qr,qr);else{if(a=so,a!==null&&100<a.shellSuspendCounter)throw Error(c(482));a=s,a.status="pending",a.then(function(g){if(s.status==="pending"){var y=s;y.status="fulfilled",y.value=g}},function(g){if(s.status==="pending"){var y=s;y.status="rejected",y.reason=g}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,sr(a),a}throw Oa=s,EA}}i(ft,"trackUsedThenable");function wt(a){try{var s=a._init;return s(a._payload)}catch(A){throw A!==null&&typeof A=="object"&&typeof A.then=="function"?(Oa=A,EA):A}}i(wt,"resolveLazy");function sn(){if(Oa===null)throw Error(c(459));var a=Oa;return Oa=null,a}i(sn,"getSuspendedThenable");function sr(a){if(a===EA||a===dp)throw Error(c(483))}i(sr,"checkIfUseWrappedInAsyncCatch");function po(a){var s=sf;return sf+=1,Ha===null&&(Ha=[]),ft(Ha,a,s)}i(po,"unwrapThenable");function jo(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}i(jo,"coerceRef");function Ir(a,s){throw s.$$typeof===Kg?Error(c(525)):(a=Object.prototype.toString.call(s),Error(c(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}i(Ir,"throwOnInvalidObjectTypeImpl");function Dt(a){function s(ae,Z){if(a){var de=ae.deletions;de===null?(ae.deletions=[Z],ae.flags|=16):de.push(Z)}}i(s,"deleteChild");function A(ae,Z){if(!a)return null;for(;Z!==null;)s(ae,Z),Z=Z.sibling;return null}i(A,"deleteRemainingChildren");function g(ae){for(var Z=new Map;ae!==null;)ae.key!==null?Z.set(ae.key,ae):Z.set(ae.index,ae),ae=ae.sibling;return Z}i(g,"mapRemainingChildren");function y(ae,Z){return ae=Qs(ae,Z),ae.index=0,ae.sibling=null,ae}i(y,"useFiber");function I(ae,Z,de){return ae.index=de,a?(de=ae.alternate,de!==null?(de=de.index,de<Z?(ae.flags|=67108866,Z):de):(ae.flags|=67108866,Z)):(ae.flags|=1048576,Z)}i(I,"placeChild");function _(ae){return a&&ae.alternate===null&&(ae.flags|=67108866),ae}i(_,"placeSingleChild");function F(ae,Z,de,Ve){return Z===null||Z.tag!==6?(Z=zd(de,ae.mode,Ve),Z.return=ae,Z):(Z=y(Z,de),Z.return=ae,Z)}i(F,"updateTextNode");function pe(ae,Z,de,Ve){var kt=de.type;return kt===zc?rt(ae,Z,de.props.children,Ve,de.key):Z!==null&&(Z.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===nc&&wt(kt)===Z.type)?(Z=y(Z,de.props),jo(Z,de),Z.return=ae,Z):(Z=Fd(de.type,de.key,de.props,null,ae.mode,Ve),jo(Z,de),Z.return=ae,Z)}i(pe,"updateElement");function Fe(ae,Z,de,Ve){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==de.containerInfo||Z.stateNode.implementation!==de.implementation?(Z=Gg(de,ae.mode,Ve),Z.return=ae,Z):(Z=y(Z,de.children||[]),Z.return=ae,Z)}i(Fe,"updatePortal");function rt(ae,Z,de,Ve,kt){return Z===null||Z.tag!==7?(Z=ml(de,ae.mode,Ve,kt),Z.return=ae,Z):(Z=y(Z,de),Z.return=ae,Z)}i(rt,"updateFragment");function $e(ae,Z,de){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=zd(""+Z,ae.mode,de),Z.return=ae,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case Yd:return de=Fd(Z.type,Z.key,Z.props,null,ae.mode,de),jo(de,Z),de.return=ae,de;case tc:return Z=Gg(Z,ae.mode,de),Z.return=ae,Z;case nc:return Z=wt(Z),$e(ae,Z,de)}if(oc(Z)||v(Z))return Z=ml(Z,ae.mode,de,null),Z.return=ae,Z;if(typeof Z.then=="function")return $e(ae,po(Z),de);if(Z.$$typeof===hl)return $e(ae,Gt(ae,Z),de);Ir(ae,Z)}return null}i($e,"createChild");function Ct(ae,Z,de,Ve){var kt=Z!==null?Z.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return kt!==null?null:F(ae,Z,""+de,Ve);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case Yd:return de.key===kt?pe(ae,Z,de,Ve):null;case tc:return de.key===kt?Fe(ae,Z,de,Ve):null;case nc:return de=wt(de),Ct(ae,Z,de,Ve)}if(oc(de)||v(de))return kt!==null?null:rt(ae,Z,de,Ve,null);if(typeof de.then=="function")return Ct(ae,Z,po(de),Ve);if(de.$$typeof===hl)return Ct(ae,Z,Gt(ae,de),Ve);Ir(ae,de)}return null}i(Ct,"updateSlot");function zt(ae,Z,de,Ve,kt){if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint")return ae=ae.get(de)||null,F(Z,ae,""+Ve,kt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case Yd:return ae=ae.get(Ve.key===null?de:Ve.key)||null,pe(Z,ae,Ve,kt);case tc:return ae=ae.get(Ve.key===null?de:Ve.key)||null,Fe(Z,ae,Ve,kt);case nc:return Ve=wt(Ve),zt(ae,Z,de,Ve,kt)}if(oc(Ve)||v(Ve))return ae=ae.get(de)||null,rt(Z,ae,Ve,kt,null);if(typeof Ve.then=="function")return zt(ae,Z,de,po(Ve),kt);if(Ve.$$typeof===hl)return zt(ae,Z,de,Gt(Z,Ve),kt);Ir(Z,Ve)}return null}i(zt,"updateFromMap");function Co(ae,Z,de,Ve){for(var kt=null,To=null,Pt=Z,Kn=Z=0,Rn=null;Pt!==null&&Kn<de.length;Kn++){Pt.index>Kn?(Rn=Pt,Pt=null):Rn=Pt.sibling;var On=Ct(ae,Pt,de[Kn],Ve);if(On===null){Pt===null&&(Pt=Rn);break}a&&Pt&&On.alternate===null&&s(ae,Pt),Z=I(On,Z,Kn),To===null?kt=On:To.sibling=On,To=On,Pt=Rn}if(Kn===de.length)return A(ae,Pt),hn&&W(ae,Kn),kt;if(Pt===null){for(;Kn<de.length;Kn++)Pt=$e(ae,de[Kn],Ve),Pt!==null&&(Z=I(Pt,Z,Kn),To===null?kt=Pt:To.sibling=Pt,To=Pt);return hn&&W(ae,Kn),kt}for(Pt=g(Pt);Kn<de.length;Kn++)Rn=zt(Pt,ae,Kn,de[Kn],Ve),Rn!==null&&(a&&Rn.alternate!==null&&Pt.delete(Rn.key===null?Kn:Rn.key),Z=I(Rn,Z,Kn),To===null?kt=Rn:To.sibling=Rn,To=Rn);return a&&Pt.forEach(function(wl){return s(ae,wl)}),hn&&W(ae,Kn),kt}i(Co,"reconcileChildrenArray");function Rr(ae,Z,de,Ve){if(de==null)throw Error(c(151));for(var kt=null,To=null,Pt=Z,Kn=Z=0,Rn=null,On=de.next();Pt!==null&&!On.done;Kn++,On=de.next()){Pt.index>Kn?(Rn=Pt,Pt=null):Rn=Pt.sibling;var wl=Ct(ae,Pt,On.value,Ve);if(wl===null){Pt===null&&(Pt=Rn);break}a&&Pt&&wl.alternate===null&&s(ae,Pt),Z=I(wl,Z,Kn),To===null?kt=wl:To.sibling=wl,To=wl,Pt=Rn}if(On.done)return A(ae,Pt),hn&&W(ae,Kn),kt;if(Pt===null){for(;!On.done;Kn++,On=de.next())On=$e(ae,On.value,Ve),On!==null&&(Z=I(On,Z,Kn),To===null?kt=On:To.sibling=On,To=On);return hn&&W(ae,Kn),kt}for(Pt=g(Pt);!On.done;Kn++,On=de.next())On=zt(Pt,ae,Kn,On.value,Ve),On!==null&&(a&&On.alternate!==null&&Pt.delete(On.key===null?Kn:On.key),Z=I(On,Z,Kn),To===null?kt=On:To.sibling=On,To=On);return a&&Pt.forEach(function(ff){return s(ae,ff)}),hn&&W(ae,Kn),kt}i(Rr,"reconcileChildrenIterator");function ru(ae,Z,de,Ve){if(typeof de=="object"&&de!==null&&de.type===zc&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case Yd:e:{for(var kt=de.key;Z!==null;){if(Z.key===kt){if(kt=de.type,kt===zc){if(Z.tag===7){A(ae,Z.sibling),Ve=y(Z,de.props.children),Ve.return=ae,ae=Ve;break e}}else if(Z.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===nc&&wt(kt)===Z.type){A(ae,Z.sibling),Ve=y(Z,de.props),jo(Ve,de),Ve.return=ae,ae=Ve;break e}A(ae,Z);break}else s(ae,Z);Z=Z.sibling}de.type===zc?(Ve=ml(de.props.children,ae.mode,Ve,de.key),Ve.return=ae,ae=Ve):(Ve=Fd(de.type,de.key,de.props,null,ae.mode,Ve),jo(Ve,de),Ve.return=ae,ae=Ve)}return _(ae);case tc:e:{for(kt=de.key;Z!==null;){if(Z.key===kt)if(Z.tag===4&&Z.stateNode.containerInfo===de.containerInfo&&Z.stateNode.implementation===de.implementation){A(ae,Z.sibling),Ve=y(Z,de.children||[]),Ve.return=ae,ae=Ve;break e}else{A(ae,Z);break}else s(ae,Z);Z=Z.sibling}Ve=Gg(de,ae.mode,Ve),Ve.return=ae,ae=Ve}return _(ae);case nc:return de=wt(de),ru(ae,Z,de,Ve)}if(oc(de))return Co(ae,Z,de,Ve);if(v(de)){if(kt=v(de),typeof kt!="function")throw Error(c(150));return de=kt.call(de),Rr(ae,Z,de,Ve)}if(typeof de.then=="function")return ru(ae,Z,po(de),Ve);if(de.$$typeof===hl)return ru(ae,Z,Gt(ae,de),Ve);Ir(ae,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,Z!==null&&Z.tag===6?(A(ae,Z.sibling),Ve=y(Z,de),Ve.return=ae,ae=Ve):(A(ae,Z),Ve=zd(de,ae.mode,Ve),Ve.return=ae,ae=Ve),_(ae)):A(ae,Z)}return i(ru,"reconcileChildFibersImpl"),function(ae,Z,de,Ve){try{sf=0;var kt=ru(ae,Z,de,Ve);return Ha=null,kt}catch(Pt){if(Pt===EA||Pt===dp)throw Pt;var To=o(29,Pt,null,ae.mode);return To.lanes=Ve,To.return=ae,To}}}i(Dt,"createChildReconciler");function Nn(){for(var a=ss,s=sE=ss=0;s<a;){var A=ka[s];ka[s++]=null;var g=ka[s];ka[s++]=null;var y=ka[s];ka[s++]=null;var I=ka[s];if(ka[s++]=null,g!==null&&y!==null){var _=g.pending;_===null?y.next=y:(y.next=_.next,_.next=y),g.pending=y}I!==0&&ta(A,y,I)}}i(Nn,"finishQueueingConcurrentUpdates");function Yt(a,s,A,g){ka[ss++]=a,ka[ss++]=s,ka[ss++]=A,ka[ss++]=g,sE|=g,a.lanes|=g,a=a.alternate,a!==null&&(a.lanes|=g)}i(Yt,"enqueueUpdate$1");function Tr(a,s,A,g){return Yt(a,s,A,g),na(a)}i(Tr,"enqueueConcurrentHookUpdate");function ri(a,s){return Yt(a,null,null,s),na(a)}i(ri,"enqueueConcurrentRenderForLane");function ta(a,s,A){a.lanes|=A;var g=a.alternate;g!==null&&(g.lanes|=A);for(var y=!1,I=a.return;I!==null;)I.childLanes|=A,g=I.alternate,g!==null&&(g.childLanes|=A),I.tag===22&&(a=I.stateNode,a===null||a._visibility&1||(y=!0)),a=I,I=I.return;return a.tag===3?(I=a.stateNode,y&&s!==null&&(y=31-Fi(A),a=I.hiddenUpdates,g=a[y],g===null?a[y]=[s]:g.push(s),s.lane=A|536870912),I):null}i(ta,"markUpdateLaneFromFiberToRoot");function na(a){if(50<vA)throw vA=0,Dp=null,Error(c(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}i(na,"getRootForUpdatedFiber");function Ba(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}i(Ba,"initializeUpdateQueue");function Sa(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}i(Sa,"cloneUpdateQueue");function Jr(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}i(Jr,"createUpdate");function ii(a,s,A){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,(yn&2)!==0){var y=g.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),g.pending=s,s=na(a),ta(a,null,A),s}return Yt(a,g,s,A),na(a)}i(ii,"enqueueUpdate");function Es(a,s,A){if(s=s.updateQueue,s!==null&&(s=s.shared,(A&4194048)!==0)){var g=s.lanes;g&=a.pendingLanes,A|=g,s.lanes=A,le(a,A)}}i(Es,"entangleTransitions");function Mc(a,s){var A=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,A===g)){var y=null,I=null;if(A=A.firstBaseUpdate,A!==null){do{var _={lane:A.lane,tag:A.tag,payload:A.payload,callback:null,next:null};I===null?y=I=_:I=I.next=_,A=A.next}while(A!==null);I===null?y=I=s:I=I.next=s}else y=I=s;A={baseState:g.baseState,firstBaseUpdate:y,lastBaseUpdate:I,shared:g.shared,callbacks:g.callbacks},a.updateQueue=A;return}a=A.lastBaseUpdate,a===null?A.firstBaseUpdate=s:a.next=s,A.lastBaseUpdate=s}i(Mc,"enqueueCapturedUpdate");function Ja(){if(lE){var a=hA;if(a!==null)throw a}}i(Ja,"suspendIfUpdateReadFromEntangledAsyncAction");function ja(a,s,A,g){lE=!1;var y=a.updateQueue;lc=!1;var I=y.firstBaseUpdate,_=y.lastBaseUpdate,F=y.shared.pending;if(F!==null){y.shared.pending=null;var pe=F,Fe=pe.next;pe.next=null,_===null?I=Fe:_.next=Fe,_=pe;var rt=a.alternate;rt!==null&&(rt=rt.updateQueue,F=rt.lastBaseUpdate,F!==_&&(F===null?rt.firstBaseUpdate=Fe:F.next=Fe,rt.lastBaseUpdate=pe))}if(I!==null){var $e=y.baseState;_=0,rt=Fe=pe=null,F=I;do{var Ct=F.lane&-536870913,zt=Ct!==F.lane;if(zt?(bn&Ct)===Ct:(g&Ct)===Ct){Ct!==0&&Ct===mA&&(lE=!0),rt!==null&&(rt=rt.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Co=a,Rr=F;Ct=s;var ru=A;switch(Rr.tag){case 1:if(Co=Rr.payload,typeof Co=="function"){$e=Co.call(ru,$e,Ct);break e}$e=Co;break e;case 3:Co.flags=Co.flags&-65537|128;case 0:if(Co=Rr.payload,Ct=typeof Co=="function"?Co.call(ru,$e,Ct):Co,Ct==null)break e;$e=la({},$e,Ct);break e;case 2:lc=!0}}Ct=F.callback,Ct!==null&&(a.flags|=64,zt&&(a.flags|=8192),zt=y.callbacks,zt===null?y.callbacks=[Ct]:zt.push(Ct))}else zt={lane:Ct,tag:F.tag,payload:F.payload,callback:F.callback,next:null},rt===null?(Fe=rt=zt,pe=$e):rt=rt.next=zt,_|=Ct;if(F=F.next,F===null){if(F=y.shared.pending,F===null)break;zt=F,F=zt.next,zt.next=null,y.lastBaseUpdate=zt,y.shared.pending=null}}while(!0);rt===null&&(pe=$e),y.baseState=pe,y.firstBaseUpdate=Fe,y.lastBaseUpdate=rt,I===null&&(y.shared.lanes=0),Ac|=_,a.lanes=_,a.memoizedState=$e}}i(ja,"processUpdateQueue");function Oc(a,s){if(typeof a!="function")throw Error(c(191,a));a.call(s)}i(Oc,"callCallback");function Va(a,s){var A=a.callbacks;if(A!==null)for(a.callbacks=null,a=0;a<A.length;a++)Oc(A[a],s)}i(Va,"commitCallbacks");function He(a,s){a=bl,M(gp,a),M(Ms,s),bl=a|s.baseLanes}i(He,"pushHiddenContext");function Jn(){M(gp,bl),M(Ms,Ms.current)}i(Jn,"reuseHiddenContextOnStack");function ao(){bl=gp.current,R(Ms),R(gp)}i(ao,"popHiddenContext");function Bi(a){var s=a.alternate;M(tr,tr.current&1),M(ua,a),Ua===null&&(s===null||Ms.current!==null||s.memoizedState!==null)&&(Ua=a)}i(Bi,"pushPrimaryTreeSuspenseHandler");function oa(a){M(tr,tr.current),M(ua,a),Ua===null&&(Ua=a)}i(oa,"pushDehydratedActivitySuspenseHandler");function Ni(a){a.tag===22?(M(tr,tr.current),M(ua,a),Ua===null&&(Ua=a)):Mi(a)}i(Ni,"pushOffscreenSuspenseHandler");function Mi(){M(tr,tr.current),M(ua,ua.current)}i(Mi,"reuseSuspenseHandlerOnStack");function xo(a){R(ua),Ua===a&&(Ua=null),R(tr)}i(xo,"popSuspenseHandler");function Oi(a){for(var s=a;s!==null;){if(s.tag===13){var A=s.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||Wd(A)||$d(A)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}i(Oi,"findFirstSuspended");function to(){throw Error(c(321))}i(to,"throwInvalidHookError");function Br(a,s){if(s===null)return!1;for(var A=0;A<s.length&&A<a.length;A++)if(!Wr(a[A],s[A]))return!1;return!0}i(Br,"areHookInputsEqual");function va(a,s,A,g,y,I){return Ql=I,rn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,_t.H=a===null||a.memoizedState===null?QI:cE,tu=!1,I=A(g,y),tu=!1,CA&&(I=Si(s,A,g,y)),Sr(a),I}i(va,"renderWithHooks");function Sr(a){_t.H=lf;var s=oo!==null&&oo.next!==null;if(Ql=0,fr=oo=rn=null,pp=!1,yA=0,IA=null,s)throw Error(c(300));a===null||gr||(a=a.dependencies,a!==null&&xe(a)&&(gr=!0))}i(Sr,"finishRenderingHooks");function Si(a,s,A,g){rn=a;var y=0;do{if(CA&&(IA=null),yA=0,CA=!1,25<=y)throw Error(c(301));if(y+=1,fr=oo=null,a.updateQueue!=null){var I=a.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}_t.H=bI,I=s(A,g)}while(CA);return I}i(Si,"renderWithHooksAgain");function Xa(){var a=_t.H,s=a.useState()[0];return s=typeof s.then=="function"?Oe(s):s,a=a.useState()[0],(oo!==null?oo.memoizedState:null)!==a&&(rn.flags|=1024),s}i(Xa,"TransitionAwareHostComponent");function x(){var a=mp!==0;return mp=0,a}i(x,"checkDidRenderIdHook");function T(a,s,A){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~A}i(T,"bailoutHooks");function G(a){if(pp){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}pp=!1}Ql=0,fr=oo=rn=null,CA=!1,yA=mp=0,IA=null}i(G,"resetHooksOnUnwind");function Y(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fr===null?rn.memoizedState=fr=a:fr=fr.next=a,fr}i(Y,"mountWorkInProgressHook");function V(){if(oo===null){var a=rn.alternate;a=a!==null?a.memoizedState:null}else a=oo.next;var s=fr===null?rn.memoizedState:fr.next;if(s!==null)fr=s,oo=a;else{if(a===null)throw rn.alternate===null?Error(c(467)):Error(c(310));oo=a,a={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},fr===null?rn.memoizedState=fr=a:fr=fr.next=a}return fr}i(V,"updateWorkInProgressHook");function ye(){return{lastEffect:null,events:null,stores:null,memoCache:null}}i(ye,"createFunctionComponentUpdateQueue");function Oe(a){var s=yA;return yA+=1,IA===null&&(IA=[]),a=ft(IA,a,s),s=rn,(fr===null?s.memoizedState:fr.next)===null&&(s=s.alternate,_t.H=s===null||s.memoizedState===null?QI:cE),a}i(Oe,"useThenable");function ve(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Oe(a);if(a.$$typeof===hl)return Ze(a)}throw Error(c(438,String(a)))}i(ve,"use");function We(a){var s=null,A=rn.updateQueue;if(A!==null&&(s=A.memoCache),s==null){var g=rn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(s={data:g.data.map(function(y){return y.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),A===null&&(A=ye(),rn.updateQueue=A),A.memoCache=s,A=s.data[s.index],A===void 0)for(A=s.data[s.index]=Array(a),g=0;g<a;g++)A[g]=bs;return s.index++,A}i(We,"useMemoCache");function qe(a,s){return typeof s=="function"?s(a):s}i(qe,"basicStateReducer");function lt(a){var s=V();return xt(s,oo,a)}i(lt,"updateReducer");function xt(a,s,A){var g=a.queue;if(g===null)throw Error(c(311));g.lastRenderedReducer=A;var y=a.baseQueue,I=g.pending;if(I!==null){if(y!==null){var _=y.next;y.next=I.next,I.next=_}s.baseQueue=y=I,g.pending=null}if(I=a.baseState,y===null)a.memoizedState=I;else{s=y.next;var F=_=null,pe=null,Fe=s,rt=!1;do{var $e=Fe.lane&-536870913;if($e!==Fe.lane?(bn&$e)===$e:(Ql&$e)===$e){var Ct=Fe.revertLane;if(Ct===0)pe!==null&&(pe=pe.next={lane:0,revertLane:0,gesture:null,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null}),$e===mA&&(rt=!0);else if((Ql&Ct)===Ct){Fe=Fe.next,Ct===mA&&(rt=!0);continue}else $e={lane:0,revertLane:Fe.revertLane,gesture:null,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null},pe===null?(F=pe=$e,_=I):pe=pe.next=$e,rn.lanes|=Ct,Ac|=Ct;$e=Fe.action,tu&&A(I,$e),I=Fe.hasEagerState?Fe.eagerState:A(I,$e)}else Ct={lane:$e,revertLane:Fe.revertLane,gesture:Fe.gesture,action:Fe.action,hasEagerState:Fe.hasEagerState,eagerState:Fe.eagerState,next:null},pe===null?(F=pe=Ct,_=I):pe=pe.next=Ct,rn.lanes|=$e,Ac|=$e;Fe=Fe.next}while(Fe!==null&&Fe!==s);if(pe===null?_=I:pe.next=F,!Wr(I,a.memoizedState)&&(gr=!0,rt&&(A=hA,A!==null)))throw A;a.memoizedState=I,a.baseState=_,a.baseQueue=pe,g.lastRenderedState=I}return y===null&&(g.lanes=0),[a.memoizedState,g.dispatch]}i(xt,"updateReducerImpl");function nn(a){var s=V(),A=s.queue;if(A===null)throw Error(c(311));A.lastRenderedReducer=a;var g=A.dispatch,y=A.pending,I=s.memoizedState;if(y!==null){A.pending=null;var _=y=y.next;do I=a(I,_.action),_=_.next;while(_!==y);Wr(I,s.memoizedState)||(gr=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),A.lastRenderedState=I}return[I,g]}i(nn,"rerenderReducer");function _n(a,s,A){var g=rn,y=V(),I=hn;if(I){if(A===void 0)throw Error(c(407));A=A()}else A=s();var _=!Wr((oo||y).memoizedState,A);if(_&&(y.memoizedState=A,gr=!0),y=y.queue,Pu(lr.bind(null,g,y,a),[a]),y.getSnapshot!==s||_||fr!==null&&fr.memoizedState.tag&1){if(g.flags|=2048,vr(9,{destroy:void 0},no.bind(null,g,y,A,s),null),so===null)throw Error(c(349));I||(Ql&127)!==0||Mn(g,s,A)}return A}i(_n,"updateSyncExternalStore");function Mn(a,s,A){a.flags|=16384,a={getSnapshot:s,value:A},s=rn.updateQueue,s===null?(s=ye(),rn.updateQueue=s,s.stores=[a]):(A=s.stores,A===null?s.stores=[a]:A.push(a))}i(Mn,"pushStoreConsistencyCheck");function no(a,s,A,g){s.value=A,s.getSnapshot=g,Hi(s)&&Mo(a)}i(no,"updateStoreInstance");function lr(a,s,A){return A(function(){Hi(s)&&Mo(a)})}i(lr,"subscribeToStore");function Hi(a){var s=a.getSnapshot;a=a.value;try{var A=s();return!Wr(a,A)}catch{return!0}}i(Hi,"checkIfSnapshotChanged");function Mo(a){var s=ri(a,2);s!==null&&bi(s,a,2)}i(Mo,"forceStoreRerender");function Vo(a){var s=Y();if(typeof a=="function"){var A=a;if(a=A(),tu){ee(!0);try{A()}finally{ee(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qe,lastRenderedState:a},s}i(Vo,"mountStateImpl");function cr(a,s,A,g){return a.baseState=A,xt(a,oo,typeof g=="function"?g:qe)}i(cr,"updateOptimisticImpl");function ra(a,s,A,g,y){if(jl(a))throw Error(c(485));if(a=s.action,a!==null){var I={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:i(function(_){I.listeners.push(_)},"then")};_t.T!==null?A(!0):I.isTransition=!1,g(I),A=s.pending,A===null?(I.next=s.pending=I,ki(s,I)):(I.next=A.next,s.pending=A.next=I)}}i(ra,"dispatchActionState");function ki(a,s){var A=s.action,g=s.payload,y=a.state;if(s.isTransition){var I=_t.T,_={};_t.T=_;try{var F=A(y,g),pe=_t.S;pe!==null&&pe(_,F),kn(a,s,F)}catch(Fe){zl(a,s,Fe)}finally{I!==null&&_.types!==null&&(I.types=_.types),_t.T=I}}else try{I=A(y,g),kn(a,s,I)}catch(Fe){zl(a,s,Fe)}}i(ki,"runActionStateAction");function kn(a,s,A){A!==null&&typeof A=="object"&&typeof A.then=="function"?A.then(function(g){ia(a,s,g)},function(g){return zl(a,s,g)}):ia(a,s,A)}i(kn,"handleActionReturnValue");function ia(a,s,A){s.status="fulfilled",s.value=A,Yu(s),a.state=A,s=a.pending,s!==null&&(A=s.next,A===s?a.pending=null:(A=A.next,s.next=A,ki(a,A)))}i(ia,"onActionSuccess");function zl(a,s,A){var g=a.pending;if(a.pending=null,g!==null){g=g.next;do s.status="rejected",s.reason=A,Yu(s),s=s.next;while(s!==g)}a.action=null}i(zl,"onActionError");function Yu(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}i(Yu,"notifyActionListeners");function Ed(a,s){return s}i(Ed,"actionStateReducer");function aa(a,s){if(hn){var A=so.formState;if(A!==null){e:{var g=rn;if(hn){if(ho){var y=tI(ho,Ma);if(y){ho=Vh(y),g=nI(y);break e}}ne(g)}g=!1}g&&(s=A[0])}}A=Y(),A.memoizedState=A.baseState=s,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ed,lastRenderedState:s},A.queue=g,A=lg.bind(null,rn,g),g.dispatch=A,g=Vo(!1);var I=Ju.bind(null,rn,!1,g.queue);return g=Y(),y={state:s,dispatch:null,action:a,pending:null},g.queue=y,A=ra.bind(null,rn,y,I,A),y.dispatch=A,g.memoizedState=a,[s,A,!1]}i(aa,"mountActionState");function qu(a){var s=V();return vi(s,oo,a)}i(qu,"updateActionState");function vi(a,s,A){if(s=xt(a,s,Ed)[0],a=lt(qe)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var g=Oe(s)}catch(_){throw _===EA?dp:_}else g=s;s=V();var y=s.queue,I=y.dispatch;return A!==s.memoizedState&&(rn.flags|=2048,vr(9,{destroy:void 0},Cs.bind(null,y,A),null)),[g,I,a]}i(vi,"updateActionStateImpl");function Cs(a,s){a.action=s}i(Cs,"actionStateActionEffect");function Kl(a){var s=V(),A=oo;if(A!==null)return vi(s,A,a);V(),s=s.memoizedState,A=V();var g=A.queue.dispatch;return A.memoizedState=a,[s,g,!1]}i(Kl,"rerenderActionState");function vr(a,s,A,g){return a={tag:a,create:A,deps:g,inst:s,next:null},s=rn.updateQueue,s===null&&(s=ye(),rn.updateQueue=s),A=s.lastEffect,A===null?s.lastEffect=a.next=a:(g=A.next,A.next=a,a.next=g,s.lastEffect=a),a}i(vr,"pushSimpleEffect");function Za(){return V().memoizedState}i(Za,"updateRef");function Yl(a,s,A,g){var y=Y();rn.flags|=a,y.memoizedState=vr(1|s,{destroy:void 0},A,g===void 0?null:g)}i(Yl,"mountEffectImpl");function ql(a,s,A,g){var y=V();g=g===void 0?null:g;var I=y.memoizedState.inst;oo!==null&&g!==null&&Br(g,oo.memoizedState.deps)?y.memoizedState=vr(s,I,A,g):(rn.flags|=a,y.memoizedState=vr(1|s,I,A,g))}i(ql,"updateEffectImpl");function Cd(a,s){Yl(8390656,8,a,s)}i(Cd,"mountEffect");function Pu(a,s){ql(2048,8,a,s)}i(Pu,"updateEffect");function sg(a){rn.flags|=4;var s=rn.updateQueue;if(s===null)s=ye(),rn.updateQueue=s,s.events=[a];else{var A=s.events;A===null?s.events=[a]:A.push(a)}}i(sg,"useEffectEventImpl");function J(a){var s=V().memoizedState;return sg({ref:s,nextImpl:a}),function(){if((yn&2)!==0)throw Error(c(440));return s.impl.apply(void 0,arguments)}}i(J,"updateEvent");function Ne(a,s){return ql(4,2,a,s)}i(Ne,"updateInsertionEffect");function je(a,s){return ql(4,4,a,s)}i(je,"updateLayoutEffect");function Ke(a,s){if(typeof s=="function"){a=a();var A=s(a);return function(){typeof A=="function"?A():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}i(Ke,"imperativeHandleEffect");function St(a,s,A){A=A!=null?A.concat([a]):null,ql(4,4,Ke.bind(null,s,a),A)}i(St,"updateImperativeHandle");function dt(){}i(dt,"mountDebugValue");function mn(a,s){var A=V();s=s===void 0?null:s;var g=A.memoizedState;return s!==null&&Br(s,g[1])?g[0]:(A.memoizedState=[a,s],a)}i(mn,"updateCallback");function Xo(a,s){var A=V();s=s===void 0?null:s;var g=A.memoizedState;if(s!==null&&Br(s,g[1]))return g[0];if(g=a(),tu){ee(!0);try{a()}finally{ee(!1)}}return A.memoizedState=[g,s],g}i(Xo,"updateMemo");function Pl(a,s,A){return A===void 0||(Ql&1073741824)!==0&&(bn&261930)===0?a.memoizedState=s:(a.memoizedState=A,a=Hd(),rn.lanes|=a,Ac|=a,A)}i(Pl,"mountDeferredValueImpl");function Ao(a,s,A,g){return Wr(A,s)?A:Ms.current!==null?(a=Pl(a,A,g),Wr(a,s)||(gr=!0),a):(Ql&42)===0||(Ql&1073741824)!==0&&(bn&261930)===0?(gr=!0,a.memoizedState=A):(a=Hd(),rn.lanes|=a,Ac|=a,s)}i(Ao,"updateDeferredValueImpl");function ai(a,s,A,g,y){var I=ws();Qr(I!==0&&8>I?I:8);var _=_t.T,F={};_t.T=F,Ju(a,!1,s,A);try{var pe=y(),Fe=_t.S;if(Fe!==null&&Fe(F,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var rt=w(pe,g);Jl(a,s,rt,Gi(a))}else Jl(a,s,g,Gi(a))}catch($e){Jl(a,s,{then:i(function(){},"then"),status:"rejected",reason:$e},Gi())}finally{Qr(I),_!==null&&F.types!==null&&(_.types=F.types),_t.T=_}}i(ai,"startTransition");function Ft(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:wi,baseState:wi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qe,lastRenderedState:wi},next:null};var A={};return s.next={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qe,lastRenderedState:A},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}i(Ft,"ensureFormComponentIsStateful");function ur(){return Ze(rc)}i(ur,"useHostTransitionStatus");function _r(){return V().memoizedState}i(_r,"updateId");function Qa(){return V().memoizedState}i(Qa,"updateRefresh");function Hc(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var A=Gi();a=Jr(A);var g=ii(s,a,A);g!==null&&(bi(g,s,A),Es(g,s,A)),s={cache:Qn()},a.payload=s;return}s=s.return}}i(Hc,"refreshCache");function jr(a,s,A){var g=Gi();A={lane:g,revertLane:0,gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null},jl(a)?Ah(s,A):(A=Tr(a,s,A,g),A!==null&&(bi(A,a,g),yd(A,s,g)))}i(jr,"dispatchReducerAction");function lg(a,s,A){var g=Gi();Jl(a,s,A,g)}i(lg,"dispatchSetState");function Jl(a,s,A,g){var y={lane:g,revertLane:0,gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null};if(jl(a))Ah(s,y);else{var I=a.alternate;if(a.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var _=s.lastRenderedState,F=I(_,A);if(y.hasEagerState=!0,y.eagerState=F,Wr(F,_))return Yt(a,s,y,0),so===null&&Nn(),!1}catch{}if(A=Tr(a,s,y,g),A!==null)return bi(A,a,g),yd(A,s,g),!0}return!1}i(Jl,"dispatchSetStateInternal");function Ju(a,s,A,g){if(g={lane:2,revertLane:ar(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},jl(a)){if(s)throw Error(c(479))}else s=Tr(a,A,g,2),s!==null&&bi(s,a,2)}i(Ju,"dispatchOptimisticSetState");function jl(a){var s=a.alternate;return a===rn||s!==null&&s===rn}i(jl,"isRenderPhaseUpdate");function Ah(a,s){CA=pp=!0;var A=a.pending;A===null?s.next=s:(s.next=A.next,A.next=s),a.pending=s}i(Ah,"enqueueRenderPhaseUpdate");function yd(a,s,A){if((A&4194048)!==0){var g=s.lanes;g&=a.pendingLanes,A|=g,s.lanes=A,le(a,A)}}i(yd,"entangleTransitionUpdate");function cg(a,s,A,g){s=a.memoizedState,A=A(g,s),A=A==null?s:la({},s,A),a.memoizedState=A,a.lanes===0&&(a.updateQueue.baseState=A)}i(cg,"applyDerivedStateFromProps");function Id(a,s,A,g,y,I,_){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,I,_):s.prototype&&s.prototype.isPureReactComponent?!it(A,g)||!it(y,I):!0}i(Id,"checkShouldComponentUpdate");function dh(a,s,A,g){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(A,g),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(A,g),s.state!==a&&hp.enqueueReplaceState(s,s.state,null)}i(dh,"callComponentWillReceiveProps");function ys(a,s){var A=s;if("ref"in s){A={};for(var g in s)g!=="ref"&&(A[g]=s[g])}if(a=a.defaultProps){A===s&&(A=la({},A));for(var y in a)A[y]===void 0&&(A[y]=a[y])}return A}i(ys,"resolveClassComponentProps");function Bd(a,s){try{var A=a.onUncaughtError;A(s.value,{componentStack:s.stack})}catch(g){setTimeout(function(){throw g})}}i(Bd,"logUncaughtError");function fh(a,s,A){try{var g=a.onCaughtError;g(A.value,{componentStack:A.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(y){setTimeout(function(){throw y})}}i(fh,"logCaughtError");function ju(a,s,A){return A=Jr(A),A.tag=3,A.payload={element:null},A.callback=function(){Bd(a,s)},A}i(ju,"createRootErrorUpdate");function Sd(a){return a=Jr(a),a.tag=3,a}i(Sd,"createClassErrorUpdate");function ug(a,s,A,g){var y=A.type.getDerivedStateFromError;if(typeof y=="function"){var I=g.value;a.payload=function(){return y(I)},a.callback=function(){fh(s,A,g)}}var _=A.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(a.callback=function(){fh(s,A,g),typeof y!="function"&&(dc===null?dc=new Set([this]):dc.add(this));var F=g.stack;this.componentDidCatch(g.value,{componentStack:F!==null?F:""})})}i(ug,"initializeClassErrorUpdate");function si(a,s,A,g,y){if(A.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(s=A.alternate,s!==null&&Re(s,A,y,!0),A=ua.current,A!==null){switch(A.tag){case 31:case 13:return Ua===null?nA():A.alternate===null&&Ho===0&&(Ho=3),A.flags&=-257,A.flags|=65536,A.lanes=y,g===fp?A.flags|=16384:(s=A.updateQueue,s===null?A.updateQueue=new Set([g]):s.add(g),Hg(a,g,y)),!1;case 22:return A.flags|=65536,g===fp?A.flags|=16384:(s=A.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([g])},A.updateQueue=s):(A=s.retryQueue,A===null?s.retryQueue=new Set([g]):A.add(g)),Hg(a,g,y)),!1}throw Error(c(435,A.tag))}return Hg(a,g,y),nA(),!1}if(hn)return s=ua.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=y,g!==rE&&(a=Error(c(422),{cause:g}),gt(Je(a,A)))):(g!==rE&&(s=Error(c(423),{cause:g}),gt(Je(s,A))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,g=Je(g,A),y=ju(a.stateNode,g,y),Mc(a,y),Ho!==4&&(Ho=2)),!1;var I=Error(c(520),{cause:g});if(I=Je(I,A),Af===null?Af=[I]:Af.push(I),Ho!==4&&(Ho=2),s===null)return!0;g=Je(g,A),A=s;do{switch(A.tag){case 3:return A.flags|=65536,a=y&-y,A.lanes|=a,a=ju(A.stateNode,g,a),Mc(A,a),!1;case 1:if(s=A.type,I=A.stateNode,(A.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(dc===null||!dc.has(I))))return A.flags|=65536,y&=-y,A.lanes|=y,y=Sd(y),ug(y,a,A,g),Mc(A,y),!1}A=A.return}while(A!==null);return!1}i(si,"throwException");function Nr(a,s,A,g){s.child=a===null?vI(s,null,A,g):eu(s,a.child,A,g)}i(Nr,"reconcileChildren");function vd(a,s,A,g,y){A=A.render;var I=s.ref;if("ref"in g){var _={};for(var F in g)F!=="ref"&&(_[F]=g[F])}else _=g;return he(s),g=va(a,s,A,_,I,y),F=x(),a!==null&&!gr?(T(a,s,y),Ui(a,s,y)):(hn&&F&&pt(s),s.flags|=1,Nr(a,s,g,y),s.child)}i(vd,"updateForwardRef");function Ag(a,s,A,g,y){if(a===null){var I=A.type;return typeof I=="function"&&!Gd(I)&&I.defaultProps===void 0&&A.compare===null?(s.tag=15,s.type=I,dg(a,s,I,g,y)):(a=Fd(A.type,null,g,s,s.mode,y),a.ref=s.ref,a.return=s,s.child=a)}if(I=a.child,!Zu(a,y)){var _=I.memoizedProps;if(A=A.compare,A=A!==null?A:it,A(_,g)&&a.ref===s.ref)return Ui(a,s,y)}return s.flags|=1,a=Qs(I,g),a.ref=s.ref,a.return=s,s.child=a}i(Ag,"updateMemoComponent");function dg(a,s,A,g,y){if(a!==null){var I=a.memoizedProps;if(it(I,g)&&a.ref===s.ref)if(gr=!1,s.pendingProps=g=I,Zu(a,y))(a.flags&131072)!==0&&(gr=!0);else return s.lanes=a.lanes,Ui(a,s,y)}return gh(a,s,A,g,y)}i(dg,"updateSimpleMemoComponent");function Al(a,s,A,g){var y=g.children,I=a!==null?a.memoizedState:null;if(a===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((s.flags&128)!==0){if(I=I!==null?I.baseLanes|A:A,a!==null){for(g=s.child=a.child,y=0;g!==null;)y=y|g.lanes|g.childLanes,g=g.sibling;g=y&~I}else g=0,s.child=null;return Vu(a,s,I,A,g)}if((A&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&ze(s,I!==null?I.cachePool:null),I!==null?He(s,I):Jn(),Ni(s);else return g=s.lanes=536870912,Vu(a,s,I!==null?I.baseLanes|A:A,A,g)}else I!==null?(ze(s,I.cachePool),He(s,I),Mi(s),s.memoizedState=null):(a!==null&&ze(s,null),Jn(),Mi(s));return Nr(a,s,y,A),s.child}i(Al,"updateOffscreenComponent");function ba(a,s){return a!==null&&a.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}i(ba,"bailoutOffscreenComponent");function Vu(a,s,A,g,y){var I=j();return I=I===null?null:{parent:Da?Do._currentValue:Do._currentValue2,pool:I},s.memoizedState={baseLanes:A,cachePool:I},a!==null&&ze(s,null),Jn(),Ni(s),a!==null&&Re(a,s,g,!0),s.childLanes=y,null}i(Vu,"deferHiddenOffscreenComponent");function kc(a,s){return s=Wa({mode:s.mode,children:s.children},a.mode),s.ref=a.ref,a.child=s,s.return=a,s}i(kc,"mountActivityChildren");function Xu(a,s,A){return eu(s,a.child,null,A),a=kc(s,s.pendingProps),a.flags|=2,xo(s),s.memoizedState=null,a}i(Xu,"retryActivityComponentWithoutHydrating");function Qd(a,s,A){var g=s.pendingProps,y=(s.flags&128)!==0;if(s.flags&=-129,a===null){if(hn){if(g.mode==="hidden")return a=kc(s,g),s.lanes=536870912,ba(null,a);if(oa(s),(a=ho)?(a=aI(a,Ma),a!==null&&(s.memoizedState={dehydrated:a,treeContext:Sl!==null?{id:xi,overflow:Ts}:null,retryLane:536870912,hydrationErrors:null},A=Lg(a),A.return=s,s.child=A,br=s,ho=null)):a=null,a===null)throw ne(s);return s.lanes=536870912,null}return kc(s,g)}var I=a.memoizedState;if(I!==null){var _=I.dehydrated;if(oa(s),y)if(s.flags&256)s.flags&=-257,s=Xu(a,s,A);else if(s.memoizedState!==null)s.child=a.child,s.flags|=128,s=null;else throw Error(c(558));else if(gr||Re(a,s,A,!1),y=(A&a.childLanes)!==0,gr||y){if(g=so,g!==null&&(_=ue(g,A),_!==0&&_!==I.retryLane))throw I.retryLane=_,ri(a,_),bi(g,a,_),Ep;nA(),s=Xu(a,s,A)}else a=I.treeContext,Xr&&(ho=Xh(_),br=s,hn=!0,vl=null,Ma=!1,a!==null&&be(s,a)),s=kc(s,g),s.flags|=4096;return s}return a=Qs(a.child,{mode:g.mode,children:g.children}),a.ref=s.ref,s.child=a,a.return=s,a}i(Qd,"updateActivityComponent");function bd(a,s){var A=s.ref;if(A===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof A!="function"&&typeof A!="object")throw Error(c(284));(a===null||a.ref!==A)&&(s.flags|=4194816)}}i(bd,"markRef");function gh(a,s,A,g,y){return he(s),A=va(a,s,A,g,void 0,y),g=x(),a!==null&&!gr?(T(a,s,y),Ui(a,s,y)):(hn&&g&&pt(s),s.flags|=1,Nr(a,s,A,y),s.child)}i(gh,"updateFunctionComponent");function ph(a,s,A,g,y,I){return he(s),s.updateQueue=null,A=Si(s,g,A,y),Sr(a),g=x(),a!==null&&!gr?(T(a,s,I),Ui(a,s,I)):(hn&&g&&pt(s),s.flags|=1,Nr(a,s,A,I),s.child)}i(ph,"replayFunctionComponent");function mh(a,s,A,g,y){if(he(s),s.stateNode===null){var I=Xc,_=A.contextType;typeof _=="object"&&_!==null&&(I=Ze(_)),I=new A(g,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=hp,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=g,I.state=s.memoizedState,I.refs={},Ba(s),_=A.contextType,I.context=typeof _=="object"&&_!==null?Ze(_):Xc,I.state=s.memoizedState,_=A.getDerivedStateFromProps,typeof _=="function"&&(cg(s,A,_,g),I.state=s.memoizedState),typeof A.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(_=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),_!==I.state&&hp.enqueueReplaceState(I,I.state,null),ja(s,g,I,y),Ja(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),g=!0}else if(a===null){I=s.stateNode;var F=s.memoizedProps,pe=ys(A,F);I.props=pe;var Fe=I.context,rt=A.contextType;_=Xc,typeof rt=="object"&&rt!==null&&(_=Ze(rt));var $e=A.getDerivedStateFromProps;rt=typeof $e=="function"||typeof I.getSnapshotBeforeUpdate=="function",F=s.pendingProps!==F,rt||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(F||Fe!==_)&&dh(s,I,g,_),lc=!1;var Ct=s.memoizedState;I.state=Ct,ja(s,g,I,y),Ja(),Fe=s.memoizedState,F||Ct!==Fe||lc?(typeof $e=="function"&&(cg(s,A,$e,g),Fe=s.memoizedState),(pe=lc||Id(s,A,pe,g,Ct,Fe,_))?(rt||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(s.flags|=4194308)):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=g,s.memoizedState=Fe),I.props=g,I.state=Fe,I.context=_,g=pe):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),g=!1)}else{I=s.stateNode,Sa(a,s),_=s.memoizedProps,rt=ys(A,_),I.props=rt,$e=s.pendingProps,Ct=I.context,Fe=A.contextType,pe=Xc,typeof Fe=="object"&&Fe!==null&&(pe=Ze(Fe)),F=A.getDerivedStateFromProps,(Fe=typeof F=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(_!==$e||Ct!==pe)&&dh(s,I,g,pe),lc=!1,Ct=s.memoizedState,I.state=Ct,ja(s,g,I,y),Ja();var zt=s.memoizedState;_!==$e||Ct!==zt||lc||a!==null&&a.dependencies!==null&&xe(a.dependencies)?(typeof F=="function"&&(cg(s,A,F,g),zt=s.memoizedState),(rt=lc||Id(s,A,rt,g,Ct,zt,pe)||a!==null&&a.dependencies!==null&&xe(a.dependencies))?(Fe||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(g,zt,pe),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(g,zt,pe)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||_===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||_===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=1024),s.memoizedProps=g,s.memoizedState=zt),I.props=g,I.state=zt,I.context=pe,g=rt):(typeof I.componentDidUpdate!="function"||_===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||_===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=1024),g=!1)}return I=g,bd(a,s),g=(s.flags&128)!==0,I||g?(I=s.stateNode,A=g&&typeof A.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,a!==null&&g?(s.child=eu(s,a.child,null,y),s.child=eu(s,null,A,y)):Nr(a,s,A,y),s.memoizedState=I.state,a=s.child):a=Ui(a,s,y),a}i(mh,"updateClassComponent");function fg(a,s,A,g){return Qt(),s.flags|=256,Nr(a,s,A,g),s.child}i(fg,"mountHostRootWithoutHydrating");function Rd(a){return{baseLanes:a,cachePool:ke()}}i(Rd,"mountSuspenseOffscreenState");function Is(a,s,A){return a=a!==null?a.childLanes&~A:0,s&&(a|=da),a}i(Is,"getRemainingWorkInPrimaryTree");function gg(a,s,A){var g=s.pendingProps,y=!1,I=(s.flags&128)!==0,_;if((_=I)||(_=a!==null&&a.memoizedState===null?!1:(tr.current&2)!==0),_&&(y=!0,s.flags&=-129),_=(s.flags&32)!==0,s.flags&=-33,a===null){if(hn){if(y?Bi(s):Mi(s),(a=ho)?(a=nv(a,Ma),a!==null&&(s.memoizedState={dehydrated:a,treeContext:Sl!==null?{id:xi,overflow:Ts}:null,retryLane:536870912,hydrationErrors:null},A=Lg(a),A.return=s,s.child=A,br=s,ho=null)):a=null,a===null)throw ne(s);return $d(a)?s.lanes=32:s.lanes=536870912,null}var F=g.children;return g=g.fallback,y?(Mi(s),y=s.mode,F=Wa({mode:"hidden",children:F},y),g=ml(g,y,A,null),F.return=s,g.return=s,F.sibling=g,s.child=F,g=s.child,g.memoizedState=Rd(A),g.childLanes=Is(a,_,A),s.memoizedState=Cp,ba(null,g)):(Bi(s),pg(s,F))}var pe=a.memoizedState;if(pe!==null&&(F=pe.dehydrated,F!==null)){if(I)s.flags&256?(Bi(s),s.flags&=-257,s=Qi(a,s,A)):s.memoizedState!==null?(Mi(s),s.child=a.child,s.flags|=128,s=null):(Mi(s),F=g.fallback,y=s.mode,g=Wa({mode:"visible",children:g.children},y),F=ml(F,y,A,null),F.flags|=2,g.return=s,F.return=s,g.sibling=F,s.child=g,eu(s,a.child,null,A),g=s.child,g.memoizedState=Rd(A),g.childLanes=Is(a,_,A),s.memoizedState=Cp,s=ba(null,g));else if(Bi(s),$d(F))_=Jc(F).digest,g=Error(c(419)),g.stack="",g.digest=_,gt({value:g,source:null,stack:null}),s=Qi(a,s,A);else if(gr||Re(a,s,A,!1),_=(A&a.childLanes)!==0,gr||_){if(_=so,_!==null&&(g=ue(_,A),g!==0&&g!==pe.retryLane))throw pe.retryLane=g,ri(a,g),bi(_,a,g),Ep;Wd(F)||nA(),s=Qi(a,s,A)}else Wd(F)?(s.flags|=192,s.child=a.child,s=null):(a=pe.treeContext,Xr&&(ho=rI(F),br=s,hn=!0,vl=null,Ma=!1,a!==null&&be(s,a)),s=pg(s,g.children),s.flags|=4096);return s}return y?(Mi(s),F=g.fallback,y=s.mode,pe=a.child,I=pe.sibling,g=Qs(pe,{mode:"hidden",children:g.children}),g.subtreeFlags=pe.subtreeFlags&65011712,I!==null?F=Qs(I,F):(F=ml(F,y,A,null),F.flags|=2),F.return=s,g.return=s,g.sibling=F,s.child=g,ba(null,g),g=s.child,F=a.child.memoizedState,F===null?F=Rd(A):(y=F.cachePool,y!==null?(pe=Da?Do._currentValue:Do._currentValue2,y=y.parent!==pe?{parent:pe,pool:pe}:y):y=ke(),F={baseLanes:F.baseLanes|A,cachePool:y}),g.memoizedState=F,g.childLanes=Is(a,_,A),s.memoizedState=Cp,ba(a.child,g)):(Bi(s),A=a.child,a=A.sibling,A=Qs(A,{mode:"visible",children:g.children}),A.return=s,A.sibling=null,a!==null&&(_=s.deletions,_===null?(s.deletions=[a],s.flags|=16):_.push(a)),s.child=A,s.memoizedState=null,A)}i(gg,"updateSuspenseComponent");function pg(a,s){return s=Wa({mode:"visible",children:s},a.mode),s.return=a,a.child=s}i(pg,"mountSuspensePrimaryChildren");function Wa(a,s){return a=o(22,a,null,s),a.lanes=0,a}i(Wa,"mountWorkInProgressOffscreenFiber");function Qi(a,s,A){return eu(s,a.child,null,A),a=pg(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}i(Qi,"retrySuspenseComponentWithoutHydrating");function wd(a,s,A){a.lanes|=s;var g=a.alternate;g!==null&&(g.lanes|=s),at(a.return,s,A)}i(wd,"scheduleSuspenseWorkOnFiber");function on(a,s,A,g,y,I){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:g,tail:A,tailMode:y,treeForkCount:I}:(_.isBackwards=s,_.rendering=null,_.renderingStartTime=0,_.last=g,_.tail=A,_.tailMode=y,_.treeForkCount=I)}i(on,"initSuspenseListRenderState");function Ye(a,s,A){var g=s.pendingProps,y=g.revealOrder,I=g.tail;g=g.children;var _=tr.current,F=(_&2)!==0;if(F?(_=_&1|2,s.flags|=128):_&=1,M(tr,_),Nr(a,s,g,A),g=hn?ce:0,!F&&a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wd(a,A,s);else if(a.tag===19)wd(a,A,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(A=s.child,y=null;A!==null;)a=A.alternate,a!==null&&Oi(a)===null&&(y=A),A=A.sibling;A=y,A===null?(y=s.child,s.child=null):(y=A.sibling,A.sibling=null),on(s,!1,y,A,I,g);break;case"backwards":case"unstable_legacy-backwards":for(A=null,y=s.child,s.child=null;y!==null;){if(a=y.alternate,a!==null&&Oi(a)===null){s.child=y;break}a=y.sibling,y.sibling=A,A=y,y=a}on(s,!0,A,null,I,g);break;case"together":on(s,!1,null,null,void 0,g);break;default:s.memoizedState=null}return s.child}i(Ye,"updateSuspenseListComponent");function Ui(a,s,A){if(a!==null&&(s.dependencies=a.dependencies),Ac|=s.lanes,(A&s.childLanes)===0)if(a!==null){if(Re(a,s,A,!1),(A&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(c(153));if(s.child!==null){for(a=s.child,A=Qs(a,a.pendingProps),s.child=A,A.return=s;a.sibling!==null;)a=a.sibling,A=A.sibling=Qs(a,a.pendingProps),A.return=s;A.sibling=null}return s.child}i(Ui,"bailoutOnAlreadyFinishedWork");function Zu(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&xe(a)))}i(Zu,"checkScheduledUpdateOrContext");function Oo(a,s,A){switch(s.tag){case 3:Xe(s,s.stateNode.containerInfo),Be(s,Do,a.memoizedState.cache),Qt();break;case 27:case 5:nt(s);break;case 4:Xe(s,s.stateNode.containerInfo);break;case 10:Be(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,oa(s),null;break;case 13:var g=s.memoizedState;if(g!==null)return g.dehydrated!==null?(Bi(s),s.flags|=128,null):(A&s.child.childLanes)!==0?gg(a,s,A):(Bi(s),a=Ui(a,s,A),a!==null?a.sibling:null);Bi(s);break;case 19:var y=(a.flags&128)!==0;if(g=(A&s.childLanes)!==0,g||(Re(a,s,A,!1),g=(A&s.childLanes)!==0),y){if(g)return Ye(a,s,A);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),M(tr,tr.current),g)break;return null;case 22:return s.lanes=0,Al(a,s,A,s.pendingProps);case 24:Be(s,Do,a.memoizedState.cache)}return Ui(a,s,A)}i(Oo,"attemptEarlyBailoutIfNoScheduledUpdate");function mg(a,s,A){if(a!==null)if(a.memoizedProps!==s.pendingProps)gr=!0;else{if(!Zu(a,A)&&(s.flags&128)===0)return gr=!1,Oo(a,s,A);gr=(a.flags&131072)!==0}else gr=!1,hn&&(s.flags&1048576)!==0&&ut(s,ce,s.index);switch(s.lanes=0,s.tag){case 16:e:{var g=s.pendingProps;if(a=wt(s.elementType),s.type=a,typeof a=="function")Gd(a)?(g=ys(a,g),s.tag=1,s=mh(null,s,a,g,A)):(s.tag=0,s=gh(null,s,a,g,A));else{if(a!=null){var y=a.$$typeof;if(y===rA){s.tag=11,s=vd(null,s,a,g,A);break e}else if(y===Uh){s.tag=14,s=Ag(null,s,a,g,A);break e}}throw s=b(a)||a,Error(c(306,s,""))}}return s;case 0:return gh(a,s,s.type,s.pendingProps,A);case 1:return g=s.type,y=ys(g,s.pendingProps),mh(a,s,g,y,A);case 3:e:{if(Xe(s,s.stateNode.containerInfo),a===null)throw Error(c(387));var I=s.pendingProps;y=s.memoizedState,g=y.element,Sa(a,s),ja(s,I,null,A);var _=s.memoizedState;if(I=_.cache,Be(s,Do,I),I!==y.cache&&Mt(s,[Do],A,!0),Ja(),I=_.element,Xr&&y.isDehydrated)if(y={element:I,isDehydrated:!1,cache:_.cache},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){s=fg(a,s,I,A);break e}else if(I!==g){g=Je(Error(c(424)),s),gt(g),s=fg(a,s,I,A);break e}else for(Xr&&(ho=Wg(s.stateNode.containerInfo),br=s,hn=!0,vl=null,Ma=!0),A=vI(s,null,I,A),s.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(Qt(),I===g){s=Ui(a,s,A);break e}Nr(a,s,I,A)}s=s.child}return s;case 26:if(Ta)return bd(a,s),a===null?(A=cA(s.type,null,s.pendingProps,null))?s.memoizedState=A:hn||(s.stateNode=EI(s.type,s.pendingProps,ac.current,s)):s.memoizedState=cA(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:if(Ar)return nt(s),a===null&&Ar&&hn&&(g=s.stateNode=op(s.type,s.pendingProps,ac.current,$r.current,!1),br=s,Ma=!0,ho=ev(s.type,g,ho)),Nr(a,s,s.pendingProps.children,A),bd(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&hn&&(iv(s.type,s.pendingProps,$r.current),(y=g=ho)&&(g=tv(g,s.type,s.pendingProps,Ma),g!==null?(s.stateNode=g,br=s,ho=Zg(g),Ma=!1,y=!0):y=!1),y||ne(s)),nt(s),y=s.type,I=s.pendingProps,_=a!==null?a.memoizedProps:null,g=I.children,jd(y,I)?g=null:_!==null&&jd(y,_)&&(s.flags|=32),s.memoizedState!==null&&(y=va(a,s,Xa,null,null,A),Da?rc._currentValue=y:rc._currentValue2=y),bd(a,s),Nr(a,s,g,A),s.child;case 6:return a===null&&hn&&($h(s.pendingProps,$r.current),(a=A=ho)&&(A=iI(A,s.pendingProps,Ma),A!==null?(s.stateNode=A,br=s,ho=null,a=!0):a=!1),a||ne(s)),null;case 13:return gg(a,s,A);case 4:return Xe(s,s.stateNode.containerInfo),g=s.pendingProps,a===null?s.child=eu(s,null,g,A):Nr(a,s,g,A),s.child;case 11:return vd(a,s,s.type,s.pendingProps,A);case 7:return Nr(a,s,s.pendingProps,A),s.child;case 8:return Nr(a,s,s.pendingProps.children,A),s.child;case 12:return Nr(a,s,s.pendingProps.children,A),s.child;case 10:return g=s.pendingProps,Be(s,s.type,g.value),Nr(a,s,g.children,A),s.child;case 9:return y=s.type._context,g=s.pendingProps.children,he(s),y=Ze(y),g=g(y),s.flags|=1,Nr(a,s,g,A),s.child;case 14:return Ag(a,s,s.type,s.pendingProps,A);case 15:return dg(a,s,s.type,s.pendingProps,A);case 19:return Ye(a,s,A);case 31:return Qd(a,s,A);case 22:return Al(a,s,A,s.pendingProps);case 24:return he(s),g=Ze(Do),a===null?(y=j(),y===null&&(y=so,I=Qn(),y.pooledCache=I,I.refCount++,I!==null&&(y.pooledCacheLanes|=A),y=I),s.memoizedState={parent:g,cache:y},Ba(s),Be(s,Do,y)):((a.lanes&A)!==0&&(Sa(a,s),ja(s,null,null,A),Ja()),y=a.memoizedState,I=s.memoizedState,y.parent!==g?(y={parent:g,cache:g},s.memoizedState=y,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=y),Be(s,Do,g)):(g=I.cache,Be(s,Do,g),g!==y.cache&&Mt(s,[Do],A,!0))),Nr(a,s,s.pendingProps.children,A),s.child;case 29:throw s.pendingProps}throw Error(c(156,s.tag))}i(mg,"beginWork");function sa(a){a.flags|=4}i(sa,"markUpdate");function xd(a){os&&(a.flags|=8)}i(xd,"markCloned");function hg(a,s){if(a!==null&&a.child===s.child)return!1;if((s.flags&16)!==0)return!0;for(a=s.child;a!==null;){if((a.flags&8218)!==0||(a.subtreeFlags&8218)!==0)return!0;a=a.sibling}return!1}i(hg,"doesRequireClone");function hh(a,s,A,g){if(ui)for(A=s.child;A!==null;){if(A.tag===5||A.tag===6)Pg(a,A.stateNode);else if(!(A.tag===4||Ar&&A.tag===27)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===s)break;for(;A.sibling===null;){if(A.return===null||A.return===s)return;A=A.return}A.sibling.return=A.return,A=A.sibling}else if(os)for(var y=s.child;y!==null;){if(y.tag===5){var I=y.stateNode;A&&g&&(I=Cl(I,y.type,y.memoizedProps)),Pg(a,I)}else if(y.tag===6)I=y.stateNode,A&&g&&(I=Zd(I,y.memoizedProps)),Pg(a,I);else if(y.tag!==4){if(y.tag===22&&y.memoizedState!==null)I=y.child,I!==null&&(I.return=y),hh(a,y,!0,!0);else if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===s)break;for(;y.sibling===null;){if(y.return===null||y.return===s)return;y=y.return}y.sibling.return=y.return,y=y.sibling}}i(hh,"appendAllChildren");function Eg(a,s,A,g){var y=!1;if(os)for(var I=s.child;I!==null;){if(I.tag===5){var _=I.stateNode;A&&g&&(_=Cl(_,I.type,I.memoizedProps)),jh(a,_)}else if(I.tag===6)_=I.stateNode,A&&g&&(_=Zd(_,I.memoizedProps)),jh(a,_);else if(I.tag!==4){if(I.tag===22&&I.memoizedState!==null)y=I.child,y!==null&&(y.return=I),Eg(a,I,!0,!0),y=!0;else if(I.child!==null){I.child.return=I,I=I.child;continue}}if(I===s)break;for(;I.sibling===null;){if(I.return===null||I.return===s)return y;I=I.return}I.sibling.return=I.return,I=I.sibling}return y}i(Eg,"appendAllChildrenToContainer");function Cg(a,s){if(os&&hg(a,s)){a=s.stateNode;var A=a.containerInfo,g=mo();Eg(g,s,!1,!1),a.pendingChildren=g,sa(s),$y(A,g)}}i(Cg,"updateHostContainer");function Dd(a,s,A,g){if(ui)a.memoizedProps!==g&&sa(s);else if(os){var y=a.stateNode,I=a.memoizedProps;if((a=hg(a,s))||I!==g){var _=$r.current;I=Wy(y,A,I,g,!a,null),I===y?s.stateNode=y:(xd(s),Oy(I,A,g,_)&&sa(s),s.stateNode=I,a&&hh(I,s,!1,!1))}else s.stateNode=y}}i(Dd,"updateHostComponent");function Vr(a,s,A,g,y){if((a.mode&32)!==0&&(A===null?Ly(s,g):WS(s,A,g))){if(a.flags|=16777216,(y&335544128)===y||iA(s,g))if(Zr(a.stateNode,s,g))a.flags|=8192;else if(wy())a.flags|=8192;else throw Oa=fp,Ap}else a.flags&=-16777217}i(Vr,"preloadInstanceAndSuspendIfNeeded");function jn(a,s){if(av(s)){if(a.flags|=16777216,!np(s))if(wy())a.flags|=8192;else throw Oa=fp,Ap}else a.flags&=-16777217}i(jn,"preloadResourceAndSuspendIfNeeded");function Uc(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?Ee():536870912,a.lanes|=s,BA|=s)}i(Uc,"scheduleRetryEffect");function dl(a,s){if(!hn)switch(a.tailMode){case"hidden":s=a.tail;for(var A=null;s!==null;)s.alternate!==null&&(A=s),s=s.sibling;A===null?a.tail=null:A.sibling=null;break;case"collapsed":A=a.tail;for(var g=null;A!==null;)A.alternate!==null&&(g=A),A=A.sibling;g===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}i(dl,"cutOffTailIfNeeded");function zn(a){var s=a.alternate!==null&&a.alternate.child===a.child,A=0,g=0;if(s)for(var y=a.child;y!==null;)A|=y.lanes|y.childLanes,g|=y.subtreeFlags&65011712,g|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)A|=y.lanes|y.childLanes,g|=y.subtreeFlags,g|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=g,a.childLanes=A,s}i(zn,"bubbleProperties");function Lc(a,s,A){var g=s.pendingProps;switch(P(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zn(s),null;case 1:return zn(s),null;case 3:return A=s.stateNode,g=null,a!==null&&(g=a.memoizedState.cache),s.memoizedState.cache!==g&&(s.flags|=2048),_e(Do),oe(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(a===null||a.child===null)&&(At(s)?sa(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Lt())),Cg(a,s),zn(s),null;case 26:if(Ta){var y=s.type,I=s.memoizedState;return a===null?(sa(s),I!==null?(zn(s),jn(s,I)):(zn(s),Vr(s,y,null,g,A))):I?I!==a.memoizedState?(sa(s),zn(s),jn(s,I)):(zn(s),s.flags&=-16777217):(I=a.memoizedProps,ui?I!==g&&sa(s):Dd(a,s,y,g),zn(s),Vr(s,y,I,g,A)),null}case 27:if(Ar){if(mt(s),A=ac.current,y=s.type,a!==null&&s.stateNode!=null)ui?a.memoizedProps!==g&&sa(s):Dd(a,s,y,g);else{if(!g){if(s.stateNode===null)throw Error(c(166));return zn(s),null}a=$r.current,At(s)?se(s,a):(a=op(y,g,A,a,!0),s.stateNode=a,sa(s))}return zn(s),null}case 5:if(mt(s),y=s.type,a!==null&&s.stateNode!=null)Dd(a,s,y,g);else{if(!g){if(s.stateNode===null)throw Error(c(166));return zn(s),null}if(I=$r.current,At(s))se(s,I),dI(s.stateNode,y,g,I)&&(s.flags|=64);else{var _=Rs(y,g,ac.current,I,s);xd(s),hh(_,s,!1,!1),s.stateNode=_,Oy(_,y,g,I)&&sa(s)}}return zn(s),Vr(s,s.type,a===null?null:a.memoizedProps,s.pendingProps,A),null;case 6:if(a&&s.stateNode!=null)A=a.memoizedProps,ui?A!==g&&sa(s):os&&(A!==g?(a=ac.current,A=$r.current,xd(s),s.stateNode=Jg(g,a,A,s)):s.stateNode=a.stateNode);else{if(typeof g!="string"&&s.stateNode===null)throw Error(c(166));if(a=ac.current,A=$r.current,At(s)){if(!Xr)throw Error(c(176));if(a=s.stateNode,A=s.memoizedProps,g=null,y=br,y!==null)switch(y.tag){case 27:case 5:g=y.memoizedProps}$g(a,A,s,g)||ne(s,!0)}else xd(s),s.stateNode=Jg(g,a,A,s)}return zn(s),null;case 31:if(A=s.memoizedState,a===null||a.memoizedState!==null){if(g=At(s),A!==null){if(a===null){if(!g)throw Error(c(318));if(!Xr)throw Error(c(556));if(a=s.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(557));sI(a,s)}else Qt(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;zn(s),a=!1}else A=Lt(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=A),a=!0;if(!a)return s.flags&256?(xo(s),s):(xo(s),null);if((s.flags&128)!==0)throw Error(c(558))}return zn(s),null;case 13:if(g=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=At(s),g!==null&&g.dehydrated!==null){if(a===null){if(!y)throw Error(c(318));if(!Xr)throw Error(c(344));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(c(317));Zh(y,s)}else Qt(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;zn(s),y=!1}else y=Lt(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return s.flags&256?(xo(s),s):(xo(s),null)}return xo(s),(s.flags&128)!==0?(s.lanes=A,s):(A=g!==null,a=a!==null&&a.memoizedState!==null,A&&(g=s.child,y=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(y=g.alternate.memoizedState.cachePool.pool),I=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(I=g.memoizedState.cachePool.pool),I!==y&&(g.flags|=2048)),A!==a&&A&&(s.child.flags|=8192),Uc(s,s.updateQueue),zn(s),null);case 4:return oe(),Cg(a,s),a===null&&ZS(s.stateNode.containerInfo),zn(s),null;case 10:return _e(s.type),zn(s),null;case 19:if(R(tr),g=s.memoizedState,g===null)return zn(s),null;if(y=(s.flags&128)!==0,I=g.rendering,I===null)if(y)dl(g,!1);else{if(Ho!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(I=Oi(a),I!==null){for(s.flags|=128,dl(g,!1),a=I.updateQueue,s.updateQueue=a,Uc(s,a),s.subtreeFlags=0,a=A,A=s.child;A!==null;)Nh(A,a),A=A.sibling;return M(tr,tr.current&1|2),hn&&W(s,g.treeForkCount),s.child}a=a.sibling}g.tail!==null&&Vn()>SA&&(s.flags|=128,y=!0,dl(g,!1),s.lanes=4194304)}else{if(!y)if(a=Oi(I),a!==null){if(s.flags|=128,y=!0,a=a.updateQueue,s.updateQueue=a,Uc(s,a),dl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!I.alternate&&!hn)return zn(s),null}else 2*Vn()-g.renderingStartTime>SA&&A!==536870912&&(s.flags|=128,y=!0,dl(g,!1),s.lanes=4194304);g.isBackwards?(I.sibling=s.child,s.child=I):(a=g.last,a!==null?a.sibling=I:s.child=I,g.last=I)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=Vn(),a.sibling=null,A=tr.current,M(tr,y?A&1|2:A&1),hn&&W(s,g.treeForkCount),a):(zn(s),null);case 22:case 23:return xo(s),ao(),g=s.memoizedState!==null,a!==null?a.memoizedState!==null!==g&&(s.flags|=8192):g&&(s.flags|=8192),g?(A&536870912)!==0&&(s.flags&128)===0&&(zn(s),s.subtreeFlags&6&&(s.flags|=8192)):zn(s),A=s.updateQueue,A!==null&&Uc(s,A.retryQueue),A=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(A=a.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==A&&(s.flags|=2048),a!==null&&R(sc),null;case 24:return A=null,a!==null&&(A=a.memoizedState.cache),s.memoizedState.cache!==A&&(s.flags|=2048),_e(Do),zn(s),null;case 25:return null;case 30:return null}throw Error(c(156,s.tag))}i(Lc,"completeWork");function $a(a,s){switch(P(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return _e(Do),oe(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return mt(s),null;case 31:if(s.memoizedState!==null){if(xo(s),s.alternate===null)throw Error(c(340));Qt()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 13:if(xo(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(c(340));Qt()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return R(tr),null;case 4:return oe(),null;case 10:return _e(s.type),null;case 22:case 23:return xo(s),ao(),a!==null&&R(sc),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return _e(Do),null;case 25:return null;default:return null}}i($a,"unwindWork");function yg(a,s){switch(P(s),s.tag){case 3:_e(Do),oe();break;case 26:case 27:case 5:mt(s);break;case 4:oe();break;case 31:s.memoizedState!==null&&xo(s);break;case 13:xo(s);break;case 19:R(tr);break;case 10:_e(s.type);break;case 22:case 23:xo(s),ao(),a!==null&&R(sc);break;case 24:_e(Do)}}i(yg,"unwindInterruptedWork");function Bs(a,s){try{var A=s.updateQueue,g=A!==null?A.lastEffect:null;if(g!==null){var y=g.next;A=y;do{if((A.tag&a)===a){g=void 0;var I=A.create,_=A.inst;g=I(),_.destroy=g}A=A.next}while(A!==y)}}catch(F){Un(s,s.return,F)}}i(Bs,"commitHookEffectListMount");function Ss(a,s,A){try{var g=s.updateQueue,y=g!==null?g.lastEffect:null;if(y!==null){var I=y.next;g=I;do{if((g.tag&a)===a){var _=g.inst,F=_.destroy;if(F!==void 0){_.destroy=void 0,y=s;var pe=A,Fe=F;try{Fe()}catch(rt){Un(y,pe,rt)}}}g=g.next}while(g!==I)}}catch(rt){Un(s,s.return,rt)}}i(Ss,"commitHookEffectListUnmount");function Wu(a){var s=a.updateQueue;if(s!==null){var A=a.stateNode;try{Va(s,A)}catch(g){Un(a,a.return,g)}}}i(Wu,"commitClassCallbacks");function Ig(a,s,A){A.props=ys(a.type,a.memoizedProps),A.state=a.memoizedState;try{A.componentWillUnmount()}catch(g){Un(a,s,g)}}i(Ig,"safelyCallComponentWillUnmount");function Vl(a,s){try{var A=a.ref;if(A!==null){switch(a.tag){case 26:case 27:case 5:var g=Pd(a.stateNode);break;case 30:g=a.stateNode;break;default:g=a.stateNode}typeof A=="function"?a.refCleanup=A(g):A.current=g}}catch(y){Un(a,s,y)}}i(Vl,"safelyAttachRef");function es(a,s){var A=a.ref,g=a.refCleanup;if(A!==null)if(typeof g=="function")try{g()}catch(y){Un(a,s,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof A=="function")try{A(null)}catch(y){Un(a,s,y)}else A.current=null}i(es,"safelyDetachRef");function Eh(a){var s=a.type,A=a.memoizedProps,g=a.stateNode;try{Jy(g,s,A,a)}catch(y){Un(a,a.return,y)}}i(Eh,"commitHostMount");function Bg(a,s,A){try{jg(a.stateNode,a.type,A,s,a)}catch(g){Un(a,a.return,g)}}i(Bg,"commitHostUpdate");function Ch(a){return a.tag===5||a.tag===3||(Ta?a.tag===26:!1)||(Ar?a.tag===27&&Vc(a.type):!1)||a.tag===4}i(Ch,"isHostParent");function Sg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Ch(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(Ar&&a.tag===27&&Vc(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}i(Sg,"getHostSibling");function Td(a,s,A){var g=a.tag;if(g===5||g===6)a=a.stateNode,s?Vy(A,a,s):Py(A,a);else if(g!==4&&(Ar&&g===27&&Vc(a.type)&&(A=a.stateNode,s=null),a=a.child,a!==null))for(Td(a,s,A),a=a.sibling;a!==null;)Td(a,s,A),a=a.sibling}i(Td,"insertOrAppendPlacementNodeIntoContainer");function $u(a,s,A){var g=a.tag;if(g===5||g===6)a=a.stateNode,s?jy(A,a,s):qy(A,a);else if(g!==4&&(Ar&&g===27&&Vc(a.type)&&(A=a.stateNode),a=a.child,a!==null))for($u(a,s,A),a=a.sibling;a!==null;)$u(a,s,A),a=a.sibling}i($u,"insertOrAppendPlacementNode");function vg(a,s,A){a=a.containerInfo;try{eI(a,A)}catch(g){Un(s,s.return,g)}}i(vg,"commitHostPortalContainerChildren");function yh(a){var s=a.stateNode,A=a.memoizedProps;try{rp(a.type,A,s,a)}catch(g){Un(a,a.return,g)}}i(yh,"commitHostSingletonAcquisition");function Iy(a,s){for(XS(a.containerInfo),Mr=s;Mr!==null;)if(a=Mr,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,Mr=s;else for(;Mr!==null;){a=Mr;var A=a.alternate;switch(s=a.flags,a.tag){case 0:if((s&4)!==0&&(s=a.updateQueue,s=s!==null?s.events:null,s!==null))for(var g=0;g<s.length;g++){var y=s[g];y.ref.impl=y.nextImpl}break;case 11:case 15:break;case 1:if((s&1024)!==0&&A!==null){s=void 0,g=a,y=A.memoizedProps,A=A.memoizedState;var I=g.stateNode;try{var _=ys(g.type,y);s=I.getSnapshotBeforeUpdate(_,A),I.__reactInternalSnapshotBeforeUpdate=s}catch(F){Un(g,g.return,F)}}break;case 3:(s&1024)!==0&&ui&&ca(a.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(c(163))}if(s=a.sibling,s!==null){s.return=a.return,Mr=s;break}Mr=a.return}}i(Iy,"commitBeforeMutationEffects");function Ih(a,s,A){var g=A.flags;switch(A.tag){case 0:case 11:case 15:wa(a,A),g&4&&Bs(5,A);break;case 1:if(wa(a,A),g&4)if(a=A.stateNode,s===null)try{a.componentDidMount()}catch(_){Un(A,A.return,_)}else{var y=ys(A.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(y,s,a.__reactInternalSnapshotBeforeUpdate)}catch(_){Un(A,A.return,_)}}g&64&&Wu(A),g&512&&Vl(A,A.return);break;case 3:if(wa(a,A),g&64&&(g=A.updateQueue,g!==null)){if(a=null,A.child!==null)switch(A.child.tag){case 27:case 5:a=Pd(A.child.stateNode);break;case 1:a=A.child.stateNode}try{Va(g,a)}catch(_){Un(A,A.return,_)}}break;case 27:Ar&&s===null&&g&4&&yh(A);case 26:case 5:if(wa(a,A),s===null){if(g&4)Eh(A);else if(g&64){a=A.type,s=A.memoizedProps,y=A.stateNode;try{uI(y,a,s,A)}catch(_){Un(A,A.return,_)}}}g&512&&Vl(A,A.return);break;case 12:wa(a,A);break;case 31:wa(a,A),g&4&&Bh(a,A);break;case 13:wa(a,A),g&4&&bg(a,A),g&64&&(g=A.memoizedState,g!==null&&(g=g.dehydrated,g!==null&&(A=kg.bind(null,A),aA(g,A))));break;case 22:if(g=A.memoizedState!==null||Os,!g){s=s!==null&&s.memoizedState!==null||nr,y=Os;var I=nr;Os=g,(nr=s)&&!I?ts(a,A,(A.subtreeFlags&8772)!==0):wa(a,A),Os=y,nr=I}break;case 30:break;default:wa(a,A)}}i(Ih,"commitLayoutEffectOnFiber");function By(a){var s=a.alternate;s!==null&&(a.alternate=null,By(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&Uy(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}i(By,"detachFiberAfterEffects");function Ra(a,s,A){for(A=A.child;A!==null;)Qg(a,s,A),A=A.sibling}i(Ra,"recursivelyTraverseDeletionEffects");function Qg(a,s,A){if($o&&typeof $o.onCommitFiberUnmount=="function")try{$o.onCommitFiberUnmount(Zc,A)}catch{}switch(A.tag){case 26:if(Ta){nr||es(A,s),Ra(a,s,A),A.memoizedState?hI(A.memoizedState):A.stateNode&&tE(A.stateNode);break}case 27:if(Ar){nr||es(A,s);var g=pr,y=qi;Vc(A.type)&&(pr=A.stateNode,qi=!1),Ra(a,s,A),ic(A.stateNode),pr=g,qi=y;break}case 5:nr||es(A,s);case 6:if(ui){if(g=pr,y=qi,pr=null,Ra(a,s,A),pr=g,qi=y,pr!==null)if(qi)try{Jh(pr,A.stateNode)}catch(I){Un(A,s,I)}else try{Ph(pr,A.stateNode)}catch(I){Un(A,s,I)}}else Ra(a,s,A);break;case 18:ui&&pr!==null&&(qi?Wh(pr,A.stateNode):Ln(pr,A.stateNode));break;case 4:ui?(g=pr,y=qi,pr=A.stateNode.containerInfo,qi=!0,Ra(a,s,A),pr=g,qi=y):(os&&vg(A.stateNode,A,mo()),Ra(a,s,A));break;case 0:case 11:case 14:case 15:Ss(2,A,s),nr||Ss(4,A,s),Ra(a,s,A);break;case 1:nr||(es(A,s),g=A.stateNode,typeof g.componentWillUnmount=="function"&&Ig(A,s,g)),Ra(a,s,A);break;case 21:Ra(a,s,A);break;case 22:nr=(g=nr)||A.memoizedState!==null,Ra(a,s,A),nr=g;break;default:Ra(a,s,A)}}i(Qg,"commitDeletionEffectsOnFiber");function Bh(a,s){if(Xr&&s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{AI(a)}catch(A){Un(s,s.return,A)}}}i(Bh,"commitActivityHydrationCallbacks");function bg(a,s){if(Xr&&s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{lA(a)}catch(A){Un(s,s.return,A)}}i(bg,"commitSuspenseHydrationCallbacks");function Sy(a){switch(a.tag){case 31:case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new yp),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new yp),s;default:throw Error(c(435,a.tag))}}i(Sy,"getRetryCache");function _d(a,s){var A=Sy(a);s.forEach(function(g){if(!A.has(g)){A.add(g);var y=_y.bind(null,a,g);g.then(y,y)}})}i(_d,"attachSuspenseRetryListeners");function Zo(a,s){var A=s.deletions;if(A!==null)for(var g=0;g<A.length;g++){var y=A[g],I=a,_=s;if(ui){var F=_;e:for(;F!==null;){switch(F.tag){case 27:if(Ar){if(Vc(F.type)){pr=F.stateNode,qi=!1;break e}break}case 5:pr=F.stateNode,qi=!1;break e;case 3:case 4:pr=F.stateNode.containerInfo,qi=!0;break e}F=F.return}if(pr===null)throw Error(c(160));Qg(I,_,y),pr=null,qi=!1}else Qg(I,_,y);I=y.alternate,I!==null&&(I.return=null),y.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)Nd(s,a),s=s.sibling}i(Zo,"recursivelyTraverseMutationEffects");function Nd(a,s){var A=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Zo(s,a),li(a),g&4&&(Ss(3,a,a.return),Bs(3,a),Ss(5,a,a.return));break;case 1:Zo(s,a),li(a),g&512&&(nr||A===null||es(A,A.return)),g&64&&Os&&(a=a.updateQueue,a!==null&&(g=a.callbacks,g!==null&&(A=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=A===null?g:A.concat(g))));break;case 26:if(Ta){var y=ls;if(Zo(s,a),li(a),g&512&&(nr||A===null||es(A,A.return)),g&4){g=A!==null?A.memoizedState:null;var I=a.memoizedState;A===null?I===null?a.stateNode===null?a.stateNode=jc(y,a.type,a.memoizedProps,a):tp(y,a.type,a.stateNode):a.stateNode=mI(y,I,a.memoizedProps):g!==I?(g===null?A.stateNode!==null&&tE(A.stateNode):hI(g),I===null?tp(y,a.type,a.stateNode):mI(y,I,a.memoizedProps)):I===null&&a.stateNode!==null&&Bg(a,a.memoizedProps,A.memoizedProps)}break}case 27:if(Ar){Zo(s,a),li(a),g&512&&(nr||A===null||es(A,A.return)),A!==null&&g&4&&Bg(a,a.memoizedProps,A.memoizedProps);break}case 5:if(Zo(s,a),li(a),g&512&&(nr||A===null||es(A,A.return)),ui){if(a.flags&32){y=a.stateNode;try{Vg(y)}catch($e){Un(a,a.return,$e)}}g&4&&a.stateNode!=null&&(y=a.memoizedProps,Bg(a,y,A!==null?A.memoizedProps:y)),g&1024&&(cf=!0)}else os&&a.alternate!==null&&(a.alternate.stateNode=a.stateNode);break;case 6:if(Zo(s,a),li(a),g&4&&ui){if(a.stateNode===null)throw Error(c(162));g=a.memoizedProps,A=A!==null?A.memoizedProps:g,y=a.stateNode;try{Xd(y,A,g)}catch($e){Un(a,a.return,$e)}}break;case 3:if(Ta?(CI(),y=ls,ls=ep(s.containerInfo),Zo(s,a),ls=y):Zo(s,a),li(a),g&4){if(ui&&Xr&&A!==null&&A.memoizedState.isDehydrated)try{ov(s.containerInfo)}catch($e){Un(a,a.return,$e)}if(os){g=s.containerInfo,A=s.pendingChildren;try{eI(g,A)}catch($e){Un(a,a.return,$e)}}}cf&&(cf=!1,vy(a));break;case 4:Ta?(A=ls,ls=ep(a.stateNode.containerInfo),Zo(s,a),li(a),ls=A):(Zo(s,a),li(a)),g&4&&os&&vg(a.stateNode,a,a.stateNode.pendingChildren);break;case 12:Zo(s,a),li(a);break;case 31:Zo(s,a),li(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,_d(a,g)));break;case 13:Zo(s,a),li(a),a.child.flags&8192&&a.memoizedState!==null!=(A!==null&&A.memoizedState!==null)&&(df=Vn()),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,_d(a,g)));break;case 22:y=a.memoizedState!==null;var _=A!==null&&A.memoizedState!==null,F=Os,pe=nr;if(Os=F||y,nr=pe||_,Zo(s,a),nr=pe,Os=F,li(a),g&8192&&(s=a.stateNode,s._visibility=y?s._visibility&-2:s._visibility|1,y&&(A===null||_||Os||nr||xa(a)),ui)){e:if(A=null,ui)for(s=a;;){if(s.tag===5||Ta&&s.tag===26){if(A===null){_=A=s;try{I=_.stateNode,y?Xy(I):$S(_.stateNode,_.memoizedProps)}catch($e){Un(_,_.return,$e)}}}else if(s.tag===6){if(A===null){_=s;try{var Fe=_.stateNode;y?Xg(Fe):Zy(Fe,_.memoizedProps)}catch($e){Un(_,_.return,$e)}}}else if(s.tag===18){if(A===null){_=s;try{var rt=_.stateNode;y?rv(rt):gI(_.stateNode)}catch($e){Un(_,_.return,$e)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;A===s&&(A=null),s=s.return}A===s&&(A=null),s.sibling.return=s.return,s=s.sibling}}g&4&&(g=a.updateQueue,g!==null&&(A=g.retryQueue,A!==null&&(g.retryQueue=null,_d(a,A))));break;case 19:Zo(s,a),li(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,_d(a,g)));break;case 30:break;case 21:break;default:Zo(s,a),li(a)}}i(Nd,"commitMutationEffectsOnFiber");function li(a){var s=a.flags;if(s&2){try{for(var A,g=a.return;g!==null;){if(Ch(g)){A=g;break}g=g.return}if(ui){if(A==null)throw Error(c(160));switch(A.tag){case 27:if(Ar){var y=A.stateNode,I=Sg(a);$u(a,I,y);break}case 5:var _=A.stateNode;A.flags&32&&(Vg(_),A.flags&=-33);var F=Sg(a);$u(a,F,_);break;case 3:case 4:var pe=A.stateNode.containerInfo,Fe=Sg(a);Td(a,Fe,pe);break;default:throw Error(c(161))}}}catch(rt){Un(a,a.return,rt)}a.flags&=-3}s&4096&&(a.flags&=-4097)}i(li,"commitReconciliationEffects");function vy(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;vy(s),s.tag===5&&s.flags&1024&&Yc(s.stateNode),a=a.sibling}}i(vy,"recursivelyResetForms");function wa(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Ih(a,s.alternate,s),s=s.sibling}i(wa,"recursivelyTraverseLayoutEffects");function xa(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Ss(4,s,s.return),xa(s);break;case 1:es(s,s.return);var A=s.stateNode;typeof A.componentWillUnmount=="function"&&Ig(s,s.return,A),xa(s);break;case 27:Ar&&ic(s.stateNode);case 26:case 5:es(s,s.return),xa(s);break;case 22:s.memoizedState===null&&xa(s);break;case 30:xa(s);break;default:xa(s)}a=a.sibling}}i(xa,"recursivelyTraverseDisappearLayoutEffects");function ts(a,s,A){for(A=A&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var g=s.alternate,y=a,I=s,_=I.flags;switch(I.tag){case 0:case 11:case 15:ts(y,I,A),Bs(4,I);break;case 1:if(ts(y,I,A),g=I,y=g.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(Fe){Un(g,g.return,Fe)}if(g=I,y=g.updateQueue,y!==null){var F=g.stateNode;try{var pe=y.shared.hiddenCallbacks;if(pe!==null)for(y.shared.hiddenCallbacks=null,y=0;y<pe.length;y++)Oc(pe[y],F)}catch(Fe){Un(g,g.return,Fe)}}A&&_&64&&Wu(I),Vl(I,I.return);break;case 27:Ar&&yh(I);case 26:case 5:ts(y,I,A),A&&g===null&&_&4&&Eh(I),Vl(I,I.return);break;case 12:ts(y,I,A);break;case 31:ts(y,I,A),A&&_&4&&Bh(y,I);break;case 13:ts(y,I,A),A&&_&4&&bg(y,I);break;case 22:I.memoizedState===null&&ts(y,I,A),Vl(I,I.return);break;case 30:break;default:ts(y,I,A)}s=s.sibling}}i(ts,"recursivelyTraverseReappearLayoutEffects");function fl(a,s){var A=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(A=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==A&&(a!=null&&a.refCount++,A!=null&&Ro(A))}i(fl,"commitOffscreenPassiveMountEffects");function ci(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Ro(a))}i(ci,"commitCachePassiveMountEffect");function Li(a,s,A,g){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Qy(a,s,A,g),s=s.sibling}i(Li,"recursivelyTraversePassiveMountEffects");function Qy(a,s,A,g){var y=s.flags;switch(s.tag){case 0:case 11:case 15:Li(a,s,A,g),y&2048&&Bs(9,s);break;case 1:Li(a,s,A,g);break;case 3:Li(a,s,A,g),y&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Ro(a)));break;case 12:if(y&2048){Li(a,s,A,g),a=s.stateNode;try{var I=s.memoizedProps,_=I.id,F=I.onPostCommit;typeof F=="function"&&F(_,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(pe){Un(s,s.return,pe)}}else Li(a,s,A,g);break;case 31:Li(a,s,A,g);break;case 13:Li(a,s,A,g);break;case 23:break;case 22:I=s.stateNode,_=s.alternate,s.memoizedState!==null?I._visibility&2?Li(a,s,A,g):Zl(a,s):I._visibility&2?Li(a,s,A,g):(I._visibility|=2,Xl(a,s,A,g,(s.subtreeFlags&10256)!==0||!1)),y&2048&&fl(_,s);break;case 24:Li(a,s,A,g),y&2048&&ci(s.alternate,s);break;default:Li(a,s,A,g)}}i(Qy,"commitPassiveMountOnFiber");function Xl(a,s,A,g,y){for(y=y&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var I=a,_=s,F=A,pe=g,Fe=_.flags;switch(_.tag){case 0:case 11:case 15:Xl(I,_,F,pe,y),Bs(8,_);break;case 23:break;case 22:var rt=_.stateNode;_.memoizedState!==null?rt._visibility&2?Xl(I,_,F,pe,y):Zl(I,_):(rt._visibility|=2,Xl(I,_,F,pe,y)),y&&Fe&2048&&fl(_.alternate,_);break;case 24:Xl(I,_,F,pe,y),y&&Fe&2048&&ci(_.alternate,_);break;default:Xl(I,_,F,pe,y)}s=s.sibling}}i(Xl,"recursivelyTraverseReconnectPassiveEffects");function Zl(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var A=a,g=s,y=g.flags;switch(g.tag){case 22:Zl(A,g),y&2048&&fl(g.alternate,g);break;case 24:Zl(A,g),y&2048&&ci(g.alternate,g);break;default:Zl(A,g)}s=s.sibling}}i(Zl,"recursivelyTraverseAtomicPassiveEffects");function gl(a,s,A){if(a.subtreeFlags&cc)for(a=a.child;a!==null;)Sh(a,s,A),a=a.sibling}i(gl,"recursivelyAccumulateSuspenseyCommit");function Sh(a,s,A){switch(a.tag){case 26:if(gl(a,s,A),a.flags&cc)if(a.memoizedState!==null)yl(A,ls,a.memoizedState,a.memoizedProps);else{var g=a.stateNode,y=a.type;a=a.memoizedProps,((s&335544128)===s||iA(y,a))&&Ai(A,g,y,a)}break;case 5:gl(a,s,A),a.flags&cc&&(g=a.stateNode,y=a.type,a=a.memoizedProps,((s&335544128)===s||iA(y,a))&&Ai(A,g,y,a));break;case 3:case 4:Ta?(g=ls,ls=ep(a.stateNode.containerInfo),gl(a,s,A),ls=g):gl(a,s,A);break;case 22:a.memoizedState===null&&(g=a.alternate,g!==null&&g.memoizedState!==null?(g=cc,cc=16777216,gl(a,s,A),cc=g):gl(a,s,A));break;default:gl(a,s,A)}}i(Sh,"accumulateSuspenseyCommitOnFiber");function Rg(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}i(Rg,"detachAlternateSiblings");function Wl(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var A=0;A<s.length;A++){var g=s[A];Mr=g,xg(g,a)}Rg(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wg(a),a=a.sibling}i(Wl,"recursivelyTraversePassiveUnmountEffects");function wg(a){switch(a.tag){case 0:case 11:case 15:Wl(a),a.flags&2048&&Ss(9,a,a.return);break;case 3:Wl(a);break;case 12:Wl(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,Gc(a)):Wl(a);break;default:Wl(a)}}i(wg,"commitPassiveUnmountOnFiber");function Gc(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var A=0;A<s.length;A++){var g=s[A];Mr=g,xg(g,a)}Rg(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Ss(8,s,s.return),Gc(s);break;case 22:A=s.stateNode,A._visibility&2&&(A._visibility&=-3,Gc(s));break;default:Gc(s)}a=a.sibling}}i(Gc,"recursivelyTraverseDisconnectPassiveEffects");function xg(a,s){for(;Mr!==null;){var A=Mr;switch(A.tag){case 0:case 11:case 15:Ss(8,A,s);break;case 23:case 22:if(A.memoizedState!==null&&A.memoizedState.cachePool!==null){var g=A.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:Ro(A.memoizedState.cache)}if(g=A.child,g!==null)g.return=A,Mr=g;else e:for(A=a;Mr!==null;){g=Mr;var y=g.sibling,I=g.return;if(By(g),g===A){Mr=null;break e}if(y!==null){y.return=I,Mr=y;break e}Mr=I}}}i(xg,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");function eA(a){var s=ky(a);if(s!=null){if(typeof s.memoizedProps["data-testname"]!="string")throw Error(c(364));return s}if(a=qh(a),a===null)throw Error(c(362));return a.stateNode.current}i(eA,"findFiberRootForHostRoot");function Md(a,s){var A=a.tag;switch(s.$$typeof){case Ip:if(a.type===s.value)return!0;break;case Bp:e:{for(s=s.value,a=[a,0],A=0;A<a.length;){var g=a[A++],y=g.tag,I=a[A++],_=s[I];if(y!==5&&y!==26&&y!==27||!Ds(g)){for(;_!=null&&Md(g,_);)I++,_=s[I];if(I===s.length){s=!0;break e}else for(g=g.child;g!==null;)a.push(g,I),g=g.sibling}}s=!1}return s;case Sp:if((A===5||A===26||A===27)&&Yy(a.stateNode,s.value))return!0;break;case Qp:if((A===5||A===6||A===26||A===27)&&(a=Ky(a),a!==null&&0<=a.indexOf(s.value)))return!0;break;case vp:if((A===5||A===26||A===27)&&(a=a.memoizedProps["data-testname"],typeof a=="string"&&a.toLowerCase()===s.value.toLowerCase()))return!0;break;default:throw Error(c(365))}return!1}i(Md,"matchSelector");function Dg(a){switch(a.$$typeof){case Ip:return"<"+(b(a.value)||"Unknown")+">";case Bp:return":has("+(Dg(a)||"")+")";case Sp:return'[role="'+a.value+'"]';case Qp:return'"'+a.value+'"';case vp:return'[data-testname="'+a.value+'"]';default:throw Error(c(365))}}i(Dg,"selectorToString");function vh(a,s){var A=[];a=[a,0];for(var g=0;g<a.length;){var y=a[g++],I=y.tag,_=a[g++],F=s[_];if(I!==5&&I!==26&&I!==27||!Ds(y)){for(;F!=null&&Md(y,F);)_++,F=s[_];if(_===s.length)A.push(y);else for(y=y.child;y!==null;)a.push(y,_),y=y.sibling}}return A}i(vh,"findPaths");function Od(a,s){if(!qc)throw Error(c(363));a=eA(a),a=vh(a,s),s=[],a=Array.from(a);for(var A=0;A<a.length;){var g=a[A++],y=g.tag;if(y===5||y===26||y===27)Ds(g)||s.push(g.stateNode);else for(g=g.child;g!==null;)a.push(g),g=g.sibling}return s}i(Od,"findAllNodes");function Gi(){return(yn&2)!==0&&bn!==0?bn&-bn:_t.T!==null?ar():rs()}i(Gi,"requestUpdateLane");function Hd(){if(da===0)if((bn&536870912)===0||hn){var a=nf;nf<<=1,(nf&3932160)===0&&(nf=262144),da=a}else da=536870912;return a=ua.current,a!==null&&(a.flags|=32),da}i(Hd,"requestDeferredLane");function bi(a,s,A){(a===so&&(Wn===2||Wn===9)||a.cancelPendingCommit!==null)&&(ec(a,0),pl(a,bn,da,!1)),Me(a,A),((yn&2)===0||a!==so)&&(a===so&&((yn&2)===0&&(ou|=A),Ho===4&&pl(a,bn,da,!1)),wo(a))}i(bi,"scheduleUpdateOnFiber");function Qh(a,s,A){if((yn&6)!==0)throw Error(c(327));var g=!A&&(s&127)===0&&(s&a.expiredLanes)===0||$(a,s),y=g?Dy(a,s):oA(a,s,!0),I=g;do{if(y===0){nu&&!g&&pl(a,s,0,!1);break}else{if(A=a.current.alternate,I&&!by(A)){y=oA(a,s,!1),I=!1;continue}if(y===2){if(I=s,a.errorRecoveryDisabledLanes&I)var _=0;else _=a.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){s=_;e:{var F=a;y=Af;var pe=Xr&&F.current.memoizedState.isDehydrated;if(pe&&(ec(F,_).flags|=256),_=oA(F,_,!1),_!==2){if(uE&&!pe){F.errorRecoveryDisabledLanes|=I,ou|=I,y=4;break e}I=Pi,Pi=y,I!==null&&(Pi===null?Pi=I:Pi.push.apply(Pi,I))}y=_}if(I=!1,y!==2)continue}}if(y===1){ec(a,0),pl(a,s,0,!0);break}e:{switch(g=a,I=y,I){case 0:case 1:throw Error(c(345));case 4:if((s&4194048)!==s)break;case 6:pl(g,s,da,!uc);break e;case 2:Pi=null;break;case 3:case 5:break;default:throw Error(c(329))}if((s&62914560)===s&&(y=df+300-Vn(),10<y)){if(pl(g,s,da,!uc),H(g,0,!0)!==0)break e;Hs=s,g.timeoutHandle=Hy(Tg.bind(null,g,A,Pi,Rp,bp,s,da,ou,BA,uc,I,"Throttled",-0,0),y);break e}Tg(g,A,Pi,Rp,bp,s,da,ou,BA,uc,I,null,-0,0)}}break}while(!0);wo(a)}i(Qh,"performWorkOnRoot");function Tg(a,s,A,g,y,I,_,F,pe,Fe,rt,$e,Ct,zt){if(a.timeoutHandle=El,$e=s.subtreeFlags,$e&8192||($e&16785408)===16785408){$e=Gy(),Sh(s,I,$e);var Co=(I&62914560)===I?df-Vn():(I&4194048)===I?dE-Vn():0;if(Co=Fy($e,Co),Co!==null){Hs=I,a.cancelPendingCommit=Co(xh.bind(null,a,s,I,A,g,y,_,F,pe,rt,$e,null,Ct,zt)),pl(a,I,_,!Fe);return}}xh(a,s,I,A,g,y,_,F,pe)}i(Tg,"commitRootWhenReady");function by(a){for(var s=a;;){var A=s.tag;if((A===0||A===11||A===15)&&s.flags&16384&&(A=s.updateQueue,A!==null&&(A=A.stores,A!==null)))for(var g=0;g<A.length;g++){var y=A[g],I=y.getSnapshot;y=y.value;try{if(!Wr(I(),y))return!1}catch{return!1}}if(A=s.child,s.subtreeFlags&16384&&A!==null)A.return=s,s=A;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}i(by,"isRenderConsistentWithExternalStores");function pl(a,s,A,g){s&=~AE,s&=~ou,a.suspendedLanes|=s,a.pingedLanes&=~s,g&&(a.warmLanes|=s),g=a.expirationTimes;for(var y=s;0<y;){var I=31-Fi(y),_=1<<I;g[I]=-1,y&=~_}A!==0&&Le(a,A,s)}i(pl,"markRootSuspended");function $l(){return(yn&6)===0?(ir(0,!1),!1):!0}i($l,"flushSyncWork");function kd(){if(In!==null){if(Wn===0)var a=In.return;else a=In,Eo=Di=null,G(a),Ha=null,sf=0,a=In;for(;a!==null;)yg(a.alternate,a),a=a.return;In=null}}i(kd,"resetWorkInProgressStack");function ec(a,s){var A=a.timeoutHandle;A!==El&&(a.timeoutHandle=El,Kh(A)),A=a.cancelPendingCommit,A!==null&&(a.cancelPendingCommit=null,A()),Hs=0,kd(),so=a,In=A=Qs(a.current,null),bn=s,Wn=0,Aa=null,uc=!1,nu=$(a,s),uE=!1,BA=da=AE=ou=Ac=Ho=0,Pi=Af=null,bp=!1,(s&8)!==0&&(s|=s&32);var g=a.entangledLanes;if(g!==0)for(a=a.entanglements,g&=s;0<g;){var y=31-Fi(g),I=1<<y;s|=a[y],g&=~I}return bl=s,Nn(),A}i(ec,"prepareFreshStack");function Ry(a,s){rn=null,_t.H=lf,s===EA||s===dp?(s=sn(),Wn=3):s===Ap?(s=sn(),Wn=4):Wn=s===Ep?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Aa=s,In===null&&(Ho=1,Bd(a,Je(s,a.current)))}i(Ry,"handleThrow");function wy(){var a=ua.current;return a===null?!0:(bn&4194048)===bn?Ua===null:(bn&62914560)===bn||(bn&536870912)!==0?a===Ua:!1}i(wy,"shouldRemainOnPreviousScreen");function bh(){var a=_t.H;return _t.H=lf,a===null?lf:a}i(bh,"pushDispatcher");function tA(){var a=_t.A;return _t.A=uv,a}i(tA,"pushAsyncDispatcher");function nA(){Ho=4,uc||(bn&4194048)!==bn&&ua.current!==null||(nu=!0),(Ac&134217727)===0&&(ou&134217727)===0||so===null||pl(so,bn,da,!1)}i(nA,"renderDidSuspendDelayIfPossible");function oA(a,s,A){var g=yn;yn|=2;var y=bh(),I=tA();(so!==a||bn!==s)&&(Rp=null,ec(a,s)),s=!1;var _=Ho;e:do try{if(Wn!==0&&In!==null){var F=In,pe=Aa;switch(Wn){case 8:kd(),_=6;break e;case 3:case 2:case 9:case 6:ua.current===null&&(s=!0);var Fe=Wn;if(Wn=0,Aa=null,Fc(a,F,pe,Fe),A&&nu){_=0;break e}break;default:Fe=Wn,Wn=0,Aa=null,Fc(a,F,pe,Fe)}}xy(),_=Ho;break}catch(rt){Ry(a,rt)}while(!0);return s&&a.shellSuspendCounter++,Eo=Di=null,yn=g,_t.H=y,_t.A=I,In===null&&(so=null,bn=0,Nn()),_}i(oA,"renderRootSync");function xy(){for(;In!==null;)_g(In)}i(xy,"workLoopSync");function Dy(a,s){var A=yn;yn|=2;var g=bh(),y=tA();so!==a||bn!==s?(Rp=null,SA=Vn()+500,ec(a,s)):nu=$(a,s);e:do try{if(Wn!==0&&In!==null){s=In;var I=Aa;t:switch(Wn){case 1:Wn=0,Aa=null,Fc(a,s,I,1);break;case 2:case 9:if(An(I)){Wn=0,Aa=null,wh(s);break}s=i(function(){Wn!==2&&Wn!==9||so!==a||(Wn=7),wo(a)},"lanes"),I.then(s,s);break e;case 3:Wn=7;break e;case 4:Wn=5;break e;case 7:An(I)?(Wn=0,Aa=null,wh(s)):(Wn=0,Aa=null,Fc(a,s,I,7));break;case 5:var _=null;switch(In.tag){case 26:_=In.memoizedState;case 5:case 27:var F=In,pe=F.type,Fe=F.pendingProps;if(_?np(_):Zr(F.stateNode,pe,Fe)){Wn=0,Aa=null;var rt=F.sibling;if(rt!==null)In=rt;else{var $e=F.return;$e!==null?(In=$e,vs($e)):In=null}break t}}Wn=0,Aa=null,Fc(a,s,I,5);break;case 6:Wn=0,Aa=null,Fc(a,s,I,6);break;case 8:kd(),Ho=6;break e;default:throw Error(c(462))}}Rh();break}catch(Ct){Ry(a,Ct)}while(!0);return Eo=Di=null,_t.H=g,_t.A=y,yn=A,In!==null?0:(so=null,bn=0,Nn(),Ho)}i(Dy,"renderRootConcurrent");function Rh(){for(;In!==null&&!sv();)_g(In)}i(Rh,"workLoopConcurrentByScheduler");function _g(a){var s=mg(a.alternate,a,bl);a.memoizedProps=a.pendingProps,s===null?vs(a):In=s}i(_g,"performUnitOfWork");function wh(a){var s=a,A=s.alternate;switch(s.tag){case 15:case 0:s=ph(A,s,s.pendingProps,s.type,void 0,bn);break;case 11:s=ph(A,s,s.pendingProps,s.type.render,s.ref,bn);break;case 5:G(s);default:yg(A,s),s=In=Nh(s,bl),s=mg(A,s,bl)}a.memoizedProps=a.pendingProps,s===null?vs(a):In=s}i(wh,"replaySuspendedUnitOfWork");function Fc(a,s,A,g){Eo=Di=null,G(s),Ha=null,sf=0;var y=s.return;try{if(si(a,y,s,A,bn)){Ho=1,Bd(a,Je(A,a.current)),In=null;return}}catch(I){if(y!==null)throw In=y,I;Ho=1,Bd(a,Je(A,a.current)),In=null;return}s.flags&32768?(hn||g===1?a=!0:nu||(bn&536870912)!==0?a=!1:(uc=a=!0,(g===2||g===9||g===3||g===6)&&(g=ua.current,g!==null&&g.tag===13&&(g.flags|=16384))),Ud(s,a)):vs(s)}i(Fc,"throwAndUnwindWorkLoop");function vs(a){var s=a;do{if((s.flags&32768)!==0){Ud(s,uc);return}a=s.return;var A=Lc(s.alternate,s,bl);if(A!==null){In=A;return}if(s=s.sibling,s!==null){In=s;return}In=s=a}while(s!==null);Ho===0&&(Ho=5)}i(vs,"completeUnitOfWork");function Ud(a,s){do{var A=$a(a.alternate,a);if(A!==null){A.flags&=32767,In=A;return}if(A=a.return,A!==null&&(A.flags|=32768,A.subtreeFlags=0,A.deletions=null),!s&&(a=a.sibling,a!==null)){In=a;return}In=a=A}while(a!==null);Ho=6,In=null}i(Ud,"unwindUnitOfWork");function xh(a,s,A,g,y,I,_,F,pe){a.cancelPendingCommit=null;do Wo();while($n!==0);if((yn&6)!==0)throw Error(c(327));if(s!==null){if(s===a.current)throw Error(c(177));if(I=s.lanes|s.childLanes,I|=sE,ge(a,A,I,_,F,pe),a===so&&(In=so=null,bn=0),fc=s,Rl=a,Hs=A,wp=I,xp=y,RI=g,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,JS(Bl,function(){return Dh(),null})):(a.callbackNode=null,a.callbackPriority=0),g=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||g){g=_t.T,_t.T=null,y=ws(),Qr(2),_=yn,yn|=4;try{Iy(a,s,A)}finally{yn=_,Qr(y),_t.T=g}}$n=1,Ng(),Mg(),Og()}}i(xh,"commitRoot");function Ng(){if($n===1){$n=0;var a=Rl,s=fc,A=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||A){A=_t.T,_t.T=null;var g=ws();Qr(2);var y=yn;yn|=4;try{Nd(s,a),Jd(a.containerInfo)}finally{yn=y,Qr(g),_t.T=A}}a.current=s,$n=2}}i(Ng,"flushMutationEffects");function Mg(){if($n===2){$n=0;var a=Rl,s=fc,A=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||A){A=_t.T,_t.T=null;var g=ws();Qr(2);var y=yn;yn|=4;try{Ih(a,s.alternate,s)}finally{yn=y,Qr(g),_t.T=A}}$n=3}}i(Mg,"flushLayoutEffects");function Og(){if($n===4||$n===3){$n=0,zi();var a=Rl,s=fc,A=Hs,g=RI;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?$n=5:($n=0,fc=Rl=null,Ty(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(dc=null),re(A),s=s.stateNode,$o&&typeof $o.onCommitFiberRoot=="function")try{$o.onCommitFiberRoot(Zc,s,void 0,(s.current.flags&128)===128)}catch{}if(g!==null){s=_t.T,y=ws(),Qr(2),_t.T=null;try{for(var I=a.onRecoverableError,_=0;_<g.length;_++){var F=g[_];I(F.value,{componentStack:F.stack})}}finally{_t.T=s,Qr(y)}}(Hs&3)!==0&&Wo(),wo(a),y=a.pendingLanes,(A&261930)!==0&&(y&42)!==0?a===Dp?vA++:(vA=0,Dp=a):vA=0,Xr&&fI(),ir(0,!1)}}i(Og,"flushSpawnedWork");function Ty(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Ro(s)))}i(Ty,"releaseRootPooledCache");function Wo(){return Ng(),Mg(),Og(),Dh()}i(Wo,"flushPendingEffects");function Dh(){if($n!==5)return!1;var a=Rl,s=wp;wp=0;var A=re(Hs),g=32>A?32:A;A=_t.T;var y=ws();try{Qr(g),_t.T=null,g=xp,xp=null;var I=Rl,_=Hs;if($n=0,fc=Rl=null,Hs=0,(yn&6)!==0)throw Error(c(331));var F=yn;if(yn|=4,wg(I.current),Qy(I,I.current,_,g),yn=F,ir(0,!1),$o&&typeof $o.onPostCommitFiberRoot=="function")try{$o.onPostCommitFiberRoot(Zc,I)}catch{}return!0}finally{Qr(y),_t.T=A,Ty(a,s)}}i(Dh,"flushPassiveEffects");function Th(a,s,A){s=Je(A,s),s=ju(a.stateNode,s,2),a=ii(a,s,2),a!==null&&(Me(a,2),wo(a))}i(Th,"captureCommitPhaseErrorOnRoot");function Un(a,s,A){if(a.tag===3)Th(a,a,A);else for(;s!==null;){if(s.tag===3){Th(s,a,A);break}else if(s.tag===1){var g=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(dc===null||!dc.has(g))){a=Je(A,a),A=Sd(2),g=ii(s,A,2),g!==null&&(ug(A,g,s,a),Me(g,2),wo(g));break}}s=s.return}}i(Un,"captureCommitPhaseError");function Hg(a,s,A){var g=a.pingCache;if(g===null){g=a.pingCache=new Av;var y=new Set;g.set(s,y)}else y=g.get(s),y===void 0&&(y=new Set,g.set(s,y));y.has(A)||(uE=!0,y.add(A),a=Ld.bind(null,a,s,A),s.then(a,a))}i(Hg,"attachPingListener");function Ld(a,s,A){var g=a.pingCache;g!==null&&g.delete(s),a.pingedLanes|=a.suspendedLanes&A,a.warmLanes&=~A,so===a&&(bn&A)===A&&(Ho===4||Ho===3&&(bn&62914560)===bn&&300>Vn()-df?(yn&2)===0&&ec(a,0):AE|=A,BA===bn&&(BA=0)),wo(a)}i(Ld,"pingSuspendedRoot");function _h(a,s){s===0&&(s=Ee()),a=ri(a,s),a!==null&&(Me(a,s),wo(a))}i(_h,"retryTimedOutBoundary");function kg(a){var s=a.memoizedState,A=0;s!==null&&(A=s.retryLane),_h(a,A)}i(kg,"retryDehydratedSuspenseBoundary");function _y(a,s){var A=0;switch(a.tag){case 31:case 13:var g=a.stateNode,y=a.memoizedState;y!==null&&(A=y.retryLane);break;case 19:g=a.stateNode;break;case 22:g=a.stateNode._retryCache;break;default:throw Error(c(314))}g!==null&&g.delete(s),_h(a,A)}i(_y,"resolveRetryWakeable");function JS(a,s){return ap(a,s)}i(JS,"scheduleCallback");function Ug(a,s,A,g){this.tag=a,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}i(Ug,"FiberNode");function Gd(a){return a=a.prototype,!(!a||!a.isReactComponent)}i(Gd,"shouldConstruct");function Qs(a,s){var A=a.alternate;return A===null?(A=o(a.tag,s,a.key,a.mode),A.elementType=a.elementType,A.type=a.type,A.stateNode=a.stateNode,A.alternate=a,a.alternate=A):(A.pendingProps=s,A.type=a.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=a.flags&65011712,A.childLanes=a.childLanes,A.lanes=a.lanes,A.child=a.child,A.memoizedProps=a.memoizedProps,A.memoizedState=a.memoizedState,A.updateQueue=a.updateQueue,s=a.dependencies,A.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},A.sibling=a.sibling,A.index=a.index,A.ref=a.ref,A.refCleanup=a.refCleanup,A}i(Qs,"createWorkInProgress");function Nh(a,s){a.flags&=65011714;var A=a.alternate;return A===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=A.childLanes,a.lanes=A.lanes,a.child=A.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=A.memoizedProps,a.memoizedState=A.memoizedState,a.updateQueue=A.updateQueue,a.type=A.type,s=A.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}i(Nh,"resetWorkInProgress");function Fd(a,s,A,g,y,I){var _=0;if(g=a,typeof a=="function")Gd(a)&&(_=1);else if(typeof a=="string")_=Ta&&Ar?eE(a,A,$r.current)?26:ip(a)?27:5:Ta?eE(a,A,$r.current)?26:5:Ar&&ip(a)?27:5;else e:switch(a){case qg:return a=o(31,A,s,y),a.elementType=qg,a.lanes=I,a;case zc:return ml(A.children,y,I,s);case kh:_=8,y|=24;break;case qd:return a=o(12,A,s,y|2),a.elementType=qd,a.lanes=I,a;case Kc:return a=o(13,A,s,y),a.elementType=Kc,a.lanes=I,a;case Zn:return a=o(19,A,s,y),a.elementType=Zn,a.lanes=I,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case hl:_=10;break e;case Yg:_=9;break e;case rA:_=11;break e;case Uh:_=14;break e;case nc:_=16,g=null;break e}_=29,A=Error(c(130,a===null?"null":typeof a,"")),g=null}return s=o(_,A,s,y),s.elementType=a,s.type=g,s.lanes=I,s}i(Fd,"createFiberFromTypeAndProps");function ml(a,s,A,g){return a=o(7,a,g,s),a.lanes=A,a}i(ml,"createFiberFromFragment");function zd(a,s,A){return a=o(6,a,null,s),a.lanes=A,a}i(zd,"createFiberFromText");function Lg(a){var s=o(18,null,null,0);return s.stateNode=a,s}i(Lg,"createFiberFromDehydratedFragment");function Gg(a,s,A){return s=o(4,a.children!==null?a.children:[],a.key,s),s.lanes=A,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}i(Gg,"createFiberFromPortal");function Mh(a,s,A,g,y,I,_,F,pe){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=El,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ce(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ce(0),this.hiddenUpdates=Ce(null),this.identifierPrefix=g,this.onUncaughtError=y,this.onCaughtError=I,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pe,this.incompleteTransitions=new Map}i(Mh,"FiberRootNode");function Kd(a,s,A,g,y,I,_,F,pe,Fe,rt,$e){return a=new Mh(a,s,A,_,pe,Fe,rt,$e,F),s=1,I===!0&&(s|=24),I=o(3,null,null,s),a.current=I,I.stateNode=a,s=Qn(),s.refCount++,a.pooledCache=s,s.refCount++,I.memoizedState={element:g,isDehydrated:A,cache:s},Ba(I),a}i(Kd,"createFiberRoot");function Fg(a){return a?(a=Xc,a):Xc}i(Fg,"getContextForSubtree");function Oh(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(c(188)):(a=Object.keys(a).join(","),Error(c(268,a)));return a=m(s),a=a!==null?E(a):null,a===null?null:Pd(a.stateNode)}i(Oh,"findHostInstance");function zg(a,s,A,g,y,I){y=Fg(y),g.context===null?g.context=y:g.pendingContext=y,g=Jr(s),g.payload={element:A},I=I===void 0?null:I,I!==null&&(g.callback=I),A=ii(a,g,s),A!==null&&(bi(A,a,s),Es(A,a,s))}i(zg,"updateContainerImpl");function Hh(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var A=a.retryLane;a.retryLane=A!==0&&A<s?A:s}}i(Hh,"markRetryLaneImpl");function ns(a,s){Hh(a,s),(a=a.alternate)&&Hh(a,s)}i(ns,"markRetryLaneIfNotHydrated");var dn={},jS=Nt(),Ri=l0(),la=Object.assign,Kg=Symbol.for("react.element"),Yd=Symbol.for("react.transitional.element"),tc=Symbol.for("react.portal"),zc=Symbol.for("react.fragment"),kh=Symbol.for("react.strict_mode"),qd=Symbol.for("react.profiler"),Yg=Symbol.for("react.consumer"),hl=Symbol.for("react.context"),rA=Symbol.for("react.forward_ref"),Kc=Symbol.for("react.suspense"),Zn=Symbol.for("react.suspense_list"),Uh=Symbol.for("react.memo"),nc=Symbol.for("react.lazy"),qg=Symbol.for("react.activity"),bs=Symbol.for("react.memo_cache_sentinel"),Lh=Symbol.iterator,Gh=Symbol.for("react.client.reference"),oc=Array.isArray,_t=jS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ny=e.rendererVersion,Fh=e.rendererPackageName,zh=e.extraDevToolsConfig,Pd=e.getPublicInstance,VS=e.getRootHostContext,My=e.getChildHostContext,XS=e.prepareForCommit,Jd=e.resetAfterCommit,Rs=e.createInstance;e.cloneMutableInstance;var Pg=e.appendInitialChild,Oy=e.finalizeInitialChildren,jd=e.shouldSetTextContent,Jg=e.createTextInstance;e.cloneMutableTextInstance;var Hy=e.scheduleTimeout,Kh=e.cancelTimeout,El=e.noTimeout,Da=e.isPrimaryRenderer;e.warnsIfNotActing;var ui=e.supportsMutation,os=e.supportsPersistence,Xr=e.supportsHydration,ky=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var ZS=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var Qr=e.setCurrentUpdatePriority,ws=e.getCurrentUpdatePriority,rs=e.resolveUpdatePriority;e.trackSchedulerEvent,e.resolveEventType,e.resolveEventTimeStamp;var Yh=e.shouldAttemptEagerTransition,Uy=e.detachDeletedInstance;e.requestPostPaintCallback;var Ly=e.maySuspendCommit,WS=e.maySuspendCommitOnUpdate,iA=e.maySuspendCommitInSyncRender,Zr=e.preloadInstance,Gy=e.startSuspendingCommit,Ai=e.suspendInstance;e.suspendOnActiveViewTransition;var Fy=e.waitForCommitToBeReady;e.getSuspendedCommitReason;var wi=e.NotPendingTransition,rc=e.HostTransitionContext,Yc=e.resetFormInstance;e.bindToConsole;var zy=e.supportsMicrotasks,xs=e.scheduleMicrotask,qc=e.supportsTestSelectors,qh=e.findFiberRoot,is=e.getBoundingRect,Ky=e.getTextContent,Ds=e.isHiddenSubtree,Yy=e.matchAccessibilityRole,Vd=e.setFocusIfFocusable,Pc=e.setupIntersectionObserver,qy=e.appendChild,Py=e.appendChildToContainer,Xd=e.commitTextUpdate,Jy=e.commitMount,jg=e.commitUpdate,jy=e.insertBefore,Vy=e.insertInContainerBefore,Ph=e.removeChild,Jh=e.removeChildFromContainer,Vg=e.resetTextContent,Xy=e.hideInstance,Xg=e.hideTextInstance,$S=e.unhideInstance,Zy=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var ca=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var Wy=e.cloneInstance,mo=e.createContainerChildSet,jh=e.appendChildToContainerChildSet,$y=e.finalizeContainerChildren,eI=e.replaceContainerChildren,Cl=e.cloneHiddenInstance,Zd=e.cloneHiddenTextInstance,Wd=e.isSuspenseInstancePending,$d=e.isSuspenseInstanceFallback,Jc=e.getSuspenseInstanceFallbackErrorDetails,aA=e.registerSuspenseInstanceRetry,tI=e.canHydrateFormStateMarker,nI=e.isFormStateMarkerMatching,Vh=e.getNextHydratableSibling,oI=e.getNextHydratableSiblingAfterSingleton,Zg=e.getFirstHydratableChild,Wg=e.getFirstHydratableChildWithinContainer,Xh=e.getFirstHydratableChildWithinActivityInstance,rI=e.getFirstHydratableChildWithinSuspenseInstance,ev=e.getFirstHydratableChildWithinSingleton,tv=e.canHydrateInstance,iI=e.canHydrateTextInstance,aI=e.canHydrateActivityInstance,nv=e.canHydrateSuspenseInstance,sA=e.hydrateInstance,$g=e.hydrateTextInstance,sI=e.hydrateActivityInstance,Zh=e.hydrateSuspenseInstance,lI=e.getNextHydratableInstanceAfterActivityInstance,cI=e.getNextHydratableInstanceAfterSuspenseInstance,uI=e.commitHydratedInstance,ov=e.commitHydratedContainer,AI=e.commitHydratedActivityInstance,lA=e.commitHydratedSuspenseInstance,dI=e.finalizeHydratedChildren,fI=e.flushHydrationEvents;e.clearActivityBoundary;var Ln=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Wh=e.clearSuspenseBoundaryFromContainer,rv=e.hideDehydratedBoundary,gI=e.unhideDehydratedBoundary,pI=e.shouldDeleteUnhydratedTailInstances;e.diffHydratedPropsForDevWarnings,e.diffHydratedTextForDevWarnings,e.describeHydratableInstanceForDevWarnings;var iv=e.validateHydratableInstance,$h=e.validateHydratableTextInstance,Ta=e.supportsResources,eE=e.isHostHoistableType,ep=e.getHoistableRoot,cA=e.getResource,mI=e.acquireResource,hI=e.releaseResource,jc=e.hydrateHoistable,tp=e.mountHoistable,tE=e.unmountHoistable,EI=e.createHoistableInstance,CI=e.prepareToCommitHoistables,av=e.mayResourceSuspendCommit,np=e.preloadResource,yl=e.suspendResource,Ar=e.supportsSingletons,op=e.resolveSingletonInstance,rp=e.acquireSingletonInstance,ic=e.releaseSingletonInstance,ip=e.isHostSingletonType,Vc=e.isSingletonScope,ef=[],uA=-1,Xc={},Fi=Math.clz32?Math.clz32:D,yI=Math.log,II=Math.LN2,tf=256,nf=262144,AA=4194304,ap=Ri.unstable_scheduleCallback,fn=Ri.unstable_cancelCallback,sv=Ri.unstable_shouldYield,zi=Ri.unstable_requestPaint,Vn=Ri.unstable_now,BI=Ri.unstable_ImmediatePriority,Il=Ri.unstable_UserBlockingPriority,Bl=Ri.unstable_NormalPriority,dA=Ri.unstable_IdlePriority,sp=Ri.log,nE=Ri.unstable_setDisableYieldValue,Zc=null,$o=null,Wr=typeof Object.is=="function"?Object.is:Se,lp=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},oE=Object.prototype.hasOwnProperty,fA,Ki,of=!1,SI=new WeakMap,Wc=[],gA=0,dr=null,ce=0,_a=[],Na=0,Sl=null,xi=1,Ts="",$r=N(null),rf=N(null),ac=N(null),cp=N(null),br=null,ho=null,hn=!1,vl=null,Ma=!1,rE=Error(c(519)),_s=N(null),Di=null,Eo=null,Ns=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:i(function(A,g){a.push(g)},"addEventListener")};this.abort=function(){s.aborted=!0,a.forEach(function(A){return A()})}},di=Ri.unstable_scheduleCallback,lv=Ri.unstable_NormalPriority,Do={$$typeof:hl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},er=null,Yi=null,iE=!1,pA=!1,$c=!1,as=0,af=null,aE=0,mA=0,hA=null,up=_t.S;_t.S=function(a,s){dE=Vn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&Ia(a,s),up!==null&&up(a,s)};var sc=N(null),EA=Error(c(460)),Ap=Error(c(474)),dp=Error(c(542)),fp={then:i(function(){},"then")},Oa=null,Ha=null,sf=0,eu=Dt(!0),vI=Dt(!1),ka=[],ss=0,sE=0,lc=!1,lE=!1,Ms=N(null),gp=N(0),ua=N(null),Ua=null,tr=N(0),Ql=0,rn=null,oo=null,fr=null,pp=!1,CA=!1,tu=!1,mp=0,yA=0,IA=null,cv=0,lf={readContext:Ze,use:ve,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useInsertionEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useSyncExternalStore:to,useId:to,useHostTransitionStatus:to,useFormState:to,useActionState:to,useOptimistic:to,useMemoCache:to,useCacheRefresh:to};lf.useEffectEvent=to;var QI={readContext:Ze,use:ve,useCallback:i(function(a,s){return Y().memoizedState=[a,s===void 0?null:s],a},"useCallback"),useContext:Ze,useEffect:Cd,useImperativeHandle:i(function(a,s,A){A=A!=null?A.concat([a]):null,Yl(4194308,4,Ke.bind(null,s,a),A)},"useImperativeHandle"),useLayoutEffect:i(function(a,s){return Yl(4194308,4,a,s)},"useLayoutEffect"),useInsertionEffect:i(function(a,s){Yl(4,2,a,s)},"useInsertionEffect"),useMemo:i(function(a,s){var A=Y();s=s===void 0?null:s;var g=a();if(tu){ee(!0);try{a()}finally{ee(!1)}}return A.memoizedState=[g,s],g},"useMemo"),useReducer:i(function(a,s,A){var g=Y();if(A!==void 0){var y=A(s);if(tu){ee(!0);try{A(s)}finally{ee(!1)}}}else y=s;return g.memoizedState=g.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},g.queue=a,a=a.dispatch=jr.bind(null,rn,a),[g.memoizedState,a]},"useReducer"),useRef:i(function(a){var s=Y();return a={current:a},s.memoizedState=a},"useRef"),useState:i(function(a){a=Vo(a);var s=a.queue,A=lg.bind(null,rn,s);return s.dispatch=A,[a.memoizedState,A]},"useState"),useDebugValue:dt,useDeferredValue:i(function(a,s){var A=Y();return Pl(A,a,s)},"useDeferredValue"),useTransition:i(function(){var a=Vo(!1);return a=ai.bind(null,rn,a.queue,!0,!1),Y().memoizedState=a,[!1,a]},"useTransition"),useSyncExternalStore:i(function(a,s,A){var g=rn,y=Y();if(hn){if(A===void 0)throw Error(c(407));A=A()}else{if(A=s(),so===null)throw Error(c(349));(bn&127)!==0||Mn(g,s,A)}y.memoizedState=A;var I={value:A,getSnapshot:s};return y.queue=I,Cd(lr.bind(null,g,I,a),[a]),g.flags|=2048,vr(9,{destroy:void 0},no.bind(null,g,I,A,s),null),A},"useSyncExternalStore"),useId:i(function(){var a=Y(),s=so.identifierPrefix;if(hn){var A=Ts,g=xi;A=(g&~(1<<32-Fi(g)-1)).toString(32)+A,s="_"+s+"R_"+A,A=mp++,0<A&&(s+="H"+A.toString(32)),s+="_"}else A=cv++,s="_"+s+"r_"+A.toString(32)+"_";return a.memoizedState=s},"useId"),useHostTransitionStatus:ur,useFormState:aa,useActionState:aa,useOptimistic:i(function(a){var s=Y();s.memoizedState=s.baseState=a;var A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=A,s=Ju.bind(null,rn,!0,A),A.dispatch=s,[a,s]},"useOptimistic"),useMemoCache:We,useCacheRefresh:i(function(){return Y().memoizedState=Hc.bind(null,rn)},"useCacheRefresh"),useEffectEvent:i(function(a){var s=Y(),A={impl:a};return s.memoizedState=A,function(){if((yn&2)!==0)throw Error(c(440));return A.impl.apply(void 0,arguments)}},"useEffectEvent")},cE={readContext:Ze,use:ve,useCallback:mn,useContext:Ze,useEffect:Pu,useImperativeHandle:St,useInsertionEffect:Ne,useLayoutEffect:je,useMemo:Xo,useReducer:lt,useRef:Za,useState:i(function(){return lt(qe)},"useState"),useDebugValue:dt,useDeferredValue:i(function(a,s){var A=V();return Ao(A,oo.memoizedState,a,s)},"useDeferredValue"),useTransition:i(function(){var a=lt(qe)[0],s=V().memoizedState;return[typeof a=="boolean"?a:Oe(a),s]},"useTransition"),useSyncExternalStore:_n,useId:_r,useHostTransitionStatus:ur,useFormState:qu,useActionState:qu,useOptimistic:i(function(a,s){var A=V();return cr(A,oo,a,s)},"useOptimistic"),useMemoCache:We,useCacheRefresh:Qa};cE.useEffectEvent=J;var bI={readContext:Ze,use:ve,useCallback:mn,useContext:Ze,useEffect:Pu,useImperativeHandle:St,useInsertionEffect:Ne,useLayoutEffect:je,useMemo:Xo,useReducer:nn,useRef:Za,useState:i(function(){return nn(qe)},"useState"),useDebugValue:dt,useDeferredValue:i(function(a,s){var A=V();return oo===null?Pl(A,a,s):Ao(A,oo.memoizedState,a,s)},"useDeferredValue"),useTransition:i(function(){var a=nn(qe)[0],s=V().memoizedState;return[typeof a=="boolean"?a:Oe(a),s]},"useTransition"),useSyncExternalStore:_n,useId:_r,useHostTransitionStatus:ur,useFormState:Kl,useActionState:Kl,useOptimistic:i(function(a,s){var A=V();return oo!==null?cr(A,oo,a,s):(A.baseState=a,[a,A.queue.dispatch])},"useOptimistic"),useMemoCache:We,useCacheRefresh:Qa};bI.useEffectEvent=J;var hp={enqueueSetState:i(function(a,s,A){a=a._reactInternals;var g=Gi(),y=Jr(g);y.payload=s,A!=null&&(y.callback=A),s=ii(a,y,g),s!==null&&(bi(s,a,g),Es(s,a,g))},"enqueueSetState"),enqueueReplaceState:i(function(a,s,A){a=a._reactInternals;var g=Gi(),y=Jr(g);y.tag=1,y.payload=s,A!=null&&(y.callback=A),s=ii(a,y,g),s!==null&&(bi(s,a,g),Es(s,a,g))},"enqueueReplaceState"),enqueueForceUpdate:i(function(a,s){a=a._reactInternals;var A=Gi(),g=Jr(A);g.tag=2,s!=null&&(g.callback=s),s=ii(a,g,A),s!==null&&(bi(s,a,A),Es(s,a,A))},"enqueueForceUpdate")},Ep=Error(c(461)),gr=!1,Cp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Os=!1,nr=!1,cf=!1,yp=typeof WeakSet=="function"?WeakSet:Set,Mr=null,pr=null,qi=!1,ls=null,cc=8192,uv={getCacheForType:i(function(a){var s=Ze(Do),A=s.data.get(a);return A===void 0&&(A=a(),s.data.set(a,A)),A},"getCacheForType"),cacheSignal:i(function(){return Ze(Do).controller.signal},"cacheSignal")},Ip=0,Bp=1,Sp=2,vp=3,Qp=4;if(typeof Symbol=="function"&&Symbol.for){var uf=Symbol.for;Ip=uf("selector.component"),Bp=uf("selector.has_pseudo_class"),Sp=uf("selector.role"),vp=uf("selector.test_id"),Qp=uf("selector.text")}var Av=typeof WeakMap=="function"?WeakMap:Map,yn=0,so=null,In=null,bn=0,Wn=0,Aa=null,uc=!1,nu=!1,uE=!1,bl=0,Ho=0,Ac=0,ou=0,AE=0,da=0,BA=0,Af=null,Pi=null,bp=!1,df=0,dE=0,SA=1/0,Rp=null,dc=null,$n=0,Rl=null,fc=null,Hs=0,wp=0,xp=null,RI=null,vA=0,Dp=null;return dn.attemptContinuousHydration=function(a){if(a.tag===13||a.tag===31){var s=ri(a,67108864);s!==null&&bi(s,a,67108864),ns(a,67108864)}},dn.attemptHydrationAtCurrentPriority=function(a){if(a.tag===13||a.tag===31){var s=Gi();s=te(s);var A=ri(a,s);A!==null&&bi(A,a,s),ns(a,s)}},dn.attemptSynchronousHydration=function(a){switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=k(a.pendingLanes);if(s!==0){for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var A=1<<31-Fi(s);a.entanglements[1]|=A,s&=~A}wo(a),(yn&6)===0&&(SA=Vn()+500,ir(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&bi(s,a,2),$l(),ns(a,2)}},dn.batchedUpdates=function(a,s){return a(s)},dn.createComponentSelector=function(a){return{$$typeof:Ip,value:a}},dn.createContainer=function(a,s,A,g,y,I,_,F,pe,Fe){return Kd(a,s,!1,null,A,g,I,null,_,F,pe,Fe)},dn.createHasPseudoClassSelector=function(a){return{$$typeof:Bp,value:a}},dn.createHydrationContainer=function(a,s,A,g,y,I,_,F,pe,Fe,rt,$e,Ct,zt){return a=Kd(A,g,!0,a,y,I,F,zt,pe,Fe,rt,$e),a.context=Fg(null),A=a.current,g=Gi(),g=te(g),y=Jr(g),y.callback=s??null,ii(A,y,g),s=g,a.current.lanes=s,Me(a,s),wo(a),a},dn.createPortal=function(a,s,A){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tc,key:g==null?null:""+g,children:a,containerInfo:s,implementation:A}},dn.createRoleSelector=function(a){return{$$typeof:Sp,value:a}},dn.createTestNameSelector=function(a){return{$$typeof:vp,value:a}},dn.createTextSelector=function(a){return{$$typeof:Qp,value:a}},dn.defaultOnCaughtError=function(a){console.error(a)},dn.defaultOnRecoverableError=function(a){lp(a)},dn.defaultOnUncaughtError=function(a){lp(a)},dn.deferredUpdates=function(a){var s=_t.T,A=ws();try{return Qr(32),_t.T=null,a()}finally{Qr(A),_t.T=s}},dn.discreteUpdates=function(a,s,A,g,y){var I=_t.T,_=ws();try{return Qr(2),_t.T=null,a(s,A,g,y)}finally{Qr(_),_t.T=I,yn===0&&(SA=Vn()+500)}},dn.findAllNodes=Od,dn.findBoundingRects=function(a,s){if(!qc)throw Error(c(363));s=Od(a,s),a=[];for(var A=0;A<s.length;A++)a.push(is(s[A]));for(s=a.length-1;0<s;s--){A=a[s];for(var g=A.x,y=g+A.width,I=A.y,_=I+A.height,F=s-1;0<=F;F--)if(s!==F){var pe=a[F],Fe=pe.x,rt=Fe+pe.width,$e=pe.y,Ct=$e+pe.height;if(g>=Fe&&I>=$e&&y<=rt&&_<=Ct){a.splice(s,1);break}else if(g!==Fe||A.width!==pe.width||Ct<I||$e>_){if(!(I!==$e||A.height!==pe.height||rt<g||Fe>y)){Fe>g&&(pe.width+=Fe-g,pe.x=g),rt<y&&(pe.width=y-Fe),a.splice(s,1);break}}else{$e>I&&(pe.height+=$e-I,pe.y=I),Ct<_&&(pe.height=_-$e),a.splice(s,1);break}}}return a},dn.findHostInstance=Oh,dn.findHostInstanceWithNoPortals=function(a){return a=m(a),a=a!==null?S(a):null,a===null?null:Pd(a.stateNode)},dn.findHostInstanceWithWarning=function(a){return Oh(a)},dn.flushPassiveEffects=Wo,dn.flushSyncFromReconciler=function(a){var s=yn;yn|=1;var A=_t.T,g=ws();try{if(Qr(2),_t.T=null,a)return a()}finally{Qr(g),_t.T=A,yn=s,(yn&6)===0&&ir(0,!1)}},dn.flushSyncWork=$l,dn.focusWithin=function(a,s){if(!qc)throw Error(c(363));for(a=eA(a),s=vh(a,s),s=Array.from(s),a=0;a<s.length;){var A=s[a++],g=A.tag;if(!Ds(A)){if((g===5||g===26||g===27)&&Vd(A.stateNode))return!0;for(A=A.child;A!==null;)s.push(A),A=A.sibling}}return!1},dn.getFindAllNodesFailureDescription=function(a,s){if(!qc)throw Error(c(363));var A=0,g=[];a=[eA(a),0];for(var y=0;y<a.length;){var I=a[y++],_=I.tag,F=a[y++],pe=s[F];if((_!==5&&_!==26&&_!==27||!Ds(I))&&(Md(I,pe)&&(g.push(Dg(pe)),F++,F>A&&(A=F)),F<s.length))for(I=I.child;I!==null;)a.push(I,F),I=I.sibling}if(A<s.length){for(a=[];A<s.length;A++)a.push(Dg(s[A]));return`findAllNodes was able to match part of the selector:
52
+ `+(g.join(" > ")+`
53
+
54
+ No matching component was found for:
55
+ `)+a.join(" > ")}return null},dn.getPublicRootInstance=function(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 27:case 5:return Pd(a.child.stateNode);default:return a.child.stateNode}},dn.injectIntoDevTools=function(){var a={bundleType:0,version:Ny,rendererPackageName:Fh,currentDispatcherRef:_t,reconcilerVersion:"19.2.0"};if(zh!==null&&(a.rendererConfig=zh),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")a=!1;else{var s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(s.isDisabled||!s.supportsFiber)a=!0;else{try{Zc=s.inject(a),$o=s}catch{}a=!!s.checkDCE}}return a},dn.isAlreadyRendering=function(){return(yn&6)!==0},dn.observeVisibleRects=function(a,s,A,g){if(!qc)throw Error(c(363));a=Od(a,s);var y=Pc(a,A,g).disconnect;return{disconnect:i(function(){y()},"disconnect")}},dn.shouldError=function(){return null},dn.shouldSuspend=function(){return!1},dn.startHostTransition=function(a,s,A,g){if(a.tag!==5)throw Error(c(476));var y=Ft(a).queue;ai(a,y,s,wi,A===null?r:function(){var I=Ft(a);return I.next===null&&(I=a.alternate.memoizedState),Jl(a,I.next.queue,{},Gi()),A(g)})},dn.updateContainer=function(a,s,A,g){var y=s.current,I=Gi();return zg(y,I,a,s,A,g),I},dn.updateContainerSync=function(a,s,A,g){return zg(s.current,2,a,s,A,g),2},dn};hC.exports.default=hC.exports;Object.defineProperty(hC.exports,"__esModule",{value:!0})});var $N=Yn((GZ,EC)=>{"use strict";process.env.NODE_ENV!=="production"&&(EC.exports=function(e){function o(t,n){for(t=t.memoizedState;t!==null&&0<n;)t=t.next,n--;return t}i(o,"findHook");function r(t,n,l,d){if(l>=n.length)return d;var p=n[l],h=dr(t)?t.slice():Vn({},t);return h[p]=r(t[p],n,l+1,d),h}i(r,"copyWithSetImpl");function c(t,n,l){if(n.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var d=0;d<l.length-1;d++)if(n[d]!==l[d]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return u(t,n,l,0)}}i(c,"copyWithRename");function u(t,n,l,d){var p=n[d],h=dr(t)?t.slice():Vn({},t);return d+1===n.length?(h[l[d]]=h[p],dr(h)?h.splice(p,1):delete h[p]):h[p]=u(t[p],n,l,d+1),h}i(u,"copyWithRenameImpl");function f(t,n,l){var d=n[l],p=dr(t)?t.slice():Vn({},t);return l+1===n.length?(dr(p)?p.splice(d,1):delete p[d],p):(p[d]=f(t[d],n,l+1),p)}i(f,"copyWithDeleteImpl");function m(){return!1}i(m,"shouldSuspendImpl");function E(){return null}i(E,"shouldErrorImpl");function S(t,n,l,d){return new av(t,n,l,d)}i(S,"createFiber");function v(t,n){t.context===Co&&(II(n,t,null,null),Zd())}i(v,"scheduleRoot");function b(t,n){if(Ps!==null){var l=n.staleFamilies;n=n.updatedFamilies,lA(),CI(t.current,n,l),Zd()}}i(b,"scheduleRefresh");function N(t){Ps=t}i(N,"setRefreshHandler");function R(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}i(R,"warnInvalidHookAccess");function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}i(M,"warnInvalidContextAccess");function D(){}i(D,"noop");function k(){}i(k,"warnForMissingKey");function H(t){var n=[];return t.forEach(function(l){n.push(l)}),n.sort().join(", ")}i(H,"setToSortedString");function $(t){var n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}i($,"getNearestMountedFiber");function Qe(t){if($(t)!==t)throw Error("Unable to find node on an unmounted component.")}i(Qe,"assertIsMounted");function Ee(t){var n=t.alternate;if(!n){if(n=$(t),n===null)throw Error("Unable to find node on an unmounted component.");return n!==t?null:t}for(var l=t,d=n;;){var p=l.return;if(p===null)break;var h=p.alternate;if(h===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===h.child){for(h=p.child;h;){if(h===l)return Qe(p),t;if(h===d)return Qe(p),n;h=h.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=p,d=h;else{for(var B=!1,Q=p.child;Q;){if(Q===l){B=!0,l=p,d=h;break}if(Q===d){B=!0,d=p,l=h;break}Q=Q.sibling}if(!B){for(Q=h.child;Q;){if(Q===l){B=!0,l=h,d=p;break}if(Q===d){B=!0,d=h,l=p;break}Q=Q.sibling}if(!B)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?t:n}i(Ee,"findCurrentFiberUsingSlowPath");function Ce(t){return t=Ee(t),t!==null?Me(t):null}i(Ce,"findCurrentHostFiber");function Me(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=Me(t),n!==null)return n;t=t.sibling}return null}i(Me,"findCurrentHostFiberImpl");function ge(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(t.tag!==4&&(n=ge(t),n!==null))return n;t=t.sibling}return null}i(ge,"findCurrentHostFiberWithNoPortalsImpl");function Le(t){return t===null||typeof t!="object"?null:(t=Wc&&t[Wc]||t["@@iterator"],typeof t=="function"?t:null)}i(Le,"getIteratorFn");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===gA?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case dA:return"Fragment";case nE:return"Profiler";case sp:return"StrictMode";case lp:return"Suspense";case oE:return"SuspenseList";case of:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case Bl:return"Portal";case $o:return t.displayName||"Context";case Zc:return(t._context.displayName||"Context")+".Consumer";case Wr:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case fA:return n=t.displayName||null,n!==null?n:le(t.type)||"Memo";case Ki:n=t._payload,t=t._init;try{return le(t(n))}catch{}}return null}i(le,"getComponentNameFromType");function ue(t){var n=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(n);case 8:return n===sp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=t._debugInfo,n!=null){for(var l=n.length-1;0<=l;l--)if(typeof n[l].name=="string")return n[l].name}if(t.return!==null)return ue(t.return)}return null}i(ue,"getComponentNameFromFiber");function te(t){return{current:t}}i(te,"createCursor");function re(t,n){0>zt?console.error("Unexpected pop."):(n!==Ct[zt]&&console.error("Unexpected Fiber popped."),t.current=$e[zt],$e[zt]=null,Ct[zt]=null,zt--)}i(re,"pop");function ee(t,n,l){zt++,$e[zt]=t.current,Ct[zt]=l,t.current=n}i(ee,"push");function Se(t){return t>>>=0,t===0?32:31-(ru(t)/ae|0)|0}i(Se,"clz32Fallback");function tt(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}i(tt,"getHighestPriorityLanes");function Ie(t,n,l){var d=t.pendingLanes;if(d===0)return 0;var p=0,h=t.suspendedLanes,B=t.pingedLanes;t=t.warmLanes;var Q=d&134217727;return Q!==0?(d=Q&~h,d!==0?p=tt(d):(B&=Q,B!==0?p=tt(B):l||(l=Q&~t,l!==0&&(p=tt(l))))):(Q=d&~h,Q!==0?p=tt(Q):B!==0?p=tt(B):l||(l=d&~t,l!==0&&(p=tt(l)))),p===0?0:n!==0&&n!==p&&(n&h)===0&&(h=p&-p,l=n&-n,h>=l||h===32&&(l&4194048)!==0)?n:p}i(Ie,"getNextLanes");function Pe(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}i(Pe,"checkIfRootIsPrerendering");function ct(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}i(ct,"computeExpirationTime");function Je(){var t=Ve;return Ve<<=1,(Ve&62914560)===0&&(Ve=4194304),t}i(Je,"claimNextRetryLane");function W(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}i(W,"createLaneMap");function ut(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}i(ut,"markRootUpdated$1");function pt(t,n,l,d,p,h){var B=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var Q=t.entanglements,U=t.expirationTimes,q=t.hiddenUpdates;for(l=B&~l;0<l;){var fe=31-Rr(l),me=1<<fe;Q[fe]=0,U[fe]=-1;var De=q[fe];if(De!==null)for(q[fe]=null,fe=0;fe<De.length;fe++){var Tt=De[fe];Tt!==null&&(Tt.lane&=-536870913)}l&=~me}d!==0&&P(t,d,0),h!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=h&~(B&~n))}i(pt,"markRootFinished");function P(t,n,l){t.pendingLanes|=n,t.suspendedLanes&=~n;var d=31-Rr(n);t.entangledLanes|=n,t.entanglements[d]=t.entanglements[d]|1073741824|l&261930}i(P,"markSpawnedDeferredLane");function be(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var d=31-Rr(l),p=1<<d;p&n|t[d]&n&&(t[d]|=n),l&=~p}}i(be,"markRootEntangled");function Xe(t,n){var l=n&-n;return l=(l&42)!==0?1:oe(l),(l&(t.suspendedLanes|n))!==0?0:l}i(Xe,"getBumpedLaneForHydration");function oe(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}i(oe,"getBumpedLaneForHydrationByLane");function nt(t,n,l){if(pc)for(t=t.pendingUpdatersLaneMap;0<l;){var d=31-Rr(l),p=1<<d;t[d].add(n),l&=~p}}i(nt,"addFiberToLanesMap");function mt(t,n){if(pc)for(var l=t.pendingUpdatersLaneMap,d=t.memoizedUpdaters;0<n;){var p=31-Rr(n);t=1<<p,p=l[p],0<p.size&&(p.forEach(function(h){var B=h.alternate;B!==null&&d.has(B)||d.add(h)}),p.clear()),n&=~t}}i(mt,"movePendingFibersToMemoized");function ne(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}i(ne,"lanesToEventPriority");function se(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Tp=n.inject(t),Ji=n}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!n.checkDCE}i(se,"injectInternals");function Te(t){if(typeof d4=="function"&&f4(t),Ji&&typeof Ji.setStrictMode=="function")try{Ji.setStrictMode(Tp,t)}catch(n){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",n))}}i(Te,"setIsStrictModeForDevtools");function At(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}i(At,"is");function Qt(t){for(var n=0,l=0;l<t.length;l++){var d=t[l];if(typeof d=="object"&&d!==null)if(dr(d)&&d.length===2&&typeof d[0]=="string"){if(n!==0&&n!==3)return 1;n=3}else return 1;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||n!==0&&n!==2)return 1;n=2}}return n}i(Qt,"getArrayKind");function Lt(t,n,l,d){for(var p in t)dv.call(t,p)&&p[0]!=="_"&&gt(p,t[p],n,l,d)}i(Lt,"addObjectToProperties");function gt(t,n,l,d,p){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===Il){var h=le(n.type)||"\u2026",B=n.key;n=n.props;var Q=Object.keys(n),U=Q.length;if(B==null&&U===0){n="<"+h+" />";break}if(3>d||U===1&&Q[0]==="children"&&B==null){n="<"+h+" \u2026 />";break}l.push([p+"\xA0\xA0".repeat(d)+t,"<"+h]),B!==null&&gt("key",B,l,d+1,p),t=!1;for(var q in n)q==="children"?n.children!=null&&(!dr(n.children)||0<n.children.length)&&(t=!0):dv.call(n,q)&&q[0]!=="_"&&gt(q,n[q],l,d+1,p);l.push(["",t?">\u2026</"+h+">":"/>"]);return}if(h=Object.prototype.toString.call(n),h=h.slice(8,h.length-1),h==="Array"){if(q=Qt(n),q===2||q===0){n=JSON.stringify(n);break}else if(q===3){for(l.push([p+"\xA0\xA0".repeat(d)+t,""]),t=0;t<n.length;t++)h=n[t],gt(h[0],h[1],l,d+1,p);return}}if(h==="Promise"){if(n.status==="fulfilled"){if(h=l.length,gt(t,n.value,l,d,p),l.length>h){l=l[h],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(n.status==="rejected"&&(h=l.length,gt(t,n.reason,l,d,p),l.length>h)){l=l[h],l[1]="Rejected Promise<"+l[1]+">";return}l.push(["\xA0\xA0".repeat(d)+t,"Promise"]);return}h==="Object"&&(q=Object.getPrototypeOf(n))&&typeof q.constructor=="function"&&(h=q.constructor.name),l.push([p+"\xA0\xA0".repeat(d)+t,h==="Object"?3>d?"":"\u2026":h]),3>d&&Lt(n,l,d+1,p);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n==="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects."?"\u2026":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}l.push([p+"\xA0\xA0".repeat(d)+t,n])}i(gt,"addValueToProperties");function Be(t,n,l,d){var p=!0;for(B in t)B in n||(l.push(["\u2013\xA0"+"\xA0\xA0".repeat(d)+B,"\u2026"]),p=!1);for(var h in n)if(h in t){var B=t[h],Q=n[h];if(B!==Q){if(d===0&&h==="children")p="\xA0\xA0".repeat(d)+h,l.push(["\u2013\xA0"+p,"\u2026"],["+\xA0"+p,"\u2026"]);else{if(!(3<=d)){if(typeof B=="object"&&typeof Q=="object"&&B!==null&&Q!==null&&B.$$typeof===Q.$$typeof)if(Q.$$typeof===Il){if(B.type===Q.type&&B.key===Q.key){B=le(Q.type)||"\u2026",p="\xA0\xA0".repeat(d)+h,B="<"+B+" \u2026 />",l.push(["\u2013\xA0"+p,B],["+\xA0"+p,B]),p=!1;continue}}else{var U=Object.prototype.toString.call(B),q=Object.prototype.toString.call(Q);if(U===q&&(q==="[object Object]"||q==="[object Array]")){U=["\u2007\xA0"+"\xA0\xA0".repeat(d)+h,q==="[object Array]"?"Array":""],l.push(U),q=l.length,Be(B,Q,l,d+1)?q===l.length&&(U[1]="Referentially unequal but deeply equal objects. Consider memoization."):p=!1;continue}}else if(typeof B=="function"&&typeof Q=="function"&&B.name===Q.name&&B.length===Q.length&&(U=Function.prototype.toString.call(B),q=Function.prototype.toString.call(Q),U===q)){B=Q.name===""?"() => {}":Q.name+"() {}",l.push(["\u2007\xA0"+"\xA0\xA0".repeat(d)+h,B+" Referentially unequal function closure. Consider memoization."]);continue}}gt(h,B,l,d,"\u2013\xA0"),gt(h,Q,l,d,"+\xA0")}p=!1}}else l.push(["+\xA0"+"\xA0\xA0".repeat(d)+h,"\u2026"]),p=!1;return p}i(Be,"addObjectDiffToProperties");function _e(t){Bn=t&63?"Blocking":t&64?"Gesture":t&4194176?"Transition":t&62914560?"Suspense":t&2080374784?"Idle":"Other"}i(_e,"setCurrentTrackFromLanes");function at(t,n,l,d){yo&&(bA.start=n,bA.end=l,iu.color="warning",iu.tooltipText=d,iu.properties=null,(t=t._debugTask)?t.run(performance.measure.bind(performance,d,bA)):performance.measure(d,bA))}i(at,"logComponentTrigger");function Mt(t,n,l){at(t,n,l,"Reconnect")}i(Mt,"logComponentReappeared");function Re(t,n,l,d,p){var h=ue(t);if(h!==null&&yo){var B=t.alternate,Q=t.actualDuration;if(B===null||B.child!==t.child)for(var U=t.child;U!==null;U=U.sibling)Q-=U.actualDuration;d=.5>Q?d?"tertiary-light":"primary-light":10>Q?d?"tertiary":"primary":100>Q?d?"tertiary-dark":"primary-dark":"error";var q=t.memoizedProps;Q=t._debugTask,q!==null&&B!==null&&B.memoizedProps!==q?(U=[m4],q=Be(B.memoizedProps,q,U,0),1<U.length&&(q&&!QA&&(B.lanes&p)===0&&100<t.actualDuration?(QA=!0,U[0]=h4,iu.color="warning",iu.tooltipText="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."):(iu.color=d,iu.tooltipText=h),iu.properties=U,bA.start=n,bA.end=l,Q!=null?Q.run(performance.measure.bind(performance,"\u200B"+h,bA)):performance.measure("\u200B"+h,bA))):Q!=null?Q.run(console.timeStamp.bind(console,h,n,l,"Components \u269B",void 0,d)):console.timeStamp(h,n,l,"Components \u269B",void 0,d)}}i(Re,"logComponentRender");function xe(t,n,l,d){if(yo){var p=ue(t);if(p!==null){for(var h=null,B=[],Q=0;Q<d.length;Q++){var U=d[Q];h==null&&U.source!==null&&(h=U.source._debugTask),U=U.value,B.push(["Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}t.key!==null&&gt("key",t.key,B,0,""),t.memoizedProps!==null&&Lt(t.memoizedProps,B,0,""),h==null&&(h=t._debugTask),t={start:n,end:l,detail:{devtools:{color:"error",track:"Components \u269B",tooltipText:t.tag===13?"Hydration failed":"Error boundary caught an error",properties:B}}},h?h.run(performance.measure.bind(performance,"\u200B"+p,t)):performance.measure("\u200B"+p,t)}}}i(xe,"logComponentErrored");function he(t,n,l,d,p){if(p!==null){if(yo){var h=ue(t);if(h!==null){d=[];for(var B=0;B<p.length;B++){var Q=p[B].value;d.push(["Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}t.key!==null&&gt("key",t.key,d,0,""),t.memoizedProps!==null&&Lt(t.memoizedProps,d,0,""),n={start:n,end:l,detail:{devtools:{color:"error",track:"Components \u269B",tooltipText:"A lifecycle or effect errored",properties:d}}},(t=t._debugTask)?t.run(performance.measure.bind(performance,"\u200B"+h,n)):performance.measure("\u200B"+h,n)}}}else h=ue(t),h!==null&&yo&&(p=1>d?"secondary-light":100>d?"secondary":500>d?"secondary-dark":"error",(t=t._debugTask)?t.run(console.timeStamp.bind(console,h,n,l,"Components \u269B",void 0,p)):console.timeStamp(h,n,l,"Components \u269B",void 0,p))}i(he,"logComponentEffect");function Ze(t,n,l,d){if(yo&&!(n<=t)){var p=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",d?d.run(console.timeStamp.bind(console,l,t,n,Bn,"Scheduler \u269B",p)):console.timeStamp(l,t,n,Bn,"Scheduler \u269B",p)}}i(Ze,"logRenderPhase");function Gt(t,n,l,d){!yo||n<=t||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",t,n,Bn,"Scheduler \u269B",l)):console.timeStamp("Prewarm",t,n,Bn,"Scheduler \u269B",l))}i(Gt,"logSuspendedRenderPhase");function Hn(t,n,l,d){!yo||n<=t||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",t,n,Bn,"Scheduler \u269B",l)):console.timeStamp("Suspended",t,n,Bn,"Scheduler \u269B",l))}i(Hn,"logSuspendedWithDelayPhase");function Qn(t,n,l,d,p,h){if(yo&&!(n<=t)){l=[];for(var B=0;B<d.length;B++){var Q=d[B].value;l.push(["Recoverable Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}t={start:t,end:n,detail:{devtools:{color:"primary-dark",track:Bn,trackGroup:"Scheduler \u269B",tooltipText:p?"Hydration Failed":"Recovered after Error",properties:l}}},h?h.run(performance.measure.bind(performance,"Recovered",t)):performance.measure("Recovered",t)}}i(Qn,"logRecoveredRenderPhase");function Ro(t,n,l,d){!yo||n<=t||(d?d.run(console.timeStamp.bind(console,"Errored",t,n,Bn,"Scheduler \u269B","error")):console.timeStamp("Errored",t,n,Bn,"Scheduler \u269B","error"))}i(Ro,"logErroredRenderPhase");function qr(t,n,l,d){!yo||n<=t||(d?d.run(console.timeStamp.bind(console,l,t,n,Bn,"Scheduler \u269B","secondary-light")):console.timeStamp(l,t,n,Bn,"Scheduler \u269B","secondary-light"))}i(qr,"logSuspendedCommitPhase");function wo(t,n,l,d,p){if(yo&&!(n<=t)){for(var h=[],B=0;B<l.length;B++){var Q=l[B].value;h.push(["Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}t={start:t,end:n,detail:{devtools:{color:"error",track:Bn,trackGroup:"Scheduler \u269B",tooltipText:d?"Remaining Effects Errored":"Commit Errored",properties:h}}},p?p.run(performance.measure.bind(performance,"Errored",t)):performance.measure("Errored",t)}}i(wo,"logCommitErrored");function ir(){}i(ir,"disabledLog");function Pr(){if(fE===0){Gw=console.log,Fw=console.info,zw=console.warn,Kw=console.error,Yw=console.group,qw=console.groupCollapsed,Pw=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ir,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}fE++}i(Pr,"disableLogs");function ot(){if(fE--,fE===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vn({},t,{value:Gw}),info:Vn({},t,{value:Fw}),warn:Vn({},t,{value:zw}),error:Vn({},t,{value:Kw}),group:Vn({},t,{value:Yw}),groupCollapsed:Vn({},t,{value:qw}),groupEnd:Vn({},t,{value:Pw})})}0>fE&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}i(ot,"reenableLogs");function bt(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame
56
+ `)&&(t=t.slice(29)),n=t.indexOf(`
57
+ `),n!==-1&&(t=t.slice(n+1)),n=t.indexOf("react_stack_bottom_frame"),n!==-1&&(n=t.lastIndexOf(`
58
+ `,n)),n!==-1)t=t.slice(0,n);else return"";return t}i(bt,"formatOwnerStack");function Et(t){if(fv===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);fv=n&&n[1]||"",Jw=-1<l.stack.indexOf(`
59
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
60
+ `+fv+t+Jw}i(Et,"describeBuiltInComponentFrame");function en(t,n){if(!t||gv)return"";var l=pv.get(t);if(l!==void 0)return l;gv=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=ce.H,ce.H=null,Pr();try{var p={DetermineComponentFrameRoot:i(function(){try{if(n){var De=i(function(){throw Error()},"Fake");if(Object.defineProperty(De.prototype,"props",{set:i(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(Wt){var Tt=Wt}Reflect.construct(t,[],De)}else{try{De.call()}catch(Wt){Tt=Wt}t.call(De.prototype)}}else{try{throw Error()}catch(Wt){Tt=Wt}(De=t())&&typeof De.catch=="function"&&De.catch(function(){})}}catch(Wt){if(Wt&&Tt&&typeof Wt.stack=="string")return[Wt.stack,Tt.stack]}return[null,null]},"DetermineComponentFrameRoot")};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var B=p.DetermineComponentFrameRoot(),Q=B[0],U=B[1];if(Q&&U){var q=Q.split(`
61
+ `),fe=U.split(`
62
+ `);for(B=h=0;h<q.length&&!q[h].includes("DetermineComponentFrameRoot");)h++;for(;B<fe.length&&!fe[B].includes("DetermineComponentFrameRoot");)B++;if(h===q.length||B===fe.length)for(h=q.length-1,B=fe.length-1;1<=h&&0<=B&&q[h]!==fe[B];)B--;for(;1<=h&&0<=B;h--,B--)if(q[h]!==fe[B]){if(h!==1||B!==1)do if(h--,B--,0>B||q[h]!==fe[B]){var me=`
63
+ `+q[h].replace(" at new "," at ");return t.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",t.displayName)),typeof t=="function"&&pv.set(t,me),me}while(1<=h&&0<=B);break}}}finally{gv=!1,ce.H=d,ot(),Error.prepareStackTrace=l}return q=(q=t?t.displayName||t.name:"")?Et(q):"",typeof t=="function"&&pv.set(t,q),q}i(en,"describeNativeComponentFrame");function uo(t,n){switch(t.tag){case 26:case 27:case 5:return Et(t.type);case 16:return Et("Lazy");case 13:return t.child!==n&&n!==null?Et("Suspense Fallback"):Et("Suspense");case 19:return Et("SuspenseList");case 0:case 15:return en(t.type,!1);case 11:return en(t.type.render,!1);case 1:return en(t.type,!0);case 31:return Et("Activity");default:return""}}i(uo,"describeFiber");function ar(t){try{var n="",l=null;do{n+=uo(t,l);var d=t._debugInfo;if(d)for(var p=d.length-1;0<=p;p--){var h=d[p];if(typeof h.name=="string"){var B=n;e:{var Q=h.name,U=h.env,q=h.debugLocation;if(q!=null){var fe=bt(q),me=fe.lastIndexOf(`
64
+ `),De=me===-1?fe:fe.slice(me+1);if(De.indexOf(Q)!==-1){var Tt=`
65
+ `+De;break e}}Tt=Et(Q+(U?" ["+U+"]":""))}n=B+Tt}}l=t,t=t.return}while(t);return n}catch(Wt){return`
66
+ Error generating stack: `+Wt.message+`
67
+ `+Wt.stack}}i(ar,"getStackByFiberInDevAndProd");function Ia(t){return(t=t?t.displayName||t.name:"")?Et(t):""}i(Ia,"describeFunctionComponentFrameWithoutLineNumber");function Tn(t,n){if(typeof t=="object"&&t!==null){var l=mv.get(t);return l!==void 0?l:(n={value:t,source:n,stack:ar(n)},mv.set(t,n),n)}return{value:t,source:n,stack:ar(n)}}i(Tn,"createCapturedValueAtFiber");function w(t,n){ft(),_p[Np++]=gE,_p[Np++]=wI,wI=t,gE=n}i(w,"pushTreeFork");function j(t,n,l){ft(),ks[Us++]=au,ks[Us++]=su,ks[Us++]=gf,gf=t;var d=au;t=su;var p=32-Rr(d)-1;d&=~(1<<p),l+=1;var h=32-Rr(n)+p;if(30<h){var B=p-p%5;h=(d&(1<<B)-1).toString(32),d>>=B,p-=B,au=1<<32-Rr(n)+p|l<<p|d,su=h+t}else au=1<<h|l<<p|d,su=t}i(j,"pushTreeId");function ze(t){ft(),t.return!==null&&(w(t,1),j(t,1,0))}i(ze,"pushMaterializedTreeId");function ke(t){for(;t===wI;)wI=_p[--Np],_p[Np]=null,gE=_p[--Np],_p[Np]=null;for(;t===gf;)gf=ks[--Us],ks[Us]=null,su=ks[--Us],ks[Us]=null,au=ks[--Us],ks[Us]=null}i(ke,"popTreeContext");function it(){return ft(),gf!==null?{id:au,overflow:su}:null}i(it,"getSuspendedTreeContext");function An(t,n){ft(),ks[Us++]=au,ks[Us++]=su,ks[Us++]=gf,au=n.id,su=n.overflow,gf=t}i(An,"restoreSuspendedTreeContext");function ft(){wn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}i(ft,"warnIfNotHydrating");function wt(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}i(wt,"requiredContext");function sn(t,n){ee(wA,n,t),ee(pE,t,t),ee(RA,null,t),n=Ts(n),re(RA,t),ee(RA,n,t)}i(sn,"pushHostContainer");function sr(t){re(RA,t),re(pE,t),re(wA,t)}i(sr,"popHostContainer");function po(){return wt(RA.current)}i(po,"getHostContext");function jo(t){t.memoizedState!==null&&ee(xI,t,t);var n=wt(RA.current),l=$r(n,t.type);n!==l&&(ee(pE,t,t),ee(RA,l,t))}i(jo,"pushHostContext");function Ir(t){pE.current===t&&(re(RA,t),re(pE,t)),xI.current===t&&(re(xI,t),Di?Ha._currentValue=Oa:Ha._currentValue2=Oa)}i(Ir,"popHostContext");function Dt(t,n){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-n?Dt(t.children[0],n):t}i(Dt,"findNotableNode");function Nn(t){return" "+" ".repeat(t)}i(Nn,"indentation");function Yt(t){return"+ "+" ".repeat(t)}i(Yt,"added");function Tr(t){return"- "+" ".repeat(t)}i(Tr,"removed");function ri(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}i(ri,"describeFiberType");function ta(t,n){return jw.test(t)?(t=JSON.stringify(t),t.length>n-2?8>n?'{"..."}':"{"+t.slice(0,n-7)+'..."}':"{"+t+"}"):t.length>n?5>n?'{"..."}':t.slice(0,n-3)+"...":t}i(ta,"describeTextNode");function na(t,n,l){var d=120-2*l;if(n===null)return Yt(l)+ta(t,d)+`
68
+ `;if(typeof n=="string"){for(var p=0;p<n.length&&p<t.length&&n.charCodeAt(p)===t.charCodeAt(p);p++);return p>d-8&&10<p&&(t="..."+t.slice(p-8),n="..."+n.slice(p-8)),Yt(l)+ta(t,d)+`
69
+ `+Tr(l)+ta(n,d)+`
70
+ `}return Nn(l)+ta(t,d)+`
71
+ `}i(na,"describeTextDiff");function Ba(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(n,l){return l})}i(Ba,"objectName");function Sa(t,n){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>n?5>n?'"..."':t.slice(0,n-4)+'..."':t;case"object":if(t===null)return"null";if(dr(t))return"[...]";if(t.$$typeof===Il)return(n=le(t.type))?"<"+n+">":"<...>";var l=Ba(t);if(l==="Object"){l="",n-=2;for(var d in t)if(t.hasOwnProperty(d)){var p=JSON.stringify(d);if(p!=='"'+d+'"'&&(d=p),n-=d.length-2,p=Sa(t[d],15>n?n:15),n-=p.length,0>n){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+p}return"{"+l+"}"}return l;case"function":return(n=t.displayName||t.name)?"function "+n:"function";default:return String(t)}}i(Sa,"describeValue");function Jr(t,n){return typeof t!="string"||jw.test(t)?"{"+Sa(t,n-2)+"}":t.length>n-2?5>n?'"..."':'"'+t.slice(0,n-5)+'..."':'"'+t+'"'}i(Jr,"describePropValue");function ii(t,n,l){var d=120-l.length-t.length,p=[],h;for(h in n)if(n.hasOwnProperty(h)&&h!=="children"){var B=Jr(n[h],120-l.length-h.length-1);d-=h.length+B.length+2,p.push(h+"="+B)}return p.length===0?l+"<"+t+`>
72
+ `:0<d?l+"<"+t+" "+p.join(" ")+`>
73
+ `:l+"<"+t+`
74
+ `+l+" "+p.join(`
75
+ `+l+" ")+`
76
+ `+l+`>
77
+ `}i(ii,"describeExpandedElement");function Es(t,n,l){var d="",p=Vn({},n),h;for(h in t)if(t.hasOwnProperty(h)){delete p[h];var B=120-2*l-h.length-2,Q=Sa(t[h],B);n.hasOwnProperty(h)?(B=Sa(n[h],B),d+=Yt(l)+h+": "+Q+`
78
+ `,d+=Tr(l)+h+": "+B+`
79
+ `):d+=Yt(l)+h+": "+Q+`
80
+ `}for(var U in p)p.hasOwnProperty(U)&&(t=Sa(p[U],120-2*l-U.length-2),d+=Tr(l)+U+": "+t+`
81
+ `);return d}i(Es,"describePropertiesDiff");function Mc(t,n,l,d){var p="",h=new Map;for(q in l)l.hasOwnProperty(q)&&h.set(q.toLowerCase(),q);if(h.size===1&&h.has("children"))p+=ii(t,n,Nn(d));else{for(var B in n)if(n.hasOwnProperty(B)&&B!=="children"){var Q=120-2*(d+1)-B.length-1,U=h.get(B.toLowerCase());if(U!==void 0){h.delete(B.toLowerCase());var q=n[B];U=l[U];var fe=Jr(q,Q);Q=Jr(U,Q),typeof q=="object"&&q!==null&&typeof U=="object"&&U!==null&&Ba(q)==="Object"&&Ba(U)==="Object"&&(2<Object.keys(q).length||2<Object.keys(U).length||-1<fe.indexOf("...")||-1<Q.indexOf("..."))?p+=Nn(d+1)+B+`={{
82
+ `+Es(q,U,d+2)+Nn(d+1)+`}}
83
+ `:(p+=Yt(d+1)+B+"="+fe+`
84
+ `,p+=Tr(d+1)+B+"="+Q+`
85
+ `)}else p+=Nn(d+1)+B+"="+Jr(n[B],Q)+`
86
+ `}h.forEach(function(me){if(me!=="children"){var De=120-2*(d+1)-me.length-1;p+=Tr(d+1)+me+"="+Jr(l[me],De)+`
87
+ `}}),p=p===""?Nn(d)+"<"+t+`>
88
+ `:Nn(d)+"<"+t+`
89
+ `+p+Nn(d)+`>
90
+ `}return t=l.children,n=n.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(h="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(h=""+n),p+=na(h,""+t,d+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(p=t==null?p+na(""+n,null,d+1):p+na(""+n,void 0,d+1)),p}i(Mc,"describeElementDiff");function Ja(t,n){var l=ri(t);if(l===null){for(l="",t=t.child;t;)l+=Ja(t,n),t=t.sibling;return l}return Nn(n)+"<"+l+`>
91
+ `}i(Ja,"describeSiblingFiber");function ja(t,n){var l=Dt(t,n);if(l!==t&&(t.children.length!==1||t.children[0]!==l))return Nn(n)+`...
92
+ `+ja(l,n+1);l="";var d=t.fiber._debugInfo;if(d)for(var p=0;p<d.length;p++){var h=d[p].name;typeof h=="string"&&(l+=Nn(n)+"<"+h+`>
93
+ `,n++)}if(d="",p=t.fiber.pendingProps,t.fiber.tag===6)d=na(p,t.serverProps,n),n++;else if(h=ri(t.fiber),h!==null)if(t.serverProps===void 0){d=n;var B=120-2*d-h.length-2,Q="";for(q in p)if(p.hasOwnProperty(q)&&q!=="children"){var U=Jr(p[q],15);if(B-=q.length+U.length+2,0>B){Q+=" ...";break}Q+=" "+q+"="+U}d=Nn(d)+"<"+h+Q+`>
94
+ `,n++}else t.serverProps===null?(d=ii(h,p,Yt(n)),n++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(d=Mc(h,p,t.serverProps,n),n++);var q="";for(p=t.fiber.child,h=0;p&&h<t.children.length;)B=t.children[h],B.fiber===p?(q+=ja(B,n),h++):q+=Ja(p,n),p=p.sibling;for(p&&0<t.children.length&&(q+=Nn(n)+`...
95
+ `),p=t.serverTail,t.serverProps===null&&n--,t=0;t<p.length;t++)h=p[t],q=typeof h=="string"?q+(Tr(n)+ta(h,120-2*n)+`
96
+ `):q+ii(h.type,h.props,Tr(n));return l+d+q}i(ja,"describeNode");function Oc(t){try{return`
97
+
98
+ `+ja(t,0)}catch{return""}}i(Oc,"describeDiff");function Va(){if(lu===null)return"";var t=lu;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=Et(t.type);break;case 13:n+=Et("Suspense");break;case 19:n+=Et("SuspenseList");break;case 31:n+=Et("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=Ia(t.type));break;case 11:t._debugOwner||n!==""||(n+=Ia(t.type.render))}for(;t;)if(typeof t.tag=="number"){var l=t;t=l._debugOwner;var d=l._debugStack;if(t&&d){var p=bt(d);p!==""&&(n+=`
99
+ `+p)}}else if(t.debugStack!=null){var h=t.debugStack;(t=t.owner)&&h&&(n+=`
100
+ `+bt(h))}else break;var B=n}catch(Q){B=`
101
+ Error generating stack: `+Q.message+`
102
+ `+Q.stack}return B}i(Va,"getCurrentFiberStackInDev");function He(t,n,l,d,p,h,B){var Q=lu;Jn(t);try{return t!==null&&t._debugTask?t._debugTask.run(n.bind(null,l,d,p,h,B)):n(l,d,p,h,B)}finally{Jn(Q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}i(He,"runWithFiberInDEV");function Jn(t){ce.getCurrentStack=t===null?null:Va,mc=!1,lu=t}i(Jn,"setCurrentFiber");function ao(t,n){if(t.return===null){if(cs===null)cs={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(cs.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");cs.distanceFromLeaf>n&&(cs.distanceFromLeaf=n)}return cs}var l=ao(t.return,n+1).children;return 0<l.length&&l[l.length-1].fiber===t?(l=l[l.length-1],l.distanceFromLeaf>n&&(l.distanceFromLeaf=n),l):(n={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},l.push(n),n)}i(ao,"buildHydrationDiffNode");function Bi(){wn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}i(Bi,"warnIfHydrating");function oa(t,n){hc||(t=ao(t,0),t.serverProps=null,n!==null&&(n=SA(n),t.serverTail.push(n)))}i(oa,"warnNonHydratedInstance");function Ni(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",d=cs;throw d!==null&&(cs=null,l=Oc(d)),Sr(Tn(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
103
+
104
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
105
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
106
+ - Date formatting in a user's locale which doesn't match the server.
107
+ - External changing data without sending a snapshot of it along with the HTML.
108
+ - Invalid HTML tag nesting.
109
+
110
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
111
+
112
+ https://react.dev/link/hydration-mismatch`+l),t)),hv}i(Ni,"throwOnHydrationMismatch");function Mi(t,n){if(!di)throw Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");In(t.stateNode,t.type,t.memoizedProps,n,t)||Ni(t,!0)}i(Mi,"prepareToHydrateHostInstance");function xo(t){for(Ti=t.return;Ti;)switch(Ti.tag){case 5:case 31:case 13:Ls=!1;return;case 27:case 3:Ls=!0;return;default:Ti=Ti.return}}i(xo,"popToNextHostParent");function Oi(t){if(!di||t!==Ti)return!1;if(!wn)return xo(t),wn=!0,!1;var n=t.tag;if(I?n!==3&&n!==27&&(n!==5||bp(t.type)&&!hn(t.type,t.memoizedProps))&&ko&&(to(t),Ni(t)):n!==3&&(n!==5||bp(t.type)&&!hn(t.type,t.memoizedProps))&&ko&&(to(t),Ni(t)),xo(t),n===13){if(!di)throw Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ko=nu(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ko=uc(t)}else ko=I&&n===27?uv(t.type,ko):Ti?cc(t.stateNode):null;return!0}i(Oi,"popHydrationState");function to(t){for(var n=ko;n;){var l=ao(t,0),d=SA(n);l.serverTail.push(d),n=d.type==="Suspense"?nu(n):cc(n)}}i(to,"warnIfUnhydratedTailNodes");function Br(){di&&(ko=Ti=null,hc=wn=!1)}i(Br,"resetHydrationState");function va(){var t=xA;return t!==null&&(ha===null?ha=t:ha.push.apply(ha,t),xA=null),t}i(va,"upgradeHydrationErrorsToRecoverable");function Sr(t){xA===null?xA=[t]:xA.push(t)}i(Sr,"queueHydrationError");function Si(){var t=cs;if(t!==null){cs=null;for(var n=Oc(t);0<t.children.length;)t=t.children[0];He(t.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
113
+
114
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
115
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
116
+ - Date formatting in a user's locale which doesn't match the server.
117
+ - External changing data without sending a snapshot of it along with the HTML.
118
+ - Invalid HTML tag nesting.
119
+
120
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
121
+
122
+ %s%s`,"https://react.dev/link/hydration-mismatch",n)})}}i(Si,"emitPendingHydrationWarnings");function Xa(){Mp=_I=null,Op=!1}i(Xa,"resetContextDependencies");function x(t,n,l){Di?(ee(DI,n._currentValue,t),n._currentValue=l,ee(Ev,n._currentRenderer,t),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==TI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=TI):(ee(DI,n._currentValue2,t),n._currentValue2=l,ee(Cv,n._currentRenderer2,t),n._currentRenderer2!==void 0&&n._currentRenderer2!==null&&n._currentRenderer2!==TI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer2=TI)}i(x,"pushProvider");function T(t,n){var l=DI.current;Di?(t._currentValue=l,l=Ev.current,re(Ev,n),t._currentRenderer=l):(t._currentValue2=l,l=Cv.current,re(Cv,n),t._currentRenderer2=l),re(DI,n)}i(T,"popProvider");function G(t,n,l){for(;t!==null;){var d=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,d!==null&&(d.childLanes|=n)):d!==null&&(d.childLanes&n)!==n&&(d.childLanes|=n),t===l)break;t=t.return}t!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}i(G,"scheduleContextWorkOnParentPath");function Y(t,n,l,d){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var h=p.dependencies;if(h!==null){var B=p.child;h=h.firstContext;e:for(;h!==null;){var Q=h;h=p;for(var U=0;U<n.length;U++)if(Q.context===n[U]){h.lanes|=l,Q=h.alternate,Q!==null&&(Q.lanes|=l),G(h.return,l,t),d||(B=null);break e}h=Q.next}}else if(p.tag===18){if(B=p.return,B===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");B.lanes|=l,h=B.alternate,h!==null&&(h.lanes|=l),G(B,l,t),B=null}else B=p.child;if(B!==null)B.return=p;else for(B=p;B!==null;){if(B===t){B=null;break}if(p=B.sibling,p!==null){p.return=B.return,B=p;break}B=B.return}p=B}}i(Y,"propagateContextChanges");function V(t,n,l,d){t=null;for(var p=n,h=!1;p!==null;){if(!h){if((p.flags&524288)!==0)h=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var B=p.alternate;if(B===null)throw Error("Should have a current fiber. This is a bug in React.");if(B=B.memoizedProps,B!==null){var Q=p.type;fa(p.pendingProps.value,B.value)||(t!==null?t.push(Q):t=[Q])}}else if(p===xI.current){if(B=p.alternate,B===null)throw Error("Should have a current fiber. This is a bug in React.");B.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Ha):t=[Ha])}p=p.return}t!==null&&Y(n,t,l,d),n.flags|=262144}i(V,"propagateParentContextChanges");function ye(t){for(t=t.firstContext;t!==null;){var n=t.context;if(!fa(Di?n._currentValue:n._currentValue2,t.memoizedValue))return!0;t=t.next}return!1}i(ye,"checkIfContextChanged");function Oe(t){_I=t,Mp=null,t=t.dependencies,t!==null&&(t.firstContext=null)}i(Oe,"prepareToReadContext");function ve(t){return Op&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),qe(_I,t)}i(ve,"readContext");function We(t,n){return _I===null&&Oe(t),qe(t,n)}i(We,"readContextDuringReconciliation");function qe(t,n){var l=Di?n._currentValue:n._currentValue2;if(n={context:n,memoizedValue:l,next:null},Mp===null){if(t===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Mp=n,t.dependencies={lanes:0,firstContext:n,_debugThenableState:null},t.flags|=524288}else Mp=Mp.next=n;return l}i(qe,"readContextForConsumer");function lt(){return{controller:new E4,data:new Map,refCount:0}}i(lt,"createCache");function xt(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}i(xt,"retainCache");function nn(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&C4(y4,function(){t.controller.abort()})}i(nn,"releaseCache");function _n(t,n,l){(t&127)!==0?0>Ec&&(Ec=Or(),mE=NI(n),yv=n,l!=null&&(Iv=ue(l)),Wd()&&(rr=!0,TA=1),t=as(),n=$c(),t!==Hp||n!==hE?Hp=-1.1:n!==null&&(TA=1),hf=t,hE=n):(t&4194048)!==0&&0>Gs&&(Gs=Or(),EE=NI(n),Vw=n,l!=null&&(Xw=ue(l)),0>du)&&(t=as(),n=$c(),(t!==NA||n!==Ef)&&(NA=-1.1),_A=t,Ef=n)}i(_n,"startUpdateTimerByLane");function Mn(t){if(0>Ec){Ec=Or(),mE=t._debugTask!=null?t._debugTask:null,Wd()&&(TA=1);var n=as(),l=$c();n!==Hp||l!==hE?Hp=-1.1:l!==null&&(TA=1),hf=n,hE=l}0>Gs&&(Gs=Or(),EE=t._debugTask!=null?t._debugTask:null,0>du)&&(t=as(),n=$c(),(t!==NA||n!==Ef)&&(NA=-1.1),_A=t,Ef=n)}i(Mn,"startHostActionTimer");function no(){var t=pf;return pf=0,t}i(no,"pushNestedEffectDurations");function lr(t){var n=pf;return pf=t,n}i(lr,"popNestedEffectDurations");function Hi(t){var n=pf;return pf+=t,n}i(Hi,"bubbleNestedEffectDurations");function Mo(){qt=Ut=-1.1}i(Mo,"resetComponentEffectTimers");function Vo(){var t=Ut;return Ut=-1.1,t}i(Vo,"pushComponentEffectStart");function cr(t){0<=t&&(Ut=t)}i(cr,"popComponentEffectStart");function ra(){var t=Uo;return Uo=-0,t}i(ra,"pushComponentEffectDuration");function ki(t){0<=t&&(Uo=t)}i(ki,"popComponentEffectDuration");function kn(){var t=_o;return _o=null,t}i(kn,"pushComponentEffectErrors");function ia(){var t=rr;return rr=!1,t}i(ia,"pushComponentEffectDidSpawnUpdate");function zl(t){ga=Or(),0>t.actualStartTime&&(t.actualStartTime=ga)}i(zl,"startProfilerTimer");function Yu(t){if(0<=ga){var n=Or()-ga;t.actualDuration+=n,t.selfBaseDuration=n,ga=-1}}i(Yu,"stopProfilerTimerIfRunningAndRecordDuration");function Ed(t){if(0<=ga){var n=Or()-ga;t.actualDuration+=n,ga=-1}}i(Ed,"stopProfilerTimerIfRunningAndRecordIncompleteDuration");function aa(){if(0<=ga){var t=Or(),n=t-ga;ga=-1,pf+=n,Uo+=n,qt=t}}i(aa,"recordEffectDuration");function qu(t){_o===null&&(_o=[]),_o.push(t),uu===null&&(uu=[]),uu.push(t)}i(qu,"recordEffectError");function vi(){ga=Or(),0>Ut&&(Ut=ga)}i(vi,"startEffectTimer");function Cs(t){for(var n=t.child;n;)t.actualDuration+=n.actualDuration,n=n.sibling}i(Cs,"transferActualDuration");function Kl(){}i(Kl,"noop$1");function vr(t){t!==Up&&t.next===null&&(Up===null?UI=Up=t:Up=Up.next=t),LI=!0,ce.actQueue!==null?vv||(vv=!0,Ne()):Sv||(Sv=!0,Ne())}i(vr,"ensureRootIsScheduled");function Za(t,n){if(!Qv&&LI){Qv=!0;do for(var l=!1,d=UI;d!==null;){if(!n)if(t!==0){var p=d.pendingLanes;if(p===0)var h=0;else{var B=d.suspendedLanes,Q=d.pingedLanes;h=(1<<31-Rr(42|t)+1)-1,h&=p&~(B&~Q),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,sg(d,h))}else h=un,h=Ie(d,d===go?h:0,d.cancelPendingCommit!==null||d.timeoutHandle!==_s),(h&3)===0||Pe(d,h)||(l=!0,sg(d,h));d=d.next}while(l);Qv=!1}}i(Za,"flushSyncWorkAcrossRoots_impl");function Yl(){pA(),ql()}i(Yl,"processRootScheduleInImmediateTask");function ql(){LI=vv=Sv=!1;var t=0;Cf!==0&&af()&&(t=Cf);for(var n=Rn(),l=null,d=UI;d!==null;){var p=d.next,h=Cd(d,n);h===0?(d.next=null,l===null?UI=p:l.next=p,p===null&&(Up=l)):(l=d,(t!==0||(h&3)!==0)&&(LI=!0)),d=p}Gr!==GA&&Gr!==lB||Za(t,!1),Cf!==0&&(Cf=0)}i(ql,"processRootScheduleInMicrotask");function Cd(t,n){for(var l=t.suspendedLanes,d=t.pingedLanes,p=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var B=31-Rr(h),Q=1<<B,U=p[B];U===-1?((Q&l)===0||(Q&d)!==0)&&(p[B]=ct(Q,n)):U<=n&&(t.expiredLanes|=Q),h&=~Q}if(n=go,l=un,l=Ie(t,t===n?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==_s),d=t.callbackNode,l===0||t===n&&(ro===Rf||ro===wf)||t.cancelPendingCommit!==null)return d!==null&&J(d),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Pe(t,l)){if(n=l&-l,n!==t.callbackPriority||ce.actQueue!==null&&d!==bv)J(d);else return n;switch(ne(l)){case 2:case 8:l=wl;break;case 32:l=ff;break;case 268435456:l=Hw;break;default:l=ff}return d=Pu.bind(null,t),ce.actQueue!==null?(ce.actQueue.push(d),l=bv):l=kt(l,d),t.callbackPriority=n,t.callbackNode=l,n}return d!==null&&J(d),t.callbackPriority=2,t.callbackNode=null,2}i(Cd,"scheduleTaskForRootDuringMicrotask");function Pu(t,n){if(kI=HI=!1,pA(),Gr!==GA&&Gr!==lB)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Nl===sB&&(Nl=Xv),lA()&&t.callbackNode!==l)return null;var d=un;return d=Ie(t,t===go?d:0,t.cancelPendingCommit!==null||t.timeoutHandle!==_s),d===0?null:(jh(t,d,n),Cd(t,Rn()),t.callbackNode!=null&&t.callbackNode===l?Pu.bind(null,t):null)}i(Pu,"performWorkOnRootViaSchedulerTask");function sg(t,n){if(lA())return null;HI=kI,kI=!1,jh(t,n,!0)}i(sg,"performSyncWorkOnRoot");function J(t){t!==bv&&t!==null&&To(t)}i(J,"cancelCallback");function Ne(){ce.actQueue!==null&&ce.actQueue.push(function(){return ql(),null}),vI?ka(function(){(xn&(pi|qs))!==gi?kt(On,Yl):ql()}):kt(On,Yl)}i(Ne,"scheduleImmediateRootScheduleTask");function je(){if(Cf===0){var t=yf;t===0&&(t=Z,Z<<=1,(Z&261888)===0&&(Z=256)),Cf=t}return Cf}i(je,"requestTransitionLane");function Ke(t,n){if(yE===null){var l=yE=[];Rv=0,yf=je(),Lp={status:"pending",value:void 0,then:i(function(d){l.push(d)},"then")}}return Rv++,n.then(St,St),n}i(Ke,"entangleAsyncAction");function St(){if(--Rv===0&&(-1<Gs||(du=-1.1),yE!==null)){Lp!==null&&(Lp.status="fulfilled");var t=yE;yE=null,yf=0,Lp=null;for(var n=0;n<t.length;n++)(0,t[n])()}}i(St,"pingEngtangledActionScope");function dt(t,n){var l=[],d={status:"pending",value:null,reason:null,then:i(function(p){l.push(p)},"then")};return t.then(function(){d.status="fulfilled",d.value=n;for(var p=0;p<l.length;p++)(0,l[p])(n)},function(p){for(d.status="rejected",d.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),d}i(dt,"chainThenableValue");function mn(){var t=If.current;return t!==null?t:go.pooledCache}i(mn,"peekCacheFromPool");function Xo(t,n){n===null?ee(If,If.current,t):ee(If,n.pool,t)}i(Xo,"pushTransition");function Pl(){var t=mn();return t===null?null:{parent:Di?or._currentValue:or._currentValue2,pool:t}}i(Pl,"getSuspendedCache");function Ao(t,n){if(fa(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),d=Object.keys(n);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!dv.call(n,p)||!fa(t[p],n[p]))return!1}return!0}i(Ao,"shallowEqual");function ai(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}i(ai,"createThenableState");function Ft(t){return t=t.status,t==="fulfilled"||t==="rejected"}i(Ft,"isThenableResolved");function ur(t,n,l){ce.actQueue!==null&&(ce.didUsePromise=!0);var d=t.thenables;if(l=d[l],l===void 0?d.push(n):l!==n&&(t.didWarnAboutUncachedPromise||(t.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(Kl,Kl),n=l),n._debugInfo===void 0){t=performance.now(),d=n.displayName;var p={name:typeof d=="string"?d:"Promise",start:t,end:t,value:n};n._debugInfo=[{awaited:p}],n.status!=="fulfilled"&&n.status!=="rejected"&&(t=i(function(){p.end=performance.now()},"thenableState"),n.then(t,t))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Hc(t),t;default:if(typeof n.status=="string")n.then(Kl,Kl);else{if(t=go,t!==null&&100<t.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");t=n,t.status="pending",t.then(function(h){if(n.status==="pending"){var B=n;B.status="fulfilled",B.value=h}},function(h){if(n.status==="pending"){var B=n;B.status="rejected",B.reason=h}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Hc(t),t}throw Sf=n,RE=!0,Gp}}i(ur,"trackUsedThenable");function _r(t){try{return v4(t)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sf=n,RE=!0,Gp):n}}i(_r,"resolveLazy");function Qa(){if(Sf===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Sf;return Sf=null,RE=!1,t}i(Qa,"getSuspendedThenable");function Hc(t){if(t===Gp||t===FI)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}i(Hc,"checkIfUseWrappedInAsyncCatch");function jr(t){var n=cn;return t!=null&&(cn=n===null?t:n.concat(t)),n}i(jr,"pushDebugInfo");function lg(){var t=cn;if(t!=null){for(var n=t.length-1;0<=n;n--)if(t[n].name!=null){var l=t[n].debugTask;if(l!=null)return l}}return null}i(lg,"getCurrentDebugTask");function Jl(t,n,l){for(var d=Object.keys(t.props),p=0;p<d.length;p++){var h=d[p];if(h!=="children"&&h!=="key"){n===null&&(n=rp(t,l.mode,0),n._debugInfo=cn,n.return=l),He(n,function(B){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B)},h);break}}}i(Jl,"validateFragmentProps");function Ju(t){var n=wE;return wE+=1,Fp===null&&(Fp=ai()),ur(Fp,t,n)}i(Ju,"unwrapThenable");function jl(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}i(jl,"coerceRef");function Ah(t,n){throw n.$$typeof===BI?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
123
+ - Multiple copies of the "react" package is used.
124
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
125
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}i(Ah,"throwOnInvalidObjectTypeImpl");function yd(t,n){var l=lg();l!==null?l.run(Ah.bind(null,t,n)):Ah(t,n)}i(yd,"throwOnInvalidObjectType");function cg(t,n){var l=ue(t)||"Component";gx[l]||(gx[l]=!0,n=n.displayName||n.name||"Component",t.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
126
+ root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
127
+ <%s>{%s}</%s>`,n,n,l,n,l))}i(cg,"warnOnFunctionTypeImpl");function Id(t,n){var l=lg();l!==null?l.run(cg.bind(null,t,n)):cg(t,n)}i(Id,"warnOnFunctionType");function dh(t,n){var l=ue(t)||"Component";px[l]||(px[l]=!0,n=String(n),t.tag===3?console.error(`Symbols are not valid as a React child.
128
+ root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
129
+ <%s>%s</%s>`,l,n,l))}i(dh,"warnOnSymbolTypeImpl");function ys(t,n){var l=lg();l!==null?l.run(dh.bind(null,t,n)):dh(t,n)}i(ys,"warnOnSymbolType");function Bd(t){function n(z,K){if(t){var X=z.deletions;X===null?(z.deletions=[K],z.flags|=16):X.push(K)}}i(n,"deleteChild");function l(z,K){if(!t)return null;for(;K!==null;)n(z,K),K=K.sibling;return null}i(l,"deleteRemainingChildren");function d(z){for(var K=new Map;z!==null;)z.key!==null?K.set(z.key,z):K.set(z.index,z),z=z.sibling;return K}i(d,"mapRemainingChildren");function p(z,K){return z=yl(z,K),z.index=0,z.sibling=null,z}i(p,"useFiber");function h(z,K,X){return z.index=X,t?(X=z.alternate,X!==null?(X=X.index,X<K?(z.flags|=67108866,K):X):(z.flags|=67108866,K)):(z.flags|=1048576,K)}i(h,"placeChild");function B(z){return t&&z.alternate===null&&(z.flags|=67108866),z}i(B,"placeSingleChild");function Q(z,K,X,we){return K===null||K.tag!==6?(K=ip(X,z.mode,we),K.return=z,K._debugOwner=z,K._debugTask=z._debugTask,K._debugInfo=cn,K):(K=p(K,X),K.return=z,K._debugInfo=cn,K)}i(Q,"updateTextNode");function U(z,K,X,we){var yt=X.type;return yt===dA?(K=fe(z,K,X.props.children,we,X.key),Jl(X,K,z),K):K!==null&&(K.elementType===yt||tE(K,X)||typeof yt=="object"&&yt!==null&&yt.$$typeof===Ki&&_r(yt)===K.type)?(K=p(K,X.props),jl(K,X),K.return=z,K._debugOwner=X._owner,K._debugInfo=cn,K):(K=rp(X,z.mode,we),jl(K,X),K.return=z,K._debugInfo=cn,K)}i(U,"updateElement");function q(z,K,X,we){return K===null||K.tag!==4||K.stateNode.containerInfo!==X.containerInfo||K.stateNode.implementation!==X.implementation?(K=ef(X,z.mode,we),K.return=z,K._debugInfo=cn,K):(K=p(K,X.children||[]),K.return=z,K._debugInfo=cn,K)}i(q,"updatePortal");function fe(z,K,X,we,yt){return K===null||K.tag!==7?(K=ic(X,z.mode,we,yt),K.return=z,K._debugOwner=z,K._debugTask=z._debugTask,K._debugInfo=cn,K):(K=p(K,X),K.return=z,K._debugInfo=cn,K)}i(fe,"updateFragment");function me(z,K,X){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=ip(""+K,z.mode,X),K.return=z,K._debugOwner=z,K._debugTask=z._debugTask,K._debugInfo=cn,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case Il:return X=rp(K,z.mode,X),jl(X,K),X.return=z,z=jr(K._debugInfo),X._debugInfo=cn,cn=z,X;case Bl:return K=ef(K,z.mode,X),K.return=z,K._debugInfo=cn,K;case Ki:var we=jr(K._debugInfo);return K=_r(K),z=me(z,K,X),cn=we,z}if(dr(K)||Le(K))return X=ic(K,z.mode,X,null),X.return=z,X._debugOwner=z,X._debugTask=z._debugTask,z=jr(K._debugInfo),X._debugInfo=cn,cn=z,X;if(typeof K.then=="function")return we=jr(K._debugInfo),z=me(z,Ju(K),X),cn=we,z;if(K.$$typeof===$o)return me(z,We(z,K),X);yd(z,K)}return typeof K=="function"&&Id(z,K),typeof K=="symbol"&&ys(z,K),null}i(me,"createChild");function De(z,K,X,we){var yt=K!==null?K.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return yt!==null?null:Q(z,K,""+X,we);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case Il:return X.key===yt?(yt=jr(X._debugInfo),z=U(z,K,X,we),cn=yt,z):null;case Bl:return X.key===yt?q(z,K,X,we):null;case Ki:return yt=jr(X._debugInfo),X=_r(X),z=De(z,K,X,we),cn=yt,z}if(dr(X)||Le(X))return yt!==null?null:(yt=jr(X._debugInfo),z=fe(z,K,X,we,null),cn=yt,z);if(typeof X.then=="function")return yt=jr(X._debugInfo),z=De(z,K,Ju(X),we),cn=yt,z;if(X.$$typeof===$o)return De(z,K,We(z,X),we);yd(z,X)}return typeof X=="function"&&Id(z,X),typeof X=="symbol"&&ys(z,X),null}i(De,"updateSlot");function Tt(z,K,X,we,yt){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return z=z.get(X)||null,Q(K,z,""+we,yt);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case Il:return X=z.get(we.key===null?X:we.key)||null,z=jr(we._debugInfo),K=U(K,X,we,yt),cn=z,K;case Bl:return z=z.get(we.key===null?X:we.key)||null,q(K,z,we,yt);case Ki:var Gn=jr(we._debugInfo);return we=_r(we),K=Tt(z,K,X,we,yt),cn=Gn,K}if(dr(we)||Le(we))return X=z.get(X)||null,z=jr(we._debugInfo),K=fe(K,X,we,yt,null),cn=z,K;if(typeof we.then=="function")return Gn=jr(we._debugInfo),K=Tt(z,K,X,Ju(we),yt),cn=Gn,K;if(we.$$typeof===$o)return Tt(z,K,X,We(K,we),yt);yd(K,we)}return typeof we=="function"&&Id(K,we),typeof we=="symbol"&&ys(K,we),null}i(Tt,"updateFromMap");function Wt(z,K,X,we){if(typeof X!="object"||X===null)return we;switch(X.$$typeof){case Il:case Bl:k(z,K,X);var yt=X.key;if(typeof yt!="string")break;if(we===null){we=new Set,we.add(yt);break}if(!we.has(yt)){we.add(yt);break}He(K,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",yt)});break;case Ki:X=_r(X),Wt(z,K,X,we)}return we}i(Wt,"warnOnInvalidKey");function lo(z,K,X,we){for(var yt=null,Gn=null,Zt=null,an=K,ln=K=0,Io=null;an!==null&&ln<X.length;ln++){an.index>ln?(Io=an,an=null):Io=an.sibling;var xr=De(z,an,X[ln],we);if(xr===null){an===null&&(an=Io);break}yt=Wt(z,xr,X[ln],yt),t&&an&&xr.alternate===null&&n(z,an),K=h(xr,K,ln),Zt===null?Gn=xr:Zt.sibling=xr,Zt=xr,an=Io}if(ln===X.length)return l(z,an),wn&&w(z,ln),Gn;if(an===null){for(;ln<X.length;ln++)an=me(z,X[ln],we),an!==null&&(yt=Wt(z,an,X[ln],yt),K=h(an,K,ln),Zt===null?Gn=an:Zt.sibling=an,Zt=an);return wn&&w(z,ln),Gn}for(an=d(an);ln<X.length;ln++)Io=Tt(an,z,ln,X[ln],we),Io!==null&&(yt=Wt(z,Io,X[ln],yt),t&&Io.alternate!==null&&an.delete(Io.key===null?ln:Io.key),K=h(Io,K,ln),Zt===null?Gn=Io:Zt.sibling=Io,Zt=Io);return t&&an.forEach(function(Cu){return n(z,Cu)}),wn&&w(z,ln),Gn}i(lo,"reconcileChildrenArray");function nm(z,K,X,we){if(X==null)throw Error("An iterable object provided no iterator.");for(var yt=null,Gn=null,Zt=K,an=K=0,ln=null,Io=null,xr=X.next();Zt!==null&&!xr.done;an++,xr=X.next()){Zt.index>an?(ln=Zt,Zt=null):ln=Zt.sibling;var Cu=De(z,Zt,xr.value,we);if(Cu===null){Zt===null&&(Zt=ln);break}Io=Wt(z,Cu,xr.value,Io),t&&Zt&&Cu.alternate===null&&n(z,Zt),K=h(Cu,K,an),Gn===null?yt=Cu:Gn.sibling=Cu,Gn=Cu,Zt=ln}if(xr.done)return l(z,Zt),wn&&w(z,an),yt;if(Zt===null){for(;!xr.done;an++,xr=X.next())Zt=me(z,xr.value,we),Zt!==null&&(Io=Wt(z,Zt,xr.value,Io),K=h(Zt,K,an),Gn===null?yt=Zt:Gn.sibling=Zt,Gn=Zt);return wn&&w(z,an),yt}for(Zt=d(Zt);!xr.done;an++,xr=X.next())ln=Tt(Zt,z,an,xr.value,we),ln!==null&&(Io=Wt(z,ln,xr.value,Io),t&&ln.alternate!==null&&Zt.delete(ln.key===null?an:ln.key),K=h(ln,K,an),Gn===null?yt=ln:Gn.sibling=ln,Gn=ln);return t&&Zt.forEach(function(_4){return n(z,_4)}),wn&&w(z,an),yt}i(nm,"reconcileChildrenIterator");function Ml(z,K,X,we){if(typeof X=="object"&&X!==null&&X.type===dA&&X.key===null&&(Jl(X,null,z),X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case Il:var yt=jr(X._debugInfo);e:{for(var Gn=X.key;K!==null;){if(K.key===Gn){if(Gn=X.type,Gn===dA){if(K.tag===7){l(z,K.sibling),we=p(K,X.props.children),we.return=z,we._debugOwner=X._owner,we._debugInfo=cn,Jl(X,we,z),z=we;break e}}else if(K.elementType===Gn||tE(K,X)||typeof Gn=="object"&&Gn!==null&&Gn.$$typeof===Ki&&_r(Gn)===K.type){l(z,K.sibling),we=p(K,X.props),jl(we,X),we.return=z,we._debugOwner=X._owner,we._debugInfo=cn,z=we;break e}l(z,K);break}else n(z,K);K=K.sibling}X.type===dA?(we=ic(X.props.children,z.mode,we,X.key),we.return=z,we._debugOwner=z,we._debugTask=z._debugTask,we._debugInfo=cn,Jl(X,we,z),z=we):(we=rp(X,z.mode,we),jl(we,X),we.return=z,we._debugInfo=cn,z=we)}return z=B(z),cn=yt,z;case Bl:e:{for(yt=X,X=yt.key;K!==null;){if(K.key===X)if(K.tag===4&&K.stateNode.containerInfo===yt.containerInfo&&K.stateNode.implementation===yt.implementation){l(z,K.sibling),we=p(K,yt.children||[]),we.return=z,z=we;break e}else{l(z,K);break}else n(z,K);K=K.sibling}we=ef(yt,z.mode,we),we.return=z,z=we}return B(z);case Ki:return yt=jr(X._debugInfo),X=_r(X),z=Ml(z,K,X,we),cn=yt,z}if(dr(X))return yt=jr(X._debugInfo),z=lo(z,K,X,we),cn=yt,z;if(Le(X)){if(yt=jr(X._debugInfo),Gn=Le(X),typeof Gn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Zt=Gn.call(X);return Zt===X?(z.tag!==0||Object.prototype.toString.call(z.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Zt)!=="[object Generator]")&&(dx||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),dx=!0):X.entries!==Gn||Tv||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tv=!0),z=nm(z,K,Zt,we),cn=yt,z}if(typeof X.then=="function")return yt=jr(X._debugInfo),z=Ml(z,K,Ju(X),we),cn=yt,z;if(X.$$typeof===$o)return Ml(z,K,We(z,X),we);yd(z,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(yt=""+X,K!==null&&K.tag===6?(l(z,K.sibling),we=p(K,yt),we.return=z,z=we):(l(z,K),we=ip(yt,z.mode,we),we.return=z,we._debugOwner=z,we._debugTask=z._debugTask,we._debugInfo=cn,z=we),B(z)):(typeof X=="function"&&Id(z,X),typeof X=="symbol"&&ys(z,X),l(z,K))}return i(Ml,"reconcileChildFibersImpl"),function(z,K,X,we){var yt=cn;cn=null;try{wE=0;var Gn=Ml(z,K,X,we);return Fp=null,Gn}catch(Io){if(Io===Gp||Io===FI)throw Io;var Zt=S(29,Io,null,z.mode);Zt.lanes=we,Zt.return=z;var an=Zt._debugInfo=cn;if(Zt._debugOwner=z._debugOwner,Zt._debugTask=z._debugTask,an!=null){for(var ln=an.length-1;0<=ln;ln--)if(typeof an[ln].stack=="string"){Zt._debugOwner=an[ln],Zt._debugTask=an[ln].debugTask;break}}return Zt}finally{cn=yt}}}i(Bd,"createChildReconciler");function fh(t,n){var l=dr(t);return t=!l&&typeof Le(t)=="function",l||t?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,n,l),!1):!0}i(fh,"validateSuspenseListNestedChild");function ju(){for(var t=zp,n=_v=zp=0;n<t;){var l=Fs[n];Fs[n++]=null;var d=Fs[n];Fs[n++]=null;var p=Fs[n];Fs[n++]=null;var h=Fs[n];if(Fs[n++]=null,d!==null&&p!==null){var B=d.pending;B===null?p.next=p:(p.next=B.next,B.next=p),d.pending=p}h!==0&&Nr(l,p,h)}}i(ju,"finishQueueingConcurrentUpdates");function Sd(t,n,l,d){Fs[zp++]=t,Fs[zp++]=n,Fs[zp++]=l,Fs[zp++]=d,_v|=d,t.lanes|=d,t=t.alternate,t!==null&&(t.lanes|=d)}i(Sd,"enqueueUpdate$1");function ug(t,n,l,d){return Sd(t,n,l,d),vd(t)}i(ug,"enqueueConcurrentHookUpdate");function si(t,n){return Sd(t,null,null,n),vd(t)}i(si,"enqueueConcurrentRenderForLane");function Nr(t,n,l){t.lanes|=l;var d=t.alternate;d!==null&&(d.lanes|=l);for(var p=!1,h=t.return;h!==null;)h.childLanes|=l,d=h.alternate,d!==null&&(d.childLanes|=l),h.tag===22&&(t=h.stateNode,t===null||t._visibility&xE||(p=!0)),t=h,h=h.return;return t.tag===3?(h=t.stateNode,p&&n!==null&&(p=31-Rr(l),t=h.hiddenUpdates,d=t[p],d===null?t[p]=[n]:d.push(n),n.lane=l|536870912),h):null}i(Nr,"markUpdateLaneFromFiberToRoot");function vd(t){if(FE>x4)throw Df=FE=0,zE=eQ=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Df>D4&&(Df=0,zE=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),t.alternate===null&&(t.flags&4098)!==0&&ep(t);for(var n=t,l=n.return;l!==null;)n.alternate===null&&(n.flags&4098)!==0&&ep(t),n=l,l=n.return;return n.tag===3?n.stateNode:null}i(vd,"getRootForUpdatedFiber");function Ag(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}i(Ag,"initializeUpdateQueue");function dg(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}i(dg,"cloneUpdateQueue");function Al(t){return{lane:t,tag:hx,payload:null,callback:null,next:null}}i(Al,"createUpdate");function ba(t,n,l){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,Mv===d&&!yx){var p=ue(t);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
130
+
131
+ Please update the following component: %s`,p),yx=!0}return(xn&pi)!==gi?(p=d.pending,p===null?n.next=n:(n.next=p.next,p.next=n),d.pending=n,n=vd(t),Nr(t,null,l),n):(Sd(t,d,n,l),vd(t))}i(ba,"enqueueUpdate");function Vu(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var d=n.lanes;d&=t.pendingLanes,l|=d,n.lanes=l,be(t,l)}}i(Vu,"entangleTransitions");function kc(t,n){var l=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var B={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?p=h=B:h=h.next=B,l=l.next}while(l!==null);h===null?p=h=n:h=h.next=n}else p=h=n;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:h,shared:d.shared,callbacks:d.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}i(kc,"enqueueCapturedUpdate");function Xu(){if(Ov){var t=Lp;if(t!==null)throw t}}i(Xu,"suspendIfUpdateReadFromEntangledAsyncAction");function Qd(t,n,l,d){Ov=!1;var p=t.updateQueue;MA=!1,Mv=p.shared;var h=p.firstBaseUpdate,B=p.lastBaseUpdate,Q=p.shared.pending;if(Q!==null){p.shared.pending=null;var U=Q,q=U.next;U.next=null,B===null?h=q:B.next=q,B=U;var fe=t.alternate;fe!==null&&(fe=fe.updateQueue,Q=fe.lastBaseUpdate,Q!==B&&(Q===null?fe.firstBaseUpdate=q:Q.next=q,fe.lastBaseUpdate=U))}if(h!==null){var me=p.baseState;B=0,fe=q=U=null,Q=h;do{var De=Q.lane&-536870913,Tt=De!==Q.lane;if(Tt?(un&De)===De:(d&De)===De){De!==0&&De===yf&&(Ov=!0),fe!==null&&(fe=fe.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});e:{De=t;var Wt=Q,lo=n,nm=l;switch(Wt.tag){case Ex:if(Wt=Wt.payload,typeof Wt=="function"){Op=!0;var Ml=Wt.call(nm,me,lo);if(De.mode&8){Te(!0);try{Wt.call(nm,me,lo)}finally{Te(!1)}}Op=!1,me=Ml;break e}me=Wt;break e;case Nv:De.flags=De.flags&-65537|128;case hx:if(Ml=Wt.payload,typeof Ml=="function"){if(Op=!0,Wt=Ml.call(nm,me,lo),De.mode&8){Te(!0);try{Ml.call(nm,me,lo)}finally{Te(!1)}}Op=!1}else Wt=Ml;if(Wt==null)break e;me=Vn({},me,Wt);break e;case Cx:MA=!0}}De=Q.callback,De!==null&&(t.flags|=64,Tt&&(t.flags|=8192),Tt=p.callbacks,Tt===null?p.callbacks=[De]:Tt.push(De))}else Tt={lane:De,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},fe===null?(q=fe=Tt,U=me):fe=fe.next=Tt,B|=De;if(Q=Q.next,Q===null){if(Q=p.shared.pending,Q===null)break;Tt=Q,Q=Tt.next,Tt.next=null,p.lastBaseUpdate=Tt,p.shared.pending=null}}while(!0);fe===null&&(U=me),p.baseState=U,p.firstBaseUpdate=q,p.lastBaseUpdate=fe,h===null&&(p.shared.lanes=0),kA|=B,t.lanes=B,t.memoizedState=me}Mv=null}i(Qd,"processUpdateQueue");function bd(t,n){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(n)}i(bd,"callCallback");function gh(t,n){var l=t.shared.hiddenCallbacks;if(l!==null)for(t.shared.hiddenCallbacks=null,t=0;t<l.length;t++)bd(l[t],n)}i(gh,"commitHiddenCallbacks");function ph(t,n){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)bd(l[t],n)}i(ph,"commitCallbacks");function mh(t,n){var l=yc;ee(KI,l,t),ee(Kp,n,t),yc=l|n.baseLanes}i(mh,"pushHiddenContext");function fg(t){ee(KI,yc,t),ee(Kp,Kp.current,t)}i(fg,"reuseHiddenContextOnStack");function Rd(t){yc=KI.current,re(Kp,t),re(KI,t)}i(Rd,"popHiddenContext");function Is(t){var n=t.alternate;ee(wr,wr.current&Yp,t),ee(us,t,t),zs===null&&(n===null||Kp.current!==null||n.memoizedState!==null)&&(zs=t)}i(Is,"pushPrimaryTreeSuspenseHandler");function gg(t){ee(wr,wr.current,t),ee(us,t,t),zs===null&&(zs=t)}i(gg,"pushDehydratedActivitySuspenseHandler");function pg(t){t.tag===22?(ee(wr,wr.current,t),ee(us,t,t),zs===null&&(zs=t)):Wa(t)}i(pg,"pushOffscreenSuspenseHandler");function Wa(t){ee(wr,wr.current,t),ee(us,us.current,t)}i(Wa,"reuseSuspenseHandlerOnStack");function Qi(t){re(us,t),zs===t&&(zs=null),re(wr,t)}i(Qi,"popSuspenseHandler");function wd(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||cf(l)||yp(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}i(wd,"findFirstSuspended");function on(){var t=Ae;Ys===null?Ys=[t]:Ys.push(t)}i(on,"mountHookTypesDev");function Ye(){var t=Ae;if(Ys!==null&&(mu++,Ys[mu]!==t)){var n=ue(Xt);if(!Ix.has(n)&&(Ix.add(n),Ys!==null)){for(var l="",d=0;d<=mu;d++){var p=Ys[d],h=d===mu?t:p;for(p=d+1+". "+p;30>p.length;)p+=" ";p+=h+`
132
+ `,l+=p}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
133
+
134
+ Previous render Next render
135
+ ------------------------------------------------------
136
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
137
+ `,n,l)}}}i(Ye,"updateHookTypesDev");function Ui(t){t==null||dr(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ae,typeof t)}i(Ui,"checkDepsAreArrayDev");function Zu(){var t=ue(Xt);Sx.has(t)||(Sx.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}i(Zu,"warnOnUseFormStateInDev");function Oo(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
138
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
139
+ 2. You might be breaking the Rules of Hooks
140
+ 3. You might have more than one copy of React in the same app
141
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}i(Oo,"throwInvalidHookError");function mg(t,n){if(_E)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ae),!1;t.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
142
+
143
+ Previous: %s
144
+ Incoming: %s`,Ae,"["+n.join(", ")+"]","["+t.join(", ")+"]");for(var l=0;l<n.length&&l<t.length;l++)if(!fa(t[l],n[l]))return!1;return!0}i(mg,"areHookInputsEqual");function sa(t,n,l,d,p,h){gu=h,Xt=n,Ys=t!==null?t._debugHookTypes:null,mu=-1,_E=t!==null&&t.type!==n.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(h=ue(Xt),Hv.has(h)||(Hv.add(h),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",h===null?"An unknown Component":"<"+h+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,ce.H=t!==null&&t.memoizedState!==null?Uv:Ys!==null?vx:kv,Qf=h=(n.mode&8)!==Jt;var B=wv(l,d,p);if(Qf=!1,Pp&&(B=hg(n,l,d,p)),h){Te(!0);try{B=hg(n,l,d,p)}finally{Te(!1)}}return xd(t,n),B}i(sa,"renderWithHooks");function xd(t,n){n._debugHookTypes=Ys,n.dependencies===null?pu!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:pu}):n.dependencies._debugThenableState=pu,ce.H=NE;var l=fo!==null&&fo.next!==null;if(gu=0,Ys=Ae=Hr=fo=Xt=null,mu=-1,t!==null&&(t.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),qI=!1,TE=0,pu=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||kr||(t=t.dependencies,t!==null&&ye(t)&&(kr=!0)),RE?(RE=!1,t=!0):t=!1,t&&(n=ue(n)||"Unknown",Bx.has(n)||Hv.has(n)||(Bx.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}i(xd,"finishRenderingHooks");function hg(t,n,l,d){Xt=t;var p=0;do{if(Pp&&(pu=null),TE=0,Pp=!1,p>=b4)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,_E=!1,Hr=fo=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}mu=-1,ce.H=Qx,h=wv(n,l,d)}while(Pp);return h}i(hg,"renderWithHooksAgain");function hh(){var t=ce.H,n=t.useState()[0];return n=typeof n.then=="function"?dl(n):n,t=t.useState()[0],(fo!==null?fo.memoizedState:null)!==t&&(Xt.flags|=1024),n}i(hh,"TransitionAwareHostComponent");function Eg(){var t=PI!==0;return PI=0,t}i(Eg,"checkDidRenderIdHook");function Cg(t,n,l){n.updateQueue=t.updateQueue,n.flags=(n.mode&16)!==Jt?n.flags&-402655237:n.flags&-2053,t.lanes&=~l}i(Cg,"bailoutHooks");function Dd(t){if(qI){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}qI=!1}gu=0,Ys=Hr=fo=Xt=null,mu=-1,Ae=null,Pp=!1,TE=PI=0,pu=null}i(Dd,"resetHooksOnUnwind");function Vr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hr===null?Xt.memoizedState=Hr=t:Hr=Hr.next=t,Hr}i(Vr,"mountWorkInProgressHook");function jn(){if(fo===null){var t=Xt.alternate;t=t!==null?t.memoizedState:null}else t=fo.next;var n=Hr===null?Xt.memoizedState:Hr.next;if(n!==null)Hr=n,fo=t;else{if(t===null)throw Xt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");fo=t,t={memoizedState:fo.memoizedState,baseState:fo.baseState,baseQueue:fo.baseQueue,queue:fo.queue,next:null},Hr===null?Xt.memoizedState=Hr=t:Hr=Hr.next=t}return Hr}i(jn,"updateWorkInProgressHook");function Uc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}i(Uc,"createFunctionComponentUpdateQueue");function dl(t){var n=TE;return TE+=1,pu===null&&(pu=ai()),t=ur(pu,t,n),n=Xt,(Hr===null?n.memoizedState:Hr.next)===null&&(n=n.alternate,ce.H=n!==null&&n.memoizedState!==null?Uv:kv),t}i(dl,"useThenable");function zn(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return dl(t);if(t.$$typeof===$o)return ve(t)}throw Error("An unsupported type was passed to use(): "+String(t))}i(zn,"use");function Lc(t){var n=null,l=Xt.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var d=Xt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(n={data:d.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Uc(),Xt.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0||_E)for(l=n.data[n.index]=Array(t),d=0;d<t;d++)l[d]=SI;else l.length!==t&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,t);return n.index++,l}i(Lc,"useMemoCache");function $a(t,n){return typeof n=="function"?n(t):n}i($a,"basicStateReducer");function yg(t,n,l){var d=Vr();if(l!==void 0){var p=l(n);if(Qf){Te(!0);try{l(n)}finally{Te(!1)}}}else p=n;return d.memoizedState=d.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},d.queue=t,t=t.dispatch=wy.bind(null,Xt,t),[d.memoizedState,t]}i(yg,"mountReducer");function Bs(t){var n=jn();return Ss(n,fo,t)}i(Bs,"updateReducer");function Ss(t,n,l){var d=t.queue;if(d===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");d.lastRenderedReducer=l;var p=t.baseQueue,h=d.pending;if(h!==null){if(p!==null){var B=p.next;p.next=h.next,h.next=B}n.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=p=h,d.pending=null}if(h=t.baseState,p===null)t.memoizedState=h;else{n=p.next;var Q=B=null,U=null,q=n,fe=!1;do{var me=q.lane&-536870913;if(me!==q.lane?(un&me)===me:(gu&me)===me){var De=q.revertLane;if(De===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),me===yf&&(fe=!0);else if((gu&De)===De){q=q.next,De===yf&&(fe=!0);continue}else me={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},U===null?(Q=U=me,B=h):U=U.next=me,Xt.lanes|=De,kA|=De;me=q.action,Qf&&l(h,me),h=q.hasEagerState?q.eagerState:l(h,me)}else De={lane:me,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},U===null?(Q=U=De,B=h):U=U.next=De,Xt.lanes|=me,kA|=me;q=q.next}while(q!==null&&q!==n);if(U===null?B=h:U.next=Q,!fa(h,t.memoizedState)&&(kr=!0,fe&&(l=Lp,l!==null)))throw l;t.memoizedState=h,t.baseState=B,t.baseQueue=U,d.lastRenderedState=h}return p===null&&(d.lanes=0),[t.memoizedState,d.dispatch]}i(Ss,"updateReducerImpl");function Wu(t){var n=jn(),l=n.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=t;var d=l.dispatch,p=l.pending,h=n.memoizedState;if(p!==null){l.pending=null;var B=p=p.next;do h=t(h,B.action),B=B.next;while(B!==p);fa(h,n.memoizedState)||(kr=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),l.lastRenderedState=h}return[h,d]}i(Wu,"rerenderReducer");function Ig(t,n,l){var d=Xt,p=Vr();if(wn){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var h=l();qp||h===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),qp=!0)}else{if(h=n(),qp||(l=n(),fa(h,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qp=!0)),go===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(un&127)!==0||es(d,n,h)}return p.memoizedState=h,l={value:h,getSnapshot:n},p.queue=l,Li(Bg.bind(null,d,l,t),[t]),d.flags|=2048,xa(Ks|ma,{destroy:void 0},Eh.bind(null,d,l,h,n),null),h}i(Ig,"mountSyncExternalStore");function Vl(t,n,l){var d=Xt,p=jn(),h=wn;if(h){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=n(),!qp){var B=n();fa(l,B)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),qp=!0)}(B=!fa((fo||p).memoizedState,l))&&(p.memoizedState=l,kr=!0),p=p.queue;var Q=Bg.bind(null,d,p,t);if(ci(2048,ma,Q,[t]),p.getSnapshot!==n||B||Hr!==null&&Hr.memoizedState.tag&Ks){if(d.flags|=2048,xa(Ks|ma,{destroy:void 0},Eh.bind(null,d,p,l,n),null),go===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");h||(gu&127)!==0||es(d,n,l)}return l}i(Vl,"updateSyncExternalStore");function es(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=Xt.updateQueue,n===null?(n=Uc(),Xt.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}i(es,"pushStoreConsistencyCheck");function Eh(t,n,l,d){n.value=l,n.getSnapshot=d,Ch(n)&&Sg(t)}i(Eh,"updateStoreInstance");function Bg(t,n,l){return l(function(){Ch(n)&&(_n(2,"updateSyncExternalStore()",t),Sg(t))})}i(Bg,"subscribeToStore");function Ch(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!fa(t,l)}catch{return!0}}i(Ch,"checkIfSnapshotChanged");function Sg(t){var n=si(t,2);n!==null&&mo(n,t,2)}i(Sg,"forceStoreRerender");function Td(t){var n=Vr();if(typeof t=="function"){var l=t;if(t=l(),Qf){Te(!0);try{l()}finally{Te(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:t},n}i(Td,"mountStateImpl");function $u(t){t=Td(t);var n=t.queue,l=bh.bind(null,Xt,n);return n.dispatch=l,[t.memoizedState,l]}i($u,"mountState");function vg(t){var n=Vr();n.memoizedState=n.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=nA.bind(null,Xt,!0,l),l.dispatch=n,[t,n]}i(vg,"mountOptimistic");function yh(t,n){var l=jn();return Iy(l,fo,t,n)}i(yh,"updateOptimistic");function Iy(t,n,l,d){return t.baseState=l,Ss(t,fo,typeof d=="function"?d:$a)}i(Iy,"updateOptimisticImpl");function Ih(t,n){var l=jn();return fo!==null?Iy(l,fo,t,n):(l.baseState=t,[t,l.queue.dispatch])}i(Ih,"rerenderOptimistic");function By(t,n,l,d,p){if(oA(t))throw Error("Cannot update form state while rendering.");if(t=n.action,t!==null){var h={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:i(function(B){h.listeners.push(B)},"then")};ce.T!==null?l(!0):h.isTransition=!1,d(h),l=n.pending,l===null?(h.next=n.pending=h,Ra(n,h)):(h.next=l.next,n.pending=l.next=h)}}i(By,"dispatchActionState");function Ra(t,n){var l=n.action,d=n.payload,p=t.state;if(n.isTransition){var h=ce.T,B={};B._updatedFibers=new Set,ce.T=B;try{var Q=l(p,d),U=ce.S;U!==null&&U(B,Q),Qg(t,n,Q)}catch(q){bg(t,n,q)}finally{h!==null&&B.types!==null&&(h.types!==null&&h.types!==B.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),h.types=B.types),ce.T=h,h===null&&B._updatedFibers&&(t=B._updatedFibers.size,B._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{B=l(p,d),Qg(t,n,B)}catch(q){bg(t,n,q)}}i(Ra,"runActionStateAction");function Qg(t,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(ce.asyncTransitions++,l.then(Hd,Hd),l.then(function(d){Bh(t,n,d)},function(d){return bg(t,n,d)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Bh(t,n,l)}i(Qg,"handleActionReturnValue");function Bh(t,n,l){n.status="fulfilled",n.value=l,Sy(n),t.state=l,n=t.pending,n!==null&&(l=n.next,l===n?t.pending=null:(l=l.next,n.next=l,Ra(t,l)))}i(Bh,"onActionSuccess");function bg(t,n,l){var d=t.pending;if(t.pending=null,d!==null){d=d.next;do n.status="rejected",n.reason=l,Sy(n),n=n.next;while(n!==d)}t.action=null}i(bg,"onActionError");function Sy(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}i(Sy,"notifyActionListeners");function _d(t,n){return n}i(_d,"actionStateReducer");function Zo(t,n){if(wn){var l=go.formState;if(l!==null){e:{var d=Xt;if(wn){if(ko){var p=qi(ko,Ls);if(p){ko=cc(p),d=ls(p);break e}}Ni(d)}d=!1}d&&(n=l[0])}}l=Vr(),l.memoizedState=l.baseState=n,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:n},l.queue=d,l=bh.bind(null,Xt,d),d.dispatch=l,d=Td(!1);var h=nA.bind(null,Xt,!1,d.queue);return d=Vr(),p={state:n,dispatch:null,action:t,pending:null},d.queue=p,l=By.bind(null,Xt,p,h,l),p.dispatch=l,d.memoizedState=t,[n,l,!1]}i(Zo,"mountActionState");function Nd(t){var n=jn();return li(n,fo,t)}i(Nd,"updateActionState");function li(t,n,l){if(n=Ss(t,n,_d)[0],t=Bs($a)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var d=dl(n)}catch(B){throw B===Gp?FI:B}else d=n;n=jn();var p=n.queue,h=p.dispatch;return l!==n.memoizedState&&(Xt.flags|=2048,xa(Ks|ma,{destroy:void 0},vy.bind(null,p,l),null)),[d,h,t]}i(li,"updateActionStateImpl");function vy(t,n){t.action=n}i(vy,"actionStateActionEffect");function wa(t){var n=jn(),l=fo;if(l!==null)return li(n,l,t);jn(),n=n.memoizedState,l=jn();var d=l.queue.dispatch;return l.memoizedState=t,[n,d,!1]}i(wa,"rerenderActionState");function xa(t,n,l,d){return t={tag:t,create:l,deps:d,inst:n,next:null},n=Xt.updateQueue,n===null&&(n=Uc(),Xt.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=t.next=t:(d=l.next,l.next=t,t.next=d,n.lastEffect=t),t}i(xa,"pushSimpleEffect");function ts(t){var n=Vr();return t={current:t},n.memoizedState=t}i(ts,"mountRef");function fl(t,n,l,d){var p=Vr();Xt.flags|=t,p.memoizedState=xa(Ks|n,{destroy:void 0},l,d===void 0?null:d)}i(fl,"mountEffectImpl");function ci(t,n,l,d){var p=jn();d=d===void 0?null:d;var h=p.memoizedState.inst;fo!==null&&d!==null&&mg(d,fo.memoizedState.deps)?p.memoizedState=xa(n,h,l,d):(Xt.flags|=t,p.memoizedState=xa(Ks|n,h,l,d))}i(ci,"updateEffectImpl");function Li(t,n){(Xt.mode&16)!==Jt?fl(276826112,ma,t,n):fl(8390656,ma,t,n)}i(Li,"mountEffect");function Qy(t){Xt.flags|=4;var n=Xt.updateQueue;if(n===null)n=Uc(),Xt.updateQueue=n,n.events=[t];else{var l=n.events;l===null?n.events=[t]:l.push(t)}}i(Qy,"useEffectEventImpl");function Xl(t){var n=Vr(),l={impl:t};return n.memoizedState=l,function(){if((xn&pi)!==gi)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}i(Xl,"mountEvent");function Zl(t){var n=jn().memoizedState;return Qy({ref:n,nextImpl:t}),function(){if((xn&pi)!==gi)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}i(Zl,"updateEvent");function gl(t,n){var l=4194308;return(Xt.mode&16)!==Jt&&(l|=134217728),fl(l,As,t,n)}i(gl,"mountLayoutEffect");function Sh(t,n){if(typeof n=="function"){t=t();var l=n(t);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),t=t(),n.current=t,function(){n.current=null}}i(Sh,"imperativeHandleEffect");function Rg(t,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([t]):null;var d=4194308;(Xt.mode&16)!==Jt&&(d|=134217728),fl(d,As,Sh.bind(null,n,t),l)}i(Rg,"mountImperativeHandle");function Wl(t,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([t]):null,ci(4,As,Sh.bind(null,n,t),l)}i(Wl,"updateImperativeHandle");function wg(t,n){return Vr().memoizedState=[t,n===void 0?null:n],t}i(wg,"mountCallback");function Gc(t,n){var l=jn();n=n===void 0?null:n;var d=l.memoizedState;return n!==null&&mg(n,d[1])?d[0]:(l.memoizedState=[t,n],t)}i(Gc,"updateCallback");function xg(t,n){var l=Vr();n=n===void 0?null:n;var d=t();if(Qf){Te(!0);try{t()}finally{Te(!1)}}return l.memoizedState=[d,n],d}i(xg,"mountMemo");function eA(t,n){var l=jn();n=n===void 0?null:n;var d=l.memoizedState;if(n!==null&&mg(n,d[1]))return d[0];if(d=t(),Qf){Te(!0);try{t()}finally{Te(!1)}}return l.memoizedState=[d,n],d}i(eA,"updateMemo");function Md(t,n){var l=Vr();return Od(l,t,n)}i(Md,"mountDeferredValue");function Dg(t,n){var l=jn();return Gi(l,fo.memoizedState,t,n)}i(Dg,"updateDeferredValue");function vh(t,n){var l=jn();return fo===null?Od(l,t,n):Gi(l,fo.memoizedState,t,n)}i(vh,"rerenderDeferredValue");function Od(t,n,l){return l===void 0||(gu&1073741824)!==0&&(un&261930)===0?t.memoizedState=n:(t.memoizedState=l,t=Wy(),Xt.lanes|=t,kA|=t,l)}i(Od,"mountDeferredValueImpl");function Gi(t,n,l,d){return fa(l,n)?l:Kp.current!==null?(t=Od(t,l,d),fa(t,n)||(kr=!0),t):(gu&42)===0||(gu&1073741824)!==0&&(un&261930)===0?(kr=!0,t.memoizedState=l):(t=Wy(),Xt.lanes|=t,kA|=t,n)}i(Gi,"updateDeferredValueImpl");function Hd(){ce.asyncTransitions--}i(Hd,"releaseAsyncTransition");function bi(t,n,l,d,p){var h=Yi();er(h!==0&&8>h?h:8);var B=ce.T,Q={};Q._updatedFibers=new Set,ce.T=Q,nA(t,!1,n,l);try{var U=p(),q=ce.S;if(q!==null&&q(Q,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){ce.asyncTransitions++,U.then(Hd,Hd);var fe=dt(U,d);tA(t,n,fe,ca(t))}else tA(t,n,d,ca(t))}catch(me){tA(t,n,{then:i(function(){},"then"),status:"rejected",reason:me},ca(t))}finally{er(h),B!==null&&Q.types!==null&&(B.types!==null&&B.types!==Q.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=Q.types),ce.T=B,B===null&&Q._updatedFibers&&(t=Q._updatedFibers.size,Q._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}i(bi,"startTransition");function Qh(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:Oa,baseState:Oa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:Oa},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:l},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}i(Qh,"ensureFormComponentIsStateful");function Tg(){var t=Td(!1);return t=bi.bind(null,Xt,t.queue,!0,!1),Vr().memoizedState=t,[!1,t]}i(Tg,"mountTransition");function by(){var t=Bs($a)[0],n=jn().memoizedState;return[typeof t=="boolean"?t:dl(t),n]}i(by,"updateTransition");function pl(){var t=Wu($a)[0],n=jn().memoizedState;return[typeof t=="boolean"?t:dl(t),n]}i(pl,"rerenderTransition");function $l(){return ve(Ha)}i($l,"useHostTransitionStatus");function kd(){var t=Vr(),n=go.identifierPrefix;if(wn){var l=su,d=au;l=(d&~(1<<32-Rr(d)-1)).toString(32)+l,n="_"+n+"R_"+l,l=PI++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=Q4++,n="_"+n+"r_"+l.toString(32)+"_";return t.memoizedState=n}i(kd,"mountId");function ec(){return Vr().memoizedState=Ry.bind(null,Xt)}i(ec,"mountRefresh");function Ry(t,n){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var d=ca(l),p=Al(d),h=ba(l,p,d);h!==null&&(_n(d,"refresh()",t),mo(h,l,d),Vu(h,l,d)),t=lt(),n!=null&&h!==null&&console.error("The seed argument is not enabled outside experimental channels."),p.payload={cache:t};return}l=l.return}}i(Ry,"refreshCache");function wy(t,n,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=ca(t);var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};oA(t)?xy(n,p):(p=ug(t,n,p,d),p!==null&&(_n(d,"dispatch()",t),mo(p,t,d),Dy(p,n,d)))}i(wy,"dispatchReducerAction");function bh(t,n,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=ca(t),tA(t,n,l,d)&&_n(d,"setState()",t)}i(bh,"dispatchSetState");function tA(t,n,l,d){var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(oA(t))xy(n,p);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null)){var B=ce.H;ce.H=Dl;try{var Q=n.lastRenderedState,U=h(Q,l);if(p.hasEagerState=!0,p.eagerState=U,fa(U,Q))return Sd(t,n,p,0),go===null&&ju(),!1}catch{}finally{ce.H=B}}if(l=ug(t,n,p,d),l!==null)return mo(l,t,d),Dy(l,n,d),!0}return!1}i(tA,"dispatchSetStateInternal");function nA(t,n,l,d){if(ce.T===null&&yf===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),d={lane:2,revertLane:je(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},oA(t)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=ug(t,l,d,2),n!==null&&(_n(2,"setOptimistic()",t),mo(n,t,2))}i(nA,"dispatchOptimisticSetState");function oA(t){var n=t.alternate;return t===Xt||n!==null&&n===Xt}i(oA,"isRenderPhaseUpdate");function xy(t,n){Pp=qI=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}i(xy,"enqueueRenderPhaseUpdate");function Dy(t,n,l){if((l&4194048)!==0){var d=n.lanes;d&=t.pendingLanes,l|=d,n.lanes=l,be(t,l)}}i(Dy,"entangleTransitionUpdate");function Rh(t){if(t!==null&&typeof t!="function"){var n=String(t);Hx.has(n)||(Hx.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}i(Rh,"warnOnInvalidCallback");function _g(t,n,l,d){var p=t.memoizedState,h=l(d,p);if(t.mode&8){Te(!0);try{h=l(d,p)}finally{Te(!1)}}h===void 0&&(n=le(n)||"Component",_x.has(n)||(_x.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),p=h==null?p:Vn({},p,h),t.memoizedState=p,t.lanes===0&&(t.updateQueue.baseState=p)}i(_g,"applyDerivedStateFromProps");function wh(t,n,l,d,p,h,B){var Q=t.stateNode;if(typeof Q.shouldComponentUpdate=="function"){if(l=Q.shouldComponentUpdate(d,h,B),t.mode&8){Te(!0);try{l=Q.shouldComponentUpdate(d,h,B)}finally{Te(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",le(n)||"Component"),l}return n.prototype&&n.prototype.isPureReactComponent?!Ao(l,d)||!Ao(p,h):!0}i(wh,"checkShouldComponentUpdate");function Fc(t,n,l,d){var p=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,d),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,d),n.state!==p&&(t=ue(t)||"Component",Rx.has(t)||(Rx.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),Lv.enqueueReplaceState(n,n.state,null))}i(Fc,"callComponentWillReceiveProps");function vs(t,n){var l=n;if("ref"in n){l={};for(var d in n)d!=="ref"&&(l[d]=n[d])}if(t=t.defaultProps){l===n&&(l=Vn({},l));for(var p in t)l[p]===void 0&&(l[p]=t[p])}return l}i(vs,"resolveClassComponentProps");function Ud(t,n){try{Jp=n.source?ue(n.source):null,Gv=null;var l=n.value;if(ce.actQueue!==null)ce.thrownErrors.push(l);else{var d=t.onUncaughtError;d(l,{componentStack:n.stack})}}catch(p){setTimeout(function(){throw p})}}i(Ud,"logUncaughtError");function xh(t,n,l){try{Jp=l.source?ue(l.source):null,Gv=ue(n);var d=t.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}i(xh,"logCaughtError");function Ng(t,n,l){return l=Al(l),l.tag=Nv,l.payload={element:null},l.callback=function(){He(n.source,Ud,t,n)},l}i(Ng,"createRootErrorUpdate");function Mg(t){return t=Al(t),t.tag=Nv,t}i(Mg,"createClassErrorUpdate");function Og(t,n,l,d){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var h=d.value;t.payload=function(){return p(h)},t.callback=function(){EI(l),He(d.source,xh,n,l,d)}}var B=l.stateNode;B!==null&&typeof B.componentDidCatch=="function"&&(t.callback=function(){EI(l),He(d.source,xh,n,l,d),typeof p!="function"&&(LA===null?LA=new Set([this]):LA.add(this)),I4(this,d),typeof p=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ue(l)||"Unknown")})}i(Og,"initializeClassErrorUpdate");function Ty(t,n,l,d,p){if(l.flags|=32768,pc&&cA(t,p),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(n=l.alternate,n!==null&&V(n,l,p,!0),wn&&(hc=!0),l=us.current,l!==null){switch(l.tag){case 31:case 13:return zs===null?Wg():l.alternate===null&&Lo===Eu&&(Lo=tB),l.flags&=-257,l.flags|=65536,l.lanes=p,d===zI?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([d]):n.add(d),Wh(t,d,p)),!1;case 22:return l.flags|=65536,d===zI?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([d]):l.add(d)),Wh(t,d,p)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return Wh(t,d,p),Wg(),!1}if(wn)return hc=!0,n=us.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,d!==hv&&Sr(Tn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:d}),l))):(d!==hv&&Sr(Tn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:d}),l)),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,d=Tn(d,l),p=Ng(t.stateNode,d,p),kc(t,p),Lo!==OA&&(Lo=bf)),!1;var h=Tn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:d}),l);if(UE===null?UE=[h]:UE.push(h),Lo!==OA&&(Lo=bf),n===null)return!0;d=Tn(d,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,t=p&-p,l.lanes|=t,t=Ng(l.stateNode,d,t),kc(l,t),!1;case 1:if(n=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(LA===null||!LA.has(h))))return l.flags|=65536,p&=-p,l.lanes|=p,p=Mg(p),Og(p,t,l,d),kc(l,p),!1}l=l.return}while(l!==null);return!1}i(Ty,"throwException");function Wo(t,n,l,d){n.child=t===null?mx(n,null,l,d):vf(n,t.child,l,d)}i(Wo,"reconcileChildren");function Dh(t,n,l,d,p){l=l.render;var h=n.ref;if("ref"in d){var B={};for(var Q in d)Q!=="ref"&&(B[Q]=d[Q])}else B=d;return Oe(n),d=sa(t,n,l,B,h,p),Q=Eg(),t!==null&&!kr?(Cg(t,n,p),ns(t,n,p)):(wn&&Q&&ze(n),n.flags|=1,Wo(t,n,d,p),n.child)}i(Dh,"updateForwardRef");function Th(t,n,l,d,p){if(t===null){var h=l.type;return typeof h=="function"&&!np(h)&&h.defaultProps===void 0&&l.compare===null?(l=jc(h),n.tag=15,n.type=l,ml(n,h),Un(t,n,l,d,p)):(t=op(l.type,null,d,n,n.mode,p),t.ref=n.ref,t.return=n,n.child=t)}if(h=t.child,!dn(t,p)){var B=h.memoizedProps;if(l=l.compare,l=l!==null?l:Ao,l(B,d)&&t.ref===n.ref)return ns(t,n,p)}return n.flags|=1,t=yl(h,d),t.ref=n.ref,t.return=n,n.child=t}i(Th,"updateMemoComponent");function Un(t,n,l,d,p){if(t!==null){var h=t.memoizedProps;if(Ao(h,d)&&t.ref===n.ref&&n.type===t.type)if(kr=!1,n.pendingProps=d=h,dn(t,p))(t.flags&131072)!==0&&(kr=!0);else return n.lanes=t.lanes,ns(t,n,p)}return Gd(t,n,l,d,p)}i(Un,"updateSimpleMemoComponent");function Hg(t,n,l,d){var p=d.children,h=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:xE,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,t!==null){for(d=n.child=t.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~h}else d=0,n.child=null;return _h(t,n,h,l,d)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xo(n,h!==null?h.cachePool:null),h!==null?mh(n,h):fg(n),pg(n);else return d=n.lanes=536870912,_h(t,n,h!==null?h.baseLanes|l:l,l,d)}else h!==null?(Xo(n,h.cachePool),mh(n,h),Wa(n),n.memoizedState=null):(t!==null&&Xo(n,null),fg(n),Wa(n));return Wo(t,n,p,l),n.child}i(Hg,"updateOffscreenComponent");function Ld(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:xE,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}i(Ld,"bailoutOffscreenComponent");function _h(t,n,l,d,p){var h=mn();return h=h===null?null:{parent:Di?or._currentValue:or._currentValue2,pool:h},n.memoizedState={baseLanes:l,cachePool:h},t!==null&&Xo(n,null),fg(n),pg(n),t!==null&&V(t,n,d,!0),n.childLanes=p,null}i(_h,"deferHiddenOffscreenComponent");function kg(t,n){var l=n.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
145
+ - <Activity %s>
146
+ + <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),n=Kd({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}i(kg,"mountActivityChildren");function _y(t,n,l){return vf(n,t.child,null,l),t=kg(n,n.pendingProps),t.flags|=2,Qi(n),n.memoizedState=null,t}i(_y,"retryActivityComponentWithoutHydrating");function JS(t,n,l){var d=n.pendingProps,p=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(wn){if(d.mode==="hidden")return t=kg(n,d),n.lanes=536870912,Ld(null,t);if(gg(n),(t=ko)?(l=yn(t,Ls),l!==null&&(d={dehydrated:l,treeContext:it(),retryLane:536870912,hydrationErrors:null},n.memoizedState=d,d=Vc(l),d.return=n,n.child=d,Ti=n,ko=null)):l=null,l===null)throw oa(n,t),Ni(n);return n.lanes=536870912,null}return kg(n,d)}var h=t.memoizedState;if(h!==null){var B=h.dehydrated;if(gg(n),p)if(n.flags&256)n.flags&=-257,n=_y(t,n,l);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Bi(),(l&536870912)!==0&&Zg(n),kr||V(t,n,l,!1),p=(l&t.childLanes)!==0,kr||p){if(d=go,d!==null&&(B=Xe(d,l),B!==0&&B!==h.retryLane))throw h.retryLane=B,si(t,B),mo(d,t,B),Fv;Wg(),n=_y(t,n,l)}else t=h.treeContext,di&&(ko=Sp(B),Ti=n,wn=!0,xA=null,hc=!1,cs=null,Ls=!1,t!==null&&An(n,t)),n=kg(n,d),n.flags|=4096;return n}return h=t.child,d={mode:d.mode,children:d.children},(l&536870912)!==0&&(l&t.lanes)!==0&&Zg(n),t=yl(h,d),t.ref=n.ref,n.child=t,t.return=n,t}i(JS,"updateActivityComponent");function Ug(t,n){var l=n.ref;if(l===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==l)&&(n.flags|=4194816)}}i(Ug,"markRef");function Gd(t,n,l,d,p){if(l.prototype&&typeof l.prototype.render=="function"){var h=le(l)||"Unknown";kx[h]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",h,h),kx[h]=!0)}return n.mode&8&&xl.recordLegacyContextWarning(n,null),t===null&&(ml(n,n.type),l.contextTypes&&(h=le(l)||"Unknown",Lx[h]||(Lx[h]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",h)))),Oe(n),l=sa(t,n,l,d,void 0,p),d=Eg(),t!==null&&!kr?(Cg(t,n,p),ns(t,n,p)):(wn&&d&&ze(n),n.flags|=1,Wo(t,n,l,p),n.child)}i(Gd,"updateFunctionComponent");function Qs(t,n,l,d,p,h){return Oe(n),mu=-1,_E=t!==null&&t.type!==n.type,n.updateQueue=null,l=hg(n,d,l,p),xd(t,n),d=Eg(),t!==null&&!kr?(Cg(t,n,h),ns(t,n,h)):(wn&&d&&ze(n),n.flags|=1,Wo(t,n,l,h),n.child)}i(Qs,"replayFunctionComponent");function Nh(t,n,l,d,p){switch(E(n)){case!1:var h=n.stateNode,B=new n.type(n.memoizedProps,h.context).state;h.updater.enqueueSetState(h,B,null);break;case!0:n.flags|=128,n.flags|=65536,h=Error("Simulated error coming from DevTools");var Q=p&-p;if(n.lanes|=Q,B=go,B===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Q=Mg(Q),Og(Q,B,n,Tn(h,n)),kc(n,Q)}if(Oe(n),n.stateNode===null){if(B=Co,h=l.contextType,"contextType"in l&&h!==null&&(h===void 0||h.$$typeof!==$o)&&!Ox.has(l)&&(Ox.add(l),Q=h===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof h!="object"?" However, it is set to a "+typeof h+".":h.$$typeof===Zc?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(h).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",le(l)||"Component",Q)),typeof h=="object"&&h!==null&&(B=ve(h)),h=new l(d,B),n.mode&8){Te(!0);try{h=new l(d,B)}finally{Te(!1)}}if(B=n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Lv,n.stateNode=h,h._reactInternals=n,h._reactInternalInstance=bx,typeof l.getDerivedStateFromProps=="function"&&B===null&&(B=le(l)||"Component",wx.has(B)||(wx.add(B),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",B,h.state===null?"null":"undefined",B))),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"){var U=Q=B=null;if(typeof h.componentWillMount=="function"&&h.componentWillMount.__suppressDeprecationWarning!==!0?B="componentWillMount":typeof h.UNSAFE_componentWillMount=="function"&&(B="UNSAFE_componentWillMount"),typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Q="componentWillReceiveProps":typeof h.UNSAFE_componentWillReceiveProps=="function"&&(Q="UNSAFE_componentWillReceiveProps"),typeof h.componentWillUpdate=="function"&&h.componentWillUpdate.__suppressDeprecationWarning!==!0?U="componentWillUpdate":typeof h.UNSAFE_componentWillUpdate=="function"&&(U="UNSAFE_componentWillUpdate"),B!==null||Q!==null||U!==null){h=le(l)||"Component";var q=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Dx.has(h)||(Dx.add(h),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
147
+
148
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
149
+
150
+ The above lifecycles should be removed. Learn more about this warning here:
151
+ https://react.dev/link/unsafe-component-lifecycles`,h,q,B!==null?`
152
+ `+B:"",Q!==null?`
153
+ `+Q:"",U!==null?`
154
+ `+U:""))}}h=n.stateNode,B=le(l)||"Component",h.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",B):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",B)),!h.getInitialState||h.getInitialState.isReactClassApproved||h.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",B),h.getDefaultProps&&!h.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",B),h.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",B),l.childContextTypes&&!Mx.has(l)&&(Mx.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",B)),l.contextTypes&&!Nx.has(l)&&(Nx.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",B)),typeof h.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",B),l.prototype&&l.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",le(l)||"A pure component"),typeof h.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",B),typeof h.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",B),typeof h.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",B),typeof h.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",B),Q=h.props!==d,h.props!==void 0&&Q&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",B),h.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",B,B),typeof h.getSnapshotBeforeUpdate!="function"||typeof h.componentDidUpdate=="function"||xx.has(l)||(xx.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",le(l))),typeof h.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof h.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",B),(Q=h.state)&&(typeof Q!="object"||dr(Q))&&console.error("%s.state: must be set to an object or null",B),typeof h.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",B),h=n.stateNode,h.props=d,h.state=n.memoizedState,h.refs={},Ag(n),B=l.contextType,h.context=typeof B=="object"&&B!==null?ve(B):Co,h.state===d&&(B=le(l)||"Component",Tx.has(B)||(Tx.add(B),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",B))),n.mode&8&&xl.recordLegacyContextWarning(n,h),xl.recordUnsafeLifecycleWarnings(n,h),h.state=n.memoizedState,B=l.getDerivedStateFromProps,typeof B=="function"&&(_g(n,l,B,d),h.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(B=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),B!==h.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ue(n)||"Component"),Lv.enqueueReplaceState(h,h.state,null)),Qd(n,d,h,p),Xu(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==Jt&&(n.flags|=134217728),h=!0}else if(t===null){h=n.stateNode;var fe=n.memoizedProps;Q=vs(l,fe),h.props=Q;var me=h.context;U=l.contextType,B=Co,typeof U=="object"&&U!==null&&(B=ve(U)),q=l.getDerivedStateFromProps,U=typeof q=="function"||typeof h.getSnapshotBeforeUpdate=="function",fe=n.pendingProps!==fe,U||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(fe||me!==B)&&Fc(n,h,d,B),MA=!1;var De=n.memoizedState;h.state=De,Qd(n,d,h,p),Xu(),me=n.memoizedState,fe||De!==me||MA?(typeof q=="function"&&(_g(n,l,q,d),me=n.memoizedState),(Q=MA||wh(n,l,Q,d,De,me,B))?(U||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==Jt&&(n.flags|=134217728)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==Jt&&(n.flags|=134217728),n.memoizedProps=d,n.memoizedState=me),h.props=d,h.state=me,h.context=B,h=Q):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==Jt&&(n.flags|=134217728),h=!1)}else{h=n.stateNode,dg(t,n),B=n.memoizedProps,U=vs(l,B),h.props=U,q=n.pendingProps,De=h.context,me=l.contextType,Q=Co,typeof me=="object"&&me!==null&&(Q=ve(me)),fe=l.getDerivedStateFromProps,(me=typeof fe=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(B!==q||De!==Q)&&Fc(n,h,d,Q),MA=!1,De=n.memoizedState,h.state=De,Qd(n,d,h,p),Xu();var Tt=n.memoizedState;B!==q||De!==Tt||MA||t!==null&&t.dependencies!==null&&ye(t.dependencies)?(typeof fe=="function"&&(_g(n,l,fe,d),Tt=n.memoizedState),(U=MA||wh(n,l,U,d,De,Tt,Q)||t!==null&&t.dependencies!==null&&ye(t.dependencies))?(me||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(d,Tt,Q),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(d,Tt,Q)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||B===t.memoizedProps&&De===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||B===t.memoizedProps&&De===t.memoizedState||(n.flags|=1024),n.memoizedProps=d,n.memoizedState=Tt),h.props=d,h.state=Tt,h.context=Q,h=U):(typeof h.componentDidUpdate!="function"||B===t.memoizedProps&&De===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||B===t.memoizedProps&&De===t.memoizedState||(n.flags|=1024),h=!1)}if(Q=h,Ug(t,n),B=(n.flags&128)!==0,Q||B){if(Q=n.stateNode,Jn(n),B&&typeof l.getDerivedStateFromError!="function")l=null,ga=-1;else if(l=nx(Q),n.mode&8){Te(!0);try{nx(Q)}finally{Te(!1)}}n.flags|=1,t!==null&&B?(n.child=vf(n,t.child,null,p),n.child=vf(n,null,l,p)):Wo(t,n,l,p),n.memoizedState=Q.state,t=n.child}else t=ns(t,n,p);return p=n.stateNode,h&&p.props!==d&&(jp||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ue(n)||"a component"),jp=!0),t}i(Nh,"updateClassComponent");function Fd(t,n,l,d){return Br(),n.flags|=256,Wo(t,n,l,d),n.child}i(Fd,"mountHostRootWithoutHydrating");function ml(t,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
155
+ %s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(t=le(n)||"Unknown",Gx[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),Gx[t]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=le(n)||"Unknown",Ux[n]||(console.error("%s: Function components do not support contextType.",n),Ux[n]=!0))}i(ml,"validateFunctionComponentInDev");function zd(t){return{baseLanes:t,cachePool:Pl()}}i(zd,"mountSuspenseOffscreenState");function Lg(t,n,l){return t=t!==null?t.childLanes&~l:0,n&&(t|=Fa),t}i(Lg,"getRemainingWorkInPrimaryTree");function Gg(t,n,l){var d=n.pendingProps;m(n)&&(n.flags|=128);var p=!1,h=(n.flags&128)!==0,B;if((B=h)||(B=t!==null&&t.memoizedState===null?!1:(wr.current&DE)!==0),B&&(p=!0,n.flags&=-129),B=(n.flags&32)!==0,n.flags&=-33,t===null){if(wn){if(p?Is(n):Wa(n),(t=ko)?(l=so(t,Ls),l!==null&&(B={dehydrated:l,treeContext:it(),retryLane:536870912,hydrationErrors:null},n.memoizedState=B,B=Vc(l),B.return=n,n.child=B,Ti=n,ko=null)):l=null,l===null)throw oa(n,t),Ni(n);return yp(l)?n.lanes=32:n.lanes=536870912,null}var Q=d.children;return d=d.fallback,p?(Wa(n),p=n.mode,Q=Kd({mode:"hidden",children:Q},p),d=ic(d,p,l,null),Q.return=n,d.return=n,Q.sibling=d,n.child=Q,d=n.child,d.memoizedState=zd(l),d.childLanes=Lg(t,B,l),n.memoizedState=zv,Ld(null,d)):(Is(n),Mh(n,Q))}var U=t.memoizedState;if(U!==null&&(Q=U.dehydrated,Q!==null)){if(h)n.flags&256?(Is(n),n.flags&=-257,n=Fg(t,n,l)):n.memoizedState!==null?(Wa(n),n.child=t.child,n.flags|=128,n=null):(Wa(n),Q=d.fallback,p=n.mode,d=Kd({mode:"visible",children:d.children},p),Q=ic(Q,p,l,null),Q.flags|=2,d.return=n,Q.return=n,d.sibling=Q,n.child=d,vf(n,t.child,null,l),d=n.child,d.memoizedState=zd(l),d.childLanes=Lg(t,B,l),n.memoizedState=zv,n=Ld(null,d));else if(Is(n),Bi(),(l&536870912)!==0&&Zg(n),yp(Q))p=Mr(Q),B=p.digest,Q=p.message,d=p.stack,p=p.componentStack,Q=Error(Q||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),Q.stack=d||"",Q.digest=B,B=p===void 0?null:p,d={value:Q,source:null,stack:B},typeof B=="string"&&mv.set(Q,d),Sr(d),n=Fg(t,n,l);else if(kr||V(t,n,l,!1),B=(l&t.childLanes)!==0,kr||B){if(B=go,B!==null&&(d=Xe(B,l),d!==0&&d!==U.retryLane))throw U.retryLane=d,si(t,d),mo(B,t,d),Fv;cf(Q)||Wg(),n=Fg(t,n,l)}else cf(Q)?(n.flags|=192,n.child=t.child,n=null):(t=U.treeContext,di&&(ko=vp(Q),Ti=n,wn=!0,xA=null,hc=!1,cs=null,Ls=!1,t!==null&&An(n,t)),n=Mh(n,d.children),n.flags|=4096);return n}return p?(Wa(n),Q=d.fallback,p=n.mode,U=t.child,h=U.sibling,d=yl(U,{mode:"hidden",children:d.children}),d.subtreeFlags=U.subtreeFlags&65011712,h!==null?Q=yl(h,Q):(Q=ic(Q,p,l,null),Q.flags|=2),Q.return=n,d.return=n,d.sibling=Q,n.child=d,Ld(null,d),d=n.child,Q=t.child.memoizedState,Q===null?Q=zd(l):(p=Q.cachePool,p!==null?(U=Di?or._currentValue:or._currentValue2,p=p.parent!==U?{parent:U,pool:U}:p):p=Pl(),Q={baseLanes:Q.baseLanes|l,cachePool:p}),d.memoizedState=Q,d.childLanes=Lg(t,B,l),n.memoizedState=zv,Ld(t.child,d)):(U!==null&&(l&62914560)===l&&(l&t.lanes)!==0&&Zg(n),Is(n),l=t.child,t=l.sibling,l=yl(l,{mode:"visible",children:d.children}),l.return=n,l.sibling=null,t!==null&&(B=n.deletions,B===null?(n.deletions=[t],n.flags|=16):B.push(t)),n.child=l,n.memoizedState=null,l)}i(Gg,"updateSuspenseComponent");function Mh(t,n){return n=Kd({mode:"visible",children:n},t.mode),n.return=t,t.child=n}i(Mh,"mountSuspensePrimaryChildren");function Kd(t,n){return t=S(22,t,null,n),t.lanes=0,t}i(Kd,"mountWorkInProgressOffscreenFiber");function Fg(t,n,l){return vf(n,t.child,null,l),t=Mh(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}i(Fg,"retrySuspenseComponentWithoutHydrating");function Oh(t,n,l){t.lanes|=n;var d=t.alternate;d!==null&&(d.lanes|=n),G(t.return,n,l)}i(Oh,"scheduleSuspenseWorkOnFiber");function zg(t,n,l,d,p,h){var B=t.memoizedState;B===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p,treeForkCount:h}:(B.isBackwards=n,B.rendering=null,B.renderingStartTime=0,B.last=d,B.tail=l,B.tailMode=p,B.treeForkCount=h)}i(zg,"initSuspenseListRenderState");function Hh(t,n,l){var d=n.pendingProps,p=d.revealOrder,h=d.tail,B=d.children,Q=wr.current;if((d=(Q&DE)!==0)?(Q=Q&Yp|DE,n.flags|=128):Q&=Yp,ee(wr,Q,n),Q=p??"null",p!=="forwards"&&p!=="unstable_legacy-backwards"&&p!=="together"&&p!=="independent"&&!Fx[Q])if(Fx[Q]=!0,p==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(p==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof p=="string")switch(p.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',p,p.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',p,p.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p);Q=h??"null",jI[Q]||(h==null?(p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&(jI[Q]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):h!=="visible"&&h!=="collapsed"&&h!=="hidden"?(jI[Q]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',h)):p!=="forwards"&&p!=="backwards"&&p!=="unstable_legacy-backwards"&&(jI[Q]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',h)));e:if((p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&B!==void 0&&B!==null&&B!==!1)if(dr(B)){for(Q=0;Q<B.length;Q++)if(!fh(B[Q],Q))break e}else if(Q=Le(B),typeof Q=="function"){if(Q=Q.call(B))for(var U=Q.next(),q=0;!U.done;U=Q.next()){if(!fh(U.value,q))break e;q++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',p);if(Wo(t,n,B,l),wn?(ft(),B=gE):B=0,!d&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Oh(t,l,n);else if(t.tag===19)Oh(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(l=n.child,p=null;l!==null;)t=l.alternate,t!==null&&wd(t)===null&&(p=l),l=l.sibling;l=p,l===null?(p=n.child,n.child=null):(p=l.sibling,l.sibling=null),zg(n,!1,p,l,h,B);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=n.child,n.child=null;p!==null;){if(t=p.alternate,t!==null&&wd(t)===null){n.child=p;break}t=p.sibling,p.sibling=l,l=p,p=t}zg(n,!0,l,null,h,B);break;case"together":zg(n,!1,null,null,void 0,B);break;default:n.memoizedState=null}return n.child}i(Hh,"updateSuspenseListComponent");function ns(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),ga=-1,kA|=n.lanes,(l&n.childLanes)===0)if(t!==null){if(V(t,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(t=n.child,l=yl(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=yl(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}i(ns,"bailoutOnAlreadyFinishedWork");function dn(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&ye(t)))}i(dn,"checkScheduledUpdateOrContext");function jS(t,n,l){switch(n.tag){case 3:sn(n,n.stateNode.containerInfo),x(n,or,t.memoizedState.cache),Br();break;case 27:case 5:jo(n);break;case 4:sn(n,n.stateNode.containerInfo);break;case 10:x(n,n.type,n.memoizedProps.value);break;case 12:(l&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var d=n.stateNode;d.effectDuration=-0,d.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,gg(n),null;break;case 13:if(d=n.memoizedState,d!==null)return d.dehydrated!==null?(Is(n),n.flags|=128,null):(l&n.child.childLanes)!==0?Gg(t,n,l):(Is(n),t=ns(t,n,l),t!==null?t.sibling:null);Is(n);break;case 19:var p=(t.flags&128)!==0;if(d=(l&n.childLanes)!==0,d||(V(t,n,l,!1),d=(l&n.childLanes)!==0),p){if(d)return Hh(t,n,l);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ee(wr,wr.current,n),d)break;return null;case 22:return n.lanes=0,Hg(t,n,l,n.pendingProps);case 24:x(n,or,t.memoizedState.cache)}return ns(t,n,l)}i(jS,"attemptEarlyBailoutIfNoScheduledUpdate");function Ri(t,n,l){if(n._debugNeedsRemount&&t!==null){l=op(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),l._debugStack=n._debugStack,l._debugTask=n._debugTask;var d=n.return;if(d===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,n.alternate=null,l.index=n.index,l.sibling=n.sibling,l.return=n.return,l.ref=n.ref,l._debugInfo=n._debugInfo,n===d.child)d.child=l;else{var p=d.child;if(p===null)throw Error("Expected parent to have a child.");for(;p.sibling!==n;)if(p=p.sibling,p===null)throw Error("Expected to find the previous sibling.");p.sibling=l}return n=d.deletions,n===null?(d.deletions=[t],d.flags|=16):n.push(t),l.flags|=2,l}if(t!==null)if(t.memoizedProps!==n.pendingProps||n.type!==t.type)kr=!0;else{if(!dn(t,l)&&(n.flags&128)===0)return kr=!1,jS(t,n,l);kr=(t.flags&131072)!==0}else kr=!1,(d=wn)&&(ft(),d=(n.flags&1048576)!==0),d&&(d=n.index,ft(),j(n,gE,d));switch(n.lanes=0,n.tag){case 16:e:if(d=n.pendingProps,t=_r(n.elementType),n.type=t,typeof t=="function")np(t)?(d=vs(t,d),n.tag=1,n.type=t=jc(t),n=Nh(null,n,t,d,l)):(n.tag=0,ml(n,t),n.type=t=jc(t),n=Gd(null,n,t,d,l));else{if(t!=null){if(p=t.$$typeof,p===Wr){n.tag=11,n.type=t=tp(t),n=Dh(null,n,t,d,l);break e}else if(p===fA){n.tag=14,n=Th(null,n,t,d,l);break e}}throw n="",t!==null&&typeof t=="object"&&t.$$typeof===Ki&&(n=" Did you wrap a component in React.lazy() more than once?"),t=le(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+t+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return Gd(t,n,n.type,n.pendingProps,l);case 1:return d=n.type,p=vs(d,n.pendingProps),Nh(t,n,d,p,l);case 3:e:{if(sn(n,n.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");var h=n.pendingProps;p=n.memoizedState,d=p.element,dg(t,n),Qd(n,h,null,l);var B=n.memoizedState;if(h=B.cache,x(n,or,h),h!==p.cache&&Y(n,[or],l,!0),Xu(),h=B.element,di&&p.isDehydrated)if(p={element:h,isDehydrated:!1,cache:B.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=Fd(t,n,h,l);break e}else if(h!==d){d=Tn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),Sr(d),n=Fd(t,n,h,l);break e}else for(di&&(ko=Bp(n.stateNode.containerInfo),Ti=n,wn=!0,xA=null,hc=!1,cs=null,Ls=!0),t=mx(n,null,h,l),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Br(),h===d){n=ns(t,n,l);break e}Wo(t,n,h,l)}n=n.child}return n;case 26:if($n)return Ug(t,n),t===null?(t=Hs(n.type,null,n.pendingProps,null))?n.memoizedState=t:wn||(n.stateNode=a(n.type,n.pendingProps,wt(wA.current),n)):n.memoizedState=Hs(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:if(I)return jo(n),t===null&&I&&wn&&(p=wt(wA.current),d=po(),p=n.stateNode=_(n.type,n.pendingProps,p,d,!1),hc||(d=df(p,n.type,n.pendingProps,d),d!==null&&(ao(n,0).serverProps=d)),Ti=n,Ls=!0,ko=Qp(n.type,p,ko)),Wo(t,n,n.pendingProps.children,l),Ug(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&wn&&(h=po(),d=Rp(n.type,n.pendingProps,h),p=ko,(B=!p)||(B=uf(p,n.type,n.pendingProps,Ls),B!==null?(n.stateNode=B,hc||(h=df(B,n.type,n.pendingProps,h),h!==null&&(ao(n,0).serverProps=h)),Ti=n,ko=Ip(B),Ls=!1,h=!0):h=!1,B=!h),B&&(d&&oa(n,p),Ni(n))),jo(n),p=n.type,h=n.pendingProps,B=t!==null?t.memoizedProps:null,d=h.children,hn(p,h)?d=null:B!==null&&hn(p,B)&&(n.flags|=32),n.memoizedState!==null&&(p=sa(t,n,hh,null,null,l),Di?Ha._currentValue=p:Ha._currentValue2=p),Ug(t,n),Wo(t,n,d,l),n.child;case 6:return t===null&&wn&&(t=n.pendingProps,l=po(),t=dc(t,l),l=ko,(d=!l)||(d=Av(l,n.pendingProps,Ls),d!==null?(n.stateNode=d,Ti=n,ko=null,d=!0):d=!1,d=!d),d&&(t&&oa(n,l),Ni(n))),null;case 13:return Gg(t,n,l);case 4:return sn(n,n.stateNode.containerInfo),d=n.pendingProps,t===null?n.child=vf(n,null,d,l):Wo(t,n,d,l),n.child;case 11:return Dh(t,n,n.type,n.pendingProps,l);case 7:return Wo(t,n,n.pendingProps,l),n.child;case 8:return Wo(t,n,n.pendingProps.children,l),n.child;case 12:return n.flags|=4,n.flags|=2048,d=n.stateNode,d.effectDuration=-0,d.passiveEffectDuration=-0,Wo(t,n,n.pendingProps.children,l),n.child;case 10:return d=n.type,p=n.pendingProps,h=p.value,"value"in p||zx||(zx=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),x(n,d,h),Wo(t,n,p.children,l),n.child;case 9:return p=n.type._context,d=n.pendingProps.children,typeof d!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Oe(n),p=ve(p),d=wv(d,p,void 0),n.flags|=1,Wo(t,n,d,l),n.child;case 14:return Th(t,n,n.type,n.pendingProps,l);case 15:return Un(t,n,n.type,n.pendingProps,l);case 19:return Hh(t,n,l);case 31:return JS(t,n,l);case 22:return Hg(t,n,l,n.pendingProps);case 24:return Oe(n),d=ve(or),t===null?(p=mn(),p===null&&(p=go,h=lt(),p.pooledCache=h,xt(h),h!==null&&(p.pooledCacheLanes|=l),p=h),n.memoizedState={parent:d,cache:p},Ag(n),x(n,or,p)):((t.lanes&l)!==0&&(dg(t,n),Qd(n,null,null,l),Xu()),p=t.memoizedState,h=n.memoizedState,p.parent!==d?(p={parent:d,cache:d},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),x(n,or,d)):(d=h.cache,x(n,or,d),d!==p.cache&&Y(n,[or],l,!0))),Wo(t,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}i(Ri,"beginWork");function la(t){t.flags|=4}i(la,"markUpdate");function Kg(t){Ns&&(t.flags|=8)}i(Kg,"markCloned");function Yd(t,n){if(t!==null&&t.child===n.child)return!1;if((n.flags&16)!==0)return!0;for(t=n.child;t!==null;){if((t.flags&8218)!==0||(t.subtreeFlags&8218)!==0)return!0;t=t.sibling}return!1}i(Yd,"doesRequireClone");function tc(t,n,l,d){if(Eo)for(l=n.child;l!==null;){if(l.tag===5||l.tag===6)br(t,l.stateNode);else if(!(l.tag===4||I&&l.tag===27)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}else if(Ns)for(var p=n.child;p!==null;){if(p.tag===5){var h=p.stateNode;l&&d&&(h=Os(h,p.type,p.memoizedProps)),br(t,h)}else if(p.tag===6)h=p.stateNode,l&&d&&(h=nr(h,p.memoizedProps)),br(t,h);else if(p.tag!==4){if(p.tag===22&&p.memoizedState!==null)h=p.child,h!==null&&(h.return=p),tc(t,p,!0,!0);else if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===n)break;for(;p.sibling===null;){if(p.return===null||p.return===n)return;p=p.return}p.sibling.return=p.return,p=p.sibling}}i(tc,"appendAllChildren");function zc(t,n,l,d){var p=!1;if(Ns)for(var h=n.child;h!==null;){if(h.tag===5){var B=h.stateNode;l&&d&&(B=Os(B,h.type,h.memoizedProps)),Ep(t,B)}else if(h.tag===6)B=h.stateNode,l&&d&&(B=nr(B,h.memoizedProps)),Ep(t,B);else if(h.tag!==4){if(h.tag===22&&h.memoizedState!==null)p=h.child,p!==null&&(p.return=h),zc(t,h,!0,!0),p=!0;else if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===n)break;for(;h.sibling===null;){if(h.return===null||h.return===n)return p;h=h.return}h.sibling.return=h.return,h=h.sibling}return p}i(zc,"appendAllChildrenToContainer");function kh(t,n){if(Ns&&Yd(t,n)){t=n.stateNode;var l=t.containerInfo,d=hp();zc(d,n,!1,!1),t.pendingChildren=d,la(n),gr(l,d)}}i(kh,"updateHostContainer");function qd(t,n,l,d){if(Eo)t.memoizedProps!==d&&la(n);else if(Ns){var p=t.stateNode,h=t.memoizedProps;if((t=Yd(t,n))||h!==d){var B=po();h=bI(p,l,h,d,!t,null),h===p?n.stateNode=p:(Kg(n),ho(h,l,d,B)&&la(n),n.stateNode=h,t&&tc(h,n,!1,!1))}else n.stateNode=p}}i(qd,"updateHostComponent");function Yg(t,n,l,d,p){if((t.mode&32)!==Jt&&(l===null?mA(n,d):hA(n,l,d))){if(t.flags|=16777216,(p&335544128)===p||up(n,d))if(sc(t.stateNode,n,d))t.flags|=8192;else if(nI())t.flags|=8192;else throw Sf=zI,Dv}else t.flags&=-16777217}i(Yg,"preloadInstanceAndSuspendIfNeeded");function hl(t,n){if(A(n)){if(t.flags|=16777216,!g(n))if(nI())t.flags|=8192;else throw Sf=zI,Dv}else t.flags&=-16777217}i(hl,"preloadResourceAndSuspendIfNeeded");function rA(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Je():536870912,t.lanes|=n,xf|=n)}i(rA,"scheduleRetryEffect");function Kc(t,n){if(!wn)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}i(Kc,"cutOffTailIfNeeded");function Zn(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,d=0;if(n)if((t.mode&2)!==Jt){for(var p=t.selfBaseDuration,h=t.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags&65011712,d|=h.flags&65011712,p+=h.treeBaseDuration,h=h.sibling;t.treeBaseDuration=p}else for(p=t.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=t,p=p.sibling;else if((t.mode&2)!==Jt){p=t.actualDuration,h=t.selfBaseDuration;for(var B=t.child;B!==null;)l|=B.lanes|B.childLanes,d|=B.subtreeFlags,d|=B.flags,p+=B.actualDuration,h+=B.treeBaseDuration,B=B.sibling;t.actualDuration=p,t.treeBaseDuration=h}else for(p=t.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=d,t.childLanes=l,n}i(Zn,"bubbleProperties");function Uh(t,n,l){var d=n.pendingProps;switch(ke(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zn(n),null;case 1:return Zn(n),null;case 3:return l=n.stateNode,d=null,t!==null&&(d=t.memoizedState.cache),n.memoizedState.cache!==d&&(n.flags|=2048),T(or,n),sr(n),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Oi(n)?(Si(),la(n)):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,va())),kh(t,n),Zn(n),null;case 26:if($n){var p=n.type,h=n.memoizedState;return t===null?(la(n),h!==null?(Zn(n),hl(n,h)):(Zn(n),Yg(n,p,null,d,l))):h?h!==t.memoizedState?(la(n),Zn(n),hl(n,h)):(Zn(n),n.flags&=-16777217):(h=t.memoizedProps,Eo?h!==d&&la(n):qd(t,n,p,d),Zn(n),Yg(n,p,h,d,l)),null}case 27:if(I){if(Ir(n),l=wt(wA.current),p=n.type,t!==null&&n.stateNode!=null)Eo?t.memoizedProps!==d&&la(n):qd(t,n,p,d);else{if(!d){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zn(n),null}t=po(),Oi(n)?Mi(n,t):(t=_(p,d,l,t,!0),n.stateNode=t,la(n))}return Zn(n),null}case 5:if(Ir(n),p=n.type,t!==null&&n.stateNode!=null)qd(t,n,p,d);else{if(!d){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zn(n),null}if(h=po(),Oi(n))Mi(n,h),ou(n.stateNode,p,d,h)&&(n.flags|=64);else{var B=wt(wA.current);B=cp(p,d,B,h,n),Kg(n),tc(B,n,!1,!1),n.stateNode=B,ho(B,p,d,h)&&la(n)}}return Zn(n),Yg(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,l),null;case 6:if(t&&n.stateNode!=null)l=t.memoizedProps,Eo?l!==d&&la(n):Ns&&(l!==d?(t=wt(wA.current),l=po(),Kg(n),n.stateNode=vl(d,t,l,n)):n.stateNode=t.stateNode);else{if(typeof d!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(t=wt(wA.current),l=po(),Oi(n)){if(!di)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=n.stateNode,l=n.memoizedProps,p=!hc,d=null,h=Ti,h!==null)switch(h.tag){case 3:p&&(p=dE(t,l,d),p!==null&&(ao(n,0).serverProps=p));break;case 27:case 5:d=h.memoizedProps,p&&(p=dE(t,l,d),p!==null&&(ao(n,0).serverProps=p))}bn(t,l,n,d)||Ni(n,!0)}else Kg(n),n.stateNode=vl(d,t,l,n)}return Zn(n),null;case 31:if(l=n.memoizedState,t===null||t.memoizedState!==null){if(d=Oi(n),l!==null){if(t===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!di)throw Error("Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");Wn(t,n),Zn(n),(n.mode&2)!==Jt&&l!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration))}else Si(),Br(),(n.flags&128)===0&&(l=n.memoizedState=null),n.flags|=4,Zn(n),(n.mode&2)!==Jt&&l!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration));t=!1}else l=va(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return n.flags&256?(Qi(n),n):(Qi(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Zn(n),null;case 13:if(d=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=d,h=Oi(n),p!==null&&p.dehydrated!==null){if(t===null){if(!h)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!di)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Aa(h,n),Zn(n),(n.mode&2)!==Jt&&p!==null&&(p=n.child,p!==null&&(n.treeBaseDuration-=p.treeBaseDuration))}else Si(),Br(),(n.flags&128)===0&&(p=n.memoizedState=null),n.flags|=4,Zn(n),(n.mode&2)!==Jt&&p!==null&&(p=n.child,p!==null&&(n.treeBaseDuration-=p.treeBaseDuration));p=!1}else p=va(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(Qi(n),n):(Qi(n),null)}return Qi(n),(n.flags&128)!==0?(n.lanes=l,(n.mode&2)!==Jt&&Cs(n),n):(l=d!==null,t=t!==null&&t.memoizedState!==null,l&&(d=n.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),h=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(h=d.memoizedState.cachePool.pool),h!==p&&(d.flags|=2048)),l!==t&&l&&(n.child.flags|=8192),rA(n,n.updateQueue),Zn(n),(n.mode&2)!==Jt&&l&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return sr(n),kh(t,n),t===null&&Do(n.stateNode.containerInfo),Zn(n),null;case 10:return T(n.type,n),Zn(n),null;case 19:if(re(wr,n),d=n.memoizedState,d===null)return Zn(n),null;if(p=(n.flags&128)!==0,h=d.rendering,h===null)if(p)Kc(d,!1);else{if(Lo!==Eu||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(h=wd(t),h!==null){for(n.flags|=128,Kc(d,!1),t=h.updateQueue,n.updateQueue=t,rA(n,t),n.subtreeFlags=0,t=l,l=n.child;l!==null;)Ar(l,t),l=l.sibling;return ee(wr,wr.current&Yp|DE,n),wn&&w(n,d.treeForkCount),n.child}t=t.sibling}d.tail!==null&&Rn()>LE&&(n.flags|=128,p=!0,Kc(d,!1),n.lanes=4194304)}else{if(!p)if(t=wd(h),t!==null){if(n.flags|=128,p=!0,t=t.updateQueue,n.updateQueue=t,rA(n,t),Kc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!wn)return Zn(n),null}else 2*Rn()-d.renderingStartTime>LE&&l!==536870912&&(n.flags|=128,p=!0,Kc(d,!1),n.lanes=4194304);d.isBackwards?(h.sibling=n.child,n.child=h):(t=d.last,t!==null?t.sibling=h:n.child=h,d.last=h)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Rn(),t.sibling=null,l=wr.current,l=p?l&Yp|DE:l&Yp,ee(wr,l,n),wn&&w(n,d.treeForkCount),t):(Zn(n),null);case 22:case 23:return Qi(n),Rd(n),d=n.memoizedState!==null,t!==null?t.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(l&536870912)!==0&&(n.flags&128)===0&&(Zn(n),n.subtreeFlags&6&&(n.flags|=8192)):Zn(n),l=n.updateQueue,l!==null&&rA(n,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==l&&(n.flags|=2048),t!==null&&re(If,n),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),T(or,n),Zn(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}i(Uh,"completeWork");function nc(t,n){switch(ke(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==Jt&&Cs(n),n):null;case 3:return T(or,n),sr(n),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Ir(n),null;case 31:if(n.memoizedState!==null){if(Qi(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Br()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==Jt&&Cs(n),n):null;case 13:if(Qi(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Br()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==Jt&&Cs(n),n):null;case 19:return re(wr,n),null;case 4:return sr(n),null;case 10:return T(n.type,n),null;case 22:case 23:return Qi(n),Rd(n),t!==null&&re(If,n),t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==Jt&&Cs(n),n):null;case 24:return T(or,n),null;case 25:return null;default:return null}}i(nc,"unwindWork");function qg(t,n){switch(ke(n),n.tag){case 3:T(or,n),sr(n);break;case 26:case 27:case 5:Ir(n);break;case 4:sr(n);break;case 31:n.memoizedState!==null&&Qi(n);break;case 13:Qi(n);break;case 19:re(wr,n);break;case 10:T(n.type,n);break;case 22:case 23:Qi(n),Rd(n),t!==null&&re(If,n);break;case 24:T(or,n)}}i(qg,"unwindInterruptedWork");function bs(t){return(t.mode&2)!==Jt}i(bs,"shouldProfile");function Lh(t,n){bs(t)?(vi(),oc(n,t),aa()):oc(n,t)}i(Lh,"commitHookLayoutEffects");function Gh(t,n,l){bs(t)?(vi(),_t(l,t,n),aa()):_t(l,t,n)}i(Gh,"commitHookLayoutUnmountEffects");function oc(t,n){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&t)===t&&(d=void 0,(t&pa)!==YI&&(em=!0),d=He(n,B4,l),(t&pa)!==YI&&(em=!1),d!==void 0&&typeof d!="function")){var h=void 0;h=(l.tag&As)!==0?"useLayoutEffect":(l.tag&pa)!==0?"useInsertionEffect":"useEffect";var B=void 0;B=d===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof d.then=="function"?`
156
+
157
+ It looks like you wrote `+h+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
158
+
159
+ `+h+`(() => {
160
+ async function fetchData() {
161
+ // You can await here
162
+ const response = await MyAPI.getData(someId);
163
+ // ...
164
+ }
165
+ fetchData();
166
+ }, [someId]); // Or [] if effect doesn't need props or state
167
+
168
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+d,He(n,function(Q,U){console.error("%s must not return anything besides a function, which is used for clean-up.%s",Q,U)},h,B)}l=l.next}while(l!==p)}}catch(Q){Ln(n,n.return,Q)}}i(oc,"commitHookEffectListMount");function _t(t,n,l){try{var d=n.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var h=p.next;d=h;do{if((d.tag&t)===t){var B=d.inst,Q=B.destroy;Q!==void 0&&(B.destroy=void 0,(t&pa)!==YI&&(em=!0),p=n,He(p,S4,p,l,Q),(t&pa)!==YI&&(em=!1))}d=d.next}while(d!==h)}}catch(U){Ln(n,n.return,U)}}i(_t,"commitHookEffectListUnmount");function Ny(t,n){bs(t)?(vi(),oc(n,t),aa()):oc(n,t)}i(Ny,"commitHookPassiveMountEffects");function Fh(t,n,l){bs(t)?(vi(),_t(l,t,n),aa()):_t(l,t,n)}i(Fh,"commitHookPassiveUnmountEffects");function zh(t){var n=t.updateQueue;if(n!==null){var l=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||jp||(l.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(t)||"instance"),l.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(t)||"instance"));try{He(t,ph,n,l)}catch(d){Ln(t,t.return,d)}}}i(zh,"commitClassCallbacks");function Pd(t,n,l){return t.getSnapshotBeforeUpdate(n,l)}i(Pd,"callGetSnapshotBeforeUpdates");function VS(t,n){var l=n.memoizedProps,d=n.memoizedState;n=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||jp||(n.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(t)||"instance"),n.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(t)||"instance"));try{var p=vs(t.type,l),h=He(t,Pd,n,p,d);l=Kx,h!==void 0||l.has(t.type)||(l.add(t.type),He(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ue(t))})),n.__reactInternalSnapshotBeforeUpdate=h}catch(B){Ln(t,t.return,B)}}i(VS,"commitClassSnapshot");function My(t,n,l){l.props=vs(t.type,t.memoizedProps),l.state=t.memoizedState,bs(t)?(vi(),He(t,lx,t,n,l),aa()):He(t,lx,t,n,l)}i(My,"safelyCallComponentWillUnmount");function XS(t){var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=xi(t.stateNode);break;case 30:l=t.stateNode;break;default:l=t.stateNode}if(typeof n=="function")if(bs(t))try{vi(),t.refCleanup=n(l)}finally{aa()}else t.refCleanup=n(l);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ue(t)),n.current=l}}i(XS,"commitAttachRef");function Jd(t,n){try{He(t,XS,t)}catch(l){Ln(t,n,l)}}i(Jd,"safelyAttachRef");function Rs(t,n){var l=t.ref,d=t.refCleanup;if(l!==null)if(typeof d=="function")try{if(bs(t))try{vi(),He(t,d)}finally{aa(t)}else He(t,d)}catch(p){Ln(t,n,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{if(bs(t))try{vi(),He(t,l,null)}finally{aa(t)}else He(t,l,null)}catch(p){Ln(t,n,p)}else l.current=null}i(Rs,"safelyDetachRef");function Pg(t,n,l,d){var p=t.memoizedProps,h=p.id,B=p.onCommit;p=p.onRender,n=n===null?"mount":"update",HI&&(n="nested-update"),typeof p=="function"&&p(h,n,t.actualDuration,t.treeBaseDuration,t.actualStartTime,l),typeof B=="function"&&B(h,n,d,l)}i(Pg,"commitProfiler");function Oy(t,n,l,d){var p=t.memoizedProps;t=p.id,p=p.onPostCommit,n=n===null?"mount":"update",HI&&(n="nested-update"),typeof p=="function"&&p(t,n,d,l)}i(Oy,"commitProfilerPostCommitImpl");function jd(t){var n=t.type,l=t.memoizedProps,d=t.stateNode;try{He(t,oo,d,n,l,t)}catch(p){Ln(t,t.return,p)}}i(jd,"commitHostMount");function Jg(t,n,l){try{He(t,fr,t.stateNode,t.type,l,n,t)}catch(d){Ln(t,t.return,d)}}i(Jg,"commitHostUpdate");function Hy(t){return t.tag===5||t.tag===3||($n?t.tag===26:!1)||(I?t.tag===27&&rt(t.type):!1)||t.tag===4}i(Hy,"isHostParent");function Kh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Hy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(I&&t.tag===27&&rt(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}i(Kh,"getHostSibling");function El(t,n,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?CA(l,t,n):Ql(l,t);else if(d!==4&&(I&&d===27&&rt(t.type)&&(l=t.stateNode,n=null),t=t.child,t!==null))for(El(t,n,l),t=t.sibling;t!==null;)El(t,n,l),t=t.sibling}i(El,"insertOrAppendPlacementNodeIntoContainer");function Da(t,n,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?pp(l,t,n):tr(l,t);else if(d!==4&&(I&&d===27&&rt(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Da(t,n,l),t=t.sibling;t!==null;)Da(t,n,l),t=t.sibling}i(Da,"insertOrAppendPlacementNode");function ui(t){for(var n,l=t.return;l!==null;){if(Hy(l)){n=l;break}l=l.return}if(Eo){if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:if(I){n=n.stateNode,l=Kh(t),Da(t,l,n);break}case 5:l=n.stateNode,n.flags&32&&(yA(l),n.flags&=-33),n=Kh(t),Da(t,n,l);break;case 3:case 4:n=n.stateNode.containerInfo,l=Kh(t),El(t,l,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}i(ui,"commitPlacement");function os(t,n,l){t=t.containerInfo;try{He(n,Cp,t,l)}catch(d){Ln(n,n.return,d)}}i(os,"commitHostPortalContainerChildren");function Xr(t){var n=t.stateNode,l=t.memoizedProps;try{He(t,F,t.type,l,n,t)}catch(d){Ln(t,t.return,d)}}i(Xr,"commitHostSingletonAcquisition");function ky(t,n){return n.tag===31?(n=n.memoizedState,t.memoizedState!==null&&n===null):n.tag===13?(t=t.memoizedState,n=n.memoizedState,t!==null&&t.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?t.memoizedState.isDehydrated&&(n.flags&256)===0:!1}i(ky,"isHydratingParent");function ZS(t,n){for(rf(t.containerInfo),fi=n;fi!==null;)if(t=fi,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,fi=n;else for(;fi!==null;){n=t=fi;var l=n.alternate,d=n.flags;switch(n.tag){case 0:if((d&4)!==0&&(n=n.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)d=n[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:(d&1024)!==0&&l!==null&&VS(n,l);break;case 3:(d&1024)!==0&&Eo&&cE(n.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=t.sibling,n!==null){n.return=t.return,fi=n;break}fi=t.return}}i(ZS,"commitBeforeMutationEffects");function Qr(t,n,l){var d=Vo(),p=ra(),h=kn(),B=ia(),Q=l.flags;switch(l.tag){case 0:case 11:case 15:wi(t,l),Q&4&&Lh(l,As|Ks);break;case 1:if(wi(t,l),Q&4)if(t=l.stateNode,n===null)l.type.defaultProps||"ref"in l.memoizedProps||jp||(t.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(l)||"instance"),t.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(l)||"instance")),bs(l)?(vi(),He(l,xv,l,t),aa()):He(l,xv,l,t);else{var U=vs(l.type,n.memoizedProps);n=n.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||jp||(t.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ue(l)||"instance"),t.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ue(l)||"instance")),bs(l)?(vi(),He(l,ix,l,t,U,n,t.__reactInternalSnapshotBeforeUpdate),aa()):He(l,ix,l,t,U,n,t.__reactInternalSnapshotBeforeUpdate)}Q&64&&zh(l),Q&512&&Jd(l,l.return);break;case 3:if(n=no(),wi(t,l),Q&64&&(Q=l.updateQueue,Q!==null)){if(U=null,l.child!==null)switch(l.child.tag){case 27:case 5:U=xi(l.child.stateNode);break;case 1:U=l.child.stateNode}try{He(l,ph,Q,U)}catch(fe){Ln(l,l.return,fe)}}t.effectDuration+=lr(n);break;case 27:I&&n===null&&Q&4&&Xr(l);case 26:case 5:if(wi(t,l),n===null){if(Q&4)jd(l);else if(Q&64){t=l.type,n=l.memoizedProps,U=l.stateNode;try{He(l,uE,U,t,n,l)}catch(fe){Ln(l,l.return,fe)}}}Q&512&&Jd(l,l.return);break;case 12:if(Q&4){Q=no(),wi(t,l),t=l.stateNode,t.effectDuration+=Hi(Q);try{He(l,Pg,l,n,DA,t.effectDuration)}catch(fe){Ln(l,l.return,fe)}}else wi(t,l);break;case 31:wi(t,l),Q&4&&Uy(t,l);break;case 13:wi(t,l),Q&4&&Ly(t,l),Q&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(Q=pI.bind(null,l),pr(t,Q))));break;case 22:if(Q=l.memoizedState!==null||hu,!Q){n=n!==null&&n.memoizedState!==null||Ur,U=hu;var q=Ur;hu=Q,(Ur=n)&&!q?(xs(t,l,(l.subtreeFlags&8772)!==0),(l.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&Mt(l,Ut,qt)):wi(t,l),hu=U,Ur=q}break;case 30:break;default:wi(t,l)}(l.mode&2)!==Jt&&0<=Ut&&0<=qt&&((rr||.05<Uo)&&he(l,Ut,qt,Uo,_o),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<qt-Ut&&(ky(l.return.alternate,l.return)||at(l,Ut,qt,"Mount"))),cr(d),ki(p),_o=h,rr=B}i(Qr,"commitLayoutEffectOnFiber");function ws(t){var n=t.alternate;n!==null&&(t.alternate=null,ws(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&aE(n)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}i(ws,"detachFiberAfterEffects");function rs(t,n,l){for(l=l.child;l!==null;)Yh(t,n,l),l=l.sibling}i(rs,"recursivelyTraverseDeletionEffects");function Yh(t,n,l){if(Ji&&typeof Ji.onCommitFiberUnmount=="function")try{Ji.onCommitFiberUnmount(Tp,l)}catch(q){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",q))}var d=Vo(),p=ra(),h=kn(),B=ia();switch(l.tag){case 26:if($n){Ur||Rs(l,n),rs(t,n,l),l.memoizedState?xp(l.memoizedState):l.stateNode&&Dp(l.stateNode);break}case 27:if(I){Ur||Rs(l,n);var Q=Lr,U=La;rt(l.type)&&(Lr=l.stateNode,La=!1),rs(t,n,l),He(l,pe,l.stateNode),Lr=Q,La=U;break}case 5:Ur||Rs(l,n);case 6:if(Eo){if(Q=Lr,U=La,Lr=null,rs(t,n,l),Lr=Q,La=U,Lr!==null)if(La)try{He(l,mp,Lr,l.stateNode)}catch(q){Ln(l,n,q)}else try{He(l,tu,Lr,l.stateNode)}catch(q){Ln(l,n,q)}}else rs(t,n,l);break;case 18:Eo&&Lr!==null&&(La?BA(Lr,l.stateNode):da(Lr,l.stateNode));break;case 4:Eo?(Q=Lr,U=La,Lr=l.stateNode.containerInfo,La=!0,rs(t,n,l),Lr=Q,La=U):(Ns&&os(l.stateNode,l,hp()),rs(t,n,l));break;case 0:case 11:case 14:case 15:_t(pa,l,n),Ur||Gh(l,n,As),rs(t,n,l);break;case 1:Ur||(Rs(l,n),Q=l.stateNode,typeof Q.componentWillUnmount=="function"&&My(l,n,Q)),rs(t,n,l);break;case 21:rs(t,n,l);break;case 22:Ur=(Q=Ur)||l.memoizedState!==null,rs(t,n,l),Ur=Q;break;default:rs(t,n,l)}(l.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(l,Ut,qt,Uo,_o),cr(d),ki(p),_o=h,rr=B}i(Yh,"commitDeletionEffectsOnFiber");function Uy(t,n){if(di&&n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{He(n,Ho,t)}catch(l){Ln(n,n.return,l)}}}i(Uy,"commitActivityHydrationCallbacks");function Ly(t,n){if(di&&n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{He(n,Ac,t)}catch(l){Ln(n,n.return,l)}}i(Ly,"commitSuspenseHydrationCallbacks");function WS(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Yx),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Yx),n;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}i(WS,"getRetryCache");function iA(t,n){var l=WS(t);n.forEach(function(d){if(!l.has(d)){if(l.add(d),pc)if(Vp!==null&&Xp!==null)cA(Xp,Vp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var p=iv.bind(null,t,d);d.then(p,p)}})}i(iA,"attachSuspenseRetryListeners");function Zr(t,n){var l=n.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=t,h=n,B=l[d],Q=Vo();if(Eo){var U=h;e:for(;U!==null;){switch(U.tag){case 27:if(I){if(rt(U.type)){Lr=U.stateNode,La=!1;break e}break}case 5:Lr=U.stateNode,La=!1;break e;case 3:case 4:Lr=U.stateNode.containerInfo,La=!0;break e}U=U.return}if(Lr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Yh(p,h,B),Lr=null,La=!1}else Yh(p,h,B);(B.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&at(B,Ut,qt,"Unmount"),cr(Q),p=B,h=p.alternate,h!==null&&(h.return=null),p.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Gy(n,t),n=n.sibling}i(Zr,"recursivelyTraverseMutationEffects");function Gy(t,n){var l=Vo(),d=ra(),p=kn(),h=ia(),B=t.alternate,Q=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Zr(n,t),Ai(t),Q&4&&(_t(pa|Ks,t,t.return),oc(pa|Ks,t),Gh(t,t.return,As|Ks));break;case 1:Zr(n,t),Ai(t),Q&512&&(Ur||B===null||Rs(B,B.return)),Q&64&&hu&&(Q=t.updateQueue,Q!==null&&(B=Q.callbacks,B!==null&&(n=Q.shared.hiddenCallbacks,Q.shared.hiddenCallbacks=n===null?B:n.concat(B))));break;case 26:if($n){var U=Tl;Zr(n,t),Ai(t),Q&512&&(Ur||B===null||Rs(B,B.return)),Q&4&&(Q=B!==null?B.memoizedState:null,n=t.memoizedState,B===null?n===null?t.stateNode===null?t.stateNode=RI(U,t.type,t.memoizedProps,t):vA(U,t.type,t.stateNode):t.stateNode=wp(U,n,t.memoizedProps):Q!==n?(Q===null?B.stateNode!==null&&Dp(B.stateNode):xp(Q),n===null?vA(U,t.type,t.stateNode):wp(U,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Jg(t,t.memoizedProps,B.memoizedProps));break}case 27:if(I){Zr(n,t),Ai(t),Q&512&&(Ur||B===null||Rs(B,B.return)),B!==null&&Q&4&&Jg(t,t.memoizedProps,B.memoizedProps);break}case 5:if(Zr(n,t),Ai(t),Q&512&&(Ur||B===null||Rs(B,B.return)),Eo){if(t.flags&32){n=t.stateNode;try{He(t,yA,n)}catch(lo){Ln(t,t.return,lo)}}Q&4&&t.stateNode!=null&&(n=t.memoizedProps,Jg(t,n,B!==null?B.memoizedProps:n)),Q&1024&&(Kv=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."))}else Ns&&t.alternate!==null&&(t.alternate.stateNode=t.stateNode);break;case 6:if(Zr(n,t),Ai(t),Q&4&&Eo){if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");Q=t.memoizedProps,B=B!==null?B.memoizedProps:Q,n=t.stateNode;try{He(t,rn,n,B,Q)}catch(lo){Ln(t,t.return,lo)}}break;case 3:if(U=no(),$n){s();var q=Tl;Tl=fc(n.containerInfo),Zr(n,t),Tl=q}else Zr(n,t);if(Ai(t),Q&4){if(Eo&&di&&B!==null&&B.memoizedState.isDehydrated)try{He(t,bl,n.containerInfo)}catch(lo){Ln(t,t.return,lo)}if(Ns){Q=n.containerInfo,B=n.pendingChildren;try{He(t,Cp,Q,B)}catch(lo){Ln(t,t.return,lo)}}}Kv&&(Kv=!1,Fy(t)),n.effectDuration+=lr(U);break;case 4:$n?(B=Tl,Tl=fc(t.stateNode.containerInfo),Zr(n,t),Ai(t),Tl=B):(Zr(n,t),Ai(t)),Q&4&&Ns&&os(t.stateNode,t,t.stateNode.pendingChildren);break;case 12:Q=no(),Zr(n,t),Ai(t),t.stateNode.effectDuration+=Hi(Q);break;case 31:Zr(n,t),Ai(t),Q&4&&(Q=t.updateQueue,Q!==null&&(t.updateQueue=null,iA(t,Q)));break;case 13:Zr(n,t),Ai(t),t.child.flags&8192&&t.memoizedState!==null!=(B!==null&&B.memoizedState!==null)&&(aB=Rn()),Q&4&&(Q=t.updateQueue,Q!==null&&(t.updateQueue=null,iA(t,Q)));break;case 22:U=t.memoizedState!==null;var fe=B!==null&&B.memoizedState!==null,me=hu,De=Ur;if(hu=me||U,Ur=De||fe,Zr(n,t),Ur=De,hu=me,fe&&!U&&!me&&!De&&(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&Mt(t,Ut,qt),Ai(t),Q&8192&&(n=t.stateNode,n._visibility=U?n._visibility&~xE:n._visibility|xE,!U||B===null||fe||hu||Ur||(Yc(t),(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&at(t,Ut,qt,"Disconnect")),Eo)){e:if(B=null,Eo)for(n=t;;){if(n.tag===5||$n&&n.tag===26){if(B===null){fe=B=n;try{q=fe.stateNode,U?He(fe,IA,q):He(fe,lf,fe.stateNode,fe.memoizedProps)}catch(lo){Ln(fe,fe.return,lo)}}}else if(n.tag===6){if(B===null){fe=n;try{var Tt=fe.stateNode;U?He(fe,cv,Tt):He(fe,QI,Tt,fe.memoizedProps)}catch(lo){Ln(fe,fe.return,lo)}}}else if(n.tag===18){if(B===null){fe=n;try{var Wt=fe.stateNode;U?He(fe,Af,Wt):He(fe,Pi,fe.stateNode)}catch(lo){Ln(fe,fe.return,lo)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;B===n&&(B=null),n=n.return}B===n&&(B=null),n.sibling.return=n.return,n=n.sibling}}Q&4&&(Q=t.updateQueue,Q!==null&&(B=Q.retryQueue,B!==null&&(Q.retryQueue=null,iA(t,B))));break;case 19:Zr(n,t),Ai(t),Q&4&&(Q=t.updateQueue,Q!==null&&(t.updateQueue=null,iA(t,Q)));break;case 30:break;case 21:break;default:Zr(n,t),Ai(t)}(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&((rr||.05<Uo)&&he(t,Ut,qt,Uo,_o),t.alternate===null&&t.return!==null&&t.return.alternate!==null&&.05<qt-Ut&&(ky(t.return.alternate,t.return)||at(t,Ut,qt,"Mount"))),cr(l),ki(d),_o=p,rr=h}i(Gy,"commitMutationEffectsOnFiber");function Ai(t){var n=t.flags;if(n&2){try{He(t,ui,t)}catch(l){Ln(t,t.return,l)}t.flags&=-3}n&4096&&(t.flags&=-4097)}i(Ai,"commitReconciliationEffects");function Fy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Fy(n),n.tag===5&&n.flags&1024&&sf(n.stateNode),t=t.sibling}}i(Fy,"recursivelyResetForms");function wi(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Qr(t,n.alternate,n),n=n.sibling}i(wi,"recursivelyTraverseLayoutEffects");function rc(t){var n=Vo(),l=ra(),d=kn(),p=ia();switch(t.tag){case 0:case 11:case 14:case 15:Gh(t,t.return,As),Yc(t);break;case 1:Rs(t,t.return);var h=t.stateNode;typeof h.componentWillUnmount=="function"&&My(t,t.return,h),Yc(t);break;case 27:I&&He(t,pe,t.stateNode);case 26:case 5:Rs(t,t.return),Yc(t);break;case 22:t.memoizedState===null&&Yc(t);break;case 30:Yc(t);break;default:Yc(t)}(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(t,Ut,qt,Uo,_o),cr(n),ki(l),_o=d,rr=p}i(rc,"disappearLayoutEffects");function Yc(t){for(t=t.child;t!==null;)rc(t),t=t.sibling}i(Yc,"recursivelyTraverseDisappearLayoutEffects");function zy(t,n,l,d){var p=Vo(),h=ra(),B=kn(),Q=ia(),U=l.flags;switch(l.tag){case 0:case 11:case 15:xs(t,l,d),Lh(l,As);break;case 1:if(xs(t,l,d),n=l.stateNode,typeof n.componentDidMount=="function"&&He(l,xv,l,n),n=l.updateQueue,n!==null){t=l.stateNode;try{He(l,gh,n,t)}catch(q){Ln(l,l.return,q)}}d&&U&64&&zh(l),Jd(l,l.return);break;case 27:I&&Xr(l);case 26:case 5:xs(t,l,d),d&&n===null&&U&4&&jd(l),Jd(l,l.return);break;case 12:if(d&&U&4){U=no(),xs(t,l,d),d=l.stateNode,d.effectDuration+=Hi(U);try{He(l,Pg,l,n,DA,d.effectDuration)}catch(q){Ln(l,l.return,q)}}else xs(t,l,d);break;case 31:xs(t,l,d),d&&U&4&&Uy(t,l);break;case 13:xs(t,l,d),d&&U&4&&Ly(t,l);break;case 22:l.memoizedState===null&&xs(t,l,d),Jd(l,l.return);break;case 30:break;default:xs(t,l,d)}(l.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(l,Ut,qt,Uo,_o),cr(p),ki(h),_o=B,rr=Q}i(zy,"reappearLayoutEffects");function xs(t,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)zy(t,n.alternate,n,l),n=n.sibling}i(xs,"recursivelyTraverseReappearLayoutEffects");function qc(t,n){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==l&&(t!=null&&xt(t),l!=null&&nn(l))}i(qc,"commitOffscreenPassiveMountEffects");function qh(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(xt(n),t!=null&&nn(t))}i(qh,"commitCachePassiveMountEffect");function is(t,n,l,d,p){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var h=n.sibling;Ky(t,n,l,d,h!==null?h.actualStartTime:p),n=h}}i(is,"recursivelyTraversePassiveMountEffects");function Ky(t,n,l,d,p){var h=Vo(),B=ra(),Q=kn(),U=ia(),q=QA,fe=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&2)!==Jt&&0<n.actualStartTime&&(n.flags&1)!==0&&Re(n,n.actualStartTime,p,ei,l),is(t,n,l,d,p),fe&2048&&Ny(n,ma|Ks);break;case 1:(n.mode&2)!==Jt&&0<n.actualStartTime&&((n.flags&128)!==0?xe(n,n.actualStartTime,p,[]):(n.flags&1)!==0&&Re(n,n.actualStartTime,p,ei,l)),is(t,n,l,d,p);break;case 3:var me=no(),De=ei;ei=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,is(t,n,l,d,p),ei=De,fe&2048&&(l=null,n.alternate!==null&&(l=n.alternate.memoizedState.cache),d=n.memoizedState.cache,d!==l&&(xt(d),l!=null&&nn(l))),t.passiveEffectDuration+=lr(me);break;case 12:if(fe&2048){fe=no(),is(t,n,l,d,p),t=n.stateNode,t.passiveEffectDuration+=Hi(fe);try{He(n,Oy,n,n.alternate,DA,t.passiveEffectDuration)}catch(Tt){Ln(n,n.return,Tt)}}else is(t,n,l,d,p);break;case 31:fe=ei,me=n.alternate!==null?n.alternate.memoizedState:null,De=n.memoizedState,me!==null&&De===null?(De=n.deletions,De!==null&&0<De.length&&De[0].tag===18?(ei=!1,me=me.hydrationErrors,me!==null&&xe(n,n.actualStartTime,p,me)):ei=!0):ei=!1,is(t,n,l,d,p),ei=fe;break;case 13:fe=ei,me=n.alternate!==null?n.alternate.memoizedState:null,De=n.memoizedState,me===null||me.dehydrated===null||De!==null&&De.dehydrated!==null?ei=!1:(De=n.deletions,De!==null&&0<De.length&&De[0].tag===18?(ei=!1,me=me.hydrationErrors,me!==null&&xe(n,n.actualStartTime,p,me)):ei=!0),is(t,n,l,d,p),ei=fe;break;case 23:break;case 22:De=n.stateNode,me=n.alternate,n.memoizedState!==null?De._visibility&fu?is(t,n,l,d,p):Vd(t,n,l,d,p):De._visibility&fu?is(t,n,l,d,p):(De._visibility|=fu,Ds(t,n,l,d,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),p),(n.mode&2)===Jt||ei||(t=n.actualStartTime,0<=t&&.05<p-t&&Mt(n,t,p),0<=Ut&&0<=qt&&.05<qt-Ut&&Mt(n,Ut,qt))),fe&2048&&qc(me,n);break;case 24:is(t,n,l,d,p),fe&2048&&qh(n.alternate,n);break;default:is(t,n,l,d,p)}(n.mode&2)!==Jt&&((t=!ei&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(l=n.actualStartTime,0<=l&&.05<p-l&&at(n,l,p,"Mount")),0<=Ut&&0<=qt&&((rr||.05<Uo)&&he(n,Ut,qt,Uo,_o),t&&.05<qt-Ut&&at(n,Ut,qt,"Mount"))),cr(h),ki(B),_o=Q,rr=U,QA=q}i(Ky,"commitPassiveMountOnFiber");function Ds(t,n,l,d,p,h){for(p=p&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var B=n.sibling;Yy(t,n,l,d,p,B!==null?B.actualStartTime:h),n=B}}i(Ds,"recursivelyTraverseReconnectPassiveEffects");function Yy(t,n,l,d,p,h){var B=Vo(),Q=ra(),U=kn(),q=ia(),fe=QA;p&&(n.mode&2)!==Jt&&0<n.actualStartTime&&(n.flags&1)!==0&&Re(n,n.actualStartTime,h,ei,l);var me=n.flags;switch(n.tag){case 0:case 11:case 15:Ds(t,n,l,d,p,h),Ny(n,ma);break;case 23:break;case 22:var De=n.stateNode;n.memoizedState!==null?De._visibility&fu?Ds(t,n,l,d,p,h):Vd(t,n,l,d,h):(De._visibility|=fu,Ds(t,n,l,d,p,h)),p&&me&2048&&qc(n.alternate,n);break;case 24:Ds(t,n,l,d,p,h),p&&me&2048&&qh(n.alternate,n);break;default:Ds(t,n,l,d,p,h)}(n.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(n,Ut,qt,Uo,_o),cr(B),ki(Q),_o=U,rr=q,QA=fe}i(Yy,"reconnectPassiveEffects");function Vd(t,n,l,d,p){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var h=n.child;h!==null;){n=h.sibling;var B=t,Q=l,U=d,q=n!==null?n.actualStartTime:p,fe=QA;(h.mode&2)!==Jt&&0<h.actualStartTime&&(h.flags&1)!==0&&Re(h,h.actualStartTime,q,ei,Q);var me=h.flags;switch(h.tag){case 22:Vd(B,h,Q,U,q),me&2048&&qc(h.alternate,h);break;case 24:Vd(B,h,Q,U,q),me&2048&&qh(h.alternate,h);break;default:Vd(B,h,Q,U,q)}QA=fe,h=n}}i(Vd,"recursivelyTraverseAtomicPassiveEffects");function Pc(t,n,l){if(t.subtreeFlags&Zp)for(t=t.child;t!==null;)qy(t,n,l),t=t.sibling}i(Pc,"recursivelyAccumulateSuspenseyCommit");function qy(t,n,l){switch(t.tag){case 26:if(Pc(t,n,l),t.flags&Zp)if(t.memoizedState!==null)y(l,Tl,t.memoizedState,t.memoizedProps);else{var d=t.stateNode,p=t.type;t=t.memoizedProps,((n&335544128)===n||up(p,t))&&Ap(l,d,p,t)}break;case 5:Pc(t,n,l),t.flags&Zp&&(d=t.stateNode,p=t.type,t=t.memoizedProps,((n&335544128)===n||up(p,t))&&Ap(l,d,p,t));break;case 3:case 4:$n?(d=Tl,Tl=fc(t.stateNode.containerInfo),Pc(t,n,l),Tl=d):Pc(t,n,l);break;case 22:t.memoizedState===null&&(d=t.alternate,d!==null&&d.memoizedState!==null?(d=Zp,Zp=16777216,Pc(t,n,l),Zp=d):Pc(t,n,l));break;default:Pc(t,n,l)}}i(qy,"accumulateSuspenseyCommitOnFiber");function Py(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}i(Py,"detachAlternateSiblings");function Xd(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l],p=Vo();fi=d,Vy(d,t),(d.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&at(d,Ut,qt,"Unmount"),cr(p)}Py(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jy(t),t=t.sibling}i(Xd,"recursivelyTraversePassiveUnmountEffects");function Jy(t){var n=Vo(),l=ra(),d=kn(),p=ia();switch(t.tag){case 0:case 11:case 15:Xd(t),t.flags&2048&&Fh(t,t.return,ma|Ks);break;case 3:var h=no();Xd(t),t.stateNode.passiveEffectDuration+=lr(h);break;case 12:h=no(),Xd(t),t.stateNode.passiveEffectDuration+=Hi(h);break;case 22:h=t.stateNode,t.memoizedState!==null&&h._visibility&fu&&(t.return===null||t.return.tag!==13)?(h._visibility&=~fu,jg(t),(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&at(t,Ut,qt,"Disconnect")):Xd(t);break;default:Xd(t)}(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(t,Ut,qt,Uo,_o),cr(n),ki(l),rr=p,_o=d}i(Jy,"commitPassiveUnmountOnFiber");function jg(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l],p=Vo();fi=d,Vy(d,t),(d.mode&2)!==Jt&&0<=Ut&&0<=qt&&.05<qt-Ut&&at(d,Ut,qt,"Unmount"),cr(p)}Py(t)}for(t=t.child;t!==null;)jy(t),t=t.sibling}i(jg,"recursivelyTraverseDisconnectPassiveEffects");function jy(t){var n=Vo(),l=ra(),d=kn(),p=ia();switch(t.tag){case 0:case 11:case 15:Fh(t,t.return,ma),jg(t);break;case 22:var h=t.stateNode;h._visibility&fu&&(h._visibility&=~fu,jg(t));break;default:jg(t)}(t.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(t,Ut,qt,Uo,_o),cr(n),ki(l),rr=p,_o=d}i(jy,"disconnectPassiveEffect");function Vy(t,n){for(;fi!==null;){var l=fi,d=l,p=n,h=Vo(),B=ra(),Q=kn(),U=ia();switch(d.tag){case 0:case 11:case 15:Fh(d,p,ma);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(p=d.memoizedState.cachePool.pool,p!=null&&xt(p));break;case 24:nn(d.memoizedState.cache)}if((d.mode&2)!==Jt&&0<=Ut&&0<=qt&&(rr||.05<Uo)&&he(d,Ut,qt,Uo,_o),cr(h),ki(B),rr=U,_o=Q,d=l.child,d!==null)d.return=l,fi=d;else e:for(l=t;fi!==null;){if(d=fi,h=d.sibling,B=d.return,ws(d),d===l){fi=null;break e}if(h!==null){h.return=B,fi=h;break e}fi=B}}}i(Vy,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");function Ph(t){var n=lv(t);if(n!=null){if(typeof n.memoizedProps["data-testname"]!="string")throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return n}if(t=sE(t),t===null)throw Error("Could not find React container within specified host subtree.");return t.stateNode.current}i(Ph,"findFiberRootForHostRoot");function Jh(t,n){var l=t.tag;switch(n.$$typeof){case VI:if(t.type===n.value)return!0;break;case XI:e:{for(n=n.value,t=[t,0],l=0;l<t.length;){var d=t[l++],p=d.tag,h=t[l++],B=n[h];if(p!==5&&p!==26&&p!==27||!Ms(d)){for(;B!=null&&Jh(d,B);)h++,B=n[h];if(h===n.length){n=!0;break e}else for(d=d.child;d!==null;)t.push(d,h),d=d.sibling}}n=!1}return n;case ZI:if((l===5||l===26||l===27)&&gp(t.stateNode,n.value))return!0;break;case $I:if((l===5||l===6||l===26||l===27)&&(t=lE(t),t!==null&&0<=t.indexOf(n.value)))return!0;break;case WI:if((l===5||l===26||l===27)&&(t=t.memoizedProps["data-testname"],typeof t=="string"&&t.toLowerCase()===n.value.toLowerCase()))return!0;break;default:throw Error("Invalid selector type specified.")}return!1}i(Jh,"matchSelector");function Vg(t){switch(t.$$typeof){case VI:return"<"+(le(t.value)||"Unknown")+">";case XI:return":has("+(Vg(t)||"")+")";case ZI:return'[role="'+t.value+'"]';case $I:return'"'+t.value+'"';case WI:return'[data-testname="'+t.value+'"]';default:throw Error("Invalid selector type specified.")}}i(Vg,"selectorToString");function Xy(t,n){var l=[];t=[t,0];for(var d=0;d<t.length;){var p=t[d++],h=p.tag,B=t[d++],Q=n[B];if(h!==5&&h!==26&&h!==27||!Ms(p)){for(;Q!=null&&Jh(p,Q);)B++,Q=n[B];if(B===n.length)l.push(p);else for(p=p.child;p!==null;)t.push(p,B),p=p.sibling}}return l}i(Xy,"findPaths");function Xg(t,n){if(!ss)throw Error("Test selector API is not supported by this renderer.");t=Ph(t),t=Xy(t,n),n=[],t=Array.from(t);for(var l=0;l<t.length;){var d=t[l++],p=d.tag;if(p===5||p===26||p===27)Ms(d)||n.push(d.stateNode);else for(d=d.child;d!==null;)t.push(d),d=d.sibling}return n}i(Xg,"findAllNodes");function $S(){ss&&eB.forEach(function(t){return t()})}i($S,"onCommitRoot");function Zy(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||ce.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}i(Zy,"isConcurrentActEnvironment");function ca(t){if((xn&pi)!==gi&&un!==0)return un&-un;var n=ce.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(t),je()):iE()}i(ca,"requestUpdateLane");function Wy(){if(Fa===0)if((un&536870912)===0||wn){var t=de;de<<=1,(de&3932160)===0&&(de=262144),Fa=t}else Fa=536870912;return t=us.current,t!==null&&(t.flags|=32),Fa}i(Wy,"requestDeferredLane");function mo(t,n,l){if(em&&console.error("useInsertionEffect must not schedule updates."),tQ&&(cB=!0),(t===go&&(ro===Rf||ro===wf)||t.cancelPendingCommit!==null)&&(aA(t,0),Cl(t,un,Fa,!1)),ut(t,l),(xn&pi)!==gi&&t===go){if(mc)switch(n.tag){case 0:case 11:case 15:t=gn&&ue(gn)||"Unknown",rD.has(t)||(rD.add(t),n=ue(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,t,t));break;case 1:oD||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),oD=!0)}}else pc&&nt(t,n,l),hI(n),t===go&&((xn&pi)===gi&&(UA|=l),Lo===OA&&Cl(t,un,Fa,!1)),vr(t)}i(mo,"scheduleUpdateOnFiber");function jh(t,n,l){if((xn&(pi|qs))!==gi)throw Error("Should not already be working.");if(un!==0&&gn!==null){var d=gn,p=Rn();switch(Zw){case HE:case Rf:var h=CE;yo&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Suspended",h,p,"Components \u269B",void 0,"primary-light")):console.timeStamp("Suspended",h,p,"Components \u269B",void 0,"primary-light"));break;case wf:h=CE,yo&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Action",h,p,"Components \u269B",void 0,"primary-light")):console.timeStamp("Action",h,p,"Components \u269B",void 0,"primary-light"));break;default:yo&&(d=p-CE,3>d||console.timeStamp("Blocked",CE,p,"Components \u269B",void 0,5>d?"primary-light":10>d?"primary":100>d?"primary-dark":"error"))}}h=(l=!l&&(n&127)===0&&(n&t.expiredLanes)===0||Pe(t,n))?ev(t,n):Xh(t,n,!0);var B=l;do{if(h===Eu){Wp&&!l&&Cl(t,n,0,!1),n=ro,CE=Or(),Zw=n;break}else{if(d=Rn(),p=t.current.alternate,B&&!eI(p)){_e(n),p=ji,h=d,!yo||h<=p||(mr?mr.run(console.timeStamp.bind(console,"Teared Render",p,h,Bn,"Scheduler \u269B","error")):console.timeStamp("Teared Render",p,h,Bn,"Scheduler \u269B","error")),Jc(n,d),h=Xh(t,n,!1),B=!1;continue}if(h===bf){if(B=n,t.errorRecoveryDisabledLanes&B)var Q=0;else Q=t.pendingLanes&-536870913,Q=Q!==0?Q:Q&536870912?536870912:0;if(Q!==0){_e(n),Ro(ji,d,n,mr),Jc(n,d),n=Q;e:{d=t,h=B,B=UE;var U=di&&d.current.memoizedState.isDehydrated;if(U&&(aA(d,Q).flags|=256),Q=Xh(d,Q,!1),Q!==bf){if(Pv&&!U){d.errorRecoveryDisabledLanes|=h,UA|=h,h=OA;break e}d=ha,ha=B,d!==null&&(ha===null?ha=d:ha.push.apply(ha,d))}h=Q}if(B=!1,h!==bf)continue;d=Rn()}}if(h===OE){_e(n),Ro(ji,d,n,mr),Jc(n,d),aA(t,0),Cl(t,n,0,!0);break}e:{switch(l=t,h){case Eu:case OE:throw Error("Root did not complete. This is a bug in React.");case OA:if((n&4194048)!==n)break;case nB:_e(n),Gt(ji,d,n,mr),Jc(n,d),p=n,(p&127)!==0?MI=d:(p&4194048)!==0&&(OI=d),Cl(l,n,Fa,!HA);break e;case bf:ha=null;break;case tB:case qx:break;default:throw Error("Unknown root exit status.")}if(ce.actQueue!==null)Zh(l,p,n,ha,GE,iB,Fa,UA,xf,h,null,null,ji,d);else{if((n&62914560)===n&&(B=aB+jx-Rn(),10<B)){if(Cl(l,n,Fa,!HA),Ie(l,0,!0)!==0)break e;_l=n,l.timeoutHandle=Ma($y.bind(null,l,p,ha,GE,iB,n,Fa,UA,xf,HA,h,"Throttled",ji,d),B);break e}$y(l,p,ha,GE,iB,n,Fa,UA,xf,HA,h,null,ji,d)}}}break}while(!0);vr(t)}i(jh,"performWorkOnRoot");function $y(t,n,l,d,p,h,B,Q,U,q,fe,me,De,Tt){t.timeoutHandle=_s;var Wt=n.subtreeFlags,lo=null;if((Wt&8192||(Wt&16785408)===16785408)&&(lo=EA(),qy(n,h,lo),Wt=(h&62914560)===h?aB-Rn():(h&4194048)===h?Jx-Rn():0,Wt=dp(lo,Wt),Wt!==null)){_l=h,t.cancelPendingCommit=Wt(Zh.bind(null,t,n,h,l,d,p,B,Q,U,fe,lo,fp(lo,t.containerInfo),De,Tt)),Cl(t,h,B,!q);return}Zh(t,n,h,l,d,p,B,Q,U,fe,lo,me,De,Tt)}i($y,"commitRootWhenReady");function eI(t){for(var n=t;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var p=l[d],h=p.getSnapshot;p=p.value;try{if(!fa(h(),p))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}i(eI,"isRenderConsistentWithExternalStores");function Cl(t,n,l,d){n&=~Jv,n&=~UA,t.suspendedLanes|=n,t.pingedLanes&=~n,d&&(t.warmLanes|=n),d=t.expirationTimes;for(var p=n;0<p;){var h=31-Rr(p),B=1<<h;d[h]=-1,p&=~B}l!==0&&P(t,l,n)}i(Cl,"markRootSuspended");function Zd(){return(xn&(pi|qs))===gi?(Za(0,!1),!1):!0}i(Zd,"flushSyncWork");function Wd(){return(xn&(pi|qs))!==gi}i(Wd,"isAlreadyRendering");function $d(){if(gn!==null){if(ro===Ga)var t=gn.return;else t=gn,Xa(),Dd(t),Fp=null,wE=0,t=gn;for(;t!==null;)qg(t.alternate,t),t=t.return;gn=null}}i($d,"resetWorkInProgressStack");function Jc(t,n){(t&127)!==0&&(mf=n),(t&4194048)!==0&&(Au=n)}i(Jc,"finalizeRender");function aA(t,n){yo&&(console.timeStamp("Blocking Track",.003,.003,"Blocking","Scheduler \u269B","primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition","Scheduler \u269B","primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense","Scheduler \u269B","primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle","Scheduler \u269B","primary-light"));var l=ji;if(ji=Or(),un!==0&&0<l){if(_e(un),Lo===tB||Lo===OA)Gt(l,ji,n,mr);else{var d=ji,p=mr;if(yo&&!(d<=l)){var h=(n&738197653)===n?"tertiary-dark":"primary-dark",B=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";p?p.run(console.timeStamp.bind(console,B,l,d,Bn,"Scheduler \u269B",h)):console.timeStamp(B,l,d,Bn,"Scheduler \u269B",h)}}Jc(un,ji)}if(l=mr,mr=null,(n&127)!==0){mr=mE,p=0<=Ec&&Ec<mf?mf:Ec,d=0<=hf&&hf<mf?mf:hf,h=0<=d?d:0<=p?p:ji,0<=MI&&(_e(2),Hn(MI,h,n,l)),l=p;var Q=d,U=hE,q=0<Hp,fe=TA===1,me=TA===2;if(p=ji,d=mE,h=yv,B=Iv,yo){if(Bn="Blocking",0<l?l>p&&(l=p):l=p,0<Q?Q>l&&(Q=l):Q=l,U!==null&&l>Q){var De=q?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+U,Q,l,Bn,"Scheduler \u269B",De)):console.timeStamp(q?"Consecutive":"Event: "+U,Q,l,Bn,"Scheduler \u269B",De)}p>l&&(Q=fe?"error":(n&738197653)===n?"tertiary-light":"primary-light",fe=me?"Promise Resolved":fe?"Cascading Update":5<p-l?"Update Blocked":"Update",me=[],B!=null&&me.push(["Component name",B]),h!=null&&me.push(["Method name",h]),l={start:l,end:p,detail:{devtools:{properties:me,track:Bn,trackGroup:"Scheduler \u269B",color:Q}}},d?d.run(performance.measure.bind(performance,fe,l)):performance.measure(fe,l))}Ec=-1.1,TA=0,Iv=yv=null,MI=-1.1,Hp=hf,hf=-1.1,mf=Or()}if((n&4194048)!==0&&(mr=EE,p=0<=du&&du<Au?Au:du,l=0<=Gs&&Gs<Au?Au:Gs,d=0<=_A&&_A<Au?Au:_A,h=0<=d?d:0<=l?l:ji,0<=OI&&(_e(256),Hn(OI,h,n,mr)),me=d,Q=Ef,U=0<NA,q=Bv===2,h=ji,d=EE,B=Vw,fe=Xw,yo&&(Bn="Transition",0<l?l>h&&(l=h):l=h,0<p?p>l&&(p=l):p=l,0<me?me>p&&(me=p):me=p,p>me&&Q!==null&&(De=U?"secondary-light":"warning",d?d.run(console.timeStamp.bind(console,U?"Consecutive":"Event: "+Q,me,p,Bn,"Scheduler \u269B",De)):console.timeStamp(U?"Consecutive":"Event: "+Q,me,p,Bn,"Scheduler \u269B",De)),l>p&&(d?d.run(console.timeStamp.bind(console,"Action",p,l,Bn,"Scheduler \u269B","primary-dark")):console.timeStamp("Action",p,l,Bn,"Scheduler \u269B","primary-dark")),h>l&&(p=q?"Promise Resolved":5<h-l?"Update Blocked":"Update",me=[],fe!=null&&me.push(["Component name",fe]),B!=null&&me.push(["Method name",B]),l={start:l,end:h,detail:{devtools:{properties:me,track:Bn,trackGroup:"Scheduler \u269B",color:"primary-light"}}},d?d.run(performance.measure.bind(performance,p,l)):performance.measure(p,l))),Gs=du=-1.1,Bv=0,OI=-1.1,NA=_A,_A=-1.1,Au=Or()),l=t.timeoutHandle,l!==_s&&(t.timeoutHandle=_s,rE(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),_l=0,$d(),go=t,gn=l=yl(t.current,null),un=n,ro=Ga,ds=null,HA=!1,Wp=Pe(t,n),Pv=!1,Lo=Eu,xf=Fa=Jv=UA=kA=0,ha=UE=null,iB=!1,(n&8)!==0&&(n|=n&32),d=t.entangledLanes,d!==0)for(t=t.entanglements,d&=n;0<d;)p=31-Rr(d),h=1<<p,n|=t[p],d&=~h;return yc=n,ju(),t=Uw(),1e3<t-kw&&(ce.recentlyCreatedOwnerStacks=0,kw=t),xl.discardPendingWarnings(),l}i(aA,"prepareFreshStack");function tI(t,n){Xt=null,ce.H=NE,ce.getCurrentStack=null,mc=!1,lu=null,n===Gp||n===FI?(n=Qa(),ro=HE):n===Dv?(n=Qa(),ro=Px):ro=n===Fv?qv:n!==null&&typeof n=="object"&&typeof n.then=="function"?kE:oB,ds=n;var l=gn;l===null?(Lo=OE,Ud(t,Tn(n,t.current))):l.mode&2&&Yu(l)}i(tI,"handleThrow");function nI(){var t=us.current;return t===null?!0:(un&4194048)===un?zs===null:(un&62914560)===un||(un&536870912)!==0?t===zs:!1}i(nI,"shouldRemainOnPreviousScreen");function Vh(){var t=ce.H;return ce.H=NE,t===null?NE:t}i(Vh,"pushDispatcher");function oI(){var t=ce.A;return ce.A=R4,t}i(oI,"pushAsyncDispatcher");function Zg(t){mr===null&&(mr=t._debugTask==null?null:t._debugTask)}i(Zg,"markRenderDerivedCause");function Wg(){Lo=OA,HA||(un&4194048)!==un&&us.current!==null||(Wp=!0),(kA&134217727)===0&&(UA&134217727)===0||go===null||Cl(go,un,Fa,!1)}i(Wg,"renderDidSuspendDelayIfPossible");function Xh(t,n,l){var d=xn;xn|=pi;var p=Vh(),h=oI();if(go!==t||un!==n){if(pc){var B=t.memoizedUpdaters;0<B.size&&(cA(t,un),B.clear()),mt(t,n)}GE=null,aA(t,n)}n=!1,B=Lo;e:do try{if(ro!==Ga&&gn!==null){var Q=gn,U=ds;switch(ro){case qv:$d(),B=nB;break e;case HE:case Rf:case wf:case kE:us.current===null&&(n=!0);var q=ro;if(ro=Ga,ds=null,sA(t,Q,U,q),l&&Wp){B=Eu;break e}break;default:q=ro,ro=Ga,ds=null,sA(t,Q,U,q)}}rI(),B=Lo;break}catch(fe){tI(t,fe)}while(!0);return n&&t.shellSuspendCounter++,Xa(),xn=d,ce.H=p,ce.A=h,gn===null&&(go=null,un=0,ju()),B}i(Xh,"renderRootSync");function rI(){for(;gn!==null;)iI(gn)}i(rI,"workLoopSync");function ev(t,n){var l=xn;xn|=pi;var d=Vh(),p=oI();if(go!==t||un!==n){if(pc){var h=t.memoizedUpdaters;0<h.size&&(cA(t,un),h.clear()),mt(t,n)}GE=null,LE=Rn()+jv,aA(t,n)}else Wp=Pe(t,n);e:do try{if(ro!==Ga&&gn!==null)t:switch(n=gn,h=ds,ro){case oB:ro=Ga,ds=null,sA(t,n,h,oB);break;case Rf:case wf:if(Ft(h)){ro=Ga,ds=null,aI(n);break}n=i(function(){ro!==Rf&&ro!==wf||go!==t||(ro=rB),vr(t)},"lanes"),h.then(n,n);break e;case HE:ro=rB;break e;case Px:ro=Yv;break e;case rB:Ft(h)?(ro=Ga,ds=null,aI(n)):(ro=Ga,ds=null,sA(t,n,h,rB));break;case Yv:var B=null;switch(gn.tag){case 26:B=gn.memoizedState;case 5:case 27:var Q=gn,U=Q.type,q=Q.pendingProps;if(B?g(B):sc(Q.stateNode,U,q)){ro=Ga,ds=null;var fe=Q.sibling;if(fe!==null)gn=fe;else{var me=Q.return;me!==null?(gn=me,$g(me)):gn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ro=Ga,ds=null,sA(t,n,h,Yv);break;case kE:ro=Ga,ds=null,sA(t,n,h,kE);break;case qv:$d(),Lo=nB;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ce.actQueue!==null?rI():tv();break}catch(De){tI(t,De)}while(!0);return Xa(),ce.H=d,ce.A=p,xn=l,gn!==null?Eu:(go=null,un=0,ju(),Lo)}i(ev,"renderRootConcurrent");function tv(){for(;gn!==null&&!Pt();)iI(gn)}i(tv,"workLoopConcurrentByScheduler");function iI(t){var n=t.alternate;(t.mode&2)!==Jt?(zl(t),n=He(t,Ri,n,t,yc),Yu(t)):n=He(t,Ri,n,t,yc),t.memoizedProps=t.pendingProps,n===null?$g(t):gn=n}i(iI,"performUnitOfWork");function aI(t){var n=He(t,nv,t);t.memoizedProps=t.pendingProps,n===null?$g(t):gn=n}i(aI,"replaySuspendedUnitOfWork");function nv(t){var n=t.alternate,l=(t.mode&2)!==Jt;switch(l&&zl(t),t.tag){case 15:case 0:n=Qs(n,t,t.pendingProps,t.type,void 0,un);break;case 11:n=Qs(n,t,t.pendingProps,t.type.render,t.ref,un);break;case 5:Dd(t);default:qg(n,t),t=gn=Ar(t,yc),n=Ri(n,t,yc)}return l&&Yu(t),n}i(nv,"replayBeginWork");function sA(t,n,l,d){Xa(),Dd(n),Fp=null,wE=0;var p=n.return;try{if(Ty(t,p,n,l,un)){Lo=OE,Ud(t,Tn(l,t.current)),gn=null;return}}catch(h){if(p!==null)throw gn=p,h;Lo=OE,Ud(t,Tn(l,t.current)),gn=null;return}n.flags&32768?(wn||d===oB?t=!0:Wp||(un&536870912)!==0?t=!1:(HA=t=!0,(d===Rf||d===wf||d===HE||d===kE)&&(d=us.current,d!==null&&d.tag===13&&(d.flags|=16384))),sI(n,t)):$g(n)}i(sA,"throwAndUnwindWorkLoop");function $g(t){var n=t;do{if((n.flags&32768)!==0){sI(n,HA);return}var l=n.alternate;if(t=n.return,zl(n),l=He(n,Uh,l,n,yc),(n.mode&2)!==Jt&&Ed(n),l!==null){gn=l;return}if(n=n.sibling,n!==null){gn=n;return}gn=n=t}while(n!==null);Lo===Eu&&(Lo=qx)}i($g,"completeUnitOfWork");function sI(t,n){do{var l=nc(t.alternate,t);if(l!==null){l.flags&=32767,gn=l;return}if((t.mode&2)!==Jt){Ed(t),l=t.actualDuration;for(var d=t.child;d!==null;)l+=d.actualDuration,d=d.sibling;t.actualDuration=l}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(t=t.sibling,t!==null)){gn=t;return}gn=t=l}while(t!==null);Lo=nB,gn=null}i(sI,"unwindUnitOfWork");function Zh(t,n,l,d,p,h,B,Q,U,q,fe,me,De,Tt){t.cancelPendingCommit=null;do lA();while(Gr!==GA);if(xl.flushLegacyContextWarning(),xl.flushPendingUnsafeLifecycleWarnings(),(xn&(pi|qs))!==gi)throw Error("Should not already be working.");if(_e(l),q===bf?Ro(De,Tt,l,mr):d!==null?Qn(De,Tt,l,d,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,mr):Ze(De,Tt,l,mr),n!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===t.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(h=n.lanes|n.childLanes,h|=_v,pt(t,l,h,B,Q,U),t===go&&(gn=go=null,un=0),$p=n,FA=t,_l=l,Zv=h,$v=p,eD=d,Wv=Tt,tD=me,Nl=sB,nD=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,mI(ff,function(){return pA(),Nl===sB&&(Nl=Xv),dI(),null})):(t.callbackNode=null,t.callbackPriority=0),uu=null,DA=Or(),me!==null&&qr(Tt,DA,me,mr),d=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||d){d=ce.T,ce.T=null,p=Yi(),er(2),B=xn,xn|=qs;try{ZS(t,n,l)}finally{xn=B,er(p),ce.T=d}}Gr=Xx,lI(),cI(),uI()}}i(Zh,"commitRoot");function lI(){if(Gr===Xx){Gr=GA;var t=FA,n=$p,l=_l,d=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||d){d=ce.T,ce.T=null;var p=Yi();er(2);var h=xn;xn|=qs;try{Vp=l,Xp=t,Mo(),Gy(n,t),Xp=Vp=null,ac(t.containerInfo)}finally{xn=h,er(p),ce.T=d}}t.current=n,Gr=Zx}}i(lI,"flushMutationEffects");function cI(){if(Gr===Zx){Gr=GA;var t=nD;if(t!==null){DA=Or();var n=cu,l=DA;!yo||l<=n||(kp?kp.run(console.timeStamp.bind(console,t,n,l,Bn,"Scheduler \u269B","secondary-light")):console.timeStamp(t,n,l,Bn,"Scheduler \u269B","secondary-light"))}t=FA,n=$p,l=_l;var d=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||d){d=ce.T,ce.T=null;var p=Yi();er(2);var h=xn;xn|=qs;try{Vp=l,Xp=t,Mo(),Qr(t,n.alternate,n),Xp=Vp=null}finally{xn=h,er(p),ce.T=d}}t=Wv,n=tD,cu=Or(),t=n===null?t:DA,n=cu,l=Nl===Vv,d=mr,uu!==null?wo(t,n,uu,!1,d):!yo||n<=t||(d?d.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",t,n,Bn,"Scheduler \u269B",l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",t,n,Bn,"Scheduler \u269B",l?"error":"secondary-dark")),Gr=Wx}}i(cI,"flushLayoutEffects");function uI(){if(Gr===$x||Gr===Wx){if(Gr===$x){var t=cu;cu=Or();var n=cu,l=Nl===Vv;!yo||n<=t||(kp?kp.run(console.timeStamp.bind(console,l?"Interrupted View Transition":"Starting Animation",t,n,Bn,"Scheduler \u269B",l?"error":"secondary-light")):console.timeStamp(l?"Interrupted View Transition":"Starting Animation",t,n,Bn,"Scheduler \u269B",l?" error":"secondary-light")),Nl!==Vv&&(Nl=Vx)}Gr=GA,Kn(),t=FA;var d=$p;n=_l,l=eD;var p=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;p?Gr=lB:(Gr=GA,$p=FA=null,AI(t,t.pendingLanes),Df=0,zE=null);var h=t.pendingLanes;if(h===0&&(LA=null),p||eE(t),h=ne(n),d=d.stateNode,Ji&&typeof Ji.onCommitFiberRoot=="function")try{var B=(d.current.flags&128)===128;switch(h){case 2:var Q=On;break;case 8:Q=wl;break;case 32:Q=ff;break;case 268435456:Q=Hw;break;default:Q=ff}Ji.onCommitFiberRoot(Tp,d,Q,B)}catch(me){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",me))}if(pc&&t.memoizedUpdaters.clear(),$S(),l!==null){B=ce.T,Q=Yi(),er(2),ce.T=null;try{var U=t.onRecoverableError;for(d=0;d<l.length;d++){var q=l[d],fe=ov(q.stack);He(q.source,U,q.value,fe)}}finally{ce.T=B,er(Q)}}(_l&3)!==0&&lA(),vr(t),h=t.pendingLanes,(n&261930)!==0&&(h&42)!==0?(kI=!0,t===eQ?FE++:(FE=0,eQ=t)):FE=0,p||Jc(n,cu),di&&AE(),Za(0,!1)}}i(uI,"flushSpawnedWork");function ov(t){return t={componentStack:t},Object.defineProperty(t,"digest",{get:i(function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')},"get")}),t}i(ov,"makeErrorInfo");function AI(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,nn(n)))}i(AI,"releaseRootPooledCache");function lA(){return lI(),cI(),uI(),dI()}i(lA,"flushPendingEffects");function dI(){if(Gr!==lB)return!1;var t=FA,n=Zv;Zv=0;var l=ne(_l),d=32>l?32:l;l=ce.T;var p=Yi();try{er(d),ce.T=null;var h=$v;$v=null,d=FA;var B=_l;if(Gr=GA,$p=FA=null,_l=0,(xn&(pi|qs))!==gi)throw Error("Cannot flush passive effects while already rendering.");_e(B),tQ=!0,cB=!1;var Q=0;if(uu=null,Q=Rn(),Nl===Vx){var U=cu,q=Q;!yo||q<=U||(kp?kp.run(console.timeStamp.bind(console,"Animating",U,q,Bn,"Scheduler \u269B","secondary-dark")):console.timeStamp("Animating",U,q,Bn,"Scheduler \u269B","secondary-dark"))}else{U=cu,q=Q;var fe=Nl===Xv;!yo||q<=U||(mr?mr.run(console.timeStamp.bind(console,fe?"Waiting for Paint":"Waiting",U,q,Bn,"Scheduler \u269B","secondary-light")):console.timeStamp(fe?"Waiting for Paint":"Waiting",U,q,Bn,"Scheduler \u269B","secondary-light"))}U=xn,xn|=qs;var me=d.current;Mo(),Jy(me);var De=d.current;me=Wv,Mo(),Ky(d,De,B,h,me),eE(d),xn=U;var Tt=Rn();if(De=Q,me=mr,uu!==null?wo(De,Tt,uu,!0,me):!yo||Tt<=De||(me?me.run(console.timeStamp.bind(console,"Remaining Effects",De,Tt,Bn,"Scheduler \u269B","secondary-dark")):console.timeStamp("Remaining Effects",De,Tt,Bn,"Scheduler \u269B","secondary-dark")),Jc(B,Tt),Za(0,!1),cB?d===zE?Df++:(Df=0,zE=d):Df=0,cB=tQ=!1,Ji&&typeof Ji.onPostCommitFiberRoot=="function")try{Ji.onPostCommitFiberRoot(Tp,d)}catch(lo){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",lo))}var Wt=d.current.stateNode;return Wt.effectDuration=0,Wt.passiveEffectDuration=0,!0}finally{er(p),ce.T=l,AI(t,n)}}i(dI,"flushPassiveEffects");function fI(t,n,l){n=Tn(l,n),qu(n),n=Ng(t.stateNode,n,2),t=ba(t,n,2),t!==null&&(ut(t,2),vr(t))}i(fI,"captureCommitPhaseErrorOnRoot");function Ln(t,n,l){if(em=!1,t.tag===3)fI(t,t,l);else{for(;n!==null;){if(n.tag===3){fI(n,t,l);return}if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(LA===null||!LA.has(d))){t=Tn(l,t),qu(t),l=Mg(2),d=ba(n,l,2),d!==null&&(Og(l,d,n,t),ut(d,2),vr(d));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
169
+
170
+ Error message:
171
+
172
+ %s`,l)}}i(Ln,"captureCommitPhaseError");function Wh(t,n,l){var d=t.pingCache;if(d===null){d=t.pingCache=new w4;var p=new Set;d.set(n,p)}else p=d.get(n),p===void 0&&(p=new Set,d.set(n,p));p.has(l)||(Pv=!0,p.add(l),d=rv.bind(null,t,n,l),pc&&cA(t,l),n.then(d,d))}i(Wh,"attachPingListener");function rv(t,n,l){var d=t.pingCache;d!==null&&d.delete(n),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,(l&127)!==0?0>Ec&&(mf=Ec=Or(),mE=NI("Promise Resolved"),TA=2):(l&4194048)!==0&&0>Gs&&(Au=Gs=Or(),EE=NI("Promise Resolved"),Bv=2),Zy()&&ce.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
173
+
174
+ When testing, code that resolves suspended data should be wrapped into act(...):
175
+
176
+ act(() => {
177
+ /* finish loading suspended data */
178
+ });
179
+ /* assert on the output */
180
+
181
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),go===t&&(un&l)===l&&(Lo===OA||Lo===tB&&(un&62914560)===un&&Rn()-aB<jx?(xn&pi)===gi&&aA(t,0):Jv|=l,xf===un&&(xf=0)),vr(t)}i(rv,"pingSuspendedRoot");function gI(t,n){n===0&&(n=Je()),t=si(t,n),t!==null&&(ut(t,n),vr(t))}i(gI,"retryTimedOutBoundary");function pI(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),gI(t,l)}i(pI,"retryDehydratedSuspenseBoundary");function iv(t,n){var l=0;switch(t.tag){case 31:case 13:var d=t.stateNode,p=t.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=t.stateNode;break;case 22:d=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(n),gI(t,l)}i(iv,"resolveRetryWakeable");function $h(t,n,l){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var d=t,p=n,h=p.type===sp;h=l||h,p.tag!==22?p.flags&67108864?h&&He(p,Ta,d,p):$h(d,p,h):p.memoizedState===null&&(h&&p.flags&8192?He(p,Ta,d,p):p.subtreeFlags&67108864&&He(p,$h,d,p,h)),n=n.sibling}}i($h,"recursivelyTraverseAndDoubleInvokeEffectsInDEV");function Ta(t,n){Te(!0);try{rc(n),jy(n),zy(t,n.alternate,n,!1),Yy(t,n,0,null,!1,0)}finally{Te(!1)}}i(Ta,"doubleInvokeEffectsOnFiber");function eE(t){var n=!0;t.current.mode&24||(n=!1),$h(t,t.current,n)}i(eE,"commitDoubleInvokeEffectsInDEV");function ep(t){if((xn&pi)===gi){var n=t.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=ue(t)||"ReactComponent",uB!==null){if(uB.has(n))return;uB.add(n)}else uB=new Set([n]);He(t,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}i(ep,"warnAboutUpdateOnNotYetMountedFiberInDEV");function cA(t,n){pc&&t.memoizedUpdaters.forEach(function(l){nt(t,l,n)})}i(cA,"restorePendingUpdaters");function mI(t,n){var l=ce.actQueue;return l!==null?(l.push(n),T4):kt(t,n)}i(mI,"scheduleCallback");function hI(t){Zy()&&ce.actQueue===null&&He(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
182
+
183
+ When testing, code that causes React state updates should be wrapped into act(...):
184
+
185
+ act(() => {
186
+ /* fire events that update state */
187
+ });
188
+ /* assert on the output */
189
+
190
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ue(t))})}i(hI,"warnIfUpdatesNotWrappedWithActDEV");function jc(t){if(Ps===null)return t;var n=Ps(t);return n===void 0?t:n.current}i(jc,"resolveFunctionForHotReloading");function tp(t){if(Ps===null)return t;var n=Ps(t);return n===void 0?t!=null&&typeof t.render=="function"&&(n=jc(t.render),t.render!==n)?(n={$$typeof:Wr,render:n},t.displayName!==void 0&&(n.displayName=t.displayName),n):t:n.current}i(tp,"resolveForwardRefForHotReloading");function tE(t,n){if(Ps===null)return!1;var l=t.elementType;n=n.type;var d=!1,p=typeof n=="object"&&n!==null?n.$$typeof:null;switch(t.tag){case 1:typeof n=="function"&&(d=!0);break;case 0:(typeof n=="function"||p===Ki)&&(d=!0);break;case 11:(p===Wr||p===Ki)&&(d=!0);break;case 14:case 15:(p===fA||p===Ki)&&(d=!0);break;default:return!1}return!!(d&&(t=Ps(l),t!==void 0&&t===Ps(n)))}i(tE,"isCompatibleFamilyForHotReloading");function EI(t){Ps!==null&&typeof WeakSet=="function"&&(tm===null&&(tm=new WeakSet),tm.add(t))}i(EI,"markFailedErrorBoundaryForHotReloading");function CI(t,n,l){do{var d=t,p=d.alternate,h=d.child,B=d.sibling,Q=d.tag;d=d.type;var U=null;switch(Q){case 0:case 15:case 1:U=d;break;case 11:U=d.render}if(Ps===null)throw Error("Expected resolveFamily to be set during hot reload.");var q=!1;if(d=!1,U!==null&&(U=Ps(U),U!==void 0&&(l.has(U)?d=!0:n.has(U)&&(Q===1?d=!0:q=!0))),tm!==null&&(tm.has(t)||p!==null&&tm.has(p))&&(d=!0),d&&(t._debugNeedsRemount=!0),(d||q)&&(p=si(t,2),p!==null&&mo(p,t,2)),h===null||d||CI(h,n,l),B===null)break;t=B}while(!0)}i(CI,"scheduleFibersWithFamiliesRecursively");function av(t,n,l,d){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,iD||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}i(av,"FiberNode");function np(t){return t=t.prototype,!(!t||!t.isReactComponent)}i(np,"shouldConstruct");function yl(t,n){var l=t.alternate;switch(l===null?(l=S(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l._debugOwner=t._debugOwner,l._debugStack=t._debugStack,l._debugTask=t._debugTask,l._debugHookTypes=t._debugHookTypes,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l.selfBaseDuration=t.selfBaseDuration,l.treeBaseDuration=t.treeBaseDuration,l._debugInfo=t._debugInfo,l._debugNeedsRemount=t._debugNeedsRemount,l.tag){case 0:case 15:l.type=jc(t.type);break;case 1:l.type=jc(t.type);break;case 11:l.type=tp(t.type)}return l}i(yl,"createWorkInProgress");function Ar(t,n){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,n=l.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},t.selfBaseDuration=l.selfBaseDuration,t.treeBaseDuration=l.treeBaseDuration),t}i(Ar,"resetWorkInProgress");function op(t,n,l,d,p,h){var B=0,Q=t;if(typeof t=="function")np(t)&&(B=1),Q=jc(Q);else if(typeof t=="string")$n&&I?(B=po(),B=Rl(t,l,B)?26:Fe(t)?27:5):$n?(B=po(),B=Rl(t,l,B)?26:5):B=I&&Fe(t)?27:5;else e:switch(t){case of:return n=S(31,l,n,p),n.elementType=of,n.lanes=h,n;case dA:return ic(l.children,p,h,n);case sp:B=8,p|=24;break;case nE:return t=l,d=p,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),n=S(12,t,n,d|2),n.elementType=nE,n.lanes=h,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case lp:return n=S(13,l,n,p),n.elementType=lp,n.lanes=h,n;case oE:return n=S(19,l,n,p),n.elementType=oE,n.lanes=h,n;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $o:B=10;break e;case Zc:B=9;break e;case Wr:B=11,Q=tp(Q);break e;case fA:B=14;break e;case Ki:B=16,Q=null;break e}Q="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?l="null":dr(t)?l="array":t!==void 0&&t.$$typeof===Il?(l="<"+(le(t.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,B=d?typeof d.tag=="number"?ue(d):typeof d.name=="string"?d.name:null:null,B&&(Q+=`
191
+
192
+ Check the render method of \``+B+"`."),B=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+Q)),Q=null}return n=S(B,l,n,p),n.elementType=t,n.type=Q,n.lanes=h,n._debugOwner=d,n}i(op,"createFiberFromTypeAndProps");function rp(t,n,l){return n=op(t.type,t.key,t.props,t._owner,n,l),n._debugOwner=t._owner,n._debugStack=t._debugStack,n._debugTask=t._debugTask,n}i(rp,"createFiberFromElement");function ic(t,n,l,d){return t=S(7,t,d,n),t.lanes=l,t}i(ic,"createFiberFromFragment");function ip(t,n,l){return t=S(6,t,null,n),t.lanes=l,t}i(ip,"createFiberFromText");function Vc(t){var n=S(18,null,null,Jt);return n.stateNode=t,n}i(Vc,"createFiberFromDehydratedFragment");function ef(t,n,l){return n=S(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}i(ef,"createFiberFromPortal");function uA(t,n,l,d,p,h,B,Q,U){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_s,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=W(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=W(0),this.hiddenUpdates=W(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=h,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)t.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}i(uA,"FiberRootNode");function Xc(t,n,l,d,p,h,B,Q,U,q,fe,me){return t=new uA(t,n,l,B,U,q,fe,me,Q),n=1,h===!0&&(n|=24),h=S(3,null,null,n|2),t.current=h,h.stateNode=t,n=lt(),xt(n),t.pooledCache=n,xt(n),h.memoizedState={element:d,isDehydrated:l,cache:n},Ag(h),t}i(Xc,"createFiberRoot");function Fi(t){return""+t}i(Fi,"testStringCoercion");function yI(t){return t?(t=Co,t):Co}i(yI,"getContextForSubtree");function II(t,n,l,d){return tf(n.current,2,t,n,l,d),2}i(II,"updateContainerSync");function tf(t,n,l,d,p,h){if(Ji&&typeof Ji.onScheduleFiberRoot=="function")try{Ji.onScheduleFiberRoot(Tp,d,l)}catch(B){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",B))}p=yI(p),d.context===null?d.context=p:d.pendingContext=p,mc&&lu!==null&&!sD&&(sD=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
193
+
194
+ Check the render method of %s.`,ue(lu)||"Unknown")),d=Al(n),d.payload={element:l},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",h),d.callback=h),l=ba(t,d,n),l!==null&&(_n(n,"root.render()",null),mo(l,t,n),Vu(l,t,n))}i(tf,"updateContainerImpl");function nf(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}i(nf,"markRetryLaneImpl");function AA(t,n){nf(t,n),(t=t.alternate)&&nf(t,n)}i(AA,"markRetryLaneIfNotHydrated");function ap(){return lu}i(ap,"getCurrentFiberForDevTools");var fn={},sv=Nt(),zi=l0(),Vn=Object.assign,BI=Symbol.for("react.element"),Il=Symbol.for("react.transitional.element"),Bl=Symbol.for("react.portal"),dA=Symbol.for("react.fragment"),sp=Symbol.for("react.strict_mode"),nE=Symbol.for("react.profiler"),Zc=Symbol.for("react.consumer"),$o=Symbol.for("react.context"),Wr=Symbol.for("react.forward_ref"),lp=Symbol.for("react.suspense"),oE=Symbol.for("react.suspense_list"),fA=Symbol.for("react.memo"),Ki=Symbol.for("react.lazy"),of=Symbol.for("react.activity"),SI=Symbol.for("react.memo_cache_sentinel"),Wc=Symbol.iterator,gA=Symbol.for("react.client.reference"),dr=Array.isArray,ce=sv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_a=e.rendererVersion,Na=e.rendererPackageName,Sl=e.extraDevToolsConfig,xi=e.getPublicInstance,Ts=e.getRootHostContext,$r=e.getChildHostContext,rf=e.prepareForCommit,ac=e.resetAfterCommit,cp=e.createInstance;e.cloneMutableInstance;var br=e.appendInitialChild,ho=e.finalizeInitialChildren,hn=e.shouldSetTextContent,vl=e.createTextInstance;e.cloneMutableTextInstance;var Ma=e.scheduleTimeout,rE=e.cancelTimeout,_s=e.noTimeout,Di=e.isPrimaryRenderer;e.warnsIfNotActing;var Eo=e.supportsMutation,Ns=e.supportsPersistence,di=e.supportsHydration,lv=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var Do=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var er=e.setCurrentUpdatePriority,Yi=e.getCurrentUpdatePriority,iE=e.resolveUpdatePriority,pA=e.trackSchedulerEvent,$c=e.resolveEventType,as=e.resolveEventTimeStamp,af=e.shouldAttemptEagerTransition,aE=e.detachDeletedInstance;e.requestPostPaintCallback;var mA=e.maySuspendCommit,hA=e.maySuspendCommitOnUpdate,up=e.maySuspendCommitInSyncRender,sc=e.preloadInstance,EA=e.startSuspendingCommit,Ap=e.suspendInstance;e.suspendOnActiveViewTransition;var dp=e.waitForCommitToBeReady,fp=e.getSuspendedCommitReason,Oa=e.NotPendingTransition,Ha=e.HostTransitionContext,sf=e.resetFormInstance,eu=e.bindToConsole,vI=e.supportsMicrotasks,ka=e.scheduleMicrotask,ss=e.supportsTestSelectors,sE=e.findFiberRoot,lc=e.getBoundingRect,lE=e.getTextContent,Ms=e.isHiddenSubtree,gp=e.matchAccessibilityRole,ua=e.setFocusIfFocusable,Ua=e.setupIntersectionObserver,tr=e.appendChild,Ql=e.appendChildToContainer,rn=e.commitTextUpdate,oo=e.commitMount,fr=e.commitUpdate,pp=e.insertBefore,CA=e.insertInContainerBefore,tu=e.removeChild,mp=e.removeChildFromContainer,yA=e.resetTextContent,IA=e.hideInstance,cv=e.hideTextInstance,lf=e.unhideInstance,QI=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var cE=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var bI=e.cloneInstance,hp=e.createContainerChildSet,Ep=e.appendChildToContainerChildSet,gr=e.finalizeContainerChildren,Cp=e.replaceContainerChildren,Os=e.cloneHiddenInstance,nr=e.cloneHiddenTextInstance,cf=e.isSuspenseInstancePending,yp=e.isSuspenseInstanceFallback,Mr=e.getSuspenseInstanceFallbackErrorDetails,pr=e.registerSuspenseInstanceRetry,qi=e.canHydrateFormStateMarker,ls=e.isFormStateMarkerMatching,cc=e.getNextHydratableSibling,uv=e.getNextHydratableSiblingAfterSingleton,Ip=e.getFirstHydratableChild,Bp=e.getFirstHydratableChildWithinContainer,Sp=e.getFirstHydratableChildWithinActivityInstance,vp=e.getFirstHydratableChildWithinSuspenseInstance,Qp=e.getFirstHydratableChildWithinSingleton,uf=e.canHydrateInstance,Av=e.canHydrateTextInstance,yn=e.canHydrateActivityInstance,so=e.canHydrateSuspenseInstance,In=e.hydrateInstance,bn=e.hydrateTextInstance,Wn=e.hydrateActivityInstance,Aa=e.hydrateSuspenseInstance,uc=e.getNextHydratableInstanceAfterActivityInstance,nu=e.getNextHydratableInstanceAfterSuspenseInstance,uE=e.commitHydratedInstance,bl=e.commitHydratedContainer,Ho=e.commitHydratedActivityInstance,Ac=e.commitHydratedSuspenseInstance,ou=e.finalizeHydratedChildren,AE=e.flushHydrationEvents;e.clearActivityBoundary;var da=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var BA=e.clearSuspenseBoundaryFromContainer,Af=e.hideDehydratedBoundary,Pi=e.unhideDehydratedBoundary,bp=e.shouldDeleteUnhydratedTailInstances,df=e.diffHydratedPropsForDevWarnings,dE=e.diffHydratedTextForDevWarnings,SA=e.describeHydratableInstanceForDevWarnings,Rp=e.validateHydratableInstance,dc=e.validateHydratableTextInstance,$n=e.supportsResources,Rl=e.isHostHoistableType,fc=e.getHoistableRoot,Hs=e.getResource,wp=e.acquireResource,xp=e.releaseResource,RI=e.hydrateHoistable,vA=e.mountHoistable,Dp=e.unmountHoistable,a=e.createHoistableInstance,s=e.prepareToCommitHoistables,A=e.mayResourceSuspendCommit,g=e.preloadResource,y=e.suspendResource,I=e.supportsSingletons,_=e.resolveSingletonInstance,F=e.acquireSingletonInstance,pe=e.releaseSingletonInstance,Fe=e.isHostSingletonType,rt=e.isSingletonScope,$e=[],Ct=[],zt=-1,Co={};Object.freeze(Co);var Rr=Math.clz32?Math.clz32:Se,ru=Math.log,ae=Math.LN2,Z=256,de=262144,Ve=4194304,kt=zi.unstable_scheduleCallback,To=zi.unstable_cancelCallback,Pt=zi.unstable_shouldYield,Kn=zi.unstable_requestPaint,Rn=zi.unstable_now,On=zi.unstable_ImmediatePriority,wl=zi.unstable_UserBlockingPriority,ff=zi.unstable_NormalPriority,Hw=zi.unstable_IdlePriority,d4=zi.log,f4=zi.unstable_setDisableYieldValue,Tp=null,Ji=null,gc=!1,pc=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",kw=0;if(typeof performance=="object"&&typeof performance.now=="function")var g4=performance,Uw=i(function(){return g4.now()},"getCurrentTime");else{var p4=Date;Uw=i(function(){return p4.now()},"getCurrentTime")}var fa=typeof Object.is=="function"?Object.is:At,Lw=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},dv=Object.prototype.hasOwnProperty,yo=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Bn="Blocking",QA=!1,iu={color:"primary",properties:null,tooltipText:"",track:"Components \u269B"},bA={start:-0,end:-0,detail:{devtools:iu}},m4=["Changed Props",""],h4=["Changed Props","This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."],fE=0,Gw,Fw,zw,Kw,Yw,qw,Pw;ir.__reactDisabledLog=!0;var fv,Jw,gv=!1,pv=new(typeof WeakMap=="function"?WeakMap:Map),mv=new WeakMap,_p=[],Np=0,wI=null,gE=0,ks=[],Us=0,gf=null,au=1,su="",RA=te(null),pE=te(null),wA=te(null),xI=te(null),jw=/["'&<>\n\t]|^\s|\s$/,lu=null,mc=!1,Ti=null,ko=null,wn=!1,hc=!1,cs=null,xA=null,Ls=!1,hv=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Jt=0,DI=te(null),Ev=te(null),Cv=te(null),TI={},_I=null,Mp=null,Op=!1,E4=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:i(function(l,d){t.push(d)},"addEventListener")};this.abort=function(){n.aborted=!0,t.forEach(function(l){return l()})}},C4=zi.unstable_scheduleCallback,y4=zi.unstable_NormalPriority,or={$$typeof:$o,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Or=zi.unstable_now,NI=console.createTask?console.createTask:function(){return null},ji=-0,DA=-0,cu=-0,uu=null,ga=-1.1,pf=-0,Uo=-0,Ut=-1.1,qt=-1.1,_o=null,rr=!1,mf=-0,Ec=-1.1,mE=null,TA=0,yv=null,Iv=null,hf=-1.1,hE=null,Hp=-1.1,MI=-1.1,Au=-0,du=-1.1,Gs=-1.1,Bv=0,EE=null,Vw=null,Xw=null,_A=-1.1,Ef=null,NA=-1.1,OI=-1.1,kp=null,Zw=0,CE=-1.1,HI=!1,kI=!1,UI=null,Up=null,Sv=!1,vv=!1,LI=!1,Qv=!1,Cf=0,bv={},yE=null,Rv=0,yf=0,Lp=null,Ww=ce.S;ce.S=function(t,n){if(Jx=Rn(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>du&&0>Gs){du=Or();var l=as(),d=$c();(l!==NA||d!==Ef)&&(NA=-1.1),_A=l,Ef=d}Ke(t,n)}Ww!==null&&Ww(t,n)};var If=te(null),xl={recordUnsafeLifecycleWarnings:i(function(){},"recordUnsafeLifecycleWarnings"),flushPendingUnsafeLifecycleWarnings:i(function(){},"flushPendingUnsafeLifecycleWarnings"),recordLegacyContextWarning:i(function(){},"recordLegacyContextWarning"),flushLegacyContextWarning:i(function(){},"flushLegacyContextWarning"),discardPendingWarnings:i(function(){},"discardPendingWarnings")},IE=[],BE=[],SE=[],vE=[],QE=[],bE=[],Bf=new Set;xl.recordUnsafeLifecycleWarnings=function(t,n){Bf.has(t.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&IE.push(t),t.mode&8&&typeof n.UNSAFE_componentWillMount=="function"&&BE.push(t),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&SE.push(t),t.mode&8&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&vE.push(t),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&QE.push(t),t.mode&8&&typeof n.UNSAFE_componentWillUpdate=="function"&&bE.push(t))},xl.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<IE.length&&(IE.forEach(function(Q){t.add(ue(Q)||"Component"),Bf.add(Q.type)}),IE=[]);var n=new Set;0<BE.length&&(BE.forEach(function(Q){n.add(ue(Q)||"Component"),Bf.add(Q.type)}),BE=[]);var l=new Set;0<SE.length&&(SE.forEach(function(Q){l.add(ue(Q)||"Component"),Bf.add(Q.type)}),SE=[]);var d=new Set;0<vE.length&&(vE.forEach(function(Q){d.add(ue(Q)||"Component"),Bf.add(Q.type)}),vE=[]);var p=new Set;0<QE.length&&(QE.forEach(function(Q){p.add(ue(Q)||"Component"),Bf.add(Q.type)}),QE=[]);var h=new Set;if(0<bE.length&&(bE.forEach(function(Q){h.add(ue(Q)||"Component"),Bf.add(Q.type)}),bE=[]),0<n.size){var B=H(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
195
+
196
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
197
+
198
+ Please update the following components: %s`,B)}0<d.size&&(B=H(d),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
202
+
203
+ Please update the following components: %s`,B)),0<h.size&&(B=H(h),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
204
+
205
+ * Move data fetching code or side effects to componentDidUpdate.
206
+
207
+ Please update the following components: %s`,B)),0<t.size&&(B=H(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
210
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
211
+
212
+ Please update the following components: %s`,B)),0<l.size&&(B=H(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
213
+
214
+ * Move data fetching code or side effects to componentDidUpdate.
215
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
216
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,B)),0<p.size&&(B=H(p),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
219
+
220
+ * Move data fetching code or side effects to componentDidUpdate.
221
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
222
+
223
+ Please update the following components: %s`,B))};var GI=new Map,$w=new Set;xl.recordLegacyContextWarning=function(t,n){for(var l=null,d=t;d!==null;)d.mode&8&&(l=d),d=d.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!$w.has(t.type)&&(d=GI.get(l),t.type.contextTypes!=null||t.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(d===void 0&&(d=[],GI.set(l,d)),d.push(t))},xl.flushLegacyContextWarning=function(){GI.forEach(function(t){if(t.length!==0){var n=t[0],l=new Set;t.forEach(function(p){l.add(ue(p)||"Component"),$w.add(p.type)});var d=H(l);He(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
224
+
225
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
226
+
227
+ Please update the following components: %s
228
+
229
+ Learn more about this warning here: https://react.dev/link/legacy-context`,d)})}})},xl.discardPendingWarnings=function(){IE=[],BE=[],SE=[],vE=[],QE=[],bE=[],GI=new Map};var ex={react_stack_bottom_frame:i(function(t,n,l){var d=mc;mc=!0;try{return t(n,l)}finally{mc=d}},"react_stack_bottom_frame")},wv=ex.react_stack_bottom_frame.bind(ex),tx={react_stack_bottom_frame:i(function(t){var n=mc;mc=!0;try{return t.render()}finally{mc=n}},"react_stack_bottom_frame")},nx=tx.react_stack_bottom_frame.bind(tx),ox={react_stack_bottom_frame:i(function(t,n){try{n.componentDidMount()}catch(l){Ln(t,t.return,l)}},"react_stack_bottom_frame")},xv=ox.react_stack_bottom_frame.bind(ox),rx={react_stack_bottom_frame:i(function(t,n,l,d,p){try{n.componentDidUpdate(l,d,p)}catch(h){Ln(t,t.return,h)}},"react_stack_bottom_frame")},ix=rx.react_stack_bottom_frame.bind(rx),ax={react_stack_bottom_frame:i(function(t,n){var l=n.stack;t.componentDidCatch(n.value,{componentStack:l!==null?l:""})},"react_stack_bottom_frame")},I4=ax.react_stack_bottom_frame.bind(ax),sx={react_stack_bottom_frame:i(function(t,n,l){try{l.componentWillUnmount()}catch(d){Ln(t,n,d)}},"react_stack_bottom_frame")},lx=sx.react_stack_bottom_frame.bind(sx),cx={react_stack_bottom_frame:i(function(t){var n=t.create;return t=t.inst,n=n(),t.destroy=n},"react_stack_bottom_frame")},B4=cx.react_stack_bottom_frame.bind(cx),ux={react_stack_bottom_frame:i(function(t,n,l){try{l()}catch(d){Ln(t,n,d)}},"react_stack_bottom_frame")},S4=ux.react_stack_bottom_frame.bind(ux),Ax={react_stack_bottom_frame:i(function(t){var n=t._init;return n(t._payload)},"react_stack_bottom_frame")},v4=Ax.react_stack_bottom_frame.bind(Ax),Gp=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Dv=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),FI=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),zI={then:i(function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')},"then")},Sf=null,RE=!1,Fp=null,wE=0,cn=null,Tv,dx=Tv=!1,fx={},gx={},px={};k=i(function(t,n,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var d=ue(t),p=d||"null";if(!fx[p]){fx[p]=!0,l=l._owner,t=t._debugOwner;var h="";t&&typeof t.tag=="number"&&(p=ue(t))&&(h=`
230
+
231
+ Check the render method of \``+p+"`."),h||d&&(h=`
232
+
233
+ Check the top-level render call using <`+d+">.");var B="";l!=null&&t!==l&&(d=null,typeof l.tag=="number"?d=ue(l):typeof l.name=="string"&&(d=l.name),d&&(B=" It was passed a child from "+d+".")),He(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',h,B)})}}},"warnForMissingKey");var vf=Bd(!0),mx=Bd(!1),xE=1,fu=2,Fs=[],zp=0,_v=0,hx=0,Ex=1,Cx=2,Nv=3,MA=!1,yx=!1,Mv=null,Ov=!1,Kp=te(null),KI=te(0),us=te(null),zs=null,Yp=1,DE=2,wr=te(0),YI=0,Ks=1,pa=2,As=4,ma=8,qp,Ix=new Set,Bx=new Set,Hv=new Set,Sx=new Set,gu=0,Xt=null,fo=null,Hr=null,qI=!1,Pp=!1,Qf=!1,PI=0,TE=0,pu=null,Q4=0,b4=25,Ae=null,Ys=null,mu=-1,_E=!1,NE={readContext:ve,use:zn,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useLayoutEffect:Oo,useInsertionEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useSyncExternalStore:Oo,useId:Oo,useHostTransitionStatus:Oo,useFormState:Oo,useActionState:Oo,useOptimistic:Oo,useMemoCache:Oo,useCacheRefresh:Oo};NE.useEffectEvent=Oo;var kv=null,vx=null,Uv=null,Qx=null,Cc=null,Dl=null,JI=null;kv={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return Ae="useCallback",on(),Ui(n),wg(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",on(),ve(t)},"useContext"),useEffect:i(function(t,n){return Ae="useEffect",on(),Ui(n),Li(t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",on(),Ui(l),Rg(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){Ae="useInsertionEffect",on(),Ui(n),fl(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",on(),Ui(n),gl(t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",on(),Ui(n);var l=ce.H;ce.H=Cc;try{return xg(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",on();var d=ce.H;ce.H=Cc;try{return yg(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(t){return Ae="useRef",on(),ts(t)},"useRef"),useState:i(function(t){Ae="useState",on();var n=ce.H;ce.H=Cc;try{return $u(t)}finally{ce.H=n}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",on()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",on(),Md(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",on(),Tg()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",on(),Ig(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",on(),kd()},"useId"),useFormState:i(function(t,n){return Ae="useFormState",on(),Zu(),Zo(t,n)},"useFormState"),useActionState:i(function(t,n){return Ae="useActionState",on(),Zo(t,n)},"useActionState"),useOptimistic:i(function(t){return Ae="useOptimistic",on(),vg(t)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return Ae="useCacheRefresh",on(),ec()},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",on(),Xl(t)},"useEffectEvent")},vx={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return Ae="useCallback",Ye(),wg(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){return Ae="useEffect",Ye(),Li(t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",Ye(),Rg(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){Ae="useInsertionEffect",Ye(),fl(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",Ye(),gl(t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",Ye();var l=ce.H;ce.H=Cc;try{return xg(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",Ye();var d=ce.H;ce.H=Cc;try{return yg(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(t){return Ae="useRef",Ye(),ts(t)},"useRef"),useState:i(function(t){Ae="useState",Ye();var n=ce.H;ce.H=Cc;try{return $u(t)}finally{ce.H=n}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",Ye(),Md(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",Ye(),Tg()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",Ye(),Ig(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",Ye(),kd()},"useId"),useActionState:i(function(t,n){return Ae="useActionState",Ye(),Zo(t,n)},"useActionState"),useFormState:i(function(t,n){return Ae="useFormState",Ye(),Zu(),Zo(t,n)},"useFormState"),useOptimistic:i(function(t){return Ae="useOptimistic",Ye(),vg(t)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return Ae="useCacheRefresh",Ye(),ec()},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",Ye(),Xl(t)},"useEffectEvent")},Uv={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return Ae="useCallback",Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){Ae="useEffect",Ye(),ci(2048,ma,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return Ae="useInsertionEffect",Ye(),ci(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",Ye(),ci(4,As,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",Ye();var l=ce.H;ce.H=Dl;try{return eA(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",Ye();var d=ce.H;ce.H=Dl;try{return Bs(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(){return Ae="useRef",Ye(),jn().memoizedState},"useRef"),useState:i(function(){Ae="useState",Ye();var t=ce.H;ce.H=Dl;try{return Bs($a)}finally{ce.H=t}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",Ye(),Dg(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",Ye(),by()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return Ae="useFormState",Ye(),Zu(),Nd(t)},"useFormState"),useActionState:i(function(t){return Ae="useActionState",Ye(),Nd(t)},"useActionState"),useOptimistic:i(function(t,n){return Ae="useOptimistic",Ye(),yh(t,n)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return Ae="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",Ye(),Zl(t)},"useEffectEvent")},Qx={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return Ae="useCallback",Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){Ae="useEffect",Ye(),ci(2048,ma,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return Ae="useInsertionEffect",Ye(),ci(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",Ye(),ci(4,As,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",Ye();var l=ce.H;ce.H=JI;try{return eA(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",Ye();var d=ce.H;ce.H=JI;try{return Wu(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(){return Ae="useRef",Ye(),jn().memoizedState},"useRef"),useState:i(function(){Ae="useState",Ye();var t=ce.H;ce.H=JI;try{return Wu($a)}finally{ce.H=t}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",Ye(),vh(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",Ye(),pl()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return Ae="useFormState",Ye(),Zu(),wa(t)},"useFormState"),useActionState:i(function(t){return Ae="useActionState",Ye(),wa(t)},"useActionState"),useOptimistic:i(function(t,n){return Ae="useOptimistic",Ye(),Ih(t,n)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return Ae="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",Ye(),Zl(t)},"useEffectEvent")},Cc={readContext:i(function(t){return M(),ve(t)},"readContext"),use:i(function(t){return R(),zn(t)},"use"),useCallback:i(function(t,n){return Ae="useCallback",R(),on(),wg(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",R(),on(),ve(t)},"useContext"),useEffect:i(function(t,n){return Ae="useEffect",R(),on(),Li(t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",R(),on(),Rg(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){Ae="useInsertionEffect",R(),on(),fl(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",R(),on(),gl(t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",R(),on();var l=ce.H;ce.H=Cc;try{return xg(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",R(),on();var d=ce.H;ce.H=Cc;try{return yg(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(t){return Ae="useRef",R(),on(),ts(t)},"useRef"),useState:i(function(t){Ae="useState",R(),on();var n=ce.H;ce.H=Cc;try{return $u(t)}finally{ce.H=n}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",R(),on()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",R(),on(),Md(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",R(),on(),Tg()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",R(),on(),Ig(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",R(),on(),kd()},"useId"),useFormState:i(function(t,n){return Ae="useFormState",R(),on(),Zo(t,n)},"useFormState"),useActionState:i(function(t,n){return Ae="useActionState",R(),on(),Zo(t,n)},"useActionState"),useOptimistic:i(function(t){return Ae="useOptimistic",R(),on(),vg(t)},"useOptimistic"),useMemoCache:i(function(t){return R(),Lc(t)},"useMemoCache"),useHostTransitionStatus:$l,useCacheRefresh:i(function(){return Ae="useCacheRefresh",on(),ec()},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",R(),on(),Xl(t)},"useEffectEvent")},Dl={readContext:i(function(t){return M(),ve(t)},"readContext"),use:i(function(t){return R(),zn(t)},"use"),useCallback:i(function(t,n){return Ae="useCallback",R(),Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",R(),Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){Ae="useEffect",R(),Ye(),ci(2048,ma,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",R(),Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return Ae="useInsertionEffect",R(),Ye(),ci(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",R(),Ye(),ci(4,As,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",R(),Ye();var l=ce.H;ce.H=Dl;try{return eA(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",R(),Ye();var d=ce.H;ce.H=Dl;try{return Bs(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(){return Ae="useRef",R(),Ye(),jn().memoizedState},"useRef"),useState:i(function(){Ae="useState",R(),Ye();var t=ce.H;ce.H=Dl;try{return Bs($a)}finally{ce.H=t}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",R(),Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",R(),Ye(),Dg(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",R(),Ye(),by()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",R(),Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",R(),Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return Ae="useFormState",R(),Ye(),Nd(t)},"useFormState"),useActionState:i(function(t){return Ae="useActionState",R(),Ye(),Nd(t)},"useActionState"),useOptimistic:i(function(t,n){return Ae="useOptimistic",R(),Ye(),yh(t,n)},"useOptimistic"),useMemoCache:i(function(t){return R(),Lc(t)},"useMemoCache"),useHostTransitionStatus:$l,useCacheRefresh:i(function(){return Ae="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",R(),Ye(),Zl(t)},"useEffectEvent")},JI={readContext:i(function(t){return M(),ve(t)},"readContext"),use:i(function(t){return R(),zn(t)},"use"),useCallback:i(function(t,n){return Ae="useCallback",R(),Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return Ae="useContext",R(),Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){Ae="useEffect",R(),Ye(),ci(2048,ma,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return Ae="useImperativeHandle",R(),Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return Ae="useInsertionEffect",R(),Ye(),ci(4,pa,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return Ae="useLayoutEffect",R(),Ye(),ci(4,As,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){Ae="useMemo",R(),Ye();var l=ce.H;ce.H=Dl;try{return eA(t,n)}finally{ce.H=l}},"useMemo"),useReducer:i(function(t,n,l){Ae="useReducer",R(),Ye();var d=ce.H;ce.H=Dl;try{return Wu(t,n,l)}finally{ce.H=d}},"useReducer"),useRef:i(function(){return Ae="useRef",R(),Ye(),jn().memoizedState},"useRef"),useState:i(function(){Ae="useState",R(),Ye();var t=ce.H;ce.H=Dl;try{return Wu($a)}finally{ce.H=t}},"useState"),useDebugValue:i(function(){Ae="useDebugValue",R(),Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return Ae="useDeferredValue",R(),Ye(),vh(t,n)},"useDeferredValue"),useTransition:i(function(){return Ae="useTransition",R(),Ye(),pl()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return Ae="useSyncExternalStore",R(),Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return Ae="useId",R(),Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return Ae="useFormState",R(),Ye(),wa(t)},"useFormState"),useActionState:i(function(t){return Ae="useActionState",R(),Ye(),wa(t)},"useActionState"),useOptimistic:i(function(t,n){return Ae="useOptimistic",R(),Ye(),Ih(t,n)},"useOptimistic"),useMemoCache:i(function(t){return R(),Lc(t)},"useMemoCache"),useHostTransitionStatus:$l,useCacheRefresh:i(function(){return Ae="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return Ae="useEffectEvent",R(),Ye(),Zl(t)},"useEffectEvent")};var bx={},Rx=new Set,wx=new Set,xx=new Set,Dx=new Set,Tx=new Set,_x=new Set,Nx=new Set,Mx=new Set,Ox=new Set,Hx=new Set;Object.freeze(bx);var Lv={enqueueSetState:i(function(t,n,l){t=t._reactInternals;var d=ca(t),p=Al(d);p.payload=n,l!=null&&(Rh(l),p.callback=l),n=ba(t,p,d),n!==null&&(_n(d,"this.setState()",t),mo(n,t,d),Vu(n,t,d))},"enqueueSetState"),enqueueReplaceState:i(function(t,n,l){t=t._reactInternals;var d=ca(t),p=Al(d);p.tag=Ex,p.payload=n,l!=null&&(Rh(l),p.callback=l),n=ba(t,p,d),n!==null&&(_n(d,"this.replaceState()",t),mo(n,t,d),Vu(n,t,d))},"enqueueReplaceState"),enqueueForceUpdate:i(function(t,n){t=t._reactInternals;var l=ca(t),d=Al(l);d.tag=Cx,n!=null&&(Rh(n),d.callback=n),n=ba(t,d,l),n!==null&&(_n(l,"this.forceUpdate()",t),mo(n,t,l),Vu(n,t,l))},"enqueueForceUpdate")},Jp=null,Gv=null,Fv=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),kr=!1,kx={},Ux={},Lx={},Gx={},jp=!1,Fx={},jI={},zv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},zx=!1,Kx=null;Kx=new Set;var hu=!1,Ur=!1,Kv=!1,Yx=typeof WeakSet=="function"?WeakSet:Set,fi=null,Vp=null,Xp=null,Lr=null,La=!1,Tl=null,ei=!1,Zp=8192,R4={getCacheForType:i(function(t){var n=ve(or),l=n.data.get(t);return l===void 0&&(l=t(),n.data.set(t,l)),l},"getCacheForType"),cacheSignal:i(function(){return ve(or).controller.signal},"cacheSignal"),getOwner:i(function(){return lu},"getOwner")},VI=0,XI=1,ZI=2,WI=3,$I=4;if(typeof Symbol=="function"&&Symbol.for){var ME=Symbol.for;VI=ME("selector.component"),XI=ME("selector.has_pseudo_class"),ZI=ME("selector.role"),WI=ME("selector.test_id"),$I=ME("selector.text")}var eB=[],w4=typeof WeakMap=="function"?WeakMap:Map,gi=0,pi=2,qs=4,Eu=0,OE=1,bf=2,tB=3,OA=4,nB=6,qx=5,xn=gi,go=null,gn=null,un=0,Ga=0,oB=1,Rf=2,HE=3,Px=4,Yv=5,kE=6,rB=7,qv=8,wf=9,ro=Ga,ds=null,HA=!1,Wp=!1,Pv=!1,yc=0,Lo=Eu,kA=0,UA=0,Jv=0,Fa=0,xf=0,UE=null,ha=null,iB=!1,aB=0,Jx=0,jx=300,LE=1/0,jv=500,GE=null,mr=null,LA=null,sB=0,Vv=1,Xv=2,Vx=3,GA=0,Xx=1,Zx=2,Wx=3,$x=4,lB=5,Gr=0,FA=null,$p=null,_l=0,Zv=0,Wv=-0,$v=null,eD=null,tD=null,Nl=sB,nD=null,x4=50,FE=0,eQ=null,tQ=!1,cB=!1,D4=50,Df=0,zE=null,em=!1,uB=null,oD=!1,rD=new Set,T4={},Ps=null,tm=null,iD=!1;try{var aD=Object.preventExtensions({})}catch{iD=!0}var sD=!1,lD={},cD=null,uD=null,AD=null,dD=null,fD=null,gD=null,pD=null,mD=null,hD=null,ED=null;return cD=i(function(t,n,l,d){n=o(t,n),n!==null&&(l=r(n.memoizedState,l,0,d),n.memoizedState=l,n.baseState=l,t.memoizedProps=Vn({},t.memoizedProps),l=si(t,2),l!==null&&mo(l,t,2))},"overrideHookState"),uD=i(function(t,n,l){n=o(t,n),n!==null&&(l=f(n.memoizedState,l,0),n.memoizedState=l,n.baseState=l,t.memoizedProps=Vn({},t.memoizedProps),l=si(t,2),l!==null&&mo(l,t,2))},"overrideHookStateDeletePath"),AD=i(function(t,n,l,d){n=o(t,n),n!==null&&(l=c(n.memoizedState,l,d),n.memoizedState=l,n.baseState=l,t.memoizedProps=Vn({},t.memoizedProps),l=si(t,2),l!==null&&mo(l,t,2))},"overrideHookStateRenamePath"),dD=i(function(t,n,l){t.pendingProps=r(t.memoizedProps,n,0,l),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=si(t,2),n!==null&&mo(n,t,2)},"overrideProps"),fD=i(function(t,n){t.pendingProps=f(t.memoizedProps,n,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=si(t,2),n!==null&&mo(n,t,2)},"overridePropsDeletePath"),gD=i(function(t,n,l){t.pendingProps=c(t.memoizedProps,n,l),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=si(t,2),n!==null&&mo(n,t,2)},"overridePropsRenamePath"),pD=i(function(t){var n=si(t,2);n!==null&&mo(n,t,2)},"scheduleUpdate"),mD=i(function(t){var n=Je(),l=si(t,n);l!==null&&mo(l,t,n)},"scheduleRetry"),hD=i(function(t){E=t},"setErrorHandler"),ED=i(function(t){m=t},"setSuspenseHandler"),fn.attemptContinuousHydration=function(t){if(t.tag===13||t.tag===31){var n=si(t,67108864);n!==null&&mo(n,t,67108864),AA(t,67108864)}},fn.attemptHydrationAtCurrentPriority=function(t){if(t.tag===13||t.tag===31){var n=ca(t);n=oe(n);var l=si(t,n);l!==null&&mo(l,t,n),AA(t,n)}},fn.attemptSynchronousHydration=function(t){switch(t.tag){case 3:if(t=t.stateNode,t.current.memoizedState.isDehydrated){var n=tt(t.pendingLanes);if(n!==0){for(t.pendingLanes|=2,t.entangledLanes|=2;n;){var l=1<<31-Rr(n);t.entanglements[1]|=l,n&=~l}vr(t),(xn&(pi|qs))===gi&&(LE=Rn()+jv,Za(0,!1))}}break;case 31:case 13:n=si(t,2),n!==null&&mo(n,t,2),Zd(),AA(t,2)}},fn.batchedUpdates=function(t,n){return t(n)},fn.createComponentSelector=function(t){return{$$typeof:VI,value:t}},fn.createContainer=function(t,n,l,d,p,h,B,Q,U,q){return Xc(t,n,!1,null,l,d,h,null,B,Q,U,q)},fn.createHasPseudoClassSelector=function(t){return{$$typeof:XI,value:t}},fn.createHydrationContainer=function(t,n,l,d,p,h,B,Q,U,q,fe,me,De,Tt){return t=Xc(l,d,!0,t,p,h,Q,Tt,U,q,fe,me),t.context=yI(null),l=t.current,d=ca(l),d=oe(d),p=Al(d),p.callback=n??null,ba(l,p,d),_n(d,"hydrateRoot()",null),n=d,t.current.lanes=n,ut(t,n),vr(t),t},fn.createPortal=function(t,n,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{Fi(d);var p=!1}catch{p=!0}return p&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object"),Fi(d)),{$$typeof:Bl,key:d==null?null:""+d,children:t,containerInfo:n,implementation:l}},fn.createRoleSelector=function(t){return{$$typeof:ZI,value:t}},fn.createTestNameSelector=function(t){return{$$typeof:WI,value:t}},fn.createTextSelector=function(t){return{$$typeof:$I,value:t}},fn.defaultOnCaughtError=function(t){var n=Jp?"The above error occurred in the <"+Jp+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Gv||"Anonymous")+".");typeof t=="object"&&t!==null&&typeof t.environmentName=="string"?eu("error",[`%o
234
+
235
+ %s
236
+
237
+ %s
238
+ `,t,n,l],t.environmentName)():console.error(`%o
239
+
240
+ %s
241
+
242
+ %s
243
+ `,t,n,l)},fn.defaultOnRecoverableError=function(t){Lw(t)},fn.defaultOnUncaughtError=function(t){Lw(t),console.warn(`%s
244
+
245
+ %s
246
+ `,Jp?"An error occurred in the <"+Jp+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
247
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},fn.deferredUpdates=function(t){var n=ce.T,l=Yi();try{return er(32),ce.T=null,t()}finally{er(l),ce.T=n}},fn.discreteUpdates=function(t,n,l,d,p){var h=ce.T,B=Yi();try{return er(2),ce.T=null,t(n,l,d,p)}finally{er(B),ce.T=h,xn===gi&&(LE=Rn()+jv)}},fn.findAllNodes=Xg,fn.findBoundingRects=function(t,n){if(!ss)throw Error("Test selector API is not supported by this renderer.");n=Xg(t,n),t=[];for(var l=0;l<n.length;l++)t.push(lc(n[l]));for(n=t.length-1;0<n;n--){l=t[n];for(var d=l.x,p=d+l.width,h=l.y,B=h+l.height,Q=n-1;0<=Q;Q--)if(n!==Q){var U=t[Q],q=U.x,fe=q+U.width,me=U.y,De=me+U.height;if(d>=q&&h>=me&&p<=fe&&B<=De){t.splice(n,1);break}else if(d!==q||l.width!==U.width||De<h||me>B){if(!(h!==me||l.height!==U.height||fe<d||q>p)){q>d&&(U.width+=q-d,U.x=d),fe<p&&(U.width=p-q),t.splice(n,1);break}}else{me>h&&(U.height+=me-h,U.y=h),De<B&&(U.height=B-me),t.splice(n,1);break}}}return t},fn.findHostInstance=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=Ce(n),t===null?null:xi(t.stateNode)},fn.findHostInstanceWithNoPortals=function(t){return t=Ee(t),t=t!==null?ge(t):null,t===null?null:xi(t.stateNode)},fn.findHostInstanceWithWarning=function(t,n){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));if(t=Ce(l),t===null)return null;if(t.mode&8){var d=ue(l)||"Component";lD[d]||(lD[d]=!0,He(t,function(){l.mode&8?console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",n,n,d):console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",n,n,d)}))}return xi(t.stateNode)},fn.flushPassiveEffects=lA,fn.flushSyncFromReconciler=function(t){var n=xn;xn|=1;var l=ce.T,d=Yi();try{if(er(2),ce.T=null,t)return t()}finally{er(d),ce.T=l,xn=n,(xn&(pi|qs))===gi&&Za(0,!1)}},fn.flushSyncWork=Zd,fn.focusWithin=function(t,n){if(!ss)throw Error("Test selector API is not supported by this renderer.");for(t=Ph(t),n=Xy(t,n),n=Array.from(n),t=0;t<n.length;){var l=n[t++],d=l.tag;if(!Ms(l)){if((d===5||d===26||d===27)&&ua(l.stateNode))return!0;for(l=l.child;l!==null;)n.push(l),l=l.sibling}}return!1},fn.getFindAllNodesFailureDescription=function(t,n){if(!ss)throw Error("Test selector API is not supported by this renderer.");var l=0,d=[];t=[Ph(t),0];for(var p=0;p<t.length;){var h=t[p++],B=h.tag,Q=t[p++],U=n[Q];if((B!==5&&B!==26&&B!==27||!Ms(h))&&(Jh(h,U)&&(d.push(Vg(U)),Q++,Q>l&&(l=Q)),Q<n.length))for(h=h.child;h!==null;)t.push(h,Q),h=h.sibling}if(l<n.length){for(t=[];l<n.length;l++)t.push(Vg(n[l]));return`findAllNodes was able to match part of the selector:
248
+ `+(d.join(" > ")+`
249
+
250
+ No matching component was found for:
251
+ `)+t.join(" > ")}return null},fn.getPublicRootInstance=function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 27:case 5:return xi(t.child.stateNode);default:return t.child.stateNode}},fn.injectIntoDevTools=function(){var t={bundleType:1,version:_a,rendererPackageName:Na,currentDispatcherRef:ce,reconcilerVersion:"19.2.0"};return Sl!==null&&(t.rendererConfig=Sl),t.overrideHookState=cD,t.overrideHookStateDeletePath=uD,t.overrideHookStateRenamePath=AD,t.overrideProps=dD,t.overridePropsDeletePath=fD,t.overridePropsRenamePath=gD,t.scheduleUpdate=pD,t.scheduleRetry=mD,t.setErrorHandler=hD,t.setSuspenseHandler=ED,t.scheduleRefresh=b,t.scheduleRoot=v,t.setRefreshHandler=N,t.getCurrentFiber=ap,se(t)},fn.isAlreadyRendering=Wd,fn.observeVisibleRects=function(t,n,l,d){function p(){var q=Xg(t,n);h.forEach(function(fe){0>q.indexOf(fe)&&U(fe)}),q.forEach(function(fe){0>h.indexOf(fe)&&Q(fe)})}if(i(p,"commitHook"),!ss)throw Error("Test selector API is not supported by this renderer.");var h=Xg(t,n);l=Ua(h,l,d);var B=l.disconnect,Q=l.observe,U=l.unobserve;return eB.push(p),{disconnect:i(function(){var q=eB.indexOf(p);0<=q&&eB.splice(q,1),B()},"disconnect")}},fn.shouldError=function(t){return E(t)},fn.shouldSuspend=function(t){return m(t)},fn.startHostTransition=function(t,n,l,d){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var p=Qh(t).queue;Mn(t),bi(t,p,n,Oa,l===null?D:function(){ce.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var h=Qh(t);return h.next===null&&(h=t.alternate.memoizedState),tA(t,h.next.queue,{},ca(t)),l(d)})},fn.updateContainer=function(t,n,l,d){var p=n.current,h=ca(p);return tf(p,h,t,n,l,d),h},fn.updateContainerSync=II,fn},EC.exports.default=EC.exports,Object.defineProperty(EC.exports,"__esModule",{value:!0}))});var eM=Yn((zZ,Zb)=>{"use strict";process.env.NODE_ENV==="production"?Zb.exports=WN():Zb.exports=$N()});function CC(e){let o=0;for(let r of e.split(`
252
+ `))o=Math.max(o,Ot(r));return o}var Wb=L(()=>{Ea();i(CC,"widestLine")});var tM,E5,$b,nM=L(()=>{Wb();tM=new Map,E5=i(e=>{if(e.length===0)return{width:0,height:0};let o=tM.get(e);if(o)return o;let r=CC(e),c=e.split(`
253
+ `).length,u={width:r,height:c};return tM.set(e,u),u},"measureText"),$b=E5});function Mm(e){return Number.isInteger(e)?oC(e)||rC(e):!1}var e1=L(()=>{WQ();i(Mm,"isFullwidthCodePoint")});function P5(e){return e>=b5&&e<=R5||e===w5||e===x5}function J5(e){return e>=D5&&e<=T5}function j5(e){return e>=_5&&e<=N5}function V5(e){return e>=M5&&e<=O5}function X5(e){return e>=H5&&e<=k5}function Ul(e,o){return{token:{type:"control",code:e},endIndex:o}}function Z5(e){if(q5.test(e))return!0;for(let o of e){let r=o.codePointAt(0);if(r===K5||r===Y5)return!0}return!1}function mM(e){let o=0;for(let r of e){let c=r.codePointAt(0);if(Mm(c))return 2;X5(c)&&o++}return o>=1||Z5(e)?2:1}function W5(e){return e.startsWith("\x9B")?"\x9B":`${Om}${s1}`}function yC(e,o){return`${e}${o.join(";")}${fM}`}function $5(e){let o=[],r=W5(e),c;if(e.startsWith(`${Om}${s1}`))c=e.slice(2,-1);else if(e.startsWith("\x9B"))c=e.slice(1,-1);else return o;let u=c.length===0?[String(oM)]:c.split(";"),f=0;for(;f<u.length;){let m=Number.parseInt(u[f],10);if(Number.isNaN(m)){f++;continue}if(m===oM){o.push({type:"reset"}),f++;continue}if(m===c0||m===U5){let v=Number.parseInt(u[f+1],10);if(v===L5&&f+F5<u.length){let N=yC(r,u.slice(f,f+rM));o.push({type:"start",code:N,endCode:Qo.color.ansi(m===c0?t1:n1)}),f+=rM;continue}if(v===G5&&f+z5<u.length){let N=yC(r,u.slice(f,f+iM));o.push({type:"start",code:N,endCode:Qo.color.ansi(m===c0?t1:n1)}),f+=iM;continue}let b=yC(r,[u[f]]);o.push({type:"start",code:b,endCode:Qo.color.ansi(m===c0?t1:n1)}),f++;continue}if(pM.has(m)){o.push({type:"end",endCode:Qo.color.ansi(m)}),f++;continue}let E=Qo.codes.get(m);if(E!==void 0){let v=yC(r,[u[f]]);o.push({type:"start",code:v,endCode:Qo.color.ansi(E)}),f++;continue}let S=yC(r,[u[f]]);o.push({type:"start",code:S,endCode:Qo.reset.open}),f++}return o.length===0&&o.push({type:"reset"}),o}function ez(e,o){let r=e.codePointAt(o),c;if(r===IC){if(e[o+1]!==s1)return;c=o+2}else if(r===lM)c=o+1;else return;let u=!0;for(let f=c;f<e.length;f++){let m=e.codePointAt(f);if(V5(m)){let S=e.slice(o,f+1);return e[f]!==fM||!u?Ul(S,f+1):{token:{type:"sgr",code:S,fragments:$5(S)},endIndex:f+1}}if(J5(m)){P5(m)||(u=!1);continue}if(j5(m)){u=!1;continue}let E=f;return Ul(e.slice(o,E),E)}return Ul(e.slice(o),e.length)}function tz(e,o){let r,c,u=e.codePointAt(o);if(u===IC&&e.startsWith(i1,o))r=i1,c=v5;else if(u===d0&&e.startsWith(a1,o))r=a1,c=Q5;else return;let f=e.indexOf(";",o+r.length);if(f===-1)return Ul(e.slice(o),e.length);for(let m=f+1;m<e.length;m++){let E=e[m];if(E===r1){let S=e.slice(o,m+1),v=m===f+1?"close":"open";return{token:{type:"hyperlink",code:S,action:v,closePrefix:c,terminator:r1},endIndex:m+1}}if(E===Om&&e[m+1]===u0){let S=e.slice(o,m+2),v=m===f+1?"close":"open";return{token:{type:"hyperlink",code:S,action:v,closePrefix:c,terminator:gM},endIndex:m+2}}if(E===A0){let S=e.slice(o,m+1),v=m===f+1?"close":"open";return{token:{type:"hyperlink",code:S,action:v,closePrefix:c,terminator:A0},endIndex:m+1}}}return Ul(e.slice(o),e.length)}function nz(e,o){let r=e.codePointAt(o),c,u=!1;switch(r){case IC:{switch(e[o+1]){case dM:{c=o+2,u=!0;break}case C5:case y5:case I5:case B5:{c=o+2;break}case u0:return Ul(gM,o+2);default:return}break}case d0:{c=o+1,u=!0;break}case aM:case sM:case uM:case AM:{c=o+1;break}case cM:return Ul(A0,o+1);default:return}for(let f=c;f<e.length;f++){if(u&&e[f]===r1)return Ul(e.slice(o,f+1),f+1);if(e[f]===Om&&e[f+1]===u0)return Ul(e.slice(o,f+2),f+2);if(e[f]===A0)return Ul(e.slice(o,f+1),f+1)}return Ul(e.slice(o),e.length)}function SC(e,o){let r=e.codePointAt(o);if(r===IC||r===d0){let u=tz(e,o);if(u)return u}let c=nz(e,o);return c||ez(e,o)}function hM(e,o,r){for(;o<e.length;){let c=e.codePointAt(o);if(!BC.has(c))break;let u=SC(e,o);if(!u)break;r.push(u.token),o=u.endIndex}return o}function EM(e,o,r){let c=r.containing(o);if(!(!c||c.index!==o))return{token:{type:"character",value:c.segment,visibleWidth:mM(c.segment),isGraphemeContinuation:!1},endIndex:o+c.segment.length}}function oz(e){let o=[],r=0;for(;r<e.length;){let c=e.codePointAt(r);if(BC.has(c)){let f=SC(e,r);if(f){r=f.endIndex;continue}}let u=String.fromCodePoint(c);o.push({value:u,visibleWidth:1,isGraphemeContinuation:!1}),r+=u.length}return o}function rz(e){if(e.length===0)return;let o=e.map(({value:f})=>f).join(""),r=[],c=0;for(let f of e)r.push(c),c+=f.value.length;let u=0;for(let f of l1.segment(o)){for(;u<e.length&&r[u]<f.index;)u++;let m=u,E=!0;for(;m<e.length&&r[m]<f.index+f.segment.length;)e[m].visibleWidth=E?mM(f.segment):0,e[m].isGraphemeContinuation=!E,E=!1,m++;u=m}}function o1(e,{endCharacter:o=Number.POSITIVE_INFINITY}={}){let r=[],c=oz(e);rz(c);let u=0,f=0,m=0;for(;u<e.length;){let E=e.codePointAt(u);if(BC.has(E)){let R=SC(e,u);if(R){r.push(R.token),u=R.endIndex;continue}}let S=String.fromCodePoint(E),v=c[f],b=Mm(E)?2:S.length;v&&(b=v.visibleWidth);let N={type:"character",value:S,visibleWidth:b,isGraphemeContinuation:v?v.isGraphemeContinuation:!1};if(r.push(N),u+=S.length,f++,m+=N.visibleWidth,m>=o){let R=c[f];if(!R||!R.isGraphemeContinuation){u=hM(e,u,r);break}}}return r}function CM(e,o){let r=`${e}${o}`,c=e.length;for(let u of l1.segment(r)){if(u.index===c)return!1;if(u.index>c)return!0}return!0}function iz(e,o,r,c){if(!r)return!1;let u=o,f=!1;for(;u<e.length;){let m=e.codePointAt(u);if(BC.has(m)){let S=SC(e,u);if(S){f=!0,u=S.endIndex;continue}}if(!f)return!1;let E=EM(e,u,c);return E?CM(r,E.token.value):!0}return!1}function c1(e,{endCharacter:o=Number.POSITIVE_INFINITY}={}){let r=[],c=l1.segment(e),u=0,f=0,m,E=!1;for(;u<e.length;){let S=e.codePointAt(u);if(BC.has(S)){let b=SC(e,u);if(b){r.push(b.token),u=b.endIndex,E=!0;continue}}let v=EM(e,u,c);if(!v)return o1(e,{endCharacter:o});if(E&&m&&CM(m,v.token.value))return o1(e,{endCharacter:o});if(r.push(v.token),u=v.endIndex,f+=v.token.visibleWidth,E=!1,m=v.token.value,f>=o){if(iz(e,u,m,c))return o1(e,{endCharacter:o});u=hM(e,u,r);break}}return r}var IC,aM,sM,lM,cM,d0,uM,AM,BC,Om,r1,s1,dM,C5,y5,I5,B5,fM,u0,gM,S5,A0,i1,a1,v5,Q5,b5,R5,w5,x5,D5,T5,_5,N5,M5,O5,H5,k5,oM,c0,t1,U5,n1,L5,G5,rM,iM,F5,z5,K5,Y5,q5,l1,pM,yM=L(()=>{uC();e1();IC=27,aM=144,sM=152,lM=155,cM=156,d0=157,uM=158,AM=159,BC=new Set([IC,aM,sM,lM,cM,d0,uM,AM]),Om="\x1B",r1="\x07",s1="[",dM="]",C5="P",y5="X",I5="^",B5="_",fM="m",u0="\\",gM=`${Om}${u0}`,S5="\x9D",A0="\x9C",i1=`${Om}${dM}8;`,a1=`${S5}8;`,v5=`${i1};`,Q5=`${a1};`,b5="0".codePointAt(0),R5="9".codePointAt(0),w5=";".codePointAt(0),x5=":".codePointAt(0),D5="0".codePointAt(0),T5="?".codePointAt(0),_5=" ".codePointAt(0),N5="/".codePointAt(0),M5="@".codePointAt(0),O5="~".codePointAt(0),H5=127462,k5=127487,oM=0,c0=38,t1=39,U5=48,n1=49,L5=5,G5=2,rM=3,iM=5,F5=2,z5=4,K5=65039,Y5=8419,q5=new RegExp("\\p{Emoji_Presentation}","v"),l1=new Intl.Segmenter(void 0,{granularity:"grapheme"}),pM=new Set;for(let[,e]of Qo.codes)pM.add(e);i(P5,"isSgrParameterCharacter");i(J5,"isCsiParameterCharacter");i(j5,"isCsiIntermediateCharacter");i(V5,"isCsiFinalCharacter");i(X5,"isRegionalIndicatorCodePoint");i(Ul,"createControlParseResult");i(Z5,"isEmojiStyleGrapheme");i(mM,"getGraphemeWidth");i(W5,"getSgrPrefix");i(yC,"createSgrCode");i($5,"getSgrFragments");i(ez,"parseCsiCode");i(tz,"parseHyperlinkCode");i(nz,"parseControlStringCode");i(SC,"parseAnsiCode");i(hM,"appendTrailingAnsiTokens");i(EM,"parseCharacterTokenWithRawSegmentation");i(oz,"collectVisibleCharacters");i(rz,"applyGraphemeMetadata");i(o1,"tokenizeAnsiWithVisibleSegmentation");i(CM,"areValuesInSameGrapheme");i(iz,"hasAnsiSplitContinuationAhead");i(c1,"tokenizeAnsi")});function az(e,o){for(let r of o)switch(r.type){case"reset":{e.clear();break}case"end":{e.delete(r.endCode);break}case"start":{e.delete(r.endCode),e.set(r.endCode,r.code);break}default:break}return e}function sz(e){return[...e.keys()].toReversed().join("")}function lz(e){return`${e.closePrefix}${e.terminator}`}function cz(e,o){let r=!1,c=!1;for(let u of e.fragments){if(u.type==="start"){r=!0;continue}if(u.type==="reset"&&o.size>0){c=!0;continue}u.type==="end"&&o.has(u.endCode)&&(c=!0)}return c&&!r}function uz(e){return e.fragments.some(o=>o.type==="start")}function u1(e){if(e.activeHyperlink&&!e.activeHyperlinkHasVisibleText&&e.activeHyperlinkOutputIndex!==void 0){let o=e.activeHyperlink.code.length;e.returnValue=e.returnValue.slice(0,e.activeHyperlinkOutputIndex)+e.returnValue.slice(e.activeHyperlinkOutputIndex+o),e.pendingSgrOutputIndex!==void 0&&e.pendingSgrOutputIndex>e.activeHyperlinkOutputIndex&&(e.pendingSgrOutputIndex-=o)}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}function IM(e){e.activeHyperlinkHasVisibleText?e.returnValue+=lz(e.activeHyperlink):u1(e)}function Az(e){e.isPastEnd&&!cz(e.token,e.activeStyles)||(e.include&&uz(e.token)&&e.pendingSgrOutputIndex===void 0&&(e.pendingSgrOutputIndex=e.returnValue.length,e.pendingSgrActiveStyles=new Map(e.activeStyles)),e.activeStyles=az(e.activeStyles,e.token.fragments),e.include&&(e.returnValue+=e.token.code))}function dz(e){if(!(e.isPastEnd&&(e.token.action!=="close"||!e.activeHyperlink))){if(e.token.action==="open")e.activeHyperlink&&IM(e),e.activeHyperlink=e.token,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0,e.include&&(e.activeHyperlinkOutputIndex=e.returnValue.length);else if(e.token.action==="close"){if(e.include&&e.activeHyperlink&&!e.activeHyperlinkHasVisibleText){u1(e);return}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}e.include&&(e.returnValue+=e.token.code)}}function fz(e){!e.isPastEnd&&e.include&&(e.returnValue+=e.token.code)}function gz(e){!e.include&&e.position>=e.start&&!e.token.isGraphemeContinuation&&(e.include=!0,e.returnValue=[...e.activeStyles.values()].join(""),e.activeHyperlink&&(e.activeHyperlinkOutputIndex=e.returnValue.length,e.returnValue+=e.activeHyperlink.code)),e.include&&(e.returnValue+=e.token.value,e.pendingSgrOutputIndex=void 0,e.pendingSgrActiveStyles=void 0,e.activeHyperlink&&(e.activeHyperlinkHasVisibleText=!0)),e.position+=e.token.visibleWidth}function mz(e){pz[e.token.type]?.(e)}function hz(e){let o=Array.from({length:e.length},()=>!1),r=!1;for(let c=e.length-1;c>=0;c--){let u=e[c];o[c]=r,u.type==="character"&&(r=!!u.isGraphemeContinuation)}return o}function Ez(e,o,r){return r===void 0?!1:o>=r?!0:e.type==="character"&&!e.isGraphemeContinuation&&o+e.visibleWidth>r}function el(e,o,r){let c=c1(e,{endCharacter:r}),u=hz(c),f={start:o,token:void 0,isPastEnd:!1,activeStyles:new Map,activeHyperlink:void 0,activeHyperlinkHasVisibleText:!1,activeHyperlinkOutputIndex:void 0,pendingSgrOutputIndex:void 0,pendingSgrActiveStyles:void 0,position:0,returnValue:"",include:!1};for(let[m,E]of c.entries()){let S=Ez(E,f.position,r);if(S&&E.type!=="character"&&u[m]&&(S=!1),S&&E.type==="character"&&!E.isGraphemeContinuation){f.activeHyperlink&&!f.activeHyperlinkHasVisibleText&&u1(f),f.pendingSgrOutputIndex!==void 0&&(f.returnValue=f.returnValue.slice(0,f.pendingSgrOutputIndex),f.activeStyles=f.pendingSgrActiveStyles,f.pendingSgrOutputIndex=void 0,f.pendingSgrActiveStyles=void 0);break}f.token=E,f.isPastEnd=S,mz(f)}return f.include?(f.activeHyperlink&&IM(f),f.returnValue+=sz(f.activeStyles),f.returnValue):""}var pz,A1=L(()=>{yM();i(az,"applySgrFragments");i(sz,"undoAnsiCodes");i(lz,"closeHyperlink");i(cz,"shouldIncludeSgrAfterEnd");i(uz,"hasSgrStartFragment");i(u1,"discardPendingHyperlink");i(IM,"settleActiveHyperlink");i(Az,"applySgrToken");i(dz,"applyHyperlinkToken");i(fz,"applyControlToken");i(gz,"applyCharacterToken");pz={sgr:Az,hyperlink:dz,control:fz,character:gz};i(mz,"applyToken");i(hz,"createHasContinuationAheadMap");i(Ez,"isPastEndBoundary");i(el,"sliceAnsi")});function f0(e,o,r){if(e.charAt(o)===" ")return o;let c=r?1:-1;for(let u=0;u<=3;u++){let f=o+u*c;if(e.charAt(f)===" ")return f}return o}function yz(e,o,r,c){if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof o!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof o}`);if(!Number.isFinite(o))throw new TypeError(`Expected \`columns\` to be a finite number, got ${o}`);if(!Cz.has(r))throw new TypeError(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`);if(typeof c!="string")throw new TypeError(`Expected \`options.truncationCharacter\` to be a string, got ${typeof c}`)}function d1(e,o,r={}){let{position:c="end",space:u=!1,preferTruncationOnSpace:f=!1}=r,{truncationCharacter:m="\u2026"}=r;if(yz(e,o,c,m),o<1)return"";let E=Ot(e);if(E<=o)return e;if(o===1)return m;let S={ESC:27,LEFT_BRACKET:91,LETTER_M:109},v=i(D=>D>=48&&D<=57||D===59,"isSgrParameter");function b(D){let k=0;for(;k+2<D.length&&D.codePointAt(k)===S.ESC&&D.codePointAt(k+1)===S.LEFT_BRACKET;){let H=k+2;for(;H<D.length&&v(D.codePointAt(H));)H++;if(H<D.length&&D.codePointAt(H)===S.LETTER_M){k=H+1;continue}break}return k}i(b,"leadingSgrSpanEndIndex");function N(D){let k=D.length;for(;k>1&&D.codePointAt(k-1)===S.LETTER_M;){let H=k-2;for(;H>=0&&v(D.codePointAt(H));)H--;if(H>=1&&D.codePointAt(H-1)===S.ESC&&D.codePointAt(H)===S.LEFT_BRACKET){k=H-1;continue}break}return k}i(N,"trailingSgrSpanStartIndex");function R(D,k){let H=N(D);return H===D.length?D+k:D.slice(0,H)+k+D.slice(H)}i(R,"appendWithInheritedStyleFromEnd");function M(D,k){let H=b(k);return H===0?D+k:k.slice(0,H)+D+k.slice(H)}if(i(M,"prependWithInheritedStyleFromStart"),c==="start"){if(f){let k=f0(e,E-o+Ot(m),!0),H=el(e,k,E).trim();return M(m,H)}u&&(m+=" ");let D=el(e,E-o+Ot(m),E);return M(m,D)}if(c==="middle"){u&&(m=` ${m} `,Ot(m)>=o&&(m=m.trim()));let D=Ot(m),k=Math.min(Math.floor(o/2),Math.max(0,o-D));if(f){let H=f0(e,k),$=f0(e,E-(o-k)+D,!0);return el(e,0,H)+m+el(e,$,E).trim()}return el(e,0,k)+m+el(e,E-(o-k)+D,E)}if(c==="end"){if(f){let k=f0(e,o-Ot(m)),H=el(e,0,k);return R(H,m)}u&&(m=` ${m}`);let D=el(e,0,o-Ot(m));return R(D,m)}}var Cz,BM=L(()=>{A1();Ea();Cz=new Set(["start","middle","end"]);i(f0,"getIndexOfNearestSpace");i(yz,"validateInput");i(d1,"cliTruncate")});var SM,Iz,g0,f1=L(()=>{dC();BM();SM={},Iz=i((e,o,r)=>{let c=e+String(o)+String(r),u=SM[c];if(u)return u;let f=e;if(r==="wrap"&&(f=Ws(e,o,{trim:!1,hard:!0})),r==="hard"&&(f=Ws(e,o,{trim:!1,hard:!0,wordWrap:!1})),r.startsWith("truncate")){let m="end";r==="truncate-middle"&&(m="middle"),r==="truncate-start"&&(m="start"),f=d1(e,o,{position:m})}return SM[c]=f,f},"wrapText"),g0=Iz});var Bz,Sz,vz,bM,Qz,RM,vM,QM,bz,Rz,wz,g1,Hm,wM,xM=L(()=>{Bz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=48&&o<=63},"isCsiParameterCharacter"),Sz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=32&&o<=47},"isCsiIntermediateCharacter"),vz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=64&&o<=126},"isCsiFinalCharacter"),bM=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=32&&o<=47},"isEscapeIntermediateCharacter"),Qz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=48&&o<=126},"isEscapeFinalCharacter"),RM=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=128&&o<=159},"isC1ControlCharacter"),vM=i((e,o)=>{let r=o;for(;r<e.length;){let E=e[r];if(!Bz(E))break;r++}let c=e.slice(o,r),u=r;for(;r<e.length;){let E=e[r];if(!Sz(E))break;r++}let f=e.slice(u,r),m=e[r];if(!(m===void 0||!vz(m)))return{endIndex:r+1,parameterString:c,intermediateString:f,finalCharacter:m}},"readCsiSequence"),QM=i((e,o,r)=>{for(let c=o;c<e.length;c++){let u=e[c];if(r&&u==="\x07"||u==="\x9C")return c+1;if(u==="\x1B"){let f=e[c+1];if(f==="\x1B"){c++;continue}if(f==="\\")return c+2}}},"findControlStringTerminatorIndex"),bz=i((e,o)=>{let r=o;for(;r<e.length;){let f=e[r];if(!bM(f))break;r++}let c=e.slice(o,r),u=e[r];if(!(u===void 0||!Qz(u)))return{endIndex:r+1,intermediateString:c,finalCharacter:u}},"readEscapeSequence"),Rz=i(e=>{switch(e){case"]":return{type:"osc",allowBellTerminator:!0};case"P":return{type:"dcs",allowBellTerminator:!1};case"^":return{type:"pm",allowBellTerminator:!1};case"_":return{type:"apc",allowBellTerminator:!1};case"X":return{type:"sos",allowBellTerminator:!1};default:return}},"getControlStringFromEscapeIntroducer"),wz=i(e=>{switch(e){case"\x9D":return{type:"osc",allowBellTerminator:!0};case"\x90":return{type:"dcs",allowBellTerminator:!1};case"\x9E":return{type:"pm",allowBellTerminator:!1};case"\x9F":return{type:"apc",allowBellTerminator:!1};case"\x98":return{type:"sos",allowBellTerminator:!1};default:return}},"getControlStringFromC1Introducer"),g1=i(e=>{if(e.includes("\x1B"))return!0;for(let o of e)if(RM(o))return!0;return!1},"hasAnsiControlCharacters"),Hm=i((e,o,r,c)=>(c>r&&e.push({type:"text",value:o.slice(r,c)}),e.push({type:"invalid",value:o.slice(c)}),e),"malformedFromIndex"),wM=i(e=>{if(!g1(e))return[{type:"text",value:e}];let o=[],r=0;for(let c=0;c<e.length;){let u=e[c];if(u===void 0)break;if(u==="\x1B"){let m=e[c+1];if(m===void 0)return Hm(o,e,r,c);if(m==="["){let v=vM(e,c+2);if(v===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"csi",value:e.slice(c,v.endIndex),parameterString:v.parameterString,intermediateString:v.intermediateString,finalCharacter:v.finalCharacter}),c=v.endIndex,r=c;continue}let E=Rz(m);if(E!==void 0){let v=QM(e,c+2,E.allowBellTerminator);if(v===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:E.type,value:e.slice(c,v)}),c=v,r=c;continue}let S=bz(e,c+1);if(S===void 0){if(bM(m))return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),c++,r=c;continue}c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"esc",value:e.slice(c,S.endIndex),intermediateString:S.intermediateString,finalCharacter:S.finalCharacter}),c=S.endIndex,r=c;continue}if(u==="\x9B"){let m=vM(e,c+1);if(m===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"csi",value:e.slice(c,m.endIndex),parameterString:m.parameterString,intermediateString:m.intermediateString,finalCharacter:m.finalCharacter}),c=m.endIndex,r=c;continue}let f=wz(u);if(f!==void 0){let m=QM(e,c+1,f.allowBellTerminator);if(m===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:f.type,value:e.slice(c,m)}),c=m,r=c;continue}if(u==="\x9C"){c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"st",value:u}),c++,r=c;continue}if(RM(u)){c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"c1",value:u}),c++,r=c;continue}c++}return r<e.length&&o.push({type:"text",value:e.slice(r)}),o},"tokenizeAnsi")});var xz,Dz,DM,TM=L(()=>{xM();xz=/^[\d:;]*$/,Dz=i(e=>{if(!g1(e))return e;let o="";for(let r of wM(e)){if(r.type==="text"||r.type==="osc"){o+=r.value;continue}r.type==="csi"&&r.finalCharacter==="m"&&r.intermediateString===""&&xz.test(r.parameterString)&&(o+=r.value)}return o},"sanitizeAnsi"),DM=Dz});var _M,vC,p1=L(()=>{TM();_M=i(e=>{let o="";for(let r=0;r<e.childNodes.length;r++){let c=e.childNodes[r];if(c===void 0)continue;let u="";c.nodeName==="#text"?u=c.nodeValue:((c.nodeName==="ink-text"||c.nodeName==="ink-virtual-text")&&(u=_M(c)),u.length>0&&typeof c.internal_transform=="function"&&(u=c.internal_transform(u,r))),o+=u}return DM(o)},"squashTextNodes"),vC=_M});var km,p0,m1,QC,h1,E1,NM,Tz,MM,m0,bC,OM,h0,RC=L(async()=>{await XA();nM();f1();p1();km=i(e=>{let o={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e==="ink-virtual-text"?void 0:st.Node.create(),internal_accessibility:{}};return e==="ink-text"&&o.yogaNode?.setMeasureFunc(Tz.bind(null,o)),o},"createNode"),p0=i((e,o)=>{o.parentNode&&QC(o.parentNode,o),o.parentNode=e,e.childNodes.push(o),o.yogaNode&&e.yogaNode?.insertChild(o.yogaNode,e.yogaNode.getChildCount()),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&m0(e)},"appendChildNode"),m1=i((e,o,r)=>{o.parentNode&&QC(o.parentNode,o),o.parentNode=e;let c=e.childNodes.indexOf(r);c>=0?(e.childNodes.splice(c,0,o),o.yogaNode&&e.yogaNode?.insertChild(o.yogaNode,c)):(e.childNodes.push(o),o.yogaNode&&e.yogaNode?.insertChild(o.yogaNode,e.yogaNode.getChildCount())),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&m0(e)},"insertBeforeNode"),QC=i((e,o)=>{o.yogaNode&&o.parentNode?.yogaNode?.removeChild(o.yogaNode),o.parentNode=void 0;let r=e.childNodes.indexOf(o);r>=0&&e.childNodes.splice(r,1),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&m0(e)},"removeChildNode"),h1=i((e,o,r)=>{if(o==="internal_accessibility"){e.internal_accessibility=r;return}e.attributes[o]=r},"setAttribute"),E1=i((e,o)=>{e.style=o??{}},"setStyle"),NM=i(e=>{let o={nodeName:"#text",nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return bC(o,e),o},"createTextNode"),Tz=i(function(e,o){let r=e.nodeName==="#text"?e.nodeValue:vC(e),c=$b(r);if(c.width<=o||c.width>=1&&o>0&&o<1)return c;let u=e.style?.textWrap??"wrap",f=g0(r,o,u);return $b(f)},"measureTextNode"),MM=i(e=>{if(e?.parentNode)return e.yogaNode??MM(e.parentNode)},"findClosestYogaNode"),m0=i(e=>{MM(e)?.markDirty()},"markNodeAsDirty"),bC=i((e,o)=>{typeof o!="string"&&(o=String(o)),e.nodeValue=o,m0(e)},"setTextNodeValue"),OM=i((e,o)=>e.nodeName!=="ink-root"?()=>{}:(e.internal_layoutListeners??=new Set,e.internal_layoutListeners.add(o),()=>{e.internal_layoutListeners?.delete(o)}),"addLayoutListener"),h0=i(e=>{if(!(e.nodeName!=="ink-root"||!e.internal_layoutListeners))for(let o of e.internal_layoutListeners)o()},"emitLayoutListeners")});var Nz,Mz,Oz,Hz,kz,Uz,Lz,Gz,Fz,zz,C1,HM=L(async()=>{await XA();Nz=[["top",st.EDGE_TOP],["right",st.EDGE_RIGHT],["bottom",st.EDGE_BOTTOM],["left",st.EDGE_LEFT]],Mz=i((e,o)=>{if("position"in o){let r=st.POSITION_TYPE_RELATIVE;o.position==="absolute"?r=st.POSITION_TYPE_ABSOLUTE:o.position==="static"&&(r=st.POSITION_TYPE_STATIC),e.setPositionType(r)}for(let[r,c]of Nz){if(!(r in o))continue;let u=o[r];if(typeof u=="string"){e.setPositionPercent(c,Number.parseFloat(u));continue}e.setPosition(c,u)}},"applyPositionStyles"),Oz=i((e,o)=>{"margin"in o&&e.setMargin(st.EDGE_ALL,o.margin??0),"marginX"in o&&e.setMargin(st.EDGE_HORIZONTAL,o.marginX??0),"marginY"in o&&e.setMargin(st.EDGE_VERTICAL,o.marginY??0),"marginLeft"in o&&e.setMargin(st.EDGE_START,o.marginLeft??0),"marginRight"in o&&e.setMargin(st.EDGE_END,o.marginRight??0),"marginTop"in o&&e.setMargin(st.EDGE_TOP,o.marginTop??0),"marginBottom"in o&&e.setMargin(st.EDGE_BOTTOM,o.marginBottom??0)},"applyMarginStyles"),Hz=i((e,o)=>{"padding"in o&&e.setPadding(st.EDGE_ALL,o.padding??0),"paddingX"in o&&e.setPadding(st.EDGE_HORIZONTAL,o.paddingX??0),"paddingY"in o&&e.setPadding(st.EDGE_VERTICAL,o.paddingY??0),"paddingLeft"in o&&e.setPadding(st.EDGE_LEFT,o.paddingLeft??0),"paddingRight"in o&&e.setPadding(st.EDGE_RIGHT,o.paddingRight??0),"paddingTop"in o&&e.setPadding(st.EDGE_TOP,o.paddingTop??0),"paddingBottom"in o&&e.setPadding(st.EDGE_BOTTOM,o.paddingBottom??0)},"applyPaddingStyles"),kz=i((e,o)=>{"flexGrow"in o&&e.setFlexGrow(o.flexGrow??0),"flexShrink"in o&&e.setFlexShrink(typeof o.flexShrink=="number"?o.flexShrink:1),"flexWrap"in o&&(o.flexWrap==="nowrap"&&e.setFlexWrap(st.WRAP_NO_WRAP),o.flexWrap==="wrap"&&e.setFlexWrap(st.WRAP_WRAP),o.flexWrap==="wrap-reverse"&&e.setFlexWrap(st.WRAP_WRAP_REVERSE)),"flexDirection"in o&&(o.flexDirection==="row"&&e.setFlexDirection(st.FLEX_DIRECTION_ROW),o.flexDirection==="row-reverse"&&e.setFlexDirection(st.FLEX_DIRECTION_ROW_REVERSE),o.flexDirection==="column"&&e.setFlexDirection(st.FLEX_DIRECTION_COLUMN),o.flexDirection==="column-reverse"&&e.setFlexDirection(st.FLEX_DIRECTION_COLUMN_REVERSE)),"flexBasis"in o&&(typeof o.flexBasis=="number"?e.setFlexBasis(o.flexBasis):typeof o.flexBasis=="string"?e.setFlexBasisPercent(Number.parseInt(o.flexBasis,10)):e.setFlexBasisAuto()),"alignItems"in o&&((o.alignItems==="stretch"||!o.alignItems)&&e.setAlignItems(st.ALIGN_STRETCH),o.alignItems==="flex-start"&&e.setAlignItems(st.ALIGN_FLEX_START),o.alignItems==="center"&&e.setAlignItems(st.ALIGN_CENTER),o.alignItems==="flex-end"&&e.setAlignItems(st.ALIGN_FLEX_END),o.alignItems==="baseline"&&e.setAlignItems(st.ALIGN_BASELINE)),"alignSelf"in o&&((o.alignSelf==="auto"||!o.alignSelf)&&e.setAlignSelf(st.ALIGN_AUTO),o.alignSelf==="flex-start"&&e.setAlignSelf(st.ALIGN_FLEX_START),o.alignSelf==="center"&&e.setAlignSelf(st.ALIGN_CENTER),o.alignSelf==="flex-end"&&e.setAlignSelf(st.ALIGN_FLEX_END),o.alignSelf==="stretch"&&e.setAlignSelf(st.ALIGN_STRETCH),o.alignSelf==="baseline"&&e.setAlignSelf(st.ALIGN_BASELINE)),"alignContent"in o&&((o.alignContent==="flex-start"||!o.alignContent)&&e.setAlignContent(st.ALIGN_FLEX_START),o.alignContent==="center"&&e.setAlignContent(st.ALIGN_CENTER),o.alignContent==="flex-end"&&e.setAlignContent(st.ALIGN_FLEX_END),o.alignContent==="space-between"&&e.setAlignContent(st.ALIGN_SPACE_BETWEEN),o.alignContent==="space-around"&&e.setAlignContent(st.ALIGN_SPACE_AROUND),o.alignContent==="space-evenly"&&e.setAlignContent(st.ALIGN_SPACE_EVENLY),o.alignContent==="stretch"&&e.setAlignContent(st.ALIGN_STRETCH)),"justifyContent"in o&&((o.justifyContent==="flex-start"||!o.justifyContent)&&e.setJustifyContent(st.JUSTIFY_FLEX_START),o.justifyContent==="center"&&e.setJustifyContent(st.JUSTIFY_CENTER),o.justifyContent==="flex-end"&&e.setJustifyContent(st.JUSTIFY_FLEX_END),o.justifyContent==="space-between"&&e.setJustifyContent(st.JUSTIFY_SPACE_BETWEEN),o.justifyContent==="space-around"&&e.setJustifyContent(st.JUSTIFY_SPACE_AROUND),o.justifyContent==="space-evenly"&&e.setJustifyContent(st.JUSTIFY_SPACE_EVENLY))},"applyFlexStyles"),Uz=i((e,o)=>{"width"in o&&(typeof o.width=="number"?e.setWidth(o.width):typeof o.width=="string"?e.setWidthPercent(Number.parseInt(o.width,10)):e.setWidthAuto()),"height"in o&&(typeof o.height=="number"?e.setHeight(o.height):typeof o.height=="string"?e.setHeightPercent(Number.parseInt(o.height,10)):e.setHeightAuto()),"minWidth"in o&&(typeof o.minWidth=="string"?e.setMinWidthPercent(Number.parseInt(o.minWidth,10)):e.setMinWidth(o.minWidth??0)),"minHeight"in o&&(typeof o.minHeight=="string"?e.setMinHeightPercent(Number.parseInt(o.minHeight,10)):e.setMinHeight(o.minHeight??0)),"maxWidth"in o&&(typeof o.maxWidth=="string"?e.setMaxWidthPercent(Number.parseInt(o.maxWidth,10)):e.setMaxWidth(o.maxWidth)),"maxHeight"in o&&(typeof o.maxHeight=="string"?e.setMaxHeightPercent(Number.parseInt(o.maxHeight,10)):e.setMaxHeight(o.maxHeight)),"aspectRatio"in o&&e.setAspectRatio(o.aspectRatio)},"applyDimensionStyles"),Lz=i((e,o)=>{"display"in o&&e.setDisplay(o.display==="flex"?st.DISPLAY_FLEX:st.DISPLAY_NONE)},"applyDisplayStyles"),Gz=i((e,o,r)=>{if(!("borderStyle"in o||"borderTop"in o||"borderBottom"in o||"borderLeft"in o||"borderRight"in o))return;let u=r.borderStyle?1:0;e.setBorder(st.EDGE_TOP,r.borderTop===!1?0:u),e.setBorder(st.EDGE_BOTTOM,r.borderBottom===!1?0:u),e.setBorder(st.EDGE_LEFT,r.borderLeft===!1?0:u),e.setBorder(st.EDGE_RIGHT,r.borderRight===!1?0:u)},"applyBorderStyles"),Fz=i((e,o)=>{"gap"in o&&e.setGap(st.GUTTER_ALL,o.gap??0),"columnGap"in o&&e.setGap(st.GUTTER_COLUMN,o.columnGap??0),"rowGap"in o&&e.setGap(st.GUTTER_ROW,o.rowGap??0)},"applyGapStyles"),zz=i((e,o={},r=o)=>{Mz(e,o),Oz(e,o),Hz(e,o),kz(e,o),Uz(e,o),Lz(e,o),Gz(e,o,r),Fz(e,o)},"styles"),C1=zz});var E0,kM=L(()=>{kB();E0=globalThis;E0.WebSocket||=tC;E0.window||=globalThis;E0.self||=globalThis;E0.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}]});var y1,UM=L(()=>{"use strict";y1={initialize:i(()=>{},"initialize"),connectToDevTools:i(()=>{},"connectToDevTools")}});var Yz={};var Kz,LM=L(async()=>{kM();kB();UM();Kz=i(async()=>new Promise(e=>{let o=new tC("ws://localhost:8097"),r=setTimeout(()=>{o.terminate(),e(!1)},2e3);r.unref(),o.on("open",()=>{clearTimeout(r),o.terminate(),e(!0)}),o.on("error",()=>{clearTimeout(r),o.terminate(),e(!1)})}),"isDevToolsReachable");await Kz()?(y1.initialize(),y1.connectToDevTools()):console.warn(`DEV is set to true, but the React DevTools server is not running. Start it with:
254
+
255
+ $ npx react-devtools
256
+ `)});import zM from"node:process";async function qz(){let o=(await import("node:fs")).readFileSync(new URL("../package.json",import.meta.url),"utf8"),r=JSON.parse(o);return{name:r?.name,version:r?.version}}var KM,xC,WA,y0,GM,FM,C0,qf,wC,Er,DC=L(async()=>{KM=Ue(eM(),1),xC=Ue($B(),1),WA=Ue(l0(),1);await XA();y0=Ue(Nt(),1);await RC();await HM();if(zM.env.DEV==="true"){let e=!1;try{import.meta.resolve("react-devtools-core"),e=!0}catch{}e&&await LM().then(()=>Yz)}GM=i((e,o)=>{if(e===o)return;if(!e)return o;let r={},c=!1;for(let u of Object.keys(e))(!o||!Object.hasOwn(o,u))&&(r[u]=void 0,c=!0);if(o)for(let u of Object.keys(o))o[u]!==e[u]&&(r[u]=o[u],c=!0);return c?r:void 0},"diff"),FM=i(e=>{e?.unsetMeasureFunc(),e?.freeRecursive()},"cleanupYogaNode"),C0=xC.NoEventPriority;i(qz,"loadPackageJson");wC={name:"ink",version:y0.version};if(zM.env.DEV==="true")try{let e=await qz();wC={name:e.name||wC.name,version:e.version||wC.version}}catch(e){console.warn("Failed to load package.json in development mode. Falling back to default renderer metadata.",e)}Er=(0,KM.default)({getRootHostContext:i(()=>({isInsideText:!1}),"getRootHostContext"),prepareForCommit:i(()=>null,"prepareForCommit"),preparePortalMount:i(()=>null,"preparePortalMount"),clearContainer:i(()=>!1,"clearContainer"),resetAfterCommit(e){if(typeof e.onComputeLayout=="function"&&e.onComputeLayout(),h0(e),e.staticNode!==e.previousStaticNode&&(e.previousStaticNode=e.staticNode,typeof e.onStaticChange=="function"&&e.onStaticChange()),e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender=="function"&&e.onImmediateRender();return}typeof e.onRender=="function"&&e.onRender()},getChildHostContext(e,o){let r=e.isInsideText,c=o==="ink-text"||o==="ink-virtual-text";return r===c?e:{isInsideText:c}},shouldSetTextContent:i(()=>!1,"shouldSetTextContent"),createInstance(e,o,r,c){if(c.isInsideText&&e==="ink-box")throw new Error("<Box> can\u2019t be nested inside <Text> component");let u=e==="ink-text"&&c.isInsideText?"ink-virtual-text":e,f=km(u);for(let[m,E]of Object.entries(o))if(m!=="children"){if(m==="style"){E1(f,E),f.yogaNode&&C1(f.yogaNode,E);continue}if(m==="internal_transform"){f.internal_transform=E;continue}if(m==="internal_static"){qf=r,f.internal_static=!0,r.isStaticDirty=!0,r.staticNode=f;continue}h1(f,m,E)}return f},createTextInstance(e,o,r){if(!r.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return NM(e)},resetTextContent(){},hideTextInstance(e){bC(e,"")},unhideTextInstance(e,o){bC(e,o)},getPublicInstance:i(e=>e,"getPublicInstance"),hideInstance(e){e.yogaNode?.setDisplay(st.DISPLAY_NONE)},unhideInstance(e){e.yogaNode?.setDisplay(st.DISPLAY_FLEX)},appendInitialChild:p0,appendChild:p0,insertBefore:m1,finalizeInitialChildren(){return!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,supportsMicrotasks:!0,scheduleMicrotask:queueMicrotask,scheduleCallback:WA.unstable_scheduleCallback,cancelCallback:WA.unstable_cancelCallback,shouldYield:WA.unstable_shouldYield,now:WA.unstable_now,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:i(()=>null,"getInstanceFromNode"),prepareScopeUpdate(){},getInstanceFromScope:i(()=>null,"getInstanceFromScope"),appendChildToContainer:p0,insertInContainerBefore:m1,removeChildFromContainer(e,o){QC(e,o),FM(o.yogaNode),o.internal_static&&qf?.staticNode===o&&(qf.staticNode=void 0)},commitUpdate(e,o,r,c){qf&&e.internal_static&&(qf.isStaticDirty=!0);let u=GM(r,c),f=GM(r.style,c.style);if(!(!u&&!f)){if(u)for(let[m,E]of Object.entries(u)){if(m==="style"){E1(e,E);continue}if(m==="internal_transform"){e.internal_transform=E;continue}if(m==="internal_static"){e.internal_static=!0;continue}h1(e,m,E)}f&&e.yogaNode&&C1(e.yogaNode,f,c.style??{})}},commitTextUpdate(e,o,r){bC(e,r)},removeChild(e,o){QC(e,o),FM(o.yogaNode),o.internal_static&&qf?.staticNode===o&&(qf.staticNode=void 0)},setCurrentUpdatePriority(e){C0=e},getCurrentUpdatePriority:i(()=>C0,"getCurrentUpdatePriority"),resolveUpdatePriority(){return C0!==xC.NoEventPriority?C0:xC.DefaultEventPriority},maySuspendCommit(){return!0},NotPendingTransition:void 0,HostTransitionContext:(0,y0.createContext)(null),resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return null},resolveEventTimeStamp(){return-1.1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},rendererPackageName:wC.name,rendererVersion:wC.version})});function I1(e,o=1,r={}){let{indent:c=" ",includeEmptyLines:u=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof o!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof o}\``);if(o<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${o}\``);if(typeof c!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof c}\``);if(o===0)return e;let f=u?/^/gm:/^(?!\s*$)/gm;return e.replace(f,c.repeat(o))}var YM=L(()=>{i(I1,"indentString")});var Pz,qM,PM=L(async()=>{await XA();Pz=i(e=>e.getComputedWidth()-e.getComputedPadding(st.EDGE_LEFT)-e.getComputedPadding(st.EDGE_RIGHT)-e.getComputedBorder(st.EDGE_LEFT)-e.getComputedBorder(st.EDGE_RIGHT),"getMaxWidth"),qM=Pz});var jM,JM=L(()=>{jM={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var VM,XM=L(()=>{JM();VM=jM});function Xz(){let e=new Map;for(let[o,r]of Object.entries(Po)){for(let[c,u]of Object.entries(r))Po[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},r[c]=Po[c],e.set(u[0],u[1]);Object.defineProperty(Po,o,{value:r,enumerable:!1})}return Object.defineProperty(Po,"codes",{value:e,enumerable:!1}),Po.color.close="\x1B[39m",Po.bgColor.close="\x1B[49m",Po.color.ansi=ZM(),Po.color.ansi256=WM(),Po.color.ansi16m=$M(),Po.bgColor.ansi=ZM(10),Po.bgColor.ansi256=WM(10),Po.bgColor.ansi16m=$M(10),Object.defineProperties(Po,{rgbToAnsi256:{value(o,r,c){return o===r&&r===c?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(r/255*5)+Math.round(c/255*5)},enumerable:!1},hexToRgb:{value(o){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!r)return[0,0,0];let[c]=r;c.length===3&&(c=[...c].map(f=>f+f).join(""));let u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:i(o=>Po.rgbToAnsi256(...Po.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let r,c,u;if(o>=232)r=((o-232)*10+8)/255,c=r,u=r;else{o-=16;let E=o%36;r=Math.floor(o/36)/5,c=Math.floor(E/6)/5,u=E%6/5}let f=Math.max(r,c,u)*2;if(f===0)return 30;let m=30+(Math.round(u)<<2|Math.round(c)<<1|Math.round(r));return f===2&&(m+=60),m},enumerable:!1},rgbToAnsi:{value:i((o,r,c)=>Po.ansi256ToAnsi(Po.rgbToAnsi256(o,r,c)),"value"),enumerable:!1},hexToAnsi:{value:i(o=>Po.ansi256ToAnsi(Po.hexToAnsi256(o)),"value"),enumerable:!1}}),Po}var ZM,WM,$M,Po,XW,jz,Vz,ZW,Zz,Ll,eO=L(()=>{ZM=i((e=0)=>o=>`\x1B[${o+e}m`,"wrapAnsi16"),WM=i((e=0)=>o=>`\x1B[${38+e};5;${o}m`,"wrapAnsi256"),$M=i((e=0)=>(o,r,c)=>`\x1B[${38+e};2;${o};${r};${c}m`,"wrapAnsi16m"),Po={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},XW=Object.keys(Po.modifier),jz=Object.keys(Po.color),Vz=Object.keys(Po.bgColor),ZW=[...jz,...Vz];i(Xz,"assembleStyles");Zz=Xz(),Ll=Zz});import B1 from"node:process";import Wz from"node:os";import tO from"node:tty";function tl(e,o=globalThis.Deno?globalThis.Deno.args:B1.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",c=o.indexOf(r+e),u=o.indexOf("--");return c!==-1&&(u===-1||c<u)}function $z(){if("FORCE_COLOR"in Jo)return Jo.FORCE_COLOR==="true"?1:Jo.FORCE_COLOR==="false"?0:Jo.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Jo.FORCE_COLOR,10),3)}function e9(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function t9(e,{streamIsTTY:o,sniffFlags:r=!0}={}){let c=$z();c!==void 0&&(I0=c);let u=r?I0:c;if(u===0)return 0;if(r){if(tl("color=16m")||tl("color=full")||tl("color=truecolor"))return 3;if(tl("color=256"))return 2}if("TF_BUILD"in Jo&&"AGENT_NAME"in Jo)return 1;if(e&&!o&&u===void 0)return 0;let f=u||0;if(Jo.TERM==="dumb")return f;if(B1.platform==="win32"){let m=Wz.release().split(".");return Number(m[0])>=10&&Number(m[2])>=10586?Number(m[2])>=14931?3:2:1}if("CI"in Jo)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(m=>m in Jo)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(m=>m in Jo)||Jo.CI_NAME==="codeship"?1:f;if("TEAMCITY_VERSION"in Jo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Jo.TEAMCITY_VERSION)?1:0;if(Jo.COLORTERM==="truecolor"||Jo.TERM==="xterm-kitty"||Jo.TERM==="xterm-ghostty"||Jo.TERM==="wezterm")return 3;if("TERM_PROGRAM"in Jo){let m=Number.parseInt((Jo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Jo.TERM_PROGRAM){case"iTerm.app":return m>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Jo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Jo.TERM)||"COLORTERM"in Jo?1:f}function nO(e,o={}){let r=t9(e,{streamIsTTY:e&&e.isTTY,...o});return e9(r)}var Jo,I0,n9,oO,rO=L(()=>{i(tl,"hasFlag");({env:Jo}=B1);tl("no-color")||tl("no-colors")||tl("color=false")||tl("color=never")?I0=0:(tl("color")||tl("colors")||tl("color=true")||tl("color=always"))&&(I0=1);i($z,"envForceColor");i(e9,"translateLevel");i(t9,"_supportsColor");i(nO,"createSupportsColor");n9={stdout:nO({isTTY:tO.isatty(1)}),stderr:nO({isTTY:tO.isatty(2)})},oO=n9});function iO(e,o,r){let c=e.indexOf(o);if(c===-1)return e;let u=o.length,f=0,m="";do m+=e.slice(f,c)+o+r,f=c+u,c=e.indexOf(o,f);while(c!==-1);return m+=e.slice(f),m}function aO(e,o,r,c){let u=0,f="";do{let m=e[c-1]==="\r";f+=e.slice(u,m?c-1:c)+o+(m?`\r
257
+ `:`
258
+ `)+r,u=c+1,c=e.indexOf(`
259
+ `,u)}while(c!==-1);return f+=e.slice(u),f}var sO=L(()=>{i(iO,"stringReplaceAll");i(aO,"stringEncaseCRLFWithFirstIndex")});function _C(e){return r9(e)}var lO,cO,S1,Um,TC,uO,Lm,o9,r9,v1,i9,a9,Q1,B0,s9,l9,u$,ni,S0=L(()=>{eO();rO();sO();({stdout:lO,stderr:cO}=oO),S1=Symbol("GENERATOR"),Um=Symbol("STYLER"),TC=Symbol("IS_EMPTY"),uO=["ansi","ansi","ansi256","ansi16m"],Lm=Object.create(null),o9=i((e,o={})=>{if(o.level&&!(Number.isInteger(o.level)&&o.level>=0&&o.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=lO?lO.level:0;e.level=o.level===void 0?r:o.level},"applyOptions"),r9=i(e=>{let o=i((...r)=>r.join(" "),"chalk");return o9(o,e),Object.setPrototypeOf(o,_C.prototype),o},"chalkFactory");i(_C,"createChalk");Object.setPrototypeOf(_C.prototype,Function.prototype);for(let[e,o]of Object.entries(Ll))Lm[e]={get(){let r=B0(this,Q1(o.open,o.close,this[Um]),this[TC]);return Object.defineProperty(this,e,{value:r}),r}};Lm.visible={get(){let e=B0(this,this[Um],!0);return Object.defineProperty(this,"visible",{value:e}),e}};v1=i((e,o,r,...c)=>e==="rgb"?o==="ansi16m"?Ll[r].ansi16m(...c):o==="ansi256"?Ll[r].ansi256(Ll.rgbToAnsi256(...c)):Ll[r].ansi(Ll.rgbToAnsi(...c)):e==="hex"?v1("rgb",o,r,...Ll.hexToRgb(...c)):Ll[r][e](...c),"getModelAnsi"),i9=["rgb","hex","ansi256"];for(let e of i9){Lm[e]={get(){let{level:r}=this;return function(...c){let u=Q1(v1(e,uO[r],"color",...c),Ll.color.close,this[Um]);return B0(this,u,this[TC])}}};let o="bg"+e[0].toUpperCase()+e.slice(1);Lm[o]={get(){let{level:r}=this;return function(...c){let u=Q1(v1(e,uO[r],"bgColor",...c),Ll.bgColor.close,this[Um]);return B0(this,u,this[TC])}}}}a9=Object.defineProperties(()=>{},{...Lm,level:{enumerable:!0,get(){return this[S1].level},set(e){this[S1].level=e}}}),Q1=i((e,o,r)=>{let c,u;return r===void 0?(c=e,u=o):(c=r.openAll+e,u=o+r.closeAll),{open:e,close:o,openAll:c,closeAll:u,parent:r}},"createStyler"),B0=i((e,o,r)=>{let c=i((...u)=>s9(c,u.length===1?""+u[0]:u.join(" ")),"builder");return Object.setPrototypeOf(c,a9),c[S1]=e,c[Um]=o,c[TC]=r,c},"createBuilder"),s9=i((e,o)=>{if(e.level<=0||!o)return e[TC]?"":o;let r=e[Um];if(r===void 0)return o;let{openAll:c,closeAll:u}=r;if(o.includes("\x1B"))for(;r!==void 0;)o=iO(o,r.close,r.open),r=r.parent;let f=o.indexOf(`
260
+ `);return f!==-1&&(o=aO(o,u,c,f)),c+o+u},"applyStyle");Object.defineProperties(_C.prototype,Lm);l9=_C(),u$=_C({level:cO?cO.level:0}),ni=l9});var c9,u9,A9,d9,$A,v0=L(()=>{S0();c9=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,u9=/^ansi256\(\s?(\d+)\s?\)$/,A9=i(e=>e in ni,"isNamedColor"),d9=i((e,o,r)=>{if(!o)return e;if(A9(o)){if(r==="foreground")return ni[o](e);let c=`bg${o[0].toUpperCase()+o.slice(1)}`;return ni[c](e)}if(o.startsWith("#"))return r==="foreground"?ni.hex(o)(e):ni.bgHex(o)(e);if(o.startsWith("ansi256")){let c=u9.exec(o);if(!c)return e;let u=Number(c[1]);return r==="foreground"?ni.ansi256(u)(e):ni.bgAnsi256(u)(e)}if(o.startsWith("rgb")){let c=c9.exec(o);if(!c)return e;let u=Number(c[1]),f=Number(c[2]),m=Number(c[3]);return r==="foreground"?ni.rgb(u,f,m)(e):ni.bgRgb(u,f,m)(e)}return e},"colorize"),$A=d9});var Q0,f9,AO,dO=L(()=>{XM();S0();v0();Q0=i((e,o,r,c)=>{let u=$A(e,o,"foreground");return u=$A(u,r,"background"),c&&(u=ni.dim(u)),u},"stylePiece"),f9=i((e,o,r,c)=>{if(r.style.borderStyle){let u=r.yogaNode.getComputedWidth(),f=r.yogaNode.getComputedHeight(),m=typeof r.style.borderStyle=="string"?VM[r.style.borderStyle]:r.style.borderStyle,E=r.style.borderTopColor??r.style.borderColor,S=r.style.borderBottomColor??r.style.borderColor,v=r.style.borderLeftColor??r.style.borderColor,b=r.style.borderRightColor??r.style.borderColor,N=r.style.borderTopBackgroundColor??r.style.borderBackgroundColor,R=r.style.borderBottomBackgroundColor??r.style.borderBackgroundColor,M=r.style.borderLeftBackgroundColor??r.style.borderBackgroundColor,D=r.style.borderRightBackgroundColor??r.style.borderBackgroundColor,k=r.style.borderTopDimColor??r.style.borderDimColor,H=r.style.borderBottomDimColor??r.style.borderDimColor,$=r.style.borderLeftDimColor??r.style.borderDimColor,Qe=r.style.borderRightDimColor??r.style.borderDimColor,Ee=r.style.borderTop!==!1,Ce=r.style.borderBottom!==!1,Me=r.style.borderLeft!==!1,ge=r.style.borderRight!==!1,Le=u-(Me?1:0)-(ge?1:0),le=Ee?(Me?m.topLeft:"")+m.top.repeat(Le)+(ge?m.topRight:""):void 0;le&&=Q0(le,E,N,k);let ue=f;Ee&&(ue-=1),Ce&&(ue-=1);let te="";Me&&(te=(Q0(m.left,v,M,$)+`
261
+ `).repeat(ue));let re="";ge&&(re=(Q0(m.right,b,D,Qe)+`
262
+ `).repeat(ue));let ee=Ce?(Me?m.bottomLeft:"")+m.bottom.repeat(Le)+(ge?m.bottomRight:""):void 0;ee&&=Q0(ee,S,R,H);let Se=Ee?1:0;le&&c.write(e,o,le,{transformers:[]}),te&&c.write(e,o+Se,te,{transformers:[]}),re&&c.write(e+u-1,o+Se,re,{transformers:[]}),ee&&c.write(e,o+f-1,ee,{transformers:[]})}},"renderBorder"),AO=f9});var g9,fO,gO=L(()=>{v0();g9=i((e,o,r,c)=>{if(!r.style.backgroundColor)return;let u=r.yogaNode.getComputedWidth(),f=r.yogaNode.getComputedHeight(),m=r.style.borderStyle&&r.style.borderLeft!==!1?1:0,E=r.style.borderStyle&&r.style.borderRight!==!1?1:0,S=r.style.borderStyle&&r.style.borderTop!==!1?1:0,v=r.style.borderStyle&&r.style.borderBottom!==!1?1:0,b=u-m-E,N=f-S-v;if(!(b>0&&N>0))return;let R=$A(" ".repeat(b),r.style.backgroundColor,"background");for(let M=0;M<N;M++)c.write(e+m,o+S+M,R,{transformers:[]})},"renderBackground"),fO=g9});var p9,b0,pO,b1,mO=L(async()=>{Wb();YM();await XA();f1();await PM();p1();dO();gO();p9=i((e,o)=>{let r=e.childNodes[0]?.yogaNode;if(r){let c=r.getComputedLeft(),u=r.getComputedTop();o=`
263
+ `.repeat(u)+I1(o,c)}return o},"applyPaddingToText"),b0=i((e,o={})=>{if(o.skipStaticElements&&e.internal_static||e.yogaNode?.getDisplay()===st.DISPLAY_NONE)return"";let r="";if(e.nodeName==="ink-text")r=vC(e);else if(e.nodeName==="ink-box"||e.nodeName==="ink-root"){let c=e.style.flexDirection==="row"||e.style.flexDirection==="row-reverse"?" ":`
264
+ `;r=(e.style.flexDirection==="row-reverse"||e.style.flexDirection==="column-reverse"?[...e.childNodes].reverse():[...e.childNodes]).map(f=>b0(f,{parentRole:e.internal_accessibility?.role,skipStaticElements:o.skipStaticElements})).filter(Boolean).join(c)}if(e.internal_accessibility){let{role:c,state:u}=e.internal_accessibility;if(u){let m=Object.keys(u).filter(E=>u[E]).join(", ");m&&(r=`(${m}) ${r}`)}c&&c!==o.parentRole&&(r=`${c}: ${r}`)}return r},"renderNodeToScreenReaderOutput"),pO=i((e,o,r)=>{let{offsetX:c=0,offsetY:u=0,transformers:f=[],skipStaticElements:m}=r;if(m&&e.internal_static)return;let{yogaNode:E}=e;if(E){if(E.getDisplay()===st.DISPLAY_NONE)return;let S=c+E.getComputedLeft(),v=u+E.getComputedTop(),b=f;if(typeof e.internal_transform=="function"&&(b=[e.internal_transform,...f]),e.nodeName==="ink-text"){let R=vC(e);if(R.length>0){let M=CC(R),D=qM(E);if(M>D){let k=e.style.textWrap??"wrap";R=g0(R,D,k)}R=p9(e,R),o.write(S,v,R,{transformers:b})}return}let N=!1;if(e.nodeName==="ink-box"){fO(S,v,e,o),AO(S,v,e,o);let R=e.style.overflowX==="hidden"||e.style.overflow==="hidden",M=e.style.overflowY==="hidden"||e.style.overflow==="hidden";if(R||M){let D=R?S+E.getComputedBorder(st.EDGE_LEFT):void 0,k=R?S+E.getComputedWidth()-E.getComputedBorder(st.EDGE_RIGHT):void 0,H=M?v+E.getComputedBorder(st.EDGE_TOP):void 0,$=M?v+E.getComputedHeight()-E.getComputedBorder(st.EDGE_BOTTOM):void 0;o.clip({x1:D,x2:k,y1:H,y2:$}),N=!0}}if(e.nodeName==="ink-root"||e.nodeName==="ink-box"){for(let R of e.childNodes)pO(R,o,{offsetX:S,offsetY:v,transformers:b,skipStaticElements:m});N&&o.unclip()}}},"renderNodeToOutput"),b1=pO});var hO,NC,R1,w1,x1,D1,T1=L(()=>{hO=new Set([27,155]),NC="\x1B]8;",R1=NC.split("").map(e=>e.charCodeAt(0)),w1="\x1B]8;;\x07",x1="\x1B]8;;\x1B\\",D1="\x1B]8;;\x9C"});function N1(e){if(Pf.has(e))return e;if(_1.has(e))return _1.get(e);if(e.startsWith(NC))return e.endsWith("\x1B\\")?x1:e.endsWith("\x9C")?D1:w1;if(e=e.slice(2),e.startsWith("38"))return Qo.color.close;if(e.startsWith("48"))return Qo.bgColor.close;let o=Qo.codes.get(parseInt(e,10));return o?Qo.color.ansi(o):Qo.reset.open}function MC(e){return[...new Set(e.map(r=>r.code))].join("")}function R0(e){return e.code===Qo.bold.open||e.code===Qo.dim.open}var Pf,_1,Gm=L(()=>{uC();T1();Pf=new Set,_1=new Map;for(let[e,o]of Qo.codes)Pf.add(Qo.color.ansi(o)),_1.set(Qo.color.ansi(e),Qo.color.ansi(o));Pf.add(w1);Pf.add(x1);Pf.add(D1);i(N1,"getEndCode");i(MC,"ansiCodesToString");i(R0,"isIntensityCode")});function M1(e){return w0([],e)}function w0(e,o){let r=[...e];for(let c of o)c.code===Qo.reset.open?r=[]:Pf.has(c.code)?r=r.filter(u=>u.endCode!==c.code):R0(c)?r.find(u=>u.code===c.code&&u.endCode===c.endCode)||r.push(c):(r=r.filter(u=>u.endCode!==c.endCode),r.push(c));return r}var x0=L(()=>{uC();Gm();i(M1,"reduceAnsiCodes");i(w0,"reduceAnsiCodesIncremental")});function O1(e){return M1(e).reverse().map(o=>({...o,code:o.endCode}))}var H1=L(()=>{x0();i(O1,"undoAnsiCodes")});function D0(e,o){let r=new Set(o.map(f=>f.endCode)),c=new Set(o.map(f=>f.code)),u=new Set(e.map(f=>f.code));return[...O1(e.filter(f=>R0(f)?!c.has(f.code):!r.has(f.endCode))),...o.filter(f=>!u.has(f.code))]}var k1=L(()=>{Gm();H1();i(D0,"diffAnsiCodes")});function EO(e){let o=[],r=[];for(let c of e)c.type==="ansi"?o=w0(o,[c]):c.type==="char"&&r.push({...c,styles:[...o]});return r}function CO(e){let o="";for(let r=0;r<e.length;r++){let c=e[r];r===0?o+=MC(c.styles):o+=MC(D0(e[r-1].styles,c.styles)),o+=c.value,r===e.length-1&&(o+=MC(D0(c.styles,[])))}return o}var yO=L(()=>{Gm();k1();x0();i(EO,"styledCharsFromTokens");i(CO,"styledCharsToString")});function R9(e,o){return!!(Mm(o)||e.includes("\uFE0F")||o>=127462&&o<=127487)}function w9(e,o){e=e.slice(o);for(let u=1;u<R1.length;u++)if(e.charCodeAt(u)!==R1[u])return;let r=e.indexOf(";",NC.length);if(r===-1)return;let c=IO(e,r+1);if(c!==-1)return e.slice(0,c+1)}function x9(e,o){e=e.slice(o);let r=IO(e,2);if(r!==-1)return e.slice(0,r+1)}function IO(e,o){for(let r=o;r<e.length;r++){let c=e.charCodeAt(r);if(c===7||c===156)return r;if(c===27&&r+1<e.length&&e.charCodeAt(r+1)===92)return r+1}return-1}function D9(e){for(let o=2;o<e.length;o++){let r=e.charCodeAt(o);if(r===109)return o;if(r!==59&&!(r>=48&&r<=57))break}return-1}function T9(e,o){e=e.slice(o);let r=D9(e);if(r!==-1)return e.slice(0,r+1)}function _9(e){if(!e.includes(";"))return[e];let o=e.slice(2,-1).split(";"),r=[];for(let c=0;c<o.length;c++){let u=o[c];if(u==="38"||u==="48"){if(c+2<o.length&&o[c+1]==="5"){r.push(o.slice(c,c+3).join(";")),c+=2;continue}else if(c+4<o.length&&o[c+1]==="2"){r.push(o.slice(c,c+5).join(";")),c+=4;continue}}r.push(u)}return r.map(c=>`\x1B[${c}m`)}function BO(e,o=Number.POSITIVE_INFINITY){let r=[],c=0,u=0;for(let{segment:f,index:m}of b9.segment(e)){if(m<u)continue;let E=f.codePointAt(0);if(hO.has(E)){let v,b=e.codePointAt(m+1);if(b===93)v=w9(e,m),v?r.push({type:"ansi",code:v,endCode:N1(v)}):(v=x9(e,m),v&&r.push({type:"control",code:v}));else if(b===91&&(v=T9(e,m),v)){let N=_9(v);for(let R of N)r.push({type:"ansi",code:R,endCode:N1(R)})}if(v){u=m+v.length;continue}}let S=R9(f,E);if(r.push({type:"char",value:f,fullWidth:S}),c+=S?2:1,c>=o)break}return r}var b9,SO=L(()=>{e1();Gm();T1();b9=new Intl.Segmenter(void 0,{granularity:"grapheme"});i(R9,"isFullwidthGrapheme");i(w9,"parseLinkCode");i(x9,"parseOSCSequence");i(IO,"findOSCTerminatorIndex");i(D9,"findSGRSequenceEndIndex");i(T9,"parseSGRSequence");i(_9,"splitCompoundSGRSequences");i(BO,"tokenize")});var vO=L(()=>{Gm();k1();x0();yO();SO();H1()});var U1,Fm,QO=L(()=>{A1();Ea();vO();U1=class{static{i(this,"OutputCaches")}widths=new Map;blockWidths=new Map;styledChars=new Map;getStyledChars(o){let r=this.styledChars.get(o);return r===void 0&&(r=EO(BO(o)),this.styledChars.set(o,r)),r}getStringWidth(o){let r=this.widths.get(o);return r===void 0&&(r=Ot(o),this.widths.set(o,r)),r}getWidestLine(o){let r=this.blockWidths.get(o);if(r===void 0){let c=0;for(let u of o.split(`
265
+ `))c=Math.max(c,this.getStringWidth(u));r=c,this.blockWidths.set(o,r)}return r}},Fm=class{static{i(this,"Output")}width;height;operations=[];caches=new U1;constructor(o){let{width:r,height:c}=o;this.width=r,this.height=c}write(o,r,c,u){let{transformers:f}=u;c&&this.operations.push({type:"write",x:o,y:r,text:c,transformers:f})}clip(o){this.operations.push({type:"clip",clip:o})}unclip(){this.operations.push({type:"unclip"})}get(){let o=[];for(let u=0;u<this.height;u++){let f=[];for(let m=0;m<this.width;m++)f.push({type:"char",value:" ",fullWidth:!1,styles:[]});o.push(f)}let r=[];for(let u of this.operations)if(u.type==="clip"&&r.push(u.clip),u.type==="unclip"&&r.pop(),u.type==="write"){let{text:f,transformers:m}=u,{x:E,y:S}=u,v=f.split(`
266
+ `),b=r.at(-1);if(b){let R=typeof b?.x1=="number"&&typeof b?.x2=="number",M=typeof b?.y1=="number"&&typeof b?.y2=="number";if(R){let D=this.caches.getWidestLine(f);if(E+D<b.x1||E>b.x2)continue}if(M){let D=v.length;if(S+D<b.y1||S>b.y2)continue}if(R&&(v=v.map(D=>{let k=E<b.x1?b.x1-E:0,H=this.caches.getStringWidth(D),$=E+H>b.x2?b.x2-E:H;return el(D,k,$)}),E<b.x1&&(E=b.x1)),M){let D=S<b.y1?b.y1-S:0,k=v.length,H=S+k>b.y2?b.y2-S:k;v=v.slice(D,H),S<b.y1&&(S=b.y1)}}let N=0;for(let[R,M]of v.entries()){let D=o[S+N];if(!D)continue;for(let Qe of m)M=Qe(M,R);let k=this.caches.getStyledChars(M),H=E;if(k.length===0){N++;continue}let $={type:"char",value:" ",fullWidth:!1,styles:[]};D[H]?.value===""&&H>0&&this.caches.getStringWidth(D[H-1]?.value??"")>1&&(D[H-1]=$);for(let Qe of k){D[H]=Qe;let Ee=Math.max(1,this.caches.getStringWidth(Qe.value));if(Ee>1)for(let Ce=1;Ce<Ee;Ce++)D[H+Ce]={type:"char",value:"",fullWidth:!1,styles:Qe.styles};H+=Ee}D[H]?.value===""&&(D[H]=$),N++}}return{output:o.map(u=>{let f=u.filter(m=>m!==void 0);return CO(f).trimEnd()}).join(`
267
+ `),height:o.length}}}});var N9,OC,L1=L(async()=>{await mO();QO();N9=i((e,o)=>{if(e.yogaNode){if(o){let m=b0(e,{skipStaticElements:!0}),E=m===""?0:m.split(`
268
+ `).length,S="";return e.staticNode&&(S=b0(e.staticNode,{skipStaticElements:!1})),{output:m,outputHeight:E,staticOutput:S?`${S}
269
+ `:""}}let r=new Fm({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});b1(e,r,{skipStaticElements:!0});let c;e.staticNode?.yogaNode&&(c=new Fm({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),b1(e.staticNode,c,{skipStaticElements:!1}));let{output:u,height:f}=r.get();return{output:u,outputHeight:f,staticOutput:c?`${c.get().output}
270
+ `:""}}return{output:"",outputHeight:0,staticOutput:""}},"renderer"),OC=N9});var G1,Jf,HC,jf,bO,F1,kC,z1=L(()=>{JB();G1="\x1B[?25h",Jf="\x1B[?25l",HC=i((e,o)=>e?.x!==o?.x||e?.y!==o?.y,"cursorPositionChanged"),jf=i((e,o)=>{if(!o)return"";let r=e-o.y;return(r>0?vo.cursorUp(r):"")+vo.cursorTo(o.x)+G1},"buildCursorSuffix"),bO=i((e,o)=>{if(!o)return"";let r=e-1-o.y;return(r>0?vo.cursorDown(r):"")+vo.cursorTo(0)},"buildReturnToBottom"),F1=i(e=>{let o=e.cursorWasShown?Jf:"",r=bO(e.previousLineCount,e.previousCursorPosition),c=jf(e.visibleLineCount,e.cursorPosition);return o+r+c},"buildCursorOnlySequence"),kC=i((e,o,r)=>e?Jf+bO(o,r):"","buildReturnToBottomPrefix")});var wO=Yn((bee,K1)=>{"use strict";var RO=i((e,o)=>{for(let r of Reflect.ownKeys(o))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));return e},"mimicFn");K1.exports=RO;K1.exports.default=RO});var DO=Yn((wee,_0)=>{"use strict";var M9=wO(),T0=new WeakMap,xO=i((e,o={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,c=0,u=e.displayName||e.name||"<anonymous>",f=i(function(...m){if(T0.set(f,++c),c===1)r=e.apply(this,m),e=null;else if(o.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r},"onetime");return M9(f,e),T0.set(f,c),f},"onetime");_0.exports=xO;_0.exports.default=xO;_0.exports.callCount=e=>{if(!T0.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return T0.get(e)}});import O9 from"node:process";var TO,_O,H9,NO,MO=L(()=>{TO=Ue(DO(),1),_O=Ue(Sb(),1),H9=(0,TO.default)(()=>{(0,_O.default)(()=>{O9.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),NO=H9});import OO from"node:process";var N0,zm,Vf,Y1=L(()=>{MO();N0=!1,zm={};zm.show=(e=OO.stderr)=>{e.isTTY&&(N0=!1,e.write("\x1B[?25h"))};zm.hide=(e=OO.stderr)=>{e.isTTY&&(NO(),N0=!0,e.write("\x1B[?25l"))};zm.toggle=(e,o)=>{e!==void 0&&(N0=e),N0?zm.show(o):zm.hide(o)};Vf=zm});var UC,k9,U9,L9,G9,HO,kO=L(()=>{JB();Y1();z1();UC=i((e,o)=>o.endsWith(`
271
+ `)?e.length-1:e.length,"visibleLineCount"),k9=i((e,{showCursor:o=!1}={})=>{let r=0,c="",u=!1,f,m=!1,E,S=!1,v=i(()=>m?f:void 0,"getActiveCursor"),b=i((R,M)=>{let D=HC(M,E);return R!==c||D},"hasChanges"),N=i(R=>{!o&&!u&&(Vf.hide(e),u=!0);let M=v();m=!1;let D=HC(M,E);if(!b(R,M))return!1;let k=R.split(`
272
+ `),H=UC(k,R),$=jf(H,M);if(R===c&&D)e.write(F1({cursorWasShown:S,previousLineCount:r,previousCursorPosition:E,visibleLineCount:H,cursorPosition:M}));else{c=R;let Qe=kC(S,r,E);e.write(Qe+vo.eraseLines(r)+R+$),r=k.length}return E=M?{...M}:void 0,S=M!==void 0,!0},"render");return N.clear=()=>{let R=kC(S,r,E);e.write(R+vo.eraseLines(r)),c="",r=0,E=void 0,S=!1},N.done=()=>{c="",r=0,E=void 0,S=!1,o||(Vf.show(e),u=!1)},N.reset=()=>{c="",r=0,E=void 0,S=!1},N.sync=R=>{let M=m?f:void 0;m=!1;let D=R.split(`
273
+ `);c=R,r=D.length,!M&&S&&e.write(Jf),M&&e.write(jf(UC(D,R),M)),E=M?{...M}:void 0,S=M!==void 0},N.setCursorPosition=R=>{f=R,m=!0},N.isCursorDirty=()=>m,N.willRender=R=>b(R,v()),N},"createStandard"),U9=i((e,{showCursor:o=!1}={})=>{let r=[],c="",u=!1,f,m=!1,E,S=!1,v=i(()=>m?f:void 0,"getActiveCursor"),b=i((R,M)=>{let D=HC(M,E);return R!==c||D},"hasChanges"),N=i(R=>{!o&&!u&&(Vf.hide(e),u=!0);let M=v();m=!1;let D=HC(M,E);if(!b(R,M))return!1;let k=R.split(`
274
+ `),H=UC(k,R),$=UC(r,c);if(R===c&&D)return e.write(F1({cursorWasShown:S,previousLineCount:r.length,previousCursorPosition:E,visibleLineCount:H,cursorPosition:M})),E=M?{...M}:void 0,S=M!==void 0,!0;let Qe=kC(S,r.length,E);if(R===`
275
+ `||c.length===0){let ge=jf(H,M);return e.write(Qe+vo.eraseLines(r.length)+R+ge),S=M!==void 0,E=M?{...M}:void 0,c=R,r=k,!0}let Ee=R.endsWith(`
276
+ `),Ce=[];if(Ce.push(Qe),H<$){let Le=c.endsWith(`
277
+ `)?1:0;Ce.push(vo.eraseLines($-H+Le),vo.cursorUp(H))}else Ce.push(vo.cursorUp(r.length-1));for(let ge=0;ge<H;ge++){let Le=ge===H-1;if(k[ge]===r[ge]){(!Le||Ee)&&Ce.push(vo.cursorNextLine);continue}Ce.push(vo.cursorTo(0)+k[ge]+vo.eraseEndLine+(Le&&!Ee?"":`
278
+ `))}let Me=jf(H,M);return Ce.push(Me),e.write(Ce.join("")),S=M!==void 0,E=M?{...M}:void 0,c=R,r=k,!0},"render");return N.clear=()=>{let R=kC(S,r.length,E);e.write(R+vo.eraseLines(r.length)),c="",r=[],E=void 0,S=!1},N.done=()=>{c="",r=[],E=void 0,S=!1,o||(Vf.show(e),u=!1)},N.reset=()=>{c="",r=[],E=void 0,S=!1},N.sync=R=>{let M=m?f:void 0;m=!1;let D=R.split(`
279
+ `);c=R,r=D,!M&&S&&e.write(Jf),M&&e.write(jf(UC(D,R),M)),E=M?{...M}:void 0,S=M!==void 0},N.setCursorPosition=R=>{f=R,m=!0},N.isCursorDirty=()=>m,N.willRender=R=>b(R,v()),N},"createIncremental"),L9=i((e,{showCursor:o=!1,incremental:r=!1}={})=>r?U9(e,{showCursor:o}):k9(e,{showCursor:o}),"create"),G9={create:L9},HO=G9});function UO(e,o){return"isTTY"in e&&e.isTTY&&(o??!jB)}var Xf,ed,LO=L(()=>{Cb();Xf="\x1B[?2026h",ed="\x1B[?2026l";i(UO,"shouldSynchronize")});var F9,LC,q1=L(()=>{F9=new WeakMap,LC=F9});var KO,GO,z9,K9,YO,Y9,q9,FO,P9,J9,zO,j9,qO,PO=L(()=>{KO="\x1B[200~",GO="\x1B[201~",z9=i(e=>e>=48&&e<=63,"isCsiParameterByte"),K9=i(e=>e>=32&&e<=47,"isCsiIntermediateByte"),YO=i(e=>e>=64&&e<=126,"isCsiFinalByte"),Y9=i((e,o,r)=>{let c=o+r+1,u=c;for(;u<e.length;u++){let f=e.codePointAt(u);if(f===void 0)return"pending";if(!(z9(f)||K9(f))&&!(f===91&&u===c))return YO(f)?{sequence:e.slice(o,u+1),nextIndex:u+1}:void 0}return"pending"},"parseCsiSequence"),q9=i((e,o,r)=>{let c=o+r+2;if(c>e.length)return"pending";let u=e.codePointAt(c-1);if(!(u===void 0||!YO(u)))return{sequence:e.slice(o,c),nextIndex:c}},"parseSs3Sequence"),FO=i((e,o,r)=>{let c=e[o+r];if(c===void 0)return"pending";if(c==="[")return Y9(e,o,r);if(c==="O")return q9(e,o,r)},"parseControlSequence"),P9=i((e,o)=>{let r=e.codePointAt(o+1),c=r!==void 0&&r>65535?2:1,u=o+1+c;return{sequence:e.slice(o,u),nextIndex:u}},"parseEscapedCodePoint"),J9=i((e,o)=>{if(o===e.length-1)return"pending";if(e[o+1]==="\x1B"){if(o+2>=e.length)return"pending";let u=FO(e,o,2);return u==="pending"?"pending":u||{sequence:e.slice(o,o+2),nextIndex:o+2}}let c=FO(e,o,1);return c==="pending"?"pending":c||P9(e,o)},"parseEscapeSequence"),zO=i((e,o)=>{let r=0;for(let c=0;c<e.length;c++){let u=e[c];(u==="\x7F"||u==="\b")&&(c>r&&o.push(e.slice(r,c)),o.push(u),r=c+1)}r<e.length&&o.push(e.slice(r))},"splitBackspaceBytes"),j9=i(e=>{let o=[],r=0,c=i(u=>({events:o,pending:e.slice(u)}),"pendingFrom");for(;r<e.length;){let u=e.indexOf("\x1B",r);if(u===-1)return zO(e.slice(r),o),{events:o,pending:""};u>r&&zO(e.slice(r,u),o);let f=J9(e,u);if(f==="pending")return c(u);if(f.sequence===KO){let m=f.nextIndex,E=e.indexOf(GO,m);if(E===-1)return c(u);o.push({paste:e.slice(m,E)}),r=E+GO.length;continue}o.push(f.sequence),r=f.nextIndex}return{events:o,pending:""}},"parseKeypresses"),qO=i(()=>{let e="";return{push(o){let r=j9(e+o);return e=r.pending,r.events},hasPendingEscape(){return e.startsWith("\x1B")&&!e.startsWith(KO)&&e!=="\x1B[200"},flushPendingEscape(){if(!e.startsWith("\x1B"))return;let o=e;return e="",o},reset(){e=""}}},"createInputParser")});var JO,V9,X9,jO,M0,P1=L(()=>{JO=Ue(Nt(),1),V9={async resume(){},async[Symbol.asyncDispose](){}},X9={exit(e){},async waitUntilRenderFlush(){},suspendTerminal:i((async e=>{if(e){await e();return}return V9}),"suspendTerminal")},jO=(0,JO.createContext)(X9);jO.displayName="InternalAppContext";M0=jO});import{EventEmitter as Z9}from"node:events";import W9 from"node:process";var VO,XO,GC,J1=L(()=>{VO=Ue(Nt(),1),XO=(0,VO.createContext)({stdin:W9.stdin,internal_eventEmitter:new Z9,setRawMode(){},setBracketedPasteMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0});XO.displayName="InternalStdinContext";GC=XO});import $9 from"node:process";var ZO,WO,O0,j1=L(()=>{ZO=Ue(Nt(),1),WO=(0,ZO.createContext)({stdout:$9.stdout,write(){}});WO.displayName="InternalStdoutContext";O0=WO});import eK from"node:process";var $O,eH,H0,V1=L(()=>{$O=Ue(Nt(),1),eH=(0,$O.createContext)({stderr:eK.stderr,write(){}});eH.displayName="InternalStderrContext";H0=eH});var tH,nH,Km,k0=L(()=>{tH=Ue(Nt(),1),nH=(0,tH.createContext)({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});nH.displayName="InternalFocusContext";Km=nH});var oH,rH,U0,X1=L(()=>{oH=Ue(Nt(),1),rH=(0,oH.createContext)({renderThrottleMs:0,subscribe(){return{startTime:0,unsubscribe(){}}}});rH.displayName="InternalAnimationContext";U0=rH});var iH,aH,L0,Z1=L(()=>{iH=Ue(Nt(),1),aH=(0,iH.createContext)({setCursorPosition(){}});aH.displayName="InternalCursorContext";L0=aH});var lH=Yn((rte,sH)=>{"use strict";var tK=/[|\\{}()[\]^$+*?.-]/g;sH.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(tK,"\\$&")}});var dH=Yn((ite,AH)=>{"use strict";var nK=lH(),oK=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",uH=[].concat(Go("module").builtinModules,"bootstrap_node","node").map(e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));uH.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var W1=class e{static{i(this,"StackUtils")}constructor(o){o={ignoredPackages:[],...o},"internals"in o||(o.internals=e.nodeInternals()),"cwd"in o||(o.cwd=oK),this._cwd=o.cwd.replace(/\\/g,"/"),this._internals=[].concat(o.internals,rK(o.ignoredPackages)),this._wrapCallSite=o.wrapCallSite||!1}static nodeInternals(){return[...uH]}clean(o,r=0){r=" ".repeat(r),Array.isArray(o)||(o=o.split(`
280
+ `)),!/^\s*at /.test(o[0])&&/^\s*at /.test(o[1])&&(o=o.slice(1));let c=!1,u=null,f=[];return o.forEach(m=>{if(m=m.replace(/\\/g,"/"),this._internals.some(S=>S.test(m)))return;let E=/^\s*at /.test(m);c?m=m.trimEnd().replace(/^(\s+)at /,"$1"):(m=m.trim(),E&&(m=m.slice(3))),m=m.replace(`${this._cwd}/`,""),m&&(E?(u&&(f.push(u),u=null),f.push(m)):(c=!0,u=m))}),f.map(m=>`${r}${m}
281
+ `).join("")}captureString(o,r=this.captureString){typeof o=="function"&&(r=o,o=1/0);let{stackTraceLimit:c}=Error;o&&(Error.stackTraceLimit=o);let u={};Error.captureStackTrace(u,r);let{stack:f}=u;return Error.stackTraceLimit=c,this.clean(f)}capture(o,r=this.capture){typeof o=="function"&&(r=o,o=1/0);let{prepareStackTrace:c,stackTraceLimit:u}=Error;Error.prepareStackTrace=(E,S)=>this._wrapCallSite?S.map(this._wrapCallSite):S,o&&(Error.stackTraceLimit=o);let f={};Error.captureStackTrace(f,r);let{stack:m}=f;return Object.assign(Error,{prepareStackTrace:c,stackTraceLimit:u}),m}at(o=this.at){let[r]=this.capture(1,o);if(!r)return{};let c={line:r.getLineNumber(),column:r.getColumnNumber()};cH(c,r.getFileName(),this._cwd),r.isConstructor()&&Object.defineProperty(c,"constructor",{value:!0,configurable:!0}),r.isEval()&&(c.evalOrigin=r.getEvalOrigin()),r.isNative()&&(c.native=!0);let u;try{u=r.getTypeName()}catch{}u&&u!=="Object"&&u!=="[object Object]"&&(c.type=u);let f=r.getFunctionName();f&&(c.function=f);let m=r.getMethodName();return m&&f!==m&&(c.method=m),c}parseLine(o){let r=o&&o.match(iK);if(!r)return null;let c=r[1]==="new",u=r[2],f=r[3],m=r[4],E=Number(r[5]),S=Number(r[6]),v=r[7],b=r[8],N=r[9],R=r[10]==="native",M=r[11]===")",D,k={};if(b&&(k.line=Number(b)),N&&(k.column=Number(N)),M&&v){let H=0;for(let $=v.length-1;$>0;$--)if(v.charAt($)===")")H++;else if(v.charAt($)==="("&&v.charAt($-1)===" "&&(H--,H===-1&&v.charAt($-1)===" ")){let Qe=v.slice(0,$-1);v=v.slice($+1),u+=` (${Qe}`;break}}if(u){let H=u.match(aK);H&&(u=H[1],D=H[2])}return cH(k,v,this._cwd),c&&Object.defineProperty(k,"constructor",{value:!0,configurable:!0}),f&&(k.evalOrigin=f,k.evalLine=E,k.evalColumn=S,k.evalFile=m&&m.replace(/\\/g,"/")),R&&(k.native=!0),u&&(k.function=u),D&&u!==D&&(k.method=D),k}};function cH(e,o,r){o&&(o=o.replace(/\\/g,"/"),o.startsWith(`${r}/`)&&(o=o.slice(r.length+1)),e.file=o)}i(cH,"setFile");function rK(e){if(e.length===0)return[];let o=e.map(r=>nK(r));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${o.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}i(rK,"ignoredPackagesRegExp");var iK=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),aK=/^(.*?) \[as (.*?)\]$/;AH.exports=W1});var sK,fH,gH=L(()=>{sK=i((e,o=2)=>e.replace(/^\t+/gm,r=>" ".repeat(r.length*o)),"convertToSpaces"),fH=sK});var lK,cK,pH,mH=L(()=>{gH();lK=i((e,o)=>{let r=[],c=e-o,u=e+o;for(let f=c;f<=u;f++)r.push(f);return r},"generateLineNumbers"),cK=i((e,o,r={})=>{var c;if(typeof e!="string")throw new TypeError("Source code is missing.");if(!o||o<1)throw new TypeError("Line number must start from `1`.");let u=fH(e).split(/\r?\n/);if(!(o>u.length))return lK(o,(c=r.around)!==null&&c!==void 0?c:3).filter(f=>u[f-1]!==void 0).map(f=>({line:f,value:u[f-1]}))},"codeExcerpt"),pH=cK});var hH,vc,Ym=L(()=>{hH=Ue(Nt(),1),vc=(0,hH.createContext)({isScreenReaderEnabled:!1})});var EH,G0,$1=L(()=>{EH=Ue(Nt(),1),G0=(0,EH.createContext)(void 0)});var td,CH,Rt,F0=L(()=>{td=Ue(Nt(),1);Ym();$1();CH=(0,td.forwardRef)(({children:e,backgroundColor:o,"aria-label":r,"aria-hidden":c,"aria-role":u,"aria-state":f,...m},E)=>{let{isScreenReaderEnabled:S}=(0,td.useContext)(vc),v=r?td.default.createElement("ink-text",null,r):void 0;if(S&&c)return null;let b=td.default.createElement("ink-box",{ref:E,style:{flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1,...m,backgroundColor:o,overflowX:m.overflowX??m.overflow??"visible",overflowY:m.overflowY??m.overflow??"visible"},internal_accessibility:{role:u,state:f}},S&&v?v:e);return o?td.default.createElement(G0.Provider,{value:o},b):b});CH.displayName="Box";Rt=CH});function O({color:e,backgroundColor:o,dimColor:r=!1,bold:c=!1,italic:u=!1,underline:f=!1,strikethrough:m=!1,inverse:E=!1,wrap:S="wrap",children:v,"aria-label":b,"aria-hidden":N=!1}){let{isScreenReaderEnabled:R}=(0,FC.useContext)(vc),M=(0,FC.useContext)(G0),D=R&&b?b:v;if(D==null)return null;let k=i(H=>{r&&(H=ni.dim(H)),e&&(H=$A(H,e,"foreground"));let $=o??M;return $&&(H=$A(H,$,"background")),c&&(H=ni.bold(H)),u&&(H=ni.italic(H)),f&&(H=ni.underline(H)),m&&(H=ni.strikethrough(H)),E&&(H=ni.inverse(H)),H},"transform");return R&&N?null:FC.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:S},internal_transform:k},D)}var FC,eR=L(()=>{FC=Ue(Nt(),1);S0();v0();Ym();$1();i(O,"Text")});import*as z0 from"node:fs";import{cwd as IH}from"node:process";function oR({error:e}){let o=e.stack?e.stack.split(`
282
+ `).slice(1):void 0,r=o?yH.parseLine(o[0]):void 0,c=tR(r?.file),u,f=0,m=new Map;if(c&&r?.line&&z0.existsSync(c)){let E=z0.readFileSync(c,"utf8");if(u=pH(E,r.line),u)for(let{line:S}of u)f=Math.max(f,String(S).length)}return zr.default.createElement(Rt,{flexDirection:"column",padding:1},zr.default.createElement(Rt,null,zr.default.createElement(O,{backgroundColor:"red",color:"white"}," ","ERROR"," "),zr.default.createElement(O,null," ",e.message)),r&&c?zr.default.createElement(Rt,{marginTop:1},zr.default.createElement(O,{dimColor:!0},c,":",r.line,":",r.column)):null,r&&u?zr.default.createElement(Rt,{marginTop:1,flexDirection:"column"},u.map(({line:E,value:S})=>zr.default.createElement(Rt,{key:E},zr.default.createElement(Rt,{width:f+1},zr.default.createElement(O,{dimColor:E!==r.line,backgroundColor:E===r.line?"red":void 0,color:E===r.line?"white":void 0,"aria-label":E===r.line?`Line ${E}, error`:`Line ${E}`},String(E).padStart(f," "),":")),zr.default.createElement(O,{key:E,backgroundColor:E===r.line?"red":void 0,color:E===r.line?"white":void 0}," "+S)))):null,e.stack?zr.default.createElement(Rt,{marginTop:1,flexDirection:"column"},e.stack.split(`
283
+ `).slice(1).map(E=>{let S=yH.parseLine(E),v=m.get(E)??0;m.set(E,v+1);let b=`${E}-${v}`;return!S?.file||!S.line||!S.column?zr.default.createElement(Rt,{key:b},zr.default.createElement(O,{dimColor:!0},"- "),zr.default.createElement(O,{dimColor:!0,bold:!0},E,"\\t"," ")):zr.default.createElement(Rt,{key:b},zr.default.createElement(O,{dimColor:!0},"- "),zr.default.createElement(O,{dimColor:!0,bold:!0},S.function),zr.default.createElement(O,{dimColor:!0,color:"gray","aria-label":`at ${tR(S.file)??""} line ${S.line} column ${S.column}`}," ","(",tR(S.file)??"",":",S.line,":",S.column,")"))})):null)}var zr,nR,tR,yH,BH=L(()=>{zr=Ue(Nt(),1),nR=Ue(dH(),1);mH();F0();eR();tR=i(e=>e?.replace(`file://${IH()}/`,""),"cleanupPath"),yH=new nR.default({cwd:IH(),internals:nR.default.nodeInternals()});i(oR,"ErrorOverview")});var K0,zC,SH=L(()=>{K0=Ue(Nt(),1);BH();zC=class extends K0.PureComponent{static{i(this,"ErrorBoundary")}static displayName="InternalErrorBoundary";static getDerivedStateFromError(o){return{error:o}}state={error:void 0};componentDidCatch(o){this.props.onError(o)}render(){return this.state.error?K0.default.createElement(oR,{error:this.state.error}):this.props.children}}});import{EventEmitter as uK}from"node:events";import AK from"node:process";function vH({children:e,stdin:o,stdout:r,stderr:c,writeToStdout:u,writeToStderr:f,exitOnCtrlC:m,onExit:E,onWaitUntilRenderFlush:S,onSuspendTerminal:v,onRegisterInputControl:b,setCursorPosition:N,interactive:R,renderThrottleMs:M}){let[D,k]=(0,vt.useState)(!0),[H,$]=(0,vt.useState)(void 0),[,Qe]=(0,vt.useState)([]),Ee=(0,vt.useRef)(0),Ce=(0,vt.useRef)(new Map),Me=(0,vt.useRef)(void 0),ge=(0,vt.useRef)(0),Le=(0,vt.useRef)(!1),le=(0,vt.useRef)(0),ue=(0,vt.useRef)(new uK);ue.current.setMaxListeners(1/0);let te=(0,vt.useRef)(void 0),re=(0,vt.useRef)(qO()),ee=(0,vt.useRef)(void 0),Se=20,tt=(0,vt.useCallback)(()=>{ee.current&&(clearTimeout(ee.current),ee.current=void 0)},[]),Ie=(0,vt.useCallback)(()=>{Me.current&&(clearTimeout(Me.current),Me.current=void 0)},[]),Pe=(0,vt.useCallback)(()=>{if(Ie(),Ce.current.size===0)return;let ot=Number.POSITIVE_INFINITY;for(let Et of Ce.current.values())ot=Math.min(ot,Et.nextDueTime);let bt=Math.max(0,ot-performance.now());Me.current=setTimeout(()=>{Me.current=void 0;let Et=performance.now();for(let en of Ce.current.values()){if(Et<en.nextDueTime)continue;en.callback(Et);let uo=Et-en.startTime,ar=Math.floor(uo/en.interval)+1;en.nextDueTime=en.startTime+ar*en.interval}Pe()},bt)},[Ie]),ct=(0,vt.useCallback)((ot,bt)=>{let Et=performance.now();return Ce.current.set(ot,{callback:ot,interval:bt,startTime:Et,nextDueTime:Et+bt}),Pe(),{startTime:Et,unsubscribe(){if(Ce.current.delete(ot),Ce.current.size===0){Ie();return}Pe()}}},[Ie,Pe]);(0,vt.useEffect)(()=>()=>{Ie()},[Ie]);let Je=o.isTTY,W=(0,vt.useCallback)(()=>{te.current&&(o.removeListener("readable",te.current),te.current=void 0)},[o]),ut=(0,vt.useCallback)(()=>{re.current.reset(),tt(),W()},[tt,W]),pt=(0,vt.useCallback)(()=>{Le.current=!1,o.setRawMode(!1),o.unref(),ge.current=0,ut()},[o,ut]),P=(0,vt.useCallback)(ot=>{Je&&(ge.current>0||Le.current)&&pt(),E(ot)},[Je,pt,E]),be=(0,vt.useCallback)(ot=>{if(ot===""&&m){P();return}ot===gK&&D&&$(void 0)},[m,P,D]),Xe=(0,vt.useCallback)(ot=>{be(ot),ue.current.emit("input",ot)},[be]),oe=(0,vt.useCallback)(()=>{tt(),ee.current=setTimeout(()=>{ee.current=void 0;let ot=re.current.flushPendingEscape();ot&&Xe(ot)},Se)},[tt,Xe]),nt=(0,vt.useCallback)(()=>{tt();let ot;for(;(ot=o.read())!==null;){let bt=re.current.push(ot);for(let Et of bt)if(typeof Et=="string")Xe(Et);else{if(ue.current.listenerCount("paste")===0){Xe(Et.paste);continue}ue.current.emit("paste",Et.paste)}}re.current.hasPendingEscape()&&oe()},[o,Xe,tt,oe]),mt=(0,vt.useCallback)(()=>{te.current||(te.current=nt,o.addListener("readable",nt))},[o,nt]),ne=(0,vt.useCallback)(ot=>{if(!Je)throw o===AK.stdin?new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
284
+ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink.
285
+ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(o.setEncoding("utf8"),ot){if(ge.current===0){let bt=Le.current;Le.current=!1,bt||(o.ref(),o.setRawMode(!0)),mt()}ge.current++;return}ge.current!==0&&--ge.current===0&&(ut(),Le.current=!0,queueMicrotask(()=>{Le.current&&pt()}))},[Je,o,mt,ut,pt]),se=(0,vt.useCallback)(ot=>{if(r.isTTY){if(ot){le.current===0&&r.write("\x1B[?2004h"),le.current++;return}le.current!==0&&--le.current===0&&r.write("\x1B[?2004l")}},[r]),Te=(0,vt.useRef)({rawMode:!1,bracketedPaste:!1}),At=(0,vt.useCallback)(()=>{let ot=Je&&ge.current>0,bt=le.current>0;if(Te.current={rawMode:ot,bracketedPaste:bt},bt&&r.isTTY)try{r.write("\x1B[?2004l")}catch{}ot&&(o.setRawMode(!1),o.unref(),ut())},[Je,o,r,ut]),Qt=(0,vt.useCallback)(()=>{let{rawMode:ot,bracketedPaste:bt}=Te.current;if(ot&&(o.setEncoding("utf8"),o.ref(),o.setRawMode(!0),mt()),bt&&r.isTTY)try{r.write("\x1B[?2004h")}catch{}},[o,r,mt]);(0,vt.useInsertionEffect)(()=>{b(At,Qt)},[b,At,Qt]);let Lt=(0,vt.useCallback)((ot,bt)=>{let Et=ot.findIndex(en=>en.id===bt);for(let en=Et+1;en<ot.length;en++){let uo=ot[en];if(uo?.isActive)return uo.id}},[]),gt=(0,vt.useCallback)((ot,bt)=>{let Et=ot.findIndex(en=>en.id===bt);for(let en=Et-1;en>=0;en--){let uo=ot[en];if(uo?.isActive)return uo.id}},[]),Be=(0,vt.useCallback)(()=>{Qe(ot=>($(bt=>{let Et=ot.find(uo=>uo.isActive)?.id;return Lt(ot,bt)??Et}),ot))},[Lt]),_e=(0,vt.useCallback)(()=>{Qe(ot=>($(bt=>{let Et=ot.findLast(uo=>uo.isActive)?.id;return gt(ot,bt)??Et}),ot))},[gt]);(0,vt.useEffect)(()=>{let ot=i(Et=>{!D||Ee.current===0||(Et===dK&&Be(),Et===fK&&_e())},"handleTabNavigation");ue.current.on("input",ot);let bt=ue.current;return()=>{bt.off("input",ot)}},[D,Be,_e]);let at=(0,vt.useCallback)(()=>{k(!0)},[]),Mt=(0,vt.useCallback)(()=>{k(!1)},[]),Re=(0,vt.useCallback)(ot=>{Qe(bt=>(bt.some(en=>en?.id===ot)&&$(ot),bt))},[]),xe=(0,vt.useCallback)((ot,{autoFocus:bt})=>{Qe(Et=>(Ee.current=Et.length+1,[...Et,{id:ot,isActive:!0}])),bt&&$(Et=>Et||ot)},[]),he=(0,vt.useCallback)(ot=>{$(bt=>{if(bt!==ot)return bt}),Qe(bt=>{let Et=bt.filter(en=>en.id!==ot);return Ee.current=Et.length,Et})},[]),Ze=(0,vt.useCallback)(ot=>{Qe(bt=>bt.map(Et=>Et.id!==ot?Et:{id:ot,isActive:!0}))},[]),Gt=(0,vt.useCallback)(ot=>{$(bt=>{if(bt!==ot)return bt}),Qe(bt=>bt.map(Et=>Et.id!==ot?Et:{id:ot,isActive:!1}))},[]);(0,vt.useEffect)(()=>()=>{let ot=!r.destroyed&&!r.writableEnded;R&&ot&&Vf.show(r),Je&&(ge.current>0||Le.current)&&pt(),le.current>0&&(r.isTTY&&ot&&r.write("\x1B[?2004l"),le.current=0)},[r,Je,pt,R]);let Hn=(0,vt.useMemo)(()=>({exit:P,waitUntilRenderFlush:S,suspendTerminal:v}),[P,S,v]),Qn=(0,vt.useMemo)(()=>({stdin:o,setRawMode:ne,setBracketedPasteMode:se,isRawModeSupported:Je,internal_exitOnCtrlC:m,internal_eventEmitter:ue.current}),[o,ne,se,Je,m]),Ro=(0,vt.useMemo)(()=>({stdout:r,write:u}),[r,u]),qr=(0,vt.useMemo)(()=>({stderr:c,write:f}),[c,f]),wo=(0,vt.useMemo)(()=>({setCursorPosition:N}),[N]),ir=(0,vt.useMemo)(()=>({activeId:H,add:xe,remove:he,activate:Ze,deactivate:Gt,enableFocus:at,disableFocus:Mt,focusNext:Be,focusPrevious:_e,focus:Re}),[H,xe,he,Ze,Gt,at,Mt,Be,_e,Re]),Pr=(0,vt.useMemo)(()=>({renderThrottleMs:M,subscribe:ct}),[ct,M]);return vt.default.createElement(M0.Provider,{value:Hn},vt.default.createElement(GC.Provider,{value:Qn},vt.default.createElement(O0.Provider,{value:Ro},vt.default.createElement(H0.Provider,{value:qr},vt.default.createElement(Km.Provider,{value:ir},vt.default.createElement(U0.Provider,{value:Pr},vt.default.createElement(L0.Provider,{value:wo},vt.default.createElement(zC,{onError:P},e))))))))}var vt,dK,fK,gK,QH,bH=L(()=>{vt=Ue(Nt(),1);Y1();PO();P1();J1();j1();V1();k0();X1();Z1();SH();dK=" ",fK="\x1B[Z",gK="\x1B";i(vH,"App");vH.displayName="InternalApp";QH=vH});function iR(e){let o=0;for(let r of e)o|=rR[r];return o}var rR,Gl,Y0=L(()=>{rR={disambiguateEscapeCodes:1,reportEventTypes:2,reportAlternateKeys:4,reportAllKeysAsEscapeCodes:8,reportAssociatedText:16};i(iR,"resolveFlags");Gl={shift:1,alt:2,ctrl:4,super:8,hyper:16,meta:32,capsLock:64,numLock:128}});import YC from"node:process";var sR,wH,P0,KC,pK,RH,mK,hK,EK,CK,yK,IK,BK,xH,SK,vK,QK,bK,aR,q0,qm,qC,DH=L(async()=>{sR=Ue(Nt(),1);_2();JB();Cb();K2();wH=Ue(Sb(),1);W2();P0=Ue($B(),1);await XA();dC();Fb();await DC();await L1();await RC();z1();kO();LO();q1();bH();Ym();Y0();KC=i(()=>{},"noop"),pK=new TextEncoder,RH=i(async()=>new Promise(e=>{setImmediate(e)}),"yieldImmediate"),mK=27,hK=91,EK=63,CK=117,yK=48,IK=57,BK=i(e=>e>=yK&&e<=IK,"isDigitByte"),xH=i((e,o)=>{if(e[o]!==mK||e[o+1]!==hK||e[o+2]!==EK)return;let r=o+3,c=r;for(;r<e.length&&BK(e[r]);)r++;if(r!==c){if(r===e.length)return{state:"partial"};if(e[r]===CK)return{state:"complete",endIndex:r}}},"matchKittyQueryResponse"),SK=i(e=>{for(let o=0;o<e.length;o++)if(xH(e,o)?.state==="complete")return!0;return!1},"hasCompleteKittyQueryResponse"),vK=i(e=>{let o=[],r=0;for(;r<e.length;){let c=xH(e,r);if(c?.state==="complete"){r=c.endIndex+1;continue}if(c?.state==="partial")break;o.push(e[r]),r++}return o},"stripKittyQueryResponsesAndTrailingPartial"),QK=YC.platform==="win32",bK=i(({isTty:e,viewportRows:o,previousOutputHeight:r,nextOutputHeight:c,isUnmounting:u})=>{if(!e)return!1;let f=r>0,m=r>=o,E=r>o,S=c>o,v=c>=o,b=m&&c<o,N=u&&m;return QK&&(m||v)?!0:E||S&&f||b||N},"shouldClearTerminalForFrame"),aR=i(e=>e instanceof Error||Object.prototype.toString.call(e)==="[object Error]","isErrorInput"),q0=i(e=>{let o=!e.destroyed&&!e.writableEnded&&(e.writable??!0),r=e._writableState!==void 0||e.writableLength!==void 0;return{canWriteToStdout:o,hasWritableState:r}},"getWritableStreamState"),qm=i((e,o)=>{if(!e||typeof e.flush!="function")return;let r=e;o?r.flush():typeof r.cancel=="function"&&r.cancel()},"settleThrottle"),qC=class{static{i(this,"Ink")}isConcurrent;options;log;cursorPosition;throttledLog;isScreenReaderEnabled;interactive;renderThrottleMs;alternateScreen;isUnmounted;isUnmounting;lastOutput;lastOutputToRender;lastOutputHeight;lastTerminalWidth;container;rootNode;fullStaticOutput;exitPromise;exitResult;beforeExitHandler;restoreConsole;unsubscribeResize;throttledOnRender;hasPendingThrottledRender=!1;kittyProtocolEnabled=!1;kittyFlags;cancelKittyDetection;nextRenderCommit;isSuspended=!1;pauseInput;resumeInput;constructor(o){yb(this),this.options=o,this.rootNode=km("ink-root"),this.rootNode.onComputeLayout=this.calculateLayout,this.isScreenReaderEnabled=o.isScreenReaderEnabled??YC.env.INK_SCREEN_READER==="true",this.interactive=this.resolveInteractiveOption(o.interactive),this.alternateScreen=!1;let r=o.debug||this.isScreenReaderEnabled,c=o.maxFps??30,u=c>0?Math.max(1,Math.ceil(1e3/c)):0;if(this.renderThrottleMs=r?0:u,r)this.rootNode.onRender=this.onRender,this.throttledOnRender=void 0;else{let m=qB(this.onRender,u,{leading:!0,trailing:!0});this.rootNode.onRender=()=>{this.hasPendingThrottledRender=!0,m()},this.throttledOnRender=m}this.rootNode.onImmediateRender=this.onRender,this.rootNode.onStaticChange=this.handleStaticChange,this.log=HO.create(o.stdout,{incremental:o.incrementalRendering}),this.cursorPosition=void 0,this.throttledLog=r?this.log:qB(m=>{let E=this.log.willRender(m),S=this.shouldSync();S&&E&&this.options.stdout.write(Xf),this.log(m),S&&E&&this.options.stdout.write(ed)},void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.isUnmounting=!1,this.isConcurrent=o.concurrent??!1,this.lastOutput="",this.lastOutputToRender="",this.lastOutputHeight=0,this.lastTerminalWidth=Du(this.options.stdout).columns,this.fullStaticOutput="";let f=o.concurrent?P0.ConcurrentRoot:P0.LegacyRoot;this.container=Er.createContainer(this.rootNode,f,null,!1,null,"id",()=>{},()=>{},()=>{},()=>{}),this.unsubscribeExit=(0,wH.default)(this.unmount,{alwaysLast:!1}),this.setAlternateScreen(!!o.alternateScreen),YC.env.DEV==="true"&&Er.injectIntoDevTools(),o.patchConsole&&this.patchConsole(),this.interactive&&(o.stdout.on("resize",this.resized),this.unsubscribeResize=()=>{o.stdout.off("resize",this.resized)}),this.initKittyKeyboard(),this.exitPromise=new Promise((m,E)=>{this.resolveExitPromise=m,this.rejectExitPromise=E}),this.exitPromise.catch(KC)}resized=i(()=>{let o=Du(this.options.stdout).columns;o<this.lastTerminalWidth&&(this.log.clear(),this.lastOutput="",this.lastOutputToRender=""),this.calculateLayout(),h0(this.rootNode),this.onRender(),this.lastTerminalWidth=o},"resized");resolveExitPromise=i(()=>{},"resolveExitPromise");rejectExitPromise=i(()=>{},"rejectExitPromise");unsubscribeExit=i(()=>{},"unsubscribeExit");handleAppExit=i(o=>{if(!(this.isUnmounted||this.isUnmounting)){if(aR(o)){this.unmount(o);return}this.exitResult=o,this.unmount()}},"handleAppExit");setCursorPosition=i(o=>{this.cursorPosition=o,this.log.setCursorPosition(o)},"setCursorPosition");restoreLastOutput=i(()=>{this.interactive&&(this.log.setCursorPosition(this.cursorPosition),this.log(this.lastOutputToRender||this.lastOutput+`
286
+ `))},"restoreLastOutput");calculateLayout=i(()=>{let o=Du(this.options.stdout).columns;this.rootNode.yogaNode.setWidth(o),this.rootNode.yogaNode.calculateLayout(void 0,void 0,st.DIRECTION_LTR)},"calculateLayout");handleStaticChange=i(()=>{this.fullStaticOutput=""},"handleStaticChange");onRender=i(()=>{if(this.hasPendingThrottledRender=!1,this.isUnmounted)return;if(this.isSuspended){this.nextRenderCommit&&(this.nextRenderCommit.resolve(),this.nextRenderCommit=void 0);return}this.nextRenderCommit&&(this.nextRenderCommit.resolve(),this.nextRenderCommit=void 0);let o=performance.now(),{output:r,outputHeight:c,staticOutput:u}=OC(this.rootNode,this.isScreenReaderEnabled);this.options.onRender?.({renderTime:performance.now()-o});let f=u&&u!==`
287
+ `;if(this.options.debug){f&&(this.fullStaticOutput+=u),this.lastOutput=r,this.lastOutputToRender=r,this.lastOutputHeight=c,this.options.stdout.write(this.fullStaticOutput+r);return}if(!this.interactive){f&&this.options.stdout.write(u),this.lastOutput=r,this.lastOutputToRender=r+`
288
+ `,this.lastOutputHeight=c;return}if(this.isScreenReaderEnabled){let m=this.shouldSync();if(m&&this.options.stdout.write(Xf),f){let v=this.lastOutputHeight>0?vo.eraseLines(this.lastOutputHeight):"";this.options.stdout.write(v+u),this.lastOutputHeight=0}if(r===this.lastOutput&&!f){m&&this.options.stdout.write(ed);return}let E=Du(this.options.stdout).columns,S=Ws(r,E,{trim:!1,hard:!0});if(f)this.options.stdout.write(S);else{let v=this.lastOutputHeight>0?vo.eraseLines(this.lastOutputHeight):"";this.options.stdout.write(v+S)}this.lastOutput=r,this.lastOutputToRender=S,this.lastOutputHeight=S===""?0:S.split(`
289
+ `).length,m&&this.options.stdout.write(ed);return}f&&(this.fullStaticOutput+=u),this.renderInteractiveFrame(r,c,f?u:"")},"onRender");render(o){let r=sR.default.createElement(vc.Provider,{value:{isScreenReaderEnabled:this.isScreenReaderEnabled}},sR.default.createElement(QH,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,exitOnCtrlC:this.options.exitOnCtrlC,interactive:this.interactive,renderThrottleMs:this.renderThrottleMs,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,setCursorPosition:this.setCursorPosition,onExit:this.handleAppExit,onWaitUntilRenderFlush:this.waitUntilRenderFlush,onSuspendTerminal:this.suspendTerminal,onRegisterInputControl:this.registerInputControl},o));this.options.concurrent?Er.updateContainer(r,this.container,null,KC):(Er.updateContainerSync(r,this.container,null,KC),Er.flushSyncWork())}writeToStdout(o){if(this.isUnmounted||this.isSuspended)return;if(this.options.debug){this.options.stdout.write(o+this.fullStaticOutput+this.lastOutput);return}if(!this.interactive){this.options.stdout.write(o);return}let r=this.shouldSync();r&&this.options.stdout.write(Xf),this.log.clear(),this.options.stdout.write(o),this.restoreLastOutput(),r&&this.options.stdout.write(ed)}writeToStderr(o){if(this.isUnmounted||this.isSuspended)return;if(this.options.debug){this.options.stderr.write(o),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(!this.interactive){this.options.stderr.write(o);return}let r=this.shouldSync();r&&this.options.stdout.write(Xf),this.log.clear(),this.options.stderr.write(o),this.restoreLastOutput(),r&&this.options.stdout.write(ed)}unmount(o){if(this.isUnmounted||this.isUnmounting)return;this.isUnmounting=!0,this.beforeExitHandler&&(YC.off("beforeExit",this.beforeExitHandler),this.beforeExitHandler=void 0);let r=this.options.stdout,{canWriteToStdout:c,hasWritableState:u}=q0(r);qm(this.throttledOnRender,c),c&&(!this.throttledOnRender||!this.hasPendingThrottledRender&&this.fullStaticOutput==="")&&(this.calculateLayout(),this.onRender()),this.isUnmounted=!0,this.unsubscribeExit(),qm(this.throttledLog,c),typeof this.restoreConsole=="function"&&this.restoreConsole();let f=i(()=>{typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),this.cancelKittyDetection&&this.cancelKittyDetection(),c&&(this.kittyProtocolEnabled&&this.writeBestEffort(this.options.stdout,"\x1B[<u"),this.alternateScreen&&(this.writeBestEffort(this.options.stdout,vo.exitAlternativeScreen),this.writeBestEffort(this.options.stdout,G1),this.alternateScreen=!1),this.interactive?this.options.debug||this.log.done():this.options.stdout.write(this.options.debug?`
290
+ `:this.lastOutput+`
291
+ `)),this.kittyProtocolEnabled=!1,LC.delete(this.options.stdout);let{exitResult:E}=this,S=i(()=>{aR(o)?this.rejectExitPromise(o):this.resolveExitPromise(E)},"resolveOrReject");o!==void 0&&!aR(o)?S():c&&u?this.options.stdout.write("",S):setImmediate(S)},"finishUnmount"),m=Er;this.options.concurrent?(Er.updateContainerSync(null,this.container,null,KC),Er.flushSyncWork(),m.flushPassiveEffects?.(),f()):(Er.updateContainerSync(null,this.container,null,KC),Er.flushSyncWork(),f())}async waitUntilExit(){return this.beforeExitHandler||(this.beforeExitHandler=()=>{this.unmount()},YC.once("beforeExit",this.beforeExitHandler)),this.exitPromise}async waitUntilRenderFlush(){if(this.isUnmounted||this.isUnmounting){await this.awaitExit();return}if(await RH(),this.isUnmounted||this.isUnmounting){await this.awaitExit();return}if(this.isConcurrent&&this.hasPendingConcurrentWork()&&(await Promise.race([this.awaitNextRender(),this.awaitExit()]),this.isUnmounted||this.isUnmounting)){this.nextRenderCommit=void 0,await this.awaitExit();return}Er.flushSyncWork();let o=this.options.stdout,{canWriteToStdout:r,hasWritableState:c}=q0(o);if(qm(this.throttledOnRender,r),qm(this.throttledLog,r),r&&c){await new Promise(u=>{this.options.stdout.write("",()=>{u()})});return}await RH()}clear(){this.interactive&&!this.options.debug&&(this.log.clear(),this.log.sync(this.lastOutputToRender||this.lastOutput+`
292
+ `))}patchConsole(){this.options.debug||(this.restoreConsole=Z2((o,r)=>{o==="stdout"&&this.writeToStdout(r),o==="stderr"&&(r.startsWith("The above error occurred")||this.writeToStderr(r))}))}registerInputControl(o,r){this.pauseInput=o,this.resumeInput=r}async suspendTerminal(o){if(this.beginSuspend(),o){try{await o()}finally{await this.endSuspend()}return}let r=i(async()=>{await this.endSuspend()},"resume");return{resume:r,[Symbol.asyncDispose]:r}}setAlternateScreen(o){this.alternateScreen=this.resolveAlternateScreenOption(o,this.interactive),this.alternateScreen&&(this.writeBestEffort(this.options.stdout,vo.enterAlternativeScreen),this.writeBestEffort(this.options.stdout,Jf))}resolveInteractiveOption(o){return o??(!jB&&!!this.options.stdout.isTTY)}resolveAlternateScreenOption(o,r){return!!o&&r&&!!this.options.stdout.isTTY}shouldSync(){return UO(this.options.stdout,this.interactive)}writeBestEffort(o,r){try{o.write(r)}catch{}}async awaitExit(){try{await this.exitPromise}catch{}}hasPendingConcurrentWork(){let o=this.container;return(o.pendingLanes??0)!==0&&o.callbackNode!==void 0&&o.callbackNode!==null}async awaitNextRender(){if(!this.nextRenderCommit){let o,r=new Promise(c=>{o=c});this.nextRenderCommit={promise:r,resolve:o}}return this.nextRenderCommit.promise}renderInteractiveFrame(o,r,c){let u=c!=="",f=this.options.stdout.isTTY,m=f?Du(this.options.stdout).rows:24,S=f&&r>=m?o:o+`
293
+ `;if(bK({isTty:f,viewportRows:m,previousOutputHeight:this.lastOutputHeight,nextOutputHeight:r,isUnmounting:this.isUnmounting})){let b=this.shouldSync();b&&this.options.stdout.write(Xf),this.options.stdout.write(vo.clearTerminal+this.fullStaticOutput+S),this.lastOutput=o,this.lastOutputToRender=S,this.lastOutputHeight=r,this.log.sync(S),b&&this.options.stdout.write(ed);return}if(u){let b=this.shouldSync();b&&this.options.stdout.write(Xf),this.log.clear(),this.options.stdout.write(c),this.log(S),b&&this.options.stdout.write(ed)}else(o!==this.lastOutput||this.log.isCursorDirty())&&this.throttledLog(S);this.lastOutput=o,this.lastOutputToRender=S,this.lastOutputHeight=r}initKittyKeyboard(){if(!this.options.kittyKeyboard)return;let o=this.options.kittyKeyboard,r=o.mode??"auto";if(r==="disabled")return;let c=o.flags??["disambiguateEscapeCodes"];if(r==="enabled"){this.options.stdin.isTTY&&this.options.stdout.isTTY&&this.enableKittyProtocol(c);return}!this.interactive||!this.options.stdin.isTTY||!this.options.stdout.isTTY||this.confirmKittySupport(c)}confirmKittySupport(o){let{stdin:r,stdout:c}=this.options,u=[],f=i(()=>{this.cancelKittyDetection=void 0,clearTimeout(E),r.removeListener("data",m);let S=vK(u);u=[],S.length>0&&r.unshift(Uint8Array.from(S))},"cleanup"),m=i(S=>{let v=typeof S=="string"?pK.encode(S):S;for(let b of v)u.push(b);SK(u)&&(f(),this.isUnmounted||this.enableKittyProtocol(o))},"onData");r.on("data",m);let E=setTimeout(f,200);this.cancelKittyDetection=f,c.write("\x1B[?u")}enableKittyProtocol(o){this.options.stdout.write(`\x1B[>${iR(o)}u`),this.kittyProtocolEnabled=!0,this.kittyFlags=o}beginSuspend(){if(this.isSuspended)throw new Error("The terminal is already suspended. Resume the current suspension before suspending again.");if(this.isSuspended=!0,!(!this.interactive||this.isUnmounted||this.isUnmounting))try{let o=this.options.stdout,{canWriteToStdout:r}=q0(o);qm(this.throttledOnRender,r),qm(this.throttledLog,r),r&&(this.log.clear(),this.log.done(),this.kittyProtocolEnabled&&this.writeBestEffort(this.options.stdout,"\x1B[<u"),this.alternateScreen&&this.writeBestEffort(this.options.stdout,vo.exitAlternativeScreen)),this.pauseInput?.()}catch(o){this.isSuspended=!1;try{this.resumeInput?.()}catch{}throw o}}async endSuspend(){if(!this.isSuspended||(this.isSuspended=!1,this.resumeInput?.(),!this.interactive||this.isUnmounted||this.isUnmounting))return;let o=this.options.stdout,{canWriteToStdout:r}=q0(o);r&&(this.alternateScreen&&this.writeBestEffort(this.options.stdout,vo.enterAlternativeScreen),this.kittyProtocolEnabled&&this.kittyFlags&&this.writeBestEffort(this.options.stdout,`\x1B[>${iR(this.kittyFlags)}u`)),this.lastOutput="",this.lastOutputToRender="",this.lastOutputHeight=0,this.log.reset();try{this.calculateLayout(),this.onRender(),await this.waitUntilRenderFlush()}catch{}}}});import{Stream as RK}from"node:stream";import PC from"node:process";var wK,J0,xK,DK,TH=L(async()=>{await DH();q1();wK=i((e,o)=>{let r={stdout:PC.stdout,stdin:PC.stdin,stderr:PC.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,maxFps:30,incrementalRendering:!1,concurrent:!1,alternateScreen:!1,...xK(o)},c=DK(r.stdout,()=>new qC(r));return c.render(e),{rerender:c.render,unmount(){c.unmount()},waitUntilExit:c.waitUntilExit,waitUntilRenderFlush:c.waitUntilRenderFlush,cleanup(){c.unmount()},clear:c.clear}},"render"),J0=wK,xK=i((e={})=>e instanceof RK?{stdout:e,stdin:PC.stdin}:e,"getOptions"),DK=i((e,o)=>{let r=LC.get(e);if(r===void 0){let c=o();return LC.set(e,c),c}return PC.stderr.write(`Warning: render() was called again for the same stdout before the previous Ink instance was unmounted. Reusing stdout across multiple render() calls is unsupported. Call unmount() first.
294
+ `),r},"getInstance")});var _H,TK,NH,MH=L(async()=>{await XA();_H=Ue($B(),1);await DC();await L1();await RC();TK=i((e,o)=>{let r=o?.columns??80,c=km("ink-root"),u="";c.onComputeLayout=()=>{c.yogaNode.setWidth(r),c.yogaNode.calculateLayout(void 0,void 0,st.DIRECTION_LTR)},c.onImmediateRender=()=>{let{staticOutput:S}=OC(c,!1);S&&S!==`
295
+ `&&(u+=S)};let f,m=Er.createContainer(c,_H.LegacyRoot,null,!1,null,"render-to-string",S=>{f??=S},()=>{},()=>{},()=>{}),E=!1;try{Er.updateContainerSync(e,m,null,()=>{}),Er.flushSyncWork();let{output:S}=OC(c,!1);if(Er.updateContainerSync(null,m,null,()=>{}),Er.flushSyncWork(),E=!0,c.yogaNode.free(),f!==void 0)throw f instanceof Error?f:new Error(String(f));let v=u.endsWith(`
296
+ `)?u.slice(0,-1):u;return v&&S?v+`
297
+ `+S:v||S}finally{if(!E&&c.yogaNode)try{c.yogaNode.freeRecursive()}catch{}}},"renderToString"),NH=TK});function JC(e){let{items:o,children:r,style:c}=e,[u,f]=(0,_u.useState)(0),m=(0,_u.useMemo)(()=>o.slice(u),[o,u]);(0,_u.useLayoutEffect)(()=>{f(o.length)},[o.length]);let E=m.map((v,b)=>r(v,u+b)),S=(0,_u.useMemo)(()=>({position:"absolute",flexDirection:"column",...c}),[c]);return _u.default.createElement("ink-box",{internal_static:!0,style:S},E)}var _u,OH=L(()=>{_u=Ue(Nt(),1);i(JC,"Static")});function lR({children:e,transform:o,accessibilityLabel:r}){let{isScreenReaderEnabled:c}=(0,j0.useContext)(vc);return e==null?null:j0.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:o},c&&r?r:e)}var j0,HH=L(()=>{j0=Ue(Nt(),1);Ym();i(lR,"Transform")});function cR({count:e=1}){return kH.default.createElement("ink-text",null,`
298
+ `.repeat(e))}var kH,UH=L(()=>{kH=Ue(Nt(),1);i(cR,"Newline")});function uR(){return LH.default.createElement(Rt,{flexGrow:1})}var LH,GH=L(()=>{LH=Ue(Nt(),1);F0();i(uR,"Spacer")});function JH(e){return e===3?"release":e===2?"repeat":"press"}function jH(e){return{ctrl:!!(e&Gl.ctrl),shift:!!(e&Gl.shift),meta:!!(e&(Gl.meta|Gl.alt)),super:!!(e&Gl.super),hyper:!!(e&Gl.hyper),capsLock:!!(e&Gl.capsLock),numLock:!!(e&Gl.numLock)}}var FH,_K,NK,KH,YH,MK,OK,qH,HK,kK,UK,zH,PH,AR,LK,GK,FK,VH,XH=L(()=>{Y0();FH=new TextDecoder,_K=/^(?:\x1b)([a-zA-Z0-9])$/,NK=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,KH={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[P":"f1","[Q":"f2","[R":"f3","[S":"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},YH=[...Object.values(KH),"backspace"],MK=i(e=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(e),"isShiftKey"),OK=i(e=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(e),"isCtrlKey"),qH=/^\x1b\[(\d+)(?:;(\d+)(?::(\d+))?(?:;([\d:]+))?)?u$/,HK=/^\x1b\[(\d+);(\d+):(\d+)([A-Za-z~])$/,kK={A:"up",B:"down",C:"right",D:"left",E:"clear",F:"end",H:"home",P:"f1",Q:"f2",R:"f3",S:"f4"},UK={2:"insert",3:"delete",5:"pageup",6:"pagedown",7:"home",8:"end",11:"f1",12:"f2",13:"f3",14:"f4",15:"f5",17:"f6",18:"f7",19:"f8",20:"f9",21:"f10",23:"f11",24:"f12"},zH={27:"escape",9:"tab",127:"backspace",8:"backspace",57358:"capslock",57359:"scrolllock",57360:"numlock",57361:"printscreen",57362:"pause",57363:"menu",57376:"f13",57377:"f14",57378:"f15",57379:"f16",57380:"f17",57381:"f18",57382:"f19",57383:"f20",57384:"f21",57385:"f22",57386:"f23",57387:"f24",57388:"f25",57389:"f26",57390:"f27",57391:"f28",57392:"f29",57393:"f30",57394:"f31",57395:"f32",57396:"f33",57397:"f34",57398:"f35",57399:"kp0",57400:"kp1",57401:"kp2",57402:"kp3",57403:"kp4",57404:"kp5",57405:"kp6",57406:"kp7",57407:"kp8",57408:"kp9",57409:"kpdecimal",57410:"kpdivide",57411:"kpmultiply",57412:"kpsubtract",57413:"kpadd",57414:"kpenter",57415:"kpequal",57416:"kpseparator",57417:"kpleft",57418:"kpright",57419:"kpup",57420:"kpdown",57421:"kppageup",57422:"kppagedown",57423:"kphome",57424:"kpend",57425:"kpinsert",57426:"kpdelete",57427:"kpbegin",57428:"mediaplay",57429:"mediapause",57430:"mediaplaypause",57431:"mediareverse",57432:"mediastop",57433:"mediafastforward",57434:"mediarewind",57435:"mediatracknext",57436:"mediatrackprevious",57437:"mediarecord",57438:"lowervolume",57439:"raisevolume",57440:"mutevolume",57441:"leftshift",57442:"leftcontrol",57443:"leftalt",57444:"leftsuper",57445:"lefthyper",57446:"leftmeta",57447:"rightshift",57448:"rightcontrol",57449:"rightalt",57450:"rightsuper",57451:"righthyper",57452:"rightmeta",57453:"isoLevel3Shift",57454:"isoLevel5Shift"},PH=i(e=>e>=0&&e<=1114111&&!(e>=55296&&e<=57343),"isValidCodepoint"),AR=i(e=>PH(e)?String.fromCodePoint(e):"?","safeFromCodePoint");i(JH,"resolveEventType");i(jH,"parseKittyModifiers");LK=i(e=>{let o=qH.exec(e);if(!o)return null;let r=parseInt(o[1],10),c=o[2]?Math.max(0,parseInt(o[2],10)-1):0,u=o[3]?parseInt(o[3],10):1,f=o[4];if(!PH(r))return null;let m;f&&(m=f.split(":").map(v=>AR(parseInt(v,10))).join(""));let E,S;return r===32?(E="space",S=!0):r===13?(E="return",S=!0):zH[r]?(E=zH[r],S=!1):r>=1&&r<=26?(E=String.fromCodePoint(r+96),S=!1):(E=AR(r).toLowerCase(),S=!0),S&&!m&&(m=AR(r)),{name:E,...jH(c),eventType:JH(u),sequence:e,raw:e,isKittyProtocol:!0,isPrintable:S,text:m}},"parseKittyKeypress"),GK=i(e=>{let o=HK.exec(e);if(!o)return null;let r=parseInt(o[1],10),c=Math.max(0,parseInt(o[2],10)-1),u=parseInt(o[3],10),f=o[4],m=f==="~"?UK[r]:kK[f];return m?{name:m,...jH(c),eventType:JH(u),sequence:e,raw:e,isKittyProtocol:!0,isPrintable:!1}:null},"parseKittySpecialKey"),FK=i((e="")=>{let o;e instanceof Uint8Array?e[0]>127&&e[1]===void 0?(e[0]-=128,e="\x1B"+FH.decode(e)):e=FH.decode(e):e!==void 0&&typeof e!="string"?e=String(e):e||(e="");let r=LK(e);if(r)return r;let c=GK(e);if(c)return c;if(qH.test(e))return{name:"",ctrl:!1,meta:!1,shift:!1,sequence:e,raw:e,isKittyProtocol:!0,isPrintable:!1};let u={name:"",ctrl:!1,meta:!1,shift:!1,sequence:e,raw:e};if(u.sequence=u.sequence||e||u.name,e==="\r"||e==="\x1B\r")u.raw=void 0,u.name="return",u.meta=e.length===2;else if(e===`
299
+ `)u.name="enter";else if(e===" ")u.name="tab";else if(e==="\b"||e==="\x1B\b")u.name="backspace",u.meta=e.charAt(0)==="\x1B";else if(e==="\x7F"||e==="\x1B\x7F")u.name="backspace",u.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")u.name="escape",u.meta=e.length===2;else if(e===" "||e==="\x1B ")u.name="space",u.meta=e.length===2;else if(e.length===1&&e<="")u.name=String.fromCharCode(e.charCodeAt(0)+97-1),u.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")u.name="number";else if(e.length===1&&e>="a"&&e<="z")u.name=e;else if(e.length===1&&e>="A"&&e<="Z")u.name=e.toLowerCase(),u.shift=!0;else if(o=_K.exec(e))u.name=o[1].toLowerCase(),u.meta=!0,u.shift=/^[A-Z]$/.test(o[1]);else if(o=NK.exec(e)){let f=[...e];f[0]==="\x1B"&&f[1]==="\x1B"&&(u.meta=!0);let m=[o[1],o[2],o[4],o[6]].filter(Boolean).join(""),E=(o[3]||o[5]||1)-1;u.ctrl=!!(E&4),u.meta=u.meta||!!(E&10),u.shift=!!(E&1),u.code=m,u.name=KH[m]??"",u.shift=MK(m)||u.shift,u.ctrl=OK(m)||u.ctrl}return u},"parseKeypress"),VH=FK});var dR,zK,V0,X0,jC=L(()=>{dR=Ue(Nt(),1);J1();zK=i(()=>(0,dR.useContext)(GC),"useStdin"),V0=i(()=>(0,dR.useContext)(GC),"useStdinContext"),X0=zK});var VC,KK,bo,ZH=L(async()=>{VC=Ue(Nt(),1);XH();await DC();jC();KK=i((e,o={})=>{let{setRawMode:r,internal_exitOnCtrlC:c,internal_eventEmitter:u}=V0();(0,VC.useEffect)(()=>{if(o.isActive!==!1)return r(!0),()=>{r(!1)}},[o.isActive,r]);let f=(0,VC.useEffectEvent)(m=>{let E=VH(m),S={upArrow:E.name==="up",downArrow:E.name==="down",leftArrow:E.name==="left",rightArrow:E.name==="right",pageDown:E.name==="pagedown",pageUp:E.name==="pageup",home:E.name==="home",end:E.name==="end",return:E.name==="return",escape:E.name==="escape",ctrl:E.ctrl,shift:E.shift,tab:E.name==="tab",backspace:E.name==="backspace",delete:E.name==="delete",meta:E.meta,super:E.super??!1,hyper:E.hyper??!1,capsLock:E.capsLock??!1,numLock:E.numLock??!1,eventType:E.eventType},v;E.isKittyProtocol?E.isPrintable?v=E.text??E.name:E.ctrl&&E.name.length===1?v=E.name:v="":E.ctrl?v=E.name??"":v=E.sequence,!E.isKittyProtocol&&YH.includes(E.name)&&(v=""),v.startsWith("\x1B")&&(v=v.slice(1)),v.length===1&&/[A-Z]/.test(v)&&(S.shift=!0),!(v==="c"&&S.ctrl&&c)&&Er.discreteUpdates(()=>{e(v,S)})});(0,VC.useEffect)(()=>{if(o.isActive!==!1)return u.on("input",f),()=>{u.removeListener("input",f)}},[o.isActive,u])},"useInput"),bo=KK});var XC,YK,Qc,WH=L(async()=>{XC=Ue(Nt(),1);await DC();jC();YK=i((e,o={})=>{let{setRawMode:r,setBracketedPasteMode:c,internal_eventEmitter:u}=V0();(0,XC.useEffect)(()=>{if(o.isActive!==!1)return r(!0),c(!0),()=>{r(!1),c(!1)}},[o.isActive,r,c]);let f=(0,XC.useEffectEvent)(m=>{Er.discreteUpdates(()=>{e(m)})});(0,XC.useEffect)(()=>{if(o.isActive!==!1)return u.on("paste",f),()=>{u.removeListener("paste",f)}},[o.isActive,u])},"usePaste"),Qc=YK});var $H,qK,Z0,ek=L(()=>{$H=Ue(Nt(),1);P1();qK=i(()=>(0,$H.useContext)(M0),"useApp"),Z0=qK});var tk,PK,Pm,fR=L(()=>{tk=Ue(Nt(),1);j1();PK=i(()=>(0,tk.useContext)(O0),"useStdout"),Pm=PK});var nk,JK,ok,rk=L(()=>{nk=Ue(Nt(),1);V1();JK=i(()=>(0,nk.useContext)(H0),"useStderr"),ok=JK});var nd,jK,ik,ak=L(()=>{nd=Ue(Nt(),1);k0();jC();jK=i(({isActive:e=!0,autoFocus:o=!1,id:r}={})=>{let{isRawModeSupported:c,setRawMode:u}=X0(),{activeId:f,add:m,remove:E,activate:S,deactivate:v,focus:b}=(0,nd.useContext)(Km),N=(0,nd.useMemo)(()=>r??Math.random().toString().slice(2,7),[r]);return(0,nd.useEffect)(()=>(m(N,{autoFocus:o}),()=>{E(N)}),[N,o,m,E]),(0,nd.useEffect)(()=>{e?S(N):v(N)},[e,N,S,v]),(0,nd.useEffect)(()=>{if(!(!c||!e))return u(!0),()=>{u(!1)}},[e,c,u]),{isFocused:!!N&&f===N,focus:b}},"useFocus"),ik=jK});var sk,VK,lk,ck=L(()=>{sk=Ue(Nt(),1);k0();VK=i(()=>{let e=(0,sk.useContext)(Km);return{enableFocus:e.enableFocus,disableFocus:e.disableFocus,focusNext:e.focusNext,focusPrevious:e.focusPrevious,focus:e.focus,activeId:e.activeId}},"useFocusManager"),lk=VK});var uk,XK,Ak,dk=L(()=>{uk=Ue(Nt(),1);Ym();XK=i(()=>{let{isScreenReaderEnabled:e}=(0,uk.useContext)(vc);return e},"useIsScreenReaderEnabled"),Ak=XK});var od,ZK,fk,gk=L(()=>{od=Ue(Nt(),1);Z1();ZK=i(()=>{let e=(0,od.useContext)(L0),o=(0,od.useRef)(void 0),r=(0,od.useCallback)(c=>{o.current=c},[]);return(0,od.useInsertionEffect)(()=>(e.setCursorPosition(o.current),()=>{e.setCursorPosition(void 0)})),{setCursorPosition:r}},"useCursor"),fk=ZK});function pR(e){let{interval:o=pk,isActive:r=!0}=e??{},c=$K(o),{subscribe:u,renderThrottleMs:f}=(0,Ka.useContext)(U0),[m,E]=(0,Ka.useState)(0),[S,v]=(0,Ka.useState)(gR),b=(0,Ka.useRef)(0),N=(0,Ka.useRef)(0),R=(0,Ka.useRef)({isActive:r,safeInterval:c,resetKey:m}),M=R.current,D=r&&(c!==M.safeInterval||!M.isActive||m!==M.resetKey),k=(0,Ka.useCallback)(()=>{E(H=>H+1)},[]);return(0,Ka.useLayoutEffect)(()=>{if(!r)return;v(gR);let H=0,{startTime:$,unsubscribe:Qe}=u(Ee=>{if(f>0&&Ee<b.current)return;let Me=Ee-H,ge=Ee-N.current;N.current=Ee,b.current=Ee+f,v({frame:Math.floor(Me/c),time:Me,delta:ge})},c);return H=$,N.current=$,b.current=H+f,Qe},[c,r,u,f,m]),(0,Ka.useLayoutEffect)(()=>{R.current={isActive:r,safeInterval:c,resetKey:m}},[r,c,m]),D?{...gR,reset:k}:{...S,reset:k}}function $K(e){return Number.isFinite(e)?Math.min(WK,Math.max(1,e)):pk}var Ka,pk,WK,gR,mk=L(()=>{Ka=Ue(Nt(),1);X1();pk=100,WK=2147483647,gR={frame:0,time:0,delta:0};i(pR,"useAnimation");i($K,"normalizeAnimationInterval")});var W0,eY,hk,Ek=L(()=>{W0=Ue(Nt(),1);Fb();fR();eY=i(()=>{let{stdout:e}=Pm(),[o,r]=(0,W0.useState)(()=>Du(e));return(0,W0.useEffect)(()=>{let c=i(()=>{r(Du(e))},"onResize");return e.on("resize",c),()=>{e.off("resize",c)}},[e]),o},"useWindowSize"),hk=eY});var bc,Ck,yk,tY,Ik,Bk=L(async()=>{bc=Ue(Nt(),1);await RC();Ck={width:0,height:0,left:0,top:0},yk=i(e=>{if(e)return e.parentNode?yk(e.parentNode):e.nodeName==="ink-root"?e:void 0},"findRootNode"),tY=i(e=>{let[o,r]=(0,bc.useState)(Ck),[c,u]=(0,bc.useState)(!1),f=(0,bc.useCallback)(()=>{let m=e.current?.yogaNode?.getComputedLayout()??Ck;r(E=>E.width!==m.width||E.height!==m.height||E.left!==m.left||E.top!==m.top?m:E),u(!!e.current)},[e]);return(0,bc.useEffect)(f),(0,bc.useEffect)(()=>{let m=yk(e.current);if(m)return OM(m,f)}),(0,bc.useMemo)(()=>({...o,hasMeasured:c}),[o,c])},"useBoxMetrics"),Ik=tY});var nY,Sk,vk=L(()=>{nY=i(e=>{let{yogaNode:o}=e;if(!o)return{x:0,y:0,width:0,height:0};let r=o.getComputedLeft(),c=o.getComputedTop(),u=e.parentNode;for(;u;)u.yogaNode&&(r+=u.yogaNode.getComputedLeft(),c+=u.yogaNode.getComputedTop()),u=u.parentNode;return{x:r,y:c,width:o.getComputedWidth(),height:o.getComputedHeight()}},"measureElement"),Sk=nY});var $0={};mi($0,{Box:()=>Rt,Newline:()=>cR,Spacer:()=>uR,Static:()=>JC,Text:()=>O,Transform:()=>lR,kittyFlags:()=>rR,kittyModifiers:()=>Gl,measureElement:()=>Sk,render:()=>J0,renderToString:()=>NH,useAnimation:()=>pR,useApp:()=>Z0,useBoxMetrics:()=>Ik,useCursor:()=>fk,useFocus:()=>ik,useFocusManager:()=>lk,useInput:()=>bo,useIsScreenReaderEnabled:()=>Ak,usePaste:()=>Qc,useStderr:()=>ok,useStdin:()=>X0,useStdout:()=>Pm,useWindowSize:()=>hk});var Cr=L(async()=>{await TH();await MH();F0();eR();OH();HH();UH();GH();await ZH();await WH();ek();jC();fR();rk();ak();ck();dk();gk();mk();Ek();await Bk();vk();Y0()});function mR(e,o){if(o===0)return!0;let r=e[o-1];if(oY.has(r))return!0;let c=e[o];return r>="a"&&r<="z"&&c>="A"&&c<="Z"}function hR(e,o,r=!1){let c=e.toLowerCase(),u=o.toLowerCase();if(!c)return{score:0,positions:[]};if(c.length>u.length)return null;let f=null;for(let v=u.indexOf(c);v!==-1;v=u.indexOf(c,v+1)){let b=mR(o,v),N=1e3+c.length*16+(b?120:0)+(v===0?60:0)-v-u.length*.5;(!f||N>f.score)&&(f={score:N,positions:Array.from({length:c.length},(R,M)=>v+M)})}if(f)return f;if(r)return null;let m=[],E=0,S=0;for(let v=0;v<c.length;v++){let b=c[v],N=m[m.length-1],R=-1;if(N!==void 0&&u[N+1]===b)R=N+1;else for(let M=u.indexOf(b,S);M!==-1;M=u.indexOf(b,M+1))if(mR(o,M)){R=M;break}if(R===-1)return null;E+=16+(mR(o,R)?24:12),m.push(R),S=R+1}return E-=u.length*.5,{score:E,positions:m}}function rY(e,o,r=[],c=[]){let u=e.trim().split(/\s+/).filter(Boolean),f=o.map(()=>[]);if(!u.length)return{score:0,positions:f};let m=0;for(let E of u){let S=-1/0,v=-1,b=null;if(o.forEach((N,R)=>{let M=hR(E,N,c[R]??!1);if(!M)return;let D=M.score*(r[R]??1);D>S&&(S=D,v=R,b=M)}),!b||v<0)return null;m+=S,f[v].push(...b.positions)}for(let E of f)E.sort((S,v)=>S-v);return{score:m,positions:f}}function nl(e,o=[]){if(!o.length)return e?[{text:e,hit:!1}]:[];let r=new Set(o),c=[];for(let u=0;u<e.length;u++){let f=r.has(u),m=c[c.length-1];m&&m.hit===f?m.text+=e[u]:c.push({text:e[u],hit:f})}return c}function Rc(e,o,r,c,u){let f=[];return e.forEach((m,E)=>{let S=rY(o,r(m),c,u);S&&f.push({item:m,match:S,index:E})}),o.trim()&&f.sort((m,E)=>E.match.score-m.match.score||m.index-E.index),f.map(({item:m,match:E})=>({item:m,match:E}))}var oY,rd=L(()=>{"use strict";oY=new Set([" ","/","-","_",".",":","@","~","(","["]);i(mR,"isBoundary");i(hR,"fuzzyMatch");i(rY,"matchFields");i(nl,"highlightSegments");i(Rc,"rankBy")});function Nu(e){let o=[];return e.forEach((r,c)=>{r.kind==="item"&&o.push(c)}),o}function Kr(e,o,r){return r<=0?0:((e+o)%r+r)%r}function Ci(e,o,r,c){return r<=0?0:Math.max(0,Math.min(r-1,e+o*Math.max(1,c)))}function Qk(e,o,r,c){let u=e.length;if(u<=c||c<=0)return 0;let f=Math.max(0,Math.min(o,u-c)),m=e[r-1]?.kind==="header"?r-1:r;return m<f&&(f=m),r>=f+c&&(f=r-c+1),Math.max(0,Math.min(f,u-c))}function bk(e,o){for(let r=o;r>=0;r--){let c=e[r];if(c?.kind==="header")return c.label}}function id(e,o){let r=[];for(let c of e)if(c.items.length){r.push({kind:"header",key:`h:${c.key}`,label:c.label,...c.detail?{detail:c.detail}:{}});for(let u of c.items)r.push({kind:"item",key:`${c.key}:${o(u)}`,item:u})}return r}function ol(e,o){return e.map(r=>({kind:"item",key:o(r),item:r}))}var Mu=L(()=>{"use strict";i(Nu,"itemRowIndices");i(Kr,"stepSelection");i(Ci,"pageSelection");i(Qk,"followSelection");i(bk,"sectionOf");i(id,"sectioned");i(ol,"flatRows")});function rl(e){let o=(0,Rk.useRef)(0),{rows:r}=e;if(!r.length)return o.current=0,(0,Fl.jsx)(O,{dimColor:!0,children:e.empty??C("pickers.list.empty")});let c=Nu(r),u=c[Math.max(0,Math.min(e.selected,c.length-1))]??0,f=Math.max(1,e.height),E=r.length>f&&f>2,S=E?f-2:Math.min(f,r.length),v=Qk(r,o.current,u,S);o.current=v;let b=r.slice(v,v+S),N=r.length-v-b.length,R=Math.max(0,e.width-2),M=v>0&&r[v]?.kind!=="header"?bk(r,v):void 0;return(0,Fl.jsxs)(Rt,{flexDirection:"column",children:[E?(0,Fl.jsx)(O,{dimColor:!0,wrap:"truncate",children:v>0?` \u2191 ${C("pickers.list.more",{count:v})}${M?` \xB7 ${M}`:""}`:" "}):null,b.map((D,k)=>{let H=v+k;if(D.kind==="header")return(0,Fl.jsxs)(O,{wrap:"truncate",children:[(0,Fl.jsx)(O,{bold:!0,color:"gray",children:` ${D.label}`}),D.detail?(0,Fl.jsx)(O,{dimColor:!0,children:` ${D.detail}`}):null]},D.key);let $=H===u;return(0,Fl.jsxs)(O,{wrap:"truncate",children:[$?(0,Fl.jsx)(O,{color:Pn,children:"\u276F "}):" ",e.renderItem(D.item,{selected:$,width:R})]},D.key)}),E?(0,Fl.jsx)(O,{dimColor:!0,wrap:"truncate",children:N>0?` \u2193 ${C("pickers.list.more",{count:N})}`:" "}):null]})}function ad(e,o){let r=[];for(let c of e){if(!c)continue;let u=[...r,c].join(" \xB7 ");Ot(u)<=o&&r.push(c)}return r.join(" \xB7 ")}function aY(e,o){if(o<=0)return"";if(Ot(e)<=o)return e;let r=0,c="";for(let{segment:u}of iY.segment(e)){let f=Ot(u);if(r+f>o)break;r+=f,c+=u}return c}function ld(e,o,r){let c=Ot(o),u=Math.max(0,r-c-(o?2:0)),f=Ot(e)>u?u?`${aY(e,u-1)}\u2026`:"":e;return{left:f,gap:o?" ".repeat(Math.max(0,r-Ot(f)-c)):""}}var Rk,Fl,Pn,sd,iY,Zf=L(async()=>{"use strict";Rk=Ue(Nt(),1);await Cr();Ea();Vt();Mu();Fl=Ue(Sn(),1),Pn="#ff875f";i(rl,"SelectList");i(ad,"fitRight");sd=i(e=>Math.max(0,Math.floor(e*.45)),"rightBudget"),iY=new Intl.Segmenter(void 0,{granularity:"grapheme"});i(aY,"sliceToWidth");i(ld,"spread")});var Nk={};mi(Nk,{AuthWizard:()=>CR,providerPickerRows:()=>ER,signInInstructions:()=>_k});function ER(e,o,r=new Set){if(o.trim())return ol(Rc(e,o,E=>[E.label,E.id],[1,.6]).map(({item:E,match:S})=>({provider:E,positions:S.positions[0]})),E=>E.provider.id);let c=e.filter(E=>!E.connected&&r.has(E.id)),u=e.filter(E=>E.connected),f=e.filter(E=>!E.connected&&!r.has(E.id)&&(E.popular||E.custom)),m=e.filter(E=>!E.connected&&!r.has(E.id)&&!E.popular&&!E.custom);return id([{key:"env",label:C("auth.section.found"),items:c.map(E=>({provider:E}))},{key:"connected",label:C("auth.section.connected"),items:u.map(E=>({provider:E}))},{key:"popular",label:C("auth.section.popular"),items:f.map(E=>({provider:E}))},{key:"all",label:C("auth.section.all"),items:m.map(E=>({provider:E}))}],E=>E.provider.id)}function Jm(e){let o=e;return o?.code==="unknown-command"?C("auth.error.olderHost"):o?.message?`${o.code?`${o.code}: `:""}${o.message}`:String(e)}function _k(e){return e&&Object.hasOwn(xk,e)?C(xk[e]):e&&!/^[A-Za-z][A-Za-z0-9_.]*$/.test(e)?e:C("auth.signIn.default")}function Dk(e,o){return o?C("auth.signedInAs",{provider:e,account:o}):C("auth.signedIn",{provider:e})}function lY(e){let o=[];return e.oauth&&o.push(C("auth.way.signIn")),e.keyless&&o.push(C("auth.way.local")),e.keyConnectable&&o.push(C("auth.way.key")),o.join(" \xB7 ")}function Tk(e){let o=e?"\u2022".repeat(Math.min(e.length,18)):ie(C("auth.pasteHere")),r=e.length>18?ie(` ${C("auth.characters",{count:e.length})}`):"";return`${o}${r}${Kt("\u258C")}`}function CR(e){let o=(0,pn.useRef)(!0),r=(0,pn.useRef)(!1),c=(0,pn.useRef)(null),u=i(()=>o.current&&!r.current,"isActive"),f=i(()=>{let Be=c.current;c.current=null,Be&&e.client.command("auth.cancel",{providerId:Be}).catch(()=>{})},"cancelOAuth"),m=(0,pn.useRef)({step:"loading"}),[E,S]=(0,pn.useState)(m.current),v=(0,pn.useCallback)(Be=>{m.current=Be,S(Be)},[]),b=(0,pn.useRef)([]),[N,R]=(0,pn.useState)([]),M=(0,pn.useRef)(null),[D,k]=(0,pn.useState)(null),H=(0,pn.useRef)(0),[$,Qe]=(0,pn.useState)(0),Ee=(0,pn.useCallback)(Be=>{H.current=Be,Qe(Be)},[]),Ce=(0,pn.useRef)(""),[Me,ge]=(0,pn.useState)(""),Le=(0,pn.useRef)(!1),[le,ue]=(0,pn.useState)(!1),te=(0,pn.useCallback)(Be=>{Le.current=Be,ue(Be)},[]),[re,ee]=(0,pn.useState)(null),[Se,tt]=(0,pn.useState)(null),Ie=(0,pn.useRef)(""),[Pe,ct]=(0,pn.useState)(""),Je=(0,pn.useCallback)(Be=>{Ie.current=Be,ct(Be),H.current=0,Qe(0)},[]),W=(0,pn.useRef)(void 0),ut=(0,pn.useRef)(new Map),pt=(0,pn.useRef)(new Set),P=i(()=>ER(b.current,Ie.current,pt.current).flatMap(Be=>Be.kind==="item"?[Be.item.provider]:[]),"pickItems"),be=(0,pn.useCallback)(()=>b.current.some(Be=>Be.connected),[]),Xe=i((Be=be(),_e=W.current)=>{u()&&(r.current=!0,Ce.current="",f(),e.onClose(Be,_e))},"close");(0,pn.useEffect)(()=>(o.current=!0,()=>{o.current=!1,f()}),[e.client]);let oe=(0,pn.useCallback)(async()=>{try{let Be=await e.client.command("provider.list",void 0);return u()?(b.current=o2(Be),ut.current=new Map(hm(b.current,e.env??process.env).map(({provider:_e,key:at})=>[_e.id,at])),pt.current=new Set(ut.current.keys()),M.current=Be.defaultProviderId,R(b.current),k(Be.defaultProviderId),!0):!1}catch(Be){return u()&&v({step:"failed",message:Jm(Be)}),!1}},[e.client,e.env,v]);(0,pn.useEffect)(()=>{(async()=>await oe()&&v({step:"pick"}))()},[]);let nt=(0,pn.useCallback)(async Be=>{let _e=m.current;if(ee(null),!!await oe()&&m.current===_e){if(W.current&&b.current.some(at=>at.id===W.current&&at.connected)){c.current=null,Xe(!0,W.current);return}tt(Be),v({step:"pick"})}},[e,oe,v]),mt=(0,pn.useCallback)(async(Be,_e)=>{if(!Le.current){te(!0),ee(null);try{let at=await e.client.command("provider.connect",{providerId:Be.id,key:_e});if(!u())return;at.ok?(W.current=Be.id,await nt(at.unverified?C("auth.connectedUnverified",{provider:Be.label}):C("auth.connectedModels",{provider:Be.label,count:at.models}))):ee(`${at.code}: ${at.message}`)}catch(at){u()&&ee(Jm(at))}finally{u()&&te(!1)}}},[e.client,te,nt]),ne=(0,pn.useCallback)(async Be=>{if(!Le.current){te(!0),ee(null),c.current=Be.id;try{let _e=await e.client.command("auth.start",{providerId:Be.id});if(!u()){e.client.command("auth.cancel",{providerId:Be.id}).catch(()=>{});return}Ce.current="",ge(""),v(_e.kind==="pkce-paste"?{step:"oauth-code",provider:Be,start:_e}:{step:"oauth-wait",provider:Be,start:_e})}catch(_e){c.current=null,u()&&ee(Jm(_e))}finally{u()&&te(!1)}}},[e.client,te,v]),se=(0,pn.useCallback)(async Be=>{let _e=Ce.current.trim();if(!(!_e||Le.current)){te(!0),ee(null);try{let at=await e.client.command("auth.submitCode",{providerId:Be.id,code:_e});if(!u())return;at.ok?(W.current=Be.id,await nt(Dk(Be.label,at.account))):ee(at.error??C("auth.error.signInFailed"))}catch(at){u()&&ee(Jm(at))}finally{u()&&te(!1)}}},[e.client,te,nt]),Te=(0,pn.useCallback)(async Be=>{if(!Le.current){te(!0),ee(null);try{if(await e.client.command("provider.disconnect",{providerId:Be.id}),!u())return;W.current=void 0,await nt(C("auth.disconnected",{provider:Be.label}))}catch(_e){if(!u())return;ee(Jm(_e)),v({step:"pick"})}finally{u()&&te(!1)}}},[e.client,te,v,nt]),At=(0,pn.useCallback)((Be,_e)=>{switch(ee(null),tt(null),_e.kind){case"env":{let at=ut.current.get(Be.id);at&&mt(Be,at.value);return}case"key":Ce.current="",ge(""),v({step:"key",provider:Be});return;case"keyless":mt(Be);return;case"oauth":ne(Be);return;case"disconnect":v({step:"disconnect",provider:Be});return}},[mt,v,ne]);(0,pn.useEffect)(()=>{if(E.step!=="oauth-wait")return;let Be=E.provider,_e=!0,at=!1,Mt=i(()=>_e&&u()&&m.current===E,"isCurrent"),Re=i(async()=>{if(!(!Mt()||at)){at=!0;try{let he=await e.client.command("auth.result",{providerId:Be.id});if(!Mt()||!he.finish)return;clearInterval(xe),c.current=null,he.finish.ok?(W.current=Be.id,await nt(Dk(Be.label,he.finish.account))):(ee(he.finish.error??C("auth.error.signInFailed")),v({step:"pick"}))}catch(he){Mt()&&ee(Jm(he))}finally{at=!1}}},"check"),xe=setInterval(()=>{Re()},sY);return()=>{_e=!1,clearInterval(xe)}},[E.step==="oauth-wait"?E.provider.id:""]),bo((Be,_e)=>{if(!u())return;let at=m.current;if(_e.ctrl&&Be==="c"){Xe();return}if(!(Le.current&&at.step!=="oauth-wait"))switch(at.step){case"loading":_e.escape&&Xe();return;case"failed":(_e.escape||_e.return)&&Xe();return;case"pick":{let Mt=P(),Re=Mt.length;if(_e.escape){if(Ie.current)return Je("");Xe();return}if(_e.upArrow||_e.ctrl&&Be==="p")return Ee(Kr(H.current,-1,Re));if(_e.downArrow||_e.tab||_e.ctrl&&Be==="n")return Ee(Kr(H.current,1,Re));if(_e.pageUp)return Ee(Ci(H.current,-1,Re,wk));if(_e.pageDown)return Ee(Ci(H.current,1,Re,wk));if(_e.return){let xe=Mt[H.current];if(!xe)return;let he=n2(xe,ut.current.get(xe.id));if(!he.length){tt(C("auth.managedByAccount"));return}if(ee(null),he.length===1)return At(xe,he[0]);H.current=0,Qe(0),v({step:"method",provider:xe,methods:he});return}if(_e.backspace||_e.delete)return Je(Ie.current.slice(0,-1));if(_e.ctrl&&Be==="u")return Je("");if(Be&&!_e.ctrl&&!_e.meta&&!_e.upArrow&&!_e.downArrow){let xe=Be.replace(/[\x00-\x1f\x7f]/g,"");xe&&Je((Ie.current+xe).slice(0,60))}return}case"method":{let Mt=at.methods.length;if(_e.upArrow)return Ee((H.current-1+Mt)%Mt);if(_e.downArrow||_e.tab)return Ee((H.current+1)%Mt);if(_e.return)return At(at.provider,at.methods[H.current]);_e.escape&&(Ee(0),v({step:"pick"}));return}case"key":case"oauth-code":{if(_e.return){at.step==="key"?Ce.current.trim()&&mt(at.provider,Ce.current.trim()):se(at.provider);return}if(_e.escape){at.step==="oauth-code"&&f(),v({step:"pick"});return}if(_e.backspace||_e.delete){Ce.current=Ce.current.slice(0,-1),ge(Ce.current);return}Be&&!_e.ctrl&&!_e.meta&&!_e.tab&&!_e.upArrow&&!_e.downArrow&&(Ce.current+=Be.replace(/[\x00-\x1f\x7f]/g,""),ge(Ce.current));return}case"oauth-wait":{_e.escape&&(f(),v({step:"pick"}));return}case"disconnect":{if(Be==="y"||Be==="Y"||_e.return)return void Te(at.provider);(Be==="n"||Be==="N"||_e.escape)&&v({step:"pick"});return}}});let Qt=E.step==="pick"||E.step==="loading"||E.step==="failed"?`01 / ${C("auth.stage.choose")}`:E.step==="method"?`02 / ${C("auth.stage.method")}`:E.step==="key"||E.step==="oauth-code"||E.step==="oauth-wait"?`03 / ${C("auth.stage.connect")}`:`03 / ${C("auth.stage.disconnect")}`,Lt=(0,Ht.jsxs)(Rt,{flexDirection:"column",marginBottom:1,children:[(0,Ht.jsxs)(O,{children:[(0,Ht.jsx)(O,{color:"#ff875f",children:"\u2733 "}),(0,Ht.jsx)(O,{bold:!0,children:C("auth.title")}),(0,Ht.jsxs)(O,{dimColor:!0,children:[" \xB7 ",Qt]})]}),(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.subtitle")}),E.step==="pick"||E.step==="key"?(0,Ht.jsx)(O,{dimColor:!0,children:s2(e.spawned)}):null,Se?(0,Ht.jsx)(O,{children:It(`\u2713 ${Se}`)}):null,re?(0,Ht.jsx)(O,{children:Bt(`\u2715 ${re}`)}):null]}),gt=null;switch(E.step){case"loading":gt=(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.loading")});break;case"failed":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{children:Bt(`\u2715 ${E.message}`)}),(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.failedFooter")})]});break;case"pick":{let Be=ER(N,Pe,pt.current),_e=Math.max(5,Math.min(16,(e.terminalRows??30)-16));gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(O,{children:[(0,Ht.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),Pe,(0,Ht.jsx)(O,{color:Pn,children:"\u258C"}),Pe?null:(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.searchHint",{count:N.length})})]}),(0,Ht.jsx)(rl,{rows:Be,selected:$,height:_e,width:60,empty:C("auth.noMatch",{query:Pe}),renderItem:(at,{selected:Mt})=>{let Re=at.provider,xe=ut.current.get(Re.id),he=Re.connected?It(i2(Re)):xe?It(C("auth.tag.envFound",{name:xe.name})):ie(lY(Re));return(0,Ht.jsxs)(O,{children:[nl(Re.label,at.positions).map((Ze,Gt)=>(0,Ht.jsx)(O,{bold:Mt||Ze.hit,color:Ze.hit?Pn:void 0,children:Ze.text},Gt)),Re.id===D?ie(` \xB7 ${C("auth.tag.default")}`):"",Re.custom?ie(` ${C("auth.tag.custom")}`):""," ",he]})}}),(0,Ht.jsx)(O,{dimColor:!0,children:C(Pe?"auth.pickFooter.clear":be()?"auth.pickFooter.close":"auth.pickFooter.later")})]});break}case"method":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{bold:!0,children:E.provider.label}),E.methods.map((Be,_e)=>(0,Ht.jsxs)(O,{children:[_e===$?Kt("\u276F "):" ",(0,Ht.jsx)(O,{bold:_e===$,children:Be.label})]},Be.kind)),(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.methodFooter")})]});break;case"key":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(O,{children:[(0,Ht.jsx)(O,{bold:!0,children:C("auth.key.title",{provider:E.provider.label})}),E.provider.keyHint?ie(` (${E.provider.keyHint})`):""]}),E.provider.docsUrl?(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.key.getOne",{url:E.provider.docsUrl})}):null,(0,Ht.jsxs)(O,{children:[` ${C("auth.key.label")} `,Tk(Me)]}),(0,Ht.jsx)(O,{dimColor:!0,children:le?C("auth.key.checking"):C("auth.key.footer")})]});break;case"oauth-code":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{bold:!0,children:C("auth.oauth.title",{provider:E.provider.label})}),(0,Ht.jsx)(O,{wrap:"wrap",children:C("auth.oauth.open",{url:E.start.url})}),(0,Ht.jsx)(O,{dimColor:!0,children:_k(E.start.instructions)}),(0,Ht.jsxs)(O,{children:[` ${C("auth.oauth.codeLabel")} `,Tk(Me)]}),(0,Ht.jsx)(O,{dimColor:!0,children:le?C("auth.oauth.completing"):C("auth.oauth.codeFooter")})]});break;case"oauth-wait":{let Be=c2(e.env??process.env)?l2(E.start.url):void 0;gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{bold:!0,children:C("auth.oauth.title",{provider:E.provider.label})}),(0,Ht.jsx)(O,{wrap:"wrap",children:C("auth.oauth.open",{url:E.start.url})}),Be?(0,Ht.jsx)(O,{wrap:"wrap",color:"yellow",children:C("auth.oauth.remoteHint",{port:Be})}):null,E.start.userCode?(0,Ht.jsxs)(O,{children:[` ${C("auth.oauth.enterCodeInBrowser")} `,(0,Ht.jsx)(O,{bold:!0,children:E.start.userCode})]}):null,(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.oauth.waiting")})]});break}case"disconnect":gt=(0,Ht.jsxs)(O,{children:[`${C("auth.disconnect.confirm",{provider:E.provider.label})} `,ie(C("auth.disconnect.footer"))]});break}return(0,Ht.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"#ff875f",paddingX:1,children:[Lt,gt]})}var pn,Ht,wk,sY,xk,yR=L(async()=>{"use strict";pn=Ue(Nt(),1);await Cr();rb();GB();Vt();Bo();rd();Mu();await Zf();Ht=Ue(Sn(),1),wk=10;i(ER,"providerPickerRows");sY=1500;i(Jm,"errText");xk={authorizeAnthropic:"auth.signIn.authorizeAnthropic"};i(_k,"signInInstructions");i(Dk,"signedInLine");i(lY,"connectTag");i(Tk,"maskedInput");i(CR,"AuthWizard")});var Mk={};mi(Mk,{runAuth:()=>IR});async function cY(){let e=await KA(async c=>!!await Js(c)),o=await Js(e);if(!o)return(await Ic(e))?.port===0?(console.log(En(C("auth.cmd.hubOff"))),console.log(C("auth.cmd.hubOffFix")),1):(console.log(ie(C("auth.cmd.noEngine"))),1);let r=new qA({...o,clientId:"cli",webSocketImpl:await nC()});try{await r.connect();let c=await r.command("provider.list",void 0),u=a2(c);if(!u.length)return console.log(En(C("auth.cmd.noneConnected"))),1;console.log(ht(C("auth.cmd.connectedTitle")));for(let f of u)console.log(` ${It("\u2713")} ${f}`);return 0}catch(c){let u=c;return u?.code==="unknown-command"?console.error(Bt(C("auth.cmd.olderHost"))):console.error(Bt(C("auth.cmd.statusFailed",{error:u?.message??String(c)}))),1}finally{r.close()}}async function uY(){let e=await hr(()=>{});try{let o=await e.client.command("provider.list",void 0),r=hm(o.providers);if(!r.length)return o.providers.some(f=>f.connected&&ab(f.id))?(console.log(ie(C("auth.cmd.envNothingNew"))),0):(console.log(En(C("auth.cmd.envNone",{names:"ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY"}))),1);let c=0;for(let{provider:u,key:f}of r)try{let m=await e.client.command("provider.connect",{providerId:u.id,key:f.value});m.ok?console.log(`${It("\u2713")} ${m.unverified?C("auth.cmd.envUnverified",{provider:u.label,name:f.name}):C("auth.cmd.envConnected",{provider:u.label,name:f.name,count:m.models})}`):(c++,console.error(Bt(`\u2715 ${C("auth.cmd.envFailed",{provider:u.label,name:f.name,error:`${m.code}: ${m.message}`})}`)))}catch(m){c++;let E=m;console.error(Bt(`\u2715 ${C("auth.cmd.envFailed",{provider:u.label,name:f.name,error:E?.message??String(m)})}`))}return c===r.length?1:0}finally{e.dispose()}}async function IR(e){let o=e.task?.trim().toLowerCase();if(o==="status")return cY();if(o==="env")return uY();if(o)return console.error(C("auth.cmd.unknownAction",{action:o})),2;if(!process.stdin.isTTY||!process.stdout.isTTY)return console.error(C("auth.cmd.needsTerminal")),2;let r=await hr(()=>{});try{let{render:c}=await Cr().then(()=>$0),{AuthWizard:u}=await yR().then(()=>Nk),f=!1,m,E=c((0,Ok.jsx)(u,{client:r.client,spawned:r.spawned,terminalRows:process.stdout.rows||30,onClose:(v,b)=>{f=v,m=b,E.unmount()}}));await E.waitUntilExit();let S=m?(await r.client.command("provider.list",void 0).catch(()=>null))?.providers.find(v=>v.id===m)?.label:void 0;if(f){let v={moreai:ht("moreai"),model:ht("/model")},b=S?C("auth.cmd.doneConnected",{provider:S,...v}):C("auth.cmd.doneReady",v);return console.log(`${It("\u2713")} ${b}`),0}return console.log(ie(C("auth.cmd.noProvider"))),1}finally{r.dispose()}}var Ok,BR=L(()=>{"use strict";BB();JE();sm();im();Xs();rb();GB();Vt();Bo();Ok=Ue(Sn(),1);i(cY,"runAuthStatus");i(uY,"runAuthFromEnv");i(IR,"runAuth")});var AY,eS,SR=L(()=>{"use strict";AY=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,eS=i(e=>AY.test(e.trim()),"isValidEmail")});var kk={};mi(kk,{AccountWizard:()=>$C});function WC(e){switch(e){case"NOT_CONFIGURED":return C("auth.account.error.notConfigured");case"NETWORK":return C("auth.account.error.network");case"KEYCHAIN_UNAVAILABLE":return C("auth.account.error.keychain");case"RATE_LIMITED":return C("auth.account.error.rateLimited");case"EMAIL_SEND_FAILED":return C("auth.account.error.emailSendFailed");case"INVALID_CODE":return C("auth.account.error.invalidCode");case"STALE_CODE":return C("auth.account.error.staleCode");case"EXPIRED_CODE":return C("auth.account.error.expiredCode");default:return/^[A-Z_]+$/.test(e)?e.replaceAll("_"," ").toLowerCase():e}}function ZC(e){let o=e;return o?.code==="unknown-command"?C("auth.account.error.tooOld"):o?.message?WC(o.message):String(e)}function Hk(e){let o=Math.max(Ot(C("auth.account.emailLabel")),Ot(C("auth.account.codeLabel")));return e+" ".repeat(o-Ot(e)+2)}function $C({client:e,onClose:o,purpose:r,continueOnSignIn:c}){let u=(0,Ya.useRef)({kind:"loading"}),[f,m]=(0,Ya.useState)(u.current),E=(0,Ya.useRef)(""),[S,v]=(0,Ya.useState)(""),b=(0,Ya.useRef)(!1),[N,R]=(0,Ya.useState)(!1),[M,D]=(0,Ya.useState)(null),k=(0,Ya.useRef)(!0),H=(0,Ya.useRef)(!1),$=i(()=>k.current&&!H.current,"isActive"),Qe=i(re=>{$()&&(H.current=!0,E.current="",o(re))},"close"),Ee=i(re=>{u.current=re,m(re)},"setPhase"),Ce=i(re=>{b.current=re,R(re)},"setBusyBoth"),Me=i(()=>{E.current="",v("")},"clearInput"),ge=i(re=>{$()&&(Ee({kind:"signed-in",email:re}),c&&Qe(!0))},"signedIn");(0,Ya.useEffect)(()=>(k.current=!0,e.command("account.state",void 0).then(re=>{$()&&(re.signedIn&&re.user?ge(re.user.email):Ee({kind:"email"}))}).catch(re=>{$()&&(D(ZC(re)),Ee({kind:"email"}))}),()=>{k.current=!1}),[e]),(0,Ya.useEffect)(()=>{if(f.kind!=="challenge")return;let{id:re}=f,ee=!0,Se=!1,tt=i(()=>ee&&$()&&u.current===f&&!b.current,"isCurrent"),Ie=i(async()=>{if(!(!tt()||Se)){Se=!0;try{let ct=await e.command("account.challengeStatus",{id:re});if(!tt())return;if(!ct.ok)D(WC(ct.error));else if(ct.status==="approved"){let Je=await e.command("account.state",void 0);if(!tt())return;Je.signedIn&&Je.user?ge(Je.user.email):(D(C("auth.account.approvalClaimed")),Ee({kind:"email"}))}else(ct.status==="denied"||ct.status==="expired")&&(D(C(ct.status==="denied"?"auth.account.approvalDenied":"auth.account.approvalExpired")),Ee({kind:"email"}))}catch(ct){tt()&&D(ZC(ct))}finally{Se=!1}}},"check");Ie();let Pe=setInterval(()=>{Ie()},2500);return()=>{ee=!1,clearInterval(Pe)}},[e,f.kind==="challenge"?f.id:""]);let Le=i(async re=>{Ce(!0),D(null);try{let ee=await e.command("account.requestCode",{email:re});if(!$())return;if(!ee.ok){D(WC(ee.error));return}Me(),Ee(ee.challenge?{kind:"challenge",email:re,id:ee.challenge.id,displayCode:ee.challenge.displayCode}:{kind:"code",email:re})}catch(ee){$()&&D(ZC(ee))}finally{$()&&Ce(!1)}},"requestForEmail"),le=i(async()=>{let re=E.current.trim().toLowerCase();if(!eS(re)){D(C("auth.account.invalidEmail"));return}await Le(re)},"submitEmail"),ue=i(async re=>{let ee=E.current.trim();if(!/^\d{6}$/.test(ee)){D(C("auth.account.invalidCode"));return}Ce(!0),D(null);try{let Se=await e.command("account.verifyCode",{email:re,code:ee});if(!$())return;Se.ok?(Me(),ge(Se.user.email)):D(WC(Se.error))}catch(Se){$()&&D(ZC(Se))}finally{$()&&Ce(!1)}},"submitCode"),te=i(async(re,ee)=>{Ce(!0),D(null);try{let Se=await e.command("account.state",void 0);if(!$())return;if(Se.signedIn&&Se.user){ge(Se.user.email);return}let tt=await e.command("account.fallbackEmail",{id:re});if(!$())return;tt.ok?(Me(),Ee({kind:"code",email:ee})):D(WC(tt.error))}catch(Se){$()&&D(ZC(Se))}finally{$()&&Ce(!1)}},"sendFallback");return bo((re,ee)=>{if(!$())return;let Se=u.current;if(ee.escape||ee.ctrl&&re==="c"){Qe(Se.kind==="signed-in");return}if(!(b.current||Se.kind==="loading")){if(Se.kind==="signed-in"){ee.return&&Qe(!0);return}if(Se.kind==="challenge"){ee.return&&te(Se.id,Se.email);return}if(Se.kind==="code"&&!ee.ctrl&&!ee.meta&&(re==="r"||re==="R")){Le(Se.email);return}if(ee.return){Se.kind==="email"?le():ue(Se.email);return}if(ee.backspace||ee.delete){E.current=E.current.slice(0,-1),v(E.current);return}if(re&&!ee.ctrl&&!ee.meta&&!ee.tab&&!ee.upArrow&&!ee.downArrow){let tt=re.replace(/[\x00-\x1f\x7f]/g,"");E.current+=Se.kind==="code"?tt.replace(/\D/g,"").slice(0,6-E.current.length):tt.slice(0,254-E.current.length),v(E.current)}}}),(0,co.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"#ff875f",paddingX:1,children:[(0,co.jsxs)(O,{children:[(0,co.jsx)(O,{color:"#ff875f",children:"\u2733 "}),(0,co.jsx)(O,{bold:!0,children:C("auth.account.title")}),r?null:(0,co.jsx)(O,{dimColor:!0,children:` \xB7 ${C("auth.account.optional")}`})]}),(0,co.jsx)(O,{dimColor:!0,wrap:"wrap",children:r??C("auth.account.syncLine")}),f.kind==="loading"?(0,co.jsx)(O,{dimColor:!0,children:C("auth.account.checking")}):null,f.kind==="email"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsx)(O,{color:"#ff875f",bold:!0,children:`01 ${C("auth.account.step.email")}`}),(0,co.jsxs)(O,{children:[Hk(C("auth.account.emailLabel")),S,Kt("\u258C")]}),(0,co.jsx)(O,{dimColor:!0,children:N?C("auth.account.sending"):r?C("auth.account.emailFooterPurpose"):C("auth.account.emailFooter")})]}):null,f.kind==="challenge"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsx)(O,{color:"#ff875f",bold:!0,children:`02 ${C("auth.account.step.approve")}`}),(0,co.jsx)(O,{children:C("auth.account.approveHint")}),(0,co.jsxs)(O,{bold:!0,children:[" ",Kt(f.displayCode)]}),(0,co.jsx)(O,{dimColor:!0,children:N?C("auth.account.sendingCode"):C("auth.account.approveFooter")})]}):null,f.kind==="code"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsx)(O,{color:"#ff875f",bold:!0,children:`02 ${C("auth.account.step.verify")}`}),(0,co.jsx)(O,{children:C("auth.account.codeSentTo",{email:f.email})}),(0,co.jsxs)(O,{children:[Hk(C("auth.account.codeLabel")),"\u2022".repeat(S.length),Kt("\u258C")]}),(0,co.jsx)(O,{dimColor:!0,children:N?C("auth.account.checkingCode"):C("auth.account.codeFooter")})]}):null,f.kind==="signed-in"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsxs)(O,{children:[It("\u2713")," ",(0,co.jsx)(O,{bold:!0,children:C("auth.account.connected")})," ",f.email]}),(0,co.jsx)(O,{children:ie(C("auth.account.signedInFooter"))})]}):null,M?(0,co.jsx)(Rt,{marginTop:1,children:(0,co.jsx)(O,{children:Bt(`\u2715 ${M}`)})}):null]})}var Ya,co,tS=L(async()=>{"use strict";Ya=Ue(Nt(),1);await Cr();Ea();SR();Vt();Bo();co=Ue(Sn(),1);i(WC,"accountError");i(ZC,"hubError");i(Hk,"fieldLabel");i($C,"AccountWizard")});var Fk={};mi(Fk,{ConnectorWizard:()=>wR,accountPurpose:()=>RR,categoryLabel:()=>QR,connectorRows:()=>Lk,connectorState:()=>Gk,isGoogle:()=>Uk});function ey(e){let o=e;return o?.code==="unknown-command"?C("connectors.error.engineTooOld"):o?.message??String(e)}function QR(e){let o=`connectors.category.${e??"other"}`;return Object.hasOwn(yu,o)?C(o):e}function Lk(e,o,r){let c=new Map(e.map(S=>[S.id,S])),u=o.map(S=>({configured:S,...S.presetId&&c.get(S.presetId)?{preset:c.get(S.presetId)}:{}})),f=new Set(o.map(S=>S.presetId??S.id)),m=e.filter(S=>!f.has(S.id)).map(S=>({preset:S}));if(r.trim()){let S=Rc([...u,...m],r,v=>[bR(v),QR(v.preset?.category),v.preset?.blurb??"",vR(v)],[1,.7,.4,.5],[!1,!1,!0,!0]);return ol(S.map(({item:v,match:b})=>({...v,positions:b.positions[0]})),vR)}let E=[];for(let S of m){let v=S.preset?.category??"other";E.includes(v)||E.push(v)}return id([{key:"connected",label:C("connectors.section.connected"),detail:`${u.length}`,items:u},...E.map(S=>({key:`c:${S}`,label:QR(S),items:m.filter(v=>(v.preset?.category??"other")===S)}))],vR)}function Gk(e,o=!1){let r=e.configured?.status;return r==="ready"?{text:C("connectors.state.on"),tone:"on"}:r==="disabled"?{text:C("connectors.state.off"),tone:"off"}:r==="needs-auth"?{text:C("connectors.state.needsAuth"),tone:"warn"}:o&&e.preset?.requiresAccount?{text:C("connectors.state.needsAccount"),tone:"none"}:e.preset?.tenant?{text:C("connectors.state.needsAddress"),tone:"none"}:e.preset?.authFlow==="token"?{text:C("connectors.state.apiKey"),tone:"none"}:e.preset?.authFlow==="open"?{text:C("connectors.state.open"),tone:"none"}:{text:C("connectors.state.signIn"),tone:"none"}}function RR(e){return C(e.requiresAccount?"connectors.account.required":"connectors.account.preferred",{name:e.name})}function gY({preset:e,deviceAllowed:o,selected:r,busy:c}){let u=[{title:C("connectors.account.signIn"),detail:C("connectors.account.signInDetail")},...o?[{title:C("connectors.account.deviceOnly"),detail:C("connectors.account.deviceOnlyDetail")}]:[]];return(0,jt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,jt.jsx)(O,{bold:!0,children:C("connectors.account.title",{name:e.name})}),(0,jt.jsx)(O,{dimColor:!0,wrap:"wrap",children:RR(e)}),(0,jt.jsx)(Rt,{flexDirection:"column",marginTop:1,children:u.map((f,m)=>(0,jt.jsxs)(O,{wrap:"truncate",children:[(0,jt.jsx)(O,{color:Pn,children:m===r?"\u276F ":" "}),(0,jt.jsx)(O,{bold:m===r,children:`${m+1}. ${f.title}`}),(0,jt.jsx)(O,{dimColor:!0,children:` ${f.detail}`})]},f.title))}),(0,jt.jsx)(O,{dimColor:!0,children:c?C("connectors.account.connecting"):C("connectors.account.footer",{keys:u.length>1?"1\u20132":"1"})})]})}function wR({client:e,onClose:o,onSignedIn:r,width:c=90,terminalRows:u=30}){let f=(0,Xn.useRef)({step:"loading"}),[m,E]=(0,Xn.useState)(f.current),S=(0,Xn.useCallback)(Re=>{f.current=Re,E(Re)},[]),[v,b]=(0,Xn.useState)([]),[N,R]=(0,Xn.useState)([]),M=(0,Xn.useRef)(""),[D,k]=(0,Xn.useState)(""),H=(0,Xn.useRef)(0),[$,Qe]=(0,Xn.useState)(0),Ee=(0,Xn.useRef)(""),[Ce,Me]=(0,Xn.useState)(""),ge=(0,Xn.useRef)(!1),[Le,le]=(0,Xn.useState)(!1),[ue,te]=(0,Xn.useState)(null),[re,ee]=(0,Xn.useState)(null),Se=(0,Xn.useRef)(null),[tt,Ie]=(0,Xn.useState)(null),Pe=(0,Xn.useRef)(!1),[ct,Je]=(0,Xn.useState)(!1),W=(0,Xn.useRef)(!1),ut=i(Re=>{W.current=Re,Je(Re)},"setSignedOut"),pt=(0,Xn.useMemo)(()=>Lk(v,N,D),[v,N,D]),P=(0,Xn.useRef)(pt);P.current=pt;let be=i(()=>P.current.flatMap(Re=>Re.kind==="item"?[Re.item]:[]),"items"),Xe=i(Re=>{M.current=Re,k(Re),oe(0)},"setSearch"),oe=i(Re=>{H.current=Re,Qe(Re),Se.current=null,Ie(null)},"setCursor"),nt=i(Re=>{Ee.current=Re,Me(Re)},"setEntry"),mt=i(Re=>{ge.current=Re,le(Re)},"setWorking"),ne=(0,Xn.useCallback)(async()=>{let[Re,xe]=await Promise.all([e.command("connector.catalog",void 0),e.command("connector.list",void 0)]);b(Re),R(xe),Pe.current=xe.some(Ze=>Ze.status==="ready");let he=await e.command("account.state",void 0).catch(()=>null);ut(he?!he.signedIn:!1)},[e]);(0,Xn.useEffect)(()=>{let Re=!0;ne().then(()=>{Re&&S({step:"pick"})}).catch(he=>{Re&&S({step:"failed",message:ey(he)})});let xe=e.on(he=>{he.event==="connector.changed"&&Re&&ne().catch(()=>{})});return()=>{Re=!1,xe()}},[e,ne,S]);let se=(0,Xn.useCallback)(async(Re,xe)=>{await ne().catch(()=>{}),nt(""),ee(xe?C("connectors.connectedTools",{name:Re,count:xe}):C("connectors.connected",{name:Re})),te(null),S({step:"pick"})},[ne,S]),Te=(0,Xn.useCallback)(async(Re,xe,he,Ze)=>{if(!ge.current){mt(!0),te(null),ee(null);try{let Gt=await e.command("connector.connect",{presetId:Re.id,...xe?{tenant:xe}:{},...he?{token:he}:{},...Ze?{credentialScope:Ze}:{}});nt(""),Gt.status==="connected"?await se(Re.name,Gt.tools):Gt.status==="pending"?S({step:"wait",preset:Re,id:Gt.id,...Gt.url?{url:Gt.url}:{}}):Gt.code==="no-account"?(H.current=0,Qe(0),S({step:"need-account",preset:Re,...xe?{tenant:xe}:{},deviceAllowed:!Re.requiresAccount})):(te(Gt.error),S({step:"pick"}))}catch(Gt){te(ey(Gt)),S({step:"pick"})}finally{mt(!1)}}},[e,se,S]);(0,Xn.useEffect)(()=>{if(m.step!=="wait")return;let{id:Re,preset:xe}=m,he=!0,Ze=!1,Gt=i(async()=>{if(!(!he||Ze)){Ze=!0;try{let Qn=await e.command("connector.result",{id:Re});if(!he||Qn.pending||!Qn.result)return;Qn.result.status==="connected"?await se(xe.name,Qn.result.tools):Qn.result.status==="failed"&&Qn.result.code==="no-account"?S({step:"need-account",preset:xe,deviceAllowed:!xe.requiresAccount}):(te(Qn.result.status==="failed"?Qn.result.error:C("connectors.error.signInUnfinished")),S({step:"pick"}))}catch(Qn){he&&te(ey(Qn))}finally{Ze=!1}}},"check");Gt();let Hn=setInterval(()=>{Gt()},dY);return()=>{he=!1,clearInterval(Hn)}},[e,se,m.step==="wait"?m.id:"",S]);let At=i(async(Re,xe)=>{let he=Re.configured;if(!(!he||ge.current)){mt(!0),te(null);try{await e.command("connector.setEnabled",{id:he.id,enabled:xe}),await ne(),ee(C(xe?"connectors.turnedOn":"connectors.turnedOff",{name:he.name}))}catch(Ze){te(ey(Ze))}finally{mt(!1)}}},"setEnabled"),Qt=i(async Re=>{let xe=Re.configured;if(!(!xe||ge.current)){mt(!0),te(null);try{await e.command("connector.remove",{id:xe.id}),await ne(),ee(C("connectors.disconnected",{name:xe.name}))}catch(he){te(ey(he))}finally{mt(!1),Se.current=null,Ie(null)}}},"disconnect"),Lt=i(Re=>{let xe=Re.preset,he=Re.configured;if(te(null),ee(null),he?.status==="disabled")return void At(Re,!0);if(he?.status==="ready"){ee(he.account?C("connectors.isConnectedAs",{name:he.name,account:he.account}):C("connectors.isConnected",{name:he.name}));return}if(!xe){te(he?.name?C("connectors.error.addedInDesktop",{name:he.name}):C("connectors.error.addedInDesktopUnnamed"));return}if(nt(""),xe.requiresAccount&&W.current){H.current=0,Qe(0),S({step:"need-account",preset:xe,deviceAllowed:!1});return}xe.tenant&&!he?S({step:"tenant",preset:xe}):xe.authFlow==="token"?S({step:"token",preset:xe}):Te(xe)},"choose");bo((Re,xe)=>{let he=f.current;if(xe.ctrl&&Re==="c"){o(Pe.current);return}if(!ge.current){if(he.step==="loading"){xe.escape&&o(!1);return}if(he.step==="failed"){(xe.escape||xe.return)&&o(!1);return}if(he.step==="wait"){xe.escape&&S({step:"pick"});return}if(he.step==="need-account"){let Ze=he.deviceAllowed?2:1;if(xe.escape){S({step:"pick"});return}if(xe.upArrow||xe.downArrow||xe.tab){oe(Kr(H.current,xe.upArrow?-1:1,Ze));return}let Gt=Re==="1"?0:Re==="2"&&he.deviceAllowed?1:xe.return?H.current:-1;Gt===0?S({step:"account",preset:he.preset,...he.tenant?{tenant:he.tenant}:{}}):Gt===1&&Te(he.preset,he.tenant,void 0,"device");return}if(he.step==="pick"){let Ze=be(),Gt=Ze.length,Hn=Ze[H.current];if(xe.escape){if(Se.current){Se.current=null,Ie(null);return}if(M.current)return Xe("");o(Pe.current);return}if(xe.upArrow||xe.ctrl&&Re==="p")return oe(Kr(H.current,-1,Gt));if(xe.downArrow||xe.tab||xe.ctrl&&Re==="n")return oe(Kr(H.current,1,Gt));if(xe.pageUp)return oe(Ci(H.current,-1,Gt,10));if(xe.pageDown)return oe(Ci(H.current,1,Gt,10));if(xe.home)return oe(0);if(xe.end)return oe(Math.max(0,Gt-1));if(xe.return){Hn&&Lt(Hn);return}if(xe.ctrl&&Re==="d"){if(!Hn?.configured)return;if(Se.current===Hn.configured.id)return void Qt(Hn);Se.current=Hn.configured.id,Ie(Hn.configured.id);return}if(Re===" "&&!M.current&&Hn?.configured){let Qn=Hn.configured.status==="ready";return void At(Hn,!Qn)}if(xe.backspace||xe.delete)return Xe(M.current.slice(0,-1));if(xe.ctrl&&Re==="u")return Xe("");if(Re&&!xe.ctrl&&!xe.meta){let Qn=Re.replace(/[\x00-\x1f\x7f]/g,"");Qn&&(Qn.trim()||M.current)&&Xe((M.current+Qn).slice(0,80))}return}if(xe.escape){nt(""),S({step:"pick"});return}if(xe.return){let Ze=Ee.current.trim();if(!Ze)return;he.step==="tenant"?he.preset.authFlow==="token"?(nt(""),S({step:"token",preset:he.preset,tenant:Ze})):Te(he.preset,Ze):he.step==="token"&&Te(he.preset,he.tenant,Ze);return}if(xe.backspace||xe.delete){nt(Ee.current.slice(0,-1));return}Re&&!xe.ctrl&&!xe.meta&&nt((Ee.current+Re.replace(/[\x00-\x1f\x7f]/g,"")).slice(0,4096))}},{isActive:m.step!=="account"});let gt=Math.max(30,c-4),Be=Math.max(5,Math.min(18,u-fY)),_e=N.filter(Re=>Re.status==="ready").length,at=Nu(pt).length,Mt=C(gt>=80?"connectors.footer":"connectors.footerShort");if(m.step==="account"){let{preset:Re,tenant:xe}=m;return(0,jt.jsx)($C,{client:e,purpose:RR(Re),continueOnSignIn:!0,onClose:he=>{if(!he){S({step:"need-account",preset:Re,...xe?{tenant:xe}:{},deviceAllowed:!Re.requiresAccount});return}ut(!1),r?.(),S({step:"pick"}),ne().catch(()=>{}).then(()=>Te(Re,xe))}})}return(0,jt.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,jt.jsxs)(O,{wrap:"truncate",children:[(0,jt.jsx)(O,{color:Pn,children:"\u2733 "}),(0,jt.jsx)(O,{bold:!0,children:C("connectors.title")}),(0,jt.jsx)(O,{dimColor:!0,children:` \xB7 ${C("connectors.subtitle")}`})]}),ue?(0,jt.jsx)(O,{wrap:"truncate",children:Bt(`\u2715 ${ue}`)}):null,re&&!ue?(0,jt.jsx)(O,{wrap:"truncate",children:It(`\u2713 ${re}`)}):null,m.step==="loading"?(0,jt.jsx)(O,{dimColor:!0,children:C("connectors.loading")}):null,m.step==="failed"?(0,jt.jsxs)(O,{children:[Bt(m.message),ie(` \xB7 ${C("connectors.closeHint")}`)]}):null,m.step==="pick"?(0,jt.jsxs)(Rt,{flexDirection:"column",children:[(0,jt.jsxs)(O,{wrap:"truncate",children:[(0,jt.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),D,(0,jt.jsx)(O,{color:Pn,children:"\u258C"}),D?null:(0,jt.jsx)(O,{dimColor:!0,children:C("connectors.searchPlaceholder")}),(0,jt.jsx)(O,{dimColor:!0,children:` ${D?C("connectors.found",{count:at}):`${C("connectors.onCount",{count:_e})} \xB7 ${C("connectors.inCatalog",{count:v.length})}`}`})]}),(0,jt.jsx)(rl,{rows:pt,selected:$,height:Be,width:gt,empty:C("connectors.noMatch",{query:D}),renderItem:(Re,{selected:xe,width:he})=>{let Ze=Gk(Re,ct),Gt=!!Re.configured&&tt===Re.configured.id,Hn=Gt?C("connectors.confirmDisconnect"):ad([Ze.text,Re.configured?.account],sd(he)),Qn=Re.configured?Ze.tone==="on"?"\u25CF ":"\u25CB ":" ",Ro=!Re.configured&&Re.preset?.blurb?` \u2014 ${Re.preset.blurb}`:"",{left:qr,gap:wo}=ld(`${bR(Re)}${Ro}`,Hn,he-Qn.length),ir=Math.min(bR(Re).length,qr.length),Pr=Gt?"red":Ze.tone==="on"?"green":Ze.tone==="warn"?"yellow":void 0;return(0,jt.jsxs)(O,{children:[(0,jt.jsx)(O,{color:Ze.tone==="on"?"green":void 0,dimColor:Ze.tone!=="on",children:Qn}),nl(qr.slice(0,ir),Re.positions).map((ot,bt)=>(0,jt.jsx)(O,{bold:xe||ot.hit,color:ot.hit?Pn:void 0,children:ot.text},bt)),(0,jt.jsx)(O,{dimColor:!0,children:qr.slice(ir)}),(0,jt.jsx)(O,{dimColor:!0,children:wo}),(0,jt.jsx)(O,{color:Pr,dimColor:!Pr,children:Hn})]})}}),(0,jt.jsx)(O,{dimColor:!0,wrap:"truncate",children:Mt})]}):null,m.step==="tenant"?(0,jt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,jt.jsxs)(O,{bold:!0,children:[m.preset.name," \xB7 ",m.preset.tenant?.label]}),(0,jt.jsxs)(O,{children:[Ce,Kt("\u258C")]}),(0,jt.jsx)(O,{dimColor:!0,children:m.preset.tenant?.hint??m.preset.tenant?.placeholder}),(0,jt.jsx)(O,{dimColor:!0,children:C("connectors.tenant.footer")})]}):null,m.step==="token"?(0,jt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,jt.jsxs)(O,{bold:!0,children:[m.preset.name," \xB7 ",C("connectors.token.label")]}),(0,jt.jsxs)(O,{children:[Ce?"\u2022".repeat(Math.min(Ce.length,18)):ie(C("connectors.token.placeholder")),Kt("\u258C")]}),(0,jt.jsx)(O,{dimColor:!0,children:Le?C("connectors.token.testing"):C("connectors.token.footer")})]}):null,m.step==="need-account"?(0,jt.jsx)(gY,{preset:m.preset,deviceAllowed:m.deviceAllowed,selected:$,busy:Le}):null,m.step==="wait"?(0,jt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,jt.jsxs)(O,{children:[Kt("\u2733")," ",C("connectors.wait.signIn",{name:m.preset.name})]}),m.url?(0,jt.jsx)(O,{dimColor:!0,wrap:"wrap",children:C("connectors.wait.url",{url:m.url})}):null,(0,jt.jsx)(O,{dimColor:!0,children:C(Uk(m.preset.id)?"connectors.wait.google":"connectors.wait.waiting")}),(0,jt.jsx)(O,{dimColor:!0,children:C("connectors.wait.footer")})]}):null]})}var Xn,jt,dY,fY,bR,vR,Uk,xR=L(async()=>{"use strict";Xn=Ue(Nt(),1);await Cr();IB();Bo();rd();Mu();await Zf();await tS();Vt();nQ();jt=Ue(Sn(),1),dY=1500,fY=12;i(ey,"messageOf");i(QR,"categoryLabel");bR=i(e=>e.configured?.name??e.preset?.name??"","nameOf"),vR=i(e=>e.configured?.id??e.preset?.id??"","rowKey"),Uk=i(e=>!!e?.startsWith(sT),"isGoogle");i(Lk,"connectorRows");i(Gk,"connectorState");i(RR,"accountPurpose");i(gY,"NeedAccount");i(wR,"ConnectorWizard")});var Kk={};mi(Kk,{openConnectorWizard:()=>nS,runConnectors:()=>mY});async function nS(e){if(!process.stdin.isTTY||!process.stdout.isTTY)return!1;let{render:o}=await Cr().then(()=>$0),{ConnectorWizard:r}=await xR().then(()=>Fk),c=!1,u=o((0,Yk.jsx)(r,{client:e,width:Math.max(40,Math.min((process.stdout.columns||80)-2,100)),terminalRows:process.stdout.rows||30,onClose:f=>{c=f,u.unmount()}}));return await u.waitUntilExit(),c}async function pY(){if(process.stdin.isTTY)throw new Error(C("connectors.cmd.tokenNeedsPipe"));let e=[];for await(let r of process.stdin)e.push(Buffer.from(r));let o=Buffer.concat(e).toString("utf8").trim();if(!o)throw new Error(C("connectors.cmd.tokenEmpty"));return o}function zk(e,o){return`${C("connectors.cmd.connectedId",{id:e})} \xB7 ${C("connectors.cmd.toolsAvailable",{count:o})}`}async function mY(e){let[o,r,...c]=(e.task??"").trim().split(/\s+/).filter(Boolean),u=o==="remove"||o==="add"||o==="on"||o==="off";if(c.length>(o==="add"?1:0)||o&&!["list","status","catalog","add","remove","on","off"].includes(o))return console.error(`moreai connectors: ${C("connectors.cmd.usage")}`),2;if(u&&!r)return console.error(`moreai connectors ${o}: ${C(o==="add"?"connectors.cmd.addNeedsId":"connectors.cmd.needsId")}`),2;if(!u&&r)return console.error(`moreai connectors: ${C("connectors.cmd.unexpectedArgument",{arg:r})}`),2;if(o==="add"&&r&&/^https?:\/\//i.test(r)&&c.length)return console.error(`moreai connectors add: ${C("connectors.cmd.urlTakesNoTenant")}`),2;if(!o&&(!process.stdin.isTTY||!process.stdout.isTTY))return console.error(C("connectors.cmd.needsTerminal")),2;let f=await hr(()=>{});try{if(o==="catalog"){let E=await f.client.command("connector.catalog",void 0);console.log(ht(C("connectors.cmd.catalogTitle")));for(let S of E)console.log(` ${S.name} ${ie(`(${S.id})`)} \xB7 ${S.category}${S.configured?It(` \xB7 ${C("connectors.cmd.connected")}`):""}`);return 0}if(o==="list"||o==="status"){let E=await f.client.command("connector.list",void 0);if(!E.length)return console.log(En(C("connectors.cmd.noneConfigured"))),0;console.log(ht(C("connectors.cmd.listTitle")));for(let S of E){let v=S.status==="ready"?It(C("connectors.cmd.ready")):S.status==="disabled"?ie(C("connectors.cmd.disabled")):En(C("connectors.cmd.needsSignIn"));console.log(` ${S.name} ${ie(`(${S.id})`)} \xB7 ${v}`)}return 0}if(o==="on"||o==="off"){let S=(await f.client.command("connector.list",void 0)).find(v=>v.id===r);return S?(await f.client.command("connector.setEnabled",{id:r,enabled:o==="on"}),console.log(`${It("\u2713")} ${C(o==="on"?"connectors.turnedOn":"connectors.turnedOff",{name:S.name})}`),0):(console.error(Bt(C("connectors.cmd.notFound",{id:r}))),1)}if(o==="remove"){let S=(await f.client.command("connector.list",void 0)).find(v=>v.id===r);return S?(await f.client.command("connector.remove",{id:r}),console.log(`${It("\u2713")} ${C("connectors.cmd.disconnected",{name:S.name})}`),0):(console.error(Bt(C("connectors.cmd.notFound",{id:r}))),1)}if(o==="add"){let E=e.tokenStdin?await pY():void 0,S=/^https?:\/\//i.test(r),v=await f.client.command("connector.connect",{...S?{url:r}:{presetId:r},...c[0]&&!S?{tenant:c[0]}:{},...E?{token:E}:{}});if(v.status==="failed")return console.error(Bt(`moreai connectors: ${v.error}`)),v.code==="no-account"&&console.error(ie(C("connectors.cmd.signInFirst"))),1;if(v.status==="pending"){if(v.url&&console.log(ie(C("connectors.cmd.signInPage",{url:v.url}))),!process.stdin.isTTY||!process.stdout.isTTY)return console.log(En(C("connectors.cmd.pendingElsewhere"))),0;console.log(En(C("connectors.cmd.waiting")));let b=Date.now()+125e3;for(;Date.now()<b;){await new Promise(R=>setTimeout(R,1500));let N=await f.client.command("connector.result",{id:v.id});if(!N.pending)return N.result?.status==="connected"?(console.log(`${It("\u2713")} ${zk(r,N.result.tools)}`),0):(console.error(Bt(`moreai connectors: ${N.result?.status==="failed"?N.result.error:C("connectors.cmd.signInUnfinished")}`)),1)}return console.error(Bt(`moreai connectors: ${C("connectors.cmd.timedOut")}`)),1}return console.log(`${It("\u2713")} ${zk(r,v.tools)}`),0}return await nS(f.client)?(console.log(`${It("\u2713")} ${C("connectors.cmd.serviceReady",{command:ht("moreai")})}`),0):(console.log(ie(C("connectors.cmd.noneChosen"))),1)}catch(m){let E=m,S=E?.code==="unknown-command"?C("connectors.cmd.engineTooOld"):E?.message??String(m);return console.error(Bt(`moreai connectors: ${S}`)),1}finally{f.dispose()}}var Yk,DR=L(()=>{"use strict";Xs();Bo();Vt();Yk=Ue(Sn(),1);i(nS,"openConnectorWizard");i(pY,"readTokenStdin");i(zk,"connectedLine");i(mY,"runConnectors")});var jk={};mi(jk,{runAccountCommand:()=>NR});import{createInterface as hY}from"node:readline/promises";import{setTimeout as EY}from"node:timers/promises";function ty(e){switch(e){case"NOT_CONFIGURED":return C("auth.login.error.notConfigured");case"NETWORK":return C("auth.login.error.network");case"RATE_LIMITED":return C("auth.login.error.rateLimited");case"EMAIL_SEND_FAILED":return C("auth.login.error.emailSendFailed");case"INVALID_CODE":return C("auth.login.error.invalidCode");case"STALE_CODE":return C("auth.login.error.staleCode");case"EXPIRED_CODE":return C("auth.login.error.expiredCode");default:return e.replaceAll("_"," ").toLowerCase()}}function CY(e){let o=e;return o?.code==="unknown-command"?C("auth.login.error.tooOld"):o?.message??String(e)}function yY(){let e=hY({input:process.stdin,output:process.stdout,terminal:!0}),o=null,r=!1;return e.on("SIGINT",()=>{r=!0,o?.abort(),e.close()}),{rl:e,interrupted:i(()=>r,"interrupted"),async ask(c,u){let f=new AbortController;o=f;let m=i(()=>f.abort(),"abort");u?.addEventListener("abort",m,{once:!0});try{return await e.question(c,{signal:f.signal})}catch{return null}finally{u?.removeEventListener("abort",m),o===f&&(o=null)}}}}async function IY(){let e=[];for await(let o of process.stdin)e.push(Buffer.from(o));return Buffer.concat(e).toString("utf8").trim()}async function Pk(e,o,r,c){let u=Date.parse(r),f=Math.min(Number.isFinite(u)?u-2e3:1/0,Date.now()+9e4);for(;!c.aborted&&Date.now()<f;){let m=await e.command("account.challengeStatus",{id:o});if(!m.ok)return{kind:"error",error:m.error};if(m.status==="approved"||m.status==="denied"||m.status==="expired")return{kind:m.status};try{await EY(2500,void 0,{signal:c})}catch(E){if(!c.aborted)throw E}}return{kind:"timeout"}}function oS(e){return`${It("\u2713")} ${C("auth.login.signedInAs",{email:ht(e)})}`}async function TR(e){let o=await e.command("account.state",void 0);return!o.signedIn||!o.user?(console.error(Bt(C("auth.login.noSession"))),1):(console.log(oS(o.user.email)),console.log(ie(C("auth.login.syncNote"))),0)}async function _R(e,o,r){if(!/^\d{6}$/.test(r))return console.error(Bt(C("auth.login.invalidCode"))),2;let c=await e.command("account.verifyCode",{email:o,code:r});return c.ok?(console.log(oS(c.user.email)),console.log(ie(C("auth.login.syncNote"))),0):(console.error(Bt(C("auth.login.signInFailed",{error:ty(c.error)}))),1)}async function Jk(e,o){let r=await e.command("account.fallbackEmail",{id:o});return r.ok?(console.log(`${It("\u2713")} ${C("auth.login.emailCodeSent")}`),!0):(console.error(Bt(C("auth.login.fallbackFailed",{error:ty(r.error)}))),!1)}async function BY(e,o,r,c){if(console.log(C("auth.login.approveOnDevice")),console.log(` ${C("auth.login.confirmationCode",{code:ht(o.displayCode)})}`),!c)return console.log(ie(C("auth.login.challengeId",{id:o.id}))),console.log(C("auth.login.toWait")),console.log(` moreai login --challenge ${o.id} --wait`),console.log(C("auth.login.toFallback")),console.log(` moreai login --challenge ${o.id} --fallback`),console.log(` ${C("auth.login.thenPipe",{command:`moreai login ${r} --code-stdin`})}`),0;let u=new AbortController,f=new AbortController,m=c.ask(`${C("auth.login.pressEnterForEmail")} `,u.signal).then(b=>b===null?"cancelled":"fallback"),E;try{E=await Promise.race([Pk(e,o.id,o.expiresAt,f.signal),m])}finally{u.abort(),f.abort(),await m}if(E==="cancelled"||c.interrupted())return 130;if(typeof E=="object"&&E.kind==="approved")return TR(e);if(typeof E=="object"&&E.kind==="error")return console.error(Bt(C("auth.login.approvalCheckFailed",{error:ty(E.error)}))),1;if(typeof E=="object"&&(E.kind==="denied"||E.kind==="expired"))return console.error(Bt(C(E.kind==="denied"?"auth.login.approvalDeniedRetry":"auth.login.approvalExpiredRetry"))),1;if(typeof E=="object"&&E.kind==="timeout"&&console.log(En(C("auth.login.approvalTimeout"))),(await e.command("account.state",void 0)).signedIn)return TR(e);if(!await Jk(e,o.id))return 1;let v=await c.ask(`${C("auth.login.emailCodePrompt")} `);return v===null?130:_R(e,r,v.trim())}async function SY(e,o){if(o.challenge){if(o.fallback)return await Jk(e,o.challenge)?(console.log(C("auth.login.pipeCodeHint",{command:"moreai login <email> --code-stdin"})),0):1;o.wait&&console.log(C("auth.login.waiting"));let f=new AbortController,m=o.wait?await Pk(e,o.challenge,new Date(Date.now()+9e4).toISOString(),f.signal):await e.command("account.challengeStatus",{id:o.challenge}).then(E=>E.ok?{kind:E.status==="pending"?"timeout":E.status}:{kind:"error",error:E.error});return m.kind==="approved"?TR(e):(m.kind==="error"?console.error(Bt(ty(m.error))):m.kind==="timeout"?console.log(En(C("auth.login.stillPending"))):console.error(Bt(C(m.kind==="denied"?"auth.login.approvalDenied":"auth.login.approvalExpired"))),1)}let r=!!process.stdin.isTTY&&!!process.stdout.isTTY;if(!r&&!o.task)return console.error(C("auth.login.needsEmail")),2;if(o.codeStdin&&process.stdin.isTTY)return console.error(C("auth.login.codeStdinNeedsPipe")),2;if(r&&!o.task&&!o.codeStdin){let{render:f}=await Cr().then(()=>$0),{AccountWizard:m}=await tS().then(()=>kk),E=!1,S=f((0,qk.createElement)(m,{client:e,continueOnSignIn:!0,onClose:i(b=>{E=b,S.unmount()},"onClose")}));if(await S.waitUntilExit(),!E)return console.log(ie(C("auth.login.unfinished"))),1;let v=await e.command("account.state",void 0);return!v.signedIn||!v.user?(console.error(Bt(C("auth.login.notSaved"))),1):(console.log(oS(v.user.email)),0)}let c=await e.command("account.state",void 0);if(c.signedIn&&c.user)return console.log(`${It("\u2713")} ${C("auth.login.alreadySignedIn",{email:ht(c.user.email)})}`),console.log(ie(C("auth.login.switchHint"))),0;let u=r?yY():null;try{let f=(o.task??await u?.ask(`${C("auth.login.emailPrompt")} `)??"").trim().toLowerCase();if(!eS(f))return console.error(Bt(C("auth.login.invalidEmail"))),2;if(o.codeStdin)return _R(e,f,await IY());let m=await e.command("account.requestCode",{email:f});if(!m.ok)return console.error(Bt(C("auth.login.startFailed",{error:ty(m.error)}))),1;if(m.challenge)return await BY(e,m.challenge,f,u);if(console.log(`${It("\u2713")} ${C("auth.login.codeSent",{email:ht(f)})}`),!u)return console.log(C("auth.login.pipeCodeInto",{command:`moreai login ${f} --code-stdin`})),0;let E=await u.ask(`${C("auth.login.codePrompt")} `);return E===null?130:_R(e,f,E.trim())}finally{u?.rl.close()}}async function vY(e,o){if(o&&o!=="status"&&o!=="profile")return console.error(C("auth.accountCmd.unknownAction",{action:o})),2;let r=await e.command("account.state",void 0);if(!r.signedIn||!r.user)return console.log(En(C("auth.accountCmd.signedOut"))),console.log(C("auth.accountCmd.signedOutHint")),0;console.log(oS(r.user.email)),r.user.name&&console.log(` ${r.user.name}`);try{let c=await e.command("account.profile",void 0);if(c?.plan){let u=c.plan.label??c.plan.plan,f=c.plan.app?.active?C("auth.accountCmd.planWithSync",{plan:u,app:c.plan.app.label??"Cloud"}):C("auth.accountCmd.plan",{plan:u});console.log(` ${f}`)}}catch{console.log(ie(` ${C("auth.accountCmd.planOffline")}`))}return console.log(ie(` ${C("auth.accountCmd.syncNote")}`)),0}async function NR(e){if(e.command==="logout"&&e.task)return console.error(C("auth.logout.noArgs")),2;let o=null;try{if(o=await hr(()=>{}),e.command==="login"){let c=await SY(o.client,e);return c!==0||!(await o.client.command("account.state",void 0)).signedIn?c:!process.stdin.isTTY||!process.stdout.isTTY?(console.log(ie(C("auth.login.nextConnectors"))),0):(console.log(`
300
+ ${C("auth.login.chooseService")}`),await nS(o.client)||console.log(ie(C("auth.login.servicesLater"))),0)}return e.command==="account"?await vY(o.client,e.task?.trim().toLowerCase()):(await o.client.command("account.state",void 0)).signedIn?(await o.client.command("account.signOut",void 0),console.log(`${It("\u2713")} ${C("auth.logout.done")}`),console.log(ie(C("auth.logout.keysRemain"))),0):(console.log(ie(C("auth.logout.alreadySignedOut"))),0)}catch(r){return console.error(Bt(`moreai ${e.command}: ${CY(r)}`)),1}finally{o?.dispose()}}var qk,MR=L(()=>{"use strict";qk=Ue(Nt(),1);SR();Xs();DR();Vt();Bo();i(ty,"accountError");i(CY,"hubError");i(yY,"prompt");i(IY,"readCodeFromStdin");i(Pk,"pollChallenge");i(oS,"signedInLine");i(TR,"showSignedIn");i(_R,"verifyEmailCode");i(Jk,"fallbackToEmail");i(BY,"runChallenge");i(SY,"runLogin");i(vY,"runAccountStatus");i(NR,"runAccountCommand")});function Xk(e){let o=e.DO_NOT_TRACK?.trim().toLowerCase();if(o&&!Vk.has(o))return!0;let r=e.MOREAI_TELEMETRY?.trim().toLowerCase();return!!r&&Vk.has(r)}var Vk,Zk=L(()=>{"use strict";Vk=new Set(["0","false","off","no"]);i(Xk,"telemetryOptedOutByEnv")});import HR from"node:fs";import Wk from"node:path";function OR(e,o,r){return{id:e,get label(){return C(o)},get detail(){return C(r)}}}function jm(){return C("cards.analytics.explainer").split(`
301
+ `)}function QY(e){return e==="off"?{enabled:!1}:{enabled:!0,content:e==="all"}}function ny(e){return e.enabled?e.content?"all":"usage":"off"}function cd(e){return e.envOptOut?C("cards.analytics.state.envOff"):e.enabled?e.content?C("cards.analytics.state.all"):C("cards.analytics.state.usage"):C("cards.analytics.state.off")}function kR(){return Xk(process.env)}function UR(e){try{let o=JSON.parse(HR.readFileSync($k(e),"utf8"));return o&&typeof o=="object"?o:{}}catch{return{}}}function eU(e,o){try{let r=$k(e);HR.mkdirSync(Wk.dirname(r),{recursive:!0}),HR.writeFileSync(r,JSON.stringify({...UR(e),...o},null,2))}catch{}}function rS(e){return!kR()&&!UR(e).answeredAt}function bY(e){eU(e,{answeredAt:Date.now()})}function tU(e,o){if(kR()||!o?.enabled||o.envOptOut)return null;let r=UR(e);return r.answeredAt||r.noticedAt?null:(eU(e,{noticedAt:Date.now()}),`moreai: ${C("cards.analytics.notice")}`)}async function Wf(e,o,r,c){let u=await e.command("telemetry.set",{...QY(r),origin:c,clientVersion:ti});return bY(o),u}function Zi(e,o,r={}){if(!e||kR())return Promise.resolve();let c=e.command("analytics.track",{event:o,props:r,clientVersion:ti}).then(()=>{},()=>{}),u=new Promise(f=>setTimeout(f,RY).unref?.());return Promise.race([c,u])}var qa,$k,RY,Ou=L(()=>{"use strict";Zk();Mf();Vt();i(OR,"choiceOption");qa=[OR("all","cards.analytics.all","cards.analytics.allDetail"),OR("usage","cards.analytics.usage","cards.analytics.usageDetail"),OR("off","cards.analytics.off","cards.analytics.offDetail")];i(jm,"analyticsExplainer");i(QY,"switchesOf");i(ny,"choiceOf");i(cd,"describeTelemetry");i(kR,"envOptedOut");$k=i(e=>Wk.join(e,"cli","analytics.json"),"recordPath");i(UR,"readRecord");i(eU,"writeRecord");i(rS,"shouldAskConsent");i(bY,"markConsentAnswered");i(tU,"nonInteractiveNotice");i(Wf,"applyAnalyticsChoice");RY=1500;i(Zi,"trackCli")});var oU={};mi(oU,{runSetup:()=>DY});import{createInterface as nU}from"node:readline/promises";async function xY(e,o,r){let c;try{c=await hr(()=>{})}catch{return}try{let u=await c.client.command("telemetry.state",void 0).catch(()=>null);if(u&&!u.envOptOut&&rS(c.dataDir)){console.log(`
302
+ ${ie(C("cli.setup.analytics"))}`);for(let b of jm())console.log(ie(` ${b}`));let f=qa.findIndex(b=>b.id===ny(u))+1;qa.forEach((b,N)=>console.log(` ${Kt(String(N+1))} ${b.label} ${ie(`\u2014 ${b.detail}`)}`));let m=nU({input:process.stdin,output:process.stdout,terminal:!0}),E="";try{E=(await m.question(`${Kt(C("cli.setup.select"))} [${f}]: `)).trim()||String(f)}finally{m.close()}let S=qa[Number(E)-1]?.id??qa[f-1].id,v=await Wf(c.client,c.dataDir,S,"cli_first_run");console.log(`${It("\u2713")} ${C("cli.setup.analyticsSet",{state:cd(v),command:ht("moreai analytics")})}`)}await Zi(c.client,"cli_setup_finished",{path:e,account_ready:o,model_ready:r})}catch{}finally{c.dispose()}}async function DY(){if(!process.stdin.isTTY||!process.stdout.isTTY)return console.error(C("cli.setup.needsTerminal")),2;console.log(""),console.log(`${Kt("\u2733")} ${ht("MORE AI CODE")}`),console.log(ie(` ${C("cli.setup.tagline")}`)),console.log(""),console.log(` ${Kt("01")} ${ht(C("cli.setup.fullTitle"))}`),console.log(ie(` ${C("cli.setup.fullDetail")}`)),console.log(` ${Kt("02")} ${ht(C("cli.setup.modelTitle"))}`),console.log(ie(` ${C("cli.setup.modelDetail")}`)),console.log(` ${Kt("03")} ${ht(C("cli.setup.accountTitle"))}`),console.log(ie(` ${C("cli.setup.accountDetail")}`)),console.log("");let e=nU({input:process.stdin,output:process.stdout,terminal:!0}),o;try{o=(await e.question(`${Kt(C("cli.setup.select"))} [1]: `)).trim()||"1"}finally{e.close()}if(/^0[123]$/.test(o)&&(o=o.slice(1)),!["1","2","3"].includes(o))return console.error(C("cli.setup.invalidChoice")),2;let r=!1,c=!1,u=!1;if(o==="1"||o==="3"){console.log(`
303
+ ${ie(C("cli.setup.stepAccount",{step:"01"}))}`);let f=PE(["login"]),m=await NR(f.args);if(m===130||(r=m===0,!r&&(u=!0,console.log(En(C("cli.setup.accountUnfinished"))),o==="3")))return m}if(o==="1"||o==="2"){console.log(`
304
+ ${ie(C("cli.setup.stepModel",{step:o==="1"?"02":"01"}))}`);let f=PE(["auth"]);c=await IR(f.args)===0,c||(u=!0,console.log(En(C("cli.setup.modelUnfinished"))))}return await xY(wY[o],r,c),console.log(""),r&&console.log(`${It("\u2713")} ${C("cli.setup.accountReady")}`),c&&console.log(`${It("\u2713")} ${C("cli.setup.modelReady",{command:ht("moreai")})}`),c||console.log(ie(C("cli.setup.modelLater"))),u?1:0}var wY,rU=L(()=>{"use strict";fQ();MR();BR();Bo();Xs();Vt();Ou();wY={1:"full",2:"model",3:"account"};i(xY,"finishSetup");i(DY,"runSetup")});var iU={};mi(iU,{runAnalytics:()=>_Y});async function _Y(e){let o=TY[(e??"status").trim().toLowerCase()];if(!o)return console.error(C("cards.analytics.usageLine")),2;let r;try{r=await hr(()=>{})}catch(c){return console.error(C("cards.analytics.unreachable",{error:c instanceof Error?c.message:String(c)})),1}try{let c=o==="status"?await r.client.command("telemetry.state",void 0):await Wf(r.client,r.dataDir,o,"cli_command");if(console.log(`${ht(C("cards.analytics.label"))} ${cd(c)}`),o==="status"){console.log("");for(let u of jm())console.log(ie(u));console.log(ie(C("cards.analytics.verbs")))}return 0}catch(c){return console.error(`moreai analytics: ${c instanceof Error?c.message:c}`),1}finally{r.dispose()}}var TY,aU=L(()=>{"use strict";Xs();Ou();Vt();Bo();TY={status:"status",on:"all",usage:"usage",off:"off"};i(_Y,"runAnalytics")});var lU={};mi(lU,{runBrowser:()=>MY});function NY(e){return`${e.slice(0,3)} ${e.slice(3)}`}function sU(e){if(!e.listening){console.log(ie(C("cli.browser.notRunning"))),console.log(ie(C("cli.browser.enableHint")));return}let o=e.port?ie(` \xB7 127.0.0.1:${e.port}`):"";e.connected?console.log(`${Kt("\u2022")} ${C("cli.browser.connected")}${o}`):e.paired?console.log(`${ie("\u2022")} ${C("cli.browser.pairedIdle")}${o}`):console.log(`${ie("\u2022")} ${C("cli.browser.notPaired",{command:ht("moreai browser pair")})}${o}`)}async function MY(e){let o=(e??"status").trim().toLowerCase();if(o!=="pair"&&o!=="status"&&o!=="unpair")return console.error(C("cli.browser.unknownCommand",{command:o})),2;let r;try{r=await hr(()=>{})}catch(c){return console.error(C("cli.engineUnreachable",{message:c instanceof Error?c.message:String(c)})),1}try{if(o==="status")return sU(await r.client.command("browser.status",void 0)),0;if(o==="unpair")return await r.client.command("browser.unpair",void 0),console.log(C("cli.browser.forgotten")),0;let c=await r.client.command("browser.pair",void 0);if(!c)return console.error(C("cli.browser.noBridge")),sU(await r.client.command("browser.status",void 0)),1;let u=Math.max(1,Math.round((c.expiresAt-Date.now())/6e4));return console.log(ht(C("cli.browser.pairingCode",{code:Kt(NY(c.code))}))),console.log(ie(C("cli.browser.pairingHint",{count:u}))),0}finally{r.dispose()}}var cU=L(()=>{"use strict";Xs();Bo();Vt();i(NY,"grouped");i(sU,"reportStatus");i(MY,"runBrowser")});import OY from"node:os";function wc(e,o,r){let c=e==="running"?Kt(Ca):e==="error"?Bt(Ca):It(Ca),u=ht(o),f=r&&!o.includes(r)?ie(`(${Ru(r,80)})`):"";return[c,u,f].filter(Boolean).join(" ")}function Vm(e,o=3,r=!1){let c=e.replace(/\s+$/,"");if(!c)return"";let u=c.split(`
305
+ `),f=u.slice(0,o).map(v=>Ru(v,100)),m=u.length-f.length,E=r?Bt:ie,S=f.map((v,b)=>` ${Dn(b===0?Hu:" ")} ${E(v)}`).join(`
306
+ `);return m>0?`${S}
307
+ ${Dn(C("cards.moreLines",{count:m}))}`:S}function AU(e){let o=e.split(`
308
+ `).filter(c=>c.trim().length>0),r=o[o.length-1];return r?` ${Dn(Hu)} ${ie(Ru(r,100))}`:""}function $f(e){let o=C(e.kind==="create"?"cards.diff.write":"cards.diff.edit",{path:e.path}),r=`${It(`+${e.additions}`)} ${Bt(`-${e.deletions}`)}`,c=`${It(Ca)} ${ht(o)} ${r}`,u=Math.max(3,...e.hunks.map(E=>String(E.b??E.a??0).length)),f=e.hunks.slice(0,uU).map(E=>{let S=String(E.b??E.a??"").padStart(u);return E.t==="add"?It(` ${S} + ${E.text}`):E.t==="del"?Bt(` ${S} - ${E.text}`):ie(` ${S} ${E.text}`)}),m=e.hunks.length-uU;return m>0&&f.push(` ${Dn(C("cards.diff.moreLines",{count:m}))}`),e.truncated&&f.push(` ${Dn(C("cards.diff.truncated"))}`),[c,...f].join(`
309
+ `)}function Xm(e){return e.length?e.map(r=>{switch(r.status){case"completed":return` ${It("\u2612")} ${ie(r.content)}`;case"in_progress":return` ${Kt("\u25D0")} ${ht(r.content)}`;case"cancelled":return` ${Dn("\u2715")} ${Dn(__(r.content))}`;default:return` ${Zs("\u2610")} ${r.content}`}}).join(`
310
+ `):""}function iS(e){let o=[`${Kt(Ca)} ${ht(C("cards.plan.heading"))}`];return e.summary&&o.push(` ${e.summary}`),e.steps.forEach((r,c)=>{o.push(` ${ie(`${c+1}.`)} ${r.title}`),r.detail&&o.push(` ${ie(r.detail)}`),r.files?.length&&o.push(` ${Dn(r.files.join(", "))}`)}),o.join(`
311
+ `)}function xc(e,o=Date.now()){let r=Math.max(0,Math.round((o-e)/1e3));return r>=60?C("cards.elapsed.minutes",{minutes:Math.floor(r/60),seconds:String(r%60).padStart(2,"0")}):C("cards.elapsed.seconds",{seconds:r})}function Uu(e){return e>=1e3?`${(e/1e3).toFixed(e>=1e4?0:1)}k`:String(e)}function il(e,o){let r=`${En("\u26A0")} ${ht(e)}`;if(!o)return r;let c=o.split(`
312
+ `).map(u=>` ${ie(u)}`);return[r,...c].join(`
313
+ `)}function Zm(e){return e.split(`
314
+ `).map(o=>`${Dn(LR)} ${Zs(o)}`).join(`
315
+ `)}function dU(e){return`${Fn("\u21B3")} ${Zs(e)}`}function aS(e,o,r=OY.homedir()){let c=r&&(e===r||e.startsWith(`${r}/`))?`~${e.slice(r.length)}`:e;if(c.length<=o||o<8)return c;let u=c.slice(c.length-(o-4)),f=u.indexOf("/"),m=f>=0&&f<u.length-1?u.slice(f):u;return`${c.startsWith("~")?"~":""}/\u2026${m.startsWith("/")?m:`/${m}`}`}var Ca,Hu,LR,Pa,ku,uU,al=L(()=>{"use strict";Bo();Vt();Ca="\u23FA",Hu="\u23BF",LR="\u276F",Pa="\u2733",ku=["\u2733","\u2736","\u273B","\u273D","\u273B","\u2736"];i(wc,"toolLine");i(Vm,"resultPreview");i(AU,"outputTail");uU=40;i($f,"diffBlock");i(Xm,"todoBlock");i(iS,"planBlock");i(xc,"elapsed");i(Uu,"tokens");i(il,"noticeBlock");i(Zm,"userEcho");i(dU,"steerEcho");i(aS,"shortPath")});function GR(e){let o=[],r="",c=0;for(let u=0;u<e.length;u++){let f=e[u];if(f==="\\"&&e[u+1]==="|")r+="|",u++;else if(f==="`"){let m=/^`+/.exec(e.slice(u))[0];c?c===m.length&&(c=0):c=m.length,r+=m,u+=m.length-1}else f==="|"&&!c?(o.push(r.trim()),r=""):r+=f}return o.push(r.trim()),e.trimStart().startsWith("|")&&o.shift(),e.trimEnd().endsWith("|")&&o[o.length-1]===""&&o.pop(),o}function fU(e,o){if(!e[o].includes("|")||!e[o+1])return null;let r=GR(e[o]),c=GR(e[o+1]);if(r.length<2||c.length!==r.length||!c.every(E=>/^:?-+:?$/.test(E)))return null;let u=c.map(E=>E.endsWith(":")?E.startsWith(":")?"center":"right":"left"),f=[],m=o+2;for(;m<e.length&&e[m].trim()&&e[m].includes("|");){let E=GR(e[m]);if(E.length<2)break;f.push(r.map((S,v)=>E[v]??"")),m++}return{headers:r,rows:f,align:u,end:m}}function sS(e,o){return Ws(e,o,{hard:!0,trim:!0}).split(`
316
+ `)}function HY(e,o,r){let c=[],u=Dn("\u2500".repeat(r));return o.forEach((f,m)=>{m&&c.push(u),f.forEach((E,S)=>{c.push(...sS(ht(`${e[S]}:`),r)),c.push(...sS(E,r-2).map(v=>` ${v}`))})}),c.length?c:e.flatMap(f=>sS(ht(f),r))}function gU(e,o,r){let c=i(D=>r(D.replace(/<br\s*\/?\s*>/gi,`
317
+ `).replace(/\t/g," ")),"styled"),u=e.headers.map(c),f=e.rows.map(D=>D.map(c)),m=u.length,E=o-(m*3+1),S=u.map((D,k)=>Math.max(1,...[D,...f.map(H=>H[k])].flatMap(H=>H.split(`
318
+ `).map($=>Math.min(o,Ot($)))))),v=S.map(D=>Math.min(D,10));if(m>2&&o<60||E<v.reduce((D,k)=>D+k,0))return HY(u,f,o);let b=[...S];for(;b.reduce((D,k)=>D+k,0)>E;){let D=-1;if(b.forEach((k,H)=>{k>v[H]&&(D===-1||k>b[D])&&(D=H)}),D===-1)break;b[D]--}let N=i((D,k,H)=>Dn(D+b.map($=>"\u2500".repeat($+2)).join(k)+H),"border"),R=i((D,k=!1)=>{let H=D.map(($,Qe)=>sS(k?ht($):$,b[Qe]));return Array.from({length:Math.max(...H.map($=>$.length))},($,Qe)=>{let Ee=H.map((Ce,Me)=>{let ge=Ce[Qe]??"",Le=Math.max(0,b[Me]-Ot(ge)),le=e.align[Me]==="right"?Le:e.align[Me]==="center"?Math.floor(Le/2):0;return` ${" ".repeat(le)}${ge}${" ".repeat(Le-le)} `});return`${Dn("\u2502")}${Ee.join(Dn("\u2502"))}${Dn("\u2502")}`})},"paintRow"),M=[N("\u256D","\u252C","\u256E"),...R(u,!0),N("\u251C","\u253C","\u2524")];return f.forEach((D,k)=>{k&&M.push(N("\u251C","\u253C","\u2524")),M.push(...R(D))}),M.push(N("\u2570","\u2534","\u256F")),M}var pU=L(()=>{"use strict";Ea();dC();Bo();i(GR,"cells");i(fU,"readTable");i(sS,"wrapCell");i(HY,"records");i(gU,"renderTable")});function Lu(e){let o="",r=0;for(;r<e.length;){if(e[r]==="`"){let m=e.indexOf("`",r+1);if(m>r){o+=Fn(e.slice(r+1,m)),r=m+1;continue}}let c=/^(\*\*|__)([^*_]+?)\1/.exec(e.slice(r));if(c){o+=ht(Lu(c[2])),r+=c[0].length;continue}let u=/^(\*|_)([^*_]+?)\1/.exec(e.slice(r));if(u){o+=T_(Lu(u[2])),r+=u[0].length;continue}let f=/^\[([^\]]+)\]\(([^)]+)\)/.exec(e.slice(r));if(f){o+=`${f[1]} ${ie(`(${f[2]})`)}`,r+=f[0].length;continue}o+=e[r],r++}return o}function oy(e,o,r="",c=r){let u=Math.max(1,o-Math.max(Ot(r),Ot(c)));return Ws(e,u,{hard:!0,trim:!1}).split(`
319
+ `).map((f,m)=>`${m===0?r:c}${f}`)}function sl(e,o=80){let r=Math.max(4,Math.floor(o)),c=e.replace(/\r\n/g,`
320
+ `).split(`
321
+ `),u=[];for(let f=0;f<c.length;f++){let m=c[f],E=/^\s*(`{3,}|~{3,})(.*)$/.exec(m);if(E){let M=E[2].trim(),D=[];for(;++f<c.length;){let Qe=/^\s*(`{3,}|~{3,})\s*$/.exec(c[f]);if(Qe&&Qe[1][0]===E[1][0]&&Qe[1].length>=E[1].length)break;D.push(...Ws(c[f].replace(/\t/g," "),r-2,{hard:!0,wordWrap:!1,trim:!1}).split(`
322
+ `))}let k=M?` ${M} `:"",H=Math.min(r,Math.max(12,2+Ot(k),...D.map(Qe=>Ot(Qe)+2))),$=Ws(k,H-2,{hard:!0,trim:!1}).split(`
323
+ `)[0];u.push(`${Dn("\u256D\u2500")}${Fn($)}${Dn("\u2500".repeat(Math.max(0,H-2-Ot($))))}`),u.push(...D.map(Qe=>`${Dn("\u2502")} ${Qe}`)),u.push(Dn(`\u2570${"\u2500".repeat(H-1)}`));continue}let S=fU(c,f);if(S){u.push(...gU(S,r,Lu)),f=S.end-1;continue}let v=/^(#{1,6})\s+(.*)$/.exec(m);if(v){u.length&&u[u.length-1]!==""&&u.push(""),u.push(...oy(ht(Lu(v[2])),r)),v[1].length<=2&&u.push(Dn("\u2500".repeat(Math.min(r,Ot(Lu(v[2]))))));continue}if(/^\s*(---+|\*\*\*+|___+)\s*$/.test(m)){u.push(Dn("\u2500".repeat(Math.min(r,48))));continue}let b=/^\s*>\s?(.*)$/.exec(m);if(b){u.push(...oy(Lu(b[1]),r,`${Dn("\u258F")} `));continue}let N=/^(\s*)([-*+])\s+(.*)$/.exec(m);if(N){let M=/^\[([ xX])\]\s+(.*)$/.exec(N[3]),D=M?M[1]===" "?ie("\u2610"):It("\u2611"):ie("\u2022"),k=`${N[1]}${D} `;u.push(...oy(Lu(M?M[2]:N[3]),r,k," ".repeat(Ot(k))));continue}let R=/^(\s*)(\d+)[.)]\s+(.*)$/.exec(m);if(R){let M=`${R[1]}${ie(`${R[2]}.`)} `;u.push(...oy(Lu(R[3]),r,M," ".repeat(Ot(M))));continue}u.push(...oy(Lu(m),r))}return u.join(`
324
+ `)}var Wm=L(()=>{"use strict";Ea();dC();Bo();pU();i(Lu,"renderInline");i(oy,"blockLines");i(sl,"renderMarkdown")});import kY from"node:path";function ry(e,o=Date.now()){let r=Math.round((o-e)/1e3);return r<60?C("pickers.sessions.justNow"):r<3600?C("pickers.sessions.minutesAgo",{count:Math.floor(r/60)}):r<86400?C("pickers.sessions.hoursAgo",{count:Math.floor(r/3600)}):r<7*86400?C("pickers.sessions.daysAgo",{count:Math.floor(r/86400)}):UY(e)}function UY(e){let o=za(),r={month:"short",day:"numeric"};try{return new Date(e).toLocaleDateString(o==="en"?"en-US":o,r)}catch{return new Date(e).toLocaleDateString("en-US",r)}}function mU(e,o){let r=e.filter(v=>!v.archived).filter(v=>o.scope==="all"||v.repoPath===o.repoPath).sort((v,b)=>b.updatedAt-v.updatedAt);if(o.query.trim())return ol(Rc(r,o.query,v=>[v.title,hU(v)],[1,.7]).map(({item:v,match:b})=>({session:v,positions:b.positions[0]})),v=>v.session.id);let c=o.now??Date.now(),u=i(v=>{let b=new Date(c);return b.setDate(b.getDate()-v),b.setHours(0,0,0,0)},"startOfDay"),f=u(0),m=u(1),E=u(6),S=i(v=>v>=f?"today":v>=m?"yesterday":v>=E?"week":"older","bucket");return id(LY.map(v=>({key:v.id,label:v.label(),items:r.filter(b=>S(b.updatedAt)===v.id).map(b=>({session:b}))})),v=>v.session.id)}function EU(e){let o=e.sessions.filter(Me=>!Me.archived&&Me.repoPath===e.repoPath).length,r=(0,ll.useRef)(o?"here":"all"),[c,u]=(0,ll.useState)(r.current),f=(0,ll.useRef)(""),[m,E]=(0,ll.useState)(""),S=(0,ll.useRef)(0),[v,b]=(0,ll.useState)(0),N=Math.max(1,Math.min(16,(e.terminalRows??30)-GY)),R=i((Me,ge)=>mU(e.sessions,{scope:Me,query:ge,repoPath:e.repoPath}),"rowsFor"),M=(0,ll.useMemo)(()=>mU(e.sessions,{scope:c,query:m,repoPath:e.repoPath}),[e.sessions,e.repoPath,c,m]),D=i(Me=>{S.current=Me,b(Me)},"select");(0,ll.useEffect)(()=>{let Me=Nu(M).length;S.current>=Me&&D(Math.max(0,Me-1))},[M]);let k=i(Me=>{f.current=Me,E(Me),D(0)},"setQuery"),H=i(Me=>{r.current=Me,u(Me),D(0)},"setScope");bo((Me,ge)=>{let Le=R(r.current,f.current).flatMap(te=>te.kind==="item"?[te.item]:[]),le=Le.length;if(ge.ctrl&&Me==="c")return e.onCancel();if(ge.escape)return f.current?k(""):e.onCancel();if(ge.upArrow||ge.ctrl&&Me==="p")return D(Kr(S.current,-1,le));if(ge.downArrow||ge.ctrl&&Me==="n")return D(Kr(S.current,1,le));let ue=Math.max(1,Math.min(10,N>2?N-2:N));if(ge.pageUp)return D(Ci(S.current,-1,le,ue));if(ge.pageDown)return D(Ci(S.current,1,le,ue));if(ge.home)return D(0);if(ge.end)return D(Math.max(0,le-1));if(ge.leftArrow||ge.rightArrow||ge.tab)return H(r.current==="here"?"all":"here");if(ge.return){let te=Le[Math.min(S.current,le-1)];te&&e.onPick(te.session);return}if(ge.backspace||ge.delete)return k(f.current.slice(0,-1));if(ge.ctrl&&Me==="u")return k("");if(Me&&!ge.ctrl&&!ge.meta){let te=Me.replace(/[\x00-\x1f\x7f]/g,"");te&&(te.trim()||f.current)&&k((f.current+te).slice(0,80))}});let $=e.width??90,Qe=Math.max(1,$-4),Ee=Nu(M).length,Ce=e.sessions.filter(Me=>!Me.archived).length;return(0,Yr.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Yr.jsxs)(O,{wrap:"truncate",children:[(0,Yr.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Yr.jsx)(O,{bold:!0,children:C("pickers.sessions.title")}),(0,Yr.jsx)(O,{dimColor:!0,children:" \xB7 "}),(0,Yr.jsx)(O,{bold:c==="here",color:c==="here"?Pn:void 0,dimColor:c!=="here",children:C("pickers.sessions.scopeHere",{n:o})}),(0,Yr.jsx)(O,{dimColor:!0,children:" "}),(0,Yr.jsx)(O,{bold:c==="all",color:c==="all"?Pn:void 0,dimColor:c!=="all",children:C("pickers.sessions.scopeAll",{n:Ce})})]}),(0,Yr.jsxs)(O,{wrap:"truncate",children:[(0,Yr.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),m,(0,Yr.jsx)(O,{color:Pn,children:"\u258C"}),m?null:(0,Yr.jsx)(O,{dimColor:!0,children:C("pickers.sessions.searchHint")}),(0,Yr.jsx)(O,{dimColor:!0,children:Ee?` ${Math.min(v+1,Ee)} / ${Ee}`:""})]}),(0,Yr.jsx)(rl,{rows:M,selected:v,height:N,width:Qe,empty:m?C("pickers.sessions.noMatch",{query:m}):C(c==="here"?"pickers.sessions.noneHere":"pickers.sessions.none"),renderItem:(Me,{selected:ge,width:Le})=>{let le=Me.session,ue=le.repoPath!==e.repoPath,te=ad([le.id===e.currentId?C("pickers.sessions.current"):"",ry(le.updatedAt),ue||c==="all"?hU(le):"",le.model||""],sd(Le)),{left:re,gap:ee}=ld(le.title||C("pickers.sessions.untitled"),te,Le);return(0,Yr.jsxs)(O,{children:[nl(re,Me.positions).map((Se,tt)=>(0,Yr.jsx)(O,{bold:ge||Se.hit,color:Se.hit?Pn:void 0,children:Se.text},tt)),(0,Yr.jsxs)(O,{dimColor:!0,children:[ee,te]})]})}}),(0,Yr.jsx)(O,{dimColor:!0,wrap:"truncate",children:C("pickers.sessions.footer")})]})}var ll,Yr,hU,LY,GY,lS=L(async()=>{"use strict";ll=Ue(Nt(),1);await Cr();Vt();rd();Mu();await Zf();Yr=Ue(Sn(),1);i(ry,"relativeTime");i(UY,"shortDate");hU=i(e=>e.repoName||kY.basename(e.repoPath||"")||C("pickers.sessions.noFolder"),"folderOf"),LY=[{id:"today",label:i(()=>C("pickers.sessions.today"),"label")},{id:"yesterday",label:i(()=>C("pickers.sessions.yesterday"),"label")},{id:"week",label:i(()=>C("pickers.sessions.thisWeek"),"label")},{id:"older",label:i(()=>C("pickers.sessions.older"),"label")}];i(mU,"sessionRows");GY=12;i(EU,"SessionsPicker")});function CU(e,o){let r=e.replace(/\/+$/,""),c=encodeURIComponent(o.sessionId);return o.source==="cloud"?`${r}/code/cloud/${c}`:`${r}/code/s/${c}?device_id=${encodeURIComponent(o.deviceId)}`}var yU=L(()=>{"use strict";i(CU,"codeSessionUrl")});import{randomUUID as FY}from"node:crypto";function Ad(e){return CU(Vi.webAppUrl,{source:"cloud",sessionId:e})}function YY(e,o){if(o.model){let c=o.model.toLowerCase();return e.find(u=>u.model.toLowerCase()===c&&(!o.provider||u.provider===o.provider))??(o.provider?{provider:o.provider,model:o.model,credential:"key"}:void 0)}let r=e.filter(c=>!o.provider||c.provider===o.provider);return r.find(c=>c.recommended)??r[0]}function IU(e){if(!e?.activity)return null;try{let o=JSON.parse(e.activity);if(!o||typeof o!="object")return null;let{step:r,name:c,path:u}=o;return{...typeof r=="number"?{step:r}:{},...typeof c=="string"?{name:c}:{},...typeof u=="string"?{path:u}:{}}}catch{return null}}async function cS(e,o,r={}){let c=await e.command("cloud.readiness",{repoPath:o.repoPath});if(r.onReadiness?.(c),!c.ok)throw new Dc(c.blocker??"error",c.message??c.blocker??"error");let u=await e.command("cloud.models",void 0),f=u.ok?u.data.models:[],m=YY(f,{model:o.model,provider:o.provider});if(!m)throw new Dc(u.ok?"NO_CLOUD_MODEL":u.code,u.ok?"no model is available for cloud runs on this account":u.error);let E=FY().replace(/-/g,""),S=e.on(N=>{N.event==="cloud.progress"&&N.progress.requestId===E&&r.onProgress?.(N.progress)}),v;try{v=await e.command("cloud.start",{repoPath:o.repoPath,projectPath:o.repoPath,prompt:o.prompt,requestId:E,provider:m.provider,model:m.model,harness:"native",...o.accessMode?{accessMode:o.accessMode}:{},...o.finish?{finish:o.finish}:{},...o.localSessionId?{localSessionId:o.localSessionId}:{}})}finally{S()}if(!v.ok)throw new Dc(v.code,v.error);let b=Ad(v.sessionId);return r.onStarted?.({sessionId:v.sessionId,url:b,model:m,branch:v.branch,bytes:v.bytes}),o.detach?{sessionId:v.sessionId,url:b,status:"detached",task:null,finish:null}:iy(e,v.sessionId,r,o.signal)}async function iy(e,o,r={},c){let u=Ad(o),f=new Set,m=!0,E="",S=0,v=null;for(;!c?.aborted;){let N=null,R=await e.command("cloud.get",{id:o}).catch(M=>{let D=M;return{ok:!1,code:D?.code??"NETWORK",error:D?.message??String(M)}});if(R.ok)S=0,N=R.data;else if(++S>=KY)throw new Dc(R.code,R.error);if(N){v=N.task??N.session.task;let M=v?Date.parse(v.created_at):0;for(let D of N.messages)f.has(D.id)||(f.add(D.id),!(m&&Date.parse(D.created_at)<M)&&D.role==="assistant"&&D.content.trim()&&r.onMessage?.(D));if(m=!1,v){let D=`${v.status}:${v.activity??""}`;if(D!==E&&(E=D,r.onStatus?.(v)),ud.has(v.status))break}}await qY(zY,c)}if(c?.aborted||!v||!ud.has(v.status))return{sessionId:o,url:u,status:"detached",task:v,finish:null};let b=null;return v.status==="done"&&(r.onFinishing?.(),b=await e.command("cloud.finish",{sessionId:o}).catch(()=>null),r.onFinished?.(b)),{sessionId:o,url:u,status:v.status,task:v,finish:b}}var ud,zY,KY,Dc,qY,uS=L(()=>{"use strict";_f();yU();ud=new Set(["done","error","cancelled"]),zY=2500,KY=8;i(Ad,"cloudSessionUrl");Dc=class extends Error{constructor(r,c){super(c);this.code=r}code;static{i(this,"CloudError")}};i(YY,"pickCloudModel");i(IU,"taskActivity");qY=i((e,o)=>new Promise(r=>{let c=setTimeout(r,e);o?.addEventListener("abort",()=>{clearTimeout(c),r()},{once:!0})}),"sleep");i(cS,"runInCloud");i(iy,"followCloudSession")});var BU=L(()=>{"use strict"});var PY,FR,SU=L(()=>{"use strict";PY=["gmail_","calendar_","meet_","tasks_","drive_"],FR=i(e=>PY.some(o=>e.startsWith(o)),"isGoogleToolName")});function vU(e){if(typeof e=="string"){let o=e.trim();if(o.startsWith("["))try{let r=JSON.parse(o);if(Array.isArray(r))return r.filter(c=>typeof c=="string")}catch{}return[e]}return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}function JY(e){let o=e??{},r=[...vU(o.path),...vU(o.paths)].map(c=>c.trim()).filter(Boolean);return[...new Set(r)]}function QU(e){return JY(e).join(", ")}function bU(e){return e?e.split(",").map(o=>o.trim()).filter(Boolean):[]}var zR=L(()=>{"use strict";i(vU,"collectPaths");i(JY,"readPathsOf");i(QU,"readFileDetailOf");i(bU,"pathsFromReadDetail")});function wU(e){let o=e.indexOf("__");return o>0?e.slice(o+2):null}function ZY(e){return RU.has(e)||!!wU(e)||FR(e)}function WY(e,o){if(e==="call_connector_tool"){let r=o?.tool;return typeof r=="string"&&r.trim()?r:null}return FR(e)?e:wU(e)}function KR(e,o){if(e)for(let r of o){let c=e[r];if(typeof c=="string"&&c.trim())return c;if(Array.isArray(c)&&typeof c[0]=="string"&&c[0].trim())return c[0]}}function DU(e,o){if(e==="call_connector_tool"){let r=o?.arguments;return r&&typeof r=="object"?r:void 0}return o&&typeof o=="object"?o:void 0}function $Y(e){return e.name==="search_connector_tools"?e.args?.query:KR(DU(e.name,e.args),[...xU,...PR])}function t7(e){if(!e)return 0;for(let o of PR){let r=e[o];if(Array.isArray(r))return Math.max(0,r.filter(c=>typeof c=="string").length-1)}return 0}function AS(e,o=0){let r=e;if(YR(e))try{r=new URL(e).hostname.replace(/^www\./,"")}catch{r=e}return o>0?`${r} +${o}`:r}function dS(e){try{let o=new URL(e);return o.protocol==="https:"?o.hostname.replace(/^www\./,""):""}catch{return""}}function n7(e,o,r,c){if(e==="search_connector_tools"){let v=$Y({name:e,args:o})??r;return v?{key:"connectorFind",params:{query:v}}:{key:"connectorTools",params:{}}}if(e==="get_connector_tool_schema"){let v=o?.tool??c??r;return{key:"connectorInspect",params:{name:typeof v=="string"&&v?qR(v):"connector"}}}let u=WY(e,o)??c??"",f=DU(e,o),m=KR(f,xU)??(r&&!YR(r)?r:void 0),E=KR(f,PR)??(r&&YR(r)?r:void 0),S=E?AS(E,t7(f)):void 0;return u&&/search/i.test(u)&&m?{key:"connectorSearch",params:{query:m}}:u&&/fetch|crawl|scrape|read|content|open/i.test(u)&&S?{key:"connectorFetch",params:{url:S}}:m?{key:"connectorSearch",params:{query:m}}:S?{key:"connectorFetch",params:{url:S}}:{key:"connectorCall",params:{name:u?qR(u):"connector"}}}function dd(e,o){let r=o.status==="running"?"running":"done";if(ZY(o.name)){let{key:u,params:f}=n7(o.name,o.args,o.detail,o.tool);return e(`toolSteps.${u}.${r}`,f)}let c=TU[o.name];if(c){let u=o.args!==void 0?String(c.fromArgs(o.args&&typeof o.args=="object"?o.args:{})??""):VY.has(o.name)?dS(o.detail??""):o.detail;if(u!==void 0){let f=c.param==="count"?Number(u)||0:u;return e(`toolSteps.${c.key}.${r}`,{[c.param]:f})}}return o.label?o.label:e(`toolSteps.generic.${r}`,{name:qR(o.name)})}var jY,eg,VY,XY,ay,RU,xU,PR,Ge,TU,YR,e7,qR,Qae,fd=L(()=>{"use strict";BU();SU();zR();jY=i(e=>e.match(/\*\*\* (?:Add|Update|Delete) File: (.+)/)?.[1].trim(),"firstPatchPath"),eg=new Set(["update_todos","ask_user","present_plan","show_map","show_recipe","show_images","convert_value","suggest_hint","resume_later","tell_user","create_artifact","update_artifact"]),VY=new Set(["browser_visit","browser_open_result","browser_open_link"]),XY=new Set(["memory","project_memory"]),ay=new Set(["read_file","list_directory","find_files","search_text","load_skill","read_skill_file"]),RU=new Set(["search_connector_tools","get_connector_tool_schema","call_connector_tool"]);i(wU,"connectorToolName");i(ZY,"isConnectorStep");i(WY,"connectorInnerToolOf");xU=["query","q","search","text","prompt","question"],PR=["url","urls","link","links","id","ids"];i(KR,"pickString");i(DU,"connectorArgsOf");i($Y,"connectorQueryOf");Ge=i(e=>typeof e=="string"?e:"","str"),TU={read_file:{key:"readFile",param:"path",fromArgs:i(e=>QU(e),"fromArgs")},list_directory:{key:"listDir",param:"path",fromArgs:i(e=>Ge(e.path)||"/","fromArgs")},write_file:{key:"writeFile",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},publish_file:{key:"publishFile",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},edit_file:{key:"editFile",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},apply_patch:{key:"applyPatch",param:"path",fromArgs:i(e=>jY(Ge(e.input))??"","fromArgs")},delete_file:{key:"deleteFile",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},cleanup_temp_files:{key:"cleanup",param:"count",fromArgs:i(e=>Array.isArray(e.paths)?e.paths.length:0,"fromArgs")},load_skill:{key:"loadSkill",param:"name",fromArgs:i(e=>Ge(e.name),"fromArgs")},read_artifact:{key:"readArtifact",param:"name",fromArgs:i(e=>Ge(e.id),"fromArgs")},read_skill_file:{key:"readSkillFile",param:"path",fromArgs:i(e=>[Ge(e.skill),Ge(e.path)].filter(Boolean).join("/"),"fromArgs")},run_node:{key:"runScript",param:"name",fromArgs:i(e=>Ge(e.name)||"script","fromArgs")},rerun_script:{key:"rerunScript",param:"path",fromArgs:i(e=>Ge(e.script_path),"fromArgs")},document_inventory:{key:"documentInventory",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},unpack_document:{key:"unpackDocument",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},pack_document:{key:"packDocument",param:"path",fromArgs:i(e=>Ge(e.out_path)||Ge(e.dir),"fromArgs")},add_slide:{key:"addSlide",param:"name",fromArgs:i(e=>Ge(e.source),"fromArgs")},read_sheet:{key:"readSheet",param:"path",fromArgs:i(e=>[Ge(e.path),Ge(e.range)].filter(Boolean).join(" "),"fromArgs")},edit_cells:{key:"editCells",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},add_sheet:{key:"addSheet",param:"name",fromArgs:i(e=>[Ge(e.name),Ge(e.path)].filter(Boolean).join(" \u2192 "),"fromArgs")},render_document:{key:"renderDocument",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},recalc_sheet:{key:"recalcSheet",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},disk_cleanup:{key:"diskCleanup",param:"name",fromArgs:i(()=>"","fromArgs")},read_document:{key:"readDocument",param:"path",fromArgs:i(e=>[Ge(e.path),Ge(e.blocks)?`blocks ${Ge(e.blocks)}`:Ge(e.show)].filter(Boolean).join(" "),"fromArgs")},edit_document:{key:"editDocument",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},read_slide:{key:"readSlide",param:"path",fromArgs:i(e=>[Ge(e.path),e.slide!==void 0?`#${Ge(e.slide)}`:""].filter(Boolean).join(" "),"fromArgs")},edit_slide:{key:"editSlide",param:"path",fromArgs:i(e=>[Ge(e.path),e.slide!==void 0?`#${Ge(e.slide)}`:""].filter(Boolean).join(" "),"fromArgs")},find_cells:{key:"findCells",param:"query",fromArgs:i(e=>Ge(e.query)||(e.errors_only?"errors":Ge(e.path)),"fromArgs")},aggregate_range:{key:"aggregateRange",param:"path",fromArgs:i(e=>[Ge(e.path),Ge(e.range)].filter(Boolean).join(" "),"fromArgs")},trace_formula:{key:"traceFormula",param:"path",fromArgs:i(e=>[Ge(e.path),Ge(e.cell)].filter(Boolean).join(" "),"fromArgs")},read_pdf:{key:"readPdf",param:"path",fromArgs:i(e=>[Ge(e.path),Ge(e.search)?`"${Ge(e.search)}"`:Ge(e.pages)||Ge(e.show)].filter(Boolean).join(" "),"fromArgs")},edit_pdf:{key:"editPdf",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},merge_pdfs:{key:"mergePdfs",param:"path",fromArgs:i(e=>Ge(e.out_path),"fromArgs")},split_pdf:{key:"splitPdf",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},file_versions:{key:"fileVersions",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},restore_file_version:{key:"restoreFileVersion",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},web_search:{key:"webSearch",param:"query",fromArgs:i(e=>Ge(e.query),"fromArgs")},browser_search:{key:"browserSearch",param:"query",fromArgs:i(e=>Ge(e.query).slice(0,200),"fromArgs")},browser_visit:{key:"browserVisit",param:"query",fromArgs:i(e=>dS(Ge(e.url)),"fromArgs")},browser_observe_page:{key:"browserObservePage",param:"name",fromArgs:i(()=>"","fromArgs")},browser_open_result:{key:"browserOpenResult",param:"query",fromArgs:i(e=>dS(Ge(e.url)),"fromArgs")},browser_open_link:{key:"browserOpenLink",param:"query",fromArgs:i(e=>dS(Ge(e.url)),"fromArgs")},browser_scroll_page:{key:"browserScrollPage",param:"name",fromArgs:i(()=>"","fromArgs")},browser_request_takeover:{key:"browserRequestTakeover",param:"name",fromArgs:i(()=>"","fromArgs")},read_tool_result:{key:"readResult",param:"name",fromArgs:i(e=>Ge(e.id).slice(0,8),"fromArgs")},fetch_url:{key:"fetchUrl",param:"query",fromArgs:i(e=>AS(Ge(e.url)),"fromArgs")},capture_page:{key:"capturePage",param:"query",fromArgs:i(e=>AS(Ge(e.url)),"fromArgs")},browser_navigate:{key:"browserNavigate",param:"query",fromArgs:i(e=>AS(Ge(e.url))||Ge(e.direction),"fromArgs")},browser_read_page:{key:"browserReadPage",param:"name",fromArgs:i(()=>"","fromArgs")},browser_find:{key:"browserFind",param:"query",fromArgs:i(e=>Ge(e.query).slice(0,60),"fromArgs")},browser_batch:{key:"browserBatch",param:"query",fromArgs:i(e=>Array.isArray(e.actions)?String(e.actions.length):"","fromArgs")},browser_click:{key:"browserClick",param:"name",fromArgs:i(e=>typeof e.ref=="number"?`[${e.ref}]`:"","fromArgs")},browser_hover:{key:"browserHover",param:"name",fromArgs:i(e=>typeof e.ref=="number"?`[${e.ref}]`:"","fromArgs")},browser_drag:{key:"browserDrag",param:"name",fromArgs:i(e=>typeof e.ref=="number"&&typeof e.to_ref=="number"?`[${e.ref}] \u2192 [${e.to_ref}]`:"","fromArgs")},browser_type:{key:"browserType",param:"name",fromArgs:i(e=>e.secret===!0?"\u2022\u2022\u2022\u2022\u2022\u2022":Ge(e.text).slice(0,60),"fromArgs")},browser_generate_password:{key:"browserGeneratePassword",param:"name",fromArgs:i(()=>"","fromArgs")},browser_press:{key:"browserPress",param:"name",fromArgs:i(e=>Ge(e.key),"fromArgs")},browser_scroll:{key:"browserScroll",param:"name",fromArgs:i(e=>Ge(e.direction),"fromArgs")},browser_tabs:{key:"browserTabs",param:"name",fromArgs:i(e=>Ge(e.action),"fromArgs")},browser_devtools:{key:"browserDevtools",param:"name",fromArgs:i(e=>Ge(e.read)==="network"?"network":"console","fromArgs")},browser_eval:{key:"browserEval",param:"name",fromArgs:i(e=>Ge(e.expression).slice(0,60),"fromArgs")},browser_resize:{key:"browserResize",param:"name",fromArgs:i(e=>Ge(e.device)||"mobile","fromArgs")},browser_handoff:{key:"browserHandoff",param:"name",fromArgs:i(e=>Ge(e.reason).slice(0,60),"fromArgs")},browser_screenshot:{key:"browserScreenshot",param:"name",fromArgs:i(()=>"","fromArgs")},browser_download:{key:"browserDownload",param:"name",fromArgs:i(e=>typeof e.ref=="number"?`[${e.ref}]`:"","fromArgs")},browser_upload:{key:"browserUpload",param:"path",fromArgs:i(e=>Ge(e.path)||(Array.isArray(e.paths)?String(e.paths.length):""),"fromArgs")},video_frames:{key:"videoFrames",param:"path",fromArgs:i(e=>Ge(e.path),"fromArgs")},simulator_control:{key:"simulatorControl",param:"query",fromArgs:i(e=>Ge(e.action),"fromArgs")},computer:{key:"computerUse",param:"name",fromArgs:i(e=>Ge(e.app),"fromArgs")},computer_apps:{key:"computerApps",param:"name",fromArgs:i(e=>Ge(e.query),"fromArgs")},computer_request_access:{key:"computerAccess",param:"name",fromArgs:i(e=>Array.isArray(e.apps)?e.apps.map(String).join(", "):"","fromArgs")},computer_handoff:{key:"computerHandoff",param:"name",fromArgs:i(e=>Ge(e.app),"fromArgs")},simulator_build:{key:"simulatorBuild",param:"query",fromArgs:i(e=>Ge(e.scheme),"fromArgs")},convert_media:{key:"convertMedia",param:"path",fromArgs:i(e=>Ge(e.output)||Ge(e.input),"fromArgs")},find_files:{key:"findFiles",param:"query",fromArgs:i(e=>Ge(e.query),"fromArgs")},search_text:{key:"searchText",param:"query",fromArgs:i(e=>Ge(e.query),"fromArgs")},workspace_search:{key:"searchText",param:"query",fromArgs:i(e=>Ge(e.query),"fromArgs")},run_command:{key:"runCommand",param:"command",fromArgs:i(e=>Ge(e.command),"fromArgs")},wait_for:{key:"waitFor",param:"command",fromArgs:i(e=>Ge(e.command),"fromArgs")},start_process:{key:"startProcess",param:"command",fromArgs:i(e=>Ge(e.command),"fromArgs")},monitor_process:{key:"monitorProcess",param:"name",fromArgs:i(e=>Ge(e.description),"fromArgs")},cron_create:{key:"scheduleCheck",param:"name",fromArgs:i(e=>Ge(e.prompt),"fromArgs")},cron_list:{key:"listChecks",param:"name",fromArgs:i(()=>"","fromArgs")},cron_delete:{key:"cancelCheck",param:"name",fromArgs:i(e=>Ge(e.id),"fromArgs")},write_stdin:{key:"writeStdin",param:"name",fromArgs:i(e=>Ge(e.id),"fromArgs")},poll_process:{key:"pollProcess",param:"name",fromArgs:i(e=>Ge(e.id),"fromArgs")},kill_process:{key:"killProcess",param:"name",fromArgs:i(e=>Ge(e.id),"fromArgs")},github:{key:"github",param:"command",fromArgs:i(e=>Array.isArray(e.args)?e.args.map(o=>String(o)).join(" "):"","fromArgs")},gitlab:{key:"gitlab",param:"command",fromArgs:i(e=>Array.isArray(e.args)?e.args.map(o=>String(o)).join(" "):"","fromArgs")},library:{key:"library",param:"query",fromArgs:i(e=>Ge(e.query)||Ge(e.file_id)||Ge(e.action),"fromArgs")},library_upload:{key:"libraryUpload",param:"path",fromArgs:i(e=>Ge(e.name)||Ge(e.path),"fromArgs")},manage_routines:{key:"manageRoutines",param:"name",fromArgs:i(e=>Ge(e.name)||Ge(e.action),"fromArgs")},read_history:{key:"readHistory",param:"name",fromArgs:i(e=>Ge(e.query)||Ge(e.id),"fromArgs")},check_context:{key:"checkContext",param:"name",fromArgs:i(()=>"","fromArgs")},new_context:{key:"newContext",param:"name",fromArgs:i(()=>"","fromArgs")},request_permissions:{key:"requestPermissions",param:"name",fromArgs:i(e=>{let o=Array.isArray(e.write)?e.write.filter(r=>typeof r=="string"):[];return o.length?o.join(", "):e.network===!0?"network":""},"fromArgs")},tell_user:{key:"tellUser",param:"name",fromArgs:i(e=>Ge(e.message),"fromArgs")},git_push:{key:"gitPush",param:"name",fromArgs:i(()=>"","fromArgs")},create_pr:{key:"createPr",param:"name",fromArgs:i(e=>Ge(e.title),"fromArgs")},run_applescript:{key:"runAppleScript",param:"name",fromArgs:i(e=>Ge(e.summary),"fromArgs")},memory:{key:"memory",param:"name",fromArgs:i(e=>Ge(e.action)||"update","fromArgs")},project_memory:{key:"memory",param:"name",fromArgs:i(e=>Ge(e.action)||"update","fromArgs")},delegate_task:{key:"delegate",param:"count",fromArgs:i(e=>Array.isArray(e.tasks)?e.tasks.length:1,"fromArgs")},send_to_agent:{key:"sendToAgent",param:"name",fromArgs:i(e=>Ge(e.agent_id),"fromArgs")},get_extra_tool_schema:{key:"extraToolInspect",param:"name",fromArgs:i(e=>Ge(e.name)||"tool","fromArgs")},use_extra_tool:{key:"extraToolCall",param:"name",fromArgs:i(e=>Ge(e.name)||"tool","fromArgs")},generate_image:{key:"generateImage",param:"query",fromArgs:i(e=>Ge(e.prompt)||"image","fromArgs")},code_mode:{key:"codeMode",param:"count",fromArgs:i(e=>Ge(e.js).split(`
325
+ `).filter(o=>o.trim()).length||1,"fromArgs")}},YR=i(e=>/^[a-z][a-z0-9+.-]*:\/\//i.test(e),"looksLikeUrl"),e7=i(e=>e.replace(/[-_]+/g," ").trim(),"prettyToolTitle"),qR=e7;i(t7,"extraUrlCount");i(AS,"displayUrl");i(dS,"browserSite");i(n7,"connectorStep");Qae=new Set([...Object.keys(TU),...eg,...XY,...ay,...RU,"app_browser","ask_user","check_context","code_mode","delegate_task","generate_image","get_extra_tool_schema","git_push","create_pr","new_context","read_history","request_permissions","run_applescript","send_to_agent","use_extra_tool"]);i(dd,"toolStepLabel")});function _U(e,o){let r=e??[];switch(o.kind){case"spawned":return r.some(c=>c.id===o.id)?r:[...r,{id:o.id,goal:o.goal,index:o.index,total:o.total,status:"running",toolCount:0,...o.model?{model:o.model}:{}}];case"tool":return r.map(c=>c.id===o.id?{...c,toolCount:c.toolCount+1,currentAction:{name:o.name,detail:o.detail}}:c);case"completed":return r.map(c=>c.id===o.id?{...c,status:o.status,toolCount:o.toolCount,currentAction:void 0,summary:o.summary,error:o.error,usage:o.usage}:c);default:return r}}var NU=L(()=>{"use strict";i(_U,"foldSubagentEvent")});function gS(e,o,r,c){let u=_U(e,o);return u===e?e:u.map(f=>f.id!==o.id?f:e.find(E=>E.id===f.id)?o.kind==="completed"?{...f,endedAt:f.endedAt??r}:f:{...f,startedAt:r,...c?{owner:c}:{}})}function r7(e){let o=e.currentAction;return o?dd(o7,{name:o.name,detail:o.detail,status:"running"}):C("subagents.thinking")}function ps(e,o){if(o<=0)return"";if(Ot(e)<=o)return e;let r="";for(let c of e){if(Ot(r+c)>o-1)break;r+=c}return`${r}\u2026`}function fS(e){return(e??"").split(`
326
+ `).map(o=>o.trim()).find(Boolean)?.replace(/^#+\s*/,"")??""}function OU(e,o){if(e.backgrounded)return Fn("\u21BB");switch(e.status){case"running":return Kt(o);case"completed":return It("\u2713");case"failed":return Bt("\u2715");default:return Zs("\u25A0")}}function MU(e,o){let r=[C("cards.helpers.toolUses",{count:e.toolCount})],c=e.usage?.total;return c&&r.push(C("cards.helpers.tokens",{tokens:Uu(c)})),e.startedAt!==void 0&&r.push(xc(e.startedAt,e.endedAt??o)),r.join(" \xB7 ")}function HU(e,o,r){let c=Math.max(8,o-6);if(e.backgrounded)return ie(ps(C("subagents.backgrounded"),c));switch(e.status){case"running":return ie(ps(`${r7(e)} \xB7 ${MU(e,r)}`,c));case"completed":{let u=`${C("cards.helpers.done")} \xB7 ${MU(e,r)}`,f=fS(e.summary),m=f?`${u} \u2014 ${f}`:u;return ie(ps(m,c))}case"failed":return Bt(ps(C("cards.helpers.failed",{error:fS(e.error)||"\u2014"}),c));default:return ie(ps(C("cards.helpers.stopped"),c))}}function i7(e,o){let r=o.now??Date.now(),c=o.frame??"\u273B",u=Math.max(8,o.width-4);return[...e].sort((f,m)=>(f.startedAt??0)-(m.startedAt??0)||f.index-m.index).flatMap(f=>{let m=f.model?` \xB7 ${f.model}`:"",E=ps(fS(f.goal)||f.goal,Math.max(8,u-Ot(m)));return[` ${OU(f,c)} ${f.status==="running"?ht(E):E}${m?Dn(m):""}`,` ${Dn(Hu)} ${HU(f,o.width,r)}`]}).join(`
327
+ `)}function a7(e){let o=e.filter(r=>r.status!=="running"||r.backgrounded).length;return o<e.length?C("cards.helpers.progress",{done:o,total:e.length}):""}function Tc(e,o){if(!e.length&&!o.label)return"";let r=o.state??(e.some(E=>E.status==="running"&&!E.backgrounded)?"running":"done"),c=r==="running"?Kt(Ca):r==="error"?Bt(Ca):It(Ca),u=o.label??C("cards.helpers.background",{count:e.length}),f=a7(e),m=`${c} ${ht(u)}${f?ie(` \xB7 ${f}`):""}`;return e.length?`${m}
328
+ ${i7(e,o)}`:m}function sy(e,o){return e.map(r=>r.status==="running"?{...r,backgrounded:!0,endedAt:o}:r)}function kU(e,o,r=100){let c=e.find(f=>f.id===o.id);if(!c)return null;let u=`[${c.index}/${c.total}]`;return o.kind==="spawned"?` ${Kt("\u21B3")} ${ie(u)} ${ps(fS(c.goal)||c.goal,Math.max(8,r-10))}`:o.kind==="completed"?` ${OU(c,"\u273B")} ${ie(u)} ${HU(c,r,c.endedAt??Date.now())}`:null}var Gu,o7,tg=L(()=>{"use strict";Ea();NU();fd();Vt();Bo();al();Gu=new Set(["delegate_task","send_to_agent"]);i(gS,"foldHelperEvent");o7=i((e,o)=>C(e,o),"desktopT");i(r7,"helperAction");i(ps,"fitWidth");i(fS,"firstLine");i(OU,"glyph");i(MU,"stats");i(HU,"detailLine");i(i7,"helperRowsBlock");i(a7,"progress");i(Tc,"helperCell");i(sy,"backgroundRemaining");i(kU,"helperEventLine")});function JR(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} B`}function pS(e,o="\u273B"){let r=C(l7[e??""]??"cloud.status.idle");switch(e){case"running":case"queued":case"scheduled":return Kt(`${o} ${r}`);case"awaiting_user":return En(`\u25C6 ${r}`);case"done":return It(`\u2713 ${r}`);case"error":return Bt(`\u2715 ${r}`);case"cancelled":return Zs(`\u25A0 ${r}`);default:return Dn(`\u25CB ${r}`)}}function UU(e,o){let r=e.repositories[0]?.full_name??e.handoff?.name??"",c=` ${pS(e.task?.status)} ${ht(ps(e.title||"\u2014",Math.max(10,o.width-18)))}`,u=[r,o.age].filter(Boolean).join(" \xB7 ");return[c,` ${ie(ps(`${u} ${e.id}`,Math.max(10,o.width-4)))}`]}function mS(e,o){let r=[`${Kt(Pa)} ${ht(C("cloud.run.moving",{name:e.name}))}`],c=e.kind==="folder"?C("cloud.run.folder",{count:e.files}):C("cloud.run.repository",{branch:e.branch??"\u2014",changes:C("cloud.run.changes",{count:e.changes.staged+e.changes.unstaged+e.changes.untracked}),history:e.history==="snapshot"?C("cloud.run.historySnapshot"):`${C("cloud.run.historyFull")}${e.historyBytes?` (${JR(e.historyBytes)})`:""}`});if(r.push(` ${Dn(Hu)} ${ie(c)}`),o){let u=o.credential==="pool"?C("cloud.run.modelPlan",{model:o.label??o.model}):C("cloud.run.modelKey",{model:o.label??o.model,provider:o.provider});r.push(` ${ie(u)}`)}return e.skipped.secretLike.length&&r.push(` ${En(C("cloud.run.skippedSecrets",{files:e.skipped.secretLike.slice(0,5).join(", ")}))}`),r}function ly(e){let o=e.stage==="uploading"&&e.total?C("cloud.stage.uploading",{loaded:JR(e.loaded??0),total:JR(e.total)}):C(`cloud.stage.${e.stage}`);return` ${Dn(Hu)} ${ie(o)}`}function $m(e,o="\u273B",r=Date.now()){let c=IU(e),u=[C("cloud.follow.working")];c?.step&&u.push(C("cloud.follow.step",{step:c.step})),c?.name&&u.push(dd(s7,{name:c.name,detail:c.path,status:"running"}));let f=Date.parse(e.started_at??e.created_at);Number.isFinite(f)&&u.push(xc(f,r));let m=e.tokens_in+e.tokens_out;m&&u.push(C("app.run.tokens",{tokens:Uu(m)}));let E=u.slice(1);return`${Kt(o)} ${Zs(u[0])}${E.length?` ${ie(`\xB7 ${E.join(" \xB7 ")}`)}`:""}`}function cy(e){let o=Date.parse(e.started_at??e.created_at),r=Date.parse(e.finished_at??e.updated_at),c=Number.isFinite(o)&&Number.isFinite(r)?xc(o,r):"";if(e.status==="done"){let u=e.tokens_in+e.tokens_out;return ie(`${It("\u2713")} ${C("cloud.follow.done",{elapsed:c})}${u?` \xB7 ${C("app.run.tokens",{tokens:Uu(u)})}`:""}`)}return e.status==="cancelled"?ie(`\u25A0 ${C("cloud.follow.stopped")}`):`${Bt("\u2715")} ${C("cloud.follow.failed",{error:e.error??e.status})}`}function eh(e,o){if(!e)return[ie(C("cloud.finish.none"))];if(e.status==="unchanged")return[ie(C("cloud.finish.unchanged"))];if(e.status==="skipped")return[ie(e.code==="PUBLISHED_FROM_CLOUD"?C("cloud.finish.fromCloud"):C("cloud.finish.none"))];if(e.status==="failed")return[`${Bt("\u2715")} ${C("cloud.finish.failed",{step:e.step??"bring-back",error:e.error??e.code??"\u2014"})}`,ie(` ${C("cloud.finish.retry",{id:o})}`)];let r=[];return e.folder?(r.push(`${It(Ca)} ${C("cloud.finish.folder",{count:e.folder.applied})}`),e.folder.conflicts.length&&r.push(` ${En(C("cloud.finish.conflicts",{files:e.folder.conflicts.slice(0,5).join(", ")}))}`)):e.branch&&r.push(`${It(Ca)} ${C("cloud.finish.branch",{branch:Fn(e.branch),commits:e.commits??0})}`),e.pushed&&e.branch&&r.push(` ${ie(C("cloud.finish.pushed",{branch:e.branch,remote:e.pushed.remote}))}`),e.pullRequest?r.push(` ${C("cloud.finish.pullRequest",{url:Fn(e.pullRequest.url)})}`):e.openUrl&&r.push(` ${C("cloud.finish.openForm",{url:Fn(e.openUrl)})}`),r}function hS(e,o){let{session:r,messages:c}=e,u=e.task??r.task,f=[`${Kt(Pa)} ${ht(r.title||"\u2014")}${u?` ${pS(u.status)}`:""}
329
+ ${Fn(Ad(r.id))}`];for(let m of c)!m.content.trim()||m.role==="system"||f.push(m.role==="user"?m.content.split(`
330
+ `).map(E=>`${Dn("\u276F")} ${Zs(E)}`).join(`
331
+ `):sl(m.content.trimEnd(),o));return u&&ud.has(u.status)&&f.push(cy(u)),f}var s7,l7,ES=L(()=>{"use strict";fd();Vt();Bo();al();tg();Wm();uS();s7=i((e,o)=>C(e,o),"desktopT");i(JR,"bytes");l7={queued:"cloud.status.queued",scheduled:"cloud.status.scheduled",running:"cloud.status.running",awaiting_user:"cloud.status.awaiting_user",done:"cloud.status.done",error:"cloud.status.error",cancelled:"cloud.status.cancelled"};i(pS,"statusMark");i(UU,"sessionLines");i(mS,"readinessLines");i(ly,"progressLine");i($m,"taskLine");i(cy,"settledLine");i(eh,"finishLines");i(hS,"sessionTranscript")});var GU={};mi(GU,{runCloud:()=>p7});function th(e){let o=e;return o?.code==="unknown-command"?C("cloud.olderEngine"):o?.code==="signed-out"||o?.code==="SIGNED_OUT"?C("cloud.signedOut"):o?.code==="NO_CLOUD_MODEL"?C("cloud.noModel"):e instanceof Dc&&["not-a-repo","git-missing","git-license","sha256-repo","too-large","busy"].includes(e.code)?C("cloud.blocked",{reason:e.message}):o?.message??String(e)}async function c7(e){return!!(await e.command("account.state",void 0).catch(()=>null))?.signedIn}async function u7(e){let o=await e.command("cloud.sessions",void 0);if(!o.ok)return console.error(Bt(th({code:o.code,message:o.error}))),1;let r=o.data.sessions.filter(c=>!c.archived);if(!r.length)return console.log(ie(C("cloud.list.empty"))),0;console.log(ht(C("cloud.list.title")));for(let c of r.slice(0,30))for(let u of UU(c,{width:jR(),age:ry(Date.parse(c.updated_at))}))console.log(u);return console.log(ie(C("cloud.list.hint",{url:`${Vi.webAppUrl.replace(/\/+$/,"")}/code`}))),0}async function A7(e,o){let r=await e.command("cloud.get",{id:o});if(!r.ok)return console.error(Bt(r.code==="NOT_FOUND"?C("cloud.open.notFound",{id:o}):th({code:r.code,message:r.error}))),1;for(let u of hS(r.data,jR()))console.log(`${u}
332
+ `);let c=r.data.task??r.data.session.task;return c&&!["done","error","cancelled"].includes(c.status)&&console.log($m(c)),0}function LU(e=""){let o=!!process.stdout.isTTY,r=e,c="",u=0,f=null,m="",E="",S=i(()=>{o&&c&&process.stdout.write("\r\x1B[2K"),c=""},"clear"),v=i(()=>{if(!o)return;let R=E||(f&&!["done","error","cancelled","awaiting_user"].includes(f.status)?$m(f,ku[u++%ku.length]):"");R&&(S(),c=R,process.stdout.write(c.slice(0,2e3)))},"draw"),b=o?setInterval(v,250):null,N=i(R=>{S(),console.log(R),v()},"say");return{onReadiness:i(()=>{},"onReadiness"),onProgress:i(R=>{R.stage==="uploading"&&o?E=ly(R):E="",R.stage!==m&&(m=R.stage,(R.stage!=="uploading"||!o)&&N(ly(R))),v()},"onProgress"),onStarted:i(R=>{if(r=R.url,E){let D=E;E="",N(D)}let{branch:M}=R;N(`${It("\u2713")} ${C("cloud.run.started")}`),N(` ${Fn(r)}`),M&&N(ie(` ${C("cloud.run.workBack",{branch:M})}`))},"onStarted"),onStatus:i(R=>{f=R,R.status==="awaiting_user"?N(En(C("cloud.follow.needsYou",{url:r}))):!o&&!["done","error","cancelled"].includes(R.status)?N($m(R)):["done","error","cancelled"].includes(R.status)?N(cy(R)):v()},"onStatus"),onMessage:i(R=>N(`
333
+ ${sl(R.content.trimEnd(),jR())}
334
+ `),"onMessage"),onFinishing:i(()=>N(ie(C("cloud.finish.working"))),"onFinishing"),stop:i(()=>{b&&clearInterval(b),S()},"stop")}}async function d7(e,o,r,c){let u=LU(),f=new AbortController,m=!1,E=i(()=>{m&&process.exit(130),m=!0,f.abort()},"onSigint");process.on("SIGINT",E);let S="";try{let v=await cS(e,{repoPath:r,prompt:c,model:o.model,provider:o.provider,accessMode:o.mode,finish:o.finish,detach:o.detach,signal:f.signal},{...u,onReadiness:i(b=>{for(let N of mS(b,void 0))console.log(N)},"onReadiness"),onStarted:i(b=>{S=b.sessionId,console.log(ie(` ${b.model.credential==="pool"?C("cloud.run.modelPlan",{model:b.model.label??b.model.model}):C("cloud.run.modelKey",{model:b.model.label??b.model.model,provider:b.model.provider})}`)),u.onStarted?.(b)},"onStarted"),onFinished:i(b=>{for(let N of eh(b,S))console.log(N)},"onFinished")});return u.stop(),Zi(e,"cli_cloud_run",{status:v.status,detached:o.detach,via:"command"}),v.status==="detached"?(console.log(ie(C("cloud.run.detached",{id:v.sessionId}))),m?130:0):v.status==="done"&&v.finish?.status!=="failed"?0:1}catch(v){return u.stop(),console.error(Bt(`\u2715 ${th(v)}`)),1}finally{process.off("SIGINT",E)}}async function f7(e,o){let r=LU(Ad(o)),c=new AbortController,u=i(()=>c.abort(),"onSigint");process.on("SIGINT",u);try{let f=await iy(e,o,{...r,onFinished:i(m=>{for(let E of eh(m,o))console.log(E)},"onFinished")},c.signal);return r.stop(),f.status==="detached"&&console.log(ie(C("cloud.run.detached",{id:o}))),f.status==="done"||f.status==="detached"?0:1}catch(f){return r.stop(),console.error(Bt(`\u2715 ${th(f)}`)),1}finally{process.off("SIGINT",u)}}async function g7(e){let o=await e.command("cloud.models",void 0);if(!o.ok)return console.error(Bt(th({code:o.code,message:o.error}))),1;if(!o.data.models.length)return console.log(En(C("cloud.noModel"))),1;console.log(ht(C("cloud.models.title")));for(let r of o.data.models){let u=[r.credential==="pool"?C("cloud.models.plan"):C("cloud.models.key",{provider:r.provider}),r.recommended?C("cloud.models.recommended"):""].filter(Boolean).join(" \xB7 ");console.log(` ${Kt("\u2022")} ${r.model}${r.label&&r.label!==r.model?` ${ie(`(${r.label})`)}`:""} ${ie(u)}`)}return console.log(ie(C("cloud.models.hint"))),0}async function p7(e,o){let r=(e.task??"").trim(),[c="list",...u]=r?r.split(/\s+/):[],f=u.join(" ").trim();if(!["list","ls","run","open","show","follow","finish","cancel","models"].includes(c))return console.error(C("cloud.usage")),2;if(c==="run"&&!f)return console.error(C("cloud.needsTask")),2;if(["open","show","follow","finish","cancel"].includes(c)&&!f)return console.error(C("cloud.needsId",{action:c})),2;let E;try{E=await hr(()=>{},v=>console.error(ie(C("cli.print.openedBrowser",{url:v}))))}catch(v){return console.error(C("cli.engineUnreachable",{message:v instanceof Error?v.message:String(v)})),1}let S=E.client;try{if(!await c7(S))return console.error(En(C("cloud.signedOut"))),1;switch(c){case"list":case"ls":return await u7(S);case"open":case"show":return await A7(S,f);case"follow":return await f7(S,f);case"run":return await d7(S,e,o,f);case"finish":{let v=await S.command("cloud.finish",{sessionId:f,retry:!0});for(let b of eh(v,f))console.log(b);return v&&v.status!=="failed"?0:1}case"cancel":{let v=await S.command("cloud.get",{id:f}),b=v.ok?v.data.task??v.data.session.task:null,N=b?await S.command("cloud.cancel",{taskId:b.id}):{ok:!1};return console.log(N.ok?C("cloud.cancelled"):Bt(C("cloud.cancelFailed"))),N.ok?0:1}case"models":return await g7(S);default:return 2}}catch(v){return console.error(Bt(`\u2715 ${th(v)}`)),1}finally{E.dispose()}}var jR,FU=L(async()=>{"use strict";Xs();Ou();_f();Vt();Bo();al();Wm();await lS();uS();ES();jR=i(()=>Math.max(40,Math.min(process.stdout.columns||100,110)),"width");i(th,"failureText");i(c7,"signedIn");i(u7,"listSessions");i(A7,"openSession");i(LU,"followPrinter");i(d7,"runTask");i(f7,"followExisting");i(g7,"listModels");i(p7,"runCloud")});var zU={};mi(zU,{runSessions:()=>h7});function m7(e){let o=Math.round((Date.now()-e)/1e3);return o<60?C("cli.sessions.justNow"):o<3600?C("cli.sessions.minutesAgo",{count:Math.floor(o/60)}):o<86400?C("cli.sessions.hoursAgo",{count:Math.floor(o/3600)}):C("cli.sessions.daysAgo",{count:Math.floor(o/86400)})}async function h7(e){let o;try{o=await hr(()=>{})}catch(r){return console.error(C("cli.engineUnreachable",{message:r instanceof Error?r.message:String(r)})),1}try{let c=(await o.client.command("session.list",void 0)).filter(u=>u.repoPath===e&&!u.archived);if(!c.length)return console.log(ie(C("cli.sessions.none",{path:e}))),0;console.log(ht(C("cli.sessions.count",{count:c.length,path:e})));for(let u of c){let f=[u.accessMode,u.model||void 0,m7(u.updatedAt)].filter(Boolean).join(" \xB7 ");console.log(` ${Kt("\u2022")} ${u.title} ${ie(f)}`),console.log(` ${ie(`--session ${u.id}`)}`)}return 0}finally{o.dispose()}}var KU=L(()=>{"use strict";Xs();Bo();Vt();i(m7,"relativeTime");i(h7,"runSessions")});import{randomUUID as YU}from"node:crypto";function VR(e){if(!e||typeof e!="object")return null;let o=e;return o.code!=="disconnected"&&o.code!=="timeout"?null:{code:o.code,message:typeof o.message=="string"?o.message:"Connection to the engine was interrupted"}}function E7(e){if(e&&typeof e=="object"){let o=e;if(typeof o.code=="string"&&typeof o.message=="string")return{code:o.code,message:o.message,...typeof o.detail=="string"?{detail:o.detail}:{}}}return{code:"stream-failed",message:e instanceof Error?e.message:String(e)}}var CS,qU=L(()=>{"use strict";i(VR,"uncertainTransportError");i(E7,"runError");CS=class{constructor(o,r,c=YU()){this.client=o;this.events=r;this.runId=c}client;events;static{i(this,"CodeRun")}runId;off=null;settled=!1;attaching=!1;resumeInFlight=null;startRetryParams=null;reconnectNeeded=!1;observedHostEvent=!1;attachBuffer=[];appliedSeq=0;shownPermissionIds=new Set;resolvedPermissionIds=new Set;shownQuestionIds=new Set;text="";reasoning="";changes=[];get lastSeenSeq(){return this.appliedSeq}get needsReconnect(){return this.reconnectNeeded}async start(o){this.off=this.client.on(c=>this.fold(c));let r={id:this.runId,conversationId:o.sessionId,harness:o.harness??"native",...o.harnessEpochId?{harnessEpochId:o.harnessEpochId}:{},task:o.task,repoPath:o.repoPath,contextDirs:[],branch:o.branch??null,model:o.model,providerId:o.providerId,effort:"medium",fast:!1,accessMode:o.accessMode,history:o.history,phase:o.phase??"agent",...o.plan?{plan:o.plan}:{},...o.forcedSubagentId?{forcedSubagentId:o.forcedSubagentId}:{}};try{await this.client.command("run.start",r)}catch(c){if(VR(c)){if(this.observedHostEvent)return;this.startRetryParams=r,this.reconnectNeeded=!0;return}throw this.settle(),c}}async attach(o=this.appliedSeq){if(this.off)throw new Error("run is already subscribed");if(this.settled)throw new Error("run has already settled");this.appliedSeq=o,this.shownPermissionIds.clear(),this.resolvedPermissionIds.clear(),this.shownQuestionIds.clear(),this.attaching=!0,this.attachBuffer=[],this.off=this.client.on(c=>this.fold(c));let r=!1;try{if(this.startRetryParams)try{await this.client.command("run.start",this.startRetryParams),this.startRetryParams=null}catch(f){throw VR(f)?(this.reconnectNeeded=!0,f):(this.settle(),this.events.onError?.(E7(f)),f)}let c=await this.client.command("run.attach",{id:this.runId,afterSeq:o});r=!0;let u=!1;if(c.gap)if(c.checkpoint&&this.events.onCheckpoint)await this.events.onCheckpoint(c.checkpoint.message),this.text=c.checkpoint.message.content,this.reasoning=c.checkpoint.message.reasoning??"",this.changes.splice(0,this.changes.length,...(c.checkpoint.message.activity??[]).flatMap(f=>f.change?[f.change]:[])),this.appliedSeq=c.checkpoint.seq,u=!0;else if(this.events.onReplayGap)await this.events.onReplayGap(),this.appliedSeq=c.lastSeq,u=!0;else throw new Error("run replay window expired; reload the saved session before attaching");for(let f of c.events??[])this.apply(f);for(;this.attachBuffer.length;){let f=this.attachBuffer.splice(0).sort((m,E)=>m.seq-E.seq);for(let m of f)this.apply(m)}for(let f of c.pending?.permissions??[])this.shownPermissionIds.has(f.id)||this.resolvedPermissionIds.has(f.id)||(this.shownPermissionIds.add(f.id),this.events.onPermission?.(f));for(let f of c.pending?.questions??[])this.shownQuestionIds.has(f.id)||(this.shownQuestionIds.add(f.id),this.events.onQuestion?.(f));if(this.attaching=!1,this.reconnectNeeded=!1,!c.attached&&!this.settled){if(!u){if(!this.events.onReplayGap)throw new Error("run ended before attach; reload the saved session");await this.events.onReplayGap()}this.settle(),this.events.onDone?.()}return c}catch(c){throw this.attaching=!1,this.attachBuffer=[],this.off?.(),this.off=null,VR(c)&&(this.reconnectNeeded=!0),r&&!this.settled&&(this.settle(),this.events.onError?.({code:"replay-gap",message:c.message})),c}}async resume(o){if(this.resumeInFlight)return this.resumeInFlight;let r=(async()=>(this.off?.(),this.off=null,this.client=o,this.attach(this.appliedSeq)))();this.resumeInFlight=r;try{return await r}finally{this.resumeInFlight=null}}respondPermission(o,r){this.client.command("run.permission",{id:this.runId,permissionId:o,decision:r}).catch(()=>{})}respondQuestion(o,r){this.client.command("run.answer",{id:this.runId,questionId:o,answer:r}).catch(()=>{})}abort(){this.client.command("run.abort",{id:this.runId}).catch(()=>{})}connectionLost(){this.settled||(this.off?.(),this.off=null,this.reconnectNeeded=!0,this.events.onReconnectNeeded?.({code:"disconnected",message:"connection to the engine was lost"}))}giveUpConnection(){this.settled||(this.settle(),this.events.onError?.({code:"disconnected",message:"connection to the engine was lost"}))}assistantMessage(){return{id:YU(),role:"assistant",content:this.text,createdAt:Date.now(),...this.reasoning?{reasoning:this.reasoning}:{}}}settle(){this.settled||(this.settled=!0,this.off?.(),this.off=null)}fold(o){if((o.event==="run.event"||o.event==="run.done"||o.event==="run.error")&&o.id===this.runId){if(this.attaching){o.seq!==void 0&&this.attachBuffer.push(o);return}this.apply(o)}}apply(o){if(this.settled)return;if(this.observedHostEvent=!0,this.startRetryParams=null,this.reconnectNeeded=!1,o.seq!==void 0){if(o.seq<=this.appliedSeq)return;this.appliedSeq=o.seq}if(o.event==="run.done"){this.settle(),this.events.onDone?.();return}if(o.event==="run.error"){this.settle(),this.events.onError?.({code:o.code,message:o.message,detail:o.detail});return}let r=o.delta;switch(r.type){case"text":this.text+=r.text,this.events.onText?.(r.text);return;case"aside":this.text+=(this.text&&!this.text.endsWith(`
335
+ `)?`
336
+
337
+ `:"")+r.text+`
338
+ `,this.events.onText?.(r.text);return;case"reasoning":this.reasoning+=r.text,this.events.onReasoning?.(r.text);return;case"tool-call":this.events.onToolCall?.({id:r.id,name:r.name,label:r.label,detail:r.detail});return;case"tool-output":this.events.onToolOutput?.(r.id,r.chunk);return;case"tool-result":this.events.onToolResult?.({id:r.id,isError:r.isError,result:r.result});return;case"file-change":this.changes.push(r.change),this.events.onFileChange?.(r.change,r.id);return;case"todos":this.events.onTodos?.(r.todos);return;case"permission":this.shownPermissionIds.add(r.permission.id),this.events.onPermission?.(r.permission);return;case"permission-resolved":for(let c of r.ids)this.resolvedPermissionIds.add(c);this.events.onPermissionResolved?.(r.ids,r.status);return;case"question":this.shownQuestionIds.add(r.question.id),this.events.onQuestion?.(r.question);return;case"plan":this.events.onPlan?.(r.plan);return;case"command-skipped":this.events.onCommandSkipped?.({id:r.id,command:r.command,reason:r.reason,reasonCode:r.reasonCode,category:r.category,kind:r.kind,grant:r.grant,scopeSummary:r.scopeSummary,payloadComplete:r.payloadComplete,actionFingerprint:r.actionFingerprint,revisionFingerprint:r.revisionFingerprint,status:r.status});return;case"usage":this.events.onUsage?.(r.usage);return;case"workspace-busy":this.events.onWorkspaceBusy?.(r.others);return;case"injection-detected":this.events.onInjectionDetected?.(r.source);return;case"gate-denied":this.events.onGateDenied?.({gate:r.gate,action:r.action,reason:r.reason});return;case"connector-error":this.events.onConnectorError?.({connectorId:r.connectorId,connectorName:r.connectorName,message:r.message});return;case"step-budget":this.events.onStepBudget?.(r.reason);return;case"subagent":this.events.onSubagent?.(r.event);return;default:return}}}});var PU=L(()=>{"use strict";fd()});var JU=L(()=>{"use strict";zR()});function C7(e){return XU.has(e)||ZU.has(e)||XR.has(e)}function v7(e,o){if(!e)return o?uy(o):void 0;if(!o||e.includes(o))return uy(e);if(o.includes(e))return uy(o);let r=uy(o,1500),c=`
339
+ [Streamed command output]
340
+ `;return r+c+uy(e,WR-r.length-c.length)}function Q7(e){let o=e!==null&&typeof e=="object"&&!Array.isArray(e)?e:void 0,r=i(f=>{let m=typeof f=="number"?f:typeof f=="string"&&/^\d+$/.test(f)?Number(f):void 0;return m!==void 0&&Number.isSafeInteger(m)&&m>=1?m:void 0},"integer"),c=r(o?.offset)??1,u=r(o?.limit);return c===1&&u===void 0?void 0:`${c}:${u??""}`}function b7(e){let o=new Set,r=new Set,c=e.map(()=>!0);for(let u=e.length-1;u>=0;u--){let f=e[u];if(f.change){r.add(VU(f.change.path));continue}if(!XU.has(f.name))continue;let m=f.name==="read_file"?bU(f.detail).map(VU):[],E=f.name==="read_file"?`${f.name}::${m.join(", ")}::${f.readRange??""}`:`${f.name}::${f.detail??""}`,S=m.some(v=>r.has(v));if(o.has(E)||S){c[u]=!1;continue}o.add(E)}return e.filter((u,f)=>c[f])}function R7(e){let o=b7(e),r=[],c=0,u=0,f=[],m=0;for(let E=o.length-1;E>=0;E--){let S=o[E],v=!S.change&&S7(S.body);if(!v&&m>=I7){u=E+1;break}v||(m+=1);let b,N="";if(S.change){let M=S.change.kind==="create"?"created":"edited";b=`### ${S.isError?"FAILED ":""}${S.name}: ${S.change.path} (${M} +${S.change.additions} \u2212${S.change.deletions})`,S.isError&&S.body&&(N=jU(S.body))}else{let M=S.detail?`${S.name}: ${S.detail}`:S.name;b=`### ${S.isError?"FAILED ":""}${M}`,S.body&&(N=jU(S.body))}let R=N?`${b}
341
+ ${N}`:b;if(c+R.length>y7&&f.length){u=E+1;break}c+=R.length,f.push(R)}return f.length?(f.reverse(),u&&r.push(`(${u} earlier tool result${u===1?"":"s"} omitted to save space \u2014 search them with read_history if you need one)`),r.push(...f),`
342
+
343
+ [Tool results already gathered earlier in this task \u2014 REUSE these; do NOT re-read these files or re-run these commands unless they may have changed:]
344
+
345
+ `+r.join(`
346
+
347
+ `)):""}function WU(e){if(!e?.length)return"";let o=[];for(let r of e){if(r.status==="running")continue;let c=r.status==="error";if(XR.has(r.name)&&r.change)o.push({name:r.name,change:r.change,isError:c,body:c?r.replay??r.result:void 0});else if(C7(r.name)){let u=ZU.has(r.name)?v7(r.output,r.replay??r.result):r.replay??(c&&XR.has(r.name)?r.result:void 0);u&&o.push({name:r.name,detail:r.detail,body:u,isError:c,readRange:r.name==="read_file"?Q7(r.input):void 0})}}return R7(o)}var XU,ZU,XR,WR,y7,I7,B7,S7,ZR,jU,uy,VU,$U=L(()=>{"use strict";PU();JU();XU=ay,ZU=new Set(["run_command"]),XR=new Set(["write_file","edit_file","apply_patch"]);i(C7,"isReplayable");WR=4e3,y7=2e4,I7=12,B7=/^\((?:no files matching|no matches for|no such file|empty file)\b/,S7=i(e=>!!e&&e.length<=240&&B7.test(e.trim()),"isInformationless"),ZR=`
348
+ \u2026(truncated \u2014 the full result is searchable with read_history)`,jU=i((e,o=WR)=>e.length>o?e.slice(0,o)+ZR:e,"clip"),uy=i((e,o=WR)=>{if(e.length<=o)return e;let r=Math.max(0,o-ZR.length),c=Math.floor(r*.4);return e.slice(0,c)+ZR+e.slice(-(r-c))},"clipCommand");i(v7,"commandBody");VU=i(e=>e.replace(/\\/g,"/").replace(/\/{2,}/g,"/").replace(/^(?:\.\/)+/,""),"canonPath");i(Q7,"readRangeKey");i(b7,"dedupeStaleReads");i(R7,"render");i(WU,"toolHistorySuffixFromActivity")});var nh,$R=L(()=>{"use strict";qU();$U();nh=class{constructor(o){this.client=o}client;static{i(this,"CodeSessionDriver")}session=null;run=null;get activeRun(){return this.run}get currentSession(){return this.session}setSession(o){this.session=o}async loadTurns(o){return(await this.loadMessages(o)).map(r=>({role:r.role,content:r.content}))}async loadMessages(o){return((await this.client.command("session.get",{id:o}))?.messages??[]).filter(c=>c.role==="user"||c.role==="assistant")}async sessionsForRepo(o){return(await this.client.command("session.list",void 0)).filter(c=>c.repoPath===o)}async ensureSession(o,r="VS Code session"){if(this.session?.repoPath===o)return this.session;let c=await this.sessionsForRepo(o);return this.session=c[0]??await this.client.command("session.create",{title:r,repoPath:o}),this.session}async newSession(o,r="VS Code session",c={}){return this.session=await this.client.command("session.create",{title:r,repoPath:o,...c}),this.session}async runTask(o,r){if(this.run)throw new Error("a run is already in flight");let c=await this.ensureSession(o.repoPath,o.sessionTitle),u=await this.client.command("session.get",{id:c.id});if((!u||u.repoPath!==o.repoPath)&&(this.session=null,c=await this.ensureSession(o.repoPath,o.sessionTitle),u=await this.client.command("session.get",{id:c.id}),!u))throw new Error("Code session disappeared before the run started");c=u,this.session=u;let f={};o.model!==void 0&&o.model!==c.model&&(f.model=o.model),o.providerId!==void 0&&o.providerId!==c.provider&&(f.provider=o.providerId),Object.keys(f).length&&(c=await this.client.command("session.updateMeta",{id:c.id,patch:f}),this.session=c);let m=o.providerId??c.provider,S=(c.harness==="codex"||c.harness==="opencode")&&!m&&o.model===void 0?void 0:o.model??c.model,v=u.messages.filter(N=>N.role==="user"||N.role==="assistant").map(N=>({role:N.role,content:N.content+(N.role==="assistant"?WU(N.activity):"")})),b=new CS(this.client,{...r,onDone:i(()=>{this.run=null,r.onDone?.()},"onDone"),onError:i(N=>{this.run=null,r.onError?.(N)},"onError")});this.run=b;try{await b.start({sessionId:c.id,task:o.task,repoPath:o.repoPath,accessMode:o.accessMode,history:v,branch:c.branch??null,model:S,providerId:m,harness:c.harness,harnessEpochId:c.harnessEpochId,phase:o.phase,plan:o.plan,forcedSubagentId:o.forcedSubagentId})}catch(N){throw this.run=null,N}return b}}});var eL,tL=L(()=>{"use strict";eL=i(e=>`'${e.replaceAll("'","'\\''")}'`,"shq")});function nL(e){return/^[\w@%+=:,./-]+$/.test(e)?e:eL(e)}var oL=L(()=>{"use strict";tL();i(nL,"shellQuote")});function yS(e,o,r=process.platform){let c=r==="win32"?f=>/^[\w@+=:,./\\-]+$/.test(f)?f:`'${f.replaceAll("'","''")}'`:nL;return["moreai",...o?["-C",o]:[],"--session",e].map(c).join(" ")}var ew=L(()=>{"use strict";oL();i(yS,"sessionResumeCommand")});function oh(e,o){let r=(e??"").split(`
349
+ `)[0].trim();if(r)return r.length>60?`${r.slice(0,59)}\u2026`:r;let c=o.split(/[\\/]/).filter(Boolean).pop()??C("cli.session.fallbackName");return C("cli.session.defaultTitle",{name:c})}async function IS(e,o,r,c){if(c.sessionId){let u=await o.command("session.get",{id:c.sessionId});if(!u)throw new Error(C("cli.session.notFound",{id:c.sessionId}));if(u.repoPath!==r){let f=C("app.session.worksIn",{path:u.repoPath||C("pickers.sessions.noFolder")}),m=u.repoPath?`
350
+ ${C("app.session.openWith")} ${yS(u.id,u.repoPath)}`:"";throw new Error(`${u.title} ${f}${m}`)}return e.setSession(u),u}if(c.continueSession){let u=await e.sessionsForRepo(r);for(let f of u.filter(m=>!m.archived)){let m=await o.command("session.get",{id:f.id});if(!(!m||m.archived||m.repoPath!==r))return e.setSession(m),m}}return null}var tw=L(()=>{"use strict";Vt();ew();i(oh,"sessionTitleFor");i(IS,"bindSession")});function BS(e){switch(e.code){case"no-provider":case"no-key":case"unknown-provider":return C("cli.errorHint.noProvider");case"no-model":return C("cli.errorHint.noModel");case"disconnected":return C("cli.errorHint.disconnected");case"harness-provider":return C("cli.errorHint.harnessProvider");case"unsupported":return C("cli.errorHint.unsupported");default:return}}var nw=L(()=>{"use strict";Vt();i(BS,"errorHint")});function ow(e,o){let r=o.toLowerCase();return e.some(c=>c.toLowerCase()===r)}function ng(e,o,r,c){if(o)return{model:o,...rL(e,o,r)};if(!r){for(let m of[e?.preferred,c])if(m&&e?.providers.some(E=>E.id===m.providerId&&E.connected&&ow(E.models,m.model)))return{model:m.model,providerId:m.providerId}}let u=r??e?.defaultProviderId??void 0,f=e?.providers.find(m=>m.id===u&&m.connected);return{...f?.defaultModel||f?.models[0]?{model:f.defaultModel??f.models[0]}:{},...u?{providerId:u}:{}}}function rL(e,o,r){if(r)return{providerId:r};if(!o||!e)return{};let c=e.providers.filter(u=>u.connected&&ow(u.models,o)).map(u=>u.id);if(c.length===1)return{providerId:c[0]};if(c.length===0)return{};for(let u of[e.preferred?.providerId,e.defaultProviderId])if(u&&c.includes(u))return{providerId:u};return{ambiguous:c}}function Ay(e,o){return`moreai: ${C("cli.model.ambiguous",{model:e,providers:o.join(", ")})}`}function SS(e){let{session:o,providers:r,modelOverride:c,providerOverride:u}=e,f=c??o.model,m=c&&!u?c===o.model&&o.provider?{providerId:o.provider}:rL(r,c):{};if(o.harness!=="native"&&m.ambiguous?.length)return{ok:!1,reason:C("cli.model.severalForAgent",{model:c})};let E=u??m.providerId??(c&&c!==o.model?void 0:o.provider);if(o.harness!=="native"){if(!r)return{ok:!1,reason:C("cli.model.cannotVerify")};if(c&&!u&&!m.providerId&&c!==o.model)return{ok:!1,reason:C("cli.model.notOffered",{model:c})};if(o.harness==="claude-code"&&!E)return{ok:!1,reason:C("cli.model.claudeNeedsSelectedKey")};if(E){let S=r.providers.find(v=>v.id===E);if(!S?.connected||S.connectedVia!=="key")return{ok:!1,reason:C("cli.model.needsApiKey",{provider:E})};if(S.models.length&&f&&!ow(S.models,f))return{ok:!1,reason:C("cli.model.notOfferedBy",{model:f,provider:S.label})};if(o.harness==="claude-code"&&E!=="anthropic"&&E!=="zai")return{ok:!1,reason:C("cli.model.claudeNeedsKey")};if(o.harness==="codex"&&!["openai","openrouter","zai"].includes(E))return{ok:!1,reason:C("cli.model.codexNeedsKey")};if(o.harness==="opencode"){let v=LB.find(b=>b.id===E);if(!v||v.protocol==="google"||!v.defaultBaseUrl)return{ok:!1,reason:C("cli.model.opencodeProtocol",{provider:S.label})}}}}return{ok:!0,...c?{model:c}:{},...u||m.providerId?{providerId:u??m.providerId}:{},displayModel:f,...m.ambiguous?{ambiguous:m.ambiguous}:{}}}var rw=L(()=>{"use strict";ib();Vt();i(ow,"offersModel");i(ng,"initialSessionSelection");i(rL,"resolveModelProvider");i(Ay,"ambiguousModelNote");i(SS,"cliRunSelection")});function vS(e){for(let o of e.split(`
351
+ `)){let r=/^\s*@([a-z][a-z0-9-]*)(?=\s|$)/i.exec(o);if(!r)continue;let c=r[1].toLowerCase();if(iL.some(u=>u.name===`@${c}`))return c}}function iw(e){if(e.startsWith("@")){if(/\s/.test(e))return[];let r=e.toLowerCase();return iL.filter(c=>c.name.startsWith(r))}if(!e.startsWith("/"))return[];let o=e.split(/\s/,1)[0].toLowerCase();return e.includes(" ")&&dy.some(r=>r.name===aL[o]||r.name===o)?[]:dy.filter(r=>r.name.startsWith(o))}function QS(e){let o=e.trim();if(!o.startsWith("/"))return null;let[r,...c]=o.split(/\s+/),u=aL[r.toLowerCase()]??r.toLowerCase();return dy.some(f=>f.name===u)?{command:u,arg:c.join(" ")}:null}var oi,dy,iL,aL,fy=L(()=>{"use strict";Vt();oi=i((e,o,r)=>({name:e,args:o,get description(){return C(r)}}),"command"),dy=[oi("/new","","slash.desc.new"),oi("/sessions","","slash.desc.sessions"),oi("/cloud","[task]","slash.desc.cloud"),oi("/auth","","slash.desc.auth"),oi("/connectors","","slash.desc.connectors"),oi("/login","","slash.desc.login"),oi("/mode","[plan|read-only|accept-edits|auto|full]","slash.desc.mode"),oi("/model","[search]","slash.desc.model"),oi("/models","","slash.desc.models"),oi("/language","[code|auto]","slash.desc.language"),oi("/harness","[native|codex|claude-code|opencode]","slash.desc.harness"),oi("/status","","slash.desc.status"),oi("/analytics","[on|usage|off]","slash.desc.analytics"),oi("/voice","","slash.desc.voice"),oi("/help","","slash.desc.help"),oi("/quit","","slash.desc.quit")],iL=[oi("@explore","<task>","slash.desc.helperExplore"),oi("@scout","<task>","slash.desc.helperScout"),oi("@general","<task>","slash.desc.helperGeneral")];i(vS,"summonedHelper");aL={"/resume":"/sessions","/clear":"/new","/exit":"/quit","/telemetry":"/analytics","/lang":"/language"};i(iw,"slashMatches");i(QS,"parseSlash")});function D7(e){return e.split(/[-_]/).filter(Boolean).map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}function sL(e){return w7[e]??D7(e)}function cL(e){let o=e.indexOf("/");if(o>0){let c=e.slice(0,o).replace(/^~+/,"").toLowerCase();return{key:c,label:sL(c)}}let r=e.toLowerCase();for(let[c,u]of x7)if(r.startsWith(c))return{key:u,label:sL(u)};return{key:"other",label:"Other"}}function aw(e){return e===0?"$0":e>=1?`$${Number.isInteger(e)?e:e.toFixed(2)}`:e>=.01?`$${e.toFixed(2)}`:`$${e.toPrecision(1)}`}function uL(e,o){return o?.[e]?!0:e.toLowerCase().endsWith(":free")}function lL(e){return e.toLowerCase().split(/[/\-_.:\s]+/).filter(Boolean)}function AL(e,o){let r=e.id.toLowerCase(),c=e.label.toLowerCase();if(r===o||c===o)return 4;if(r.startsWith(o)||c.startsWith(o))return 3;if([...lL(r),...lL(c)].some(f=>f.startsWith(o)))return 2;if(r.includes(o)||c.includes(o))return 1;let u=e.provider;return u&&(u.label.toLowerCase().includes(o)||u.id.toLowerCase()===o)?1:0}var w7,x7,dL=L(()=>{"use strict";w7={anthropic:"Anthropic",openai:"OpenAI",google:"Google","google-vertex":"Google",meta:"Meta","meta-llama":"Meta",mistral:"Mistral",mistralai:"Mistral",deepseek:"DeepSeek",qwen:"Qwen",alibaba:"Qwen","x-ai":"xAI",xai:"xAI",cohere:"Cohere",perplexity:"Perplexity",microsoft:"Microsoft",nvidia:"NVIDIA",amazon:"Amazon",ai21:"AI21",databricks:"Databricks",nousresearch:"Nous","01-ai":"01.AI","01ai":"01.AI",moonshotai:"Moonshot",moonshot:"Moonshot",z:"Zhipu","z-ai":"Zhipu"},x7=[["claude","anthropic"],["gpt","openai"],["chatgpt","openai"],["o1","openai"],["o3","openai"],["o4","openai"],["davinci","openai"],["gemini","google"],["gemma","google"],["llama","meta"],["deepseek","deepseek"],["qwen","qwen"],["qwq","qwen"],["mistral","mistral"],["mixtral","mistral"],["ministral","mistral"],["codestral","mistral"],["grok","x-ai"],["command","cohere"],["phi","microsoft"],["kimi","moonshotai"],["glm","z-ai"],["yi","01-ai"]];i(D7,"titleCase");i(sL,"labelFor");i(cL,"inferVendor");i(aw,"formatPricePerM");i(uL,"isFreeModel");i(lL,"tokenize");i(AL,"scoreModel")});import lw from"node:fs";import fL from"node:path";function gL(e){let o=(e?.providers??[]).filter(c=>c.connected&&c.models.length>0),r=e?.defaultProviderId;return[...o.filter(c=>c.id===r),...o.filter(c=>c.id!==r)]}function bS(e,o){let r=[];for(let u of gL(e)){let f=new Set(u.pinnedModels??[]),m=new Set;for(let E of u.models)m.has(E)||(m.add(E),r.push({providerId:u.id,providerLabel:u.label,id:E,vendor:cL(E).label,...u.modelMeta?.[E]?{meta:u.modelMeta[E]}:{},pinned:f.has(E),current:!!o?.model&&o.model===E&&(!o.providerId||o.providerId===u.id)}))}let c=r.filter(u=>u.current);for(let u of c.slice(1))u.current=!1;return r}function pL(e,o){let r=gL(e);return[{id:rh,label:C("pickers.model.scopeAll"),count:o.length},...r.map(c=>({id:c.id,label:c.label,count:o.filter(u=>u.providerId===c.id).length}))]}function mL(e,o){return e.id.localeCompare(o.id,void 0,{numeric:!0})}function M7(e,o){let r=o.trim().toLowerCase().split(/\s+/).filter(Boolean);if(!r.length)return e.map(u=>({entry:u,positions:[]}));let c=[];for(let u of e){let f=0,m=[],E={id:u.id,label:u.id,provider:{id:u.providerId,label:u.providerLabel}};for(let S of r){let v=Math.max(AL(E,S),u.vendor.toLowerCase().startsWith(S)?1:0,hR(S,u.providerLabel)?1:0);if(v<=0){f=-1;break}f+=v;let b=u.id.toLowerCase().indexOf(S);if(b>=0)for(let N=b;N<b+S.length;N++)m.push(N)}f>0&&c.push({entry:u,positions:[...new Set(m)].sort((S,v)=>S-v),score:f})}return c.sort((u,f)=>f.score-u.score||Number(f.entry.pinned)-Number(u.entry.pinned)||Number(f.entry.current)-Number(u.entry.current)||mL(u.entry,f.entry)),c.map(({entry:u,positions:f})=>({entry:u,positions:f}))}function uw(e,o){let r=o.scope===rh?e:e.filter(M=>M.providerId===o.scope),c=i(M=>_c(M.entry),"keyOf");if(o.query.trim())return M7(r,o.query).map(({entry:M,positions:D})=>({kind:"item",key:`s:${_c(M)}`,item:{entry:M,showProvider:o.scope===rh,positions:D}}));let u=new Map(r.map(M=>[_c(M),M])),f=new Set,m=i((M,D)=>M.filter(k=>{let H=_c(k);return f.has(H)?!1:(f.add(H),!0)}).map(k=>({entry:k,showProvider:D})),"take"),E=o.scope===rh,S=m(r.filter(M=>M.current),E),v=m(r.filter(M=>M.pinned),E),b=m((o.recents??[]).map(M=>u.get(_c({providerId:M.providerId,id:M.model}))).filter(M=>!!M).slice(0,_7),E),N=[{key:"current",label:C("pickers.model.section.current"),items:S},{key:"pinned",label:C("pickers.model.section.pinned"),items:v},{key:"recent",label:C("pickers.model.section.recent"),items:b}],R=[...new Set(r.map(M=>M.providerId))];for(let M of R){let D=r.filter(Qe=>Qe.providerId===M),k=D.filter(Qe=>!f.has(_c(Qe)));if(!k.length)continue;let H=D[0].providerLabel,$=[...new Set(k.map(Qe=>Qe.vendor))];D.length>=T7&&$.length>1?($.sort((Qe,Ee)=>Qe==="Other"?1:Ee==="Other"?-1:Qe.localeCompare(Ee)),$.forEach((Qe,Ee)=>{let Ce=k.filter(Me=>Me.vendor===Qe).sort(mL);N.push({key:`p:${M}:${Qe}`,label:C("pickers.model.section.vendor",{provider:H,vendor:Qe}),...Ee===0?{detail:C("pickers.model.count",{count:D.length})}:{},items:m(Ce,!1)})})):N.push({key:`p:${M}`,label:H,detail:C("pickers.model.count",{count:D.length}),items:m(k,!1)})}return id(N,c)}function hL(e){let o=[],r=e.meta;return r?.outOfPlan&&o.push(typeof r.outOfPlan=="string"?C("pickers.model.planRequired",{plan:r.outOfPlan}):C("pickers.model.notInPlan")),r?.context&&o.push(O7(r.context)),r?.free||uL(e.id)?o.push(C("pickers.model.free")):r?.price&&o.push(`${aw(r.price.input)}/${aw(r.price.output)}`),o.join(" \xB7 ")}function O7(e){let o=H7();return e>=1e6?`${o.format(Number((e/1e6).toFixed(1)))}M`:e>=1e3?`${o.format(Math.round(e/1e3))}K`:o.format(e)}function H7(){let e=za();if(sw?.language!==e){let o={maximumFractionDigits:1,useGrouping:!1},r;try{r=new Intl.NumberFormat(e,o)}catch{r=new Intl.NumberFormat("en",o)}sw={language:e,format:r}}return sw.format}function EL(e,o){let r=o.trim().toLowerCase();if(!r)return null;let c=e.filter(m=>`${m.providerId}:${m.id}`.toLowerCase()===r||`${m.providerId}/${m.id}`.toLowerCase()===r);if(c.length===1)return c[0];let u=e.filter(m=>m.id.toLowerCase()===r);return u.length===1?u[0]:u.find(m=>m.current)??null}function Fu(e){if(!e)return[];try{let o=JSON.parse(lw.readFileSync(cw(e),"utf8"));return Array.isArray(o.recent)?o.recent.filter(r=>!!r&&typeof r.providerId=="string"&&typeof r.model=="string"):[]}catch{return[]}}function k7(e,o){return[o,...e.filter(r=>r.providerId!==o.providerId||r.model!==o.model)].slice(0,N7)}function CL(e,o){let r=k7(Fu(e),o);if(!e)return r;try{lw.mkdirSync(fL.dirname(cw(e)),{recursive:!0}),lw.writeFileSync(cw(e),JSON.stringify({recent:r}))}catch{}return r}var rh,T7,_7,N7,_c,sw,cw,RS=L(()=>{"use strict";dL();Vt();Mu();rd();rh="all",T7=10,_7=5,N7=10,_c=i(e=>`${e.providerId}/${e.id}`,"entryKey");i(gL,"pickerProviders");i(bS,"modelEntries");i(pL,"scopeTabs");i(mL,"compareIds");i(M7,"searchModelEntries");i(uw,"modelPickerRows");i(hL,"modelFacts");i(O7,"formatTokens");i(H7,"tokenNumberFormat");i(EL,"exactModelMatch");cw=i(e=>fL.join(e,"cli","models.json"),"recentsFile");i(Fu,"readRecentModels");i(k7,"withRecent");i(CL,"rememberRecentModel")});var IL={};mi(IL,{runPrint:()=>G7});async function G7(e,o,r){e.json&&(D_(!1),YA("en"));let c=i(R=>{e.json&&wS(JSON.stringify(R)+`
352
+ `)},"emit"),u;try{u=await hr(()=>{},R=>yr(C("cli.print.openedBrowser",{url:R})))}catch(R){let M=R instanceof Error?R.message:String(R);return e.json?c({type:"error",code:"connect-failed",message:M}):(yr(C("cli.engineUnreachable",{message:M})),yr(C("cli.print.doctorHint"))),1}let f=await u.client.command("telemetry.state",void 0).catch(()=>null),m=tU(u.dataDir,f);m&&yr(m),Zi(u.client,"app_launched",{command:"print",interactive:!1,engine_spawned:u.spawned,json:e.json,continued:e.continueSession||!!e.session});let E=new nh(u.client),S=new Set,v=i(R=>{S.has(R)||(S.add(R),R.dispose())},"disposeConnection"),b;BQ(()=>b?b():process.exit(141));let N=await new Promise(R=>{let M=!1,D=!1,k=!1,H=null,$=!1,Qe=i(Ce=>{$||k||($=!0,Ce.abort())},"requestAbort"),Ee=i(()=>c({type:"result",ok:!1,code:"aborted",message:"interrupted"}),"emitInterrupted");b=i(()=>{M&&process.exit(130),M=!0;let Ce=H??E.activeRun;Ce?Qe(Ce):D||(k=!0,Ee(),R(130))},"interrupt"),process.on("SIGINT",b),(async()=>{try{let Ce=await IS(E,u.client,o,{continueSession:e.continueSession,sessionId:e.session});if(M)return;let Me=e.mode??"auto",ge,Le;if(Ce){let W=await u.client.command("session.get",{id:Ce.id});if(M)return;if(!W)throw new Error(C("cli.print.sessionGone"));E.setSession(W);let ut=await u.client.command("provider.list",void 0).catch(()=>{});if(M)return;let pt=SS({session:W,providers:ut,modelOverride:e.model,providerOverride:e.provider});if(!pt.ok)throw new Error(pt.reason);ge=pt.model,Le=pt.providerId,pt.ambiguous?.length&&!e.json&&yr(Ay(pt.displayModel,pt.ambiguous))}else{let W=await u.client.command("provider.list",void 0).catch(()=>{});if(M)return;let ut=ng(W,e.model,e.provider,Fu(u.dataDir)[0]);if(ge=ut.model,Le=ut.providerId,ut.ambiguous&&ge&&!e.json&&yr(Ay(ge,ut.ambiguous)),await E.newSession(o,oh(r,o),{model:ge,provider:Le}),M)return}c({type:"run-start",repoPath:o,mode:Me,model:ge??null,provider:Le??null});let le="",ue=[],te=[],re=i(W=>{if(W.startsWith(le))e.json||wS(W.slice(le.length));else if(!e.json)throw new Error(C("cli.print.outputDiverged"));le=W,e.json&&c({type:"checkpoint",text:W})},"syncText"),ee=i(async()=>{let W=E.currentSession?.id??Ce?.id;if(!W)throw new Error(C("cli.print.replayNoSession"));let pt=(await u.client.command("session.get",{id:W}))?.messages.slice().reverse().find(P=>P.role==="assistant"&&P.runId===H?.runId);if(!pt)throw new Error(C("cli.print.replayUnavailable",{id:W}));re(pt.content)},"restoreSaved");D=!0;let Se=vS(r);Se&&Zi(u.client,"cli_helper_summoned",{helper:Se}),H=await E.runTask({task:r,repoPath:o,accessMode:Me,sessionTitle:oh(r,o),model:ge,providerId:Le,forcedSubagentId:Se},{onText:i(W=>{le+=W,e.json?c({type:"text",text:W}):wS(W)},"onText"),onReasoning:i(W=>{e.json&&c({type:"reasoning",text:W})},"onReasoning"),onToolCall:i(W=>{e.json?c({type:"tool-call",id:W.id,name:W.name,label:W.label,detail:W.detail??null}):eg.has(W.name)||yr(wc("running",W.label,W.detail))},"onToolCall"),onSubagent:i(W=>{if(ue=gS(ue,W,Date.now()),e.json){c({type:"subagent",event:W});return}let ut=kU(ue,W);ut&&yr(ut)},"onSubagent"),onToolOutput:i((W,ut)=>{e.json?c({type:"tool-output",id:W,chunk:ut}):process.stderr.write(ut)},"onToolOutput"),onToolResult:i(W=>{e.json?c({type:"tool-result",id:W.id,isError:W.isError??!1,result:W.result??null}):W.isError&&W.result&&yr(Vm(W.result,3,!0))},"onToolResult"),onFileChange:i(W=>{e.json?c({type:"file-change",path:W.path,kind:W.kind,additions:W.additions,deletions:W.deletions}):yr($f(W))},"onFileChange"),onTodos:i(W=>c({type:"todos",todos:W}),"onTodos"),onUsage:i(W=>c({type:"usage",usage:W}),"onUsage"),onPlan:i(W=>{e.json?c({type:"plan",plan:W}):yr(il(C("cli.print.planTitle"),C("cli.print.planDetail")))},"onPlan"),onCommandSkipped:i(W=>{e.json?c({type:"command-skipped",command:W.command,reason:W.reason}):yr(il(C("cli.print.held",{command:W.command}),W.reason))},"onCommandSkipped"),onConnectorError:i(W=>{e.json?c({type:"connector-error",connectorId:W.connectorId,connectorName:W.connectorName,message:W.message}):yr(il(C("cli.print.connectorFailed",{name:W.connectorName}),W.message))},"onConnectorError"),onWorkspaceBusy:i(W=>{e.json?c({type:"workspace-busy",others:W}):yr(il(C("cli.print.sharedTree"),C("cli.print.othersActive",{count:W})))},"onWorkspaceBusy"),onPermission:i(W=>{H?H.respondPermission(W.id,"reject"):te.push(ut=>ut.respondPermission(W.id,"reject")),e.json?c({type:"permission-auto-rejected",title:W.title}):yr(il(C("cli.print.declined",{title:W.title}),C("cli.print.declinedDetail")))},"onPermission"),onQuestion:i(W=>{let ut={answers:W.questions.map(pt=>({questionId:pt.id,selected:[],custom:"Non-interactive run \u2014 no user available. Use your judgement and proceed."}))};H?H.respondQuestion(W.id,ut):te.push(pt=>pt.respondQuestion(W.id,ut)),c({type:"question-auto-answered"})},"onQuestion"),onCheckpoint:i(W=>re(W.content),"onCheckpoint"),onReplayGap:ee,onStepBudget:i(W=>{e.json?c({type:"step-budget",...W?{reason:W}:{}}):yr(il(W==="output-length"?C("cli.print.outputLimit"):C("cli.print.stepBudget"),C("cli.print.continueHint")))},"onStepBudget"),onDone:i(()=>{k=!0,e.json?M?Ee():c({type:"result",ok:!0,text:le}):wS(`
353
+ `),R(M?130:0)},"onDone"),onError:i(W=>{if(k=!0,e.json)c({type:"result",ok:!1,code:W.code,message:W.message});else{yr(""),yr(C("cli.print.runError",{code:W.code,message:W.message}));let ut=BS(W);ut&&yr(ut)}R(M?130:1)},"onError")}),D=!1;let tt=H;M&&Qe(tt);for(let W of te)W(tt);let Ie=null,Pe=i(async W=>{await W.client.command("run.abort",{id:tt.runId}),k||(k=!0,Ee(),R(130))},"abortRestored"),ct=i(async()=>{for(let W of U7){if(await L7(W),k)return;let ut=null;try{ut=await hr(()=>{},P=>yr(C("cli.print.openedBrowser",{url:P})));let pt=u;u=ut;try{M?await Pe(ut):(await tt.resume(ut.client),M&&!k&&await Pe(ut))}catch(P){throw u=pt,k&&v(pt),P}k||u.onDisconnect(Je),v(pt);return}catch{if(ut&&v(ut),k)return}}if(!k){let W=E.currentSession?.id??Ce?.id;yr(W?C("cli.print.reconnectFailedSession",{id:W}):C("cli.print.reconnectFailed")),tt.giveUpConnection()}},"reconnect"),Je=i(()=>{k||Ie||(tt.connectionLost(),Ie=ct().finally(()=>{Ie=null}))},"onDisconnect");k||(u.onDisconnect(Je),(tt.needsReconnect||u.client.isConnected&&!u.client.isConnected())&&Je())}catch(Ce){if(M){k||(k=!0,Ee(),R(130));return}let Me=Ce instanceof Error?Ce.message:String(Ce);e.json?c({type:"error",code:"start-failed",message:Me}):yr(C("cli.print.startFailed",{message:Me})),R(1)}})()});return b&&process.off("SIGINT",b),BQ(null),v(u),IQ()?141:N}var wS,yr,U7,L7,BL=L(()=>{"use strict";Xs();Ou();$R();tw();nw();Bo();rw();al();tg();fy();fd();Vt();RS();SQ();wS=i(e=>{IQ()||process.stdout.write(e)},"out"),yr=i(e=>process.stderr.write(e+`
354
+ `),"err"),U7=[250,500,1e3,2e3,4e3],L7=i(e=>new Promise(o=>setTimeout(o,e)),"delay");i(G7,"runPrint")});function SL(e){return typeof e=="string"&&F7.includes(e)}function og(e){return gy.find(o=>o.id===e)??gy[0]}var F7,gy,Aw=L(()=>{"use strict";F7=["native","codex","claude-code","opencode"];i(SL,"isCodeHarnessId");gy=[{id:"native",name:"More AI",description:"The built-in provider-neutral coding agent.",managed:!1,capabilities:{local:!0,cloud:!0,ssh:!0,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"app"}},{id:"codex",name:"Codex",description:"OpenAI Codex with native streamed tools and approvals.",managed:!0,capabilities:{local:!0,cloud:!0,ssh:!1,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"runtime"}},{id:"claude-code",name:"Claude Agent",description:"Anthropic Claude Agent through the AI SDK Harness adapter.",managed:!0,capabilities:{local:!0,cloud:!0,ssh:!1,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"runtime"}},{id:"opencode",name:"OpenCode",description:"OpenCode with its provider/model routing and permission protocol.",managed:!0,capabilities:{local:!0,cloud:!0,ssh:!1,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"provider-model"}}];i(og,"codeHarnessDescriptor")});function xS(e,o,r){if(e!=="claude-code")return!0;let c=o??r.defaultProviderId;return c!=="anthropic"&&c!=="zai"?!1:r.providers.some(u=>u.id===c&&u.connected&&u.connectedVia==="key")}var dw=L(()=>{"use strict";Aw();i(xS,"harnessKeyAvailableFromHub")});import fw from"node:fs";import vL from"node:path";var QL,DS,bL=L(()=>{"use strict";QL=100,DS=class{static{i(this,"InputHistory")}entries=[];file;constructor(o){if(this.file=o?vL.join(o,"cli","history.json"):void 0,!!this.file)try{let r=JSON.parse(fw.readFileSync(this.file,"utf8"));Array.isArray(r)&&(this.entries=r.filter(c=>typeof c=="string"))}catch{}}all(){return this.entries}push(o){let r=o.trim();r&&this.entries[this.entries.length-1]!==r&&(this.entries.push(r),this.entries.length>QL&&(this.entries=this.entries.slice(-QL)),this.save())}save(){if(this.file)try{fw.mkdirSync(vL.dirname(this.file),{recursive:!0}),fw.writeFileSync(this.file,JSON.stringify(this.entries))}catch{}}}});import gw from"node:fs";import pw from"node:path";function RL(e){try{let o=pw.join(e,".git");if(gw.statSync(o).isFile()){let f=/^gitdir:\s*(.+)\s*$/m.exec(gw.readFileSync(o,"utf8"));if(!f)return;o=pw.resolve(e,f[1])}let c=gw.readFileSync(pw.join(o,"HEAD"),"utf8").trim(),u=/^ref:\s*refs\/heads\/(.+)$/.exec(c);return u?u[1]:c.slice(0,8)||void 0}catch{return}}var wL=L(()=>{"use strict";i(RL,"currentBranch")});function xL(e){let o=[];for(let r of e){let c=o[o.length-1];c&&c.name===r.name?(c.steps.push(r),r.detail&&!c.details.includes(r.detail)&&c.details.push(r.detail)):o.push({name:r.name,details:r.detail?[r.detail]:[],steps:[r]})}return o.map(r=>{let c=r.steps.length===1?r.steps[0]:void 0;return c?.label&&!r.details.length?c.label:dd(z7,{name:r.name,detail:r.details.join(", ")||void 0,status:"done"})})}function ih(e,o){if(!e.length)return"";if(e.length===1)return wc(o.live?"running":"done",ps(xL(e)[0],Math.max(8,o.width-2)));let r=o.live?Kt(Ca):It(Ca),c=ht(C(o.live?"cards.explore.live":"cards.explore.done")),u=ie(` \xB7 ${C("cards.explore.steps",{count:e.length})}`),f=Math.max(8,o.width-6),m=xL(e).map((E,S)=>` ${S===0?Dn(Hu):" "} ${ie(ps(E,f))}`);return[`${r} ${c}${u}`,...m].join(`
355
+ `)}var py,z7,TS=L(()=>{"use strict";fd();Vt();Bo();al();tg();py=ay,z7=i((e,o)=>C(e,o),"desktopT");i(xL,"exploreLines");i(ih,"exploreCell")});function my(e,o){let r=e.label||e.name;if(za()==="en")return r;let c=dd(K7,{name:e.name,label:e.label,detail:e.detail,tool:e.tool,status:o});return c.trim()?c:r}function Y7(e,o,r){let c=my(e,e.status);if(o?.length&&Gu.has(e.name))return[Tc(o,{width:r,label:c,state:e.status==="error"?"error":"done"})];let u=[wc(e.status,c,e.detail)];e.change&&u.push($f(e.change));let f=Vm(e.result??e.output??"",3,e.status==="error");return f&&u.push(f),u}function DL(e){return`${e.status==="approved"?It(`\u2714 ${C("app.decision.allowed")}`):e.status==="rejected"?Bt(`\u2715 ${C("app.decision.denied")}`):ie(`\u25CC ${C("app.decision.awaiting")}`)}: ${e.title}${e.detail?`
356
+ ${ie(e.detail)}`:""}`}function TL(e){let o=[ie(e.status==="pending"?`\u25CC ${C("app.question.awaiting")}`:`\u25B8 ${C("app.question.label")}`)];e.intro&&o.push(` ${e.intro}`);for(let r of e.questions){o.push(` ${r.question}`);let c=e.answer?.answers.find(u=>u.questionId===r.id);if(c){let u=[...c.selected,...c.custom?[c.custom]:[]].join(", ");o.push(` ${It(u||C("app.question.answered"))}`)}}return e.status==="dismissed"&&o.push(` ${ie(C("app.question.dismissed"))}`),o.join(`
357
+ `)}function _L(e,o=80){if(e.role==="user")return e.content?[Zm(e.content)]:[];if(e.role!=="assistant")return[];let r=[],c=new Map(e.activity?.map(D=>[D.id,D])??[]),u=new Map(e.permissions?.map(D=>[D.id,D])??[]),f=new Map(e.questions?.map(D=>[D.id,D])??[]),m=new Set,E=new Set,S=new Set,v=!1,b=e.subagents?.length?sy(e.subagents,Date.now()).map(({endedAt:D,...k})=>k):null,N=[],R=i(()=>{N.length&&r.push(ih(N,{width:o})),N=[]},"flushExplore"),M=i(D=>{if(eg.has(D.name))return[];if(py.has(D.name)&&D.status==="done"&&!D.change)return N.push({name:D.name,detail:D.detail,label:D.label}),[];R();let k=Y7(D,Gu.has(D.name)?b:null,o);return Gu.has(D.name)&&(b=null),k},"blocksFor");for(let D of e.parts??[])switch(D.type){case"text":v=!0,D.text.trim()&&(R(),r.push(sl(D.text.trimEnd(),o)));break;case"tool":{let k=c.get(D.id);k&&(r.push(...M(k)),m.add(D.id));break}case"permission":{let k=u.get(D.id);k&&(R(),r.push(DL(k)),E.add(D.id));break}case"question":{let k=f.get(D.id);k&&(R(),r.push(TL(k)),S.add(D.id));break}case"aside":D.from==="user"&&D.text.trim()&&(R(),r.push(Zm(D.text)));break;default:break}for(let D of e.activity??[])m.has(D.id)||r.push(...M(D));R(),b?.length&&r.push(Tc(b,{width:o})),!v&&e.content.trim()&&r.push(sl(e.content.trimEnd(),o)),e.plan&&r.push(iS(e.plan)),e.todos?.length&&r.push(Xm(e.todos));for(let D of e.permissions??[])E.has(D.id)||r.push(DL(D));for(let D of e.questions??[])S.has(D.id)||r.push(TL(D));return r}var K7,mw=L(()=>{"use strict";fd();Vt();Bo();al();tg();TS();Wm();K7=i((e,o)=>C(e,o),"toolStepT");i(my,"toolStepText");i(Y7,"activityBlocks");i(DL,"permissionBlock");i(TL,"questionBlock");i(_L,"savedTurnBlocks")});function hw(e){return e.phase!=="ready"?e.phase:e.spawned||e.owner==="daemon"?"background":e.owner==="desktop"?"desktop":"shared"}function _S(e){return C(`app.engine.${hw(e)}`)}function NL(e){let o=(0,cl.useRef)(e);o.current=e;let r=(0,cl.useRef)(null),c=(0,cl.useRef)(null),[u,f]=(0,cl.useState)({phase:"connecting",spawned:!1}),m=(0,cl.useRef)(async()=>{}),E=(0,cl.useRef)(0),S=(0,cl.useRef)(!1),v=(0,cl.useCallback)(async()=>{if(!S.current){S.current=!0;try{for(E.current=0;E.current<q7;E.current++){await new Promise(N=>setTimeout(N,Math.min(500*2**E.current,5e3)));try{await m.current(),o.current.showToast(C("app.engine.reconnected"));return}catch{}}f({phase:"failed",spawned:!1,message:C("app.engine.lost")}),o.current.onReconnectFailed?.()}finally{S.current=!1}}},[]),b=(0,cl.useCallback)(async()=>{let N=await hr(H=>o.current.onHubEvent(H),H=>o.current.onOpenExternal(H)),R=r.current;r.current=N,R?.dispose();let M=new nh(N.client),D=c.current?.currentSession;D&&M.setSession(D),c.current=M,N.onDisconnect(()=>{r.current===N&&(o.current.onConnectionLost(),f(H=>({...H,phase:"reconnecting"})),v())}),await o.current.onConnectionRestored?.(N);let k=await Ic(N.dataDir).catch(()=>{});f({phase:"ready",spawned:N.spawned,...k?.owner?{owner:k.owner}:{}})},[v]);return m.current=b,{connRef:r,driverRef:c,engine:u,setEngine:f,connect:b,reconnect:v}}var cl,q7,Ew=L(()=>{"use strict";cl=Ue(Nt(),1);$R();sm();Xs();Vt();i(hw,"engineKindOf");i(_S,"engineLabelOf");q7=5;i(NL,"useEngineConnection")});function ML(e){let o=P7[e];return o?C(o):e}function j7(e){let o=Math.max(...e.map(([r])=>Ot(r)));return e.map(([r,c])=>` ${ie(r)}${" ".repeat(o-Ot(r)+2)}${c}`)}async function OL(e,o,r){switch(Zi(r.conn?.client,"cli_slash_command",{command:e}),e){case"/quit":r.quit();return;case"/new":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}r.startNewSession(),r.push(ie(`\u2500\u2500 ${C("slash.newSession")} \u2500\u2500`));return}case"/sessions":{let c=r.conn?.client;if(!c?.isConnected()){r.showToast(C("slash.engineNotConnected"));return}let u=(await c.command("session.list",void 0)).filter(f=>!f.archived);if(!u.length){r.showToast(C("slash.noSessions"));return}r.openSessionsPicker(u);return}case"/cloud":await r.openCloud(o);return;case"/auth":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}r.openAuth();return}case"/connectors":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}r.openConnectors();return}case"/login":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}r.openAccount();return}case"/analytics":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}await r.openAnalytics(o);return}case"/mode":{if(o){if(!Ol.includes(o)){r.showToast(C("slash.modeMustBe",{modes:Ol.join(", ")}));return}r.applyMode(o)}else r.cycleMode();return}case"/models":case"/model":{if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}o.trim()?await r.chooseModel(o.trim()):r.openModelPicker();return}case"/language":{o.trim()?r.setInterfaceLanguage(o.trim()):r.openLanguagePicker();return}case"/harness":{if(r.running){r.showToast(C("slash.harness.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}let c=o.trim().toLowerCase();if(!c){try{let m=await r.conn.client.command("harness.list",void 0);r.push([`${Kt(Pa)} ${ht(C("slash.harness.title"))}`,...gy.map(E=>{let S=m.find(b=>b.id===E.id),v=S?.localReady?C("slash.harness.state.ready"):S?ML(S.install):C("slash.harness.unavailable");return` ${E.id===r.harness?"\u25CF":" "} ${E.name} ${Dn(E.id)} \xB7 ${v}`}),` ${ie(C("slash.harness.useHint"))}`].join(`
358
+ `))}catch(m){r.showToast(m instanceof Error?m.message:String(m))}return}let f=gy.find(m=>m.id===c||m.name.toLowerCase()===c)?.id??(SL(c)?c:null);if(!f){r.showToast(C("slash.harness.unknown",{name:o}));return}if(!og(f).capabilities.local){r.showToast(C("slash.harness.notLocal",{name:og(f).name}));return}try{let m=r.driver?.currentSession;if(f==="claude-code"){let S=await r.conn.client.command("provider.list",void 0);if(!xS(f,r.providerId??m?.provider,S)){r.showToast(C("slash.harness.claudeNeedsKey"));return}}let E=await r.conn.client.command("harness.ensureInstalled",{id:f,...m?{sessionId:m.id}:{}});if(!E.localReady){r.showToast(E.detail??C("slash.harness.notReady",{name:og(f).name,state:ML(E.install)}));return}await r.selectHarness(f),r.showToast(C("slash.harness.switched",{name:og(f).name}))}catch(m){r.showToast(m instanceof Error?m.message:String(m))}return}case"/status":{let c=r.driver?.currentSession,u=r.providerId?` ${Dn(C("slash.status.via",{provider:r.providerId}))}`:"";r.push([`${Kt(Pa)} ${ht(C("slash.status.title"))}`,...j7([[C("slash.status.version"),ti],[C("slash.status.backend"),`${Vi.id==="production"?"production":Vi.label.toLowerCase()} \xB7 ${om(Vi.apiBaseUrl)}`],[C("slash.status.engine"),_S(r.engine)],[C("slash.status.repo"),`${aS(r.repoPath,Math.max(20,(process.stdout.columns||80)-30))}${r.branch?` (${r.branch})`:""}`],[C("slash.status.session"),c?`${c.title} ${Dn(c.id)}`:C("slash.status.noSession")],[C("slash.status.mode"),r.mode],[C("slash.status.model"),`${r.model??C("slash.status.engineDefault")}${u}`],[C("slash.status.harness"),og(r.harness).name]])].join(`
359
+ `));return}case"/help":{r.push([`${Kt(Pa)} ${ht(C("slash.help.title"))}`,` ${C("slash.help.editing",{enter:Fn("enter"),ctrlJ:Fn("ctrl+j"),backslash:Fn("\\"),arrows:Fn("\u2191\u2193")})}`,` ${C("slash.help.cursor",{altArrows:Fn("alt+\u2190\u2192"),ctrlAE:Fn("ctrl+a/e"),ctrlUKW:Fn("ctrl+u/k/w")})}`,` ${C("slash.help.paste",{pasted:ht(`[${C("composer.pasted.short")}]`),ctrlO:Fn("ctrl+o")})}`,` ${C("slash.help.interrupt",{esc:Fn("esc"),shiftTab:Fn("shift+tab")})}`,` ${C("slash.help.clear",{ctrlC:Fn("ctrl+c")})}`,` ${C("slash.help.voice",{ctrlT:Fn("ctrl+t"),enter:Fn("enter"),esc:Fn("esc")})}`,` ${J7(C("slash.help.steer"))}`,` ${C("slash.help.helpers",{at:Fn("@explore")})}`,` ${C("slash.help.commands",{model:Fn("/model"),sessions:Fn("/sessions"),connectors:Fn("/connectors")})}`,...V7(60).map(c=>` ${ie(c)}`)].join(`
360
+ `));return}}}function V7(e){let o=[];for(let{name:r}of dy){let c=o.length-1;c>=0&&o[c].length+1+r.length<=e?o[c]+=` ${r}`:o.push(r)}return o}var P7,J7,HL=L(()=>{"use strict";fB();Aw();dw();Mf();_f();Ew();Ou();Bo();al();fy();Vt();Ea();P7={"built-in":"slash.harness.state.builtIn",missing:"slash.harness.state.missing",installing:"slash.harness.state.installing",ready:"slash.harness.state.ready",updating:"slash.harness.state.updating",error:"slash.harness.state.error",unsupported:"slash.harness.state.unsupported"};i(ML,"harnessStateLabel");J7=i(e=>e.replace(/\*\*(.+?)\*\*/g,(o,r)=>ht(r)),"emphasize");i(j7,"alignedRows");i(OL,"runSlashCommand");i(V7,"commandNameLines")});function kL({running:e,push:o,width:r}){let c=(0,vn.useRef)(""),u=(0,vn.useRef)({text:"",reasoningTail:"",outputs:new Map}),f=(0,vn.useRef)(new Map),m=(0,vn.useRef)(null),E=(0,vn.useRef)([]),S=(0,vn.useRef)(!1),v=(0,vn.useRef)([]),b=(0,vn.useRef)([]),N=(0,vn.useRef)(0),[R,M]=(0,vn.useState)(""),[D,k]=(0,vn.useState)(""),[H,$]=(0,vn.useState)([]),[Qe,Ee]=(0,vn.useState)([]),[Ce,Me]=(0,vn.useState)([]),ge=(0,vn.useCallback)(()=>{$([...f.current.values()])},[]),Le=(0,vn.useCallback)(()=>{S.current=!1,Ee(E.current)},[]),le=(0,vn.useCallback)(()=>{let oe=u.current;if(oe.text&&(c.current+=oe.text,oe.text="",M(c.current)),oe.reasoningTail&&(k(oe.reasoningTail),oe.reasoningTail=""),oe.outputs.size){for(let[nt,mt]of oe.outputs){let ne=f.current.get(nt);ne&&(ne.output+=mt)}oe.outputs.clear(),ge()}S.current&&Le()},[Le,ge]);(0,vn.useEffect)(()=>{if(!e)return;let oe=setInterval(le,X7);return()=>clearInterval(oe)},[e,le]);let ue=(0,vn.useCallback)(()=>{let oe=b.current;oe.length&&(b.current=[],Me([]),o(ih(oe,{width:r})))},[o,r]),te=(0,vn.useCallback)(()=>{le();let oe=c.current;c.current="",M(""),oe.trim()&&(ue(),o(sl(oe.trimEnd(),r)))},[ue,le,o,r]),re=(0,vn.useCallback)(()=>{m.current&&(ue(),o(ie(`${Pa} ${C("app.run.thoughtFor",{elapsed:xc(m.current)})}`)),m.current=null,k(""))},[ue,o]),ee=(0,vn.useCallback)((oe,nt,mt)=>{le();let ne=f.current.get(oe);if(!ne)return;if(f.current.delete(oe),ge(),py.has(ne.name)&&!nt&&!ne.changes.length){b.current=[...b.current,{name:ne.name,detail:ne.detail,label:ne.engineLabel}],Me(b.current);return}ue();let se=E.current.filter(At=>At.owner===oe);if(Gu.has(ne.name)&&se.length){let At=Date.now(),Qt=my({name:ne.name,label:ne.engineLabel,detail:ne.detail},nt?"error":"done");o(Tc(sy(se,At),{width:r,label:Qt,now:At,state:nt?"error":"done"})),E.current=E.current.filter(Lt=>Lt.owner!==oe||Lt.status==="running").map(Lt=>Lt.owner===oe?{...Lt,owner:void 0}:Lt),Le();return}let Te=[];if(ne.changes.length)for(let At of ne.changes)Te.push($f(At));else{let At=nt?"error":"done",Qt=my({name:ne.name,label:ne.engineLabel,detail:ne.detail},At);Te.push(wc(At,Qt,ne.detail));let Lt=nt?mt??ne.output:ne.output||mt||"",gt=Vm(Lt,nt?5:2,!!nt);gt&&Te.push(gt)}o(Te.join(`
361
+ `))},[ue,le,o,Le,ge,r]),Se=(0,vn.useCallback)(()=>{c.current="",u.current={text:"",reasoningTail:"",outputs:new Map},f.current=new Map,E.current=[],v.current=[],b.current=[],N.current=0,$([]),Me([]),Ee([]),M("")},[]),tt=(0,vn.useCallback)(()=>{re(),te();for(let oe of[...f.current.keys()])ee(oe,void 0,void 0);if(ue(),E.current.length){let oe=Date.now();o(Tc(sy(E.current,oe),{width:r,now:oe})),E.current=[],Le()}v.current.length&&(o(Xm(v.current)),v.current=[])},[ee,ue,o,te,re,Le,r]),Ie=(0,vn.useCallback)(oe=>{m.current&&re(),b.current.length&&!c.current&&!u.current.text&&ue(),u.current.text+=oe},[ue,re]),Pe=(0,vn.useCallback)(oe=>{m.current||(m.current=Date.now());let nt=oe.split(`
362
+ `).filter(Boolean).pop();nt&&(u.current.reasoningTail=nt)},[]),ct=(0,vn.useCallback)(oe=>{eg.has(oe.name)||(re(),te(),py.has(oe.name)||ue(),f.current.set(oe.id,{id:oe.id,name:oe.name,label:my(oe,"running"),engineLabel:oe.label,detail:oe.detail,output:"",changes:[]}),ge())},[ue,te,re,ge]),Je=(0,vn.useCallback)((oe,nt)=>{let mt=u.current;mt.outputs.set(oe,(mt.outputs.get(oe)??"")+nt)},[]),W=(0,vn.useCallback)(oe=>ee(oe.id,oe.isError,oe.result),[ee]),ut=(0,vn.useCallback)((oe,nt)=>{let mt=nt?f.current.get(nt):void 0;mt?mt.changes.push(oe):(ue(),o($f(oe)))},[ue,o]),pt=(0,vn.useCallback)(oe=>{let nt=Date.now(),mt=oe.kind==="spawned"?[...f.current.values()].reverse().find(Te=>Gu.has(Te.name))?.id:void 0,ne=gS(E.current,oe,nt,mt);if(ne===E.current)return;oe.kind==="completed"&&(N.current+=oe.usage?.total??0);let se=ne.find(Te=>Te.id===oe.id);if(oe.kind==="completed"&&se&&!se.owner){te(),o(Tc([se],{width:r,label:C("cards.helpers.finished"),now:nt})),E.current=ne.filter(Te=>Te.id!==oe.id),Le();return}E.current=ne,oe.kind==="tool"?S.current=!0:Le()},[o,te,Le,r]),P=(0,vn.useCallback)(oe=>{v.current=oe},[]),be=(0,vn.useMemo)(()=>({onText:Ie,onReasoning:Pe,onToolCall:ct,onToolOutput:Je,onToolResult:W,onFileChange:ut,onSubagent:pt}),[Ie,Pe,ct,Je,W,ut,pt]),Xe=(0,vn.useCallback)(()=>N.current,[]);return{liveText:R,reasoningTail:D,liveTools:H,helpers:Qe,explore:Ce,helperTokens:Xe,reset:Se,settleStream:tt,sealLiveText:te,flushExplore:ue,noteTodos:P,handlers:be}}var vn,X7,UL=L(()=>{"use strict";vn=Ue(Nt(),1);fd();Bo();tg();TS();al();Wm();Vt();mw();X7=50;i(kL,"useRunStream")});function NS(e){return typeof e=="string"?e.replace(W7,"").trim():""}function $7(e,o){return e.length<=o?e:`\u2026${e.slice(e.length-(o-1))}`}function eq(e,o){if(e.length<=o)return e;let r=Math.floor(o*.35),c=o-r-3;return`${e.slice(0,r)} \u2026 ${e.slice(e.length-c)}`}function tq(e){return typeof e=="string"&&Z7.includes(e)?e:void 0}function nq(e){if(typeof e!="string")return;let o=e.trim();return o.length<=rg.conversationIdChars&&/^[A-Za-z0-9][A-Za-z0-9._:/-]*$/.test(o)?o:void 0}function oq(e){if(!Array.isArray(e))return[];let o=new Set,r=[];for(let c of e){let u=NS(c).replace(/\s+/g," ").slice(0,rg.termChars),f=u.toLowerCase();if(!(!u||o.has(f))&&(o.add(f),r.push(u),r.length>=rg.terms))break}return r}function rq(e){if(!Array.isArray(e))return[];let o=[];for(let r of e){if(!r||typeof r!="object")continue;let c=r.role;if(c!=="user"&&c!=="assistant")continue;let u=NS(r.text);u&&o.push({role:c,text:eq(u,rg.turnChars)})}return o.slice(-rg.turns)}function iq(e){let o={},r=tq(e.surface);r&&(o.surface=r);let c=nq(e.conversationId);c&&(o.conversationId=c);let u=NS(e.title).replace(/\s+/g," ").slice(0,rg.titleChars);u&&(o.title=u);let f=NS(e.draft);f&&(o.draft=$7(f,rg.draftChars));let m=rq(e.turns);m.length&&(o.turns=m);let E=oq(e.terms);return E.length&&(o.terms=E),aq(o)?null:o}function aq(e){return!e||!e.surface&&!e.conversationId&&!e.title&&!e.draft&&!e.turns?.length&&!e.terms?.length}function LL(e){let o=e.turns?.slice(-sq).map(r=>({role:r.role,text:r.text??r.content}));return iq({...e,turns:o})}var Z7,rg,W7,sq,GL=L(()=>{"use strict";Z7=["chat","cowork","code","quick-entry","routine","other"],rg={conversationIdChars:128,titleChars:120,draftChars:1e3,turns:3,turnChars:600,terms:30,termChars:64,wireChars:6e3},W7=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g;i(NS,"cleanText");i($7,"tail");i(eq,"ends");i(tq,"surfaceOf");i(nq,"conversationIdOf");i(oq,"termsOf");i(rq,"turnsOf");i(iq,"clamp");i(aq,"dictationContextIsEmpty");sq=12;i(LL,"buildDictationContext")});function FL(e,o=16e3){let r=e.length*2,c=Buffer.alloc(44+r);return c.write("RIFF",0,"ascii"),c.writeUInt32LE(36+r,4),c.write("WAVE",8,"ascii"),c.write("fmt ",12,"ascii"),c.writeUInt32LE(16,16),c.writeUInt16LE(1,20),c.writeUInt16LE(1,22),c.writeUInt32LE(o,24),c.writeUInt32LE(o*2,28),c.writeUInt16LE(2,32),c.writeUInt16LE(16,34),c.write("data",36,"ascii"),c.writeUInt32LE(r,40),Buffer.from(e.buffer,e.byteOffset,r).copy(c,44),c}var zL=L(()=>{"use strict";i(FL,"encodeWav16")});var KL=L(()=>{"use strict"});import{accessSync as lq,constants as cq,statSync as uq}from"node:fs";import YL from"node:path";function Aq(){return(process.env.PATHEXT??".COM;.EXE;.BAT;.CMD").split(";").map(e=>e.trim().toLowerCase()).filter(Boolean)}function dq(e){try{return uq(e).isFile()?(process.platform!=="win32"&&lq(e,cq.X_OK),!0):!1}catch{return!1}}function Cw(e){if(e.includes("/")||e.includes("\\"))return e;let o=qL.get(e);if(o)return o;let r=(process.env.PATH??"").split(YL.delimiter).filter(Boolean),c=process.platform==="win32",u=c?Aq():[""],f=c&&u.some(m=>e.toLowerCase().endsWith(m));for(let m of r)for(let E of u){let S=YL.join(m,f||!c?e:e+E);if(dq(S))return qL.set(e,S),S}return e}var qL,yw=L(()=>{"use strict";qL=new Map;i(Aq,"windowsExts");i(dq,"isExecutableFile");i(Cw,"resolveBinaryOnPath")});var _ce,Nce,PL=L(()=>{"use strict";_ce=16/9,Nce=16/9});var JL=L(()=>{"use strict"});function jL(e=process.platform,o=process.arch){return`${e==="darwin"?"mac":e==="win32"?"win":"linux"}-${o}`}var jce,Vce,VL=L(()=>{"use strict";KL();yw();PL();JL();jce=process.platform==="win32"?".exe":"";i(jL,"ffmpegBundleDir");Vce=10*6e4});import{spawn as fq,spawnSync as gq}from"node:child_process";import{existsSync as WL}from"node:fs";import pq from"node:os";import hy from"node:path";function Iw(e,o,r){let c=["-ac","1","-ar",String(Nc),"-f","s16le","pipe:1"];switch(e){case"ffmpeg":return["-hide_banner","-loglevel","error","-nostdin",...o==="darwin"?["-f","avfoundation","-i",":default"]:o==="win32"?["-f","dshow","-i",`audio=${r??""}`]:["-f","alsa","-i","default"],...c];case"sox":return["-q",...o==="win32"?["-t","waveaudio","default"]:["-d"],"-t","raw","-r",String(Nc),"-e","signed-integer","-b","16","-c","1","-"];case"parecord":return["--raw",`--rate=${Nc}`,"--channels=1","--format=s16le"];case"arecord":return["-q","-f","S16_LE","-r",String(Nc),"-c","1","-t","raw"]}}function mq(e){let o=e.match(/"([^"]+)"\s*\(audio\)/);if(o)return o[1];let r=e.split(/DirectShow audio devices/i)[1];if(r)for(let c of r.split(/\r?\n/)){if(/Alternative name/i.test(c))continue;let u=c.match(/"([^"]+)"/);if(u)return u[1]}}function hq(e=process.platform,o=process.arch,r=process.env,c=pq.homedir()){let u=jL(e,o);return e==="darwin"?["More AI","More AI Dev"].flatMap(f=>["/Applications",hy.join(c,"Applications")].map(m=>hy.join(m,`${f}.app`,"Contents","Resources","ffmpeg",u,"ffmpeg"))):e==="win32"&&r.LOCALAPPDATA?["More AI","more-ai"].map(f=>hy.join(r.LOCALAPPDATA,"Programs",f,"resources","ffmpeg",u,"ffmpeg.exe")):[]}function Eq(e=process.env){let o=(e.MOREAI_VOICE_RECORDER??"").trim().split(/\s+/).filter(Boolean);return o.length?{kind:"custom",command:o[0],args:o.slice(1)}:null}function Cq(e){let o=Cw(e);return hy.isAbsolute(o)&&WL(o)?o:null}function $L(e){let o=Eq();if(o)return o;let r=process.platform,c=i(f=>{if(r!=="win32")return{kind:"ffmpeg",command:f,args:Iw("ffmpeg",r)};let m=gq(f,["-hide_banner","-list_devices","true","-f","dshow","-i","dummy"],{encoding:"utf8",timeout:5e3,windowsHide:!0}),E=mq(`${m.stderr??""}${m.stdout??""}`);return E?{kind:"ffmpeg",command:f,args:Iw("ffmpeg",r,E)}:null},"withDevice"),u=[e,...hq()].find(f=>!!f&&WL(f));if(u){let f=c(u);if(f)return f}for(let f of XL[r]??XL.linux){let m=Cq(f);if(!m)continue;let E=f==="ffmpeg"?c(m):{kind:f,command:m,args:Iw(f,r)};if(E)return E}return null}function yq(e){Bw.add(e),e.once("close",()=>Bw.delete(e)),!ZL&&(ZL=!0,process.once("exit",()=>{for(let o of Bw)o.kill("SIGKILL")}))}function eG(e,o,r){let c=fq(e.command,e.args,{stdio:["ignore","pipe","pipe"],windowsHide:!0});yq(c);let u=[],f=null,m="",E=!1;c.stdout.on("data",b=>{let N=f?Buffer.concat([f,b]):b,R=N.length-N.length%2;if(f=R<N.length?N.subarray(R):null,!R)return;let M=new Int16Array(R/2);new Uint8Array(M.buffer).set(N.subarray(0,R)),u.push(M),o(M)}),c.stderr.on("data",b=>{m=(m+b.toString("utf8")).slice(-2e3)}),c.once("error",b=>{E||r(b.message)}),c.once("exit",(b,N)=>{if(E)return;let R=m.trim().split(/\r?\n/).pop();r(R||`${hy.basename(e.command)} exited (${N??b})`)});let S=new Promise(b=>c.once("close",()=>b())),v=i(async()=>{E=!0,c.exitCode===null&&c.signalCode===null&&c.kill("SIGTERM");let b=setTimeout(()=>c.kill("SIGKILL"),2e3);await S,clearTimeout(b)},"end");return{async stop(){await v();let b=u.reduce((M,D)=>M+D.length,0),N=new Int16Array(b),R=0;for(let M of u)N.set(M,R),R+=M.length;return N},cancel(){v(),u.length=0}}}var Nc,XL,Bw,ZL,Sw=L(()=>{"use strict";VL();yw();Nc=16e3;i(Iw,"recorderArgs");i(mq,"firstDshowAudioDevice");i(hq,"appFfmpegCandidates");i(Eq,"customRecorder");i(Cq,"onPath");XL={darwin:["ffmpeg","sox"],win32:["ffmpeg","sox"],linux:["parecord","arecord","ffmpeg","sox"]};i($L,"findRecorder");Bw=new Set,ZL=!1;i(yq,"killOnExit");i(eG,"startCapture")});function vq(e){if(!e.length)return 0;let o=0;for(let u of e)o+=u*u;let r=Math.sqrt(o/e.length)/32768;if(r<=0)return 0;let c=20*Math.log10(r);return Math.min(1,Math.max(0,(c-tG)/(Sq-tG)))}function nG(e){return MS[Math.round(Math.min(1,Math.max(0,e))*(MS.length-1))]}var Iq,Bq,tG,Sq,MS,OS,vw=L(()=>{"use strict";Sw();Iq=80,Bq=Nc*Iq/1e3,tG=-55,Sq=-12,MS=["\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];i(vq,"loudness");i(nG,"barGlyph");OS=class{constructor(o){this.width=o}width;static{i(this,"LevelMeter")}pending=[];bars=[];samples=0;nonZero=!1;push(o){for(let r of o)r!==0&&(this.nonZero=!0),this.pending.push(r),this.pending.length>=Bq&&(this.bars.push(vq(Int16Array.from(this.pending))),this.bars.length>this.width&&this.bars.shift(),this.pending=[]);this.samples+=o.length}levels(){return this.bars}elapsedMs(){return Math.round(this.samples/Nc*1e3)}digitalSilence(){return this.samples>0&&!this.nonZero}}});function bq(e=process.env){let o={Apple_Terminal:"Terminal","iTerm.app":"iTerm",vscode:"Visual Studio Code",WezTerm:"WezTerm",ghostty:"Ghostty",WarpTerminal:"Warp",Hyper:"Hyper"};return e.TERM_PROGRAM?o[e.TERM_PROGRAM]??e.TERM_PROGRAM:void 0}function iG(){let e=bq()??C("voice.yourTerminal");return process.platform==="darwin"?C("voice.hint.macPermission",{app:e}):process.platform==="win32"?C("voice.hint.windowsPermission",{app:e}):C("voice.hint.linuxPermission")}function Rq(){let e=process.platform==="darwin"?C("voice.hint.installMac"):process.platform==="win32"?C("voice.hint.installWindows"):C("voice.hint.installLinux");return`${C("voice.noRecorder")} ${e}`}function Ey(e,o){switch(e){case"no-provider":case"no-key":case"unknown-provider":return C("voice.notSetUp");case"no-account":return C("voice.signIn");case"out-of-minutes":return C("voice.outOfMinutes");case"local-not-ready":case"local-engine-missing":case"local-model-missing":case"no-model":return C("voice.localNotReady");case"unknown-command":return C("voice.engineTooOld");default:return C("voice.failed",{message:xq(o||e||"?",wq)})}}function sG(e){let[o,r]=(0,ya.useState)({kind:"idle"}),c=(0,ya.useRef)(o),u=(0,ya.useRef)(0),f=(0,ya.useRef)(null),m=(0,ya.useRef)(null),E=(0,ya.useRef)(null),S=(0,ya.useRef)(null),v=(0,ya.useRef)(null),b=(0,ya.useRef)(void 0),N=(0,ya.useRef)(0),R=(0,ya.useRef)(e);R.current=e;let M=i(le=>{c.current=le,r(le)},"setPhase"),D=i(()=>{E.current&&clearInterval(E.current),E.current=null},"stopTicking"),k=i((le,ue={})=>{Zi(R.current.deps?.client(),"cli_voice_take",{outcome:le,...S.current?{recorder:S.current}:{},...ue})},"report"),H=i((le,ue=!1)=>{D(),f.current?.cancel(),f.current=null,M({kind:"failed",message:le,canRetry:ue})},"fail"),$=i((le,ue,te)=>{if(ue!==u.current)return;if(le.ok){v.current=null;let ee=le.text.trim(),Se=le.route?{route:le.route}:{};if(!ee){H(C("voice.nothingHeard")),k("failed",{seconds:te,code:"empty",...Se});return}R.current.onText(ee),M({kind:"idle"}),k("inserted",{seconds:te,...Se});return}v.current=le.recordingId??null;let re=Ey(le.code,le.message);H(v.current?`${re} ${C("voice.retryHint")}`:re,!!v.current),k("failed",{seconds:te,code:le.code})},"settle"),Qe=i(()=>LL({...R.current.deps?.scene(),surface:"code",draft:R.current.draft()}),"context"),Ee=i(async()=>{let le=++u.current;v.current=null,S.current=null,b.current=void 0,M({kind:"starting"});let ue=R.current.deps?.client();if(!ue?.isConnected()){H(C("voice.noEngine"));return}let te;try{te=await ue.command("stt.status",void 0)}catch(Se){le===u.current&&H(Ey(HS(Se)?Se.code:void 0,String(Se?.message??Se)));return}if(le!==u.current)return;if(!te.ready){H(Ey(te.code)),k("not-ready",te.code?{code:te.code}:{});return}b.current=te.selection;let re=$L(te.recorder);if(!re){H(Rq()),k("no-recorder");return}S.current=re.kind;let ee=new OS(R.current.meterWidth);m.current=ee,f.current=eG(re,Se=>ee.push(Se),Se=>{le!==u.current||c.current.kind!=="recording"||(H(`${C("voice.micFailed",{reason:Se})} ${iG()}`),k("failed",{code:"recorder-exited"}))}),N.current=Date.now(),M({kind:"recording",levels:[],elapsedMs:0,silent:!1}),E.current=setInterval(()=>{if(le!==u.current||c.current.kind!=="recording")return;let Se=Math.max(ee.elapsedMs(),Date.now()-N.current);if(Se>=kS){Ce();return}M({kind:"recording",levels:[...ee.levels()],elapsedMs:Se,silent:Se>=rG&&(ee.digitalSilence()||ee.elapsedMs()===0)})},Qq)},"start"),Ce=i(async()=>{if(c.current.kind!=="recording"||!f.current)return;let le=u.current,ue=f.current,te=m.current;f.current=null,D();let re=Math.max(te?.elapsedMs()??0,Date.now()-N.current);M({kind:"transcribing",elapsedMs:re});let ee=(await ue.stop()).subarray(0,kS*Nc/1e3);if(le!==u.current)return;let Se=Math.round(ee.length/Nc*1e3),tt=Math.round(Se/1e3);if(Se>=oG&&te?.digitalSilence()||!ee.length&&re>=rG){H(`${C("voice.noSound")} ${iG()}`),k("silent",{seconds:tt});return}if(Se<oG){M({kind:"idle"}),k("too-short");return}let Ie=R.current.deps?.client();if(!Ie?.isConnected()){H(C("voice.noEngine"));return}try{let Pe=await Ie.command("stt.transcribe",{...b.current,audio:FL(ee).toString("base64"),mime:"audio/wav",durationMs:Se,context:Qe()});$(Pe,le,tt)}catch(Pe){if(le!==u.current)return;H(Ey(HS(Pe)?Pe.code:void 0,String(Pe?.message??Pe))),k("failed",{seconds:tt,code:HS(Pe)?Pe.code:"error"})}},"finish"),Me=i(async()=>{let le=v.current,ue=R.current.deps?.client();if(!le||!ue?.isConnected())return;let te=++u.current;M({kind:"transcribing",elapsedMs:0});try{$(await ue.command("stt.retranscribe",{id:le,context:Qe()}),te,0)}catch(re){te===u.current&&H(Ey(HS(re)?re.code:void 0,String(re?.message??re)),!0)}},"retry"),ge=i(()=>{let le=c.current.kind;le!=="idle"&&(u.current+=1,D(),f.current?.cancel(),f.current=null,v.current=null,M({kind:"idle"}),(le==="recording"||le==="starting")&&k("cancelled"))},"cancel"),Le=i(()=>{switch(c.current.kind){case"idle":Ee();return;case"recording":Ce();return;case"failed":v.current?Me():Ee();return;default:return}},"toggle");return(0,ya.useEffect)(()=>()=>{u.current+=1,D(),f.current?.cancel()},[]),{phase:o,busy:o.kind!=="idle",toggle:Le,finish:i(()=>{Ce()},"finish"),cancel:ge}}var ya,kS,aG,oG,rG,Qq,wq,xq,HS,Qw=L(()=>{"use strict";ya=Ue(Nt(),1);GL();zL();Ou();Vt();Sw();vw();kS=12e4,aG=1e4,oG=400,rG=1500,Qq=100;i(bq,"terminalAppName");i(iG,"micPermissionHint");i(Rq,"noRecorderMessage");wq=120,xq=i((e,o)=>e.length>o?`${e.slice(0,o-1)}\u2026`:e,"clip");i(Ey,"failureMessage");HS=i(e=>!!e&&typeof e=="object"&&typeof e.code=="string","isRuntimeError");i(sG,"useVoiceInput")});function lG(e){let o=Math.floor(e/1e3);return`${Math.floor(o/60)}:${String(o%60).padStart(2,"0")}`}function Dq(e,o){let r=e.slice(-o);return{baseline:MS[0].repeat(Math.max(0,o-r.length)),bars:r.map(nG).join("")}}function cG(e){switch(e.kind){case"recording":return C("voice.hint.recording");case"starting":case"transcribing":return C("voice.hint.waiting");case"failed":return e.canRetry?C("voice.hint.failedRetry"):C("voice.hint.failed");default:return""}}function uG(e){let{phase:o}=e,r=o.kind==="starting"||o.kind==="transcribing",[c,u]=(0,US.useState)(0);(0,US.useEffect)(()=>{if(!r)return;let m=setInterval(()=>u(E=>E+1),120);return()=>clearInterval(m)},[r]);let f=ku[c%ku.length];if(o.kind==="recording"){let m=kS-o.elapsedMs,E=m<=aG,S=Math.floor(o.elapsedMs/500)%2===0,v=Dq(o.levels,e.meterWidth);return(0,yi.jsxs)(O,{wrap:"truncate",children:[(0,yi.jsx)(O,{color:"red",dimColor:!S,children:"\u25CF"}),(0,yi.jsx)(O,{color:E?"yellow":void 0,children:` ${lG(o.elapsedMs)} `}),o.silent?(0,yi.jsx)(O,{color:"yellow",children:C("voice.noSoundYet")}):(0,yi.jsxs)(yi.Fragment,{children:[(0,yi.jsx)(O,{dimColor:!0,children:v.baseline}),(0,yi.jsx)(O,{color:"#ff875f",children:v.bars})]}),E?(0,yi.jsx)(O,{color:"yellow",children:` ${C("voice.left",{seconds:Math.max(0,Math.ceil(m/1e3))})}`}):null]})}return o.kind==="starting"?(0,yi.jsx)(O,{dimColor:!0,children:`${f} ${C("voice.starting")}`}):o.kind==="transcribing"?(0,yi.jsxs)(O,{children:[(0,yi.jsx)(O,{color:"#ff875f",children:f}),` ${C("voice.transcribing")}`,o.elapsedMs?(0,yi.jsx)(O,{dimColor:!0,children:` (${lG(o.elapsedMs)})`}):null]}):o.kind==="failed"?(0,yi.jsx)(O,{color:"red",children:`\u2715 ${o.message}`}):(0,yi.jsx)(O,{children:" "})}var US,yi,AG=L(async()=>{"use strict";US=Ue(Nt(),1);await Cr();Vt();al();vw();Qw();yi=Ue(Sn(),1);i(lG,"clock");i(Dq,"meterLine");i(cG,"voiceHint");i(uG,"VoiceBar")});function LS(e){return e.replace(/\r\n?/g,`
363
+ `).replace(/\x1b\[[0-9;?]*[ -/]*[@-~]/g,"").replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g,"").replace(/[\x00-\x08\x0b-\x1f\x7f]/g,"").replace(/\t/g," ")}function Nq(e){if(e.length>Tq)return!0;let o=1;for(let r=0;r<e.length;r++)if(e[r]===`
364
+ `&&++o>_q)return!0;return!1}function Mq(e,o){let r=e.split(`
365
+ `).length,c=za()==="en"?"en-US":za(),u=r>1?C("composer.pasted.lines",{count:r,n:r.toLocaleString(c)}):C("composer.pasted.chars",{count:e.length,n:e.length.toLocaleString(c)});return`[${C("composer.pasted.label",{n:o})} \xB7 ${u}]`}function ig(e){let o=[];for(let r of Object.keys(e.pastes))for(let c=e.value.indexOf(r);c!==-1;c=e.value.indexOf(r,c+r.length))o.push({start:c,end:c+r.length,label:r});return o.sort((r,c)=>r.start-c.start)}function Rw(e){let o={};for(let[r,c]of Object.entries(e.pastes))e.value.includes(r)&&(o[r]=c);return Object.keys(o).length===Object.keys(e.pastes).length?e:{...e,pastes:o}}function Cy(e,o){let r=e.value.slice(0,e.cursor)+o+e.value.slice(e.cursor);return{...e,value:r,cursor:e.cursor+o.length,burst:void 0}}function fG(e,o){let r=o.trim();if(!r)return e;let c=e.value.slice(0,e.cursor),u=e.value.slice(e.cursor),f=c&&!/\s$/.test(c)&&!dG.test(r)?" ":"",m=u&&!/^\s/.test(u)&&!dG.test(u)?" ":"";return Cy(e,f+r+m)}function ww(e,o,r){let c=LS(o);if(!c)return e;let u=e.burst,f=!!u&&r-u.at<bw&&u.end===e.cursor&&(u.label?e.value.slice(u.start,u.end)===u.label:!0),m=f?u.start:e.cursor,E=e.value.slice(0,m),S=e.value.slice(f?u.end:e.cursor),v=f?u.raw+c:c,b=e.pastes;if(f&&u.label&&(b={...b},delete b[u.label]),!Nq(v)){let k=E+v+S,H=m+v.length;return{...e,value:k,cursor:H,pastes:b,burst:{start:m,end:H,raw:v,at:r}}}let N=f&&u.label?e.pasteSeq:e.pasteSeq+1,R=Mq(v,N),M=E+R+S,D=m+R.length;return{...e,value:M,cursor:D,pastes:{...b,[R]:v},pasteSeq:N,burst:{start:m,end:D,raw:v,label:R,at:r}}}function gG(e){if(e.cursor===0)return{...e,burst:void 0};let o=ig(e).find(u=>u.end===e.cursor||u.start<e.cursor&&e.cursor<u.end),r=o?o.start:e.cursor-1,c=o?o.end:e.cursor;return Rw({...e,value:e.value.slice(0,r)+e.value.slice(c),cursor:r,burst:void 0})}function xw(e){if(e.cursor>=e.value.length)return e;let o=ig(e).find(u=>u.start===e.cursor||u.start<e.cursor&&e.cursor<u.end),r=o?o.start:e.cursor,c=o?o.end:e.cursor+1;return Rw({...e,value:e.value.slice(0,r)+e.value.slice(c),cursor:r,burst:void 0})}function lh(e,o,r,c=""){let u=e.value.slice(0,o)+c+e.value.slice(r);return Rw({...e,value:u,cursor:o+c.length,burst:void 0})}function zu(e,o,r=1){let c=Math.max(0,Math.min(e.value.length,o)),u=ig(e).find(f=>f.start<c&&c<f.end);return u&&(c=r<0?u.start:u.end),{...e,cursor:c,burst:void 0}}function pG(e){let o=ig(e).find(c=>c.start<=e.cursor&&e.cursor<=c.end);if(!o)return null;let r=e.pastes[o.label]??"";return lh(e,o.start,o.end,r)}function yy(e){let o=e.value;for(let r of ig(e).reverse())o=o.slice(0,r.start)+(e.pastes[r.label]??"")+o.slice(r.end);return o}function GS(e,o){let r=o;for(;r>0&&/\s/.test(e[r-1]);)r--;if(r>0&&ah(e[r-1]))for(;r>0&&ah(e[r-1]);)r--;else for(;r>0&&!/\s/.test(e[r-1])&&!ah(e[r-1]);)r--;return r}function Dw(e,o){let r=o;for(;r<e.length&&/\s/.test(e[r]);)r++;if(r<e.length&&ah(e[r]))for(;r<e.length&&ah(e[r]);)r++;else for(;r<e.length&&!/\s/.test(e[r])&&!ah(e[r]);)r++;return r}function Tw(e,o){let r=Math.max(1,o),c=[],u=0;for(;;){let f=e.indexOf(`
366
+ `,u),m=f===-1?e.length:f,E=u;for(E===m&&c.push({start:E,end:E});E<m;){let S=0,v=E,b=-1;for(;v<m;){let R=e.codePointAt(v)??0,M=String.fromCodePoint(R),D=mG(M);if(S+D>r&&v>E)break;S+=D,M===" "&&(b=v),v+=M.length}let N=v;v<m&&b>E&&(N=b+1),c.push({start:E,end:N}),E=N}if(f===-1)break;u=f+1}return c}function FS(e,o,r){for(let u=0;u<o.length;u++){let f=o[u],m=o[u+1],E=!!m&&m.start===f.end;if(r>=f.start&&(r<f.end||r===f.end&&!E))return{row:u,col:Ot(e.slice(f.start,r))}}let c=o.length-1;return{row:Math.max(0,c),col:Ot(e.slice(o[c]?.start??0,r))}}function Oq(e,o,r){let c=0;for(let u=o.start;u<o.end;){let f=String.fromCodePoint(e.codePointAt(u)??0),m=mG(f);if(c+m>r)return u;c+=m,u+=f.length}return o.end>o.start&&e[o.end-1]===" "&&e[o.end]!==`
367
+ `&&o.end<e.length?o.end-1:o.end}function hG(e,o,r,c,u){let{row:f}=FS(e,o,r),m=f+c;return m<0||m>=o.length?null:Oq(e,o[m],u)}function EG(e,o,r,c){if(o<=r)return 0;let u=Math.max(0,Math.min(c,o-r));return e<u&&(u=e),e>=u+r&&(u=e-r+1),u}var Tq,_q,bw,sh,dG,ah,mG,_w=L(()=>{"use strict";Ea();Vt();Tq=800,_q=8,bw=150,sh=i(()=>({value:"",cursor:0,pastes:{},pasteSeq:0}),"emptyEditor");i(LS,"cleanPaste");i(Nq,"isLargePaste");i(Mq,"pasteLabel");i(ig,"pasteRanges");i(Rw,"prune");i(Cy,"insertText");dG=/^[,.;:!?)\]}…]/;i(fG,"insertSpoken");i(ww,"applyPaste");i(gG,"deleteBack");i(xw,"deleteForward");i(lh,"replaceRange");i(zu,"moveCursor");i(pG,"expandPasteAtCursor");i(yy,"expandedValue");ah=i(e=>!!e&&/[\p{L}\p{N}_]/u.test(e),"isWordChar");i(GS,"wordLeft");i(Dw,"wordRight");mG=i(e=>e.charCodeAt(0)<127?1:Math.max(0,Ot(e)),"charWidth");i(Tw,"layoutRows");i(FS,"cursorPosition");i(Oq,"indexAtColumn");i(hG,"verticalMove");i(EG,"viewportStart")});import Hq from"node:fs";function kq(e,o){return o<=zS?0:Math.min(Math.max(0,e-Math.floor(zS/2)),o-zS)}function Uq(e){return Math.max(3,Math.min(14,Math.floor(e/3)))}function CG(e){let o=(0,_i.useRef)(sh()),r=(0,_i.useRef)(0),c=(0,_i.useRef)(!1),u=(0,_i.useRef)(null),f=(0,_i.useRef)(null),m=(0,_i.useRef)(null),E=(0,_i.useRef)(null),S=(0,_i.useRef)(0),v=(0,_i.useRef)(0),[b,N]=(0,_i.useState)(o.current),[R,M]=(0,_i.useState)(0),[D,k]=(0,_i.useState)(!1),[H,$]=(0,_i.useState)(!1),Qe=Math.max(8,e.width-6),Ee=Math.max(8,Math.min(48,Qe-24)),Ce=sG({deps:e.voice,draft:i(()=>yy(o.current),"draft"),onText:i(ne=>ge(fG(o.current,ne)),"onText"),meterWidth:Ee});(0,_i.useEffect)(()=>{e.hidden&&Ce.busy&&Ce.cancel()},[e.hidden]);let Me=i(()=>{N(o.current),M(r.current),k(c.current)},"sync"),ge=i((ne,se)=>{let Te=ne.value!==o.current.value;o.current=ne,Te&&(r.current=0,c.current=!1,se?.keepHistory||(u.current=null,f.current=null)),se?.keepColumn||(E.current=null),v.current=0,$(!1),Me(),e.ctrlCArmed&&e.onCtrlCArm(!1)},"commit"),Le=i((ne,se)=>ge({...sh(),value:ne,cursor:ne.length,pasteSeq:o.current.pasteSeq},se),"setDraft"),le=i(()=>{u.current=null,f.current=null,m.current=null,ge({...sh(),pasteSeq:o.current.pasteSeq})},"reset"),ue=i(ne=>{let se=yy(ne),Te=ne.value;if(le(),QS(se)?.command==="/voice"){Ce.toggle();return}e.onSubmit(se,Te)},"submit"),te=i(ne=>{let se=e.historyEntries;if(!se.length)return!1;if(ne<0)if(u.current===null)m.current=o.current,u.current=se.length-1;else if(u.current>0)u.current-=1;else return!0;else{if(u.current===null)return!1;if(u.current<se.length-1)u.current+=1;else{u.current=null,f.current=null;let At=m.current??sh();return m.current=null,ge(At,{keepHistory:!0}),!0}}let Te=se[u.current];return f.current=Te,Le(Te,{keepHistory:!0}),!0},"recallHistory"),re=i(()=>{let ne=o.current.value;return!ne||f.current!==null&&ne===f.current},"historyAllowed");if(Qc(ne=>{ge(ww(o.current,ne,Date.now()))},{isActive:e.active&&!e.hidden}),bo((ne,se)=>{let Te=o.current,At=Te.value,Qt=Te.cursor,Lt=iw(At),gt=Lt.length>0&&!c.current,Be=Lt[Math.min(r.current,Lt.length-1)];if(process.env.MOREAI_DEBUG_INPUT){let Ze=Object.entries(se).filter(([,Gt])=>Gt===!0).map(([Gt])=>Gt).join(",");Hq.appendFileSync(process.env.MOREAI_DEBUG_INPUT,`input=${JSON.stringify(ne)} keys=[${Ze}] value=${JSON.stringify(At)}
368
+ `)}if(Ce.busy){let Ze=Ce.phase.kind;if(se.escape||se.ctrl&&ne==="c"){Ce.cancel();return}if(se.ctrl&&ne==="t"){Ce.toggle();return}if(Ze==="recording"&&se.return){Ce.finish();return}if(Ze!=="failed")return;Ce.cancel()}else if(se.ctrl&&ne==="t"){Ce.toggle();return}if(se.ctrl&&ne==="c"){if(At){e.onStash(yy(Te)),le();return}if(e.ctrlCArmed){e.onExit();return}e.onCtrlCArm(!0);return}if(se.ctrl&&ne==="d"){At?ge(xw(Te)):e.onExit();return}if(se.escape){if(gt){c.current=!0,Me();return}if(e.running){e.onAbort();return}if(!At)return;let Ze=Date.now();if(v.current&&Ze-v.current<1500){e.onStash(yy(Te)),le();return}v.current=Ze,$(!0),setTimeout(()=>{v.current===Ze&&(v.current=0,$(!1))},1500);return}if(se.tab&&se.shift){e.onModeCycle();return}if(gt&&(se.upArrow||se.downArrow)){let Ze=se.upArrow?-1:1;r.current=(r.current+Ze+Lt.length)%Lt.length,Me();return}if(gt&&se.tab){Be&&Le(`${Be.name} `);return}let _e=Date.now(),at=!!Te.burst&&_e-Te.burst.at<bw&&Te.cursor===Te.burst.end;if(ne&&!se.ctrl&&!se.meta&&!se.return&&(Lq(ne)||at)){ge(ww(Te,ne,_e));return}if(se.return){if(se.shift||se.meta){ge(Cy(Te,`
369
+ `));return}if(Qt===At.length&&At.endsWith("\\")){ge(lh(Te,At.length-1,At.length,`
370
+ `));return}if(gt&&Be){let Ze=At.split(/\s/,1)[0];if(Ze!==Be.name&&!Be.args){ue({...sh(),value:Be.name,cursor:Be.name.length});return}if(Ze!==Be.name&&Be.args){Le(`${Be.name} `);return}}At.trim()&&ue(Te);return}if(ne===`
371
+ `&&!se.return){ge(Cy(Te,`
372
+ `));return}if(se.ctrl&&ne==="o"){let Ze=pG(Te);Ze&&ge(Ze);return}if(se.upArrow||se.downArrow){let Ze=se.upArrow?-1:1,Gt=Tw(At,Qe),Hn=FS(At,Gt,Qt),Qn=E.current??Hn.col,Ro=hG(At,Gt,Qt,Ze,Qn);if(Ro!==null){ge(zu(Te,Ro,Ze),{keepColumn:!0,keepHistory:!0}),E.current=Qn;return}if(re()&&te(Ze))return;ge(zu(Te,Ze<0?0:At.length,Ze),{keepHistory:!0});return}let Mt=se.meta||se.ctrl;if(se.leftArrow){ge(zu(Te,Mt?GS(At,Qt):Qt-1,-1),{keepHistory:!0});return}if(se.rightArrow){ge(zu(Te,Mt?Dw(At,Qt):Qt+1,1),{keepHistory:!0});return}if(se.meta&&ne==="b"){ge(zu(Te,GS(At,Qt),-1),{keepHistory:!0});return}if(se.meta&&ne==="f"){ge(zu(Te,Dw(At,Qt),1),{keepHistory:!0});return}let Re=At.lastIndexOf(`
373
+ `,Qt-1)+1,xe=At.indexOf(`
374
+ `,Qt),he=xe===-1?At.length:xe;if(se.ctrl&&ne==="a"||se.home){ge(zu(Te,Re,-1),{keepHistory:!0});return}if(se.ctrl&&ne==="e"||se.end){ge(zu(Te,he,1),{keepHistory:!0});return}if(se.ctrl&&ne==="u"){ge(lh(Te,Re,Qt));return}if(se.ctrl&&ne==="k"){ge(lh(Te,Qt,he===Qt&&Qt<At.length?Qt+1:he));return}if(se.ctrl&&ne==="w"||se.meta&&se.backspace){ge(lh(Te,GS(At,Qt),Qt));return}if(se.backspace){ge(gG(Te));return}if(se.delete){ge(xw(Te));return}if(ne&&!se.ctrl&&!se.meta){let Ze=ne.replace(/\r/g,`
375
+ `).replace(/[\x00-\x09\x0b-\x1f\x7f]/g,"");Ze&&ge(Cy(Te,Ze))}},{isActive:e.active&&!e.hidden}),e.hidden)return null;let{value:ee,cursor:Se}=b,tt=iw(ee),Ie=tt.length>0&&!D&&!Ce.busy,Pe=Math.min(R,Math.max(0,tt.length-1)),ct=e.running?C("composer.placeholder.running"):C("composer.placeholder.idle"),Je=Tw(ee,Qe),W=FS(ee,Je,Se),ut=Uq(e.terminalRows),pt=EG(W.row,Je.length,ut,S.current);S.current=pt;let P=Je.slice(pt,pt+ut),be=Je.length-pt-P.length,Xe=ig(b),oe=Xe.length>0,nt=i(ne=>{let se=Je[ne],Te=[],At=ne===W.row,Qt=se.start,Lt=i((gt,Be,_e)=>{gt&&Te.push((0,io.jsx)(O,{inverse:Be.cursor,color:Be.paste?"cyan":void 0,children:gt},_e))},"push");for(;Qt<se.end;){let gt=Xe.find(at=>at.start<=Qt&&Qt<at.end),Be=Math.min(se.end,gt?gt.end:Xe.find(at=>at.start>Qt)?.start??se.end),_e=At&&Se>=Qt&&Se<Be?Se:Be;if(Lt(ee.slice(Qt,_e),{paste:!!gt},`t${Qt}`),At&&_e===Se&&Se<se.end){let at=String.fromCodePoint(ee.codePointAt(Se)??32);Lt(at,{paste:!!gt,cursor:!0},`c${Se}`),Qt=Se+at.length}else Qt=_e}return At&&Se===se.end&&Lt(" ",{cursor:!0},"eol"),(0,io.jsx)(O,{wrap:"truncate",children:Te.length?Te:" "},`r${ne}`)},"paintRow"),mt=H?C("composer.hint.escAgain"):e.running?C("composer.hint.running"):oe?C("composer.hint.paste"):C("composer.hint.idle");return(0,io.jsxs)(Rt,{flexDirection:"column",children:[(0,io.jsxs)(Rt,{borderStyle:"round",borderColor:Ce.phase.kind==="recording"?"red":e.running?"yellow":e.active?"#ff875f":"gray",paddingX:1,flexDirection:"row",children:[(0,io.jsx)(O,{color:"#ff875f",children:`${LR} `}),Ce.busy?(0,io.jsx)(Rt,{flexGrow:1,children:(0,io.jsx)(uG,{phase:Ce.phase,meterWidth:Ee})}):ee?(0,io.jsxs)(Rt,{flexDirection:"column",flexGrow:1,children:[pt>0?(0,io.jsx)(O,{dimColor:!0,children:`\u2191 ${C("composer.moreLines",{count:pt})}`}):null,P.map((ne,se)=>nt(pt+se)),be>0?(0,io.jsx)(O,{dimColor:!0,children:`\u2193 ${C("composer.moreLines",{count:be})}`}):null]}):(0,io.jsxs)(O,{children:[(0,io.jsx)(O,{inverse:!0,children:" "}),(0,io.jsx)(O,{dimColor:!0,children:ct})]})]}),Ce.busy?(0,io.jsx)(O,{dimColor:!0,wrap:"truncate",children:cG(Ce.phase)}):(!ee||oe||H)&&!Ie&&e.active?(0,io.jsx)(O,{dimColor:!0,wrap:"truncate",children:mt}):null,Ie?(0,io.jsxs)(Rt,{flexDirection:"column",paddingLeft:2,children:[(()=>{let ne=tt.length,se=kq(Pe,ne),Te=tt.slice(se,se+zS),At=ne-se-Te.length,Qt=Math.max(...tt.map(Lt=>Lt.name.length))+1;return(0,io.jsxs)(io.Fragment,{children:[se>0?(0,io.jsx)(O,{dimColor:!0,children:` \u2191 ${C("composer.menu.more",{count:se})}`}):null,Te.map((Lt,gt)=>{let Be=se+gt,_e=ee.split(/\s/,1)[0].length;return(0,io.jsxs)(O,{wrap:"truncate",children:[Be===Pe?(0,io.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,io.jsx)(O,{bold:!0,children:Lt.name.slice(0,_e)}),(0,io.jsx)(O,{bold:Be===Pe,children:Lt.name.slice(_e).padEnd(Qt-_e)}),Lt.args?(0,io.jsx)(O,{dimColor:!0,children:`${Lt.args} `}):null,(0,io.jsx)(O,{dimColor:!0,children:` ${Lt.description}`})]},Lt.name)}),At>0?(0,io.jsx)(O,{dimColor:!0,children:` \u2193 ${C("composer.menu.more",{count:At})}`}):null]})})(),(0,io.jsx)(O,{dimColor:!0,children:C("composer.menu.footer")})]}):null]})}var _i,io,zS,Lq,yG=L(async()=>{"use strict";_i=Ue(Nt(),1);await Cr();al();Vt();fy();Qw();await AG();_w();io=Ue(Sn(),1),zS=7;i(kq,"menuWindowStart");i(Uq,"draftHeight");Lq=i(e=>e.length>1&&(/[\r\n]/.test(e)||e.length>64),"looksPasted");i(CG,"Composer")});function ch(e){let o=(0,gd.useRef)(!1),r=(0,gd.useRef)(!1),[c,u]=(0,gd.useState)(!1),f=(0,gd.useRef)(e);return Object.is(f.current,e)||(f.current=e,o.current=!1,r.current=!1),(0,gd.useEffect)(()=>{o.current=!1,u(!1);let E=setTimeout(()=>{o.current=!0,u(!0)},IG);return()=>clearTimeout(E)},[e]),{armed:c,armedRef:o,submitDecision:i(E=>{if(!(!o.current||r.current)){r.current=!0;try{E()===!1&&(r.current=!1)}catch(S){throw r.current=!1,S}}},"submitDecision")}}var gd,IG,KS=L(()=>{"use strict";gd=Ue(Nt(),1),IG=700;i(ch,"useCardArm")});function BG(e){let o=(0,pd.useMemo)(()=>{let N=[{label:C("cards.permission.allowOnce"),decision:"approve"}];return e.permission.forceAsk||N.push({label:C("cards.permission.allowSession"),decision:"approve-session"},{label:C("cards.permission.allowAlways"),decision:"approve-always"}),N.push({label:C("cards.permission.deny"),decision:"reject"}),N},[e.permission]),r=(0,pd.useRef)(0),[c,u]=(0,pd.useState)(0),f=i(N=>{r.current=(r.current+N+o.length)%o.length,u(r.current)},"move"),{armed:m,armedRef:E,submitDecision:S}=ch(`${e.permission.runId}:${e.permission.id}`);Qc(()=>{}),(0,pd.useEffect)(()=>{r.current=0,u(0)},[e.permission.id]),bo((N,R)=>{if(R.upArrow||R.tab&&R.shift){f(-1);return}if(R.downArrow||R.tab){f(1);return}if(!E.current)return;if(R.return){S(()=>e.onDecide(o[Math.min(r.current,o.length-1)].decision));return}if(R.escape||R.ctrl&&N==="c"){S(()=>e.onDecide("reject"));return}let M=/^[1-9]$/.test(N)&&!R.ctrl&&!R.meta?Number(N):0;M>=1&&M<=o.length&&S(()=>e.onDecide(o[M-1].decision))});let v=(e.permission.detail??"").split(`
376
+ `).slice(0,12),b=(e.permission.detail??"").split(`
377
+ `).length-v.length;return(0,ms.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"yellow",paddingX:1,children:[(0,ms.jsxs)(O,{children:[(0,ms.jsx)(O,{color:"yellow",bold:!0,children:`\u26A0 ${C("cards.permission.title")}`}),(0,ms.jsxs)(O,{bold:!0,children:[" ",e.permission.title]})]}),v.length&&e.permission.detail?(0,ms.jsxs)(Rt,{flexDirection:"column",marginBottom:1,children:[v.map((N,R)=>(0,ms.jsxs)(O,{dimColor:!0,children:[" ",N]},R)),b>0?(0,ms.jsx)(O,{dimColor:!0,children:` ${C("cards.moreLines",{count:b})}`}):null]}):null,o.map((N,R)=>(0,ms.jsxs)(O,{children:[R===c?(0,ms.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,ms.jsx)(O,{bold:R===c,children:`${R+1}. ${N.label}`})]},N.decision)),(0,ms.jsx)(O,{dimColor:!0,children:m?C("cards.permission.footer",{max:o.length}):C("cards.permission.waiting")})]})}var pd,ms,SG=L(async()=>{"use strict";pd=Ue(Nt(),1);await Cr();Vt();KS();ms=Ue(Sn(),1);i(BG,"PermissionCard")});function vG(e){return(0,Dr.jsx)(Gq,{...e},`${e.question.runId}:${e.question.id}`)}function Gq(e){let o=e.question.questions,[r,c]=(0,ul.useState)(0),u=(0,ul.useRef)(0),[f,m]=(0,ul.useState)(0),E=(0,ul.useRef)(new Set),[S,v]=(0,ul.useState)(new Set),b=(0,ul.useRef)([]),N=(0,ul.useRef)(!1),[R,M]=(0,ul.useState)(!1),D=(0,ul.useRef)(""),[k,H]=(0,ul.useState)(""),$=o[r],Qe=$.options.length+1,Ee=$.options.length,{armed:Ce,armedRef:Me,submitDecision:ge}=ch(`${e.question.id}:${r}`),Le=i(te=>{u.current=(u.current+te+Qe)%Qe,m(u.current)},"moveCursor"),le=i((te,re="")=>{N.current=te,D.current=re,M(te),H(re)},"setCustom");Qc(te=>{Me.current&&N.current&&le(!0,D.current+LS(te))});let ue=i(te=>ge(()=>{let re=[...b.current,te];if(r+1<o.length)b.current=re,Me.current=!1,c(r+1),u.current=0,m(0),E.current=new Set,v(E.current),le(!1);else return e.onAnswer({answers:re})}),"commit");return bo((te,re)=>{if(N.current){if(!Me.current)return;if(re.return){let Se=D.current.trim();Se&&ue({questionId:$.id,selected:[],custom:Se});return}if(re.escape){le(!1);return}if(re.backspace||re.delete){le(!0,[...D.current].slice(0,-1).join(""));return}te&&!re.ctrl&&!re.meta&&le(!0,D.current+LS(te));return}if(re.upArrow||re.tab&&re.shift){Le(-1);return}if(re.downArrow||re.tab){Le(1);return}if(!Me.current)return;if(te===" "&&$.multiSelect&&u.current!==Ee){let Se=u.current,tt=new Set(E.current);tt.has(Se)?tt.delete(Se):tt.add(Se),E.current=tt,v(tt);return}if(re.return){let Se=u.current;if(Se===Ee){le(!0);return}if($.multiSelect){let tt=E.current.size?[...E.current]:[Se];ue({questionId:$.id,selected:tt.map(Ie=>$.options[Ie].label)})}else ue({questionId:$.id,selected:[$.options[Se].label]});return}if(re.escape){ue({questionId:$.id,selected:[],custom:"User dismissed the question \u2014 use your judgement and proceed."});return}let ee=/^[1-9]$/.test(te)&&!re.ctrl&&!re.meta?Number(te):0;ee>=1&&ee<=$.options.length&&ue({questionId:$.id,selected:[$.options[ee-1].label]})}),(0,Dr.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"blue",paddingX:1,children:[e.question.intro&&r===0?(0,Dr.jsx)(O,{dimColor:!0,children:e.question.intro}):null,(0,Dr.jsxs)(O,{bold:!0,children:[o.length>1?`(${r+1}/${o.length}) `:"",$.question]}),R?(0,Dr.jsxs)(O,{children:[(0,Dr.jsx)(O,{color:"#ff875f",children:"\u276F "}),k,(0,Dr.jsx)(O,{inverse:!0,children:" "})]}):(0,Dr.jsxs)(Dr.Fragment,{children:[$.options.map((te,re)=>(0,Dr.jsxs)(O,{children:[re===f?(0,Dr.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",$.multiSelect?S.has(re)?"[x] ":"[ ] ":"",(0,Dr.jsx)(O,{bold:re===f,children:`${re+1}. ${te.label}`}),te.description?(0,Dr.jsxs)(O,{dimColor:!0,children:[" ",te.description]}):null]},re)),(0,Dr.jsxs)(O,{children:[f===Ee?(0,Dr.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,Dr.jsx)(O,{bold:f===Ee,children:C("cards.question.other")}),(0,Dr.jsx)(O,{dimColor:!0,children:` ${C("cards.question.otherHint")}`})]}),(0,Dr.jsx)(O,{dimColor:!0,children:C(Ce?$.multiSelect?"cards.question.footerMulti":"cards.question.footerSingle":"cards.permission.waiting")})]})]})}var ul,Dr,QG=L(async()=>{"use strict";ul=Ue(Nt(),1);await Cr();Vt();_w();KS();Dr=Ue(Sn(),1);i(vG,"QuestionCard");i(Gq,"QuestionContent")});function bG(){let{stdout:e}=Pm(),o=i(()=>({columns:e.columns||80,rows:e.rows||24}),"read"),[r,c]=(0,YS.useState)(o);return(0,YS.useEffect)(()=>{let u=i(()=>c(o()),"onResize");return e.on("resize",u),()=>{e.off("resize",u)}},[e]),r}var YS,RG=L(async()=>{"use strict";YS=Ue(Nt(),1);await Cr();i(bG,"useTerminalSize")});function Nw(e){return e.replace(/\\/g,"/")}function wG(e){let o=Nw(e).replace(/\/+$/,""),r=o.lastIndexOf("/");return r===-1?o:o.slice(r+1)}var Fq,iAe,xG=L(()=>{"use strict";i(Nw,"toPosixPath");Fq="\0-",iAe=new RegExp(`[<>:"|?*${Fq}]`,"g");i(wG,"crossBasename")});function NG(e){let o=Yq(e),r=o.split("/").filter(Boolean),c=qq(r)??Pq(r);return c||wG(o)||e}function Yq(e){return Nw(e).replace(/\/+$/,"")}function MG(e,o){for(let r=0;r+o.length<=e.length;r++)if(o.every((c,u)=>e[r+u].toLowerCase()===c))return r;return-1}function qq(e){let o=MG(e,DG);if(o<0)return null;let r=e.slice(o+DG.length);if(r.length===0)return"iCloud";let c=r[0],u=c.toLowerCase()===zq;return r.length===1?u?"iCloud Drive":_G(c):r.length===2&&r[1]==="Documents"&&!u?_G(c):null}function _G(e){let o=e.split("~").pop()||e;return/^[a-z0-9]+$/.test(o)?o.charAt(0).toUpperCase()+o.slice(1):o}function Pq(e){let o=MG(e,TG);if(o<0)return null;let r=e.slice(o+TG.length);if(r.length!==1)return null;let c=r[0],u=c.indexOf("-"),f=u===-1?c:c.slice(0,u),m=u===-1?"":c.slice(u+1),E=Kq[f.toLowerCase()]??f;return!m||m.includes("@")||m.toLowerCase()===f.toLowerCase()?E:`${E} \u2013 ${m}`}var DG,TG,zq,Kq,OG=L(()=>{"use strict";xG();DG=["library","mobile documents"],TG=["library","cloudstorage"],zq="com~apple~clouddocs",Kq={googledrive:"Google Drive",protondrive:"Proton Drive"};i(NG,"folderDisplayName");i(Yq,"normalize");i(MG,"indexOfRoot");i(qq,"iCloudName");i(_G,"appNameOf");i(Pq,"cloudStorageName")});function HG(e){let o=(e||"").toLowerCase();return o?o.includes("1m")||o.includes("gemini-1.5")||o.includes("gemini-2")||o.includes("gpt-4.1")?1e6:o.includes("claude")||/(^|[-/])o[134](-|$)/.test(o)?2e5:o.includes("deepseek")?128e3:o.includes("glm")?o.includes("glm-5.3-flash")||/(?:^|\/)glm-5\.3(?:$|\[)/.test(o)||o.includes("glm-5.2")?1e6:o.includes("glm-4.6")||o.includes("glm-4.7")||/glm-5(?:[.\-]|$)/.test(o)?2e5:128e3:(/(^|[-/])(gpt-4|gpt-5)/.test(o),128e3):128e3}var kG=L(()=>{"use strict";i(HG,"modelContextWindow")});function UG(e){let o=[C("cards.planCard.build"),C("cards.planCard.keepPlanning")],r=(0,uh.useRef)(0),[c,u]=(0,uh.useState)(0),f=(0,uh.useMemo)(()=>JSON.stringify([e.plan.summary,e.plan.steps.map(v=>[v.title,v.detail,v.files])]),[e.plan]),{armed:m,armedRef:E,submitDecision:S}=ch(f);return Qc(()=>{}),bo((v,b)=>{if(b.upArrow||b.downArrow||b.tab){r.current=r.current===0?1:0,u(r.current);return}if(E.current){if(b.return){S(r.current===0?e.onBuild:e.onDismiss);return}if(b.escape)return S(e.onDismiss);b.ctrl||b.meta||(v==="1"&&S(e.onBuild),v==="2"&&S(e.onDismiss))}}),(0,md.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"#ff875f",paddingX:1,children:[(0,md.jsx)(O,{bold:!0,color:"#ff875f",children:C("cards.planCard.title")}),(0,md.jsx)(O,{dimColor:!0,children:C(m?"cards.planCard.hint":"cards.permission.waiting")}),o.map((v,b)=>(0,md.jsxs)(O,{children:[b===c?(0,md.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,md.jsx)(O,{bold:b===c,children:`${b+1}. ${v}`})]},b))]})}var uh,md,LG=L(async()=>{"use strict";uh=Ue(Nt(),1);await Cr();Vt();KS();md=Ue(Sn(),1);i(UG,"PlanCard")});function Mw(e,o){let r=e.filter(c=>!c.archived).sort((c,u)=>u.updated_at.localeCompare(c.updated_at));return o.trim()?ol(Rc(r,o,c=>[c.title,GG(c)],[1,.7]).map(({item:c,match:u})=>({session:c,positions:u.positions[0]})),c=>c.session.id):ol(r.map(c=>({session:c})),c=>c.session.id)}function FG(e){let o=(0,hd.useRef)(""),r=(0,hd.useRef)(0),[c,u]=(0,hd.useState)(""),[f,m]=(0,hd.useState)(0),E=(0,hd.useMemo)(()=>Mw(e.sessions,c),[e.sessions,c]),S=E.flatMap(M=>M.kind==="item"?[M.item.session]:[]),v=e.width??80,b=Math.max(4,Math.min(18,(e.terminalRows??30)-10)),N=i(M=>{r.current=M,m(M)},"setIdx"),R=i(M=>{o.current=M,u(M),N(0)},"setQ");return bo((M,D)=>{let k=Mw(e.sessions,o.current).filter(H=>H.kind==="item").length;if(D.escape)return o.current?R(""):e.onCancel();if(D.upArrow||D.ctrl&&M==="p")return N(Kr(r.current,-1,k));if(D.downArrow||D.tab||D.ctrl&&M==="n")return N(Kr(r.current,1,k));if(D.pageUp)return N(Ci(r.current,-1,k,b));if(D.pageDown)return N(Ci(r.current,1,k,b));if(D.return){let H=Mw(e.sessions,o.current).flatMap($=>$.kind==="item"?[$.item.session]:[])[r.current];H&&e.onPick(H);return}if(D.backspace||D.delete)return R(o.current.slice(0,-1));if(D.ctrl&&M==="u")return R("");if(M&&!D.ctrl&&!D.meta){let H=M.replace(/[\x00-\x1f\x7f]/g,"");H&&R((o.current+H).slice(0,60))}}),(0,Wi.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Wi.jsxs)(O,{children:[(0,Wi.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Wi.jsx)(O,{bold:!0,children:C("cloud.list.title")}),(0,Wi.jsx)(O,{dimColor:!0,children:` \xB7 ${S.length}`})]}),(0,Wi.jsxs)(O,{children:[(0,Wi.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),c,(0,Wi.jsx)(O,{color:Pn,children:"\u258C"})]}),(0,Wi.jsx)(rl,{rows:E,selected:f,height:b,width:Math.max(20,v-4),empty:c?C("pickers.list.empty"):C("cloud.list.empty"),renderItem:(M,{selected:D,width:k})=>{let H=M.session,$=pS(H.task?.status),Qe=ad([GG(H),ry(Date.parse(H.updated_at))],sd(k)),{left:Ee,gap:Ce}=ld(H.title||"\u2014",Qe,Math.max(10,k-14));return(0,Wi.jsxs)(O,{children:[(0,Wi.jsx)(O,{children:`${$} `}),nl(Ee,M.positions).map((Me,ge)=>(0,Wi.jsx)(O,{bold:D||Me.hit,color:Me.hit?Pn:void 0,children:Me.text},ge)),(0,Wi.jsx)(O,{dimColor:!0,children:`${Ce}${Qe}`})]})}}),(0,Wi.jsx)(O,{dimColor:!0,children:C("pickers.cloud.footer")})]})}var hd,Wi,GG,zG=L(async()=>{"use strict";hd=Ue(Nt(),1);await Cr();Vt();rd();ES();await lS();Mu();await Zf();Wi=Ue(Sn(),1),GG=i(e=>e.repositories[0]?.full_name??e.handoff?.name??"","whereOf");i(Mw,"cloudRows");i(FG,"CloudPicker")});function YG(e){let[o,r]=(0,No.useState)(null),[c,u]=(0,No.useState)(null),[f,m]=(0,No.useState)(null),E=(0,No.useMemo)(()=>Fu(e.dataDir),[e.dataDir]),S=(0,No.useRef)(e.initialQuery??""),[v,b]=(0,No.useState)(S.current),N=(0,No.useRef)(e.initialScope??rh),[R,M]=(0,No.useState)(N.current),D=(0,No.useRef)(0),[k,H]=(0,No.useState)(0),{current:$}=e,Qe=(0,No.useMemo)(()=>bS(o??void 0,$),[o,$]),Ee=(0,No.useMemo)(()=>pL(o??void 0,Qe),[o,Qe]),Ce=(0,No.useMemo)(()=>uw(Qe,{query:v,scope:R,recents:E}),[Qe,v,R,E]),Me=(0,No.useRef)(Qe);Me.current=Qe;let ge=(0,No.useRef)(Ee);ge.current=Ee;let Le=(0,No.useCallback)((P,be)=>uw(Me.current,{query:P,scope:be,recents:E}),[E]),le=i((P,be)=>Le(P,be).flatMap(Xe=>Xe.kind==="item"?[Xe.item]:[]),"itemsFor"),ue=i(P=>{D.current=P,H(P)},"select"),te=(0,No.useCallback)(async()=>{try{let P=await e.client.command("provider.list",void 0);r(P),u(null)}catch(P){u(P instanceof Error?P.message:String(P))}},[e.client]);(0,No.useEffect)(()=>{te()},[te,e.revision]);let re=(0,No.useRef)(null);(0,No.useEffect)(()=>{let P=Ce.flatMap(oe=>oe.kind==="item"?[oe.item]:[]),be=re.current,Xe=be?P.findIndex(oe=>_c(oe.entry)===be):-1;Xe>=0&&Xe!==D.current?ue(Xe):D.current>=P.length&&ue(Math.max(0,P.length-1))},[Ce]);let ee=i(P=>{S.current=P,b(P),ue(0),re.current=null},"setQuery"),Se=i(P=>{N.current=P,M(P),ue(0),re.current=null},"setScope"),tt=i(async P=>{let{entry:be}=P;try{let Xe=await e.client.command("models.pin",{providerId:be.providerId,model:be.id,pinned:!be.pinned});re.current=_c(be),r(oe=>oe&&{...oe,providers:oe.providers.map(nt=>nt.id===be.providerId?{...nt,pinnedModels:Xe.pinned}:nt)}),m(C(be.pinned?"pickers.model.unpinned":"pickers.model.pinned",{model:be.id}))}catch(Xe){let oe=Xe?.code;m(oe==="unknown-command"?C("pickers.model.pinNeedsNewerEngine"):String(Xe?.message??Xe))}},"togglePin");bo((P,be)=>{if(be.ctrl&&P==="c")return e.onClose();if(be.escape)return S.current?ee(""):e.onClose();if(be.ctrl&&P==="a")return e.onConnect();if(!o)return;let Xe=le(S.current,N.current),oe=Xe.length,nt=Math.max(1,Math.min(10,e.terminalRows-KG-2)),mt=i(ne=>{ue(ne),re.current=Xe[ne]?_c(Xe[ne].entry):null},"move");if(be.upArrow||be.ctrl&&P==="p")return mt(Kr(D.current,-1,oe));if(be.downArrow||be.ctrl&&P==="n")return mt(Kr(D.current,1,oe));if(be.pageUp)return mt(Ci(D.current,-1,oe,nt));if(be.pageDown)return mt(Ci(D.current,1,oe,nt));if(be.home)return mt(0);if(be.end)return mt(Math.max(0,oe-1));if(be.leftArrow||be.rightArrow||be.tab){let ne=ge.current;if(ne.length<2)return;let se=Math.max(0,ne.findIndex(At=>At.id===N.current)),Te=be.leftArrow||be.tab&&be.shift?-1:1;return Se(ne[Kr(se,Te,ne.length)].id)}if(be.return){let ne=Xe[Math.min(D.current,oe-1)];ne&&e.onPick(ne.entry);return}if(be.ctrl&&P==="f"){let ne=Xe[D.current];ne&&tt(ne);return}if(be.ctrl&&P==="u")return ee("");if(be.ctrl&&P==="w")return ee(S.current.replace(/\s*\S+\s*$/,""));if(be.backspace||be.delete)return ee(S.current.slice(0,-1));if(P&&!be.ctrl&&!be.meta){let ne=P.replace(/[\r\n\t]/g," ").replace(/[\x00-\x1f\x7f]/g,"");(ne.trim()||S.current)&&ee((S.current+ne).slice(0,80))}});let Ie=Math.max(1,e.width-4),Pe=Math.max(1,Math.min(20,e.terminalRows-KG-(f?1:0)-(c?1:0))),ct=e.current.model?C("pickers.model.current",{model:`${e.current.model}${e.current.providerId?` \xB7 ${Ee.find(P=>P.id===e.current.providerId)?.label??e.current.providerId}`:""}`}):C("pickers.model.noCurrent"),Je=Nu(Ce).length,W=Ee.find(P=>P.id===R)?.count??Qe.length,ut=(()=>{if(Ee.length<3)return null;let P=Math.max(0,Ee.findIndex(nt=>nt.id===R)),be=0,Xe=i(nt=>Ot(Ee[nt].label)+String(Ee[nt].count).length+4,"widthOf"),oe=Ee.slice(0,P+1).reduce((nt,mt,ne)=>nt+Xe(ne),0);for(;oe>Ie-6&&be<P;)oe-=Xe(be),be++;return(0,eo.jsxs)(O,{wrap:"truncate",children:[be>0?(0,eo.jsx)(O,{dimColor:!0,children:"\u2039 "}):null,Ee.slice(be).map((nt,mt)=>{let ne=be+mt===P;return(0,eo.jsxs)(O,{children:[mt>0?(0,eo.jsx)(O,{dimColor:!0,children:" "}):null,(0,eo.jsx)(O,{bold:ne,color:ne?Pn:void 0,dimColor:!ne,children:nt.label}),(0,eo.jsx)(O,{dimColor:!0,children:` ${nt.count}`})]},nt.id)})]})})(),pt=C(Ie>=78?"pickers.model.footerWide":Ie>=52?"pickers.model.footerMedium":"pickers.model.footerNarrow");return(0,eo.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,eo.jsxs)(O,{wrap:"truncate",children:[(0,eo.jsx)(O,{color:Pn,children:"\u2733 "}),(0,eo.jsx)(O,{bold:!0,children:C("pickers.model.title")}),(0,eo.jsx)(O,{dimColor:!0,children:` \xB7 ${ct}`})]}),(0,eo.jsxs)(O,{wrap:"truncate",children:[(0,eo.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),v?(0,eo.jsx)(O,{children:v}):null,(0,eo.jsx)(O,{color:Pn,children:"\u258C"}),v?null:(0,eo.jsx)(O,{dimColor:!0,children:C("pickers.model.searchHint")}),(0,eo.jsx)(O,{dimColor:!0,children:o?` ${v?C("pickers.model.matchCount",{shown:Je,total:W}):C("pickers.model.count",{count:W})}`:""})]}),ut,f?(0,eo.jsx)(O,{dimColor:!0,wrap:"truncate",children:f}):null,c?(0,eo.jsx)(O,{color:"red",wrap:"truncate",children:`\u2715 ${c}`}):null,!o&&!c?(0,eo.jsx)(O,{dimColor:!0,children:C("pickers.model.loading")}):null,o&&!Qe.length?(0,eo.jsxs)(O,{children:[(0,eo.jsx)(O,{color:"yellow",children:C("pickers.model.noProviders")}),(0,eo.jsx)(O,{dimColor:!0,children:` ${C("pickers.model.noProvidersHint")}`})]}):null,o&&Qe.length?(0,eo.jsx)(rl,{rows:Ce,selected:k,height:Pe,width:Ie,empty:C("pickers.model.noMatch",{query:v}),renderItem:(P,{selected:be,width:Xe})=>{let{entry:oe}=P,nt=oe.current?"\u25CF ":oe.pinned?"\u2605 ":" ",mt=hL(oe),ne=ad([P.showProvider?oe.providerLabel:"",mt],sd(Xe)),{left:se,gap:Te}=ld(oe.id,ne,Xe-nt.length),At=nl(se,P.positions);return(0,eo.jsxs)(O,{children:[(0,eo.jsx)(O,{color:oe.current?"green":oe.pinned?Pn:void 0,children:nt}),At.map((Qt,Lt)=>(0,eo.jsx)(O,{bold:be||Qt.hit,color:Qt.hit?Pn:void 0,children:Qt.text},Lt)),(0,eo.jsxs)(O,{dimColor:!0,children:[Te,ne]})]})}}):null,(0,eo.jsx)(O,{dimColor:!0,wrap:"truncate",children:pt})]})}var No,eo,KG,qG=L(async()=>{"use strict";No=Ue(Nt(),1);await Cr();Ea();RS();Vt();rd();Mu();await Zf();eo=Ue(Sn(),1),KG=12;i(YG,"ModelPicker")});var qS,PG=L(()=>{"use strict";qS=class{static{i(this,"ModelPersistenceQueue")}pending=null;quitting=!1;closed=!1;get isQuitting(){return this.quitting}save(o){if(this.quitting)return Promise.resolve();let r=i(async()=>{if(!this.closed){try{await o.remember()}catch(f){this.closed||o.onRememberError(f)}if(!this.closed)try{await o.updateSession()}catch{}}},"persist"),c=this.pending?this.pending.then(r,r):r();this.pending=c;let u=i(()=>{this.pending===c&&(this.pending=null)},"settled");return c.then(u,u),c}finish(o,r){if(this.quitting)return;if(this.quitting=!0,!this.pending){this.closed=!0,r();return}o();let c,u=i(()=>{this.closed||(this.closed=!0,clearTimeout(c),r())},"finish");c=setTimeout(u,2e3),this.pending.then(u,u)}}});function JG(e){let o=Math.max(0,qa.findIndex(m=>m.id===e.initial)),r=(0,PS.useRef)(o),[c,u]=(0,PS.useState)(o),f=i(m=>{r.current=(r.current+m+qa.length)%qa.length,u(r.current)},"move");return bo((m,E)=>{if(E.upArrow)return f(-1);if(E.downArrow||E.tab)return f(1);let S=Number(m);if(S>=1&&S<=qa.length){e.onChoose(qa[S-1].id);return}if(E.return){e.onChoose(qa[r.current].id);return}(E.escape||E.ctrl&&m==="c")&&(e.firstRun?e.onChoose(qa[r.current].id):e.onCancel())}),(0,hs.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,children:[(0,hs.jsxs)(O,{children:[(0,hs.jsx)(O,{color:"#ff875f",children:"\u2733 "}),(0,hs.jsx)(O,{bold:!0,children:C("cards.analytics.title")})]}),jm().map((m,E)=>(0,hs.jsx)(O,{dimColor:!0,children:m},E)),(0,hs.jsx)(O,{children:" "}),qa.map((m,E)=>(0,hs.jsxs)(O,{wrap:"truncate",children:[E===c?(0,hs.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,hs.jsx)(O,{bold:E===c,children:`${E+1}. ${m.label}`}),(0,hs.jsx)(O,{dimColor:!0,children:` ${m.detail}`})]},m.id)),(0,hs.jsx)(O,{dimColor:!0,children:e.firstRun?C("cards.analytics.footer"):C("cards.analytics.footerCancel")})]})}var PS,hs,jG=L(async()=>{"use strict";PS=Ue(Nt(),1);await Cr();Ou();Vt();hs=Ue(Sn(),1);i(JG,"AnalyticsConsent")});function Jq(e,o){let r={id:ag,label:C("common.language.auto"),detail:C("common.language.autoDetail",{name:am(o)})},c=zA.map(f=>({id:f.id,label:f.label,detail:f.englishName===f.label?f.id:`${f.englishName} \xB7 ${f.id}`}));if(!e.trim())return ol([r,...c],f=>f.id);let u=Rc([r,...c],e,f=>[f.label,f.detail],[1,.8],[!1,!0]);return ol(u.map(({item:f,match:m})=>({...f,positions:m.positions[0]})),f=>f.id)}function VG(e){let[o,r]=(0,Ku.useState)(""),c=(0,Ku.useRef)(""),[u,f]=(0,Ku.useState)(0),m=(0,Ku.useRef)(0),E=(0,Ku.useMemo)(()=>Jq(o,e.detected),[o,e.detected]),S=(0,Ku.useRef)(E);S.current=E;let v=i(D=>{m.current=D,f(D)},"setIndex"),b=i(D=>{c.current=D,r(D),v(0)},"setQuery"),N=Math.max(5,Math.min(16,e.terminalRows-10));bo((D,k)=>{let H=S.current.length;if(k.escape){c.current?b(""):e.onClose();return}if(k.ctrl&&D==="c"){e.onClose();return}if(k.return){let $=S.current[m.current];$?.kind==="item"&&e.onPick($.item.id);return}if(k.upArrow||k.ctrl&&D==="p")return v(Kr(m.current,-1,H));if(k.downArrow||k.tab||k.ctrl&&D==="n")return v(Kr(m.current,1,H));if(k.pageUp)return v(Ci(m.current,-1,H,10));if(k.pageDown)return v(Ci(m.current,1,H,10));if(k.backspace||k.delete)return b(c.current.slice(0,-1));if(k.ctrl&&D==="u")return b("");if(D&&!k.ctrl&&!k.meta){let $=D.replace(/[\x00-\x1f\x7f]/g,"");$&&($.trim()||c.current)&&b((c.current+$).slice(0,40))}});let R=Math.max(30,e.width-4),M=za();return(0,Ii.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Ii.jsxs)(O,{wrap:"truncate",children:[(0,Ii.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Ii.jsx)(O,{bold:!0,children:C("common.language.title")}),(0,Ii.jsx)(O,{dimColor:!0,children:` \xB7 ${C("common.language.current",{name:am(M)})}`})]}),(0,Ii.jsxs)(O,{wrap:"truncate",children:[(0,Ii.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),o,(0,Ii.jsx)(O,{color:Pn,children:"\u258C"}),o?null:(0,Ii.jsx)(O,{dimColor:!0,children:C("common.language.search")})]}),(0,Ii.jsx)(rl,{rows:E,selected:u,height:N,width:R,empty:C("common.noMatch",{query:o}),renderItem:(D,{selected:k})=>{let H=D.id===e.chosen;return(0,Ii.jsxs)(O,{children:[(0,Ii.jsx)(O,{color:H?"green":void 0,children:H?"\u25CF ":" "}),nl(D.label,D.positions).map(($,Qe)=>(0,Ii.jsx)(O,{bold:k||$.hit,color:$.hit?Pn:void 0,children:$.text},Qe)),(0,Ii.jsx)(O,{dimColor:!0,children:` ${D.detail}`})]})}}),(0,Ii.jsx)(O,{dimColor:!0,wrap:"truncate",children:C("common.language.footer")}),(0,Ii.jsx)(O,{dimColor:!0,wrap:"truncate",children:C("common.language.note")})]})}var Ku,Ii,ag,XG=L(async()=>{"use strict";Ku=Ue(Nt(),1);await Cr();rd();Vt();Mu();await Zf();Ii=Ue(Sn(),1),ag="auto";i(Jq,"languageRows");i(VG,"LanguagePicker")});function ZG(e){if(e<=10)return"red";if(e<=25)return"yellow"}function WG(e){return(0,$i.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,$i.jsxs)(O,{wrap:"truncate",children:[(0,$i.jsx)(O,{color:jq[e.mode],bold:!0,children:e.mode}),(0,$i.jsx)(O,{dimColor:!0,children:" \xB7 "}),(0,$i.jsx)(O,{children:e.model??C("app.status.defaultModel")}),e.model&&e.providerLabel?(0,$i.jsx)(O,{dimColor:!0,children:` \xB7 ${e.providerLabel}`}):null,e.contextLeft!==void 0?(0,$i.jsx)(O,{color:ZG(e.contextLeft),dimColor:!ZG(e.contextLeft),children:` \xB7 ${C("app.status.contextLeft",{percent:e.contextLeft})}`}):null,e.branch?(0,$i.jsxs)(O,{dimColor:!0,children:[" \xB7 \u2387 ",e.branch]}):null,e.sessionTitle?(0,$i.jsxs)(O,{dimColor:!0,children:[" \xB7 ",e.sessionTitle]}):null]}),(0,$i.jsxs)(O,{wrap:"truncate",children:[(0,$i.jsx)(O,{color:e.providerConnected===!1?"yellow":e.providerConnected?"green":void 0,children:e.providerConnected===!1?C("app.status.aiSetupNeeded"):e.providerConnected?C("app.status.aiReady"):C("app.status.aiChecking")}),(0,$i.jsx)(O,{dimColor:!0,children:" \xB7 "}),(0,$i.jsx)(O,{color:e.accountSignedIn?"green":void 0,dimColor:!e.accountSignedIn,children:e.accountSignedIn===void 0?C("app.status.syncChecking"):e.accountSignedIn?C("app.status.syncOn"):C("app.status.syncOff")}),(0,$i.jsxs)(O,{dimColor:!0,children:[" \xB7 ",e.engineLabel,e.hint?` \xB7 ${e.hint}`:""]})]})]})}var $i,jq,$G=L(async()=>{"use strict";await Cr();Vt();$i=Ue(Sn(),1);i(ZG,"contextColor");jq={plan:"cyan","read-only":"blue","accept-edits":"green",auto:"#ff875f",full:"red"};i(WG,"StatusBar")});import{randomUUID as e4}from"node:crypto";function Vq(e,o,r){return C(e).split(/(\{\{\s*\w+\s*\}\})/).map(c=>{let u=/^\{\{\s*(\w+)\s*\}\}$/.exec(c)?.[1];if(u!==void 0)return o[u]??c;let f=c.trim();if(!f)return c;let m=c.indexOf(f);return c.slice(0,m)+r(f)+c.slice(m+f.length)}).join("")}function t4(e){for(let o=e.length-1;o>=0;o--){let r=e[o].role==="assistant"?e[o].usage?.context:void 0;if(r)return r}}function Xq(e,o){if(!(!e||!o||o<=0))return Math.max(0,Math.min(100,Math.round(100-e/o*100)))}function o4(e){let{exit:o}=Z0(),r=(0,et.useRef)(null),c=(0,et.useRef)(new DS(e.dataDir)),u=(0,et.useRef)(new Set),f=(0,et.useRef)(!1),m=(0,et.useRef)(0),E=(0,et.useRef)(null),S=(0,et.useRef)(!1),v=(0,et.useRef)(null),b=(0,et.useRef)(null),N=(0,et.useRef)(e.args.model),R=(0,et.useRef)(e.args.provider),M=(0,et.useRef)(null),D=(0,et.useRef)(new qS),[k,H]=(0,et.useState)([]),{columns:$,rows:Qe}=bG(),Ee=Math.max(4,Math.min(Math.max(4,$-4),100)),[Ce,Me]=(0,et.useState)(0),[ge,Le]=(0,et.useState)(null),[le,ue]=(0,et.useState)(e.args.mode??"auto"),[te,re]=(0,et.useState)(e.args.model),[ee,Se]=(0,et.useState)(e.args.provider),[tt,Ie]=(0,et.useState)(null),[Pe,ct]=(0,et.useState)(0),[Je,W]=(0,et.useState)(null),[ut,pt]=(0,et.useState)("native"),[P,be]=(0,et.useState)(!1),[Xe,oe]=(0,et.useState)(0),[nt,mt]=(0,et.useState)([]),[ne,se]=(0,et.useState)(null),[Te,At]=(0,et.useState)(null),[Qt,Lt]=(0,et.useState)(null),[gt,Be]=(0,et.useState)(null),[_e,at]=(0,et.useState)(null),[Mt,Re]=(0,et.useState)(null),xe=(0,et.useRef)(null),[he,Ze]=(0,et.useState)(!1),[Gt,Hn]=(0,et.useState)(!1),[Qn,Ro]=(0,et.useState)(!1),[qr,wo]=(0,et.useState)(!1),[ir,Pr]=(0,et.useState)(()=>Iu({dataDir:e.dataDir}).cliPref??ag),[,ot]=(0,et.useState)(0),[bt,Et]=(0,et.useState)(null),en=(0,et.useRef)(null),[uo,ar]=(0,et.useState)(),[Ia,Tn]=(0,et.useState)(),[w,j]=(0,et.useState)(0),[ze,ke]=(0,et.useState)(),[it,An]=(0,et.useState)(),[ft,wt]=(0,et.useState)(!1),[sn,sr]=(0,et.useState)(!1),[po,jo]=(0,et.useState)(0),Ir=(0,et.useMemo)(()=>RL(e.repoPath),[e.repoPath]),Dt=(0,et.useCallback)(J=>{J&&H(Ne=>[...Ne,{id:++m.current,text:J}])},[]),Nn=(0,et.useCallback)(J=>{M.current=J,Ie(J),ct(Ne=>Ne+1),ar(J.providers.some(Ne=>Ne.connected))},[]),Yt=(0,et.useCallback)(J=>{An(J),setTimeout(()=>An(Ne=>Ne===J?void 0:Ne),2500)},[]),Tr=(0,et.useCallback)(J=>{let Ne=J.toLowerCase()===ag?ag:Tf(J);if(!Ne){Yt(C("common.language.unknown",{tag:J,count:zA.length}));return}uQ(e.dataDir,Ne);let je=YA(Ne===ag?mB(Iu({dataDir:e.dataDir})):Ne);Pr(Ne),ot(Ke=>Ke+1),wo(!1),Dt(`${It("\u25CF")} ${Ne===ag?C("common.language.switchedAuto",{name:am(je)}):C("common.language.switched",{name:am(je)})}`)},[e.dataDir,Dt,Yt]);(0,et.useEffect)(()=>{let J=!0;return nb(e.dataDir).then(Ne=>{J&&Ne&&Dt(Ne)}),()=>{J=!1}},[e.dataDir,Dt]);let{liveText:ri,reasoningTail:ta,liveTools:na,helpers:Ba,explore:Sa,helperTokens:Jr,reset:ii,settleStream:Es,sealLiveText:Mc,flushExplore:Ja,noteTodos:ja,handlers:Oc}=kL({running:P,push:Dt,width:Ee}),Va=(0,et.useCallback)(J=>{Ja(),Dt(J)},[Ja,Dt]),{connRef:He,driverRef:Jn,engine:ao,setEngine:Bi,connect:oa,reconnect:Ni}=NL({onHubEvent:i(J=>x(J),"onHubEvent"),onOpenExternal:i(()=>Yt(C("app.toast.browserOpened")),"onOpenExternal"),onConnectionLost:i(()=>{r.current&&(r.current.connectionLost(),Yt(C("app.toast.connectionLost")))},"onConnectionLost"),onConnectionRestored:i(async J=>{let Ne=r.current;if(Ne)try{await Ne.resume(J.client),r.current===Ne&&Yt(C("app.toast.runRestored"))}catch(je){if(Yt(je instanceof Error?je.message:String(je)),r.current===Ne)throw je}},"onConnectionRestored"),onReconnectFailed:i(()=>r.current?.giveUpConnection(),"onReconnectFailed"),showToast:Yt}),Mi=(0,et.useMemo)(()=>({client:i(()=>He.current?.client,"client"),scene:i(()=>{let J=Jn.current?.currentSession;return{conversationId:J?.id,title:J?.title,terms:[NG(e.repoPath),Ir]}},"scene")}),[e.repoPath,Ir]),xo=!!Mt?.task&&!ud.has(Mt.task.status);(0,et.useEffect)(()=>{if(!P&&!xo)return;let J=setInterval(()=>jo(Ne=>Ne+1),120);return()=>clearInterval(J)},[P,xo]);let Oi=(0,et.useCallback)(()=>{Es(),be(!1),r.current=null,S.current=!1,se(null),At(null)},[Es]),to=(0,et.useRef)(0);(0,et.useEffect)(()=>{to.current=w},[w]);let Br=(0,et.useCallback)(async(J,Ne)=>{let je=Jn.current;if(!je||!He.current?.client.isConnected()){Yt(C("app.toast.notConnected"));return}if(r.current)return;if(f.current&&(f.current=!1,je.setSession(null)),!je.currentSession){let Ao=await He.current.client.command("provider.list",void 0).catch(()=>{}),ai=ng(Ao,N.current,R.current,Fu(e.dataDir)[0]);await je.newSession(e.repoPath,oh(J,e.repoPath),{model:ai.model,provider:ai.providerId})}let Ke,St;try{let Ao=b.current,ai=je.currentSession;if(ai&&Ao==="claude-code"){let Hc=await He.current.client.command("provider.list",void 0);if(!xS(Ao,e.args.provider??ai.provider,Hc)){Yt(C("app.toast.claudeAgentKey"));return}}if(ai&&Ao&&ai.harness!==Ao){let Hc=await He.current.client.command("session.updateMeta",{id:ai.id,patch:{harness:Ao,harnessEpochId:e4()}});je.setSession(Hc),Le(Hc)}b.current=null;let Ft=je.currentSession?.id,ur=Ft?await He.current.client.command("session.get",{id:Ft}):null;if(!ur){Yt(C("app.toast.sessionGone"));return}je.setSession(ur),Le(ur),pt(ur.harness);let _r=await He.current.client.command("provider.list",void 0).catch(()=>{}),Qa=SS({session:ur,providers:_r,modelOverride:N.current,providerOverride:R.current});if(!Qa.ok){Yt(Qa.reason);return}N.current||re(ur.model||void 0),Se(Qa.providerId??ur.provider??void 0),Qa.ambiguous?.length&&Yt(Ay(Qa.displayModel,Qa.ambiguous)),Ke=Qa.model,St=Qa.providerId}catch(Ao){Yt(Ao instanceof Error?Ao.message:String(Ao));return}S.current=!0,Ne?.echo!==!1&&Dt(Zm(Ne?.display??J)),be(!0),oe(Date.now()),j(0),mt([]),Lt(null),ii();let dt=Date.now(),mn=!1,Xo=He.current.client,Pl=vS(J);Pl&&Zi(Xo,"cli_helper_summoned",{helper:Pl});try{let Ao=await je.runTask({task:J,repoPath:e.repoPath,accessMode:Ne?.phase==="build"?"auto":le,sessionTitle:oh(J,e.repoPath),model:Ke,providerId:St,phase:Ne?.phase,plan:Ne?.plan,forcedSubagentId:Pl},{...Oc,onTodos:i(Ft=>{mt(Ft),ja(Ft)},"onTodos"),onPermission:i(Ft=>se(Ft),"onPermission"),onPermissionResolved:i((Ft,ur)=>{se(_r=>_r&&Ft.includes(_r.id)?(Va(n4(ur==="approved",_r.title)),null):_r)},"onPermissionResolved"),onQuestion:i(Ft=>At(Ft),"onQuestion"),onPlan:i(Ft=>{Mc(),Va(iS(Ft)),Lt(Ft)},"onPlan"),onCommandSkipped:i(Ft=>{Va(il(C("app.held.title",{command:Ft.command}),`${Ft.reason}
378
+ ${C("app.held.hint")}`))},"onCommandSkipped"),onUsage:i(Ft=>{j(Ft.total),Ft.context&&ke(Ft.context)},"onUsage"),onWorkspaceBusy:i(Ft=>{Va(il(C("app.sharedTree.title"),C("app.sharedTree.body",{count:Ft})))},"onWorkspaceBusy"),onConnectorError:i(Ft=>{Va(il(C("app.connectorFailed",{name:Ft.connectorName}),Ft.message))},"onConnectorError"),onStepBudget:i(Ft=>{Va(il(Ft==="output-length"?C("app.stepBudget.outputLength"):C("app.stepBudget.steps"),C("app.stepBudget.hint")))},"onStepBudget"),onCheckpoint:i(async()=>{let Ft=Jn.current?.currentSession;Ft&&(ii(),await ye(Ft))},"onCheckpoint"),onReplayGap:i(async()=>{let Ft=Jn.current?.currentSession;Ft&&(ii(),await ye(Ft))},"onReplayGap"),onDone:i(()=>{mn=!0,Oi();let Ft=Jr(),ur=to.current+Ft,_r=ur?` \xB7 ${C("app.run.tokens",{tokens:Uu(ur)})}${Ft?` (${C("app.run.helperTokens",{tokens:Uu(Ft)})})`:""}`:"";Dt(ie(`${It("\u2713")} ${C("app.run.done",{elapsed:xc(dt)})}${_r}`)),va()},"onDone"),onError:i(Ft=>{if(mn=!0,Oi(),Ft.code==="aborted"){Dt(ie(`\u25A0 ${C("app.run.interrupted")}`));return}let ur=BS(Ft);Dt([`${Bt("\u2715")} ${ht(C("app.run.error",{code:Ft.code}))}: ${Ft.message}`,ur?ie(ur):""].filter(Boolean).join(`
379
+ `))},"onError")});mn||(r.current=Ao),Le(je.currentSession),Sr();let ai=He.current?.client;if(!mn&&ai?.isConnected()&&(Ao.needsReconnect||ai!==Xo))try{await Ao.resume(ai)}catch(Ft){Yt(Ft instanceof Error?Ft.message:String(Ft)),r.current===Ao&&Ni()}}catch(Ao){be(!1),S.current=!1,Dt(`${Bt("\u2715")} ${Ao instanceof Error?Ao.message:String(Ao)}`)}},[le,te,e.repoPath]),va=(0,et.useCallback)(async()=>{let J=Jn.current,Ne=He.current,je=J?.currentSession;if(!(!J||!Ne||!je))try{let Ke=await Ne.client.command("session.get",{id:je.id});Ke&&(J.setSession(Ke),Le(Ke),pt(Ke.harness),N.current||(re(Ke.model||void 0),Se(Ke.provider??void 0)),Sr())}catch{}},[]),Sr=(0,et.useCallback)(()=>{let Ne=Jn.current?.currentSession;for(let je of Ne?.messages??[])u.current.add(je.id)},[]),Si=(0,et.useCallback)((J,Ne)=>{for(let je of J){if(u.current.has(je.id))continue;u.current.add(je.id);let Ke=_L(je,Ee);Ke.forEach((St,dt)=>{Dt(Ne?.suffix&&dt===Ke.length-1?`${St}
380
+ ${Ne.suffix}`:St)})}},[Dt,Ee]),Xa=(0,et.useCallback)(async()=>{let J=He.current,Ne=Jn.current,je=Ne?.currentSession;if(!(!J||!je))try{let Ke=await J.client.command("session.get",{id:je.id});if(!Ke)return;Si(Ke.messages,{suffix:ie(`\u21C4 ${C("app.session.fromOtherSurface")}`)}),je.harnessEpochId!==Ke.harnessEpochId&&!e.args.model&&(N.current=void 0,R.current=e.args.provider),Ne.setSession(Ke),Le(Ke),pt(Ke.harness),N.current||(re(Ke.model||void 0),Se(Ke.provider??void 0))}catch{}},[Si]),x=(0,et.useCallback)(J=>{if(J.event==="account.changed"){He.current?.client.command("account.state",void 0).then(je=>Tn(je.signedIn)).catch(()=>{});return}if(J.event==="provider.changed"){He.current?.client.command("provider.list",void 0).then(Nn).catch(()=>{});return}let Ne=Jn.current?.currentSession?.id;if(J.event==="session.changed"){if(J.by==="cli"||S.current)return;J.id===Ne&&Xa();return}if(J.event==="run.event"||J.event==="run.done"||J.event==="run.error"){if(r.current&&J.id===r.current.runId||S.current||!J.conversationId||J.conversationId!==Ne)return;J.event==="run.event"&&E.current!==J.id&&(E.current=J.id,Dt(ie(`\u21C4 ${C("app.session.otherSurfaceRunning")}`))),(J.event==="run.done"||J.event==="run.error")&&(E.current=null,Xa())}},[Xa,Dt,va]);(0,et.useEffect)(()=>{let J=!1;return(async()=>{try{if(await oa(),J)return;let Ne=He.current,je=Jn.current;if(!Ne||!je)return;if(rS(e.dataDir)){let St=await Ne.client.command("telemetry.state",void 0).catch(()=>null);if(St&&!St.envOptOut&&!J&&(await new Promise(dt=>{en.current=dt,Et({initial:ny(St),firstRun:!0})}),J))return}Zi(Ne.client,"app_launched",{command:"run",interactive:!0,engine_spawned:Ne.spawned,continued:e.args.continueSession||!!e.args.session}),Ne.client.command("account.state",void 0).then(St=>{J||Tn(St.signedIn)}).catch(()=>{J||Tn(!1)});let Ke=await IS(je,Ne.client,e.repoPath,{continueSession:e.args.continueSession,sessionId:e.args.session});if(Ke){Le(Ke),pt(Ke.harness),!e.args.mode&&Ke.accessMode&&ue(Ke.accessMode),!e.args.model&&Ke.model&&(re(Ke.model),Se(Ke.provider??void 0));let dt=Ke.messages??[];ke(t4(dt)),Si(dt),Dt(ie(`\u21BA ${C("app.session.resumed",{title:Ke.title})} \xB7 ${C("app.session.messages",{count:dt.length})}`))}try{let St=await Ne.client.command("provider.list",void 0);if(J)return;let dt=St.providers.some(mn=>mn.connected);if(Nn(St),dt&&!e.args.model&&!Ke?.model){let mn=ng(St,void 0,e.args.provider,Fu(e.dataDir)[0]);mn.model&&re(mn.model),Se(mn.providerId)}else if(e.args.model){let mn=ng(St,e.args.model,e.args.provider);mn.providerId&&Se(mn.providerId)}if(!dt){let mn=hm(St.providers).map(({key:Xo})=>Xo.name);Dt(`${Kt("01")} ${ht(C("app.firstRun.title"))}
381
+ ${ie(C("app.firstRun.choose"))}
382
+ `+(mn.length?` ${It(C("app.firstRun.envFound",{names:mn.join(", ")}))}
383
+ `:"")+` ${ie(C("app.firstRun.account"))}`),v.current=e.initialTask??null,Ze(!0);return}}catch{}e.initialTask&&Br(e.initialTask)}catch(Ne){J||Bi({phase:"failed",spawned:!1,message:Ne instanceof Error?Ne.message:String(Ne)})}})(),()=>{J=!0}},[]),(0,et.useEffect)(()=>{let J=ge?.title?`\u2733 moreai \u2014 ${ge.title}`:"\u2733 moreai";process.stdout.write(`\x1B]2;${J}\x07`)},[ge?.title]);let T=(0,et.useCallback)(()=>{let J=Jn.current?.currentSession;r.current?.abort(),xe.current?.abort();let Ne={kind:"user",...J?{session:{id:J.id,title:J.title}}:{}};D.current.finish(()=>{sr(!0),Yt(C("app.run.working"))},()=>{He.current?.dispose(),o(Ne)})},[o,Yt]),G=(0,et.useCallback)(J=>{J.length<=4e3&&c.current.push(J)},[]),Y=(0,et.useCallback)(()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H"),H([]),Me(J=>J+1)},[]),V=(0,et.useCallback)(()=>{f.current=!0,b.current=null,e.args.model||(N.current=void 0),R.current=e.args.provider,Jn.current?.setSession(null),Le(null),ke(void 0),mt([]),u.current=new Set,Y()},[Y]),ye=(0,et.useCallback)(async J=>{let Ne=He.current,je=Jn.current;if(!Ne||!je)return;let Ke=await Ne.client.command("session.get",{id:J.id});Ke&&(je.setSession(Ke),Le(Ke),ue(Ke.accessMode),re(Ke.model||void 0),Se(Ke.provider??void 0),e.args.model||(N.current=void 0),R.current=e.args.provider,b.current=null,pt(Ke.harness),u.current=new Set,ke(t4(Ke.messages)),Y(),Dt(`${Kt(Pa)} ${ht(Ke.title)} ${ie(`\xB7 ${C("app.session.messages",{count:Ke.messages.length})}`)}`),Si(Ke.messages))},[Y,Dt,Si]),Oe=(0,et.useCallback)(async J=>{let Ne=He.current?.client;if(!Ne?.isConnected()){Yt(C("app.toast.notConnected"));return}let je={on:"all",all:"all",usage:"usage",off:"off"},Ke=J.trim().toLowerCase();try{if(Ke&&!je[Ke]){Yt(C("app.toast.analyticsUsage"));return}if(Ke){let dt=await Wf(Ne,e.dataDir,je[Ke],"cli_slash");Dt(ie(C("app.analytics.state",{state:cd(dt)})));return}let St=await Ne.command("telemetry.state",void 0);if(St.envOptOut){Dt(ie(C("app.analytics.state",{state:cd(St)})));return}Et({initial:ny(St),firstRun:!1})}catch(St){Yt(St instanceof Error?St.message:String(St))}},[e.dataDir,Dt,Yt]),ve=(0,et.useCallback)(J=>{let Ne=bt?.firstRun??!1;Et(null);let je=en.current;en.current=null;let Ke=He.current?.client,St=i(()=>je?.(),"finish");if(!J||!Ke)return St();Wf(Ke,e.dataDir,J,Ne?"cli_first_run":"cli_slash").then(dt=>Dt(ie(C("app.analytics.stateChange",{state:cd(dt)})))).catch(dt=>Yt(dt instanceof Error?dt.message:String(dt))).finally(St)},[bt,e.dataDir,Dt,Yt]),We=(0,et.useCallback)(async(J,Ne,je)=>{if(D.current.isQuitting)return;W(null),N.current=J.id,R.current=J.providerId,re(J.id),Se(J.providerId),CL(e.dataDir,{providerId:J.providerId,model:J.id});let Ke=He.current,St=Jn.current,dt=St?.currentSession;await D.current.save({remember:i(()=>Ke?.client.command("models.remember",{providerId:J.providerId,model:J.id})??Promise.resolve(),"remember"),updateSession:i(async()=>{if(!Ke||!dt)return;let mn=await Ke.client.command("session.updateMeta",{id:dt.id,patch:{model:J.id,provider:J.providerId}});D.current.isQuitting||St?.currentSession?.id===dt.id&&N.current===J.id&&R.current===J.providerId&&(St.setSession(mn),Le(mn))},"updateSession"),onRememberError:i(mn=>{if(D.current.isQuitting)return;let Xo=mn;Yt(Xo?.code==="unknown-command"?C("cli.errorHint.unsupported"):Xo?.message??String(mn))},"onRememberError")}),!D.current.isQuitting&&(Zi(Ke?.client,"cli_model_selected",{via:Ne,searched:je?.searched??!1,scoped:je?.scoped??!1}),Dt(`${It("\u25CF")} ${Vq("app.session.switchedTo",{model:ht(J.id)},ie)} ${ie(`\xB7 ${J.providerLabel}`)}`))},[e.dataDir,Dt,Yt]),qe=(0,et.useCallback)(async J=>{let Ne=await He.current?.client.command("provider.list",void 0).catch(()=>null);Ne&&Nn(Ne);let je=bS(Ne??void 0,{providerId:ee,model:te}),Ke=EL(je,J);if(Ke)return We(Ke,"command");W({query:J})},[Nn,We,te,ee]),lt=(0,et.useCallback)(async(J,Ne)=>{let je=new AbortController;xe.current=je;let Ke=Ne??"";Ne&&Re({sessionId:Ne});try{let St=await J({onReadiness:i(dt=>Dt(mS(dt,void 0).join(`
384
+ `)),"onReadiness"),onProgress:i(dt=>Yt(JQ(ly(dt)).replace(/^\s*⎿\s*/,"")),"onProgress"),onStarted:i(dt=>{Ke=dt.sessionId,Re({sessionId:Ke}),Dt([`${It("\u2713")} ${C("cloud.run.started")}`,` ${Fn(dt.url)}`,ie(` ${dt.model.credential==="pool"?C("cloud.run.modelPlan",{model:dt.model.label??dt.model.model}):C("cloud.run.modelKey",{model:dt.model.label??dt.model.model,provider:dt.model.provider})}`),...dt.branch?[ie(` ${C("cloud.run.workBack",{branch:dt.branch})}`)]:[]].join(`
385
+ `))},"onStarted"),onStatus:i(dt=>{Re(mn=>mn?{...mn,task:dt}:{sessionId:Ke||"",task:dt}),dt.status==="awaiting_user"&&Ke&&Dt(En(C("cloud.follow.needsYou",{url:Ad(Ke)}))),ud.has(dt.status)&&Dt(cy(dt))},"onStatus"),onMessage:i(dt=>Dt(sl(dt.content.trimEnd(),Ee)),"onMessage"),onFinishing:i(()=>Yt(C("cloud.finish.working")),"onFinishing"),onFinished:i(dt=>Dt(eh(dt,Ke).join(`
386
+ `)),"onFinished")},je.signal);Zi(He.current?.client,"cli_cloud_run",{status:St.status,detached:!1,via:"session"}),St.status==="detached"&&!D.current.isQuitting&&Dt(ie(C("cloud.run.detached",{id:St.sessionId})))}catch(St){let dt=St;Dt(`${Bt("\u2715")} ${dt?.code==="NO_CLOUD_MODEL"?C("cloud.noModel"):St instanceof Dc&&St.code!=="error"?C("cloud.blocked",{reason:St.message}):dt?.message??String(St)}`)}finally{xe.current===je&&(xe.current=null),Re(null)}},[Ee,Dt,Yt]),xt=(0,et.useCallback)(async J=>{let Ne=He.current?.client;if(!Ne?.isConnected()){Yt(C("slash.engineNotConnected"));return}try{if(!(await Ne.command("account.state",void 0)).signedIn){Dt(En(C("cloud.signedOut")));return}if(J.trim()){if(xe.current){Yt(C("slash.cloudBusy"));return}let dt=J.trim();Dt(Zm(`/cloud ${dt}`)),lt((mn,Xo)=>cS(Ne,{repoPath:e.repoPath,prompt:dt,model:e.args.model,provider:e.args.provider,accessMode:le,localSessionId:Jn.current?.currentSession?.id,signal:Xo},mn));return}let Ke=await Ne.command("cloud.sessions",void 0);if(!Ke.ok){Dt(`${Bt("\u2715")} ${Ke.error}`);return}let St=Ke.data.sessions.filter(dt=>!dt.archived);if(!St.length){Dt(ie(C("cloud.list.empty")));return}at(St)}catch(je){let Ke=je;Yt(Ke?.code==="unknown-command"?C("cloud.olderEngine"):Ke?.message??String(je))}},[lt,le,Dt,Yt,e.repoPath]),nn=(0,et.useCallback)(async J=>{at(null);let Ne=He.current?.client;if(!Ne)return;let je=await Ne.command("cloud.get",{id:J.id}).catch(()=>null);if(!je?.ok){Dt(`${Bt("\u2715")} ${je?.error??C("cloud.open.notFound",{id:J.id})}`);return}for(let St of hS(je.data,Ee))Dt(St);let Ke=je.data.task??je.data.session.task;Ke&&!ud.has(Ke.status)&&!xe.current&&lt((St,dt)=>iy(Ne,J.id,St,dt),J.id)},[He,Ee,lt,Dt]),_n=(0,et.useCallback)((J,Ne)=>OL(J,Ne,{running:P,mode:le,model:te,providerId:R.current??ee??Jn.current?.currentSession?.provider,harness:ut,engine:ao,repoPath:e.repoPath,branch:Ir,conn:He.current,driver:Jn.current,push:Dt,showToast:Yt,quit:T,startNewSession:V,openSessionsPicker:Be,openCloud:xt,openAuth:i(()=>Ze(!0),"openAuth"),openConnectors:i(()=>Hn(!0),"openConnectors"),openAccount:i(()=>Ro(!0),"openAccount"),openAnalytics:Oe,openModelPicker:i(je=>W({query:je}),"openModelPicker"),chooseModel:qe,openLanguagePicker:i(()=>wo(!0),"openLanguagePicker"),setInterfaceLanguage:Tr,applyMode:no,cycleMode:lr,selectHarness:Mn,setSession:Le}),[P,te,ee,ut,le,ao,e.repoPath,Ir,Oe,qe,Tr,xt]),Mn=(0,et.useCallback)(async J=>{let Ne=Jn.current,je=Ne?.currentSession;if(je&&je.harness!==J){let Ke=He.current;if(!Ke?.client.isConnected())throw new Error(C("app.toast.notConnected"));let St=await Ke.client.command("session.updateMeta",{id:je.id,patch:{harness:J,harnessEpochId:e4()}});Ne.setSession(St),Le(St)}else je||(b.current=J);pt(J)},[]),no=(0,et.useCallback)(J=>{ue(J),Yt(C("app.toast.accessMode",{mode:J}));let Ne=r.current;Ne&&He.current?.client.command("run.setAccessMode",{id:Ne.runId,mode:J}).catch(()=>{});let je=Jn.current?.currentSession;je&&He.current?.client.command("session.updateMeta",{id:je.id,patch:{accessMode:J}}).then(Ke=>Le(Ke)).catch(()=>{})},[Yt]),lr=(0,et.useCallback)(()=>{let J=Ol.indexOf(le);no(Ol[(J+1)%Ol.length])},[no,le]),Hi=(0,et.useCallback)((J,Ne)=>{let je=J.trim();if(!je)return;let Ke=QS(je);if(Ke){_n(Ke.command,Ke.arg);return}let St=Ne?.trim()&&Ne.trim()!==je?Ne.trim():void 0;if(G(je),ao.phase==="failed"){Bi({phase:"connecting",spawned:!1}),oa().then(()=>Br(je,{display:St})).catch(dt=>Bi({phase:"failed",spawned:!1,message:dt instanceof Error?dt.message:String(dt)}));return}if(P&&r.current){let dt=r.current;He.current?.client.command("run.steer",{id:dt.runId,text:je}).catch(()=>{});let mn=Jn.current?.currentSession;mn&&He.current?.client.command("session.appendMessage",{id:mn.id,message:{id:crypto.randomUUID(),role:"user",content:je,createdAt:Date.now(),steered:!0}}).catch(()=>{}),Dt(dU(St??je));return}Br(je,{display:St})},[oa,ao.phase,_n,Dt,P,Br]),Mo=ku[po%ku.length],Vo=Ba.filter(J=>!J.owner),cr=P?`${Kt(Mo)} ${Zs(C("app.run.working"))} ${ie(`${xc(Xe)}${w?` \xB7 ${C("app.run.tokens",{tokens:Uu(w)})}`:""} \xB7 ${C("app.run.escToInterrupt")}`)}`:"",ra=_S(ao),ki=hw(ao),kn=ne?"permission":Te?"question":Qt&&!P?"plan":bt?"consent":he?"auth":Je?"models":gt?"picker":_e?"cloud":Qn?"account":Gt?"connectors":qr?"language":"composer",ia=kn==="models"||kn==="picker"||kn==="cloud"||kn==="auth"||kn==="account"||kn==="connectors"||kn==="consent"||kn==="language",zl=ee?tt?.providers.find(J=>J.id===ee):void 0,Yu=ee?zl?.label??ee:void 0,Ed=Xq(ze,te?zl?.modelMeta?.[te]?.context??HG(te):void 0),aa=(0,et.useMemo)(()=>({providerId:ee??null,model:te??null}),[ee,te]),qu=k.length===0&&!P&&kn==="composer"&&ao.phase!=="failed"&&!ri,vi=Math.max(0,Math.floor(($-Ee)/2)),Cs=[C("app.welcome.workspace"),C("app.welcome.runtime"),C("app.welcome.start")],Kl=Math.max(...Cs.map(J=>Ot(J)))+2,vr=i(J=>` ${ie(J)}${" ".repeat(Kl-Ot(J))}`,"bannerLabel"),Za=Math.max(12,Ee-Kl-5),Yl=Ir?` \xB7 ${Ir}`:"",ql=Ru(`${aS(e.repoPath,Math.max(8,Za-Yl.length))}${Yl}`,Za),Cd=Vi.id==="production"?"":` ${En(`${Vi.label.toUpperCase()} \xB7 ${om(Vi.apiBaseUrl)}`)}`,Pu=ki==="desktop"?C("app.welcome.runtimeDesktop"):ki==="background"?C("app.welcome.runtimeBackground"):ra,sg=[`${Kt(Pa)} ${ht("More AI Code")} ${ie(`v${ti}`)}${Cd}`,`${vr(Cs[0])}${ql}`,`${vr(Cs[1])}${Ru(Pu,Za)}`,`${vr(Cs[2])}${ie(Ee<66?C("app.welcome.startShort"):C("app.welcome.startLong"))}`].join(`
387
+ `);return(0,Cn.jsx)(Rt,{flexDirection:"column",...qu?{height:Math.max(1,Qe-1),justifyContent:"center"}:{},paddingLeft:vi,children:(0,Cn.jsxs)(Rt,{flexDirection:"column",width:Ee,children:[qu?(0,Cn.jsx)(Rt,{flexDirection:"column",marginBottom:1,children:(0,Cn.jsx)(O,{children:sg})}):null,(0,Cn.jsx)(JC,{items:k,children:J=>(0,Cn.jsx)(Rt,{flexDirection:"column",marginBottom:1,paddingLeft:vi,width:vi+Ee,children:(0,Cn.jsx)(O,{children:J.text})},J.id)},Ce),ao.phase==="connecting"?(0,Cn.jsx)(O,{dimColor:!0,children:`${Mo} ${C("app.engine.connectingLine")}`}):null,ao.phase==="reconnecting"?(0,Cn.jsx)(O,{color:"yellow",children:`${Mo} ${C("app.engine.reconnectingLine")}`}):null,ao.phase==="failed"?(0,Cn.jsxs)(Rt,{flexDirection:"column",children:[(0,Cn.jsxs)(O,{color:"red",children:["\u2715 ",ao.message??C("app.engine.unreachable")]}),(0,Cn.jsx)(O,{dimColor:!0,children:C("app.engine.retryHint")})]}):null,ta&&P?(0,Cn.jsxs)(O,{dimColor:!0,italic:!0,children:[Pa," ",ta]}):null,ri?(0,Cn.jsx)(O,{children:sl(ri,Ee)}):null,Sa.length?(0,Cn.jsx)(O,{children:ih(Sa,{width:Ee,live:!0})}):null,na.map(J=>{let Ne=Gu.has(J.name)?Ba.filter(je=>je.owner===J.id):[];return(0,Cn.jsxs)(Rt,{flexDirection:"column",children:[Ne.length?(0,Cn.jsx)(O,{children:Tc(Ne,{width:Ee,label:J.label,frame:Mo,state:"running"})}):(0,Cn.jsx)(O,{children:wc("running",J.label,J.detail)}),J.output&&!Ne.length?(0,Cn.jsx)(O,{children:AU(J.output)}):null]},J.id)}),Vo.length?(0,Cn.jsx)(O,{children:Tc(Vo,{width:Ee,frame:Mo,state:"running"})}):null,nt.length&&P?(0,Cn.jsx)(O,{children:Xm(nt)}):null,cr?(0,Cn.jsx)(O,{children:cr}):null,xo&&Mt?.task?(0,Cn.jsx)(O,{wrap:"truncate",children:$m(Mt.task,Mo)}):null,kn==="permission"&&ne?(0,Cn.jsx)(BG,{permission:ne,onDecide:J=>{if(ao.phase!=="ready"||!He.current?.client.isConnected()||!r.current)return Yt(C("app.toast.engineDisconnected")),!1;r.current.respondPermission(ne.id,J),Dt(n4(J!=="reject",ne.title)),se(null)}}):null,kn==="question"&&Te?(0,Cn.jsx)(vG,{question:Te,onAnswer:J=>{if(ao.phase!=="ready"||!He.current?.client.isConnected()||!r.current)return Yt(C("app.toast.engineDisconnected")),!1;r.current.respondQuestion(Te.id,J),At(null)}}):null,kn==="plan"&&Qt?(0,Cn.jsx)(UG,{plan:Qt,onBuild:()=>{let J=Qt;Lt(null),Br("Implement the approved plan.",{phase:"build",plan:J,echo:!0,display:C("app.run.buildPlan")})},onDismiss:()=>Lt(null)}):null,kn==="consent"&&bt?(0,Cn.jsx)(JG,{initial:bt.initial,firstRun:bt.firstRun,onChoose:J=>ve(J),onCancel:()=>ve(null)}):null,kn==="models"&&Je&&He.current?(0,Cn.jsx)(YG,{client:He.current.client,dataDir:e.dataDir,current:aa,initialQuery:Je.query,initialScope:Je.scope,revision:Pe,width:Ee,terminalRows:Qe,onPick:J=>{We(J,"picker",{searched:!!Je.query,scoped:!!Je.scope})},onClose:()=>W(null),onConnect:()=>{W(null),Ze(!0)}}):null,kn==="picker"&&gt?(0,Cn.jsx)(EU,{sessions:gt,repoPath:e.repoPath,currentId:ge?.id,width:Ee,terminalRows:Qe,onPick:J=>{if(Be(null),J.repoPath&&J.repoPath!==e.repoPath){Dt(`${Kt(Pa)} ${ht(J.title)} ${ie(C("app.session.worksIn",{path:J.repoPath}))}
388
+ ${ie(C("app.session.openWith"))} ${yS(J.id,J.repoPath)}`);return}ye(J)},onCancel:()=>Be(null)}):null,kn==="cloud"&&_e?(0,Cn.jsx)(FG,{sessions:_e,width:Ee,terminalRows:Qe,onPick:J=>{nn(J)},onCancel:()=>at(null)}):null,kn==="auth"&&He.current?(0,Cn.jsx)(CR,{client:He.current.client,spawned:ao.spawned,terminalRows:Qe,onClose:(J,Ne)=>{Ze(!1);let je=v.current;v.current=null;let Ke=i(dt=>{ar(dt),dt?(Ne&&Yt(C("app.toast.providerConnected")),je?Br(je):Ne&&W({scope:Ne})):je&&Dt(ie(C("app.firstRun.noProvider")))},"finish"),St=He.current?.client;St?St.command("provider.list",void 0).then(dt=>{Nn(dt);let mn=dt.providers.some(Xo=>Xo.connected);if(mn&&!N.current&&!Jn.current?.currentSession){let Xo=ng(dt,void 0,e.args.provider,Fu(e.dataDir)[0]);Xo.model&&re(Xo.model),Se(Xo.providerId)}Ke(mn)}).catch(()=>Ke(J)):Ke(J)}}):null,kn==="account"&&He.current?(0,Cn.jsx)($C,{client:He.current.client,onClose:J=>{Ro(!1);let Ne=i((Ke,St)=>{Tn(Ke),Ke&&Dt(`${It("\u25CF")} ${St?C("app.account.signedIn",{email:ht(St)}):C("auth.account.connected")}
389
+ ${ie(C("app.account.next"))}`)},"finish"),je=He.current?.client;je?je.command("account.state",void 0).then(Ke=>Ne(Ke.signedIn,Ke.user?.email)).catch(()=>Ne(J)):Ne(J)}}):null,kn==="connectors"&&He.current?(0,Cn.jsx)(wR,{client:He.current.client,width:Ee,terminalRows:Qe,onClose:()=>Hn(!1),onSignedIn:()=>Tn(!0)}):null,kn==="language"?(0,Cn.jsx)(VG,{chosen:ir,detected:mB(Iu({dataDir:e.dataDir})),width:Ee,terminalRows:Qe,onPick:Tr,onClose:()=>wo(!1)}):null,(0,Cn.jsx)(CG,{active:!sn&&kn==="composer"&&ao.phase!=="connecting",hidden:ia,running:P,historyEntries:c.current.all(),width:Ee,terminalRows:Qe,onSubmit:Hi,onStash:G,onModeCycle:lr,onAbort:()=>r.current?.abort(),onExit:T,onCtrlCArm:J=>{wt(J),J&&setTimeout(()=>wt(!1),1800)},ctrlCArmed:ft,mode:le,voice:Mi}),it?(0,Cn.jsx)(O,{color:"yellow",children:it}):null,ft?(0,Cn.jsx)(O,{dimColor:!0,children:C("app.ctrlCAgain")}):null,(0,Cn.jsx)(WG,{mode:le,model:te,providerLabel:Yu,branch:Ir,engineLabel:ra,sessionTitle:ge?.title,providerConnected:uo,accountSignedIn:Ia,contextLeft:Ed})]})})}var et,Cn,n4,r4=L(async()=>{"use strict";et=Ue(Nt(),1);await Cr();Ea();dw();fB();tw();ew();bL();wL();nw();Mf();_f();ob();Bo();al();Wm();tg();TS();GB();mw();fy();HL();Ew();UL();await yG();await SG();await QG();await lS();await RG();OG();kG();await LG();await zG();uS();ES();await qG();RS();PG();await yR();await xR();await tS();await jG();await XG();Vt();Ou();await $G();rw();Cn=Ue(Sn(),1);i(Vq,"paintedMessage");i(t4,"lastContextOf");i(Xq,"contextLeftPercent");n4=i((e,o)=>ie(e?`${It("\u2714")} ${C("app.decision.allowed")}: ${o}`:`${Bt("\u2715")} ${C("app.decision.denied")}: ${o}`),"decisionLine");i(o4,"App")});import Zq from"node:fs";function tP(e){return!!e&&typeof e=="object"&&e.kind==="user"}function nP(e=process.env){let o=e.MOREAI_KEEP_SCREEN;return o&&o!=="0"&&o.toLowerCase()!=="false"?!1:e.TERM!=="dumb"}function oP(e){if(!e.session)return"";let o=Ru(e.session.title.replace(/\s+/g," ").trim(),eP),r=ht(`moreai --session ${e.session.id}`);return`${Kt("\u2733")} ${C("app.exit.resume",{title:o,command:r})}
390
+ `}function Ow(e){if(e)try{Zq.writeSync(1,e)}catch{}}function a4(){Ow(Wq+i4),process.once("exit",()=>Ow($q))}function s4(e){tP(e)&&Ow((nP()?i4:"")+oP(e))}var i4,Wq,$q,eP,l4=L(()=>{"use strict";Bo();Vt();i4="\x1B[2J\x1B[H",Wq="\x1B[22;0t",$q="\x1B[23;0t",eP=48;i(tP,"isUserExit");i(nP,"clearsScreenOnExit");i(oP,"exitReceipt");i(Ow,"writeNow");i(a4,"beginTerminalSession");i(s4,"endTerminalSession")});var c4={};mi(c4,{runTui:()=>rP});async function rP(e,o,r,c){a4(),YA(Nf(Iu({dataDir:r})).id);let u=J0((0,u4.jsx)(o4,{args:e,repoPath:o,dataDir:r,initialTask:c}),{exitOnCtrlC:!1});s4(await u.waitUntilExit())}var u4,A4=L(async()=>{"use strict";await Cr();await r4();Vt();l4();u4=Ue(Sn(),1);i(rP,"runTui")});fQ();Mf();im();JE();Vt();SQ();import iP from"node:path";async function aP(){let e=[];for await(let o of process.stdin)e.push(o);return Buffer.concat(e).toString("utf8").trim()}i(aP,"readStdin");async function ea(e){let o=i(r=>new Promise(c=>{if(r.destroyed||!r.writable)return c();try{r.write("",()=>c())}catch{c()}}),"flush");return await Promise.all([o(process.stdout),o(process.stderr)]),process.exit(e)}i(ea,"exitWithStatus");async function sP(){dT();let e=AQ(process.argv.slice(2));e.lang&&(process.env.MOREAI_LANG=e.lang),YA(Nf(Iu()).id);let{args:o,error:r}=PE(e.argv);if(r||!o)return console.error(`moreai: ${r}`),console.error(C("cli.main.tryHelp")),ea(2);switch(o.command){case"version":console.log(ti);return;case"help":console.log(tT());return;case"doctor":{let{runDoctor:E}=await Promise.resolve().then(()=>(W_(),Z_));await ea(await E());return}case"update":{let{runUpdate:E}=await Promise.resolve().then(()=>(ob(),e2));await ea(await E(o.updateInstall));return}default:break}if(o.command==="auth"){let{runAuth:E}=await Promise.resolve().then(()=>(BR(),Mk));await ea(await E(o));return}if(o.command==="connectors"){let{runConnectors:E}=await Promise.resolve().then(()=>(DR(),Kk));await ea(await E(o));return}if(o.command==="login"||o.command==="logout"||o.command==="account"){let{runAccountCommand:E}=await Promise.resolve().then(()=>(MR(),jk));await ea(await E(o));return}if(o.command==="setup"){let{runSetup:E}=await Promise.resolve().then(()=>(rU(),oU));await ea(await E());return}if(o.command==="analytics"){let{runAnalytics:E}=await Promise.resolve().then(()=>(aU(),iU));await ea(await E(o.task));return}if(o.command==="browser"){let{runBrowser:E}=await Promise.resolve().then(()=>(cU(),lU));await ea(await E(o.task));return}let c=iP.resolve(o.cwd??process.cwd());if(o.command==="cloud"){let{runCloud:E}=await FU().then(()=>GU);await ea(await E(o,c));return}if(o.command==="sessions"){let{runSessions:E}=await Promise.resolve().then(()=>(KU(),zU));await ea(await E(c));return}let u=o.task;if(!process.stdin.isTTY){let E=await aP();E&&(u=u?`${u}
391
+
392
+ ${E}`:E),u&&(o.print=!0)}if(o.print){if(!u)return console.error(`moreai: ${C("cli.main.printNeedsTask")}`),ea(2);let{runPrint:E}=await Promise.resolve().then(()=>(BL(),IL));await ea(await E(o,c,u));return}if(!process.stdin.isTTY||!process.stdout.isTTY)return console.error(`moreai: ${C("cli.main.needsTerminal")}`),ea(2);let{runTui:f}=await A4().then(()=>c4),m=await KA(async E=>!!await Js(E));await f(o,c,m,u),await ea(0)}i(sP,"main");sP().catch(async e=>{console.error(`moreai: ${e instanceof Error?e.message:e}`),await ea(1)});
393
+ /*! Bundled license information:
394
+
395
+ react/cjs/react-jsx-runtime.production.js:
396
+ (**
397
+ * @license React
398
+ * react-jsx-runtime.production.js
399
+ *
400
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
401
+ *
402
+ * This source code is licensed under the MIT license found in the
403
+ * LICENSE file in the root directory of this source tree.
404
+ *)
405
+
406
+ react/cjs/react.production.js:
407
+ (**
408
+ * @license React
409
+ * react.production.js
410
+ *
411
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
412
+ *
413
+ * This source code is licensed under the MIT license found in the
414
+ * LICENSE file in the root directory of this source tree.
415
+ *)
416
+
417
+ react/cjs/react.development.js:
418
+ (**
419
+ * @license React
420
+ * react.development.js
421
+ *
422
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
423
+ *
424
+ * This source code is licensed under the MIT license found in the
425
+ * LICENSE file in the root directory of this source tree.
426
+ *)
427
+
428
+ react/cjs/react-jsx-runtime.development.js:
429
+ (**
430
+ * @license React
431
+ * react-jsx-runtime.development.js
432
+ *
433
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
434
+ *
435
+ * This source code is licensed under the MIT license found in the
436
+ * LICENSE file in the root directory of this source tree.
437
+ *)
438
+
439
+ react-reconciler/cjs/react-reconciler-constants.production.js:
440
+ (**
441
+ * @license React
442
+ * react-reconciler-constants.production.js
443
+ *
444
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
445
+ *
446
+ * This source code is licensed under the MIT license found in the
447
+ * LICENSE file in the root directory of this source tree.
448
+ *)
449
+
450
+ react-reconciler/cjs/react-reconciler-constants.development.js:
451
+ (**
452
+ * @license React
453
+ * react-reconciler-constants.development.js
454
+ *
455
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
456
+ *
457
+ * This source code is licensed under the MIT license found in the
458
+ * LICENSE file in the root directory of this source tree.
459
+ *)
460
+
461
+ scheduler/cjs/scheduler.production.js:
462
+ (**
463
+ * @license React
464
+ * scheduler.production.js
465
+ *
466
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
467
+ *
468
+ * This source code is licensed under the MIT license found in the
469
+ * LICENSE file in the root directory of this source tree.
470
+ *)
471
+
472
+ scheduler/cjs/scheduler.development.js:
473
+ (**
474
+ * @license React
475
+ * scheduler.development.js
476
+ *
477
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
478
+ *
479
+ * This source code is licensed under the MIT license found in the
480
+ * LICENSE file in the root directory of this source tree.
481
+ *)
482
+
483
+ react-reconciler/cjs/react-reconciler.production.js:
484
+ (**
485
+ * @license React
486
+ * react-reconciler.production.js
487
+ *
488
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
489
+ *
490
+ * This source code is licensed under the MIT license found in the
491
+ * LICENSE file in the root directory of this source tree.
492
+ *)
493
+
494
+ react-reconciler/cjs/react-reconciler.development.js:
495
+ (**
496
+ * @license React
497
+ * react-reconciler.development.js
498
+ *
499
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
500
+ *
501
+ * This source code is licensed under the MIT license found in the
502
+ * LICENSE file in the root directory of this source tree.
503
+ *)
504
+ */