rnxsim 0.1.371 → 0.1.372
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.
- package/cli/bin.ts +2 -2
- package/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-W2D2V7WF.js → agent-RTAKJ5UM.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-GVNM2Z4S.js → agent-wrapper-JWRDI26D.js} +2 -2
- package/dist-cli/chunks/{app-fonts-J6R4TTXD.js → app-fonts-RKO3N4PB.js} +2 -2
- package/dist-cli/chunks/{assert-YN6U4ZTB.js → assert-Y5LXPWC6.js} +2 -2
- package/dist-cli/chunks/{auth-XGYZAK2P.js → auth-4SPTRWTM.js} +2 -2
- package/dist-cli/chunks/{beta-WRDMHHWJ.js → beta-KYS22QPY.js} +2 -2
- package/dist-cli/chunks/{box-ML5TFUQW.js → box-7CK72ZPF.js} +2 -2
- package/dist-cli/chunks/{camera-OBEI4FZA.js → camera-RUL426MQ.js} +2 -2
- package/dist-cli/chunks/{chunk-IYU2EOIU.js → chunk-2MA3Q44D.js} +1 -1
- package/dist-cli/chunks/{chunk-7TWD4P6J.js → chunk-2OA2WE7G.js} +2 -2
- package/dist-cli/chunks/{chunk-42YOIDLR.js → chunk-3C6LTIDV.js} +2 -2
- package/dist-cli/chunks/{chunk-2W4YBCPX.js → chunk-4UMODU6C.js} +2 -2
- package/dist-cli/chunks/{chunk-2FIT64GR.js → chunk-5Q6ZEZFF.js} +1 -1
- package/dist-cli/chunks/{chunk-RYJTPZCX.js → chunk-7FYOZQBM.js} +1 -1
- package/dist-cli/chunks/{chunk-PTWMX4AA.js → chunk-BRRWRBW7.js} +2 -2
- package/dist-cli/chunks/{chunk-IPNDXGVA.js → chunk-CEQXZ3GA.js} +2 -2
- package/dist-cli/chunks/{chunk-WCB5XPCH.js → chunk-CZ2FOZVC.js} +2 -2
- package/dist-cli/chunks/{chunk-AGZZWLEL.js → chunk-D5AT7UT5.js} +2 -2
- package/dist-cli/chunks/{chunk-KL34TRNW.js → chunk-DQOQQFMP.js} +1 -1
- package/dist-cli/chunks/{chunk-NQ4CI2VI.js → chunk-EKSSAC4L.js} +1 -1
- package/dist-cli/chunks/{chunk-SHLJYXIN.js → chunk-EY5OHL2M.js} +1 -1
- package/dist-cli/chunks/{chunk-TWNLRDIH.js → chunk-FOW2LPM7.js} +2 -2
- package/dist-cli/chunks/{chunk-WHZE63R2.js → chunk-G5G7PQKO.js} +2 -2
- package/dist-cli/chunks/{chunk-B26ZJUQA.js → chunk-GPYG2L7R.js} +2 -2
- package/dist-cli/chunks/{chunk-DYFOLOYL.js → chunk-H2SKPUSI.js} +2 -2
- package/dist-cli/chunks/{chunk-6AZKZ5AJ.js → chunk-H567W7JT.js} +2 -2
- package/dist-cli/chunks/{chunk-2LH4DYPM.js → chunk-HDGZAVH3.js} +2 -2
- package/dist-cli/chunks/{chunk-BNS5LNEU.js → chunk-I37LRPZ3.js} +1 -1
- package/dist-cli/chunks/{chunk-OF3U4SZO.js → chunk-I7LRVN5M.js} +2 -2
- package/dist-cli/chunks/{chunk-AVIH3TAZ.js → chunk-IX25FFF3.js} +2 -2
- package/dist-cli/chunks/{chunk-47MSXLWK.js → chunk-J2TJRPDB.js} +2 -2
- package/dist-cli/chunks/{chunk-KHGXEU4L.js → chunk-JPRHJMUJ.js} +1 -1
- package/dist-cli/chunks/{chunk-JKRMBNPO.js → chunk-K4TGUDY4.js} +2 -2
- package/dist-cli/chunks/{chunk-HFY35VAG.js → chunk-KSE5XGYU.js} +2 -2
- package/dist-cli/chunks/{chunk-WLRIPAGJ.js → chunk-KVVNCIJA.js} +1 -1
- package/dist-cli/chunks/{chunk-UHYAY3RU.js → chunk-KWLUOLYQ.js} +2 -2
- package/dist-cli/chunks/{chunk-UPMR6Y5P.js → chunk-KXAE64HF.js} +2 -2
- package/dist-cli/chunks/{chunk-ADJSGO55.js → chunk-L5BEWXQZ.js} +2 -2
- package/dist-cli/chunks/{chunk-VEFSHPSU.js → chunk-LAQKTHRM.js} +2 -2
- package/dist-cli/chunks/{chunk-S3AH2O67.js → chunk-LWLHVF6Y.js} +1 -1
- package/dist-cli/chunks/{chunk-ESWSXF55.js → chunk-MKHW3JNL.js} +2 -2
- package/dist-cli/chunks/{chunk-OQPZOEEP.js → chunk-MSM2E74F.js} +1 -1
- package/dist-cli/chunks/{chunk-GQGS7TRK.js → chunk-NBEOA72C.js} +1 -1
- package/dist-cli/chunks/{chunk-2QW3JH6T.js → chunk-NLMDMNO6.js} +2 -2
- package/dist-cli/chunks/{chunk-SH2HXHR2.js → chunk-NT43X5LI.js} +2 -2
- package/dist-cli/chunks/{chunk-HV3WOWQM.js → chunk-NWPYM54M.js} +1 -1
- package/dist-cli/chunks/{chunk-HZ365EMS.js → chunk-OLHHB6LD.js} +2 -2
- package/dist-cli/chunks/{chunk-IX7Z6ZVJ.js → chunk-P6K6XFWE.js} +2 -2
- package/dist-cli/chunks/{chunk-7Q4WHJDH.js → chunk-PETP6LVI.js} +1 -1
- package/dist-cli/chunks/{chunk-JUTLQ3GX.js → chunk-PKY76S57.js} +1 -1
- package/dist-cli/chunks/{chunk-Z6CQDU74.js → chunk-POR7R3TP.js} +1 -1
- package/dist-cli/chunks/{chunk-LFANRLWK.js → chunk-PUH6RQBJ.js} +2 -2
- package/dist-cli/chunks/{chunk-7YB46LGI.js → chunk-Q5WPPOFV.js} +1 -1
- package/dist-cli/chunks/{chunk-J6A5W2DI.js → chunk-Q7JSU5DI.js} +3 -3
- package/dist-cli/chunks/{chunk-Y7SKGRAV.js → chunk-QA2PTSOC.js} +1 -1
- package/dist-cli/chunks/{chunk-MOIQZVRU.js → chunk-R7HMFLXI.js} +2 -2
- package/dist-cli/chunks/{chunk-CJQXP4XM.js → chunk-RXKZJAGY.js} +1 -1
- package/dist-cli/chunks/{chunk-FLNGSIBL.js → chunk-SC7PGULZ.js} +2 -2
- package/dist-cli/chunks/{chunk-6FPXLSBJ.js → chunk-SLTEYNAE.js} +1 -1
- package/dist-cli/chunks/{chunk-4OLUFHEZ.js → chunk-SSQCKJQZ.js} +2 -2
- package/dist-cli/chunks/{chunk-5PPVVGLH.js → chunk-SZX6ARJX.js} +3 -3
- package/dist-cli/chunks/{chunk-DP6RGTNN.js → chunk-U3XYGLXG.js} +2 -2
- package/dist-cli/chunks/chunk-UA5WQCBU.js +7 -0
- package/dist-cli/chunks/{chunk-7ASCDKA3.js → chunk-UVKX6FQ4.js} +1 -1
- package/dist-cli/chunks/{chunk-TL22EBF5.js → chunk-VQQXUXXF.js} +2 -2
- package/dist-cli/chunks/{chunk-OF5OBB67.js → chunk-WR7LRCYW.js} +1 -1
- package/dist-cli/chunks/{chunk-MW4E5EED.js → chunk-XA4YU3A4.js} +3 -3
- package/dist-cli/chunks/{chunk-H4DU457S.js → chunk-YEGWC2OY.js} +1 -1
- package/dist-cli/chunks/{chunk-ERBGQEJ5.js → chunk-YWTBN7SD.js} +1 -1
- package/dist-cli/chunks/{chunk-763GBI7G.js → chunk-ZRQKEKHX.js} +2 -2
- package/dist-cli/chunks/{chunk-OWDJQWJ7.js → chunk-ZTZTRD5R.js} +1 -1
- package/dist-cli/chunks/{cleanup-PTJBMC34.js → cleanup-7ATBNZHC.js} +2 -2
- package/dist-cli/chunks/cli-version-D2IDQO7X.js +4 -0
- package/dist-cli/chunks/{compat-FJ2HWRAG.js → compat-4ZC6ZMMA.js} +2 -2
- package/dist-cli/chunks/{config-PYGH7JPN.js → config-EOBODQ32.js} +2 -2
- package/dist-cli/chunks/{connect-AJV4PZA4.js → connect-ZQ72CZ7O.js} +2 -2
- package/dist-cli/chunks/control-FKPKLOE2.js +4 -0
- package/dist-cli/chunks/daemon-WFHWS3JU.js +4 -0
- package/dist-cli/chunks/{debug-XF2XUDHN.js → debug-7Z325GNU.js} +3 -3
- package/dist-cli/chunks/{desktop-HEZYNFYW.js → desktop-CR7ALX7H.js} +3 -3
- package/dist-cli/chunks/{detox-JCFZJRNE.js → detox-RZ37736M.js} +2 -2
- package/dist-cli/chunks/{device-KGUVZHFW.js → device-TA3SQP6K.js} +2 -2
- package/dist-cli/chunks/{diagnose-KVJQ3TOI.js → diagnose-JFKFKR3S.js} +2 -2
- package/dist-cli/chunks/disk-cleanup-HZM7VM4S.js +4 -0
- package/dist-cli/chunks/{do-chain-3FYJNA2N.js → do-chain-MTT65YNX.js} +2 -2
- package/dist-cli/chunks/drivers-BXEXWRVJ.js +4 -0
- package/dist-cli/chunks/{env-BX6S2SOM.js → env-SFI24PLS.js} +2 -2
- package/dist-cli/chunks/{film-2WZUVYFA.js → film-GPHSJLIH.js} +3 -3
- package/dist-cli/chunks/flow-FBCU3TZN.js +4 -0
- package/dist-cli/chunks/help-6MLROWYO.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-PGF55OFH.js → hidden-runtime-alias-7Z6PYH53.js} +2 -2
- package/dist-cli/chunks/{home-paths-EGRMTSGE.js → home-paths-MEGVA6ET.js} +2 -2
- package/dist-cli/chunks/inspect-EWT5SXBD.js +4 -0
- package/dist-cli/chunks/install-desktop-IFBUH7MH.js +4 -0
- package/dist-cli/chunks/{login-HRFPYPZ3.js → login-EHUZYRAM.js} +2 -2
- package/dist-cli/chunks/{logout-LRH5HZGP.js → logout-WPGT62N6.js} +2 -2
- package/dist-cli/chunks/{maestro-S53T4PPE.js → maestro-4HVDLCTI.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-YKIVKOB3.js → maestro-generate-VBS2EZMM.js} +3 -3
- package/dist-cli/chunks/{mode-47JKNUNS.js → mode-MGTS4QTF.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-ARZSPS5Y.js → optional-demo-registry-F3FQT5WT.js} +2 -2
- package/dist-cli/chunks/{perf-J73OKB4T.js → perf-47R3OEI7.js} +2 -2
- package/dist-cli/chunks/{permissions-L3FPI56H.js → permissions-ZOLFZWR2.js} +2 -2
- package/dist-cli/chunks/{platform-YAROAHRM.js → platform-C4E26ZBZ.js} +3 -3
- package/dist-cli/chunks/privacy-WXGGG4ZI.js +4 -0
- package/dist-cli/chunks/{record-QAQMGYOO.js → record-OUXWCWUF.js} +3 -3
- package/dist-cli/chunks/{report-issue-4FVZCAFQ.js → report-issue-LJJXONXQ.js} +2 -2
- package/dist-cli/chunks/reset-ZZYLPETS.js +4 -0
- package/dist-cli/chunks/resolve-target-MVZZR2JW.js +4 -0
- package/dist-cli/chunks/runtime-DEC5AF3M.js +4 -0
- package/dist-cli/chunks/{screenshot-command-Q5MGGEWY.js → screenshot-command-CUHDOS5D.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-4JW7DRL7.js → screenshot-layers-DVWQVKT6.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-X5PMO44E.js → screenshots-capture-GWIUJ3A6.js} +2 -2
- package/dist-cli/chunks/{serve-3JWJ45J3.js → serve-TX5OKGJM.js} +2 -2
- package/dist-cli/chunks/setup-X7LLGW67.js +4 -0
- package/dist-cli/chunks/{sim-client-RL6DGOJE.js → sim-client-W4WZOZ3P.js} +2 -2
- package/dist-cli/chunks/{skills-QNO6GDJB.js → skills-TDFQAZ6A.js} +2 -2
- package/dist-cli/chunks/{state-OGUCSUC3.js → state-P2Z25OLQ.js} +2 -2
- package/dist-cli/chunks/{storage-TG7KFQZ3.js → storage-DWEOFXEB.js} +2 -2
- package/dist-cli/chunks/store-TKBLMYCV.js +4 -0
- package/dist-cli/chunks/telemetry-E3CBKJMD.js +4 -0
- package/dist-cli/chunks/{timeline-R4G5P335.js → timeline-55XNA4GX.js} +2 -2
- package/dist-cli/chunks/{upgrade-RDTXJ6O3.js → upgrade-3XRCVDVC.js} +2 -2
- package/dist-cli/chunks/upload-QB77GSMQ.js +4 -0
- package/dist-cli/chunks/{version-GU2NUZDS.js → version-WTYGLXBJ.js} +2 -2
- package/dist-cli/chunks/{web-7PUVG3GE.js → web-ZWRY3VHM.js} +2 -2
- package/dist-cli/chunks/welcome-7ATM5EGX.js +5 -0
- package/dist-cli/chunks/{what-happened-OHAAX6F6.js → what-happened-Q3IGIH4K.js} +2 -2
- package/dist-cli/chunks/{ws-bridge-Z3O35MNF.js → ws-bridge-KCPZSBBX.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/disk-cleanup.ts +44 -0
- package/dist-cli/chunks/chunk-N3LAMTGS.js +0 -6
- package/dist-cli/chunks/cli-version-6ZBD6GKP.js +0 -4
- package/dist-cli/chunks/control-667PAYX4.js +0 -4
- package/dist-cli/chunks/daemon-EIBOHZYQ.js +0 -4
- package/dist-cli/chunks/disk-cleanup-7HQXJFUX.js +0 -4
- package/dist-cli/chunks/drivers-5S6M5TJB.js +0 -4
- package/dist-cli/chunks/flow-6BZSWNHG.js +0 -4
- package/dist-cli/chunks/help-OGJBD4NP.js +0 -4
- package/dist-cli/chunks/inspect-MZVDGAN4.js +0 -4
- package/dist-cli/chunks/install-desktop-QB76DNZF.js +0 -4
- package/dist-cli/chunks/privacy-JZQCXHKN.js +0 -4
- package/dist-cli/chunks/reset-NYFUFZCG.js +0 -4
- package/dist-cli/chunks/resolve-target-SP22ZGFZ.js +0 -4
- package/dist-cli/chunks/runtime-WTS2QMXZ.js +0 -4
- package/dist-cli/chunks/setup-USPDJESI.js +0 -4
- package/dist-cli/chunks/store-ZYMQW2LN.js +0 -4
- package/dist-cli/chunks/telemetry-7CSLUUIW.js +0 -4
- package/dist-cli/chunks/upload-PLF2DPMS.js +0 -4
- package/dist-cli/chunks/welcome-4GGUV7FY.js +0 -5
package/cli/bin.ts
CHANGED
|
@@ -135,8 +135,8 @@ async function scheduleAutomaticCleanup(): Promise<void> {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
try {
|
|
138
|
-
const {
|
|
139
|
-
if (
|
|
138
|
+
const { shouldSkipAutomaticSootsimCleanup } = await import('../src/disk-cleanup')
|
|
139
|
+
if (shouldSkipAutomaticSootsimCleanup()) return
|
|
140
140
|
|
|
141
141
|
const { spawn } = await import('node:child_process')
|
|
142
142
|
const workerArgs = ['cleanup', '--automatic-worker']
|
package/dist-cli/bin.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/*! rnx v0.1.
|
|
2
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
3
3
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
4
4
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
5
|
-
import{a as g,b as f}from"./chunks/chunk-
|
|
5
|
+
import{a as g,b as f}from"./chunks/chunk-PKY76S57.js";import{a as h}from"./chunks/chunk-YWTBN7SD.js";import{a as m}from"./chunks/chunk-MSM2E74F.js";import"./chunks/chunk-WR7LRCYW.js";function k(a){let t=a instanceof Error?a.message:String(a);(/^command timed out after \d+s$/.test(t)||t.startsWith("sim disconnected:")||t.startsWith("bridge never reconnected")||t.startsWith("multiple sims are connected:")||t.startsWith("saved sim ")||t.startsWith("no sim connected with id ")||t.startsWith("could not connect to ws://")||t.startsWith("rnx bridge daemon is not running")||t.startsWith("rnx bridge lockfile is fresh")||t.startsWith("rnx bridge exited before becoming ready")||t.startsWith(`${m.commandName} open: requested bridge port`)||t.startsWith("background daemon setup is unavailable")||t.startsWith("rnx bridge did not start within"))&&!process.env.SOOTSIM_VERBOSE&&(process.stderr.write(` ${t}
|
|
6
6
|
`),process.exit(1)),a instanceof Error&&a.stack?process.stderr.write(`${a.stack}
|
|
7
7
|
`):process.stderr.write(`${t}
|
|
8
8
|
`),process.exit(1)}process.on("unhandledRejection",k);process.on("uncaughtException",k);var v=typeof __SOOTSIM_STANDALONE__<"u"&&__SOOTSIM_STANDALONE__,C=new Set(["desktop"]);function $(a){!v||!C.has(a)||(process.stderr.write(` ${m.commandName} ${a} isn't available in the standalone binary \u2014
|
|
9
9
|
it needs vite / electron / playwright from a project's node_modules.
|
|
10
10
|
run the npm package instead:
|
|
11
11
|
${m.commandName} ${a}
|
|
12
|
-
`),process.exit(1))}var e=f(process.argv);if(!e.command&&e.commandArgs.length>0){let{resolveHiddenRuntimeAlias:a}=await import("./chunks/hidden-runtime-alias-
|
|
13
|
-
`)}var b=!1;async function S(){if(!b&&(b=!0,!(e.command==="cleanup"||e.command==="serve"||e.command==="agent-wrapper"||e.command==="daemon"&&e.commandArgs[0]==="uninstall")))try{let{
|
|
12
|
+
`),process.exit(1))}var e=f(process.argv);if(!e.command&&e.commandArgs.length>0){let{resolveHiddenRuntimeAlias:a}=await import("./chunks/hidden-runtime-alias-7Z6PYH53.js");e=a(e)}var _=e.command==="cleanup"&&e.commandArgs.length===1&&e.commandArgs[0]==="--automatic-worker",x=!e.command&&e.commandArgs.length===0;if(!_&&!x&&!e.help&&!e.version&&e.command!=="config"&&e.command!=="setup"&&e.command!=="telemetry"){let{ensurePrivacyChoice:a}=await import("./chunks/privacy-WXGGG4ZI.js");await a({prompt:!0})}if(e.command!=="serve"&&e.command!=="daemon"){let{consumeRuntimeUpgradeNotice:a}=await import("./chunks/home-paths-MEGVA6ET.js"),t=a();t&&process.stderr.write(` ${m.name} engine upgraded to v${t.to}`+(t.from?` (from v${t.from})`:"")+` \xB7 what's new: ${m.origin}/changelog
|
|
13
|
+
`)}var b=!1;async function S(){if(!b&&(b=!0,!(e.command==="cleanup"||e.command==="serve"||e.command==="agent-wrapper"||e.command==="daemon"&&e.commandArgs[0]==="uninstall")))try{let{shouldSkipAutomaticSootsimCleanup:a}=await import("./chunks/disk-cleanup-HZM7VM4S.js");if(a())return;let{spawn:t}=await import("node:child_process"),r=["cleanup","--automatic-worker"],d=process.argv[1],p=v?t(process.execPath,r,{detached:!0,stdio:["ignore","ignore","inherit"],env:process.env}):d?t(process.execPath,[d,...r],{detached:!0,stdio:["ignore","ignore","inherit"],env:process.env}):t(m.commandName,r,{detached:!0,stdio:["ignore","ignore","inherit"],env:process.env});p.once("error",w=>{process.stderr.write(` ${m.name} automatic cleanup will retry on the next run: ${w.message}
|
|
14
14
|
`)}),p.unref()}catch(a){process.stderr.write(` ${m.name} automatic cleanup will retry on the next run: ${a instanceof Error?a.message:String(a)}
|
|
15
|
-
`)}}async function n(a){let{flushCliTelemetry:t}=await import("./chunks/telemetry-
|
|
15
|
+
`)}}async function n(a){let{flushCliTelemetry:t}=await import("./chunks/telemetry-E3CBKJMD.js");await t(),await S(),process.exit(a)}if(e.version){let{getCliVersion:a}=await import("./chunks/cli-version-D2IDQO7X.js"),{IS_BETA:t,BETA_LABEL:r}=await import("./chunks/beta-KYS22QPY.js"),d=t?` \xB7 ${r}`:"";console.log(`${m.commandName} v${a()}${d}`);let{readActiveRuntime:p}=await import("./chunks/home-paths-MEGVA6ET.js"),w=p();console.log(w?`runtime v${w}`:"runtime not installed"),await n(0)}if(e.help&&!e.command){let{printHelp:a}=await import("./chunks/help-6MLROWYO.js");a(),await n(0)}var o=e.globalFlags.port,c=e.verbose,u=e.globalFlags.device,l=e.globalFlags.theme,E=e.globalFlags.driver,O=e.globalFlags.headless===!0,A=e.globalFlags.sim??e.globalFlags.session??e.globalFlags.tab,i=A?["--sim",A,...e.commandArgs]:e.commandArgs;if(u||l){let{settingsStore:a}=await import("./chunks/store-TKBLMYCV.js"),t={};u&&(t.deviceModel=u),l&&(t.colorScheme=l),a.apply(t)}if(!e.command&&e.commandArgs.length===0){let{runWelcome:a}=await import("./chunks/welcome-7ATM5EGX.js");await n(await a())}var s=e.command??"";if(!s){if(e.commandArgs.length>0){let t=e.commandArgs.find(r=>!r.startsWith("-"))??e.commandArgs[0];console.error(` unknown command: ${t}`),console.error(` run \`${m.commandName} --help\` to see the full surface.`),await n(1)}let{printHelp:a}=await import("./chunks/help-6MLROWYO.js");a(),await n(0)}if(e.help||e.commandArgs.includes("--help")||e.commandArgs.includes("-h")){if(s==="skill"){let{runSkill:r}=await import("./chunks/skills-TDFQAZ6A.js");await r(e.commandArgs),await n(0)}if(s==="state"){let{runState:r}=await import("./chunks/state-P2Z25OLQ.js");await n(await r(i,{port:o}))}if(s==="reset"){let{runReset:r}=await import("./chunks/reset-ZZYLPETS.js");await n(await r(i,{port:o}))}let a=s==="do"||s==="get"||s==="debug"||s==="shell"||s==="perf"||s==="wait",t=e.commandArgs.find(r=>!r.startsWith("-"));if(!(s==="shell"||s==="perf"))if(a&&!t){let{printGroupHelp:r}=await import("./chunks/help-6MLROWYO.js");r(s)&&await n(0)}else{let{printCommandHelp:r}=await import("./chunks/help-6MLROWYO.js");r(a&&t?t:s,{prefer:a&&t?"verb":"command",group:a&&t?s:void 0}),await n(0)}}$(s);try{if(g.has(s)){if(s==="do"){let{hasDoChain:t,runDoChain:r}=await import("./chunks/do-chain-MTT65YNX.js");t(i)&&await n(await r(i,{port:o}))}let{runInspect:a}=await import("./chunks/inspect-EWT5SXBD.js");await a([s,...i],{port:o,verbose:c})}else switch(s){case"assert":{let{runAssert:a}=await import("./chunks/assert-Y5LXPWC6.js");await a(e.commandArgs);break}case"detox":{let{runDetox:a}=await import("./chunks/detox-RZ37736M.js");await a(e.commandArgs,{port:o,verbose:c});break}case"maestro":{let{runMaestro:a}=await import("./chunks/maestro-4HVDLCTI.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"record":{let{runRecord:a}=await import("./chunks/record-OUXWCWUF.js");await a(i,{port:o,verbose:c});break}case"film":{let{runFilm:a}=await import("./chunks/film-GPHSJLIH.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"storage":{let{runStorage:a}=await import("./chunks/storage-DWEOFXEB.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"state":{let{runState:a}=await import("./chunks/state-P2Z25OLQ.js"),t=await a(i,{port:o});await n(t)}case"reset":{let{runReset:a}=await import("./chunks/reset-ZZYLPETS.js"),t=await a(i,{port:o});await n(t)}case"perf":{let{runPerf:a}=await import("./chunks/perf-47R3OEI7.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"screenshot":{let{runScreenshotCommand:a}=await import("./chunks/screenshot-command-CUHDOS5D.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"camera":{let{runCamera:a}=await import("./chunks/camera-RUL426MQ.js"),t=await a(i,{port:o});await n(typeof t=="number"?t:0)}case"mode":{let{runMode:a}=await import("./chunks/mode-MGTS4QTF.js");await a(i,{port:o,verbose:c});break}case"permissions":{let{runPermissions:a}=await import("./chunks/permissions-ZOLFZWR2.js"),t=await a(i,{port:o,verbose:c});await n(t)}case"debug":{let{runDebug:a}=await import("./chunks/debug-7Z325GNU.js");await a(i,{port:o,verbose:c});break}case"timeline":{let{runTimeline:a}=await import("./chunks/timeline-55XNA4GX.js");await a(i,{port:o,verbose:c});break}case"what-happened":{let{runWhatHappened:a}=await import("./chunks/what-happened-Q3IGIH4K.js");await a(i,{port:o,verbose:c});break}case"open":{let{runOpenCommand:a}=await import("./chunks/control-FKPKLOE2.js");await a(i,{port:o});break}case"ios":case"android":{let{runPlatformCommand:a}=await import("./chunks/platform-C4E26ZBZ.js"),t=await a(s,i,{port:o});await n(typeof t=="number"?t:0)}case"box":{let{runBox:a}=await import("./chunks/box-7CK72ZPF.js");await n(await a(i,{port:o,verbose:c}))}case"use":{let{runUseCommand:a}=await import("./chunks/control-FKPKLOE2.js");await a(i,{port:o});break}case"claim":{let{runClaimCommand:a}=await import("./chunks/control-FKPKLOE2.js");await a(i,{port:o});break}case"close":{let{runCloseCommand:a}=await import("./chunks/control-FKPKLOE2.js");await a(i,{port:o});break}case"device":{let{runDeviceCommand:a}=await import("./chunks/device-TA3SQP6K.js");await a(i,{port:o});break}case"compat":{let{runCompat:a}=await import("./chunks/compat-4ZC6ZMMA.js");await a(e.commandArgs);break}case"report-issue":{let{runReportIssue:a}=await import("./chunks/report-issue-LJJXONXQ.js"),t=await a(e.commandArgs);await n(t)}case"desktop":{let{runDesktop:a}=await import("./chunks/desktop-CR7ALX7H.js");await a(e.commandArgs,{port:o,device:u});break}case"login":{let{runLogin:a}=await import("./chunks/login-EHUZYRAM.js");await a(e.commandArgs);break}case"logout":{let{runLogout:a}=await import("./chunks/logout-WPGT62N6.js");await a();break}case"auth":{let{runAuth:a}=await import("./chunks/auth-4SPTRWTM.js");await a(e.commandArgs);break}case"setup":{let{runSetup:a}=await import("./chunks/setup-X7LLGW67.js");await a(e.commandArgs);break}case"serve":{let{runServe:a}=await import("./chunks/serve-TX5OKGJM.js");await a(e.commandArgs,{port:o});break}case"daemon":{let{runDaemon:a}=await import("./chunks/daemon-WFHWS3JU.js");await a(e.commandArgs,{port:o});break}case"runtime":{let{runRuntime:a}=await import("./chunks/runtime-DEC5AF3M.js");await a(e.commandArgs);break}case"upgrade":{let{runUpgrade:a}=await import("./chunks/upgrade-3XRCVDVC.js");await a(e.commandArgs);break}case"version":{let{runVersion:a}=await import("./chunks/version-WTYGLXBJ.js");await a(e.commandArgs);break}case"agent":{let{runAgentCommand:a}=await import("./chunks/agent-RTAKJ5UM.js"),t=await a(e.commandArgs);await n(t)}case"agent-wrapper":{let{runAgentWrapper:a}=await import("./chunks/agent-wrapper-JWRDI26D.js"),t=await a(e.commandArgs);await n(t)}case"skill":{let{runSkill:a}=await import("./chunks/skills-TDFQAZ6A.js");await a(e.commandArgs);break}case"app-fonts":{let{runAppFonts:a}=await import("./chunks/app-fonts-RKO3N4PB.js");await a(e.commandArgs);break}case"config":{let{runConfig:a}=await import("./chunks/config-EOBODQ32.js");await a(e.commandArgs);break}case"cleanup":{let{runCleanup:a}=await import("./chunks/cleanup-7ATBNZHC.js"),t=await a(e.commandArgs);await n(t)}default:console.error(` unknown command: ${s}`),console.error(` run \`${m.commandName} --help\` to see the full surface.`),await n(1)}}catch(a){throw a instanceof h&&await n(a.code),a}await S();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as b,b as E,c as A,d as l,e as S,g as x,h as j,j as T,n as I,o as k,p as D,q as g,r as O,s as C}from"./chunk-
|
|
4
|
+
import{a as b,b as E,c as A,d as l,e as S,g as x,h as j,j as T,n as I,o as k,p as D,q as g,r as O,s as C}from"./chunk-VQQXUXXF.js";import"./chunk-NBEOA72C.js";import{c as $}from"./chunk-SC7PGULZ.js";import"./chunk-ZRQKEKHX.js";import"./chunk-KXAE64HF.js";import"./chunk-Q5WPPOFV.js";import"./chunk-I7LRVN5M.js";import"./chunk-D5AT7UT5.js";import"./chunk-MKHW3JNL.js";import"./chunk-KVVNCIJA.js";import"./chunk-JPRHJMUJ.js";import{j as y}from"./chunk-QA2PTSOC.js";import"./chunk-P6K6XFWE.js";import"./chunk-MSM2E74F.js";import"./chunk-WR7LRCYW.js";import w from"node:fs";import d from"node:path";import{spawn as _}from"node:child_process";import F from"node:net";import{WebSocket as R}from"ws";var c=class extends Error{code;constructor(e,t){super(e),this.name="AgentDaemonError",this.code=t}},f=class{ws;port;commandTimeoutMs;ready;closed=!1;nextId=1;pending=new Map;eventListeners=new Set;statusListeners=new Set;disconnectListeners=new Set;constructor(e={}){this.port=e.port??7668,this.commandTimeoutMs=e.commandTimeoutMs??15e3,this.ws=new R(`ws://localhost:${this.port}`),this.ready=new Promise((t,r)=>{let s=()=>{this.ws.off("error",o),t()},o=i=>{this.ws.off("open",s),r(new c(`could not connect to rnx daemon on port ${this.port}: ${i.message}`,"NO_DAEMON"))};this.ws.once("open",s),this.ws.once("error",o)}),this.ws.on("message",t=>this.handleMessage(t)),this.ws.on("close",()=>this.handleClose()),this.ws.on("error",()=>{})}async waitReady(){return this.ready}async listProjects(){return this.send("agent:list-projects")}async upsertProject(e){return this.send("agent:upsert-project",{input:e})}async deleteProject(e){return this.send("agent:delete-project",{projectId:e})}async autoAttachForUrl(e){return this.send("agent:auto-attach-for-url",{input:e})}async listSessions(e){return this.send("agent:list-sessions",{projectId:e})}async startSession(e){return this.send("agent:start-session",{input:e})}async sendPrompt(e,t){return this.send("agent:send-prompt",{sessionId:e,prompt:t})}async sendClaimedPrompt(e,t){return this.send("agent:send-claimed-prompt",{simId:e,prompt:t})}async endSession(e){return this.send("agent:end-session",{sessionId:e})}async getTranscript(e){return this.send("agent:get-transcript",{sessionId:e})}async getPaths(){return this.send("agent:get-paths")}async subscribeEvents(e){return this.send("agent:subscribe-events",{sessionId:e})}async unsubscribeEvents(e){return this.send("agent:unsubscribe-events",{sessionId:e})}onAgentEvent(e){return this.eventListeners.add(e),()=>this.eventListeners.delete(e)}onSessionStatusChange(e){return this.statusListeners.add(e),()=>this.statusListeners.delete(e)}onDisconnect(e){return this.disconnectListeners.add(e),()=>this.disconnectListeners.delete(e)}close(){if(!this.closed){this.closed=!0;try{this.ws.close()}catch{}}}async send(e,t={}){if(await this.ready,this.closed||this.ws.readyState!==R.OPEN)throw new c("daemon connection is closed","NO_DAEMON");let r=this.nextId++;return new Promise((s,o)=>{let i=setTimeout(()=>{this.pending.delete(r),o(new c(`${e} timed out after ${Math.round(this.commandTimeoutMs/1e3)}s`,"TIMEOUT"))},this.commandTimeoutMs);this.pending.set(r,{resolve:s,reject:o,timer:i});try{this.ws.send(JSON.stringify({id:r,type:e,...t}))}catch(a){clearTimeout(i),this.pending.delete(r),o(a instanceof Error?a:new Error(String(a)))}})}handleMessage(e){let t;try{t=JSON.parse(String(e))}catch{return}if(!t||typeof t!="object")return;if(t.type==="agent:event"){for(let s of this.eventListeners)try{s({sessionId:t.sessionId,event:t.event})}catch{}return}if(t.type==="agent:session-status"){for(let s of this.statusListeners)try{s(t.session)}catch{}return}if(typeof t.id!="number")return;let r=this.pending.get(t.id);r&&(this.pending.delete(t.id),clearTimeout(r.timer),t.error?r.reject(new c(t.error,t.code)):r.resolve(t.result))}handleClose(){if(!this.closed){this.closed=!0;for(let[,e]of this.pending)clearTimeout(e.timer),e.reject(new c("daemon disconnected","DISCONNECT"));this.pending.clear();for(let e of this.disconnectListeners)try{e()}catch{}}}};function M(n=7668,e=400){return new Promise(t=>{let r=new F.Socket,s=!1,o=i=>{s||(s=!0,r.destroy(),t(i))};r.setTimeout(e),r.once("connect",()=>o(!0)),r.once("timeout",()=>o(!1)),r.once("error",()=>o(!1)),r.connect(n,"127.0.0.1")})}async function B(n={}){let e=n.port??7668;if(await M(e))return{alreadyRunning:!0};if(y())throw new c(`no rnx bridge on port ${e}. run \`rnx daemon install\` to enable the faster background service, or \`rnx serve\` in another shell.`,"DEV_HOST_REFUSED");let{cmd:t,prefixArgs:r}=C(),s=[...r,"serve","--quiet"];e!==7668&&s.push("--port",String(e));let o=_(t,s,{detached:!0,stdio:"ignore",env:process.env,cwd:process.cwd()});o.unref();let i=Date.now()+(n.startupTimeoutMs??5e3);for(;Date.now()<i;){if(await M(e))return{alreadyRunning:!1,pid:o.pid};await new Promise(a=>setTimeout(a,100))}throw new c(`spawned rnx daemon on port ${e} but it did not come up in time. run \`rnx serve\` manually to diagnose.`,"SPAWN_TIMEOUT")}async function h(n={}){await B({port:n.port,startupTimeoutMs:n.startupTimeoutMs});let e=new f(n);try{await e.waitReady()}catch(t){throw e.close(),t}return e}async function ge(n){let[e,...t]=n;try{switch(e){case void 0:case"--help":case"-h":case"help":return L(),0;case"attach":return await W(t);case"projects":return await J();case"project":return await V(t);case"sessions":return await H(t);case"start":return await G(t);case"prompt":return await q(t);case"watch":return await K(t);case"transcript":return await z(t);case"end":return await Q(t);case"paths":return await Y();default:return process.stderr.write(`unknown agent subcommand: ${e}
|
|
5
5
|
`),L(),2}}catch(r){if(r instanceof c)return process.stderr.write(`${r.message}
|
|
6
6
|
`),1;throw r}}async function v(n){let e=await h({clientLabel:"sootsim-agent-cli"});try{return await n(e)}finally{e.close()}}function L(){$("agent")}function P(n,e){let t={},r=[];for(let s=0;s<n.length;s++){let o=n[s],i=e[o];i==="value"?(t[o]=n[s+1]??"",s++):i==="bool"?t[o]=!0:r.push(o)}return{flags:t,positional:r}}function U(n,e="codex"){return n==="codex"||n==="claude"?n:e}async function W(n){let{flags:e,positional:t}=P(n,{"--name":"value","--provider":"value"}),r=t[0];if(!r)return process.stderr.write(`usage: rnx agent attach <dir> [--name X] [--provider codex|claude]
|
|
7
7
|
`),2;let s=d.resolve(r);if(!w.existsSync(s))return process.stderr.write(`directory does not exist: ${s}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{b as M}from"./chunk-
|
|
4
|
+
import{b as M}from"./chunk-NBEOA72C.js";import"./chunk-WR7LRCYW.js";import{execFile as G,spawn as q}from"node:child_process";import{randomUUID as X}from"node:crypto";import{constants as R,createReadStream as Y,createWriteStream as j,existsSync as C,openSync as J}from"node:fs";import V from"node:fs/promises";import z from"node:path";import K from"node:readline";import{promisify as Q}from"node:util";import{spawn as H}from"node:child_process";import L from"node:readline";var b=class extends Error{code;data;constructor(t,r,m){super(t),this.name="CodexRpcError",this.code=r,this.data=m}};function W(d){let t=H(d.bin,["app-server"],{cwd:d.cwd,env:{...process.env,...d.env},stdio:["pipe","pipe","pipe"]}),r=new Map,m=new Map,u=1,f=!1,a=new Promise(s=>{t.on("exit",(o,e)=>{f=!0;let p=new Error(`codex app-server exited (code=${o}, signal=${e??""})`);for(let{reject:y}of r.values())y(p);r.clear(),s({code:o,signal:e})})});L.createInterface({input:t.stdout,crlfDelay:1/0}).on("line",s=>{let o=s.trim();if(!o)return;let e;try{e=JSON.parse(o)}catch{return}if(e.id!=null&&(e.result!==void 0||e.error!==void 0)){let p=typeof e.id=="string"?Number(e.id):e.id,y=p!=null?r.get(p):void 0;if(!y)return;r.delete(p),e.error?y.reject(new b(e.error.message,e.error.code,e.error.data)):y.resolve(e.result);return}if(e.method){let p=m.get(e.method);if(!p)return;for(let y of p)try{y(e.params)}catch(l){console.error(`[codex-client] handler for "${e.method}" threw:`,l instanceof Error?l.stack??l.message:l)}}}),t.stderr.setEncoding("utf8"),t.stderr.on("data",s=>{let o=m.get("__stderr__");if(o)for(let e of o)try{e({text:s})}catch{}});function n(s){if(!f)try{t.stdin.write(JSON.stringify(s)+`
|
|
5
5
|
`)}catch{}}return{exited:a,on(s,o){let e=m.get(s);return e||(e=new Set,m.set(s,e)),e.add(o),()=>{e?.delete(o)}},request(s,o){if(f)return Promise.reject(new Error(`codex app-server closed; cannot call ${s}`));let e=u++;return new Promise((p,y)=>{r.set(e,{resolve:l=>p(l),reject:y,method:s}),n({jsonrpc:"2.0",id:e,method:s,params:o})})},notify(s,o){n({jsonrpc:"2.0",method:s,params:o})},async shutdown(s=1500){if(f)return;try{t.stdin.end()}catch{}let o=setTimeout(()=>{if(!f)try{t.kill("SIGTERM")}catch{}},s);try{await a}finally{clearTimeout(o)}},kill(s="SIGTERM"){if(!f)try{t.kill(s)}catch{}}}}var O="never",F="danger-full-access",Z={type:"dangerFullAccess"},D="fast",ee="medium",te=Q(G);async function ne(d,t){let r=t||d;if(r.includes("/")||r.includes("\\"))return C(r)?{ok:!0,path:r}:{ok:!1,message:`agent binary not found at path: ${r}`};try{let{stdout:m}=await te("which",[r],{timeout:1500}),u=m.trim();return u?{ok:!0,path:u}:{ok:!1,message:`${r} not found on PATH`}}catch{return{ok:!1,message:`${r} not found on PATH. install the ${d} CLI and retry, or pass --${d}-bin /path/to/${d} to agent start.`}}}function re(d){let t={"--session-id":"sessionId","--project-id":"projectId","--provider":"provider","--cwd":"cwd","--prompt-in":"promptIn","--events-out":"eventsOut","--transcript":"transcript","--codex-bin":"codexBin","--claude-bin":"claudeBin","--claude-session-uuid":"claudeSessionUuid"},r={};for(let m=0;m<d.length;m++){let u=d[m];if(u==="--fresh-thread"){r.freshThread=!0;continue}let f=t[u];f&&(r[f]=d[m+1],m++)}return r}async function Ie(d){let t=re(d);if(!t.sessionId||!t.projectId||!t.provider||!t.cwd||!t.promptIn||!t.eventsOut)return process.stderr.write(`usage: rnx agent-wrapper --session-id <id> --project-id <id>
|
|
6
6
|
--provider codex|claude --cwd <path>
|
|
7
7
|
--prompt-in <fifo> --events-out <fifo>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{p as g}from"./chunk-
|
|
4
|
+
import{p as g}from"./chunk-IX25FFF3.js";import"./chunk-NWPYM54M.js";import"./chunk-2MA3Q44D.js";import{c as f}from"./chunk-YWTBN7SD.js";import"./chunk-WR7LRCYW.js";import{existsSync as d,mkdirSync as y,readFileSync as m,writeFileSync as u}from"node:fs";import{join as w}from"node:path";import{gzipSync as x}from"node:zlib";function l(t,e){let r=t.indexOf(`--${e}`);if(r!==-1&&r+1<t.length)return t[r+1];let s=t.find(i=>i.startsWith(`--${e}=`));return s?s.slice(e.length+3):void 0}async function S(t){let e=l(t,"wire")||"",r=l(t,"out-dir"),s=l(t,"manifest");if((!r||!s)&&(console.error(" usage: rnx app-fonts stage --wire <wire> --out-dir <dir> --manifest <path>"),f(1)),!e.trim()){console.log("no app fonts declared \u2014 nothing to stage");return}y(r,{recursive:!0});let i=await g(e,{onStaged:({url:n,byteLength:o})=>console.log(` staged app font: ${n} (${(o/1024).toFixed(1)} KiB)`),onError:(n,o)=>console.error(` warning: failed to fetch app font ${n}: ${o instanceof Error?o.message:o}`)}),a=[];for(let n of i){let o=x(n.bytes);u(w(r,n.urlhash),o),a.push({url:n.url,urlhash:n.urlhash,contentType:n.contentType,encoding:"gzip",sizeBytes:o.length,rawBytes:n.bytes.byteLength})}let c=[];if(d(s))try{let n=JSON.parse(m(s,"utf8"));Array.isArray(n)&&(c=n)}catch{}let h=new Set(c.map(n=>n.urlhash)),p=[...c,...a.filter(n=>!h.has(n.urlhash))];u(s,JSON.stringify(p)),console.log(`staged ${a.length} app font(s); manifest now has ${p.length} file(s)`)}async function B(t){let e=t[0];if(e==="stage"){await S(t.slice(1));return}console.error(` unknown app-fonts subcommand: ${e??"(none)"}`),console.error(" available: stage"),f(1)}export{B as runAppFonts};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{c}from"./chunk-
|
|
4
|
+
import{c}from"./chunk-YWTBN7SD.js";import"./chunk-WR7LRCYW.js";import{spawn as S}from"child_process";var k=new Set(["describe","find","list","network","logs","count","tree","url","a11y","node","layout","keyboard","errors","warnings","requests","animations","animation","state","sample-color"]),q=new Set(["--exists","--empty","--negate","--quiet","--allow-timeout","!"]),P=new Set(["--count","--count-at-least","--count-at-most","--contains","--not-contains","--matches","--not-matches","--equals","--jq","--has-path","--within"]),j=new Set(["--path-equals"]);function N(s){let r=[],u=[],n=0,e=!1,t=!1,i=!1;for(let o=0;o<s.length;o++){let a=s[o];if(a==="--within"){let l=Number(s[o+1]);if(!Number.isFinite(l)||l<0)return{error:`--within requires a non-negative number, got: ${s[o+1]}`};n=l,o++;continue}if(a==="--negate"||a==="!"){e=!0;continue}if(a==="--quiet"){t=!0;continue}if(a==="--allow-timeout"){i=!0;continue}if(q.has(a)){u.push({kind:a,args:[]});continue}if(P.has(a)){let l=s[o+1];if(l==null)return{error:`${a} requires a value`};u.push({kind:a,args:[l]}),o++;continue}if(j.has(a)){let l=s[o+1],p=s[o+2];if(l==null||p==null)return{error:`${a} requires <path> <value>`};u.push({kind:a,args:[l,p]}),o+=2;continue}r.push(a)}return r.length===0?{error:"assert requires a verb (e.g. find, describe, get errors)"}:{verbArgs:r,predicates:u,withinMs:n,negate:e,quiet:t,allowTimeout:i}}function R(s){return s[0]==="get"||s[0]==="debug"?k.has(s[1])?s[1]:null:s[0]==="do"||s[0]==="wait"?null:k.has(s[0])?s[0]:null}async function A(s){let u=[process.argv[1],...s,"--json"];return new Promise(n=>{let e=S(process.execPath,u,{stdio:["ignore","pipe","pipe"],env:process.env}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",o=>{n({ok:!1,payload:null,reason:`spawn failed: ${o.message}`})}),e.on("close",o=>{if(o!==0){let a=i.trim().split(`
|
|
5
5
|
`).slice(-2).join(" | ").slice(0,200);n({ok:!1,payload:null,reason:`verb exited ${o}${a?`: ${a}`:""}`});return}if(!t.trim()){n({ok:!1,payload:null,reason:"verb produced no output"});return}try{let a=JSON.parse(t);n({ok:!0,payload:a})}catch{n({ok:!1,payload:null,reason:`verb output was not valid json: ${t.slice(0,120)}`})}})})}function v(s,r){let u=r.split(".").filter(e=>e.length>0),n=s;for(let e of u){if(n==null)return{found:!1};if(Array.isArray(n)){let t=Number(e);if(!Number.isInteger(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}if(typeof n=="object"){let t=n;if(!(e in t))return{found:!1};n=t[e];continue}return{found:!1}}return{found:!0,value:n}}function g(s){return Array.isArray(s)?s.length:s&&typeof s=="object"?Object.keys(s).length:null}async function O(s,r){let{kind:u,args:n}=s;switch(u){case"--exists":return r==null?{ok:!1,reason:"payload is null"}:g(r)===0?{ok:!1,reason:"payload is empty"}:{ok:!0,reason:"exists"};case"--empty":{if(r==null)return{ok:!0,reason:"payload is null"};let e=g(r);return e===0?{ok:!0,reason:"payload is empty"}:{ok:!1,reason:`payload has ${e} item(s)`}}case"--count":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:`payload not countable (${typeof r})`}:{ok:t===e,reason:`count=${t}, want=${e}`}}case"--count-at-least":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:"payload not countable"}:{ok:t>=e,reason:`count=${t}, want>=${e}`}}case"--count-at-most":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:"payload not countable"}:{ok:t<=e,reason:`count=${t}, want<=${e}`}}case"--contains":{let e=n[0],t=JSON.stringify(r);return{ok:t.includes(e),reason:t.includes(e)?`contains "${e}"`:`missing "${e}"`}}case"--not-contains":{let e=n[0],t=JSON.stringify(r);return{ok:!t.includes(e),reason:t.includes(e)?`unexpected "${e}"`:`not contains "${e}"`}}case"--matches":{let e=new RegExp(n[0]),t=JSON.stringify(r),i=e.test(t);return{ok:i,reason:i?`matches /${n[0]}/`:`no match for /${n[0]}/`}}case"--not-matches":{let e=new RegExp(n[0]),t=JSON.stringify(r),i=!e.test(t);return{ok:i,reason:i?`not matches /${n[0]}/`:`unexpected /${n[0]}/`}}case"--equals":{let e=n[0],t=typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r);return{ok:t===e,reason:`got=${JSON.stringify(t)}, want=${JSON.stringify(e)}`}}case"--has-path":{let e=v(r,n[0]);return{ok:e.found,reason:e.found?`path ${n[0]} present`:`path ${n[0]} missing`}}case"--path-equals":{let[e,t]=n,i=v(r,e);if(!i.found)return{ok:!1,reason:`path ${e} missing`};let o=typeof i.value=="string"||typeof i.value=="number"||typeof i.value=="boolean"?String(i.value):JSON.stringify(i.value);return{ok:o===t,reason:`${e}=${o}, want=${t}`}}case"--jq":{let e=n[0];try{let i=(await E(e,r)).trim();return{ok:i.length>0&&i!=="null"&&i!=="false"&&i!=='""',reason:`jq: ${i.slice(0,120)}`}}catch(t){throw new Error(`jq evaluation failed: ${t.message}`)}}default:return{ok:!1,reason:`unknown predicate ${u}`}}}function E(s,r){return new Promise((u,n)=>{let e=S("jq",[s],{stdio:["pipe","pipe","pipe"]}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",n),e.on("close",o=>{if(o!==0){n(new Error(i.trim()||`jq exited ${o}`));return}u(t)}),e.stdin.end(JSON.stringify(r))})}async function L(s){(s[0]==="--help"||s[0]==="-h"||s.length===0)&&(J(),c(s.length===0?2:0));let r=N(s);"error"in r&&(process.stderr.write(` assert: ${r.error}
|
|
6
6
|
`),c(2));let{verbArgs:u,predicates:n,withinMs:e,negate:t,quiet:i,allowTimeout:o}=r;R(u)||(process.stderr.write(` assert: unknown or non-read verb: ${u.join(" ")}
|
|
7
7
|
supported: ${Array.from(k).sort().join(", ")}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as i}from"./chunk-
|
|
4
|
+
import{a as i}from"./chunk-CEQXZ3GA.js";import{d as t}from"./chunk-NT43X5LI.js";import{c as r}from"./chunk-YWTBN7SD.js";import"./chunk-QA2PTSOC.js";import"./chunk-WR7LRCYW.js";function s(){console.log(`
|
|
5
5
|
rnx auth \u2014 inspect CLI auth
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a,b,c,d}from"./chunk-
|
|
4
|
+
import{a,b,c,d}from"./chunk-Q5WPPOFV.js";import"./chunk-WR7LRCYW.js";export{d as BETA_ASK_HEADLINE,b as BETA_LABEL,c as BETA_TAGLINE,a as IS_BETA};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{c as jp,d as Gp}from"./chunk-Z6CQDU74.js";import{d as iu}from"./chunk-IPNDXGVA.js";import"./chunk-SH2HXHR2.js";import{a as nu}from"./chunk-TWNLRDIH.js";import{k as Bm,l as Um,m as zm,n as qm}from"./chunk-ESWSXF55.js";import"./chunk-WLRIPAGJ.js";import"./chunk-ERBGQEJ5.js";import"./chunk-Y7SKGRAV.js";import{a as pr}from"./chunk-OQPZOEEP.js";import{b as Ae,d as Fm}from"./chunk-OF5OBB67.js";var Wm=Ae(su=>{(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(a){return n(s(a),arguments)}function r(a,o){return t.apply(null,[a].concat(o||[]))}function n(a,o){var l=1,u=a.length,c,p="",h,f,d,m,g,y,x,b;for(h=0;h<u;h++)if(typeof a[h]=="string")p+=a[h];else if(typeof a[h]=="object"){if(d=a[h],d.keys)for(c=o[l],f=0;f<d.keys.length;f++){if(c==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',d.keys[f],d.keys[f-1]));c=c[d.keys[f]]}else d.param_no?c=o[d.param_no]:c=o[l++];if(e.not_type.test(d.type)&&e.not_primitive.test(d.type)&&c instanceof Function&&(c=c()),e.numeric_arg.test(d.type)&&typeof c!="number"&&isNaN(c))throw new TypeError(t("[sprintf] expecting number but found %T",c));switch(e.number.test(d.type)&&(x=c>=0),d.type){case"b":c=parseInt(c,10).toString(2);break;case"c":c=String.fromCharCode(parseInt(c,10));break;case"d":case"i":c=parseInt(c,10);break;case"j":c=JSON.stringify(c,null,d.width?parseInt(d.width):0);break;case"e":c=d.precision?parseFloat(c).toExponential(d.precision):parseFloat(c).toExponential();break;case"f":c=d.precision?parseFloat(c).toFixed(d.precision):parseFloat(c);break;case"g":c=d.precision?String(Number(c.toPrecision(d.precision))):parseFloat(c);break;case"o":c=(parseInt(c,10)>>>0).toString(8);break;case"s":c=String(c),c=d.precision?c.substring(0,d.precision):c;break;case"t":c=String(!!c),c=d.precision?c.substring(0,d.precision):c;break;case"T":c=Object.prototype.toString.call(c).slice(8,-1).toLowerCase(),c=d.precision?c.substring(0,d.precision):c;break;case"u":c=parseInt(c,10)>>>0;break;case"v":c=c.valueOf(),c=d.precision?c.substring(0,d.precision):c;break;case"x":c=(parseInt(c,10)>>>0).toString(16);break;case"X":c=(parseInt(c,10)>>>0).toString(16).toUpperCase();break}e.json.test(d.type)?p+=c:(e.number.test(d.type)&&(!x||d.sign)?(b=x?"+":"-",c=c.toString().replace(e.sign,"")):b="",g=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",y=d.width-(b+c).length,m=d.width&&y>0?g.repeat(y):"",p+=d.align?b+c+m:g==="0"?b+m+c:m+b+c)}return p}var i=Object.create(null);function s(a){if(i[a])return i[a];for(var o=a,l,u=[],c=0;o;){if((l=e.text.exec(o))!==null)u.push(l[0]);else if((l=e.modulo.exec(o))!==null)u.push("%");else if((l=e.placeholder.exec(o))!==null){if(l[2]){c|=1;var p=[],h=l[2],f=[];if((f=e.key.exec(h))!==null)for(p.push(f[1]);(h=h.substring(f[0].length))!=="";)if((f=e.key_access.exec(h))!==null)p.push(f[1]);else if((f=e.index_access.exec(h))!==null)p.push(f[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else c|=2;if(c===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");u.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");o=o.substring(l[0].length)}return i[a]=u}typeof su<"u"&&(su.sprintf=t,su.vsprintf=r),typeof window<"u"&&(window.sprintf=t,window.vsprintf=r,typeof define=="function"&&define.amd&&define(function(){return{sprintf:t,vsprintf:r}}))})()});var pa=Ae((FG,pg)=>{"use strict";pg.exports=vs;vs.CAPTURING_PHASE=1;vs.AT_TARGET=2;vs.BUBBLING_PHASE=3;function vs(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=vs.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}vs.prototype=Object.create(Object.prototype,{constructor:{value:vs},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var af=Ae((BG,hg)=>{"use strict";var fg=pa();hg.exports=sf;function sf(){fg.call(this),this.view=null,this.detail=0}sf.prototype=Object.create(fg.prototype,{constructor:{value:sf},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var lf=Ae((UG,mg)=>{"use strict";var dg=af();mg.exports=of;function of(){dg.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}of.prototype=Object.create(dg.prototype,{constructor:{value:of},initMouseEvent:{value:function(e,t,r,n,i,s,a,o,l,u,c,p,h,f,d){switch(this.initEvent(e,t,r,n,i),this.screenX=s,this.screenY=a,this.clientX=o,this.clientY=l,this.ctrlKey=u,this.altKey=c,this.shiftKey=p,this.metaKey=h,this.button=f,f){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=d}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var cu=Ae((zG,xg)=>{"use strict";xg.exports=uu;var iN=1,sN=3,aN=4,oN=5,lN=7,uN=8,cN=9,pN=11,fN=12,hN=13,dN=14,mN=15,gN=17,xN=18,yN=19,bN=20,wN=21,vN=22,EN=23,SN=24,AN=25,CN=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],kN=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],gg={INDEX_SIZE_ERR:iN,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:sN,WRONG_DOCUMENT_ERR:aN,INVALID_CHARACTER_ERR:oN,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:lN,NOT_FOUND_ERR:uN,NOT_SUPPORTED_ERR:cN,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:pN,SYNTAX_ERR:fN,INVALID_MODIFICATION_ERR:hN,NAMESPACE_ERR:dN,INVALID_ACCESS_ERR:mN,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:gN,SECURITY_ERR:xN,NETWORK_ERR:yN,ABORT_ERR:bN,URL_MISMATCH_ERR:wN,QUOTA_EXCEEDED_ERR:vN,TIMEOUT_ERR:EN,INVALID_NODE_TYPE_ERR:SN,DATA_CLONE_ERR:AN};function uu(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=kN[e],this.name=CN[e]}uu.prototype.__proto__=Error.prototype;for(lu in gg)uf={value:gg[lu]},Object.defineProperty(uu,lu,uf),Object.defineProperty(uu.prototype,lu,uf);var uf,lu});var pu=Ae(yg=>{yg.isApiWritable=!globalThis.__domino_frozen__});var Vt=Ae(pt=>{"use strict";var Gt=cu(),er=Gt,NN=pu().isApiWritable;pt.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};pt.IndexSizeError=function(){throw new Gt(er.INDEX_SIZE_ERR)};pt.HierarchyRequestError=function(){throw new Gt(er.HIERARCHY_REQUEST_ERR)};pt.WrongDocumentError=function(){throw new Gt(er.WRONG_DOCUMENT_ERR)};pt.InvalidCharacterError=function(){throw new Gt(er.INVALID_CHARACTER_ERR)};pt.NoModificationAllowedError=function(){throw new Gt(er.NO_MODIFICATION_ALLOWED_ERR)};pt.NotFoundError=function(){throw new Gt(er.NOT_FOUND_ERR)};pt.NotSupportedError=function(){throw new Gt(er.NOT_SUPPORTED_ERR)};pt.InvalidStateError=function(){throw new Gt(er.INVALID_STATE_ERR)};pt.SyntaxError=function(){throw new Gt(er.SYNTAX_ERR)};pt.InvalidModificationError=function(){throw new Gt(er.INVALID_MODIFICATION_ERR)};pt.NamespaceError=function(){throw new Gt(er.NAMESPACE_ERR)};pt.InvalidAccessError=function(){throw new Gt(er.INVALID_ACCESS_ERR)};pt.TypeMismatchError=function(){throw new Gt(er.TYPE_MISMATCH_ERR)};pt.SecurityError=function(){throw new Gt(er.SECURITY_ERR)};pt.NetworkError=function(){throw new Gt(er.NETWORK_ERR)};pt.AbortError=function(){throw new Gt(er.ABORT_ERR)};pt.UrlMismatchError=function(){throw new Gt(er.URL_MISMATCH_ERR)};pt.QuotaExceededError=function(){throw new Gt(er.QUOTA_EXCEEDED_ERR)};pt.TimeoutError=function(){throw new Gt(er.TIMEOUT_ERR)};pt.InvalidNodeTypeError=function(){throw new Gt(er.INVALID_NODE_TYPE_ERR)};pt.DataCloneError=function(){throw new Gt(er.DATA_CLONE_ERR)};pt.nyi=function(){throw new Error("NotYetImplemented")};pt.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};pt.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
|
|
4
|
+
import{c as jp,d as Gp}from"./chunk-POR7R3TP.js";import{d as iu}from"./chunk-CEQXZ3GA.js";import"./chunk-NT43X5LI.js";import{a as nu}from"./chunk-FOW2LPM7.js";import{k as Bm,l as Um,m as zm,n as qm}from"./chunk-MKHW3JNL.js";import"./chunk-KVVNCIJA.js";import"./chunk-YWTBN7SD.js";import"./chunk-QA2PTSOC.js";import{a as pr}from"./chunk-MSM2E74F.js";import{b as Ae,d as Fm}from"./chunk-WR7LRCYW.js";var Wm=Ae(su=>{(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(a){return n(s(a),arguments)}function r(a,o){return t.apply(null,[a].concat(o||[]))}function n(a,o){var l=1,u=a.length,c,p="",h,f,d,m,g,y,x,b;for(h=0;h<u;h++)if(typeof a[h]=="string")p+=a[h];else if(typeof a[h]=="object"){if(d=a[h],d.keys)for(c=o[l],f=0;f<d.keys.length;f++){if(c==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',d.keys[f],d.keys[f-1]));c=c[d.keys[f]]}else d.param_no?c=o[d.param_no]:c=o[l++];if(e.not_type.test(d.type)&&e.not_primitive.test(d.type)&&c instanceof Function&&(c=c()),e.numeric_arg.test(d.type)&&typeof c!="number"&&isNaN(c))throw new TypeError(t("[sprintf] expecting number but found %T",c));switch(e.number.test(d.type)&&(x=c>=0),d.type){case"b":c=parseInt(c,10).toString(2);break;case"c":c=String.fromCharCode(parseInt(c,10));break;case"d":case"i":c=parseInt(c,10);break;case"j":c=JSON.stringify(c,null,d.width?parseInt(d.width):0);break;case"e":c=d.precision?parseFloat(c).toExponential(d.precision):parseFloat(c).toExponential();break;case"f":c=d.precision?parseFloat(c).toFixed(d.precision):parseFloat(c);break;case"g":c=d.precision?String(Number(c.toPrecision(d.precision))):parseFloat(c);break;case"o":c=(parseInt(c,10)>>>0).toString(8);break;case"s":c=String(c),c=d.precision?c.substring(0,d.precision):c;break;case"t":c=String(!!c),c=d.precision?c.substring(0,d.precision):c;break;case"T":c=Object.prototype.toString.call(c).slice(8,-1).toLowerCase(),c=d.precision?c.substring(0,d.precision):c;break;case"u":c=parseInt(c,10)>>>0;break;case"v":c=c.valueOf(),c=d.precision?c.substring(0,d.precision):c;break;case"x":c=(parseInt(c,10)>>>0).toString(16);break;case"X":c=(parseInt(c,10)>>>0).toString(16).toUpperCase();break}e.json.test(d.type)?p+=c:(e.number.test(d.type)&&(!x||d.sign)?(b=x?"+":"-",c=c.toString().replace(e.sign,"")):b="",g=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",y=d.width-(b+c).length,m=d.width&&y>0?g.repeat(y):"",p+=d.align?b+c+m:g==="0"?b+m+c:m+b+c)}return p}var i=Object.create(null);function s(a){if(i[a])return i[a];for(var o=a,l,u=[],c=0;o;){if((l=e.text.exec(o))!==null)u.push(l[0]);else if((l=e.modulo.exec(o))!==null)u.push("%");else if((l=e.placeholder.exec(o))!==null){if(l[2]){c|=1;var p=[],h=l[2],f=[];if((f=e.key.exec(h))!==null)for(p.push(f[1]);(h=h.substring(f[0].length))!=="";)if((f=e.key_access.exec(h))!==null)p.push(f[1]);else if((f=e.index_access.exec(h))!==null)p.push(f[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else c|=2;if(c===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");u.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");o=o.substring(l[0].length)}return i[a]=u}typeof su<"u"&&(su.sprintf=t,su.vsprintf=r),typeof window<"u"&&(window.sprintf=t,window.vsprintf=r,typeof define=="function"&&define.amd&&define(function(){return{sprintf:t,vsprintf:r}}))})()});var pa=Ae((FG,pg)=>{"use strict";pg.exports=vs;vs.CAPTURING_PHASE=1;vs.AT_TARGET=2;vs.BUBBLING_PHASE=3;function vs(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=vs.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}vs.prototype=Object.create(Object.prototype,{constructor:{value:vs},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var af=Ae((BG,hg)=>{"use strict";var fg=pa();hg.exports=sf;function sf(){fg.call(this),this.view=null,this.detail=0}sf.prototype=Object.create(fg.prototype,{constructor:{value:sf},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var lf=Ae((UG,mg)=>{"use strict";var dg=af();mg.exports=of;function of(){dg.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}of.prototype=Object.create(dg.prototype,{constructor:{value:of},initMouseEvent:{value:function(e,t,r,n,i,s,a,o,l,u,c,p,h,f,d){switch(this.initEvent(e,t,r,n,i),this.screenX=s,this.screenY=a,this.clientX=o,this.clientY=l,this.ctrlKey=u,this.altKey=c,this.shiftKey=p,this.metaKey=h,this.button=f,f){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=d}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var cu=Ae((zG,xg)=>{"use strict";xg.exports=uu;var iN=1,sN=3,aN=4,oN=5,lN=7,uN=8,cN=9,pN=11,fN=12,hN=13,dN=14,mN=15,gN=17,xN=18,yN=19,bN=20,wN=21,vN=22,EN=23,SN=24,AN=25,CN=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],kN=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],gg={INDEX_SIZE_ERR:iN,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:sN,WRONG_DOCUMENT_ERR:aN,INVALID_CHARACTER_ERR:oN,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:lN,NOT_FOUND_ERR:uN,NOT_SUPPORTED_ERR:cN,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:pN,SYNTAX_ERR:fN,INVALID_MODIFICATION_ERR:hN,NAMESPACE_ERR:dN,INVALID_ACCESS_ERR:mN,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:gN,SECURITY_ERR:xN,NETWORK_ERR:yN,ABORT_ERR:bN,URL_MISMATCH_ERR:wN,QUOTA_EXCEEDED_ERR:vN,TIMEOUT_ERR:EN,INVALID_NODE_TYPE_ERR:SN,DATA_CLONE_ERR:AN};function uu(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=kN[e],this.name=CN[e]}uu.prototype.__proto__=Error.prototype;for(lu in gg)uf={value:gg[lu]},Object.defineProperty(uu,lu,uf),Object.defineProperty(uu.prototype,lu,uf);var uf,lu});var pu=Ae(yg=>{yg.isApiWritable=!globalThis.__domino_frozen__});var Vt=Ae(pt=>{"use strict";var Gt=cu(),er=Gt,NN=pu().isApiWritable;pt.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};pt.IndexSizeError=function(){throw new Gt(er.INDEX_SIZE_ERR)};pt.HierarchyRequestError=function(){throw new Gt(er.HIERARCHY_REQUEST_ERR)};pt.WrongDocumentError=function(){throw new Gt(er.WRONG_DOCUMENT_ERR)};pt.InvalidCharacterError=function(){throw new Gt(er.INVALID_CHARACTER_ERR)};pt.NoModificationAllowedError=function(){throw new Gt(er.NO_MODIFICATION_ALLOWED_ERR)};pt.NotFoundError=function(){throw new Gt(er.NOT_FOUND_ERR)};pt.NotSupportedError=function(){throw new Gt(er.NOT_SUPPORTED_ERR)};pt.InvalidStateError=function(){throw new Gt(er.INVALID_STATE_ERR)};pt.SyntaxError=function(){throw new Gt(er.SYNTAX_ERR)};pt.InvalidModificationError=function(){throw new Gt(er.INVALID_MODIFICATION_ERR)};pt.NamespaceError=function(){throw new Gt(er.NAMESPACE_ERR)};pt.InvalidAccessError=function(){throw new Gt(er.INVALID_ACCESS_ERR)};pt.TypeMismatchError=function(){throw new Gt(er.TYPE_MISMATCH_ERR)};pt.SecurityError=function(){throw new Gt(er.SECURITY_ERR)};pt.NetworkError=function(){throw new Gt(er.NETWORK_ERR)};pt.AbortError=function(){throw new Gt(er.ABORT_ERR)};pt.UrlMismatchError=function(){throw new Gt(er.URL_MISMATCH_ERR)};pt.QuotaExceededError=function(){throw new Gt(er.QUOTA_EXCEEDED_ERR)};pt.TimeoutError=function(){throw new Gt(er.TIMEOUT_ERR)};pt.InvalidNodeTypeError=function(){throw new Gt(er.INVALID_NODE_TYPE_ERR)};pt.DataCloneError=function(){throw new Gt(er.DATA_CLONE_ERR)};pt.nyi=function(){throw new Error("NotYetImplemented")};pt.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};pt.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
|
|
5
5
|
`+new Error().stack)};pt.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:NN})};pt.merge=function(e,t){for(var r in t)e[r]=t[r]};pt.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};pt.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};pt.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var cf=Ae((WG,wg)=>{"use strict";var Es=pa(),TN=lf(),ON=Vt();wg.exports=bg;function bg(){}bg.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var i=this._listeners[t],s=0,a=i.length;s<a;s++){var o=i[s];if(o.listener===r&&o.capture===n)return}var l={listener:r,capture:n};typeof r=="function"&&(l.f=r),i.push(l)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var i=this._listeners[t];if(i)for(var s=0,a=i.length;s<a;s++){var o=i[s];if(o.listener===r&&o.capture===n){i.length===1?this._listeners[t]=void 0:i.splice(s,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(u,c){var p=c.type,h=c.eventPhase;if(c.currentTarget=u,h!==Es.CAPTURING_PHASE&&u._handlers&&u._handlers[p]){var f=u._handlers[p],d;if(typeof f=="function")d=f.call(c.currentTarget,c);else{var m=f.handleEvent;if(typeof m!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");d=m.call(f,c)}switch(c.type){case"mouseover":d===!0&&c.preventDefault();break;case"beforeunload":default:d===!1&&c.preventDefault();break}}var g=u._listeners&&u._listeners[p];if(g){g=g.slice();for(var y=0,x=g.length;y<x;y++){if(c._immediatePropagationStopped)return;var b=g[y];if(!(h===Es.CAPTURING_PHASE&&!b.capture||h===Es.BUBBLING_PHASE&&b.capture))if(b.f)b.f.call(c.currentTarget,c);else{var v=b.listener.handleEvent;if(typeof v!="function")throw new TypeError("handleEvent property of event listener object is not a function.");v.call(b.listener,c)}}}}(!t._initialized||t._dispatching)&&ON.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var i=[],s=this.parentNode;s;s=s.parentNode)i.push(s);t.eventPhase=Es.CAPTURING_PHASE;for(var a=i.length-1;a>=0&&(n(i[a],t),!t._propagationStopped);a--);if(t._propagationStopped||(t.eventPhase=Es.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=Es.BUBBLING_PHASE;for(var o=0,l=i.length;o<l&&(n(i[o],t),!t._propagationStopped);o++);}if(t._dispatching=!1,t.eventPhase=Es.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof TN)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var pf=Ae((jG,vg)=>{"use strict";var Ci=Vt(),xn=vg.exports={valid:function(e){return Ci.assert(e,"list falsy"),Ci.assert(e._previousSibling,"previous falsy"),Ci.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){Ci.assert(xn.valid(e)&&xn.valid(t));var r=e,n=e._previousSibling,i=t,s=t._previousSibling;r._previousSibling=s,n._nextSibling=i,s._nextSibling=r,i._previousSibling=n,Ci.assert(xn.valid(e)&&xn.valid(t))},replace:function(e,t){Ci.assert(xn.valid(e)&&(t===null||xn.valid(t))),t!==null&&xn.insertBefore(t,e),xn.remove(e),Ci.assert(xn.valid(e)&&(t===null||xn.valid(t)))},remove:function(e){Ci.assert(xn.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,Ci.assert(xn.valid(e))}}}});var ff=Ae((GG,Og)=>{"use strict";Og.exports={serializeOne:MN,\u0275escapeMatchingClosingTag:kg,\u0275escapeClosingCommentTag:Ng,\u0275escapeProcessingInstructionContent:Tg};var Cg=Vt(),Ss=Cg.NAMESPACE,Eg={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},_N={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},IN={},Sg=/[&<>\u00A0]/g,Ag=/[&"<>\u00A0]/g;function DN(e){return Sg.test(e)?e.replace(Sg,t=>{switch(t){case"&":return"&";case"<":return"<";case">":return">";case"\xA0":return" "}}):e}function $N(e){return Ag.test(e)?e.replace(Ag,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"\xA0":return" "}}):e}function RN(e){var t=e.namespaceURI;return t?t===Ss.XML?"xml:"+e.localName:t===Ss.XLINK?"xlink:"+e.localName:t===Ss.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function kg(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],i=e.matchAll(new RegExp(r,"ig"));for(let s of i)n[s.index]="<";return n.join("")}var LN=/--!?>/;function Ng(e){return LN.test(e)?e.replace(/(--\!?)>/g,"$1>"):e}function Tg(e){return e.includes(">")?e.replaceAll(">",">"):e}function MN(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,i=n===Ss.HTML,s=i||n===Ss.SVG||n===Ss.MATHML?e.localName:e.tagName;r+="<"+s;for(var a=0,o=e._numattrs;a<o;a++){var l=e._attr(a);r+=" "+RN(l),l.value!==void 0&&(r+='="'+$N(l.value)+'"')}if(r+=">",!(i&&_N[s])){var u=e.serialize();Eg[s.toUpperCase()]&&(u=kg(u,s)),i&&IN[s]&&u.charAt(0)===`
|
|
6
6
|
`&&(r+=`
|
|
7
7
|
`),r+=u,r+="</"+s+">"}break;case 3:case 4:var c;t.nodeType===1&&t.namespaceURI===Ss.HTML?c=t.tagName:c="",Eg[c]||c==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=DN(e.data);break;case 8:r+="<!--"+Ng(e.data)+"-->";break;case 7:let p=Tg(e.data);r+="<?"+e.target+" "+p+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:Cg.InvalidStateError()}return r}});var Er=Ae((VG,Lg)=>{"use strict";Lg.exports=Pt;var Rg=cf(),fu=pf(),_g=ff(),ft=Vt();function Pt(){Rg.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var Hr=Pt.ELEMENT_NODE=1,hf=Pt.ATTRIBUTE_NODE=2,hu=Pt.TEXT_NODE=3,PN=Pt.CDATA_SECTION_NODE=4,FN=Pt.ENTITY_REFERENCE_NODE=5,df=Pt.ENTITY_NODE=6,Ig=Pt.PROCESSING_INSTRUCTION_NODE=7,Dg=Pt.COMMENT_NODE=8,To=Pt.DOCUMENT_NODE=9,yn=Pt.DOCUMENT_TYPE_NODE=10,Yi=Pt.DOCUMENT_FRAGMENT_NODE=11,mf=Pt.NOTATION_NODE=12,gf=Pt.DOCUMENT_POSITION_DISCONNECTED=1,xf=Pt.DOCUMENT_POSITION_PRECEDING=2,yf=Pt.DOCUMENT_POSITION_FOLLOWING=4,$g=Pt.DOCUMENT_POSITION_CONTAINS=8,bf=Pt.DOCUMENT_POSITION_CONTAINED_BY=16,wf=Pt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;Pt.prototype=Object.create(Rg.prototype,{baseURI:{get:ft.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===Hr?this.parentNode:null}},hasChildNodes:{value:ft.shouldOverride},firstChild:{get:ft.shouldOverride},lastChild:{get:ft.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===Pt.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===Pt.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var i=this,s,a;if(!t.nodeType)throw new TypeError("not a node");switch(i.nodeType){case To:case Yi:case Hr:break;default:ft.HierarchyRequestError()}switch(t.isAncestor(i)&&ft.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==i&&ft.NotFoundError(),t.nodeType){case Yi:case yn:case Hr:case hu:case Ig:case Dg:break;default:ft.HierarchyRequestError()}if(i.nodeType===To)switch(t.nodeType){case hu:ft.HierarchyRequestError();break;case Yi:switch(t._countChildrenOfType(hu)>0&&ft.HierarchyRequestError(),t._countChildrenOfType(Hr)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===yn&&ft.HierarchyRequestError(),a=r.nextSibling;a!==null;a=a.nextSibling)a.nodeType===yn&&ft.HierarchyRequestError();s=i._countChildrenOfType(Hr),n?s>0&&ft.HierarchyRequestError():(s>1||s===1&&r.nodeType!==Hr)&&ft.HierarchyRequestError();break;default:ft.HierarchyRequestError()}break;case Hr:if(r!==null)for(n&&r.nodeType===yn&&ft.HierarchyRequestError(),a=r.nextSibling;a!==null;a=a.nextSibling)a.nodeType===yn&&ft.HierarchyRequestError();s=i._countChildrenOfType(Hr),n?s>0&&ft.HierarchyRequestError():(s>1||s===1&&r.nodeType!==Hr)&&ft.HierarchyRequestError();break;case yn:if(r===null)i._countChildrenOfType(Hr)&&ft.HierarchyRequestError();else for(a=i.firstChild;a!==null&&a!==r;a=a.nextSibling)a.nodeType===Hr&&ft.HierarchyRequestError();s=i._countChildrenOfType(yn),n?s>0&&ft.HierarchyRequestError():(s>1||s===1&&r.nodeType!==yn)&&ft.HierarchyRequestError();break}else t.nodeType===yn&&ft.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var i=r;return i===t&&(i=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,i,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&ft.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&bf)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return gf+wf;for(var r=[],n=[],i=this;i!==null;i=i.parentNode)r.push(i);for(i=t;i!==null;i=i.parentNode)n.push(i);if(r.reverse(),n.reverse(),r[0]!==n[0])return gf+wf;i=Math.min(r.length,n.length);for(var s=1;s<i;s++)if(r[s]!==n[s])return r[s].index<n[s].index?yf:xf;return r.length<n.length?yf+bf:xf+$g}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case Hr:return this._lookupNamespacePrefix(t,this);case To:return r=this.documentElement,r?r.lookupPrefix(t):null;case df:case mf:case Yi:case yn:return null;case hf:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case Hr:return ft.shouldOverride();case To:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case df:case mf:case yn:case Yi:return null;case hf:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;ft.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&ft.WrongDocumentError()}},removeChildren:{value:ft.shouldOverride},_insertOrReplace:{value:function(t,r,n){var i=this,s,a;if(i.nodeType===Yi&&i.rooted&&ft.HierarchyRequestError(),t._childNodes&&(s=r===null?t._childNodes.length:r.index,i.parentNode===t)){var o=i.index;o<s&&s--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var l=r;l===null&&(l=t.firstChild);var u=i.rooted&&t.rooted;if(i.nodeType===Yi){for(var c=[0,n?1:0],p,h=i.firstChild;h!==null;h=p)p=h.nextSibling,c.push(h),h.parentNode=t;var f=c.length;if(n?fu.replace(l,f>2?c[2]:null):f>2&&l!==null&&fu.insertBefore(c[2],l),t._childNodes)for(c[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,c),a=2;a<f;a++)c[a]._index=c[0]+(a-2);else t._firstChild===r&&(f>2?t._firstChild=c[2]:n&&(t._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,t.rooted)for(t.modify(),a=2;a<f;a++)t.doc.mutateInsert(c[a])}else{if(r===i)return;u?i._remove():i.parentNode&&i.remove(),i.parentNode=t,n?(fu.replace(l,i),t._childNodes?(i._index=s,t._childNodes[s]=i):t._firstChild===r&&(t._firstChild=i)):(l!==null&&fu.insertBefore(i,l),t._childNodes?(i._index=s,t._childNodes.splice(s,0,i)):t._firstChild===r&&(t._firstChild=i)),u?(t.modify(),t.doc.mutateMove(i)):t.rooted&&(t.modify(),t.doc.mutateInsert(i))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===Pt.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===Pt.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=_g.serializeOne(t,this);return e}},outerHTML:{get:function(){return _g.serializeOne(this,{nodeType:0})},set:ft.nyi},ELEMENT_NODE:{value:Hr},ATTRIBUTE_NODE:{value:hf},TEXT_NODE:{value:hu},CDATA_SECTION_NODE:{value:PN},ENTITY_REFERENCE_NODE:{value:FN},ENTITY_NODE:{value:df},PROCESSING_INSTRUCTION_NODE:{value:Ig},COMMENT_NODE:{value:Dg},DOCUMENT_NODE:{value:To},DOCUMENT_TYPE_NODE:{value:yn},DOCUMENT_FRAGMENT_NODE:{value:Yi},NOTATION_NODE:{value:mf},DOCUMENT_POSITION_DISCONNECTED:{value:gf},DOCUMENT_POSITION_PRECEDING:{value:xf},DOCUMENT_POSITION_FOLLOWING:{value:yf},DOCUMENT_POSITION_CONTAINS:{value:$g},DOCUMENT_POSITION_CONTAINED_BY:{value:bf},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:wf}})});var Pg=Ae((XG,Mg)=>{"use strict";Mg.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var Bg=Ae((KG,Fg)=>{"use strict";function BN(e){return this[e]||null}function UN(e){return e||(e=[]),e.item=BN,e}Fg.exports=UN});var As=Ae((QG,Ug)=>{"use strict";var vf;try{vf=Pg()}catch{vf=Bg()}Ug.exports=vf});var du=Ae((YG,Hg)=>{"use strict";Hg.exports=qg;var zg=Er(),zN=As();function qg(){zg.call(this),this._firstChild=this._childNodes=null}qg.prototype=Object.create(zg.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new zN;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var mu=Ae(Af=>{"use strict";Af.isValidName=ZN;Af.isValidQName=XN;var qN=/^[_:A-Za-z][-.:\w]+$/,HN=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,Oo="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",_o="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Cs="["+Oo+"]["+_o+"]*",Ef=Oo+":",Sf=_o+":",WN=new RegExp("^["+Ef+"]["+Sf+"]*$"),jN=new RegExp("^("+Cs+"|"+Cs+":"+Cs+")$"),Wg=/[\uD800-\uDB7F\uDC00-\uDFFF]/,jg=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,Gg=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;Oo+="\uD800-\u{EFC00}-\uDFFF";_o+="\uD800-\u{EFC00}-\uDFFF";Cs="["+Oo+"]["+_o+"]*";Ef=Oo+":";Sf=_o+":";var GN=new RegExp("^["+Ef+"]["+Sf+"]*$"),VN=new RegExp("^("+Cs+"|"+Cs+":"+Cs+")$");function ZN(e){if(qN.test(e)||WN.test(e))return!0;if(!Wg.test(e)||!GN.test(e))return!1;var t=e.match(jg),r=e.match(Gg);return r!==null&&2*r.length===t.length}function XN(e){if(HN.test(e)||jN.test(e))return!0;if(!Wg.test(e)||!VN.test(e))return!1;var t=e.match(jg),r=e.match(Gg);return r!==null&&2*r.length===t.length}});var kf=Ae(Cf=>{"use strict";var Vg=Vt();Cf.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(i){t[i.value||i]=i.alias||i});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var i=this._getattr(e.name);return i===null?r:(i=t[i.toLowerCase()],i!==void 0?i:n!==null?n:i)},set:function(i){this._setattr(e.name,i)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(i){i?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return KN(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(i){e.treatNullAsEmptyString&&i===null&&(i=""),this._setattr(e.name,i)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function KN(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){Vg.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",i=e.type==="limited unsigned long with fallback",s=e.min,a=e.max,o=e.setmin;return s===void 0&&(r&&(s=0),n&&(s=-2147483648),i&&(s=1)),a===void 0&&(r||n||i)&&(a=2147483647),{get:function(){var l=this._getattr(e.name),u=e.float?parseFloat(l):parseInt(l,10);if(l===null||!isFinite(u)||s!==void 0&&u<s||a!==void 0&&u>a)return t.call(this);if(r||n||i){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(l))return t.call(this);u=u|0}return u},set:function(l){e.float||(l=Math.floor(l)),o!==void 0&&l<o&&Vg.IndexSizeError(e.name+" set to "+l),r?l=l<0||l>2147483647?t.call(this):l|0:i?l=l<1||l>2147483647?t.call(this):l|0:n&&(l=l<-2147483648||l>2147483647?t.call(this):l|0),this._setattr(e.name,String(l))}}}Cf.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var Kg=Ae((tV,Xg)=>{"use strict";Xg.exports=Zg;var QN=Er();function Zg(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}Zg.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===QN.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var Tf=Ae((rV,Jg)=>{"use strict";var Nf=Vt();Jg.exports=Yg;function Yg(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(Yg.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=fa(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=fa(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=fa(this),t=0,r=arguments.length;t<r;t++){var n=Io(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=fa(this),t=0,r=arguments.length;t<r;t++){var n=Io(arguments[t]),i=e.indexOf(n);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(t,r){return t=Io(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&Nf.SyntaxError(),t=Io(t),r=Io(r);var n=fa(this),i=n.indexOf(t);if(i<0)return!1;var s=n.indexOf(r);return s<0?n[i]=r:i<s?(n[i]=r,n.splice(s,1)):n.splice(i,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(Qg(this,e),this._setString(e.join(" ").trim())):Qg(this,fa(this)),this._lastStringValue=this._getString()}}});function Qg(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function Io(e){return e=String(e),e===""&&Nf.SyntaxError(),/[ \t\r\n\f]/.test(e)&&Nf.InvalidCharacterError(),e}function YN(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function fa(e){var t=e._getString();if(t===e._lastStringValue)return YN(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(i){var s="$"+i;return n[s]?!1:(n[s]=!0,!0)})}});var bu=Ae((ma,s2)=>{"use strict";var gu=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),JN=function(e,t){return e.compareDocumentPosition(t)},eT=function(e,t){return JN(e,t)&2?1:-1},yu=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},da=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},tT=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},rT=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},ha=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},e2=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(Oe.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var i=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(i):String.fromCharCode(i)})):Oe.ident.test(e)?Ji(e):e},Ji=function(e){return e.replace(Oe.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},nT=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),r2=function(e,t){var r=Oe.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},Wr=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},t2=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},iT=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},Of=function(e,t,r){var n=iT(e),i=n.group,s=n.offset,a=r?rT:tT,o=r?da:yu;return function(l){if(ha(l))for(var u=a(l.parentNode),c=0;u;){if(t(u,l)&&c++,u===l)return c-=s,i&&c?c%i===0&&c<0==i<0:!c;u=o(u)}}},gr={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=n2[t],function(i){var s;switch(e){case"for":s=i.htmlFor;break;case"class":s=i.className,s===""&&i.getAttribute("class")==null&&(s=null);break;case"href":case"src":s=i.getAttribute(e,2);break;case"title":s=i.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(i.getAttribute){s=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;s=i[e]!=null?i[e]:i.getAttribute&&i.getAttribute(e);break}if(s!=null)return s=s+"",n&&(s=s.toLowerCase(),r=r.toLowerCase()),t(s,r)}},":first-child":function(e){return!da(e)&&ha(e)},":last-child":function(e){return!yu(e)&&ha(e)},":only-child":function(e){return!da(e)&&!yu(e)&&ha(e)},":nth-child":function(e,t){return Of(e,function(){return!0},t)},":nth-last-child":function(e){return gr[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=If(e);return function(r){return!t(r)}},":first-of-type":function(e){if(ha(e)){for(var t=e.nodeName;e=da(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(ha(e)){for(var t=e.nodeName;e=yu(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return gr[":first-of-type"](e)&&gr[":last-of-type"](e)},":nth-of-type":function(e,t){return Of(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return gr[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!gr[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===gu.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return If(e)},":matches":function(e){return gr[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),i=If(r.join(","));return Of(n,i,t)},":nth-last-match":function(e){return gr[":nth-match"](e,!0)},":links-here":function(e){return e+""==gu.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===gu.location.host;var t=+e+1;return function(r){if(r.href){var n=gu.location+"",i=r+"";return t2(n,t)===t2(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!gr[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!gr[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!gr[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return i2(e,t).length>0}}},n2={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,i,s;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(i=e[r-1],s=e[r+t.length],(!i||i===" ")&&(!s||s===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},Do={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=da(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=da(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(i){for(var s=i.ownerDocument,a=s.getElementsByTagName("*"),o=a.length;o--;)if(r=a[o],n.test(i))return r=null,!0;r=null}return n.combinator=function(i){if(!(!r||!r.getAttribute)){var s=r.getAttribute(t)||"";if(s[0]==="#"&&(s=s.substring(1)),s===i.id&&e(r))return r}},n}},Oe={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};Oe.cssid=Wr(Oe.cssid,"nonascii",Oe.nonascii);Oe.cssid=Wr(Oe.cssid,"escape",Oe.escape);Oe.qname=Wr(Oe.qname,"cssid",Oe.cssid);Oe.simple=Wr(Oe.simple,"cssid",Oe.cssid);Oe.ref=Wr(Oe.ref,"cssid",Oe.cssid);Oe.attr=Wr(Oe.attr,"cssid",Oe.cssid);Oe.pseudo=Wr(Oe.pseudo,"cssid",Oe.cssid);Oe.inside=Wr(Oe.inside,`[^"'>]*`,Oe.inside);Oe.attr=Wr(Oe.attr,"inside",r2("\\[","\\]"));Oe.pseudo=Wr(Oe.pseudo,"inside",r2("\\(","\\)"));Oe.simple=Wr(Oe.simple,"pseudo",Oe.pseudo);Oe.simple=Wr(Oe.simple,"attr",Oe.attr);Oe.ident=Wr(Oe.ident,"cssid",Oe.cssid);Oe.str_escape=Wr(Oe.str_escape,"escape",Oe.escape);var $o=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],i=[],s,a,o,l,u;t;){if(o=Oe.qname.exec(t))t=t.substring(o[0].length),a=Ji(o[1]),i.push(xu(a,!0));else if(o=Oe.simple.exec(t))t=t.substring(o[0].length),a="*",i.push(xu(a,!0)),i.push(xu(o));else throw new SyntaxError("Invalid selector.");for(;o=Oe.simple.exec(t);)t=t.substring(o[0].length),i.push(xu(o));if(t[0]==="!"&&(t=t.substring(1),s=aT(),s.qname=a,i.push(s.simple)),o=Oe.ref.exec(t)){t=t.substring(o[0].length),u=Do.ref(_f(i),Ji(o[1])),n.push(u.combinator),i=[];continue}if(o=Oe.combinator.exec(t)){if(t=t.substring(o[0].length),l=o[1]||o[2]||o[3],l===","){n.push(Do.noop(_f(i)));break}}else l="noop";if(!Do[l])throw new SyntaxError("Bad combinator.");n.push(Do[l](_f(i))),i=[]}return r=sT(n),r.qname=a,r.sel=t,s&&(s.lname=r.qname,s.test=r,s.qname=s.qname,s.sel=r.sel,r=s),u&&(u.test=r,u.qname=r.qname,u.sel=r.sel,r=u),r},xu=function(e,t){if(t)return e==="*"?gr["*"]:gr.type(e);if(e[1])return e[1][0]==="."?gr.attr("class","~=",Ji(e[1].substring(1)),!1):gr.attr("id","=",Ji(e[1].substring(1)),!1);if(e[2])return e[3]?gr[Ji(e[2])](e2(e[3])):gr[Ji(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),gr.attr(Ji(e[4]),e[5]||"-",e2(r),n)}throw new SyntaxError("Unknown Selector.")},_f=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},sT=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},aT=function(){var e;function t(r){for(var n=r.ownerDocument,i=n.getElementsByTagName(t.lname),s=i.length;s--;)if(t.test(i[s])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},If=function(e){for(var t=$o(e),r=[t];t.sel;)t=$o(t.sel),r.push(t);return r.length<2?t:function(n){for(var i=r.length,s=0;s<i;s++)if(r[s](n))return!0}},i2=function(e,t){for(var r=[],n=$o(e),i=t.getElementsByTagName(n.qname),s=0,a;a=i[s++];)n(a)&&r.push(a);if(n.sel){for(;n.sel;)for(n=$o(n.sel),i=t.getElementsByTagName(n.qname),s=0;a=i[s++];)n(a)&&nT.call(r,a)===-1&&r.push(a);r.sort(eT)}return r};s2.exports=ma=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return i2(e,t)};ma.selectors=gr;ma.operators=n2;ma.combinators=Do;ma.matches=function(e,t){var r={sel:t};do if(r=$o(r.sel),r(e))return!0;while(r.sel);return!1}});var wu=Ae((nV,a2)=>{"use strict";var oT=Er(),lT=pf(),Df=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var i=t[n],s=i instanceof oT;r.appendChild(s?i:e.createTextNode(String(i)))}return r},uT={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=Df(this.doc,t);r.insertBefore(i,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(a){return a===n});)n=n.previousSibling;var i=Df(this.doc,t),s=n?n.nextSibling:r.firstChild;r.insertBefore(i,s)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),lT.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=Df(this.doc,t);this.parentNode===r?r.replaceChild(i,this):r.insertBefore(i,n)}}}};a2.exports=uT});var $f=Ae((iV,l2)=>{"use strict";var o2=Er(),cT={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===o2.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===o2.ELEMENT_NODE)return e}return null}}};l2.exports=cT});var Rf=Ae((sV,c2)=>{"use strict";c2.exports=u2;var ga=Vt();function u2(e){this.element=e}Object.defineProperties(u2.prototype,{length:{get:ga.shouldOverride},item:{value:ga.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:ga.nyi},setNamedItemNS:{value:ga.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;ga.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;ga.NotFoundError()}}})});var ya=Ae((aV,m2)=>{"use strict";m2.exports=es;var Lf=mu(),qt=Vt(),si=qt.NAMESPACE,Eu=kf(),Ln=Er(),Mf=As(),pT=ff(),vu=Kg(),xa=cu(),fT=Tf(),Pf=bu(),f2=du(),hT=wu(),dT=$f(),h2=Rf(),p2=Object.create(null);function es(e,t,r,n){f2.call(this),this.nodeType=Ln.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Ff(e,t){if(e.nodeType===Ln.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)Ff(e.childNodes[r],t)}es.prototype=Object.create(f2.prototype,{isHTML:{get:function(){return this.namespaceURI===si.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=p2[t];r||(p2[t]=r=qt.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return Ff(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return Ff(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:qt.nyi},outerHTML:{get:function(){return pT.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Ln.DOCUMENT_NODE&&qt.NoModificationAllowedError(),r.nodeType===Ln.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var i=this.parentNode;return i===null?null:i.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return qt.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Ln.ELEMENT_NODE)throw new TypeError("not an element");return t=qt.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=qt.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=qt.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Ln.DOCUMENT_NODE)&&qt.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:qt.SyntaxError()}(!(n instanceof es)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===si.HTML)&&(n=n.ownerDocument.createElementNS(si.HTML,"body"));var i=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);i.parse(r,!0),this._insertAdjacent(t,i._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new d2(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new Uf(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Ln.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Ln.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=mT(t):r=Bf(t),new vu(this,r)):new Mf}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=Bf(r):r==="*"?n=gT(t):n=xT(t,r),new vu(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new Mf;return r}return t=t.split(/[ \t\r\n\f]+/),new vu(this,yT(t))}},getElementsByName:{value:function(t){return new vu(this,bT(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==si.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var i=this._attrKeys[r],s=this._attrsByLName[i],a=s.cloneNode();a._setOwnerElement(t),t._attrsByLName[i]=a,t._addQName(a)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(!t.hasAttributeNS(i.namespaceURI,i.localName)||t.getAttributeNS(i.namespaceURI,i.localName)!==i.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,i=this._numattrs;n<i;n++){var s=this._attr(n);if(s.prefix==="xmlns"&&s.value===t&&r.lookupNamespaceURI(s.localName)===t)return s.localName}var a=this.parentElement;return a?a._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(i.namespaceURI===si.XMLNS&&(i.prefix==="xmlns"&&i.localName===t||t===null&&i.prefix===null&&i.localName==="xmlns"))return i.value||null}var s=this.parentElement;return s?s.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=qt.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=qt.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),Lf.isValidName(t)||qt.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=qt.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],i;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),i=!0),n.value=r,this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),Lf.isValidName(t)||qt.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=qt.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var i=r.indexOf(":"),s,a;i<0?(s=null,a=r):(s=r.substring(0,i),a=r.substring(i+1)),(t===""||t===void 0)&&(t=null);var o=(t===null?"":t)+"|"+a,l=this._attrsByLName[o],u;l||(l=new Ro(this,a,s,t),u=!0,this._attrsByLName[o]=l,this._attributes&&(this._attributes[this._attrKeys.length]=l),this._attrKeys.push(o),this._addQName(l)),l.value=n,u&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),Lf.isValidQName(r)||qt.InvalidCharacterError();var i=r.indexOf(":"),s=i<0?null:r.substring(0,i);(s!==null&&t===null||s==="xml"&&t!==si.XML||(r==="xmlns"||s==="xmlns")&&t!==si.XMLNS||t===si.XMLNS&&!(r==="xmlns"||s==="xmlns"))&&qt.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new xa(xa.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(i){return i===t}))return t;if(t.ownerElement!==null)throw new xa(xa.INUSE_ATTRIBUTE_ERR);n.forEach(function(i){this.removeAttributeNode(i)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new xa(xa.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,i=this._attrsByLName[n];return i&&this.removeAttributeNode(i),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),i||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=qt.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,i=(n===null?"":n)+"|"+r.localName;this._attrsByLName[i]=void 0;var s=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,s,1),this._attributes[t]=void 0),this._attrKeys.splice(s,1);var a=r.onchange;r._setOwnerElement(null),a&&a.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,i=this._attrsByLName[n];if(i){this._attrsByLName[n]=void 0;var s=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,s,1),this._attrKeys.splice(s,1),this._removeQName(i);var a=i.onchange;i._setOwnerElement(null),a&&a.call(i,this,i.localName,i.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(i)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&qt.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],i;n||(n=this._newattr(t),i=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new Ro(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);qt.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else qt.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:Eu.property({name:"id"}),className:Eu.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new fT(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return Pf.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Ln.ELEMENT_NODE);return null}},querySelector:{value:function(e){return Pf(e,this)[0]}},querySelectorAll:{value:function(e){var t=Pf(e,this);return t.item?t:new Mf(t)}}});Object.defineProperties(es.prototype,hT);Object.defineProperties(es.prototype,dT);Eu.registerChangeHandler(es,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});Eu.registerChangeHandler(es,"class",function(e,t,r,n){e._classList&&e._classList._update()});function Ro(e,t,r,n,i){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=i,this._setOwnerElement(e)}Ro.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new Ro(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Ln.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});es._Attr=Ro;function Uf(e){h2.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}Uf.prototype=Object.create(h2.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(Uf.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function d2(e){this.element=e,this.updateCache()}d2.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var i=this.element.firstChild;i!==null;i=i.nextSibling)if(i.nodeType===Ln.ELEMENT_NODE){this[this.childrenByNumber.length]=i,this.childrenByNumber.push(i);var s=i.getAttribute("id");s&&!this.childrenByName[s]&&(this.childrenByName[s]=i);var a=i.getAttribute("name");a&&this.element.namespaceURI===si.HTML&&t.test(this.element.localName)&&!this.childrenByName[a]&&(this.childrenByName[s]=i)}}}}});function Bf(e){return function(t){return t.localName===e}}function mT(e){var t=qt.toASCIILowerCase(e);return t===e?Bf(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function gT(e){return function(t){return t.namespaceURI===e}}function xT(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function yT(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function bT(e){return function(t){return t.namespaceURI!==si.HTML?!1:t.getAttribute("name")===e}}});var zf=Ae((oV,w2)=>{"use strict";w2.exports=b2;var x2=Er(),wT=As(),y2=Vt(),g2=y2.HierarchyRequestError,vT=y2.NotFoundError;function b2(){x2.call(this)}b2.prototype=Object.create(x2.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");g2()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");g2()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");vT()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new wT),this._childNodes}}})});var Lo=Ae((lV,S2)=>{"use strict";S2.exports=Su;var E2=zf(),v2=Vt(),ET=wu(),ST=$f();function Su(){E2.call(this)}Su.prototype=Object.create(E2.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&v2.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var i=this.data,s=i.length;t=t>>>0,r=r>>>0,n=String(n),(t>s||t<0)&&v2.IndexSizeError(),t+r>s&&(r=s-t);var a=i.substring(0,t),o=i.substring(t+r);this.data=a+n+o}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(Su.prototype,ET);Object.defineProperties(Su.prototype,ST)});var Hf=Ae((uV,N2)=>{"use strict";N2.exports=qf;var A2=Vt(),C2=Er(),k2=Lo();function qf(e,t){k2.call(this),this.nodeType=C2.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var Mo={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};qf.prototype=Object.create(k2.prototype,{nodeName:{value:"#text"},nodeValue:Mo,textContent:Mo,innerText:Mo,data:{get:Mo.get,set:function(e){Mo.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&A2.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var i=this.parentNode;return i!==null&&i.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===C2.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:A2.nyi},clone:{value:function(){return new qf(this.ownerDocument,this._data)}}})});var jf=Ae((cV,O2)=>{"use strict";O2.exports=Wf;var AT=Er(),T2=Lo();function Wf(e,t){T2.call(this),this.nodeType=AT.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Po={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Wf.prototype=Object.create(T2.prototype,{nodeName:{value:"#comment"},nodeValue:Po,textContent:Po,innerText:Po,data:{get:Po.get,set:function(e){Po.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Wf(this.ownerDocument,this._data)}}})});var Vf=Ae((pV,D2)=>{"use strict";D2.exports=Gf;var CT=Er(),kT=As(),I2=du(),Au=ya(),NT=bu(),_2=Vt();function Gf(e){I2.call(this),this.nodeType=CT.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}Gf.prototype=Object.create(I2.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(Au.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(Au.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=Au.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(Au.prototype,"firstElementChild").get;var r=NT(e,t);return r.item?r:new kT(r)}},clone:{value:function(){return new Gf(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:_2.nyi},outerHTML:{get:function(){return this.serialize()},set:_2.nyi}})});var Xf=Ae((fV,R2)=>{"use strict";R2.exports=Zf;var TT=Er(),$2=Lo();function Zf(e,t,r){$2.call(this),this.nodeType=TT.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var Fo={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Zf.prototype=Object.create($2.prototype,{nodeName:{get:function(){return this.target}},nodeValue:Fo,textContent:Fo,innerText:Fo,data:{get:Fo.get,set:function(e){Fo.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Zf(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Bo=Ae((hV,L2)=>{"use strict";var Kf={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};L2.exports=Kf.constructor=Kf.prototype=Kf});var Yf=Ae((mV,P2)=>{"use strict";var dV=P2.exports={nextSkippingChildren:OT,nextAncestorSibling:Qf,next:_T,previous:IT,deepLastChild:M2};function OT(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:Qf(e,t)}function Qf(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function _T(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:Qf(e,t))}function M2(e){for(;e.lastChild;)e=e.lastChild;return e}function IT(e,t){var r;return r=e.previousSibling,r!==null?M2(r):(r=e.parentNode,r===t?null:r)}});var W2=Ae((gV,H2)=>{"use strict";H2.exports=q2;var DT=Er(),Sr=Bo(),F2=Yf(),z2=Vt(),Jf={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},eh={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function B2(e,t){var r,n,i,s,a;for(n=e._currentNode[Jf[t]];n!==null;){if(s=e._internalFilter(n),s===Sr.FILTER_ACCEPT)return e._currentNode=n,n;if(s===Sr.FILTER_SKIP&&(r=n[Jf[t]],r!==null)){n=r;continue}for(;n!==null;){if(a=n[eh[t]],a!==null){n=a;break}if(i=n.parentNode,i===null||i===e.root||i===e._currentNode)return null;n=i}}return null}function U2(e,t){var r,n,i;if(r=e._currentNode,r===e.root)return null;for(;;){for(i=r[eh[t]];i!==null;){if(r=i,n=e._internalFilter(r),n===Sr.FILTER_ACCEPT)return e._currentNode=r,r;i=r[Jf[t]],(n===Sr.FILTER_REJECT||i===null)&&(i=r[eh[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===Sr.FILTER_ACCEPT)return null}}function q2(e,t,r){(!e||!e.nodeType)&&z2.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(q2.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof DT))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&z2.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return Sr.FILTER_SKIP;if(n=this._filter,n===null)r=Sr.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===Sr.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return B2(this,"first")}},lastChild:{value:function(){return B2(this,"last")}},previousSibling:{value:function(){return U2(this,"previous")}},nextSibling:{value:function(){return U2(this,"next")}},previousNode:{value:function(){var t,r,n,i;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==Sr.FILTER_REJECT){for(i=t.lastChild;i&&(t=i,r=this._internalFilter(t),r!==Sr.FILTER_REJECT);i=t.lastChild);if(r===Sr.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===Sr.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,i;t=this._currentNode,r=Sr.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===Sr.FILTER_ACCEPT)return this._currentNode=t,t;if(r===Sr.FILTER_REJECT)break}for(i=F2.nextSkippingChildren(t,this.root);i;i=F2.nextSkippingChildren(t,this.root)){if(t=i,r=this._internalFilter(t),r===Sr.FILTER_ACCEPT)return this._currentNode=t,t;if(r===Sr.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var K2=Ae((xV,X2)=>{"use strict";X2.exports=Z2;var th=Bo(),rh=Yf(),V2=Vt();function $T(e,t,r){return r?rh.next(e,t):e===t?null:rh.previous(e,null)}function j2(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function G2(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=$T(r,e._root,t),r===null)return null;var i=e._internalFilter(r);if(i===th.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function Z2(e,t,r){(!e||!e.nodeType)&&V2.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(Z2.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&V2.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return th.FILTER_SKIP;if(n=this._filter,n===null)r=th.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!j2(t,this._root)&&j2(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=rh.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return G2(this,!0)}},previousNode:{value:function(){return G2(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var Cu=Ae((yV,Q2)=>{"use strict";Q2.exports=Ar;function Ar(e){if(!e)return Object.create(Ar.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=Ar.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(Ar.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(Ar.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}Ar.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;Ar.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;Ar.portPattern=/:\d+$/;Ar.authorityPattern=/^[^:\/?#]+:\/\//;Ar.hierarchyPattern=/^[^:\/?#]+:\//;Ar.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};Ar.prototype={constructor:Ar,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return Ar.authorityPattern.test(this.url)},isHierarchical:function(){return Ar.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new Ar(e),n=new Ar;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=s(r.path):(n.path=i(t.path,r.path),n.path=s(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function i(a,o){if(t.host!==void 0&&!t.path)return"/"+o;var l=a.lastIndexOf("/");return l===-1?o:a.substring(0,l+1)+o}function s(a){if(!a)return a;for(var o="";a.length>0;){if(a==="."||a===".."){a="";break}var l=a.substring(0,2),u=a.substring(0,3),c=a.substring(0,4);if(u==="../")a=a.substring(3);else if(l==="./")a=a.substring(2);else if(u==="/./")a="/"+a.substring(3);else if(l==="/."&&a.length===2)a="/";else if(c==="/../"||u==="/.."&&a.length===3)a="/"+a.substring(4),o=o.replace(/\/?[^\/]*$/,"");else{var p=a.match(/(\/?([^\/]*))/)[0];o+=p,a=a.substring(p.length)}}return o}}}});var ex=Ae((bV,J2)=>{"use strict";J2.exports=nh;var Y2=pa();function nh(e,t){Y2.call(this,e,t)}nh.prototype=Object.create(Y2.prototype,{constructor:{value:nh}})});var ih=Ae((wV,tx)=>{"use strict";tx.exports={Event:pa(),UIEvent:af(),MouseEvent:lf(),CustomEvent:ex()}});var nx=Ae(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.hyphenate=ba.parse=void 0;function RT(e){let t=[],r=0,n=0,i=0,s=0,a=0,o=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&e.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&e.charCodeAt(r-1)!==92&&(i=0);break;case 58:!o&&n===0&&i===0&&(o=rx(e.substring(a,r-1).trim()),s=r);break;case 59:if(o&&s>0&&n===0&&i===0){let u=e.substring(s,r-1).trim();t.push(o,u),a=r,s=0,o=null}break}if(o&&s){let l=e.slice(s).trim();t.push(o,l)}return t}ba.parse=RT;function rx(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}ba.hyphenate=rx});var ku=Ae((EV,lx)=>{"use strict";var{parse:LT}=nx();lx.exports=function(e){let t=new ox(e),r={get:function(n,i){return i in n?n[i]:n.getPropertyValue(ix(i))},has:function(n,i){return!0},set:function(n,i,s){return i in n?n[i]=s:n.setProperty(ix(i),s??void 0),!0}};return new Proxy(t,r)};function ix(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ox(e){this._element=e}var sx="!important";function ax(e){let t={property:{},priority:{}};if(!e)return t;let r=LT(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let i=r[n],s=r[n+1];s.endsWith(sx)&&(t.priority[i]="important",s=s.slice(0,-sx.length).trim()),t.property[i]=s}return t}var wa={};ox.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=ax(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==wa&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==wa&&!/^important$/i.test(r))){var n=this._parsed;if(t===wa){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var i=ax(e+":"+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var s in i.property)n.property[s]=i.property[s],r!==wa&&(r!==""?n.priority[s]="important":n.priority[s]&&delete n.priority[s])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,wa)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,wa,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var sh=Ae((SV,ux)=>{"use strict";var xr=Cu();ux.exports=Uo;function Uo(){}Uo.prototype=Object.create(Object.prototype,{_url:{get:function(){return new xr(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,xr.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,xr.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,xr.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,xr.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,xr.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new xr(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,xr.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,xr.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new xr(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,xr.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Uo._inherit=function(e){Object.getOwnPropertyNames(Uo.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Uo.prototype,t);Object.defineProperty(e,t,r)}})}});var ah=Ae((AV,fx)=>{"use strict";var cx=kf(),MT=pu().isApiWritable;fx.exports=function(e,t,r,n){var i=e.ctor;if(i){var s=e.props||{};if(e.attributes)for(var a in e.attributes){var o=e.attributes[a];(typeof o!="object"||Array.isArray(o))&&(o={type:o}),o.name||(o.name=a.toLowerCase()),s[a]=cx.property(o)}s.constructor={value:i,writable:MT},i.prototype=Object.create((e.superclass||t).prototype,s),e.events&&FT(i,e.events),r[e.name]=i}else i=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(l){n[l]=i}),i};function px(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}px.prototype.build=function(){return()=>{}};function PT(e,t,r,n){var i=e.ownerDocument||Object.create(null),s=e.form||Object.create(null);e[t]=new px(n,i,s,e).build()}function FT(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(i){this._setEventHandler(n,i)}}),cx.registerChangeHandler(e,"on"+n,PT)})}});var Ou=Ae(Tu=>{"use strict";var oh=Er(),hx=ya(),BT=ku(),rn=Vt(),dx=sh(),UT=ah(),ki=Tu.elements={},zo=Object.create(null);Tu.createElement=function(e,t,r){var n=zo[t]||qT;return new n(e,t,r)};function pe(e){return UT(e,be,ki,zo)}function Zt(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function Nu(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var va={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},zT={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Mn=function(e,t,r){be.call(this,e,t,r),this._form=null},be=Tu.HTMLElement=pe({superclass:hx,name:"HTMLElement",ctor:function(t,r,n){hx.call(this,t,r,rn.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof zo.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new BT(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:rn.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in zT||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),qT=pe({name:"HTMLUnknownElement",ctor:function(t,r,n){be.call(this,t,r,n)}}),Pn={form:{get:function(){return this._form}}};pe({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:Zt,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:va,coords:String,charset:String,name:String,rev:String,shape:String}});dx._inherit(zo.a.prototype);pe({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:Zt,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:va,noHref:Boolean}});dx._inherit(zo.area.prototype);pe({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{clear:String}});pe({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{target:String}});pe({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){be.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});pe({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:Zt,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});pe({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{compact:Boolean}});pe({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{value:String}});pe({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){be.call(this,t,r,n)}});pe({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{open:Boolean}});pe({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{align:String}});pe({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{src:Zt,type:String,width:String,height:String,align:String,name:String}});pe({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{disabled:Boolean,name:String}});pe({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});pe({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});pe({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){be.call(this,t,r,n)}});pe({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{align:String}});pe({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{xmlns:Zt,version:String}});pe({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{src:Zt,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:va,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:Zt,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});pe({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{alt:String,src:Zt,srcset:String,crossOrigin:Nu,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:va,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:Zt,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:Zt,border:{type:String,treatNullAsEmptyString:!0}}});pe({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:{form:Pn.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:Zt,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});pe({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});pe({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});pe({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{htmlFor:{name:"for",type:String}}});pe({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{align:String}});pe({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{href:Zt,rel:String,media:String,hreflang:String,type:String,crossOrigin:Nu,nonce:String,integrity:String,referrerPolicy:va,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});pe({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{name:String}});pe({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});pe({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});pe({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn});pe({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{cite:Zt,dateTime:String}});pe({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===oh.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});pe({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{data:Zt,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:Zt,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});pe({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});pe({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===oh.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});pe({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{name:String}});pe({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{align:String}});pe({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});pe({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});pe({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:Pn,attributes:{max:{type:Number,float:!0,default:1,min:0}}});pe({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{cite:Zt}});pe({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===oh.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:Zt,type:String,charset:String,referrerPolicy:va,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:Nu,nonce:String,integrity:String}});pe({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:{form:Pn.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});pe({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){be.call(this,t,r,n)}});pe({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});pe({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{align:String}});pe({name:"HTMLTableCellElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});pe({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});pe({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});pe({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){be.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});pe({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});pe({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});pe({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Mn.call(this,t,r,n)},props:{form:Pn.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});pe({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});pe({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});pe({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});pe({name:"HTMLMediaElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{src:Zt,crossOrigin:Nu,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});pe({name:"HTMLAudioElement",tag:"audio",superclass:ki.HTMLMediaElement,ctor:function(t,r,n){ki.HTMLMediaElement.call(this,t,r,n)}});pe({name:"HTMLVideoElement",tag:"video",superclass:ki.HTMLMediaElement,ctor:function(t,r,n){ki.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:Zt,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});pe({tag:"td",name:"HTMLTableDataCellElement",superclass:ki.HTMLTableCellElement,ctor:function(t,r,n){ki.HTMLTableCellElement.call(this,t,r,n)}});pe({tag:"th",name:"HTMLTableHeaderCellElement",superclass:ki.HTMLTableCellElement,ctor:function(t,r,n){ki.HTMLTableCellElement.call(this,t,r,n)}});pe({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){be.call(this,t,r,n)}});pe({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){be.call(this,t,r,n)}});pe({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{getContext:{value:rn.nyi},probablySupportsContext:{value:rn.nyi},setContext:{value:rn.nyi},transferControlToProxy:{value:rn.nyi},toDataURL:{value:rn.nyi},toBlob:{value:rn.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});pe({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{show:{value:rn.nyi},showModal:{value:rn.nyi},close:{value:rn.nyi}},attributes:{open:Boolean,returnValue:String}});pe({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){be.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:Zt,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});pe({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:Zt,type:String,width:String,height:String}});pe({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{src:Zt,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:rn.nyi},track:{get:rn.nyi}}});pe({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});pe({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){be.call(this,t,r,n)},attributes:{compact:Boolean}});pe({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var ch=Ae(_u=>{"use strict";var mx=ya(),HT=ah(),WT=Vt(),jT=ku(),GT=_u.elements={},gx=Object.create(null);_u.createElement=function(e,t,r){var n=gx[t]||uh;return new n(e,t,r)};function lh(e){return HT(e,uh,GT,gx)}var uh=lh({superclass:mx,name:"SVGElement",ctor:function(t,r,n){mx.call(this,t,r,WT.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new jT(this)),this._style}}}});lh({name:"SVGSVGElement",ctor:function(t,r,n){uh.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return _u.createElement(this.ownerDocument,"rect",null)}}}});lh({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var yx=Ae((NV,xx)=>{"use strict";xx.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var Du=Ae((TV,Tx)=>{"use strict";Tx.exports=Ho;var Ir=Er(),VT=As(),Ax=du(),ts=ya(),ZT=Hf(),XT=jf(),qo=pa(),KT=Vf(),QT=Xf(),YT=Wo(),JT=W2(),eO=K2(),bx=Bo(),wx=Cu(),vx=bu(),tO=ih(),Iu=mu(),ph=Ou(),rO=ch(),ot=Vt(),Ea=yx(),Aa=ot.NAMESPACE,fh=pu().isApiWritable;function Ho(e,t){Ax.call(this),this.nodeType=Ir.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new YT(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var nO={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},iO={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},Sa=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var i=e.call(this);i&&(i[t]=n)}}};function Ex(e,t){var r,n,i;return e===""&&(e=null),Iu.isValidQName(t)||ot.InvalidCharacterError(),r=null,n=t,i=t.indexOf(":"),i>=0&&(r=t.substring(0,i),n=t.substring(i+1)),r!==null&&e===null&&ot.NamespaceError(),r==="xml"&&e!==Aa.XML&&ot.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Aa.XMLNS&&ot.NamespaceError(),e===Aa.XMLNS&&!(r==="xmlns"||t==="xmlns")&&ot.NamespaceError(),{namespace:e,prefix:r,localName:n}}Ho.prototype=Object.create(Ax.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new qo(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:ot.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new ZT(this,String(e))}},createComment:{value:function(e){return new XT(this,e)}},createDocumentFragment:{value:function(){return new KT(this)}},createProcessingInstruction:{value:function(e,t){return(!Iu.isValidName(e)||t.indexOf("?>")!==-1)&&ot.InvalidCharacterError(),new QT(this,e,t)}},createAttribute:{value:function(e){return e=String(e),Iu.isValidName(e)||ot.InvalidCharacterError(),this.isHTML&&(e=ot.toASCIILowerCase(e)),new ts._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Ex(e,t);return new ts._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),Iu.isValidName(e)||ot.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=ot.toASCIILowerCase(e)),ph.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?ph.createElement(this,e,null):new ts(this,e,null,null)},writable:fh},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Ex(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:fh},_createElementNS:{value:function(e,t,r){return t===Aa.HTML?ph.createElement(this,e,r):t===Aa.SVG?rO.createElement(this,e,r):new ts(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=iO[t]||t,n=tO[nO[r]];if(n){var i=new n;return i._initialized=!1,i}else ot.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ir))throw new TypeError("root not a node");return t=t===void 0?bx.SHOW_ALL:+t,r=r===void 0?null:r,new JT(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ir))throw new TypeError("root not a node");return t=t===void 0?bx.SHOW_ALL:+t,r=r===void 0?null:r,new eO(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===Ir.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===Ir.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return Ir.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return Ir.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return Ir.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Ni?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Ni}},getElementsByName:{value:ts.prototype.getElementsByName},getElementsByTagName:{value:ts.prototype.getElementsByTagName},getElementsByTagNameNS:{value:ts.prototype.getElementsByTagNameNS},getElementsByClassName:{value:ts.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===Ir.DOCUMENT_NODE&&ot.NotSupportedError(),t.nodeType===Ir.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&Nx(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:fh},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:ot.nyi,set:ot.nyi},referrer:{get:ot.nyi},cookie:{get:ot.nyi,set:ot.nyi},lastModified:{get:ot.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:ot.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:Sa(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:Sa(function(){return this.body},"text",""),linkColor:Sa(function(){return this.body},"link",""),vlinkColor:Sa(function(){return this.body},"vLink",""),alinkColor:Sa(function(){return this.body},"aLink",""),bgColor:Sa(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return Sx(this.documentElement,"body")},set:ot.nyi},head:{get:function(){return Sx(this.documentElement,"head")}},images:{get:ot.nyi},embeds:{get:ot.nyi},plugins:{get:ot.nyi},links:{get:ot.nyi},forms:{get:ot.nyi},scripts:{get:ot.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:ot.nyi},outerHTML:{get:function(){return this.serialize()},set:ot.nyi},write:{value:function(e){if(this.isHTML||ot.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.372 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{m as O}from"./chunk-
|
|
4
|
+
import{m as O}from"./chunk-4UMODU6C.js";import"./chunk-I37LRPZ3.js";import{t as E,v as F,x as N}from"./chunk-MKHW3JNL.js";import"./chunk-KVVNCIJA.js";import{r as S}from"./chunk-QA2PTSOC.js";import"./chunk-WR7LRCYW.js";import{createHash as I,randomUUID as q}from"node:crypto";import{createReadStream as D}from"node:fs";import m from"node:fs/promises";import f from"node:path";var T="/__camera-fixtures/",J=new Set([".m4v",".mov",".mp4",".webm"]);function _(){console.log(`
|
|
5
5
|
rnx camera \u2014 control the simulator camera source
|
|
6
6
|
|
|
7
7
|
usage:
|