rnxsim 0.1.373 → 0.1.375
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/commands/box.ts +5 -5
- package/cli/ws-bridge.ts +5 -2
- package/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-TJXK3LYQ.js → agent-JJN7U6FR.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-IBMSADYR.js → agent-wrapper-AVVUJ3WF.js} +2 -2
- package/dist-cli/chunks/{app-fonts-PUXF6G6Y.js → app-fonts-QJ22CNAZ.js} +2 -2
- package/dist-cli/chunks/{assert-RSPGS4CF.js → assert-PZZKIY3K.js} +2 -2
- package/dist-cli/chunks/{auth-P4RWMWAM.js → auth-5AVDJO33.js} +2 -2
- package/dist-cli/chunks/{beta-HNRJDCWK.js → beta-PFRGP266.js} +2 -2
- package/dist-cli/chunks/{box-TBCAJ74I.js → box-ILC2O7ZO.js} +5 -5
- package/dist-cli/chunks/{camera-2P7A65KA.js → camera-J3V62PP7.js} +2 -2
- package/dist-cli/chunks/{chunk-NQDLJL63.js → chunk-25KRGDZT.js} +1 -1
- package/dist-cli/chunks/{chunk-GVIPHFFH.js → chunk-2BRBFLWA.js} +2 -2
- package/dist-cli/chunks/{chunk-SDY5Y6EY.js → chunk-2GXNAZHB.js} +2 -2
- package/dist-cli/chunks/{chunk-UL6KGGFA.js → chunk-2IUMRRYV.js} +2 -2
- package/dist-cli/chunks/{chunk-O5TKIMXX.js → chunk-4ALPWIMP.js} +2 -2
- package/dist-cli/chunks/{chunk-XUJ67CGZ.js → chunk-4CEZZKRY.js} +1 -1
- package/dist-cli/chunks/{chunk-PGPD6XML.js → chunk-4EUKOIAV.js} +2 -2
- package/dist-cli/chunks/{chunk-QPONDPPF.js → chunk-4IKE4YUS.js} +2 -2
- package/dist-cli/chunks/{chunk-XHSYJMBV.js → chunk-4ZXR2M3D.js} +1 -1
- package/dist-cli/chunks/{chunk-YIH24FX4.js → chunk-5CGJFU27.js} +2 -2
- package/dist-cli/chunks/{chunk-NEJ3WA75.js → chunk-5HHWECGT.js} +2 -2
- package/dist-cli/chunks/{chunk-POCPBDTJ.js → chunk-5PZVYF42.js} +1 -1
- package/dist-cli/chunks/chunk-7NCPUZ52.js +27 -0
- package/dist-cli/chunks/{chunk-ZGOWBBWX.js → chunk-7OSIJCBR.js} +2 -2
- package/dist-cli/chunks/{chunk-SK6RRDXP.js → chunk-AQ5TMOAI.js} +1 -1
- package/dist-cli/chunks/{chunk-U55C6SUH.js → chunk-BQCEI37V.js} +1 -1
- package/dist-cli/chunks/{chunk-BHNWFDNX.js → chunk-C6B5FOP3.js} +1 -1
- package/dist-cli/chunks/{chunk-EEBXLGGD.js → chunk-CCMZSHJB.js} +1 -1
- package/dist-cli/chunks/{chunk-ZMXWHNCZ.js → chunk-CX7VCKAT.js} +2 -2
- package/dist-cli/chunks/{chunk-O7NKNTJ6.js → chunk-DQUPSAHE.js} +1 -1
- package/dist-cli/chunks/{chunk-UHFVEMYL.js → chunk-DSD2UBZI.js} +2 -2
- package/dist-cli/chunks/{chunk-LEX3XST4.js → chunk-EWPAI4MO.js} +2 -2
- package/dist-cli/chunks/{chunk-O6VJVWEA.js → chunk-EZXV6U2N.js} +3 -3
- package/dist-cli/chunks/{chunk-QKX26L27.js → chunk-F5F7FIPM.js} +2 -2
- package/dist-cli/chunks/{chunk-5UMNXXVL.js → chunk-FUTYK55H.js} +3 -3
- package/dist-cli/chunks/{chunk-676FU5M6.js → chunk-FW6AN7I2.js} +1 -1
- package/dist-cli/chunks/{chunk-4ULLSYFL.js → chunk-FZDRA7Z4.js} +2 -2
- package/dist-cli/chunks/{chunk-HIFJBR5S.js → chunk-GDLE4NIV.js} +1 -1
- package/dist-cli/chunks/{chunk-TIPRUSQQ.js → chunk-GEX7RVHY.js} +1 -1
- package/dist-cli/chunks/{chunk-MTWJ3CNR.js → chunk-H4MYYOYJ.js} +2 -2
- package/dist-cli/chunks/{chunk-ADP35DA3.js → chunk-HEV7BAPE.js} +2 -2
- package/dist-cli/chunks/{chunk-MWXYYQMU.js → chunk-HNDWYCND.js} +2 -2
- package/dist-cli/chunks/{chunk-EUEQHXM2.js → chunk-HNPHODBD.js} +2 -2
- package/dist-cli/chunks/{chunk-2YNZ3GHI.js → chunk-HWDVC6YA.js} +1 -1
- package/dist-cli/chunks/{chunk-VPWI7ZQM.js → chunk-JOHJZUGG.js} +2 -2
- package/dist-cli/chunks/{chunk-OCH4TAJF.js → chunk-JWUDT4QK.js} +2 -2
- package/dist-cli/chunks/{chunk-4NBB7L3M.js → chunk-K7QQWKGE.js} +1 -1
- package/dist-cli/chunks/{chunk-45MY5YQL.js → chunk-LAOKTKT4.js} +2 -2
- package/dist-cli/chunks/{chunk-UL6JYYB3.js → chunk-LD7I266X.js} +2 -2
- package/dist-cli/chunks/{chunk-AYZLK7R4.js → chunk-LMHBU5LZ.js} +1 -1
- package/dist-cli/chunks/{chunk-4AGK7T3W.js → chunk-LSOGXSDV.js} +3 -3
- package/dist-cli/chunks/{chunk-BLOJLKH7.js → chunk-MP2GPO4T.js} +1 -1
- package/dist-cli/chunks/{chunk-5BMF3MJN.js → chunk-MXJ2UWRV.js} +1 -1
- package/dist-cli/chunks/{chunk-XOPJZBOT.js → chunk-OJNKRIZF.js} +2 -2
- package/dist-cli/chunks/{chunk-B7LYAWJU.js → chunk-PBOWUNXO.js} +2 -2
- package/dist-cli/chunks/{chunk-UFR7WANF.js → chunk-PNRJFHX4.js} +1 -1
- package/dist-cli/chunks/{chunk-CVMYEPWT.js → chunk-QJQOK34O.js} +2 -2
- package/dist-cli/chunks/{chunk-UMTP3PDW.js → chunk-RLCQLMFF.js} +2 -2
- package/dist-cli/chunks/{chunk-52NWLXHO.js → chunk-S65CK3RI.js} +1 -1
- package/dist-cli/chunks/{chunk-HSKW3YE2.js → chunk-SWBUNMQS.js} +2 -2
- package/dist-cli/chunks/{chunk-NHUVO3VC.js → chunk-SXBFGGAM.js} +1 -1
- package/dist-cli/chunks/{chunk-2272Y5HN.js → chunk-T4ISWS5H.js} +1 -1
- package/dist-cli/chunks/{chunk-K6GGQQU5.js → chunk-TPPVAA7Z.js} +2 -2
- package/dist-cli/chunks/{chunk-IGHXSJ54.js → chunk-USM3P74H.js} +2 -2
- package/dist-cli/chunks/{chunk-6CYCKPTJ.js → chunk-V4EJJHF5.js} +1 -1
- package/dist-cli/chunks/{chunk-EG4HCEKS.js → chunk-V7RGRZOL.js} +1 -1
- package/dist-cli/chunks/{chunk-VXZGJMFM.js → chunk-XUBV77WH.js} +1 -1
- package/dist-cli/chunks/{chunk-5H5N36NO.js → chunk-XYSDYGKC.js} +2 -2
- package/dist-cli/chunks/{chunk-AQBARY5L.js → chunk-YNHRSDVG.js} +2 -2
- package/dist-cli/chunks/{chunk-7T3K66TV.js → chunk-YX52RJKO.js} +2 -2
- package/dist-cli/chunks/{chunk-Y47FOLM5.js → chunk-Z5O5H4O7.js} +2 -2
- package/dist-cli/chunks/{chunk-YPJJDEFE.js → chunk-Z6LOIW46.js} +1 -1
- package/dist-cli/chunks/{chunk-4RQFXEF2.js → chunk-ZXFVBYJY.js} +2 -2
- package/dist-cli/chunks/{cleanup-2DD3AX5G.js → cleanup-KPUW4SFK.js} +2 -2
- package/dist-cli/chunks/cli-version-APGT6GAT.js +4 -0
- package/dist-cli/chunks/{compat-U6VLKECZ.js → compat-XXRFD2TW.js} +2 -2
- package/dist-cli/chunks/{config-W7D7BANR.js → config-DDMFDQ7F.js} +2 -2
- package/dist-cli/chunks/{connect-CUQIG76A.js → connect-IPG47YXM.js} +2 -2
- package/dist-cli/chunks/control-O22Z3UJ5.js +4 -0
- package/dist-cli/chunks/daemon-PADUIMJV.js +4 -0
- package/dist-cli/chunks/{debug-5VKWI2IY.js → debug-MYIP46TM.js} +3 -3
- package/dist-cli/chunks/{desktop-JUI2EFQV.js → desktop-ENFFBQAA.js} +3 -3
- package/dist-cli/chunks/{detox-WWO5NMX5.js → detox-J5WVK6OH.js} +2 -2
- package/dist-cli/chunks/{device-N54IMZI5.js → device-RAVQVL75.js} +2 -2
- package/dist-cli/chunks/{diagnose-RPMOVNDH.js → diagnose-PJMPXKJY.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-LS4E6EN2.js → disk-cleanup-YLAY445J.js} +2 -2
- package/dist-cli/chunks/{do-chain-SKD3BNPJ.js → do-chain-UBE7GIOU.js} +2 -2
- package/dist-cli/chunks/drivers-ZFNX3T5Z.js +4 -0
- package/dist-cli/chunks/{env-4WPFRAKQ.js → env-Y5XJSNRD.js} +2 -2
- package/dist-cli/chunks/{film-VLUYMYJC.js → film-W3V6VURB.js} +3 -3
- package/dist-cli/chunks/flow-VMLI7BYM.js +4 -0
- package/dist-cli/chunks/help-PKZCWHJJ.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-TARNNZAO.js → hidden-runtime-alias-S5DJ7EDF.js} +2 -2
- package/dist-cli/chunks/{home-paths-UBO2R6RQ.js → home-paths-5O4IZPYV.js} +2 -2
- package/dist-cli/chunks/inspect-LT4MXK37.js +4 -0
- package/dist-cli/chunks/install-desktop-EXCFMXFS.js +4 -0
- package/dist-cli/chunks/{login-47BPRPSH.js → login-V6TZ54ZH.js} +2 -2
- package/dist-cli/chunks/{logout-IKVBKUCK.js → logout-SPMLFWYA.js} +2 -2
- package/dist-cli/chunks/{maestro-Q7MGCY72.js → maestro-5ISTBAZE.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-DLV3CE75.js → maestro-generate-WUI64NHR.js} +3 -3
- package/dist-cli/chunks/{mode-EATOC6AC.js → mode-QPNBYXUF.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-324IOW5Q.js → optional-demo-registry-CBSYF4CG.js} +2 -2
- package/dist-cli/chunks/{perf-X5EKGPQJ.js → perf-T6N5PVYV.js} +2 -2
- package/dist-cli/chunks/{permissions-7PT2O3O2.js → permissions-YZ7RRSZJ.js} +2 -2
- package/dist-cli/chunks/{platform-Y3Q4V4JM.js → platform-XDQAA72X.js} +3 -3
- package/dist-cli/chunks/privacy-54FIGXLT.js +4 -0
- package/dist-cli/chunks/{record-26GR6633.js → record-QGYXRUKP.js} +3 -3
- package/dist-cli/chunks/{report-issue-FRUOURLU.js → report-issue-VUUTGX7V.js} +2 -2
- package/dist-cli/chunks/reset-CGO52KBW.js +4 -0
- package/dist-cli/chunks/resolve-target-NNQCALDM.js +4 -0
- package/dist-cli/chunks/runtime-4EP6YJVL.js +4 -0
- package/dist-cli/chunks/{screenshot-command-K35IU6HC.js → screenshot-command-NZCMSJ4P.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-VMQCTFSU.js → screenshot-layers-VMTQ6XIU.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-SXROGTCP.js → screenshots-capture-K3MWIDBK.js} +2 -2
- package/dist-cli/chunks/{serve-I3YMZVYB.js → serve-QJRIB2BV.js} +2 -2
- package/dist-cli/chunks/setup-6XXEJQVF.js +4 -0
- package/dist-cli/chunks/{sim-client-R3QBYUIC.js → sim-client-5YUVL45C.js} +2 -2
- package/dist-cli/chunks/{skills-LGJB4EOZ.js → skills-T3CS7CXK.js} +2 -2
- package/dist-cli/chunks/{state-2IXZ5JYX.js → state-AJC3VK3G.js} +2 -2
- package/dist-cli/chunks/{storage-3PNQOCXW.js → storage-KVGZKC3Y.js} +2 -2
- package/dist-cli/chunks/store-AWUMOQUH.js +4 -0
- package/dist-cli/chunks/telemetry-W5ZDGWK6.js +4 -0
- package/dist-cli/chunks/{timeline-FXYNSSJJ.js → timeline-DXDCAZUA.js} +2 -2
- package/dist-cli/chunks/{upgrade-ZG4X4SPV.js → upgrade-SRPTJACU.js} +2 -2
- package/dist-cli/chunks/upload-ZDV4BFED.js +4 -0
- package/dist-cli/chunks/{version-AXPWANGE.js → version-SOLPSBMG.js} +2 -2
- package/dist-cli/chunks/{web-YPFT4L4F.js → web-RT75LD7A.js} +2 -2
- package/dist-cli/chunks/welcome-IJ55EC7U.js +5 -0
- package/dist-cli/chunks/{what-happened-XE32WD2W.js → what-happened-CEIWJIWK.js} +2 -2
- package/dist-cli/chunks/{ws-bridge-JW3MABK7.js → ws-bridge-YK5R3HOI.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 +3 -3
- 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 +3 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/chunk-VBAUP3CK.js +0 -27
- package/dist-cli/chunks/cli-version-Y4TNXT2D.js +0 -4
- package/dist-cli/chunks/control-IMYDYX74.js +0 -4
- package/dist-cli/chunks/daemon-3ZSBIRII.js +0 -4
- package/dist-cli/chunks/drivers-RIZIUIBG.js +0 -4
- package/dist-cli/chunks/flow-JQFIL6QT.js +0 -4
- package/dist-cli/chunks/help-K4MMUKLT.js +0 -4
- package/dist-cli/chunks/inspect-2FYLUREA.js +0 -4
- package/dist-cli/chunks/install-desktop-5IK4MZ25.js +0 -4
- package/dist-cli/chunks/privacy-34TQ2IOU.js +0 -4
- package/dist-cli/chunks/reset-MQGKFTRW.js +0 -4
- package/dist-cli/chunks/resolve-target-XSMC6QNY.js +0 -4
- package/dist-cli/chunks/runtime-ZAH42MO5.js +0 -4
- package/dist-cli/chunks/setup-6BNCYKCA.js +0 -4
- package/dist-cli/chunks/store-BV7S5W55.js +0 -4
- package/dist-cli/chunks/telemetry-UHKCD6GY.js +0 -4
- package/dist-cli/chunks/upload-R4XZLOLQ.js +0 -4
- package/dist-cli/chunks/welcome-SRGEEM4A.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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-NHUVO3VC.js";import{d as iu}from"./chunk-ADP35DA3.js";import"./chunk-OCH4TAJF.js";import{a as nu}from"./chunk-HSKW3YE2.js";import{k as Bm,l as Um,m as zm,n as qm}from"./chunk-VBAUP3CK.js";import"./chunk-TIPRUSQQ.js";import"./chunk-2272Y5HN.js";import"./chunk-2YNZ3GHI.js";import{a as pr}from"./chunk-NQDLJL63.js";import{b as Ae,d as Fm}from"./chunk-O7NKNTJ6.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-SXBFGGAM.js";import{d as iu}from"./chunk-HEV7BAPE.js";import"./chunk-JWUDT4QK.js";import{a as nu}from"./chunk-SWBUNMQS.js";import{k as Bm,l as Um,m as zm,n as qm}from"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-T4ISWS5H.js";import"./chunk-HWDVC6YA.js";import{a as pr}from"./chunk-25KRGDZT.js";import{b as Ae,d as Fm}from"./chunk-DQUPSAHE.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,"")+`
|
|
@@ -69,7 +69,7 @@ import{c as jp,d as Gp}from"./chunk-NHUVO3VC.js";import{d as iu}from"./chunk-ADP
|
|
|
69
69
|
|
|
70
70
|
`:r}};this.options=zO({},t,e),this.rules=new ky(this.options)}ju.prototype={turndown:function(e){if(!l_(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=Ty.call(this,new YO(e,this.options));return a_.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Cy(e)}};function Ty(e){var t=this;return s_.call(e.childNodes,function(r,n){n=new t_(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=o_.call(t,n)),Oy(r,i)},"")}function a_(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=Oy(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function o_(e){var t=this.rules.forNode(e),r=Ty.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function Oy(e,t){var r=by(e),n=yy(t),i=Math.max(e.length-r.length,t.length-n.length),s=`
|
|
71
71
|
|
|
72
|
-
`.substring(0,i);return r+s+n}function l_(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}_y.exports=ju});import vm from"node:path";import{createInterface as Qj}from"node:readline";var Hm=new TextEncoder;function Mt(e,t){return Object.assign(new Error(`${e}: ${t}`),{code:e})}function zr(e){let t=[];for(let r of e.split("/"))if(!(r===""||r===".")){if(r===".."){t.pop();continue}t.push(r)}return t.join("/")}var So=class{plane;declaredDirs=new Set;localMtimes=new Map;constructor(t){this.plane=t}index(){return this.plane.index()}isFile(t){return t!==""&&this.plane.index().has(t)}isDir(t){if(t===""||this.declaredDirs.has(t))return!0;let r=`${t}/`;for(let n of this.plane.index().keys())if(n.startsWith(r))return!0;return!1}requireFile(t){let r=zr(t);if(this.isFile(r))return r;throw this.isDir(r)?Mt("EISDIR",`illegal operation on a directory, read '${t}'`):Mt("ENOENT",`no such file or directory, open '${t}'`)}async readFile(t){return this.plane.read(this.requireFile(t))}async readFileBuffer(t){return this.plane.readBytes(this.requireFile(t))}async writeFile(t,r){let n=zr(t);if(n===""||this.isDir(n))throw Mt("EISDIR",`illegal operation on a directory, open '${t}'`);let i=this.plane.index().get(n);if(i?.readOnly)throw Mt("EACCES",`permission denied, '${t}' is read-only on the project plane`);if(i?.binary&&typeof r=="string")throw Mt("EINVAL",`invalid argument, write '${t}': it is a binary file and this would replace it with a text conversion of itself`);let s=n.includes("/")?n.slice(0,n.lastIndexOf("/")):"";if(!this.isDir(s))throw Mt("ENOENT",`no such file or directory, open '${t}'`);await this.plane.write(n,typeof r=="string"?Hm.encode(r):r),this.localMtimes.set(n,new Date)}async appendFile(t,r){let n=zr(t),i=this.isFile(n)?await this.plane.readBytes(n):new Uint8Array,s=typeof r=="string"?Hm.encode(r):r,a=new Uint8Array(i.length+s.length);a.set(i),a.set(s,i.length),await this.writeFile(t,a)}async exists(t){let r=zr(t);return this.isFile(r)||this.isDir(r)}async stat(t){let r=zr(t);if(this.isFile(r)){let n=this.plane.index().get(r);return{isFile:!0,isDirectory:!1,isSymbolicLink:!1,mode:n?.readOnly?292:420,size:n?.size??0,mtime:this.localMtimes.get(r)??new Date(0)}}if(this.isDir(r))return{isFile:!1,isDirectory:!0,isSymbolicLink:!1,mode:493,size:0,mtime:new Date(0)};throw Mt("ENOENT",`no such file or directory, stat '${t}'`)}async lstat(t){return this.stat(t)}async mkdir(t,r){let n=zr(t);if(this.isFile(n))throw Mt("EEXIST",`file already exists, mkdir '${t}'`);if(this.isDir(n)){if(r?.recursive)return;throw Mt("EEXIST",`file already exists, mkdir '${t}'`)}let i=n.includes("/")?n.slice(0,n.lastIndexOf("/")):"";if(!this.isDir(i)){if(!r?.recursive)throw Mt("ENOENT",`no such file or directory, mkdir '${t}'`);await this.mkdir(`/${i}`,r)}this.declaredDirs.add(n)}async readdir(t){let r=zr(t);if(this.isFile(r))throw Mt("ENOTDIR",`not a directory, scandir '${t}'`);if(!this.isDir(r))throw Mt("ENOENT",`no such file or directory, scandir '${t}'`);let n=r===""?"":`${r}/`,i=new Set;for(let s of this.plane.index().keys()){if(!s.startsWith(n))continue;let a=s.slice(n.length).split("/")[0];a&&i.add(a)}for(let s of this.declaredDirs){if(!s.startsWith(n))continue;let a=s.slice(n.length).split("/")[0];a&&i.add(a)}return[...i].sort()}async rm(t,r){let n=zr(t);if(this.isFile(n)){if(this.plane.index().get(n)?.readOnly)throw Mt("EACCES",`permission denied, '${t}' is read-only on the project plane`);await this.plane.delete(n),this.localMtimes.delete(n);return}if(this.isDir(n)){if(!r?.recursive)throw Mt("EISDIR",`illegal operation on a directory, rm '${t}'`);let i=n===""?"":`${n}/`,s=[...this.plane.index().keys()].filter(o=>o.startsWith(i)),a=s.find(o=>this.plane.index().get(o)?.readOnly);if(a)throw Mt("EACCES",`permission denied, '${a}' is read-only on the project plane`);for(let o of s)await this.plane.delete(o),this.localMtimes.delete(o);for(let o of[...this.declaredDirs])(o===n||o.startsWith(i))&&this.declaredDirs.delete(o);return}if(!r?.force)throw Mt("ENOENT",`no such file or directory, rm '${t}'`)}async cp(t,r,n){let i=zr(t);if(this.isFile(i)){let s=r;if(this.isDir(zr(r))){let a=i.split("/").pop();s=`${r.replace(/\/+$/,"")}/${a}`}await this.writeFile(s,await this.plane.readBytes(i));return}if(this.isDir(i)){if(!n?.recursive)throw Mt("EISDIR",`-r not specified; omitting directory '${t}'`);let s=i===""?"":`${i}/`,a=zr(r);for(let o of[...this.plane.index().keys()]){if(!o.startsWith(s))continue;let l=o.slice(s.length),u=a===""?l:`${a}/${l}`,c=u.includes("/")?u.slice(0,u.lastIndexOf("/")):"";c&&await this.mkdir(`/${c}`,{recursive:!0}),await this.writeFile(`/${u}`,await this.plane.readBytes(o))}return}throw Mt("ENOENT",`no such file or directory, cp '${t}'`)}async mv(t,r){await this.cp(t,r,{recursive:!0}),await this.rm(t,{recursive:!0})}resolvePath(t,r){let n=r.startsWith("/")?r:`${t}/${r}`;return`/${zr(n)}`}getAllPaths(){let t=new Set(["/"]),r=n=>{let i=n.split("/"),s="";for(let a of i.slice(0,-1))s=s?`${s}/${a}`:a,t.add(`/${s}`)};for(let n of this.plane.index().keys())r(n),t.add(`/${n}`);for(let n of this.declaredDirs)r(`${n}/x`),t.add(`/${n}`);return[...t].sort()}async realpath(t){let r=zr(t);if(!this.isFile(r)&&!this.isDir(r))throw Mt("ENOENT",`no such file or directory, realpath '${t}'`);return`/${r}`}async chmod(t){throw Mt("ENOTSUP",`chmod is not supported: the project plane has no file modes ('${t}')`)}async symlink(t,r){throw Mt("ENOTSUP",`symlinks are not supported on the project plane ('${r}')`)}async link(t,r){throw Mt("ENOTSUP",`hard links are not supported on the project plane ('${r}')`)}async readlink(t){throw Mt("EINVAL",`invalid argument, readlink '${t}' (no symlinks on the project plane)`)}async utimes(t,r,n){let i=zr(t);if(!this.isFile(i)&&!this.isDir(i))throw Mt("ENOENT",`no such file or directory, utimes '${t}'`);this.isFile(i)&&this.localMtimes.set(i,n)}};var aa=Fm(Wm(),1);var Vp=(e,t,r)=>{let n=e instanceof RegExp?jm(e,r):e,i=t instanceof RegExp?jm(t,r):t,s=n!==null&&i!=null&&ZC(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},jm=(e,t)=>{let r=t.match(e);return r?r[0]:null},ZC=(e,t,r)=>{let n,i,s,a,o,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],s=r.length;c>=0&&!o;){if(c===l)n.push(c),l=r.indexOf(e,c+1);else if(n.length===1){let p=n.pop();p!==void 0&&(o=[p,u])}else i=n.pop(),i!==void 0&&i<s&&(s=i,a=u),u=r.indexOf(t,c+1);c=l<u&&l>=0?l:u}n.length&&a!==void 0&&(o=[s,a])}return o};var Gm="\0SLASH"+Math.random()+"\0",Vm="\0OPEN"+Math.random()+"\0",Kp="\0CLOSE"+Math.random()+"\0",Zm="\0COMMA"+Math.random()+"\0",Xm="\0PERIOD"+Math.random()+"\0",XC=new RegExp(Gm,"g"),KC=new RegExp(Vm,"g"),QC=new RegExp(Kp,"g"),YC=new RegExp(Zm,"g"),JC=new RegExp(Xm,"g"),ek=/\\\\/g,tk=/\\{/g,rk=/\\}/g,nk=/\\,/g,ik=/\\\./g,sk=1e5,ak=4e6;function Zp(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ok(e){return e.replace(ek,Gm).replace(tk,Vm).replace(rk,Kp).replace(nk,Zm).replace(ik,Xm)}function lk(e){return e.replace(XC,"\\").replace(KC,"{").replace(QC,"}").replace(YC,",").replace(JC,".")}function Km(e){if(!e)return[""];let t=[],r=Vp("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:s}=r,a=n.split(",");a[a.length-1]+="{"+i+"}";let o=Km(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function Qm(e,t={}){if(!e)return[];let{max:r=sk,maxLength:n=ak}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Xp(ok(e),r,n,!0).map(lk)}function uk(e){return"{"+e+"}"}function ck(e){return/^-?0\d/.test(e)}function pk(e,t){return e<=t}function fk(e,t){return e>=t}function Ao(e,t,r,n,i,s){let a=[],o=0;for(let l=0;l<e.length;l++)for(let u=0;u<r.length;u++){if(a.length>=n)return a;let c=e[l]+t+r[u];if(!(s&&!c)){if(o+c.length>i)return a;a.push(c),o+=c.length}}return a}function hk(e,t,r){let n=e.split(/\.\./),i=[];if(n[0]===void 0||n[1]===void 0)return i;let s=Zp(n[0]),a=Zp(n[1]),o=Math.max(n[0].length,n[1].length),l=n.length===3&&n[2]!==void 0?Math.max(Math.abs(Zp(n[2])),1):1,u=pk;a<s&&(l*=-1,u=fk);let p=n.some(ck);for(let h=s;u(h,a)&&i.length<r;h+=l){let f;if(t)f=String.fromCharCode(h),f==="\\"&&(f="");else if(f=String(h),p){let d=o-f.length;if(d>0){let m=new Array(d+1).join("0");h<0?f="-"+m+f.slice(1):f=m+f}}i.push(f)}return i}function Xp(e,t,r,n){let i=[""],s=!1,a=!0;for(;;){let o=Vp("{","}",e);if(!o)return Ao(i,e,[""],t,r,s);let l=o.pre;if(/\$$/.test(l)){if(i=Ao(i,l+"{"+o.body+"}",[""],t,r,s&&!o.post.length),a=!1,!o.post.length)break;e=o.post;continue}let u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),p=u||c,h=o.body.indexOf(",")>=0;if(!p&&!h){if(o.post.match(/,(?!,).*\}/)){e=o.pre+"{"+o.body+Kp+o.post,n=!0;continue}return Ao(i,l+"{"+o.body+"}"+o.post,[""],t,r,s)}a&&(s=n&&!p,a=!1);let f;if(p)f=hk(o.body,c,t);else{let d=Km(o.body);if(d.length===1&&d[0]!==void 0&&(d=Xp(d[0],t,r,!1).map(uk),d.length===1)){if(i=Ao(i,l+d[0],[""],t,r,s&&!o.post.length),!o.post.length)break;e=o.post;continue}f=[];for(let m=0;m<d.length;m++)f.push.apply(f,Xp(d[m],t,r,!1))}if(i=Ao(i,l,f,t,r,s&&!o.post.length),!o.post.length)break;e=o.post}return i}var Co=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var dk={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ko=e=>e.replace(/[[\]\\-]/g,"\\$&"),mk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ym=e=>e.join(""),Jm=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,o=!1,l=!1,u=!1,c=r,p="";e:for(;s<e.length;){let m=e.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&a&&!l){c=s+1;break}if(a=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[g,[y,x,b]]of Object.entries(dk))if(e.startsWith(g,s)){if(p)return["$.",!1,e.length-r,!0];s+=g.length,b?i.push(y):n.push(y),o=o||x;continue e}}if(l=!1,p){m>p?n.push(ko(p)+"-"+ko(m)):m===p&&n.push(ko(m)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(ko(m+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=m,s+=2;continue}n.push(ko(m)),s++}if(c<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let m=n[0].length===2?n[0].slice(-1):n[0];return[mk(m),!1,c-r,!1]}let h="["+(u?"^":"")+Ym(n)+"]",f="["+(u?"":"^")+Ym(i)+"]";return[n.length&&i.length?"("+h+"|"+f+")":n.length?h:f,o,c-r,!0]};var Qi=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var qr,gk=new Set(["!","?","+","*","@"]),Qp=e=>gk.has(e),eg=e=>Qp(e.type),xk=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),yk=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),bk=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),tg=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),wk="(?!(?:^|/)\\.\\.?(?:$|/))",au="(?!\\.)",vk=new Set(["[","."]),Ek=new Set(["..","."]),Sk=new Set("().*{}+?[]^$\\!"),Ak=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Yp="[^/]",rg=Yp+"*?",ng=Yp+"+?",Ck=0,ws=class{type;#r;#n;#i=!1;#e=[];#t;#o;#u;#l=!1;#s;#a;#c=!1;id=++Ck;get depth(){return(this.#t?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#r.id,parent:this.#t?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(t,r,n={}){this.type=t,t&&(this.#n=!0),this.#t=r,this.#r=this.#t?this.#t.#r:this,this.#s=this.#r===this?n:this.#r.#s,this.#u=this.#r===this?[]:this.#r.#u,t==="!"&&!this.#r.#l&&this.#u.push(this),this.#o=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#a=this.#e.map(t=>String(t)).join("")}#x(){if(this!==this.#r)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#u.pop();){if(t.type!=="!")continue;let r=t,n=r.#t;for(;n;){for(let i=r.#o+1;!n.type&&i<n.#e.length;i++)for(let s of t.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#e[i])}r=n,n=r.#t}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof qr&&r.#t===this))throw new Error("invalid part: "+r);this.#e.push(r)}}toJSON(){let t=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#l&&this.#t?.type==="!")&&t.push({}),t}isStart(){if(this.#r===this)return!0;if(!this.#t?.isStart())return!1;if(this.#o===0)return!0;let t=this.#t;for(let r=0;r<this.#o;r++){let n=t.#e[r];if(!(n instanceof qr&&n.type==="!"))return!1}return!0}isEnd(){if(this.#r===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let t=this.#t?this.#t.#e.length:0;return this.#o===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new qr(this.type,t);for(let n of this.#e)r.copyIn(n);return r}static#p(t,r,n,i,s){let a=i.maxExtglobRecursion??2,o=!1,l=!1,u=-1,c=!1;if(r.type===null){let m=n,g="";for(;m<t.length;){let y=t.charAt(m++);if(o||y==="\\"){o=!o,g+=y;continue}if(l){m===u+1?(y==="^"||y==="!")&&(c=!0):y==="]"&&!(m===u+2&&c)&&(l=!1),g+=y;continue}else if(y==="["){l=!0,u=m,c=!1,g+=y;continue}if(!i.noext&&Qp(y)&&t.charAt(m)==="("&&s<=a){r.push(g),g="";let b=new qr(y,r);m=qr.#p(t,b,m,i,s+1),r.push(b);continue}g+=y}return r.push(g),m}let p=n+1,h=new qr(null,r),f=[],d="";for(;p<t.length;){let m=t.charAt(p++);if(o||m==="\\"){o=!o,d+=m;continue}if(l){p===u+1?(m==="^"||m==="!")&&(c=!0):m==="]"&&!(p===u+2&&c)&&(l=!1),d+=m;continue}else if(m==="["){l=!0,u=p,c=!1,d+=m;continue}if(!i.noext&&Qp(m)&&t.charAt(p)==="("&&(s<=a||r&&r.#f(m))){let y=r&&r.#f(m)?0:1;h.push(d),d="";let x=new qr(m,h);h.push(x),p=qr.#p(t,x,p,i,s+y);continue}if(m==="|"){h.push(d),d="",f.push(h),h=new qr(null,r);continue}if(m===")")return d===""&&r.#e.length===0&&(r.#c=!0),h.push(d),d="",r.push(...f,h),p;d+=m}return r.type=null,r.#n=void 0,r.#e=[t.substring(n-1)],p}#y(t){return this.#d(t,yk)}#d(t,r=xk){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;let n=t.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#f(n.type,r)}#f(t,r=bk){return!!r.get(this.type)?.includes(t)}#b(t,r){let n=t.#e[0],i=new qr(null,n,this.options);i.#e.push(""),n.push(i),this.#m(t,r)}#m(t,r){let n=t.#e[0];this.#e.splice(r,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#t=this);this.#a=void 0}#w(t){return!!tg.get(this.type)?.has(t)}#v(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let r=t.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#w(r.type)}#E(t){let r=tg.get(this.type),n=t.#e[0],i=r?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let s of this.#e)typeof s=="object"&&(s.#t=this);this.type=i,this.#a=void 0,this.#c=!1}static fromGlob(t,r={}){let n=new qr(null,void 0,r);return qr.#p(t,n,0,r,0),n}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let o=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,o),{_src:r,_glob:t})}get options(){return this.#s}toRegExpSource(t){let r=t??!!this.#s.dot;if(this.#r===this&&(this.#h(),this.#x()),!eg(this)){let l=this.isStart()&&this.isEnd()&&!this.#e.some(f=>typeof f!="string"),u=this.#e.map(f=>{let[d,m,g,y]=typeof f=="string"?qr.#S(f,this.#n,l):f.toRegExpSource(t);return this.#n=this.#n||g,this.#i=this.#i||y,d}).join(""),c="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Ek.has(this.#e[0]))){let d=vk,m=r&&d.has(u.charAt(0))||u.startsWith("\\.")&&d.has(u.charAt(2))||u.startsWith("\\.\\.")&&d.has(u.charAt(4)),g=!r&&!t&&d.has(u.charAt(0));c=m?wk:g?au:""}let p="";return this.isEnd()&&this.#r.#l&&this.#t?.type==="!"&&(p="(?:$|\\/)"),[c+u+p,Qi(u),this.#n=!!this.#n,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#g(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#e=[l],u.type=null,u.#n=void 0,[l,Qi(this.toString()),!1,!1]}let a=!n||t||r||!au?"":this.#g(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!r?au:"")+ng;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?au:"")+rg+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=i+s+l}return[o,Qi(s),this.#n=!!this.#n,this.#i]}#h(){if(eg(this)){let t=0,r=!1;do{r=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#h(),this.#d(i)?(r=!1,this.#m(i,n)):this.#y(i)?(r=!1,this.#b(i,n)):this.#v(i)&&(r=!1,this.#E(i)))}}while(!r&&++t<10)}else for(let t of this.#e)typeof t=="object"&&t.#h();this.#a=void 0}#g(t){return this.#e.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(t);return this.#i=this.#i||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(t,r,n=!1){let i=!1,s="",a=!1,o=!1;for(let l=0;l<t.length;l++){let u=t.charAt(l);if(i){i=!1,s+=(Sk.has(u)?"\\":"")+u;continue}if(u==="*"){if(o)continue;o=!0,s+=n&&/^[*]+$/.test(t)?ng:rg,r=!0;continue}else o=!1;if(u==="\\"){l===t.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[c,p,h,f]=Jm(t,l);if(h){s+=c,a=a||p,l+=h-1,r=r||f;continue}}if(u==="?"){s+=Yp,r=!0;continue}s+=Ak(u)}return[s,Qi(t),!!r,a]}};qr=ws;var Jp=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var mr=(e,t,r={})=>(Co(t),!r.nocomment&&t.charAt(0)==="#"?!1:new ca(t,r).match(e)),kk=/^\*+([^+@!?*[(]*)$/,Nk=e=>t=>!t.startsWith(".")&&t.endsWith(e),Tk=e=>t=>t.endsWith(e),Ok=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),_k=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ik=/^\*+\.\*+$/,Dk=e=>!e.startsWith(".")&&e.includes("."),$k=e=>e!=="."&&e!==".."&&e.includes("."),Rk=/^\.\*+$/,Lk=e=>e!=="."&&e!==".."&&e.startsWith("."),Mk=/^\*+$/,Pk=e=>e.length!==0&&!e.startsWith("."),Fk=e=>e.length!==0&&e!=="."&&e!=="..",Bk=/^\?+([^+@!?*[(]*)?$/,Uk=([e,t=""])=>{let r=ag([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},zk=([e,t=""])=>{let r=og([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},qk=([e,t=""])=>{let r=og([e]);return t?n=>r(n)&&n.endsWith(t):r},Hk=([e,t=""])=>{let r=ag([e]);return t?n=>r(n)&&n.endsWith(t):r},ag=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},og=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},lg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",ig={win32:{sep:"\\"},posix:{sep:"/"}},Wk=lg==="win32"?ig.win32.sep:ig.posix.sep;mr.sep=Wk;var _r=Symbol("globstar **");mr.GLOBSTAR=_r;var jk="[^/]",Gk=jk+"*?",Vk="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Zk="(?:(?!(?:\\/|^)\\.).)*?",Xk=(e,t={})=>r=>mr(r,e,t);mr.filter=Xk;var gn=(e,t={})=>Object.assign({},e,t),Kk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return mr;let t=mr;return Object.assign((n,i,s={})=>t(n,i,gn(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,gn(e,s))}static defaults(i){return t.defaults(gn(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,a={}){super(i,s,gn(e,a))}static fromGlob(i,s={}){return t.AST.fromGlob(i,gn(e,s))}},unescape:(n,i={})=>t.unescape(n,gn(e,i)),escape:(n,i={})=>t.escape(n,gn(e,i)),filter:(n,i={})=>t.filter(n,gn(e,i)),defaults:n=>t.defaults(gn(e,n)),makeRe:(n,i={})=>t.makeRe(n,gn(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,gn(e,i)),match:(n,i,s={})=>t.match(n,i,gn(e,s)),sep:t.sep,GLOBSTAR:_r})};mr.defaults=Kk;var ug=(e,t={})=>(Co(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Qm(e,{max:t.braceExpandMax}));mr.braceExpand=ug;var Qk=(e,t={})=>new ca(e,t).makeRe();mr.makeRe=Qk;var Yk=(e,t,r={})=>{let n=new ca(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};mr.match=Yk;var sg=/[?*]|[+@!]\(.*?\)|\[|\]/,Jk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ca=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){Co(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||lg,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!sg.test(s[2]))&&!sg.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(c=>this.parse(c))];if(u)return[s[0],...s.slice(1).map(c=>this.parse(c))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n of t)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let o=n[i+1],l=n[i+2],u=n[i+3];if(o!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let c=n.slice(0);c[i]="**",t.push(c),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let o=n[a];a===1&&o===""&&n[0]===""||(o==="."||o==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let a=n[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...l),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,a=[],o="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])a.push(o==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])a.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])a.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(o==="b")return!1;o="a",a.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(o==="a")return!1;o="b",a.push(r[s]),i++,s++}else return!1;return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,s=0;if(this.isWindows){let o=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!o&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),c=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=l?3:o?0:void 0,h=c?3:u?0:void 0;if(typeof p=="number"&&typeof h=="number"){let[f,d]=[t[p],r[h]];f.toLowerCase()===d.toLowerCase()&&(r[h]=f,s=h,i=p)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(_r)?this.#r(t,r,n,i,s):this.#i(t,r,n,i,s)}#r(t,r,n,i,s){let a=r.indexOf(_r,s),o=r.lastIndexOf(_r),[l,u,c]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,o),r.slice(o+1)];if(l.length){let x=t.slice(i,i+l.length);if(!this.#i(x,l,n,0,0))return!1;i+=l.length,s+=l.length}let p=0;if(c.length){if(c.length+i>t.length)return!1;let x=t.length-c.length;if(this.#i(t,c,n,x,0))p=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||(x--,!this.#i(t,c,n,x,0)))return!1;p=c.length+1}}if(!u.length){let x=!!p;for(let b=i;b<t.length-p;b++){let v=String(t[b]);if(x=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return n||x}let h=[[[],0]],f=h[0],d=0,m=[0];for(let x of u)x===_r?(m.push(d),f=[[],0],h.push(f)):(f[0].push(x),d++);let g=h.length-1,y=t.length-p;for(let x of h)x[1]=y-(m[g--]+x[0].length);return!!this.#n(t,h,i,0,n,0,!!p)}#n(t,r,n,i,s,a,o){let l=r[i];if(!l){for(let p=n;p<t.length;p++){o=!0;let h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return o}let[u,c]=l;for(;n<=c;){if(this.#i(t.slice(0,n+u.length),u,s,n,0)&&a<this.maxGlobstarRecursion){let f=this.#n(t,r,n+u.length,i+1,s,a+1,o);if(f!==!1)return f}let h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null}#i(t,r,n,i,s){let a,o,l,u;for(a=i,o=s,u=t.length,l=r.length;a<u&&o<l;a++,o++){this.debug("matchOne loop");let c=r[o],p=t[a];if(this.debug(r,c,p),c===!1||c===_r)return!1;let h;if(typeof c=="string"?(h=p===c,this.debug("string match",c,p,h)):(h=c.test(p),this.debug("pattern match",c,p,h)),!h)return!1}if(a===u&&o===l)return!0;if(a===u)return n;if(o===l)return a===u-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return ug(this.pattern,this.options)}parse(t){Co(t);let r=this.options;if(t==="**")return _r;if(t==="")return"";let n,i=null;(n=t.match(Mk))?i=r.dot?Fk:Pk:(n=t.match(kk))?i=(r.nocase?r.dot?_k:Ok:r.dot?Tk:Nk)(n[1]):(n=t.match(Bk))?i=(r.nocase?r.dot?zk:Uk:r.dot?qk:Hk)(n):(n=t.match(Ik))?i=r.dot?$k:Dk:(n=t.match(Rk))&&(i=Lk);let s=ws.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Gk:r.dot?Vk:Zk,i=new Set(r.nocase?["i"]:[]),s=t.map(l=>{let u=l.map(p=>{if(p instanceof RegExp)for(let h of p.flags.split(""))i.add(h);return typeof p=="string"?Jk(p):p===_r?_r:p._src});u.forEach((p,h)=>{let f=u[h+1],d=u[h-1];p!==_r||d===_r||(d===void 0?f!==void 0&&f!==_r?u[h+1]="(?:\\/|"+n+"\\/)?"+f:u[h]=n:f===void 0?u[h-1]=d+"(?:\\/|\\/"+n+")?":f!==_r&&(u[h-1]=d+"(?:\\/|\\/"+n+"\\/)"+f,u[h+1]=_r))});let c=u.filter(p=>p!==_r);if(this.partial&&c.length>=1){let p=[];for(let h=1;h<=c.length;h++)p.push(c.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return c.join("/")}).join("|"),[a,o]=t.length>1?["(?:",")"]:["",""];s="^"+a+s+o+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+o+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let o=i.length-2;!a&&o>=0;o--)a=i[o];for(let o of s){let l=i;if(n.matchBase&&o.length===1&&(l=[a]),this.matchOne(l,o,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return mr.defaults(t).Minimatch}};mr.AST=ws;mr.Minimatch=ca;mr.escape=Jp;mr.unescape=Qi;import{gunzipSync as uD}from"node:zlib";var No=class{diff(t,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);let s=this.castInput(t,n),a=this.castInput(r,n),o=this.removeEmpty(this.tokenize(s,n)),l=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,l,n,i)}diffWithOptionsObj(t,r,n,i){var s;let a=x=>{if(x=this.postProcess(x,n),i){setTimeout(function(){i(x)},0);return}else return x},o=r.length,l=t.length,u=1,c=o+l;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let p=(s=n.timeout)!==null&&s!==void 0?s:1/0,h=Date.now()+p,f=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(f[0],r,t,0,n);if(f[0].oldPos+1>=l&&d+1>=o)return a(this.buildValues(f[0].lastComponent,r,t));let m=-1/0,g=1/0,y=()=>{for(let x=Math.max(m,-u);x<=Math.min(g,u);x+=2){let b,v=f[x-1],w=f[x+1];v&&(f[x-1]=void 0);let C=!1;if(w){let D=w.oldPos-x;C=w&&0<=D&&D<o}let k=v&&v.oldPos+1<l;if(!C&&!k){f[x]=void 0;continue}if(!k||C&&v.oldPos<w.oldPos?b=this.addToPath(w,!0,!1,0,n):b=this.addToPath(v,!1,!0,1,n),d=this.extractCommon(b,r,t,x,n),b.oldPos+1>=l&&d+1>=o)return a(this.buildValues(b.lastComponent,r,t))||!0;f[x]=b,b.oldPos+1>=l&&(g=Math.min(g,x-1)),d+1>=o&&(m=Math.max(m,x+1))}u++};if(i)(function x(){setTimeout(function(){if(u>c||Date.now()>h)return i(void 0);y()||x()},0)})();else for(;u<=c&&Date.now()<=h;){let x=y();if(x)return x}}addToPath(t,r,n,i,s){let a=t.lastComponent;return a&&!s.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,i,s){let a=r.length,o=n.length,l=t.oldPos,u=l-i,c=0;for(;u+1<a&&l+1<o&&this.equals(n[l+1],r[u+1],s);)u++,l++,c++,s.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return c&&!s.oneChangePerToken&&(t.lastComponent={count:c,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){let i=[],s;for(;t;)i.push(t),s=t.previousComponent,delete t.previousComponent,t=s;i.reverse();let a=i.length,o=0,l=0,u=0;for(;o<a;o++){let c=i[o];if(c.removed)c.value=this.join(n.slice(u,u+c.count)),u+=c.count;else{if(!c.added&&this.useLongestToken){let p=r.slice(l,l+c.count);p=p.map(function(h,f){let d=n[u+f];return d.length>h.length?d:h}),c.value=this.join(p)}else c.value=this.join(r.slice(l,l+c.count));l+=c.count,c.added||(u+=c.count)}}return i}};var ef=class extends No{constructor(){super(...arguments),this.tokenize=tN}equals(t,r,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
72
|
+
`.substring(0,i);return r+s+n}function l_(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}_y.exports=ju});import vm from"node:path";import{createInterface as Qj}from"node:readline";var Hm=new TextEncoder;function Mt(e,t){return Object.assign(new Error(`${e}: ${t}`),{code:e})}function zr(e){let t=[];for(let r of e.split("/"))if(!(r===""||r===".")){if(r===".."){t.pop();continue}t.push(r)}return t.join("/")}var So=class{plane;declaredDirs=new Set;localMtimes=new Map;stale=!1;constructor(t){this.plane=t}markStale(){this.stale=!0}async ensureFresh(){this.stale&&(this.stale=!1,await this.plane.refresh())}index(){return this.plane.index()}isFile(t){return t!==""&&this.plane.index().has(t)}isDir(t){if(t===""||this.declaredDirs.has(t))return!0;let r=`${t}/`;for(let n of this.plane.index().keys())if(n.startsWith(r))return!0;return!1}requireFile(t){let r=zr(t);if(this.isFile(r))return r;throw this.isDir(r)?Mt("EISDIR",`illegal operation on a directory, read '${t}'`):Mt("ENOENT",`no such file or directory, open '${t}'`)}async readFile(t){return await this.ensureFresh(),this.plane.read(this.requireFile(t))}async readFileBuffer(t){return await this.ensureFresh(),this.plane.readBytes(this.requireFile(t))}async writeFile(t,r){await this.ensureFresh();let n=zr(t);if(n===""||this.isDir(n))throw Mt("EISDIR",`illegal operation on a directory, open '${t}'`);let i=this.plane.index().get(n);if(i?.readOnly)throw Mt("EACCES",`permission denied, '${t}' is read-only on the project plane`);if(i?.binary&&typeof r=="string")throw Mt("EINVAL",`invalid argument, write '${t}': it is a binary file and this would replace it with a text conversion of itself`);let s=n.includes("/")?n.slice(0,n.lastIndexOf("/")):"";if(!this.isDir(s))throw Mt("ENOENT",`no such file or directory, open '${t}'`);await this.plane.write(n,typeof r=="string"?Hm.encode(r):r),this.localMtimes.set(n,new Date)}async appendFile(t,r){await this.ensureFresh();let n=zr(t),i=this.isFile(n)?await this.plane.readBytes(n):new Uint8Array,s=typeof r=="string"?Hm.encode(r):r,a=new Uint8Array(i.length+s.length);a.set(i),a.set(s,i.length),await this.writeFile(t,a)}async exists(t){await this.ensureFresh();let r=zr(t);return this.isFile(r)||this.isDir(r)}async stat(t){await this.ensureFresh();let r=zr(t);if(this.isFile(r)){let n=this.plane.index().get(r);return{isFile:!0,isDirectory:!1,isSymbolicLink:!1,mode:n?.readOnly?292:420,size:n?.size??0,mtime:this.localMtimes.get(r)??new Date(0)}}if(this.isDir(r))return{isFile:!1,isDirectory:!0,isSymbolicLink:!1,mode:493,size:0,mtime:new Date(0)};throw Mt("ENOENT",`no such file or directory, stat '${t}'`)}async lstat(t){return await this.ensureFresh(),this.stat(t)}async mkdir(t,r){await this.ensureFresh();let n=zr(t);if(this.isFile(n))throw Mt("EEXIST",`file already exists, mkdir '${t}'`);if(this.isDir(n)){if(r?.recursive)return;throw Mt("EEXIST",`file already exists, mkdir '${t}'`)}let i=n.includes("/")?n.slice(0,n.lastIndexOf("/")):"";if(!this.isDir(i)){if(!r?.recursive)throw Mt("ENOENT",`no such file or directory, mkdir '${t}'`);await this.mkdir(`/${i}`,r)}this.declaredDirs.add(n)}async readdir(t){await this.ensureFresh();let r=zr(t);if(this.isFile(r))throw Mt("ENOTDIR",`not a directory, scandir '${t}'`);if(!this.isDir(r))throw Mt("ENOENT",`no such file or directory, scandir '${t}'`);let n=r===""?"":`${r}/`,i=new Set;for(let s of this.plane.index().keys()){if(!s.startsWith(n))continue;let a=s.slice(n.length).split("/")[0];a&&i.add(a)}for(let s of this.declaredDirs){if(!s.startsWith(n))continue;let a=s.slice(n.length).split("/")[0];a&&i.add(a)}return[...i].sort()}async rm(t,r){await this.ensureFresh();let n=zr(t);if(this.isFile(n)){if(this.plane.index().get(n)?.readOnly)throw Mt("EACCES",`permission denied, '${t}' is read-only on the project plane`);await this.plane.delete(n),this.localMtimes.delete(n);return}if(this.isDir(n)){if(!r?.recursive)throw Mt("EISDIR",`illegal operation on a directory, rm '${t}'`);let i=n===""?"":`${n}/`,s=[...this.plane.index().keys()].filter(o=>o.startsWith(i)),a=s.find(o=>this.plane.index().get(o)?.readOnly);if(a)throw Mt("EACCES",`permission denied, '${a}' is read-only on the project plane`);for(let o of s)await this.plane.delete(o),this.localMtimes.delete(o);for(let o of[...this.declaredDirs])(o===n||o.startsWith(i))&&this.declaredDirs.delete(o);return}if(!r?.force)throw Mt("ENOENT",`no such file or directory, rm '${t}'`)}async cp(t,r,n){let i=zr(t);if(this.isFile(i)){let s=r;if(this.isDir(zr(r))){let a=i.split("/").pop();s=`${r.replace(/\/+$/,"")}/${a}`}await this.writeFile(s,await this.plane.readBytes(i));return}if(this.isDir(i)){if(!n?.recursive)throw Mt("EISDIR",`-r not specified; omitting directory '${t}'`);let s=i===""?"":`${i}/`,a=zr(r);for(let o of[...this.plane.index().keys()]){if(!o.startsWith(s))continue;let l=o.slice(s.length),u=a===""?l:`${a}/${l}`,c=u.includes("/")?u.slice(0,u.lastIndexOf("/")):"";c&&await this.mkdir(`/${c}`,{recursive:!0}),await this.writeFile(`/${u}`,await this.plane.readBytes(o))}return}throw Mt("ENOENT",`no such file or directory, cp '${t}'`)}async mv(t,r){await this.cp(t,r,{recursive:!0}),await this.rm(t,{recursive:!0})}resolvePath(t,r){let n=r.startsWith("/")?r:`${t}/${r}`;return`/${zr(n)}`}getAllPaths(){let t=new Set(["/"]),r=n=>{let i=n.split("/"),s="";for(let a of i.slice(0,-1))s=s?`${s}/${a}`:a,t.add(`/${s}`)};for(let n of this.plane.index().keys())r(n),t.add(`/${n}`);for(let n of this.declaredDirs)r(`${n}/x`),t.add(`/${n}`);return[...t].sort()}async realpath(t){await this.ensureFresh();let r=zr(t);if(!this.isFile(r)&&!this.isDir(r))throw Mt("ENOENT",`no such file or directory, realpath '${t}'`);return`/${r}`}async chmod(t){throw Mt("ENOTSUP",`chmod is not supported: the project plane has no file modes ('${t}')`)}async symlink(t,r){throw Mt("ENOTSUP",`symlinks are not supported on the project plane ('${r}')`)}async link(t,r){throw Mt("ENOTSUP",`hard links are not supported on the project plane ('${r}')`)}async readlink(t){throw Mt("EINVAL",`invalid argument, readlink '${t}' (no symlinks on the project plane)`)}async utimes(t,r,n){await this.ensureFresh();let i=zr(t);if(!this.isFile(i)&&!this.isDir(i))throw Mt("ENOENT",`no such file or directory, utimes '${t}'`);this.isFile(i)&&this.localMtimes.set(i,n)}};var aa=Fm(Wm(),1);var Vp=(e,t,r)=>{let n=e instanceof RegExp?jm(e,r):e,i=t instanceof RegExp?jm(t,r):t,s=n!==null&&i!=null&&ZC(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},jm=(e,t)=>{let r=t.match(e);return r?r[0]:null},ZC=(e,t,r)=>{let n,i,s,a,o,l=r.indexOf(e),u=r.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(n=[],s=r.length;c>=0&&!o;){if(c===l)n.push(c),l=r.indexOf(e,c+1);else if(n.length===1){let p=n.pop();p!==void 0&&(o=[p,u])}else i=n.pop(),i!==void 0&&i<s&&(s=i,a=u),u=r.indexOf(t,c+1);c=l<u&&l>=0?l:u}n.length&&a!==void 0&&(o=[s,a])}return o};var Gm="\0SLASH"+Math.random()+"\0",Vm="\0OPEN"+Math.random()+"\0",Kp="\0CLOSE"+Math.random()+"\0",Zm="\0COMMA"+Math.random()+"\0",Xm="\0PERIOD"+Math.random()+"\0",XC=new RegExp(Gm,"g"),KC=new RegExp(Vm,"g"),QC=new RegExp(Kp,"g"),YC=new RegExp(Zm,"g"),JC=new RegExp(Xm,"g"),ek=/\\\\/g,tk=/\\{/g,rk=/\\}/g,nk=/\\,/g,ik=/\\\./g,sk=1e5,ak=4e6;function Zp(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function ok(e){return e.replace(ek,Gm).replace(tk,Vm).replace(rk,Kp).replace(nk,Zm).replace(ik,Xm)}function lk(e){return e.replace(XC,"\\").replace(KC,"{").replace(QC,"}").replace(YC,",").replace(JC,".")}function Km(e){if(!e)return[""];let t=[],r=Vp("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:s}=r,a=n.split(",");a[a.length-1]+="{"+i+"}";let o=Km(s);return s.length&&(a[a.length-1]+=o.shift(),a.push.apply(a,o)),t.push.apply(t,a),t}function Qm(e,t={}){if(!e)return[];let{max:r=sk,maxLength:n=ak}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Xp(ok(e),r,n,!0).map(lk)}function uk(e){return"{"+e+"}"}function ck(e){return/^-?0\d/.test(e)}function pk(e,t){return e<=t}function fk(e,t){return e>=t}function Ao(e,t,r,n,i,s){let a=[],o=0;for(let l=0;l<e.length;l++)for(let u=0;u<r.length;u++){if(a.length>=n)return a;let c=e[l]+t+r[u];if(!(s&&!c)){if(o+c.length>i)return a;a.push(c),o+=c.length}}return a}function hk(e,t,r){let n=e.split(/\.\./),i=[];if(n[0]===void 0||n[1]===void 0)return i;let s=Zp(n[0]),a=Zp(n[1]),o=Math.max(n[0].length,n[1].length),l=n.length===3&&n[2]!==void 0?Math.max(Math.abs(Zp(n[2])),1):1,u=pk;a<s&&(l*=-1,u=fk);let p=n.some(ck);for(let h=s;u(h,a)&&i.length<r;h+=l){let f;if(t)f=String.fromCharCode(h),f==="\\"&&(f="");else if(f=String(h),p){let d=o-f.length;if(d>0){let m=new Array(d+1).join("0");h<0?f="-"+m+f.slice(1):f=m+f}}i.push(f)}return i}function Xp(e,t,r,n){let i=[""],s=!1,a=!0;for(;;){let o=Vp("{","}",e);if(!o)return Ao(i,e,[""],t,r,s);let l=o.pre;if(/\$$/.test(l)){if(i=Ao(i,l+"{"+o.body+"}",[""],t,r,s&&!o.post.length),a=!1,!o.post.length)break;e=o.post;continue}let u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),p=u||c,h=o.body.indexOf(",")>=0;if(!p&&!h){if(o.post.match(/,(?!,).*\}/)){e=o.pre+"{"+o.body+Kp+o.post,n=!0;continue}return Ao(i,l+"{"+o.body+"}"+o.post,[""],t,r,s)}a&&(s=n&&!p,a=!1);let f;if(p)f=hk(o.body,c,t);else{let d=Km(o.body);if(d.length===1&&d[0]!==void 0&&(d=Xp(d[0],t,r,!1).map(uk),d.length===1)){if(i=Ao(i,l+d[0],[""],t,r,s&&!o.post.length),!o.post.length)break;e=o.post;continue}f=[];for(let m=0;m<d.length;m++)f.push.apply(f,Xp(d[m],t,r,!1))}if(i=Ao(i,l,f,t,r,s&&!o.post.length),!o.post.length)break;e=o.post}return i}var Co=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var dk={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ko=e=>e.replace(/[[\]\\-]/g,"\\$&"),mk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ym=e=>e.join(""),Jm=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,a=!1,o=!1,l=!1,u=!1,c=r,p="";e:for(;s<e.length;){let m=e.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&a&&!l){c=s+1;break}if(a=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[g,[y,x,b]]of Object.entries(dk))if(e.startsWith(g,s)){if(p)return["$.",!1,e.length-r,!0];s+=g.length,b?i.push(y):n.push(y),o=o||x;continue e}}if(l=!1,p){m>p?n.push(ko(p)+"-"+ko(m)):m===p&&n.push(ko(m)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(ko(m+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=m,s+=2;continue}n.push(ko(m)),s++}if(c<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let m=n[0].length===2?n[0].slice(-1):n[0];return[mk(m),!1,c-r,!1]}let h="["+(u?"^":"")+Ym(n)+"]",f="["+(u?"":"^")+Ym(i)+"]";return[n.length&&i.length?"("+h+"|"+f+")":n.length?h:f,o,c-r,!0]};var Qi=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var qr,gk=new Set(["!","?","+","*","@"]),Qp=e=>gk.has(e),eg=e=>Qp(e.type),xk=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),yk=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),bk=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),tg=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),wk="(?!(?:^|/)\\.\\.?(?:$|/))",au="(?!\\.)",vk=new Set(["[","."]),Ek=new Set(["..","."]),Sk=new Set("().*{}+?[]^$\\!"),Ak=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Yp="[^/]",rg=Yp+"*?",ng=Yp+"+?",Ck=0,ws=class{type;#r;#n;#i=!1;#e=[];#t;#o;#u;#l=!1;#s;#a;#c=!1;id=++Ck;get depth(){return(this.#t?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#r.id,parent:this.#t?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(t,r,n={}){this.type=t,t&&(this.#n=!0),this.#t=r,this.#r=this.#t?this.#t.#r:this,this.#s=this.#r===this?n:this.#r.#s,this.#u=this.#r===this?[]:this.#r.#u,t==="!"&&!this.#r.#l&&this.#u.push(this),this.#o=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#a=this.#e.map(t=>String(t)).join("")}#x(){if(this!==this.#r)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#u.pop();){if(t.type!=="!")continue;let r=t,n=r.#t;for(;n;){for(let i=r.#o+1;!n.type&&i<n.#e.length;i++)for(let s of t.#e){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#e[i])}r=n,n=r.#t}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof qr&&r.#t===this))throw new Error("invalid part: "+r);this.#e.push(r)}}toJSON(){let t=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#l&&this.#t?.type==="!")&&t.push({}),t}isStart(){if(this.#r===this)return!0;if(!this.#t?.isStart())return!1;if(this.#o===0)return!0;let t=this.#t;for(let r=0;r<this.#o;r++){let n=t.#e[r];if(!(n instanceof qr&&n.type==="!"))return!1}return!0}isEnd(){if(this.#r===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let t=this.#t?this.#t.#e.length:0;return this.#o===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new qr(this.type,t);for(let n of this.#e)r.copyIn(n);return r}static#p(t,r,n,i,s){let a=i.maxExtglobRecursion??2,o=!1,l=!1,u=-1,c=!1;if(r.type===null){let m=n,g="";for(;m<t.length;){let y=t.charAt(m++);if(o||y==="\\"){o=!o,g+=y;continue}if(l){m===u+1?(y==="^"||y==="!")&&(c=!0):y==="]"&&!(m===u+2&&c)&&(l=!1),g+=y;continue}else if(y==="["){l=!0,u=m,c=!1,g+=y;continue}if(!i.noext&&Qp(y)&&t.charAt(m)==="("&&s<=a){r.push(g),g="";let b=new qr(y,r);m=qr.#p(t,b,m,i,s+1),r.push(b);continue}g+=y}return r.push(g),m}let p=n+1,h=new qr(null,r),f=[],d="";for(;p<t.length;){let m=t.charAt(p++);if(o||m==="\\"){o=!o,d+=m;continue}if(l){p===u+1?(m==="^"||m==="!")&&(c=!0):m==="]"&&!(p===u+2&&c)&&(l=!1),d+=m;continue}else if(m==="["){l=!0,u=p,c=!1,d+=m;continue}if(!i.noext&&Qp(m)&&t.charAt(p)==="("&&(s<=a||r&&r.#f(m))){let y=r&&r.#f(m)?0:1;h.push(d),d="";let x=new qr(m,h);h.push(x),p=qr.#p(t,x,p,i,s+y);continue}if(m==="|"){h.push(d),d="",f.push(h),h=new qr(null,r);continue}if(m===")")return d===""&&r.#e.length===0&&(r.#c=!0),h.push(d),d="",r.push(...f,h),p;d+=m}return r.type=null,r.#n=void 0,r.#e=[t.substring(n-1)],p}#y(t){return this.#d(t,yk)}#d(t,r=xk){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;let n=t.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#f(n.type,r)}#f(t,r=bk){return!!r.get(this.type)?.includes(t)}#b(t,r){let n=t.#e[0],i=new qr(null,n,this.options);i.#e.push(""),n.push(i),this.#m(t,r)}#m(t,r){let n=t.#e[0];this.#e.splice(r,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#t=this);this.#a=void 0}#w(t){return!!tg.get(this.type)?.has(t)}#v(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let r=t.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#w(r.type)}#E(t){let r=tg.get(this.type),n=t.#e[0],i=r?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let s of this.#e)typeof s=="object"&&(s.#t=this);this.type=i,this.#a=void 0,this.#c=!1}static fromGlob(t,r={}){let n=new qr(null,void 0,r);return qr.#p(t,n,0,r,0),n}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#n||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let o=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,o),{_src:r,_glob:t})}get options(){return this.#s}toRegExpSource(t){let r=t??!!this.#s.dot;if(this.#r===this&&(this.#h(),this.#x()),!eg(this)){let l=this.isStart()&&this.isEnd()&&!this.#e.some(f=>typeof f!="string"),u=this.#e.map(f=>{let[d,m,g,y]=typeof f=="string"?qr.#S(f,this.#n,l):f.toRegExpSource(t);return this.#n=this.#n||g,this.#i=this.#i||y,d}).join(""),c="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Ek.has(this.#e[0]))){let d=vk,m=r&&d.has(u.charAt(0))||u.startsWith("\\.")&&d.has(u.charAt(2))||u.startsWith("\\.\\.")&&d.has(u.charAt(4)),g=!r&&!t&&d.has(u.charAt(0));c=m?wk:g?au:""}let p="";return this.isEnd()&&this.#r.#l&&this.#t?.type==="!"&&(p="(?:$|\\/)"),[c+u+p,Qi(u),this.#n=!!this.#n,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#g(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#e=[l],u.type=null,u.#n=void 0,[l,Qi(this.toString()),!1,!1]}let a=!n||t||r||!au?"":this.#g(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!r?au:"")+ng;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?au:"")+rg+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=i+s+l}return[o,Qi(s),this.#n=!!this.#n,this.#i]}#h(){if(eg(this)){let t=0,r=!1;do{r=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#h(),this.#d(i)?(r=!1,this.#m(i,n)):this.#y(i)?(r=!1,this.#b(i,n)):this.#v(i)&&(r=!1,this.#E(i)))}}while(!r&&++t<10)}else for(let t of this.#e)typeof t=="object"&&t.#h();this.#a=void 0}#g(t){return this.#e.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,a]=r.toRegExpSource(t);return this.#i=this.#i||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#S(t,r,n=!1){let i=!1,s="",a=!1,o=!1;for(let l=0;l<t.length;l++){let u=t.charAt(l);if(i){i=!1,s+=(Sk.has(u)?"\\":"")+u;continue}if(u==="*"){if(o)continue;o=!0,s+=n&&/^[*]+$/.test(t)?ng:rg,r=!0;continue}else o=!1;if(u==="\\"){l===t.length-1?s+="\\\\":i=!0;continue}if(u==="["){let[c,p,h,f]=Jm(t,l);if(h){s+=c,a=a||p,l+=h-1,r=r||f;continue}}if(u==="?"){s+=Yp,r=!0;continue}s+=Ak(u)}return[s,Qi(t),!!r,a]}};qr=ws;var Jp=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var mr=(e,t,r={})=>(Co(t),!r.nocomment&&t.charAt(0)==="#"?!1:new ca(t,r).match(e)),kk=/^\*+([^+@!?*[(]*)$/,Nk=e=>t=>!t.startsWith(".")&&t.endsWith(e),Tk=e=>t=>t.endsWith(e),Ok=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),_k=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ik=/^\*+\.\*+$/,Dk=e=>!e.startsWith(".")&&e.includes("."),$k=e=>e!=="."&&e!==".."&&e.includes("."),Rk=/^\.\*+$/,Lk=e=>e!=="."&&e!==".."&&e.startsWith("."),Mk=/^\*+$/,Pk=e=>e.length!==0&&!e.startsWith("."),Fk=e=>e.length!==0&&e!=="."&&e!=="..",Bk=/^\?+([^+@!?*[(]*)?$/,Uk=([e,t=""])=>{let r=ag([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},zk=([e,t=""])=>{let r=og([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},qk=([e,t=""])=>{let r=og([e]);return t?n=>r(n)&&n.endsWith(t):r},Hk=([e,t=""])=>{let r=ag([e]);return t?n=>r(n)&&n.endsWith(t):r},ag=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},og=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},lg=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",ig={win32:{sep:"\\"},posix:{sep:"/"}},Wk=lg==="win32"?ig.win32.sep:ig.posix.sep;mr.sep=Wk;var _r=Symbol("globstar **");mr.GLOBSTAR=_r;var jk="[^/]",Gk=jk+"*?",Vk="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Zk="(?:(?!(?:\\/|^)\\.).)*?",Xk=(e,t={})=>r=>mr(r,e,t);mr.filter=Xk;var gn=(e,t={})=>Object.assign({},e,t),Kk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return mr;let t=mr;return Object.assign((n,i,s={})=>t(n,i,gn(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,gn(e,s))}static defaults(i){return t.defaults(gn(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,a={}){super(i,s,gn(e,a))}static fromGlob(i,s={}){return t.AST.fromGlob(i,gn(e,s))}},unescape:(n,i={})=>t.unescape(n,gn(e,i)),escape:(n,i={})=>t.escape(n,gn(e,i)),filter:(n,i={})=>t.filter(n,gn(e,i)),defaults:n=>t.defaults(gn(e,n)),makeRe:(n,i={})=>t.makeRe(n,gn(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,gn(e,i)),match:(n,i,s={})=>t.match(n,i,gn(e,s)),sep:t.sep,GLOBSTAR:_r})};mr.defaults=Kk;var ug=(e,t={})=>(Co(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Qm(e,{max:t.braceExpandMax}));mr.braceExpand=ug;var Qk=(e,t={})=>new ca(e,t).makeRe();mr.makeRe=Qk;var Yk=(e,t,r={})=>{let n=new ca(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};mr.match=Yk;var sg=/[?*]|[+@!]\(.*?\)|\[|\]/,Jk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ca=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){Co(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||lg,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!sg.test(s[2]))&&!sg.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(c=>this.parse(c))];if(u)return[s[0],...s.slice(1).map(c=>this.parse(c))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let a=this.set[s];a[0]===""&&a[1]===""&&this.globParts[s][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n of t)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let o=n[i+1],l=n[i+2],u=n[i+3];if(o!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let c=n.slice(0);c[i]="**",t.push(c),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let o=n[a];a===1&&o===""&&n[0]===""||(o==="."||o==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let a=n[s-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...l),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,a=[],o="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])a.push(o==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])a.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])a.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(o==="b")return!1;o="a",a.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(o==="a")return!1;o="b",a.push(r[s]),i++,s++}else return!1;return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,s=0;if(this.isWindows){let o=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!o&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),c=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=l?3:o?0:void 0,h=c?3:u?0:void 0;if(typeof p=="number"&&typeof h=="number"){let[f,d]=[t[p],r[h]];f.toLowerCase()===d.toLowerCase()&&(r[h]=f,s=h,i=p)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(_r)?this.#r(t,r,n,i,s):this.#i(t,r,n,i,s)}#r(t,r,n,i,s){let a=r.indexOf(_r,s),o=r.lastIndexOf(_r),[l,u,c]=n?[r.slice(s,a),r.slice(a+1),[]]:[r.slice(s,a),r.slice(a+1,o),r.slice(o+1)];if(l.length){let x=t.slice(i,i+l.length);if(!this.#i(x,l,n,0,0))return!1;i+=l.length,s+=l.length}let p=0;if(c.length){if(c.length+i>t.length)return!1;let x=t.length-c.length;if(this.#i(t,c,n,x,0))p=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||(x--,!this.#i(t,c,n,x,0)))return!1;p=c.length+1}}if(!u.length){let x=!!p;for(let b=i;b<t.length-p;b++){let v=String(t[b]);if(x=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return n||x}let h=[[[],0]],f=h[0],d=0,m=[0];for(let x of u)x===_r?(m.push(d),f=[[],0],h.push(f)):(f[0].push(x),d++);let g=h.length-1,y=t.length-p;for(let x of h)x[1]=y-(m[g--]+x[0].length);return!!this.#n(t,h,i,0,n,0,!!p)}#n(t,r,n,i,s,a,o){let l=r[i];if(!l){for(let p=n;p<t.length;p++){o=!0;let h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return o}let[u,c]=l;for(;n<=c;){if(this.#i(t.slice(0,n+u.length),u,s,n,0)&&a<this.maxGlobstarRecursion){let f=this.#n(t,r,n+u.length,i+1,s,a+1,o);if(f!==!1)return f}let h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null}#i(t,r,n,i,s){let a,o,l,u;for(a=i,o=s,u=t.length,l=r.length;a<u&&o<l;a++,o++){this.debug("matchOne loop");let c=r[o],p=t[a];if(this.debug(r,c,p),c===!1||c===_r)return!1;let h;if(typeof c=="string"?(h=p===c,this.debug("string match",c,p,h)):(h=c.test(p),this.debug("pattern match",c,p,h)),!h)return!1}if(a===u&&o===l)return!0;if(a===u)return n;if(o===l)return a===u-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return ug(this.pattern,this.options)}parse(t){Co(t);let r=this.options;if(t==="**")return _r;if(t==="")return"";let n,i=null;(n=t.match(Mk))?i=r.dot?Fk:Pk:(n=t.match(kk))?i=(r.nocase?r.dot?_k:Ok:r.dot?Tk:Nk)(n[1]):(n=t.match(Bk))?i=(r.nocase?r.dot?zk:Uk:r.dot?qk:Hk)(n):(n=t.match(Ik))?i=r.dot?$k:Dk:(n=t.match(Rk))&&(i=Lk);let s=ws.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Gk:r.dot?Vk:Zk,i=new Set(r.nocase?["i"]:[]),s=t.map(l=>{let u=l.map(p=>{if(p instanceof RegExp)for(let h of p.flags.split(""))i.add(h);return typeof p=="string"?Jk(p):p===_r?_r:p._src});u.forEach((p,h)=>{let f=u[h+1],d=u[h-1];p!==_r||d===_r||(d===void 0?f!==void 0&&f!==_r?u[h+1]="(?:\\/|"+n+"\\/)?"+f:u[h]=n:f===void 0?u[h-1]=d+"(?:\\/|\\/"+n+")?":f!==_r&&(u[h-1]=d+"(?:\\/|\\/"+n+"\\/)"+f,u[h+1]=_r))});let c=u.filter(p=>p!==_r);if(this.partial&&c.length>=1){let p=[];for(let h=1;h<=c.length;h++)p.push(c.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return c.join("/")}).join("|"),[a,o]=t.length>1?["(?:",")"]:["",""];s="^"+a+s+o+"$",this.partial&&(s="^(?:\\/|"+a+s.slice(1,-1)+o+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let a=i[i.length-1];if(!a)for(let o=i.length-2;!a&&o>=0;o--)a=i[o];for(let o of s){let l=i;if(n.matchBase&&o.length===1&&(l=[a]),this.matchOne(l,o,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return mr.defaults(t).Minimatch}};mr.AST=ws;mr.Minimatch=ca;mr.escape=Jp;mr.unescape=Qi;import{gunzipSync as uD}from"node:zlib";var No=class{diff(t,r,n={}){let i;typeof n=="function"?(i=n,n={}):"callback"in n&&(i=n.callback);let s=this.castInput(t,n),a=this.castInput(r,n),o=this.removeEmpty(this.tokenize(s,n)),l=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,l,n,i)}diffWithOptionsObj(t,r,n,i){var s;let a=x=>{if(x=this.postProcess(x,n),i){setTimeout(function(){i(x)},0);return}else return x},o=r.length,l=t.length,u=1,c=o+l;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let p=(s=n.timeout)!==null&&s!==void 0?s:1/0,h=Date.now()+p,f=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(f[0],r,t,0,n);if(f[0].oldPos+1>=l&&d+1>=o)return a(this.buildValues(f[0].lastComponent,r,t));let m=-1/0,g=1/0,y=()=>{for(let x=Math.max(m,-u);x<=Math.min(g,u);x+=2){let b,v=f[x-1],w=f[x+1];v&&(f[x-1]=void 0);let C=!1;if(w){let D=w.oldPos-x;C=w&&0<=D&&D<o}let k=v&&v.oldPos+1<l;if(!C&&!k){f[x]=void 0;continue}if(!k||C&&v.oldPos<w.oldPos?b=this.addToPath(w,!0,!1,0,n):b=this.addToPath(v,!1,!0,1,n),d=this.extractCommon(b,r,t,x,n),b.oldPos+1>=l&&d+1>=o)return a(this.buildValues(b.lastComponent,r,t))||!0;f[x]=b,b.oldPos+1>=l&&(g=Math.min(g,x-1)),d+1>=o&&(m=Math.max(m,x+1))}u++};if(i)(function x(){setTimeout(function(){if(u>c||Date.now()>h)return i(void 0);y()||x()},0)})();else for(;u<=c&&Date.now()<=h;){let x=y();if(x)return x}}addToPath(t,r,n,i,s){let a=t.lastComponent;return a&&!s.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+i,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+i,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,i,s){let a=r.length,o=n.length,l=t.oldPos,u=l-i,c=0;for(;u+1<a&&l+1<o&&this.equals(n[l+1],r[u+1],s);)u++,l++,c++,s.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return c&&!s.oneChangePerToken&&(t.lastComponent={count:c,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,u}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){let i=[],s;for(;t;)i.push(t),s=t.previousComponent,delete t.previousComponent,t=s;i.reverse();let a=i.length,o=0,l=0,u=0;for(;o<a;o++){let c=i[o];if(c.removed)c.value=this.join(n.slice(u,u+c.count)),u+=c.count;else{if(!c.added&&this.useLongestToken){let p=r.slice(l,l+c.count);p=p.map(function(h,f){let d=n[u+f];return d.length>h.length?d:h}),c.value=this.join(p)}else c.value=this.join(r.slice(l,l+c.count));l+=c.count,c.added||(u+=c.count)}}return i}};var ef=class extends No{constructor(){super(...arguments),this.tokenize=tN}equals(t,r,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
73
73
|
`))&&(t=t.trim()),(!n.newlineIsToken||!r.includes(`
|
|
74
74
|
`))&&(r=r.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
75
75
|
`)&&(t=t.slice(0,-1)),r.endsWith(`
|
|
@@ -1654,7 +1654,7 @@ ${g.join(`
|
|
|
1654
1654
|
`,exitCode:1}}})}var tn="/project",Tj=4e4,Oj=3e4,_j=/search: matching work limit exceeded \((\d+)\)/,Ij=3,Dj=/exceeded execution deadline \((\d+)ms\)/,$j=/(^|[|;&(\s])(rg|grep|ag|ack)\s/,Rj=32e3;function LA(e){return e>=1e6?`${(e/1e6).toFixed(1)} MB`:`${Math.round(e/1e3)} KB`}function Lj(e,t){let r=_j.exec(e);if(!r)return null;let n=Number(r[1]),i=[...t.index()].filter(([,l])=>!l.binary&&l.size>=n).sort((l,u)=>u[1].size-l[1].size);if(i.length===0)return null;let s=i.slice(0,Ij),a=i.length-s.length,o=[`one file over ${n} lines stops the whole search. these are large enough to be it:`,...s.map(([l,u])=>` ${LA(u.size).padStart(8)} ${l}`)];return a>0&&o.push(` ...and ${a} more at least ${LA(n)}`),o.push(`skip one and search again: rg <pattern> --glob '!${s[0][0]}'`),o.join(`
|
|
1655
1655
|
`)}function Mj(e,t){let r=Dj.exec(e);return!r||!$j.test(t)?null:`the search did not finish in ${Math.round(Number(r[1])/1e3)}s. narrow it to a subdirectory or a --glob, or try again when the machine is less busy \u2014 a loaded machine pushes a search that normally finishes past the deadline.`}function Pj(e,t){if(e.length<=t)return e;let r=Math.floor(t/2),n=e.length-t;return`${e.slice(0,r)}
|
|
1656
1656
|
... [${n} chars truncated \u2014 narrow with head/tail/rg or redirect to a file under /tmp] ...
|
|
1657
|
-
${e.slice(-r)}`}function wm(e){let t=e.maxOutputChars??Tj,r=e.maxExecutionTimeMs??Oj,n=new G0({base:new Qa});n.mount(tn,e.projectFs);let i=[...(e.clis??[]).map(bm),...e.commands??[]],s=new RA({fs:n,cwd:tn,customCommands:i,executionLimits:{maxExecutionTimeMs:r,maxOutputSize:8*1024*1024}}),a=tn,o={};return{get cwd(){return a},async exec(l,u){let c=new AbortController,p=setTimeout(()=>c.abort(),r),h=()=>c.abort();u?.addEventListener("abort",h,{once:!0});try{let f;try{f=await s.exec(l,{cwd:a,env:o,signal:c.signal})}catch(g){return{text:`bash: ${g instanceof Error?g.message:String(g)}
|
|
1657
|
+
${e.slice(-r)}`}function wm(e){let t=e.maxOutputChars??Tj,r=e.maxExecutionTimeMs??Oj,n=new G0({base:new Qa});n.mount(tn,e.projectFs);let i=[...(e.clis??[]).map(bm),...e.commands??[]],s=new RA({fs:n,cwd:tn,customCommands:i,executionLimits:{maxExecutionTimeMs:r,maxOutputSize:8*1024*1024}}),a=tn,o={...e.env};return{get cwd(){return a},async exec(l,u){e.projectFs.markStale();let c=new AbortController,p=setTimeout(()=>c.abort(),r),h=()=>c.abort();u?.addEventListener("abort",h,{once:!0});try{let f;try{f=await s.exec(l,{cwd:a,env:o,signal:c.signal})}catch(g){return{text:`bash: ${g instanceof Error?g.message:String(g)}
|
|
1658
1658
|
exit code: 1`,exitCode:1,cwd:a}}f.env&&(typeof f.env.PWD=="string"&&f.env.PWD&&(a=f.env.PWD),Object.entries(f.env).reduce((y,[x,b])=>y+x.length+b.length,0)<=Rj&&(o=f.env));let d=[];if(f.stdout&&d.push(f.stdout.replace(/\n$/,"")),f.stderr){d.push(f.stderr.replace(/\n$/,""));let g=Lj(f.stderr,e.projectFs)??Mj(f.stderr,l);g&&d.push(g)}return f.exitCode!==0&&d.push(`exit code: ${f.exitCode}`),{text:Pj(d.join(`
|
|
1659
1659
|
`),t)||"(no output)",exitCode:f.exitCode,cwd:a}}finally{clearTimeout(p),u?.removeEventListener("abort",h)}}}}import Fj from"ws";var Bj=4*1024*1024,Uj=4/3,fn=class extends Error{};function MA(e,t,r){return`${e.replace(/\/+$/,"")}/v1/boxes/${encodeURIComponent(t)}/${r}`}async function Pl(e,t,r,n,i){let s={"content-type":"application/json"};n&&(s.authorization=`Bearer ${n}`);let a;try{a=await fetch(MA(e,t,r),{method:i===void 0?"GET":"POST",headers:s,body:i===void 0?void 0:JSON.stringify(i)})}catch(u){throw new fn(`could not reach the box service at ${e}: ${u instanceof Error?u.message:String(u)}`)}let o=await a.text(),l=o?JSON.parse(o):{};if(!a.ok)throw new fn(String(l.error??`box ${r} failed (${a.status})`));return l}async function PA(e){let{endpoint:t,name:r,apiKey:n,plane:i}=e,s=await Pl(t,r,"create",n,{name:r}),a=String(s.token??"");if(!a)throw new fn("the box service returned no access token");let o=[...i.index().keys()].sort(),l=[],u=0,c=0,p=async()=>{l.length!==0&&(await Pl(t,r,"seed",a,{files:l}),c+=l.length,e.onProgress?.(c,o.length),l=[],u=0)};for(let f of o){let d=await i.readBytes(f);l.push([f,Buffer.from(d).toString("base64")]),u+=d.byteLength*Uj,u>=Bj&&await p()}await p();let h=await Pl(t,r,"status",a);return{files:Number(h.files??0),token:a,sessionId:String(h.sessionId??"")}}async function FA(e){return Pl(e.endpoint,e.name,e.purge?"delete":"stop",e.apiKey,{})}async function BA(e){let t=await fetch(`${e.apiOrigin.replace(/\/+$/,"")}/v1/rnx/sessions`,{headers:{authorization:`Bearer ${e.apiKey}`}}),r=await t.text(),n=r?JSON.parse(r):{};if(!t.ok)throw new fn(String(n.message??n.error??"could not list boxes"));return(Array.isArray(n.sessions)?n.sessions:[]).filter(s=>s.kind==="box").map(s=>({id:String(s.id),name:typeof s.name=="string"?s.name:null,startedAt:String(s.startedAt??""),meteredMs:Number(s.meteredMs??0)}))}function UA(e){let t=`${e.apiOrigin.replace(/\/+$/,"")}/v1/rnx/sessions/${encodeURIComponent(e.sessionId)}`,r=setInterval(()=>{fetch(t,{method:"POST",headers:{authorization:`Bearer ${e.apiKey}`}}).catch(()=>{})},e.everyMs??6e4);return r.unref?.(),{stop:()=>clearInterval(r)}}async function zA(e){let{endpoint:t,name:r,token:n}=e,i=MA(t,r,"connect").replace(/^http/,"ws"),s=new Fj(i,[`rnx-box-token.${n}`]),a=null;s.on("error",h=>{a=h.message}),await new Promise((h,f)=>{s.once("open",h),s.once("error",d=>{s.close(),f(d)})}).catch(async h=>{let f=await Pl(t,r,"status",n).then(()=>null,m=>m instanceof Error?m.message:String(m)),d=h instanceof Error?h.message:String(h);throw new fn(`could not open the box shell: ${f??d}`)});let o=0,l=new Map;s.on("message",h=>{let f;try{f=JSON.parse(String(h))}catch{return}if(typeof f!="object"||f===null)return;let d=f,m=l.get(Number(d.id));m&&(l.delete(Number(d.id)),m(d))});let u=null,c=h=>{u=h;for(let[f,d]of l)d({id:f,error:h});l.clear()};s.on("close",()=>c(a??"the box closed the connection")),s.on("error",h=>c(h.message));let p="/project";return{get cwd(){return p},async exec(h){if(u)throw new fn(u);let f=o++,d=await new Promise(g=>{l.set(f,g),s.send(JSON.stringify({type:"shell:exec",id:f,command:h}))});if(d.error)throw new fn(String(d.error));let m=d.result;return m.cwd&&(p=m.cwd),m},close:()=>s.close()}}import zj from"ws";var qj=1500;function Hj(e){if(e)return{port:e};let t=qm();return t.source==="default"?{declined:"no daemon or dev bridge claims a port, and the default is another session\u2019s daemon on a shared machine"}:{port:t.bridgePort}}function qA(e,t={}){let r=Hj(t.port);if("declined"in r)return{settled:Promise.resolve(r),close:()=>{}};let n=r.port,i=null,s=!1;return{settled:new Promise(o=>{let l=!1,u=p=>{l||(l=!0,clearTimeout(c),o(p))},c=setTimeout(()=>{i?.close(),u({declined:`bridge on port ${n} did not answer plane:register`})},qj);try{i=new zj(zm(n))}catch(p){u({declined:p instanceof Error?p.message:String(p)});return}if(s){i.close(),u({declined:"box exited before the plane registered"});return}i.on("error",p=>u({declined:p.message})),i.on("close",()=>u({declined:`bridge on port ${n} closed`})),i.on("open",()=>{i?.send(JSON.stringify({type:"plane:register",id:"register",root:e}))}),i.on("message",p=>{let h;try{h=JSON.parse(String(p))}catch{return}if(typeof h!="object"||h===null)return;let f={...h};if(f.id!=="register")return;if(f.error){i?.close(),u({declined:String(f.error)});return}let d=f.result??{};u({port:n,holders:Number(d.holders??1)})})}),close:()=>{s=!0;try{i?.close()}catch{}}}}import{spawn as Wj}from"node:child_process";import jj from"node:path";function Gj(){let e=process.argv[1];return e?{command:process.execPath,prefix:[e]}:{command:process.execPath,prefix:[]}}function Vj(e,t){return t===tn||!t.startsWith(`${tn}/`)?e:jj.join(e,t.slice(tn.length+1))}function HA(e){return oa(pr.commandName,async t=>{let{command:r,prefix:n}=Gj(),i=Wj(r,[...n,...t],{cwd:Vj(e.root,e.shellCwd()),env:{...process.env,[Bm]:"local-box"},stdio:["ignore","pipe","pipe"]}),s="",a="";i.stdout.on("data",l=>{s+=String(l)}),i.stderr.on("data",l=>{a+=String(l)});let o=await new Promise(l=>{i.once("error",u=>{a+=`${pr.commandName}: ${u.message}
|
|
1660
1660
|
`,l(1)}),i.once("close",u=>l(u??0))});return{stdout:s,stderr:a,exitCode:o}})}import{spawn as Zj}from"node:child_process";var WA=2e4;function Xj(e,t){return new Promise(r=>{let n=Zj("git",e,{cwd:t,env:process.env,stdio:["ignore","pipe","pipe"]}),i="",s="",a=!1,o=u=>{a||(a=!0,clearTimeout(l),r({stdout:i,stderr:s,exitCode:u}))},l=setTimeout(()=>{try{n.kill("SIGKILL")}catch{}s+=`rg: search timed out after ${WA}ms
|
|
@@ -1697,7 +1697,7 @@ exit code: 1`,exitCode:1,cwd:a}}f.env&&(typeof f.env.PWD=="string"&&f.env.PWD&&(
|
|
|
1697
1697
|
change underneath it mid-run.
|
|
1698
1698
|
`);return}e.verbose&&console.log(` ...plane shared on the bridge (port ${a.port})`)}),console.log(` ...accessing shell
|
|
1699
1699
|
`),e.verbose&&console.log(` ${r.index().size} project files indexed
|
|
1700
|
-
`);try{return await VA(n,i
|
|
1700
|
+
`);try{return await VA(n,i)}finally{s?.close()}}async function VA(e,t,r){let n=Qj({input:process.stdin,output:process.stdout});t&&!t.startsWith("..")&&await e.exec(`cd ${JSON.stringify(t)}`);let i=()=>{n.setPrompt(`${e.cwd} > `),n.prompt()},s=Promise.resolve(),a=!1,o=!1,l=async u=>{if(!o){try{await r?.();let c=await e.exec(u);c.text&&c.text!=="(no output)"&&console.log(c.text)}catch(c){console.error(c instanceof Error?c.message:String(c))}!a&&!o&&i()}};return new Promise(u=>{i(),n.on("line",c=>{let p=c.trim();if(!p){s=s.then(()=>{!a&&!o&&i()});return}if(p==="exit"||p==="quit"){s=s.then(()=>{o=!0,n.close()});return}s=s.then(()=>l(p))}),n.on("close",()=>{a=!0,s.then(()=>{console.log(),u(0)})})})}export{uK as runBox};
|
|
1701
1701
|
/*! Bundled license information:
|
|
1702
1702
|
|
|
1703
1703
|
@mixmark-io/domino/lib/style_parser.js:
|