graview 0.1.70 → 0.1.72
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/dist/preview/chunk.2IOJNFCR.js +1 -0
- package/dist/preview/{chunk.I7CSRZC2.js → chunk.2Q4ZXP7P.js} +1 -1
- package/dist/preview/{chunk.O2XPLDMM.js → chunk.2TTKQAWQ.js} +1 -1
- package/dist/preview/chunk.2YSE3SQN.js +23 -0
- package/dist/preview/{chunk.NZFO6BM3.js → chunk.2ZPR6FRI.js} +1 -1
- package/dist/preview/chunk.3BE4SHZD.js +1 -0
- package/dist/preview/{chunk.QODVFVWE.js → chunk.43HWCHBN.js} +1 -1
- package/dist/preview/{chunk.QILGAV7H.js → chunk.45OLF6BK.js} +1 -1
- package/dist/preview/{chunk.NTAC5NNE.js → chunk.47QWCVZD.js} +1 -1
- package/dist/preview/{chunk.7HNMG6LG.js → chunk.4A7BRBEA.js} +1 -1
- package/dist/preview/chunk.4EPCI6VY.js +1 -0
- package/dist/preview/{chunk.OXXZGPJZ.js → chunk.4PB5UFUJ.js} +1 -1
- package/dist/preview/{chunk.SWY6DIE4.js → chunk.4TDYDIIM.js} +3 -3
- package/dist/preview/{chunk.6VG2LCES.js → chunk.4VX7GPFS.js} +1 -1
- package/dist/preview/{chunk.TUVPQLFL.js → chunk.523X2YEQ.js} +1 -1
- package/dist/preview/{chunk.CHG522KL.js → chunk.53GQQETN.js} +1 -1
- package/dist/preview/{chunk.NBB5ALVJ.js → chunk.5MKZTHU2.js} +1 -1
- package/dist/preview/chunk.5OS4SYHE.js +1 -0
- package/dist/preview/{chunk.ZTHZHBVN.js → chunk.5ZT4R227.js} +1 -1
- package/dist/preview/{chunk.RIP2SAQ5.js → chunk.65SI77M7.js} +1 -1
- package/dist/preview/chunk.6ESAFTWB.js +1 -0
- package/dist/preview/chunk.6GUIFP2A.js +1 -0
- package/dist/preview/{chunk.M3HLZX6Q.js → chunk.6GZYKHEN.js} +1 -1
- package/dist/preview/{chunk.UVMHC6VM.js → chunk.6YKKZI4H.js} +1 -1
- package/dist/preview/{chunk.BBLA4PSP.js → chunk.73RMM4W7.js} +1 -1
- package/dist/preview/chunk.7DCBIMOI.js +1 -0
- package/dist/preview/chunk.7JE3J7H4.js +1 -0
- package/dist/preview/{chunk.YTRUZ56A.js → chunk.7QGDWAHH.js} +1 -1
- package/dist/preview/{chunk.JEQ6CA5M.js → chunk.7VCYVCYM.js} +2 -2
- package/dist/preview/{chunk.X7HMTN3Z.js → chunk.A4TBVXHQ.js} +1 -1
- package/dist/preview/{chunk.J4NY2K2A.js → chunk.A6LJPXJ3.js} +1 -1
- package/dist/preview/chunk.AAPXF6NP.js +1 -0
- package/dist/preview/chunk.APUICV5Z.js +1 -0
- package/dist/preview/chunk.ASNVH2G4.js +25 -0
- package/dist/preview/{chunk.CM7EDQ4E.js → chunk.CJHCUHVN.js} +1 -1
- package/dist/preview/chunk.CUEPNS3Z.js +1 -0
- package/dist/preview/{chunk.U3CV227I.js → chunk.CUJRWBPX.js} +1 -1
- package/dist/preview/{chunk.7TZXDPPO.js → chunk.D5PW6YWF.js} +3 -3
- package/dist/preview/chunk.DCIYOZYP.js +1 -0
- package/dist/preview/chunk.DEBW4FH6.js +1 -0
- package/dist/preview/{chunk.MR776WQ2.js → chunk.DYPSFTRP.js} +1 -1
- package/dist/preview/{chunk.BBMX3IIO.js → chunk.E6QZUT4L.js} +1 -1
- package/dist/preview/chunk.E7QZZRAQ.js +17 -0
- package/dist/preview/chunk.EHCMBAZO.js +3 -0
- package/dist/preview/chunk.EXTD5JWD.js +1 -0
- package/dist/preview/{chunk.KOVTQCHX.js → chunk.EZF2T3XQ.js} +1 -1
- package/dist/preview/chunk.EZSST3IU.js +1 -0
- package/dist/preview/{chunk.DIVANC3G.js → chunk.F2BZ4SC4.js} +1 -1
- package/dist/preview/chunk.F2I7ERGM.js +1 -0
- package/dist/preview/{chunk.UWEFODVV.js → chunk.FCV3NX6L.js} +1 -1
- package/dist/preview/{chunk.NZ5TJKPT.js → chunk.FFTBUXKX.js} +2 -2
- package/dist/preview/chunk.FILBI7XA.js +1 -0
- package/dist/preview/{chunk.MGG5DH2S.js → chunk.FKSI5522.js} +1 -1
- package/dist/preview/{chunk.I3ADXJQW.js → chunk.FQ2QUDZS.js} +1 -1
- package/dist/preview/{chunk.A5ENJJZN.js → chunk.G2ZDDO3C.js} +1 -1
- package/dist/preview/{chunk.IPKODEOZ.js → chunk.GAVEWSXU.js} +1 -1
- package/dist/preview/chunk.GH6QX7JR.js +87 -0
- package/dist/preview/chunk.GMHBAS45.js +1 -0
- package/dist/preview/{chunk.YCMMATFK.js → chunk.GOVRX2YX.js} +1 -1
- package/dist/preview/chunk.GXK5PI7I.js +1 -0
- package/dist/preview/{chunk.RECTEAG4.js → chunk.GYP3EF6Z.js} +1 -1
- package/dist/preview/chunk.H2RVMT4Y.js +111 -0
- package/dist/preview/chunk.HCHGKI64.js +1 -0
- package/dist/preview/chunk.HE7SAJKZ.js +1 -0
- package/dist/preview/{chunk.WAIIXXVI.js → chunk.HIIYDKFC.js} +2 -2
- package/dist/preview/chunk.HPDUGKEF.js +32 -0
- package/dist/preview/{chunk.DGDOZHYK.js → chunk.HQRPOGTS.js} +1 -1
- package/dist/preview/chunk.HUJLELZ3.js +1 -0
- package/dist/preview/chunk.HVRUHRXR.js +1 -0
- package/dist/preview/{chunk.6KYTCEIH.js → chunk.I46VNAMS.js} +1 -1
- package/dist/preview/{chunk.QAERSZVB.js → chunk.ID4GOKT6.js} +1 -1
- package/dist/preview/{chunk.RJ7UV3XI.js → chunk.IZKCTF2R.js} +1 -1
- package/dist/preview/chunk.IZUAZ6EV.js +1 -0
- package/dist/preview/{chunk.ZIGW5VOT.js → chunk.J3CUBMUZ.js} +1 -1
- package/dist/preview/{chunk.3HFBHLXC.js → chunk.J4D4BIB4.js} +1 -1
- package/dist/preview/{chunk.IRPMGHZN.js → chunk.J7GH2CGV.js} +1 -1
- package/dist/preview/{chunk.SSHEFQ4R.js → chunk.JE4RBRKH.js} +1 -1
- package/dist/preview/{chunk.4BSEYZMS.js → chunk.JJSZLCNU.js} +1 -1
- package/dist/preview/{chunk.KV3N6VRG.js → chunk.JKX4J3KG.js} +1 -1
- package/dist/preview/{chunk.FUTSLXWN.js → chunk.JMXBMLKH.js} +1 -1
- package/dist/preview/chunk.JOB3EKS6.js +1 -0
- package/dist/preview/{chunk.5IM2X3VT.js → chunk.JP33TNCH.js} +1 -1
- package/dist/preview/{chunk.BZXJKWNI.js → chunk.K6EN2YR4.js} +1 -1
- package/dist/preview/chunk.K6YKXTKC.js +1 -0
- package/dist/preview/{chunk.A7JORJJL.js → chunk.KAIZDIRK.js} +1 -1
- package/dist/preview/{chunk.7LAXSQQY.js → chunk.KAQGSLC6.js} +3 -3
- package/dist/preview/{chunk.QG3LV4RH.js → chunk.KFYSKZC4.js} +1 -1
- package/dist/preview/{chunk.VBHV4TLG.js → chunk.KHRS2SKB.js} +1 -1
- package/dist/preview/chunk.KHVW6Q3T.js +1 -0
- package/dist/preview/chunk.KMFH26SS.js +1 -0
- package/dist/preview/{chunk.2T24FYAO.js → chunk.L3ST2YKI.js} +1 -1
- package/dist/preview/{chunk.HIJ72QX6.js → chunk.L6BLZJ6K.js} +1 -1
- package/dist/preview/{chunk.NCBUECIW.js → chunk.LG2BQ5LB.js} +1 -1
- package/dist/preview/{chunk.LZ3HO3HM.js → chunk.LLYHHG67.js} +1 -1
- package/dist/preview/{chunk.VKQONZKR.js → chunk.LPWANRBL.js} +1 -1
- package/dist/preview/{chunk.3MPLUSVY.js → chunk.LSS64NAA.js} +1 -1
- package/dist/preview/{chunk.SUYYDJGZ.js → chunk.MFNWHXGL.js} +1 -1
- package/dist/preview/{chunk.UJF6YTEO.js → chunk.MNH3WUAB.js} +1 -1
- package/dist/preview/chunk.MQ7AB5N4.js +1 -0
- package/dist/preview/{chunk.CZUUFO6A.js → chunk.MU5JK5TK.js} +1 -1
- package/dist/preview/{chunk.RXUL6P7Y.js → chunk.N5CACZ5F.js} +1 -1
- package/dist/preview/{chunk.S6IKR6RD.js → chunk.NFC2TYA6.js} +1 -1
- package/dist/preview/{chunk.TD2V74XU.js → chunk.NKRDVOLJ.js} +1 -1
- package/dist/preview/{chunk.SGYZM6ZU.js → chunk.NNK2E2EP.js} +1 -1
- package/dist/preview/{chunk.J65CZJIC.js → chunk.NVPKYWMF.js} +1 -1
- package/dist/preview/{chunk.DWMFLLJO.js → chunk.NWJ7ELHN.js} +1 -1
- package/dist/preview/{chunk.NKUNCQB3.js → chunk.O5P6LXHF.js} +1 -1
- package/dist/preview/{chunk.2MWEYNVH.js → chunk.OFK6673S.js} +1 -1
- package/dist/preview/{chunk.C4LC2UEU.js → chunk.OG6FEP3K.js} +1 -1
- package/dist/preview/{chunk.CZI6J5CE.js → chunk.OHGAZ3D5.js} +1 -1
- package/dist/preview/{chunk.XJ4JYROM.js → chunk.ONVYKLRX.js} +1 -1
- package/dist/preview/chunk.OQ3FKUP2.js +1 -0
- package/dist/preview/chunk.OUJV4CYS.js +1 -0
- package/dist/preview/{chunk.T552MHMU.js → chunk.OWHH7JDV.js} +1 -1
- package/dist/preview/{chunk.SCN6IYDG.js → chunk.OXDCGGZV.js} +1 -1
- package/dist/preview/{chunk.YIDNZTON.js → chunk.P3Z4ZCL3.js} +1 -1
- package/dist/preview/chunk.PF7XQ5R5.js +1 -0
- package/dist/preview/{chunk.FSZQTX3K.js → chunk.PGT4ZQDG.js} +4 -4
- package/dist/preview/chunk.PH547SON.js +1 -0
- package/dist/preview/chunk.PS765ODQ.js +3 -0
- package/dist/preview/{chunk.MZSWWMX6.js → chunk.PVAYYFT2.js} +1 -1
- package/dist/preview/{chunk.F5STM4DX.js → chunk.Q6WOIE5I.js} +1 -1
- package/dist/preview/{chunk.55C7WO4X.js → chunk.QE257AXE.js} +1 -1
- package/dist/preview/chunk.QKNC5OUC.js +1 -0
- package/dist/preview/chunk.QMGBAKX6.js +2 -0
- package/dist/preview/{chunk.4QBW46XV.js → chunk.QNFX5VHW.js} +1 -1
- package/dist/preview/chunk.QPCDAQTW.js +1 -0
- package/dist/preview/{chunk.TS5APXWC.js → chunk.QPTQIGLX.js} +1 -1
- package/dist/preview/{chunk.LZNHTROY.js → chunk.R5YGW5ZX.js} +1 -1
- package/dist/preview/{chunk.4VTUC5TF.js → chunk.RJ6KEVZC.js} +1 -1
- package/dist/preview/{chunk.6QMRDSTD.js → chunk.RKVMRP7B.js} +1 -1
- package/dist/preview/{chunk.YBQUP3KE.js → chunk.S7U2CHHG.js} +1 -1
- package/dist/preview/{chunk.CLJKQLK2.js → chunk.SD2UYSV6.js} +2 -2
- package/dist/preview/chunk.SI5GGFQR.js +1 -0
- package/dist/preview/{chunk.7QWGIGHM.js → chunk.SMF5S4DQ.js} +1 -1
- package/dist/preview/{chunk.LEZGBHPZ.js → chunk.SNDFIJVX.js} +1 -1
- package/dist/preview/{chunk.F5756PXX.js → chunk.STHWM422.js} +2 -2
- package/dist/preview/{chunk.JIEBGUCA.js → chunk.SV75TRCH.js} +1 -1
- package/dist/preview/{chunk.U2DZE7A5.js → chunk.SXGPRFA4.js} +1 -1
- package/dist/preview/{chunk.ZGJUCVT5.js → chunk.T3RFZ66S.js} +1 -1
- package/dist/preview/{chunk.I6HIVTXU.js → chunk.T6ISUVUP.js} +1 -1
- package/dist/preview/{chunk.R65YX332.js → chunk.TBLOBXZ2.js} +1 -1
- package/dist/preview/{chunk.CVVNHQPO.js → chunk.TDWJU6GW.js} +1 -1
- package/dist/preview/{chunk.2QALBEWP.js → chunk.THLT6NVO.js} +1 -1
- package/dist/preview/{chunk.7FTATAH2.js → chunk.TQCVEKPH.js} +1 -1
- package/dist/preview/{chunk.PAIBRJVZ.js → chunk.TQF5XCUS.js} +1 -1
- package/dist/preview/{chunk.F5XWYO5W.js → chunk.TRP66PHK.js} +1 -1
- package/dist/preview/chunk.TWXYI5AP.js +2 -0
- package/dist/preview/{chunk.IQCMV5WD.js → chunk.UOUQZYVD.js} +1 -1
- package/dist/preview/{chunk.FJXKQZZS.js → chunk.UPL3D3ZO.js} +1 -1
- package/dist/preview/{chunk.U5Q7EVZQ.js → chunk.UXW43HNW.js} +1 -1
- package/dist/preview/{chunk.ZOSTOVXR.js → chunk.V4GSVXSV.js} +1 -1
- package/dist/preview/chunk.VCEDSOAK.js +1 -0
- package/dist/preview/{chunk.4O3STSC4.js → chunk.VE4AQFLW.js} +1 -1
- package/dist/preview/{chunk.HMV4ILAC.js → chunk.VGQDPEB5.js} +1 -1
- package/dist/preview/{chunk.5A5DI36V.js → chunk.VMYXBFPE.js} +1 -1
- package/dist/preview/{chunk.BQWMHHAZ.js → chunk.VNI6HZEF.js} +2 -2
- package/dist/preview/chunk.VQRY2NQ6.js +1 -0
- package/dist/preview/{chunk.K6EKSURO.js → chunk.VUE6ILQV.js} +1 -1
- package/dist/preview/{chunk.3KF5RYPW.js → chunk.W2VSEEKX.js} +1 -1
- package/dist/preview/{chunk.KP7HUXH5.js → chunk.WAPY4RCS.js} +1 -1
- package/dist/preview/chunk.WFRSGGU5.js +1 -0
- package/dist/preview/{chunk.XAN7QXMQ.js → chunk.WIVNFOQR.js} +1 -1
- package/dist/preview/chunk.WRIBFLVG.js +1 -0
- package/dist/preview/{chunk.TVNY7F64.js → chunk.WWD2TS47.js} +1 -1
- package/dist/preview/{chunk.5W7EGQCQ.js → chunk.WWFOQDPR.js} +2 -2
- package/dist/preview/{chunk.FBDCHJS2.js → chunk.X45EITTK.js} +1 -1
- package/dist/preview/{chunk.5FQHZVE3.js → chunk.X5MCAUFX.js} +1 -1
- package/dist/preview/{chunk.IJVR7ZL7.js → chunk.XBWFQ54R.js} +1 -1
- package/dist/preview/{chunk.JPJHM62B.js → chunk.XMBGT6UT.js} +1 -1
- package/dist/preview/chunk.XP4IVKKR.js +1 -0
- package/dist/preview/chunk.XYBWBMNU.js +1 -0
- package/dist/preview/{chunk.MYR36HW4.js → chunk.YC2IDHQX.js} +1 -1
- package/dist/preview/{chunk.ZQSV5XVB.js → chunk.YCYJHPWS.js} +1 -1
- package/dist/preview/{chunk.BJ3G7J2Z.js → chunk.YF5GCOSZ.js} +3 -2
- package/dist/preview/{chunk.3I2SGKKF.js → chunk.YGGBGHZU.js} +1 -1
- package/dist/preview/chunk.YRC6PKXP.js +1 -0
- package/dist/preview/{chunk.6NYSB6OZ.js → chunk.YRN67Z5K.js} +1 -1
- package/dist/preview/chunk.ZDUKVXBI.js +5 -0
- package/dist/preview/index.html +55 -55
- package/dist/preview/page.js +2 -2
- package/package.json +6 -6
- package/dist/preview/chunk.2QOB62XU.js +0 -1
- package/dist/preview/chunk.36FKQJFM.js +0 -2
- package/dist/preview/chunk.3A3DCALP.js +0 -1
- package/dist/preview/chunk.3GPYKWAD.js +0 -1
- package/dist/preview/chunk.3QPMFUMV.js +0 -1
- package/dist/preview/chunk.3ZP6IDUC.js +0 -1
- package/dist/preview/chunk.53HW224Y.js +0 -1
- package/dist/preview/chunk.AW74DZ5V.js +0 -17
- package/dist/preview/chunk.C67TMA4U.js +0 -111
- package/dist/preview/chunk.CCCSZRKU.js +0 -1
- package/dist/preview/chunk.CUA7F3YJ.js +0 -25
- package/dist/preview/chunk.DBSSCJQM.js +0 -1
- package/dist/preview/chunk.DW6KXAUM.js +0 -1
- package/dist/preview/chunk.DWPM7AWA.js +0 -1
- package/dist/preview/chunk.FXCKKVT5.js +0 -1
- package/dist/preview/chunk.HHQUCFN4.js +0 -1
- package/dist/preview/chunk.HPWMCS3H.js +0 -23
- package/dist/preview/chunk.HRLCDBMO.js +0 -1
- package/dist/preview/chunk.I7ODVOO5.js +0 -1
- package/dist/preview/chunk.IANOWT3Z.js +0 -1
- package/dist/preview/chunk.IFPJPJ4M.js +0 -1
- package/dist/preview/chunk.IUVRJDL3.js +0 -5
- package/dist/preview/chunk.J4CSY2D5.js +0 -2
- package/dist/preview/chunk.JJIKTTXB.js +0 -1
- package/dist/preview/chunk.KDOJC4FX.js +0 -1
- package/dist/preview/chunk.KJAOJTZZ.js +0 -1
- package/dist/preview/chunk.KLZPUTMU.js +0 -1
- package/dist/preview/chunk.LQ2PDW2M.js +0 -32
- package/dist/preview/chunk.M7DJJRFH.js +0 -1
- package/dist/preview/chunk.MNWP3TPN.js +0 -1
- package/dist/preview/chunk.MSWOETXN.js +0 -1
- package/dist/preview/chunk.NILR2BWR.js +0 -1
- package/dist/preview/chunk.NNYKLENL.js +0 -1
- package/dist/preview/chunk.PYGNO2AV.js +0 -87
- package/dist/preview/chunk.PZHCWMKT.js +0 -1
- package/dist/preview/chunk.QQUZ5RTQ.js +0 -1
- package/dist/preview/chunk.QVID5WHS.js +0 -1
- package/dist/preview/chunk.RHV73CBA.js +0 -3
- package/dist/preview/chunk.RP6C2IUM.js +0 -1
- package/dist/preview/chunk.RPHZY7N4.js +0 -1
- package/dist/preview/chunk.RSMCTI2N.js +0 -1
- package/dist/preview/chunk.S4QSZRKH.js +0 -1
- package/dist/preview/chunk.T4QRIJE4.js +0 -1
- package/dist/preview/chunk.UJM5EZDM.js +0 -3
- package/dist/preview/chunk.UJPX3BUV.js +0 -1
- package/dist/preview/chunk.UYBSVE2W.js +0 -1
- package/dist/preview/chunk.WMZ2BINI.js +0 -1
- package/dist/preview/chunk.X2RHBTJI.js +0 -1
- package/dist/preview/chunk.X3FPVFFB.js +0 -1
- package/dist/preview/chunk.X4PFLIXB.js +0 -1
- package/dist/preview/chunk.YR7DKU5T.js +0 -1
- package/dist/preview/chunk.ZBK3FCVE.js +0 -1
- package/dist/preview/chunk.ZH5L746C.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk.AJZBJBMO.js";var e='"use strict";\n/*! @remote-dom/core and @remote-dom/polyfill \u2014 Copyright 2020-present, Shopify Inc. \u2014 MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest\'s worker runtime \u2014 Elastic License 2.0. */\n"use strict";(()=>{var Re=globalThis,mo=Re.addEventListener,po=Re.removeEventListener,ho=Re.postMessage,go=globalThis.queueMicrotask,pn=globalThis.performance,yo=pn?pn.now.bind(pn):Date.now,_e={listen:t=>mo.call(Re,"message",t),unlisten:t=>po.call(Re,"message",t),post:t=>ho.call(Re,t),microtask:t=>go.call(globalThis,t),now:()=>yo()};var O=Symbol("name"),fe=Symbol("prefix"),me=Symbol("value"),v=Symbol("ns"),Y=Symbol("owner"),k=Symbol("owner_document"),re=Symbol("attributes"),D=Symbol("prev"),p=Symbol("next"),R=Symbol("child"),z=Symbol("parent"),pe=Symbol("host"),K=Symbol("data"),Te=Symbol("listeners"),hn=Symbol("isTrusted"),Pe=Symbol("path"),Me=Symbol("stop_immediate_propagation"),Ce=Symbol("dispatching"),ie=Symbol("content"),L=Symbol("hooks"),mt=Symbol("extensions"),we=Symbol("hooks_dispatch"),B=Symbol("is_connected"),Ie=Symbol("create_element"),nr=0,$=1,ke=2,De=3,Le=8,Se=9,rr=10,he=11,_="http://www.w3.org/1999/xhtml",Z="http://www.w3.org/2000/svg",or="http://www.w3.org/XML/1998/namespace",$e="http://www.w3.org/2000/xmlns/";function pt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function H(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function sr(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function M(t,e){let n=globalThis.DOMException;if(typeof n=="function")return new n(t,e);let r=new Error(t);return r.name=e,r}var ir=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,ar=/[\\0\\t\\n\\f\\r />=]/u,Eo=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===""?null:e}function lr(t){ir.test(t)||yn(t)}function gn(t){(t===""||ar.test(t))&&yn(t)}function ht(t,e,n){let r=ae(t),o=String(e),s=o.indexOf(":"),i=s<0?null:o.slice(0,s),l=s<0?o:o.slice(s+1);if((i!=null&&(i===""||Eo.test(i))||(n==="element"?!ir.test(l):l===""||ar.test(l)))&&yn(o),i!=null&&r==null)throw M(`A namespace is required for the prefix in "${o}"`,"NamespaceError");if(i==="xml"&&r!==or)throw M("The xml prefix requires the XML namespace","NamespaceError");if((o==="xmlns"||i==="xmlns")&&r!==$e)throw M("The xmlns name requires the XMLNS namespace","NamespaceError");if(r===$e&&o!=="xmlns"&&i!=="xmlns")throw M("The XMLNS namespace requires the xmlns name or prefix","NamespaceError");return{namespace:r,qualifiedName:o,prefix:i,localName:l}}function yn(t){throw M(`Invalid name: "${t}"`,"InvalidCharacterError")}var gt=0,yt=1,cr=2,En=3,bo=typeof performance>"u"?Date.now:performance.now.bind(performance),V=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=cr;static BUBBLING_PHASE=En;timeStamp=bo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=gt;[Pe]=[];[Me]=!1;[Ce]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,hn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[hn]}composedPath(){return[...this[Pe]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Me]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function bn(t,e,n){if(t.cancelBubble)return;let o=e[Te]?.get(t.type)?.[n===yt?"capture":"bubble"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?cr:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i=="object"?i.handleEvent(t):i.call(e,t)}catch(l){setTimeout(No,0,l)}if(t[Me])break}}function No(t){throw t}var Xe=[],Et=new WeakMap;function bt(t,e){let n=Et.get(t);n?n.push(e):Et.set(t,[e]),Xe[Xe.length-1].push(t)}function F(t){let e=[];Xe.push(e);let n;try{n=t()}catch(r){Xe.pop();try{ur(e)}catch{}throw r}return Xe.pop(),ur(e),n}function ur(t){let e,n=!1;for(let r of t){let o=Et.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}Et.delete(r)}}if(n)throw e}var Nt=[],Ke=[],Nn=!1;function Oe(t){for(let e of t)Nt.push(e),e[1]&&Ke.push(e[1]);if(!Nn){Nn=!0;try{let e,n=!1;for(let r=0;r<Nt.length;r++){let[o,s]=Nt[r];s&&Ke.splice(Ke.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{Nt.length=0,Ke.length=0,Nn=!1}}}function Ze(t){let e=t;for(;e;){if(Ke.includes(e))return!0;e=e[z]??e[pe]}return!1}var Qe=Symbol("listenerRegistrations"),ge=class{[Te]=void 0;[Qe]=void 0;[k]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r=="object"&&r.capture===!0,s=typeof r=="object"&&r.once===!0,i=typeof r=="object"?r.signal:void 0;if(i?.aborted)return;let l=Tn(o),c=this[Qe];c||(c=new Map,this[Qe]=c);let u=c.get(e);u||(u={},c.set(e,u));let m=u[l];if(m||(m=new Map,u[l]=m),m.has(n))return;let g=this,y={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(y.normalizedListener=function(...C){if(y.signal?.aborted){Tt(g,y);return}return y.once&&Tt(g,y),typeof y.listener=="object"?y.listener.handleEvent(...C):y.listener.call(this,...C)});let E=this[Te];E||(E=new Map,this[Te]=E);let x=E.get(e);x||(x={},E.set(e,x));let N=x[l];if(N||(N=new Set,x[l]=N),m.set(n,y),N.add(y),i){let w=()=>{Tt(g,y)};y.abortListener=w,i.addEventListener("abort",w,{once:!0})}this[k]?.defaultView[we].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return To.call(this,e,n,r)}dispatchEvent(e){if(e[Ce])throw M("Failed to execute \'dispatchEvent\' on \'EventTarget\': The event is already being dispatched.","InvalidStateError");e[Ce]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[Pe]=n;for(let s=n.length;s--;)if(bn(e,n[s],yt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(bn(e,o[s],En),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Ce]=!1,e.cancelBubble=!1,e[Me]=!1,e.eventPhase=gt,e.currentTarget=null,e[Pe]=[]}}};function To(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=Tn(!!r),s=this[Qe]?.get(t)?.[o]?.get(e);s&&Tt(this,s)}function Tn(t){return t?"capture":"bubble"}function Tt(t,e){let n=Tn(e.capture),r=t[Qe],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener("abort",e.abortListener);let i=t[Te],l=i?.get(e.type);if(!l)return;let c=l[n];c?.delete(e)&&(c.size===0&&delete l[n],!l.bubble&&!l.capture&&i?.delete(e.type),t[k]?.defaultView[we].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var et=0,dr=1,On=2,vn=3,tt=4,fr=0,mr=1,Ot=2,vt=3,pr=4,Sn=5,hr=6,gr=7,wt=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function wo(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s==="\\\\"?o++:s===r&&(r=null);continue}if(s===\'"\'||s==="\'")r=s;else if(s==="(")n++;else if(s===")"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function W(t){throw M(`Invalid or unsupported selector: "${t}"`,"SyntaxError")}function xt(t,e){let n=typeof e=="string"?nt(e):[{combinator:tt,matchers:e}],r=null,o=t[R];return o&&n[0].matchers.length&&xn(o,n,s=>(r=s,!1)),r}function At(t,e){let n=typeof e=="string"?nt(e):[{combinator:tt,matchers:e}],r=new Q,o=t[R];return o&&n[0].matchers.length&&xn(o,n,s=>{r.push(s)}),r}function nt(t,e=!1,n=!1){let r={combinator:tt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:([\'"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,"");i===""&&W(t);let l=0,c;for(;c=s.exec(i);){c.index!==l&&W(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&W(t),c[1]===">"?r.combinator=dr:c[1]==="+"?r.combinator=vn:c[1]==="~"?r.combinator=On:r.combinator=et,r={combinator:tt,matchers:[]},o.push(r));let u=c[8]?H(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&W(t);let g,y=c[4]??c[5]??c[7];if(c[2]){wt.test(u)||W(t);let E=c[5],x=E?.[0];if(c[3]==null&&(x===\'"\'||x==="\'")){let N=c[0].lastIndexOf(E);y=i.slice(c.index+N+1),s.lastIndex=i.length}else E!=null&&!wt.test(E)&&W(t);g=pr}else c[6]?(wt.test(u)||W(t),g=c[6]==="#"?Ot:vt):c[8]?g=c[9]==null?Sn:hr:c[7]==="*"?g=fr:c[7]&&wt.test(c[7])?g=mr:W(t);c[9]?([y,s.lastIndex]=wo(i,s.lastIndex),u!=="has"&&u!=="not"&&W(t),u==="has"&&e&&W(t),nt(y,e||u==="has",u==="has")):g===Sn&&W(t),r.matchers.push({type:g,name:u,value:y}),l=s.lastIndex}return(l!==i.length||r.matchers.length===0)&&W(t),o}function So(t,e){let n=nt(e);return n[0]?.matchers.length?Je(t,n):!1}function Oo(t,e){let n=nt(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=et,s={type:gr,name:":scope"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:et,matchers:[s]}),n.some(({matchers:c})=>c.length===0))return!1;let i=o===vn||o===On?t[p]:t[R];if(!i)return!1;let l=!1;return xn(i,n,()=>(l=!0,!1),t),l}function xn(t,e,n,r){let o=[],s=t;for(;s;){if(j(s)){if(Je(s,e,r)&&n(s)===!1)return!1;let i=s[R];if(i){let l=s[p];l&&o.push(l),s=i;continue}}s=s[p]??o.pop()??null}return!0}function Je(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===tt){if(!St(t,o,n))return!1;let l=e.slice(0,-1);return l.length===0||Je(t,l,n)}let s=r===dr||r===et?z:D,i=t[s];if(!i)return!1;if(r===et||r===On){for(;i;){if(j(i)&&St(i,o,n)){let l=e.slice(0,-1);if(l.length===0||Je(i,l,n))return!0}i=i[s]}return!1}else{if(r===vn&&!j(i)){for(;i&&!j(i);)i=i[s];if(!i)return!1}if(!j(i)||!St(i,o,n))return!1;let l=e.slice(0,-1);return l.length===0||Je(i,l,n)}}function wn(t,e){return t.getAttributeNS(null,t.namespaceURI===_?H(e):e)}function St(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(St(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case fr:return o==="*";case mr:return t.namespaceURI===_?t.localName===H(o):t.localName===o;case Ot:return wn(t,"id")===o;case vt:let i=wn(t,"class");return i?pt(i).includes(o):!1;case pr:let l=wn(t,o);return s==null?l!=null:l===s;case gr:return t===n;case Sn:W(`:${o}`);case hr:switch(o){case"has":return Oo(t,s||"");case"not":return!So(t,s||"");default:W(`:${o}(${s})`)}}return!1}function vo(t){return t.nodeType===ke}function rt(t){return K in t}function Rn(t){return t.nodeType===De}function xo(t){return t.nodeType===Le}function j(t){return t.nodeType===$}function An(t){return t.nodeType===he}function Nr(t){return"appendChild"in t}function Rt(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let l=[];for(let c of st(i)){if(o.has(c)||(o.add(c),e.push(c),l.push(c),!j(c)))continue;let u=c[re];if(u)for(let g of u)o.has(g)||(o.add(g),e.push(g));let m=c[ie];m&&!o.has(m)&&!r.has(m)&&(r.add(m),n.push(m))}s??=l}return{nodes:e,treeNodes:s}}function ot(t,e){for(let n of t)n[k]=e}function yr(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[k]=e,r}function Er(t,e){if(Rn(t))return e.createTextNode(t.data);if(xo(t))return e.createComment(t.data);if(vo(t))return yr(t,e);if(j(t)){let n=e[Ie](t[O],t.namespaceURI,t[fe],t.localName);if(t[re])for(let r=0;r<t[re].length;r++){let o=t[re].item(r);n.attributes.setNamedItem(yr(o,e))}return n}else{if(An(t))return e.createDocumentFragment();{let n=new t.constructor;return n[k]=e,n}}}function _t(t,e,n=t.ownerDocument){if(t.nodeType===Se)throw M("Cannot clone a document node","NotSupportedError");let r=Er(t,n);if(!e||!j(t)&&!An(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],l,c;if(i.cloningContent)if(i.contentSource&&i.contentDestination)l=i.contentSource.childNodes[i.childIndex++],c=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(l=i.source.childNodes[i.childIndex++],c=i.destination,!l){if(i.cloningContent=!0,i.childIndex=0,j(i.source)&&i.source.namespaceURI===_&&i.source.localName==="template"){let m=i.source[ie];m&&(o.has(m)&&br(),o.add(m),i.contentSource=m,i.contentDestination=i.destination.content)}continue}if(!l){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(l)&&br(),o.add(l);let u=Er(l,n);j(l)||An(l)?s.push({source:l,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function br(){throw new Error("Cannot clone a cyclic or repeated node graph")}function Pt(t,e){let n=String(e);return n===""?null:xt(t,[{type:Ot,name:n}])}function Mt(t,e){let n=[...new Set(pt(String(e)))];return At(t,n.map(r=>({type:vt,name:r})))}function Ct(t,e){let n=String(e),r=H(n),o=[];for(let s of It(t))j(s)&&(n==="*"||(s.namespaceURI===_?s[O]===r:s[O]===n))&&o.push(s);return o}function It(t){let e=[],n=[],r=t[R];for(;r;){e.push(r);let o=r[R],s=r[p];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function st(t){let e=It(t);return e.unshift(t),e}var J=class extends ge{nodeType=nr;[O]="";[z]=null;[pe]=null;[R]=null;[D]=null;[p]=null;[B]=!1;get[L](){return this[k].defaultView[we]}get localName(){return this[O]}get nodeName(){return this[O]}get ownerDocument(){return this[k]}get isConnected(){return this[B]}isDefaultNamespace(e){let n=ae(e);return Ao(this)===n}get parentNode(){return this[z]}set parentNode(e){}get parentElement(){let e=this[z];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[D]}set previousSibling(e){}get nextSibling(){return this[p]}set nextSibling(e){}get previousElementSibling(){let e=this[D];for(;e&&e.nodeType!==1;)e=e[D];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[p];for(;e&&e.nodeType!==1;)e=e[p];return e}set nextElementSibling(e){}get firstChild(){return this[R]}set firstChild(e){}get lastChild(){let e=this[R];for(;e;){let n=e[p];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return rt(this)?this.data:null}set nodeValue(e){rt(this)&&(this.data=e)}get textContent(){if(rt(this))return this.data;let e="";for(let n of It(this))Rn(n)&&(e+=n.data);return e}set textContent(e){if(rt(this))this.data=e;else if(Nr(this)){let n=e==null?"":String(e);n===""?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return _t(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function Ao(t){let e=t;for(;e;)switch(e.nodeType){case $:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS($e,"xmlns");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case Se:e=e.documentElement;break;case rr:case he:return null;case ke:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol("insertNode"),Mn=Symbol("preflightInsertions"),kt=Symbol("replaceNode"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=ve(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Pn(r,n,o);this.parentNode===r?r[kt](i,this,o):r[ee](i,s,o)})}before(...e){let n=ve(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[D];for(;s&&n.includes(s);)s=s[D];let i=Pn(r,n,o);r[ee](i,s?s[p]:r.firstChild,o)})}after(...e){let n=ve(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Pn(r,n,o);r[ee](i,s,o)})}};function _n(t){return F(()=>{let e=[];try{t(e)}catch(n){try{Oe(e)}catch{}throw n}Oe(e)})}function ve(t){return t.map(e=>e instanceof J?e:String(e))}function it(t,e){return e instanceof J?e:t.ownerDocument.createTextNode(String(e))}function le(t,e){for(let n of e){if(!(n instanceof J))continue;let r=t;for(;r;){if(r===n)throw M("Cannot insert a node into itself or one of its descendants","HierarchyRequestError");r=r[z]??r[pe]}}}function Pn(t,e,n){let r=[];for(let s of e)r.push(it(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[Mn](r);for(let s of r)o[ee](s,null,n);return o}var Dt,Cn=0,Tr=0,wr=0,Sr=0,Ge=!1,kn=!1,at=!1,Lt=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!="function")throw new TypeError("MutationObserver callback must be a function");this.#t=e}observe(e,n={}){let r=Ro(n),o=Dt??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?Cn++:In(i,-1),s.set(this,r),In(r,1),this.#e.add(e)}disconnect(){let e=Dt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),Cn--,In(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,Cn===0&&(Dt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function te(t){let e=Dt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let l=!1;if(t.type==="attributes"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??""))continue;l=i.attributeOldValue}else if(t.type==="characterData"){if(!i.characterData)continue;l=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||l)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new Q,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new Q,target:t.target,type:t.type})}function Gt(...t){let e=new Q;return e.push(...t),e}function Ro(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError("attributeOldValue and attributeFilter require attributes to be enabled");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError("characterDataOldValue requires characterData to be enabled");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError("MutationObserver options must enable childList, attributes, or characterData");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function In(t,e){t.attributes&&(Tr+=e),t.characterData&&(wr+=e),t.childList&&(Sr+=e),Ge=Tr>0,kn=wr>0,at=Sr>0}var oe=class extends ye{childNodes=new Q;children=new Q;appendChild(e){return F(()=>this[ee](e,null))}insertBefore(e,n){return F(()=>this[ee](e,n||null))}append(...e){return F(()=>{let n=ve(e.filter(r=>r!=null));n.length>1&&le(this,n);for(let r of n)this[ee](it(this,r),null)})}prepend(...e){return F(()=>{let n=ve(e.filter(o=>o!=null));n.length>1&&le(this,n);let r=this.firstChild;for(let o of n)this[ee](it(this,o),r)})}replaceChildren(...e){return F(()=>{let n=ve(e.filter(o=>o!=null));le(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ee](it(this,o),null)})}removeChild(e){return F(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw M("The node is not a child of this node","NotFoundError");let n=this[B]?st(e):void 0,r=e[D],o=e[p],s=Ht(this,e);if(n)for(let i of n)i[B]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,"disconnectedCallback"),Oe(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return F(()=>this[kt](e,n))}[kt](e,n,r){if(le(this,[e]),n.parentNode!==this)throw M("The reference node is not a child of this parent","NotFoundError");let o=n[D],s=n[p],i=this.prepareInsertion(e),l=this[B]?st(n):void 0,c=new Set(i.map(({node:y})=>y)),u=s;for(;u&&c.has(u);)u=u[p];let m=Ht(this,n);if(l){for(let E of l)E[B]=!1;let y=new Set(l);for(let E of i)y.has(E.node)&&(E.shouldDisconnect=!1)}this.commitInsertion(i,u);let g=this[B];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),l&&this.enqueueTreeReactions(l,"disconnectedCallback"),this.enqueueInsertionReactions(i,g),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,m),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return At(this,e)}querySelector(e){return xt(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[Mn](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(le(this,[e]),n&&n.parentNode!==this)throw M("The reference node is not a child of this parent","NotFoundError")}insertIntoValidated(e,n,r){e===n&&(n=e[p]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[B];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):Oe(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let i=e[R];for(;i;)n.push(i),i=i[p]}else n.push(e);let r=this[B],o=this[k],s=[];for(let i of n){let l=i[B],c=l||r,u,m;if(i[k]===o)c&&(u=st(i));else{let g=Rt(i);m=g.nodes,c&&(u=g.treeNodes)}s.push({node:i,nodes:u,adoption:m,shouldDisconnect:l})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[z];if(i){let l=s.node[D],c=s.node[p];s.source={parent:i,index:Ht(i,s.node),previousSibling:l,nextSibling:c}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[k];for(let{adoption:s}of e)s&&ot(s,r);let o=this[B];for(let{nodes:s}of e)if(s)for(let i of s)i[B]=o}attachChild(e,n){if(n){let s=n[D];e[p]=n,e[D]=s,s?s[p]=e:this[R]=e,n[D]=e}else{e[p]=null;let s=this[R];if(s){let i;for(;i=s[p];)s=i;s[p]=e,e[D]=s}else this[R]=e,e[D]=null}let r=j(e);e[z]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!j(s);)s=s[p];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[D],nextSibling:e[p]}}queueRemovalMutationRecord(e,n,r,o){at&&te({type:"childList",target:e,removedNodes:Gt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(at)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),te({type:"childList",target:this,addedNodes:Gt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==$||Ze(this)?[]:[[()=>this[L].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===$&&!Ze(s.parent)&&n.push([()=>s.parent[L].removeChild?.(s.parent,o,s.index)]),this.nodeType===$&&!Ze(this)&&n.push([()=>this[L].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,"disconnectedCallback"),n&&this.enqueueTreeReactions(o,"connectedCallback"))}}enqueueTreeReactions(e,n){vr(e,n)}};function Or(t,e,n,r){if(e.parentNode!==t)throw Error("not a child of this node");let o=t[B]?n.treeNodes:void 0,s=e[D],i=e[p],l=Ht(t,e);if(o)for(let u of o)u[B]=!1;ot(n.nodes,r),at&&te({type:"childList",target:t,removedNodes:Gt(e),previousSibling:s,nextSibling:i}),o&&vr(o,"disconnectedCallback");let c=[];t.nodeType===$&&!Ze(t)&&c.push([()=>t[L].removeChild?.(t,e,l)]),Oe(c)}function Ht(t,e){let n=e[D],r=e[p];n?n[p]=r:t[R]=r,r&&(r[D]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),j(e)&&t.children.splice(t.children.indexOf(e),1),e[z]=null,e[p]=null,e[D]=null,o}function vr(t,e){for(let n of t){let r=n[e];typeof r=="function"&&bt(n,()=>r.call(n))}}function lt(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||bt(t,()=>i.call(t,e,n,r,o))}var Ut=class{[R]=null;constructor(e){this[Y]=e}getNamedItem(e){let n=String(e),r=this[Y][v]===_?H(n):n,o=this[R];for(;o;){if(o.name===r)return o;o=o[p]}return null}getNamedItemNS(e,n){let r=ae(e),o=String(n),s=this[R];for(;s;){if(s.localName===o&&s[v]===r)return s;s=s[p]}return null}item(e){let n=this[R],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[R];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[Y][v]===_?H(n):n;return F(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ae(e),o=String(n);return F(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[v]===r))}removeNamedItemImmediately(e){let n=this[Y],r=this[R],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[R]===r&&(this[R]=r[p]);let s=r.value;return r[p]=null,r[Y]=null,Ge&&te({type:"attributes",target:n,attributeName:r.name,attributeNamespace:r[v],oldValue:s}),n[L].removeAttribute?.(n,r.name,r[v]),lt(n,r.localName,s,null,r[v]),r}o=r,r=r[p]}return null}setNamedItem(e){return F(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[Y],r=e[Y];if(r!=null&&r!==n)throw M("The attribute is already in use by another element.","InUseAttributeError");let o=null,s=this[R],i=null;for(;s;){if(s.localName===e.localName&&s[v]===e[v]){if(s===e)return s;i?i[p]=e:this[R]=e,e[p]=s[p],s[p]=null,o=s;break}i=s,s=s[p]}o==null&&(i?i[p]=e:this[R]=e),e[Y]=n,e[k]=n[k],o&&(o[Y]=null);let l=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return l&&Ge&&te({type:"attributes",target:n,attributeName:e.name,attributeNamespace:e[v],oldValue:o?.value??null}),c&&n[L].removeAttribute?.(n,o.name,o[v]),(l||c)&&n[L].setAttribute?.(n,e.name,e.value,e[v]),l&<(n,e.localName,o?.value??null,e.value,e[v]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[R];for(;e;)yield e,e=e[p]}};var xe=class extends J{nodeType=ke;[v]=null;[p]=null;[Y]=null;constructor(e,n,r){super(),this[O]=e,this[me]=n,r&&(this[v]=r)}get nodeName(){return this[O]}set nodeName(e){}get name(){return this[O]}set name(e){}get localName(){if(this[v]==null)return this[O];let e=this[O].indexOf(":");return e<0?this[O]:this[O].slice(e+1)}get prefix(){if(this[v]==null)return null;let e=this[O].indexOf(":");return e<0?null:this[O].slice(0,e)}get value(){return this[me]}set value(e){let n=String(e),r=this[Y];if(!r){this[me]=n;return}F(()=>{let o=this[me];this[me]=n,Ge&&o!==n&&te({type:"attributes",target:r,attributeName:this[O],attributeNamespace:this[v],oldValue:o}),this[L].setAttribute?.(r,this[O],n,this[v]),lt(r,this.localName,o,n,this[v])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[Y]}get namespaceURI(){return this[v]}get specified(){return!0}};var _o={amp:"&",AMP:"&",apos:"\'",gt:">",GT:">",lt:"<",LT:"<",quot:\'"\',QUOT:\'"\'},Po=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Mo=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>\'"=/\\s]+(?:=([\'"])[^]*?\\3|=[^>\'"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Rr=/\\s([^<>\'"=/\\n\\s]+)(?:=(["\'])([\\s\\S]*?)\\2|=([^>\'"\\n\\s]*)|)/g,Co="|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|",Io=/^(?:color|face|size)$/i;function xr(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return _o[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function _r(t){return t.namespaceURI===_&&Po.has(t.localName)}function Ar(t){let e=t.localName;return t[v]===Z&&(e==="foreignObject"||e==="desc"||e==="title")}function ko(t,e){if(Co.includes(`|${t}|`))return!0;if(t!=="font")return!1;for(let n of e.matchAll(Rr))if(Io.test(n[1]))return!0;return!1}function Bt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(Mo)){let l=i[1];if(l){let c=i[2],u=H(l),m=o[o.length-1]?.element??e,g=m[v]===Z?Z:_;if(u==="svg")g=Z;else if(g===Z){if(Ar(m))g=_;else if(ko(u,c)){for(;o.length>0;){let x=o[o.length-1];if(x.element[v]!==Z||Ar(x.element))break;o.pop(),s=x.target}g=_}}let y=g===_?u:l,E=n[Ie](y,g,null,y);for(let x of c.matchAll(Rr))E.setAttribute(x[1],xr(x[3]||x[4]||""));if(s.append(E),_r(E)||g!==_&&i[4])continue;o.push({element:E,target:s}),s=g===_&&u==="template"?E.content:E}else if(i[5]){let c=H(i[5]);for(let u=o.length-1;u>=0;u--){let m=o[u],g=H(m.element[O]);if(g===c){s=m.target,o.length=u;break}if(m.element[v]===_&&g==="template")break}}else i[6]?s.append(n.createComment(i[6])):s.append(xr(i[7]))}return r}function Vt(t){return Mr([{type:"content",child:t[R]}])}function Pr(t){return Mr([{type:"opening",node:t}])}function Mr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case"opening":{let r=n.node;switch(r.nodeType){case $:{let o=r;e.push(`<${o[O]}`);let s=o[re]?.[R];for(;s;){e.push(` ${s[O]}`);let l=s[me];l!==""&&(l=String(l).replace(/&/g,"&").replace(/"/g,"""),e.push(`="${l}"`)),s=s[p]}if(e.push(">"),_r(o))break;let i=o.namespaceURI===_&&o.localName==="template"?o[ie]:o;t.push({type:"closing",name:o[O]}),t.push({type:"content",child:i?.[R]??null});break}case De:{let o=r;e.push(o[K].replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"));break}case Le:{let o=r;e.push(`<!--${o[K]}-->`);break}}break}case"content":{let r=n.child;r&&(t.push({type:"content",child:r[p]}),t.push({type:"opening",node:r}));break}case"closing":e.push(`</${n.name}>`);break}return e.join("")}var U=class extends oe{nodeType=$;[v]=_;[fe]=null;get namespaceURI(){return this[v]}get prefix(){return this[fe]}get localName(){let e=this[fe];return e==null?this[O]:this[O].slice(e.length+1)}get nodeName(){return this[v]===_?sr(this[O]):this[O]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,"id")??""}set id(e){this.setAttribute("id",String(e))}get slot(){return this.getAttributeNS(null,"slot")??""}set slot(e){let n=String(e);this.getAttributeNS(null,"slot")!==n&&this.attributes.setNamedItem(new xe("slot",n))}get attributes(){let e=this[re];return e||(e=new Ut(this),this[re]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Ct(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Mt(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);gn(r);let s=this[v]===_?H(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new xe(s,o))}setAttributeNS(e,n,r){let o=ae(e),s=String(n),i=String(r),l=ht(o,s,"attribute"),c=this.attributes.getNamedItemNS(l.namespace,l.localName);c?c.value=i:this.attributes.setNamedItemNS(new xe(l.qualifiedName,i,l.namespace))}toggleAttribute(e,n){let r=String(e);gn(r);let o=this[v]===_?H(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new xe(o,"")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[v]===_?H(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return Pr(this)}get innerHTML(){return Vt(this)}set innerHTML(e){if(e==null||e==="")this.replaceChildren();else{let n=Bt(String(e),this);this.replaceChildren(n)}}};var He=class t extends U{[v]=Z;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var Ee=class extends ye{[K]="";constructor(e){super(),this[K]=e==null?"":String(e)}setData(e){let n=kn,r=n?this[K]:null,o="";e!=null&&(o=typeof e=="string"?e:String(e)),this[K]=o,n&&r!==o&&te({type:"characterData",target:this,oldValue:r}),this[L].setText?.(this,o)}get data(){return this[K]}set data(e){this.setData(e)}};var Ue=class extends Ee{nodeType=De;[O]="#text"};var Be=class extends Ee{nodeType=Le;[O]="#comment"};var Ve=class extends oe{nodeType=he;[O]="#document-fragment";[k]=typeof window<"u"?window.document:null;getElementById(e){return Pt(this,e)}};var Fe=class extends U{get content(){let e=this[ie];return e||(e=this.ownerDocument.createDocumentFragment(),e[pe]=this,this[ie]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Bt(String(e),this))}get innerHTML(){let e=this[ie];return e?Vt(e):""}};var Ft=class extends U{};var jt=class extends U{};var qt=class extends U{};var ct=class extends oe{nodeType=Se;[O]="#document";[B]=!0;constructor(e){super(),this.defaultView=e,this[k]=this,this.documentElement=zt(new qt,this,"html"),this.body=zt(new Ft,this,"body"),this.head=zt(new jt,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Mt(this,e)}createElement(e){let n=String(e);return lr(n),Dn(this,H(n))}createElementNS(e,n){let r=ht(e,n,"element");return Dn(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return Dn(this,e,n,r,o)}createTextNode(e){let n=Yt(new Ue(e),this);return this[L].createText?.(n,n.data),n}createComment(e){return Yt(new Be(e),this)}createDocumentFragment(){return Yt(new Ve,this)}createEvent(){return new V("")}getElementById(e){return Pt(this,e)}getElementsByTagName(e){return Ct(this,e)}importNode(e,n){if(e.nodeType===Se)throw M("Cannot import a document node","NotSupportedError");return _t(e,n,this)}adoptNode(e){if(e[k]===this)return e;let n=Rt(e);return F(()=>{let r=e.parentNode;return r?Or(r,e,n,this):ot(n.nodes,this),e})}};function Yt(t,e){return Object.defineProperty(t,k,{value:e,writable:!0,enumerable:!1}),t}function Dn(t,e,n=_,r=null,o=e){let s;if(n===Z)s=new He;else if(n===_&&o==="template")s=new Fe;else if(n===_){let i=t.defaultView.customElements.get(o);s=i?new i:new U}else s=new U;return zt(s,t,e,n,r)}function zt(t,e,n,r=_,o=null){return Yt(t,e),Object.defineProperties(t,{[O]:{value:n},[v]:{value:r},[fe]:{value:o}}),e[L].createElement?.(t,r),t}var Wt=class extends V{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var $t=class extends V{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var Xt=class extends V{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Kt=class extends V{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var Zt=class extends V{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var Qt=class extends V{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var Jt=class extends U{};var Do=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,Lo=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Cr(t){return Do.test(t)&&!Lo.has(t)}function Ir(t){return M(`Invalid custom element name: "${t}"`,"SyntaxError")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Cr(e))throw Ir(e);if(this.registry.has(e))throw M(`A custom element named "${e}" has already been defined`,"NotSupportedError");if(this.getName(n)!=null)throw M("This constructor has already been registered in this custom element registry","NotSupportedError");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Cr(e))return Promise.reject(Ir(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var Go=["onerror","onunhandledrejection"],Dr=Symbol.for("@remote-dom/polyfill/global-property");function Lr(t){return Object.getOwnPropertyDescriptors(t)}function Gr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!=="constructor"&&typeof r.value=="function"&&(r.value=Ln(r.value.bind(t)),e[n]=r);return e}function Hr(t){let e={};for(let n of Go)e[n]={configurable:!0,enumerable:!0,get:Ln(()=>t[n]),set:Ln(r=>{t[n]=r})};return e}function Ho(t){return Object.assign(Lr(t),Gr(t),Hr(t))}function Ln(t){return Object.defineProperty(t,Dr,{value:!0}),t}function kr(t,e){for(let n of Reflect.ownKeys(e)){let r=Uo(t,n);(r==null||Bo(r))&&Object.defineProperty(t,n,e[n])}}function Uo(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Bo(t){return[t.value,t.get,t.set].some(e=>typeof e=="function"&&e[Dr]===!0)}var Ae=class extends ge{[L]={};[mt]=[];[we]=Fo(this);name="";window=this;parent=this;self=this;top=this;document=new ct(this);customElements=new en;location=globalThis.location;navigator=globalThis.navigator;Event=V;ErrorEvent=$t;PromiseRejectionEvent=Xt;ToggleEvent=Kt;FocusEvent=Zt;ClipboardEvent=Qt;EventTarget=ge;CustomEvent=Wt;Node=J;ParentNode=oe;ChildNode=ye;DocumentFragment=Ve;Document=ct;CharacterData=Ee;Comment=Be;Text=Ue;Element=U;HTMLElement=Jt;SVGElement=He;HTMLTemplateElement=Fe;MutationObserver=Lt;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)Vo(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener("error",this.#t),e&&typeof e=="function"?(this.#n=e,this.#t=n=>{e(n.message??"Error",n.filename,n.lineno,n.colno,n.error)},this.addEventListener("error",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener("unhandledrejection",this.#e),e&&typeof e=="function"?(this.#e=e,this.addEventListener("unhandledrejection",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=Lr(e),s=Object.assign(Gr(e),Hr(e));delete o.self,Object.defineProperties(globalThis,o),kr(globalThis,s),typeof n>"u"||n===r&&n!==globalThis?Object.defineProperty(globalThis,"self",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),kr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Ho(e))}};function Vo(t,e){t[mt].push(e(t)??{})}function Fo(t){return{createElement:ce.bind(null,t,"createElement"),setAttribute:ce.bind(null,t,"setAttribute"),removeAttribute:ce.bind(null,t,"removeAttribute"),createText:ce.bind(null,t,"createText"),setText:ce.bind(null,t,"setText"),insertChild:ce.bind(null,t,"insertChild"),removeChild:ce.bind(null,t,"removeChild"),addEventListener:ce.bind(null,t,"addEventListener"),removeEventListener:ce.bind(null,t,"removeEventListener")}}function ce(t,e,...n){for(let s of t[mt])s[e]?.apply(s,n);let r=t[L];r[e]?.apply(r,n)}var tn=new Ae;var Gn="~";var be=new WeakMap;function je(t){return be.get(t)}var Vn=new WeakMap,qo=0;function X(t){let e=Vn.get(t);return e==null&&(e=String(qo++),nn(t,e)),e}function nn(t,e){Vn.set(t,e)}var Un=new WeakMap;function Yo(t){return Un.get(t)}var Bn=new WeakMap;function zo(t){let e=Bn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes("-"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var Wo=new WeakMap;function $o(t){return Wo.get(t)}function Fn(t,e,n){let r=Un.get(t);if(r==null&&(r={},Un.set(t,r)),r[e]===n)return;r[e]=n;let o=be.get(t);o?.mutate([[3,X(t),e,n,1]])}function Ne(t,e,n){let r=Bn.get(t);if(r==null&&(r={},Bn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=be.get(t);o?.mutate([[3,X(t),e,n,2]])}function qe(t,e){if(be.get(t)!==e&&(be.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)qe(t.childNodes[r],e)}function rn(t){if(be.get(t)!=null&&(be.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)rn(t.childNodes[n])}function Ye(t){let{nodeType:e}=t;switch(e){case 1:return{id:X(t),type:e,element:t.localName,properties:Hn(Yo(t)),attributes:Hn(zo(t)),eventListeners:Hn($o(t)),children:Array.from(t.childNodes).map(Ye)};case 3:case 8:return{id:X(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function Hn(t){return t?{...t}:void 0}function jn(t,e,...n){let r=Vn.get(t),o=be.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var ze=tn[L];ze.insertChild=(t,e,n)=>{let r=je(t);r!=null&&(qe(e,r),r.mutate([[0,X(t),Ye(e),n]]))};ze.removeChild=(t,e,n)=>{let r=je(t);r!=null&&(rn(e),r.mutate([[1,X(t),n]]))};ze.setText=(t,e)=>{let n=je(t);n?.mutate([[2,X(t),e]])};ze.setAttribute=(t,e,n)=>{t.tagName.includes("-")||Ne(t,e,n)};ze.removeAttribute=(t,e)=>{t.tagName.includes("-")||Ne(t,e)};Ae.setGlobal(tn);function on(t){if(typeof t=="string")return{type:"navigate",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e=="string"?{type:"navigate",place:e,...s}:typeof n=="string"?{type:"navigate",to:n,...s}:void 0}var Br=["wheel","drag","pinch"];function Vr(t){let e=t;return typeof t=="object"&&t!==null&&e.graview==="host-hello"&&typeof e.nonce=="string"}function jr(t,e={}){let n,r="",o,s=0,i=new Set,l=new Map,c=[],u=N=>{n?n.postMessage({...N,nonce:r}):c.push(N)},m=N=>{let w=N.data;if(!(!w||typeof w!="object")){if(w.type==="props"){o=w.props;for(let C of i)C(w.props)}else w.type==="answer"?(l.get(w.id)?.(w),l.delete(w.id)):w.type==="event"&&typeof w.listener=="number"?e.onEvent?.(w):w.type==="heartbeat"&&typeof w.beat=="number"&&u({type:"heartbeat",beat:w.beat});e.onMessage?.(w)}},g=()=>{},y=N=>{if(n||!t.fromHost(N)||!Vr(N.data)||N.data.protocol!==1)return;let w=N.ports[0];if(w){n=w,r=N.data.nonce,n.onmessage=m,n.start?.(),g();for(let C of c.splice(0))u(C)}};g=t.listen(y),t.ready({graview:"guest-ready",protocol:1});let E,x={get props(){return o},subscribe(N){return i.add(N),()=>i.delete(N)},act(N,w={}){let C=s+=1;return new Promise(I=>{l.set(C,I),u({type:"act",id:C,name:N,args:w})})},navigate(N){let w=on(N);w&&u(w)},size(N){u({type:"size",height:N})},autoSize(N){let w=N??globalThis.document?.documentElement,C=globalThis.ResizeObserver;if(!w||!C||typeof w.getBoundingClientRect!="function")return()=>{};E?.disconnect();let I=new C(()=>x.size(Math.ceil(w.getBoundingClientRect().height)));return I.observe(w),E=I,()=>I.disconnect()},close(){E?.disconnect(),g(),n?.close(),i.clear()}};return{guest:x,send:u}}var Yr=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Function","Array","Number","Boolean","String","Symbol","BigInt","Date","Promise","RegExp","Math","JSON","Reflect","Proxy","Intl","Error","AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","SuppressedError","Map","Set","WeakMap","WeakSet","WeakRef","FinalizationRegistry","Iterator","AsyncIterator","DisposableStack","AsyncDisposableStack","ArrayBuffer","SharedArrayBuffer","DataView","Atomics","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],zr=["window","parent","top","document","customElements","Event","ErrorEvent","PromiseRejectionEvent","ToggleEvent","FocusEvent","ClipboardEvent","CustomEvent","EventTarget","Node","ParentNode","ChildNode","DocumentFragment","Document","CharacterData","Comment","Text","Element","HTMLElement","SVGElement","HTMLTemplateElement","MutationObserver"],Wr=["self","postMessage","setTimeout","clearTimeout","setInterval","clearInterval","queueMicrotask","structuredClone","crypto","console","DOMException"],$r=["TEMPORARY","PERSISTENT"],xl=Object.freeze([...Yr,...zr,...Wr,...$r]),Al=Object.freeze(["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"]),qr=t=>typeof t=="symbol"?`[${t.description??"symbol"}]`:t;function Xr(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...Yr,...zr,...Wr,...e,"constructor",Symbol.toStringTag]),i=(S,P)=>{let q=Reflect.getOwnPropertyDescriptor(S,P);return q===void 0||!("value"in q)||q.writable||q.configurable?!1:n.primitivesStay&&typeof P=="symbol"&&(typeof q.value!="object"||q.value===null)&&typeof q.value!="function"?!0:$r.includes(P)&&typeof q.value=="number"},l=t,c=l.setTimeout,u=l.setInterval,m=l.crypto,g=(S,P)=>function(q,dt,...ft){if(typeof q!="function")throw new TypeError(`${P} takes a function: a guest view cannot run code from text`);return S.call(t,q,dt,...ft)},y=m?Object.freeze({getRandomValues:S=>m.getRandomValues(S)}):void 0,E=l.document?.defaultView;if(E&&E!==l)for(let S of Reflect.ownKeys(E))typeof S=="symbol"||s.has(S)||Reflect.deleteProperty(E,S)||o.push(`window.${S}`);let x=[];for(let S=t;S&&S!==Object.prototype;S=Object.getPrototypeOf(S))x.push(S);for(let S of x)for(let P of Reflect.ownKeys(S))s.has(P)||(Reflect.deleteProperty(S,P)?r.push(qr(P)):i(S,P)||o.push(qr(P)));let N=()=>function(){throw new EvalError("A guest view cannot make code from text.")},w=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let S of w){let P=N();Object.defineProperty(P,"prototype",{value:S,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(S,"constructor",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push("Function.prototype.constructor"),S===Function.prototype&&Reflect.defineProperty(t,"Function",{value:P,writable:!0,enumerable:!1,configurable:!0})}let C=(S,P)=>{Reflect.defineProperty(t,S,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(S)};C("setTimeout",g(c,"setTimeout")),C("setInterval",g(u,"setInterval")),y&&C("crypto",y);for(let S of x.slice(1))Object.freeze(S);for(let S of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,S);Reflect.defineProperty(t,S,"value"in P?{...P,writable:!1,configurable:!1}:{...P,configurable:!1})}let I;try{I=Reflect.preventExtensions(t)}catch{I=!1}return{removed:r,stuck:o,sealed:I}}var ut=class extends HTMLElement{constructor(){super(),nn(this,Gn)}connect(e){if(je(this)===e||(qe(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Gn,Ye(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Fn(this,e,n)}callRemoteMethod(e,...n){return jn(this,e,...n)}};var f={},qn={empty:!0},Xo={id:"text",class:"text",title:"text",lang:"text",dir:{oneOf:["ltr","rtl","auto"]},hidden:"text",tabindex:{oneOf:["-1","0"]},role:"text",style:"style",translate:{oneOf:["yes","no"]},spellcheck:{oneOf:["true","false"]},draggable:{oneOf:["true","false"]},inert:"boolean"},Yn={div:f,section:f,article:f,aside:f,header:f,footer:f,nav:f,hgroup:f,search:f,address:f,figure:f,figcaption:f,blockquote:f,p:f,pre:f,hr:qn,br:qn,wbr:qn,h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,span:f,strong:f,em:f,b:f,i:f,u:f,s:f,small:f,mark:f,abbr:f,cite:f,q:f,code:f,kbd:f,samp:f,var:f,sub:f,sup:f,dfn:f,bdi:f,bdo:f,ruby:f,rt:f,rp:f,time:{attributes:{datetime:"text"}},data:{attributes:{value:"text"}},del:{attributes:{datetime:"text"}},ins:{attributes:{datetime:"text"}},a:{attributes:{href:"link"}},ul:f,menu:f,dl:f,dt:f,dd:f,ol:{attributes:{start:"number",reversed:"boolean",type:{oneOf:["1","a","A","i","I"]}}},li:{attributes:{value:"number"}},table:f,caption:f,thead:f,tbody:f,tfoot:f,tr:f,colgroup:{attributes:{span:"number"}},col:{attributes:{span:"number"},empty:!0},th:{attributes:{colspan:"number",rowspan:"number",headers:"text",scope:{oneOf:["row","col","rowgroup","colgroup"]},abbr:"text"}},td:{attributes:{colspan:"number",rowspan:"number",headers:"text"}},details:{attributes:{open:"boolean",name:"text"}},summary:f,button:{attributes:{type:{oneOf:["button"]},disabled:"boolean",name:"text",value:"text"}},input:{empty:!0,attributes:{type:{oneOf:["text","search","number","range","checkbox","radio","date","time","datetime-local","month","week","color","email","tel","url"]},name:"text",value:"text",placeholder:"text",min:"text",max:"text",step:"text",checked:"boolean",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",size:"number",pattern:"text",multiple:"boolean",inputmode:"text",enterkeyhint:"text"}},select:{attributes:{name:"text",disabled:"boolean",multiple:"boolean",required:"boolean",size:"number"}},option:{attributes:{value:"text",selected:"boolean",disabled:"boolean",label:"text"}},optgroup:{attributes:{label:"text",disabled:"boolean"}},textarea:{attributes:{name:"text",placeholder:"text",rows:"number",cols:"number",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",wrap:{oneOf:["soft","hard","off"]}}},label:{attributes:{for:"text"}},fieldset:{attributes:{disabled:"boolean",name:"text"}},legend:f,output:f,meter:{attributes:{value:"number",min:"number",max:"number",low:"number",high:"number",optimum:"number"}},progress:{attributes:{value:"number",max:"number"}},img:{empty:!0,attributes:{src:"image",alt:"text",width:"number",height:"number",decoding:{oneOf:["async","sync","auto"]}}},"graview-video":{empty:!0,attributes:{autoplay:"boolean",cover:"boolean"}}},Ko=["fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-opacity","stroke-miterlimit","opacity","color","display","visibility","transform-origin","clip-path","clip-rule","marker-start","marker-mid","marker-end","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","alignment-baseline","letter-spacing","text-decoration","paint-order","vector-effect","shape-rendering","pointer-events","stop-color","stop-opacity","overflow","mask","filter","flood-color","flood-opacity","lighting-color","color-interpolation-filters"],Zo={id:"text",class:"text",style:"style",lang:"text",role:"text",tabindex:{oneOf:["-1","0"]},transform:"geometry",...Object.fromEntries(Ko.map(t=>[t,"css"]))},ue={x:"geometry",y:"geometry",width:"geometry",height:"geometry"},sn={viewBox:"geometry",preserveAspectRatio:"geometry"},Kr={oneOf:["userSpaceOnUse","objectBoundingBox"]},Zr={oneOf:["R","G","B","A"]},ne={...ue,in:"text",result:"text"},Qr={gradientUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},gradientTransform:"geometry",spreadMethod:{oneOf:["pad","reflect","repeat"]},href:"fragment"},Jr={svg:{attributes:{...ue,...sn}},g:f,defs:f,symbol:{attributes:{...ue,...sn,refX:"geometry",refY:"geometry"}},use:{attributes:{...ue,href:"fragment"}},title:f,desc:f,path:{attributes:{d:"geometry",pathLength:"number"}},rect:{attributes:{...ue,rx:"geometry",ry:"geometry",pathLength:"number"}},circle:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",pathLength:"number"}},ellipse:{attributes:{cx:"geometry",cy:"geometry",rx:"geometry",ry:"geometry",pathLength:"number"}},line:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",pathLength:"number"}},polyline:{attributes:{points:"geometry",pathLength:"number"}},polygon:{attributes:{points:"geometry",pathLength:"number"}},text:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry",lengthAdjust:{oneOf:["spacing","spacingAndGlyphs"]}}},tspan:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry"}},textPath:{attributes:{href:"fragment",startOffset:"geometry",method:{oneOf:["align","stretch"]},spacing:{oneOf:["auto","exact"]},side:{oneOf:["left","right"]}}},linearGradient:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",...Qr}},radialGradient:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",fx:"geometry",fy:"geometry",fr:"geometry",...Qr}},stop:{attributes:{offset:"geometry"}},clipPath:{attributes:{clipPathUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},mask:{attributes:{...ue,maskUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},maskContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},pattern:{attributes:{...ue,...sn,patternUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternTransform:"geometry",href:"fragment"}},marker:{attributes:{...sn,markerWidth:"geometry",markerHeight:"geometry",refX:"geometry",refY:"geometry",orient:"geometry",markerUnits:{oneOf:["strokeWidth","userSpaceOnUse"]}}},a:f,filter:{attributes:{...ue,filterUnits:Kr,primitiveUnits:Kr}},feBlend:{attributes:{...ne,in2:"text",mode:"text"}},feColorMatrix:{attributes:{...ne,type:{oneOf:["matrix","saturate","hueRotate","luminanceToAlpha"]},values:"geometry"}},feComponentTransfer:{attributes:ne},...Object.fromEntries(["feFuncR","feFuncG","feFuncB","feFuncA"].map(t=>[t,{attributes:{type:{oneOf:["identity","table","discrete","linear","gamma"]},tableValues:"geometry",slope:"number",intercept:"number",amplitude:"number",exponent:"number",offset:"number"}}])),feComposite:{attributes:{...ne,in2:"text",operator:{oneOf:["over","in","out","atop","xor","lighter","arithmetic"]},k1:"number",k2:"number",k3:"number",k4:"number"}},feDisplacementMap:{attributes:{...ne,in2:"text",scale:"number",xChannelSelector:Zr,yChannelSelector:Zr}},feDropShadow:{attributes:{...ne,dx:"number",dy:"number",stdDeviation:"geometry"}},feFlood:{attributes:ne},feGaussianBlur:{attributes:{...ne,stdDeviation:"geometry",edgeMode:{oneOf:["duplicate","wrap","none"]}}},feMerge:{attributes:ne},feMergeNode:{attributes:{in:"text"}},feMorphology:{attributes:{...ne,operator:{oneOf:["erode","dilate"]},radius:"geometry"}},feOffset:{attributes:{...ne,dx:"number",dy:"number"}},feTurbulence:{attributes:{...ue,result:"text",type:{oneOf:["fractalNoise","turbulence"]},baseFrequency:"geometry",numOctaves:"number",seed:"number",stitchTiles:{oneOf:["stitch","noStitch"]}}}};var eo={section:["aria-label","title"]};function Qo(t){return/^aria-[a-z]+$/.test(t)}function Jo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var es=new Map(Object.keys(Jr).map(t=>[t.toLowerCase(),t]));function to(t){return es.get(t.toLowerCase())}function no(t,e,n){let r=n.toLowerCase(),o=t==="html"?[Yn[e]?.attributes,Xo]:[Jr[e]?.attributes,Zo],s=t==="svg"&&r==="xlink:href"?"href":r;for(let i of o)if(i){for(let[l,c]of Object.entries(i))if(l.toLowerCase()===s)return{name:l,kind:c}}if(Qo(r)||Jo(r))return{name:r,kind:"text"}}var an=/^\\d{4}-\\d{2}-\\d{2}$/;function ts(t,e){if(typeof t!="string"||typeof e!="string"||!an.test(t)||!an.test(e))return;let n=Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5);return Number.isFinite(n)?n:void 0}function ro(t,e,n={}){let r=ts(t,e);if(r===void 0)return"";if(r===0)return"today";if(r===1)return"tomorrow";if(r<0&&n.due===!0)return"overdue";if(r===-1)return"yesterday";let o=Math.abs(r),[s,i]=o<14?[o,"day"]:o<60?[Math.round(o/7),"week"]:o<730?[Math.round(o/30.44),"month"]:[Math.round(o/365.25),"year"],l=`${s} ${i}${s===1?"":"s"}`;return r>0?`in ${l}`:`${l} ago`}function oo(t,e){if(typeof t!="string")return;if(an.test(t))return t;let n=Date.parse(t);if(Number.isFinite(n)){if(!/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t))return an.test(t.slice(0,10))?t.slice(0,10):void 0;try{let r=new Intl.DateTimeFormat("en-CA",{timeZone:e||"UTC",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(n),o=s=>r.find(i=>i.type===s)?.value??"";return`${o("year")}-${o("month")}-${o("day")}`}catch{return new Date(n).toISOString().slice(0,10)}}}var so="~",ln=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),se=(t,e=0)=>{if(t===null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t===void 0)return t;if(!(e>64||typeof t!="object"))return Array.isArray(t)?t.map(n=>se(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,se(r,e+1)]))};function io(){let t=new Map,e=new Map,n=new Map([[so,{children:[],listeners:new Map}]]),r=0,o=u=>{let m=e.get(u);return m===void 0&&(m=r+=1,e.set(u,m),t.set(m,{listener:u,count:0})),t.get(m).count+=1,m},s=u=>{let m=t.get(u);m&&(m.count-=1,!(m.count>0)&&(t.delete(u),e.delete(m.listener)))},i=u=>{let m=n.get(u);if(m){n.delete(u);for(let g of m.listeners.values())s(g);for(let g of m.children)i(g)}},l=(u,m,g=0)=>{if(!ln(u)||g>64)return se(u);let y=typeof u.id=="string"?u.id:void 0,E=m&&y!==void 0&&y!==so;E&&i(y);let x={children:[],listeners:new Map};E&&n.set(y,x);let N={};for(let[w,C]of Object.entries(u))w==="children"&&Array.isArray(C)?N[w]=C.map(I=>{let S=l(I,E,g+1);return E&&ln(I)&&typeof I.id=="string"&&x.children.push(I.id),S}):w==="eventListeners"&&ln(C)?N[w]=Object.fromEntries(Object.entries(C).map(([I,S])=>{if(typeof S!="function"||!E)return[I,void 0];let P=o(S);return x.listeners.set(I,P),[I,{listener:P}]})):N[w]=se(C,g+1);return N},c=u=>{if(!Array.isArray(u))return se(u);let[m,g]=u,y=typeof g=="string"?n.get(g):void 0;if(m===0){let E=l(u[2],y!==void 0),x=ln(u[2])?u[2].id:void 0;if(y&&typeof x=="string"&&n.has(x)){let N=Number(u[3]);y.children.splice(Number.isInteger(N)&&N>=0&&N<=y.children.length?N:y.children.length,0,x)}return[m,se(g),E,se(u[3])]}if(m===1){let E=Number(u[2]);return y&&Number.isInteger(E)&&E>=0&&E<y.children.length&&i(y.children.splice(E,1)[0]),se(u)}if(m===3&&u[4]===3){let E=String(u[2]),x=u[3],N=y&&typeof x=="function"?o(x):void 0,w=y?.listeners.get(E);return w!==void 0&&s(w),N===void 0?y?.listeners.delete(E):y.listeners.set(E,N),[m,se(g),E,N===void 0?void 0:{listener:N},3]}return se(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var cn="graview-view-root",ns=["value","checked","key","pressed","files","refused","x","y","width","height","deltaX","deltaY","deltaMode","ctrlKey","metaKey","phase","pointerId","button","pressure","dx","dy","scale","rotation"],rs=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/\'/g,"'"),os=t=>Object.freeze({html:t,toString:()=>t}),ao=t=>typeof t=="object"&&t!==null&&typeof t.html=="string"&&Object.isFrozen(t),lo=t=>t==null||t===!1?"":Array.isArray(t)?t.map(lo).join(""):ao(t)?t.html:rs(String(t));function co(t){customElements.get(cn)||customElements.define(cn,ut);let e=Event,n=io(),r=new Set,o=new Set,s,i=[],l=new Set;for(let a of["closest","matches","dataset"]){let d=()=>{throw new TypeError(`A view\'s element has no ${a}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute("data-\\u2026").`)};a in Element.prototype||Object.defineProperty(Element.prototype,a,a==="dataset"?{get:d}:{value:d})}let c=document.createElement(cn),u=a=>{let d=h=>{for(let T of Array.from(h.childNodes)){if(T.nodeType!==1)continue;if(X(T)===a)return T;let b=d(T);if(b)return b}};return d(c)},m=a=>{let d=u(a.target);if(!d)return;let h=new e(a.event,{bubbles:!0}),T={};for(let b of ns)a[b]!==void 0&&(T[b]=a[b]);for(let b of Object.keys(T))Object.defineProperty(h,b,{value:T[b],enumerable:!0});d.dispatchEvent(h);for(let b of o){if(b.type!==a.event)continue;let A;try{A=new Set(Array.from(c.querySelectorAll(b.selector)))}catch{continue}for(let G=d;G&&G!==c;G=G.parentNode)if(A.has(G)){b.listener(Object.freeze({type:a.event,target:d,element:G,...T}));break}}},g=Error,y=new Map,E=0,x=(a,d,h)=>new Promise((T,b)=>{let A=++E;y.set(A,G=>G.ok?T(G):b(new g(G.sentence??"This value was not kept."))),t.send({type:"mine",id:A,op:a,key:d,...a==="set"?{value:h}:{}})}),N=a=>(a.catch(()=>{}),a),w=Object.freeze({get(a){return N(x("get",a).then(d=>typeof d.value=="string"?d.value:null))},set(a,d){return N(x("set",a,d).then(()=>{}))}}),C=a=>{if(a.type==="mine-answer"){let b=y.get(a.id);return y.delete(a.id),b?.(a)}if(a.type==="dom-event"&&typeof a.target=="string")return m(a);if(a.type==="notice")return t.warn(a.text);if(a.type!=="props")return;s=a.props;let d=t.now();for(let b of r)try{b(a.props)}catch(A){t.threw(A)}let h=t.now()-d,T=a.push;typeof T=="number"&&t.microtask(()=>t.microtask(()=>t.send({type:"pushed",push:T,ms:h})))},I;c.connect({mutate(a){I||(I=[],t.microtask(()=>{let d=I??[];I=void 0,t.send({type:"render",records:n.encode(d)})})),I.push(...a)},call:()=>{}});let S=a=>a.nodeType===1?a.getAttribute("data-key")??a.getAttribute("id"):null,P=(a,d)=>a.nodeType===d.nodeType&&(a.nodeType!==1||a.localName===d.localName&&a.namespaceURI===d.namespaceURI&&S(a)===S(d));function q(a,d){let h=Array.from(d.childNodes),T=0;for(let b of h){let A=a.childNodes[T]??null;if(A&&P(A,b)){dt(A,b),T+=1;continue}if(S(b)!==null){let de=Array.from(a.childNodes).slice(T+1).find(We=>P(We,b));if(de){a.insertBefore(de,A),dt(de,b),T+=1;continue}}a.insertBefore(b,A),T+=1}for(;a.childNodes.length>T;)a.removeChild(a.lastChild)}function dt(a,d){if(a.nodeType!==1){a.data!==d.data&&(a.data=d.data);return}let h=a,T=d,b=ft(h);for(let A of h.getAttributeNames())T.hasAttribute(A)||(h.removeAttribute(A),b&&Ne(h,A,void 0));for(let A of T.getAttributeNames()){let G=T.getAttribute(A);h.getAttribute(A)!==G&&h.setAttribute(A,G),b&&Ne(h,A,G)}q(h,T)}let ft=a=>a.localName.includes("-");function Xn(a){for(let d of Array.from(a.childNodes)){if(d.nodeType!==1)continue;let h=d;if(ft(h))for(let T of h.getAttributeNames())Ne(h,T,h.getAttribute(T)??void 0);Xn(h)}}function Kn(a,d,h){for(let T of Array.from(a.childNodes)){if(T.nodeType!==1)continue;let b=T,A=b.localName,G=d||A.toLowerCase()==="svg",de=G?to(A):Object.prototype.hasOwnProperty.call(Yn,A.toLowerCase())?A.toLowerCase():void 0;if(!de){h.add(`<${A}>`);continue}for(let We of b.getAttributeNames())(!no(G?"svg":"html",de,We)||!G&&eo[de]?.includes(We.toLowerCase()))&&h.add(`${de} ${We}`);Kn(b,G,h)}}function fo(a){let d=document.createElement("div"),h=Array.isArray(a)?a:[a];for(let b of h)if(b!=null)if(typeof b=="string"||ao(b)){let A=document.createElement("div");A.innerHTML=typeof b=="string"?b:b.html,d.append(...Array.from(A.childNodes))}else d.append(b);let T=new Set;Kn(d,!1,T),i=[...T],i.length>0&&t.warn(`The host will not draw: ${i.join(", ")}`),Xn(d),q(c,d)}let un=[],dn=new Set(Br),Zn="[]",fn=!1,Qn=()=>{fn||(fn=!0,t.microtask(()=>{fn=!1;let a=[...new Map([...o].filter(h=>dn.has(h.type)).map(h=>[`${h.type} ${h.selector}`,{event:h.type,selector:h.selector}])).entries()].sort(([h],[T])=>h<T?-1:h>T?1:0).map(([,h])=>h),d=JSON.stringify(a);d!==Zn&&(Zn=d,t.send({type:"gestures",bound:a}))}))},Jn="[[],[]]",mn=!1,er=()=>{mn||(mn=!0,t.microtask(()=>{mn=!1;let a=b=>[...new Set([...o].filter(A=>A.type===b&&typeof A.selector=="string").map(A=>A.selector))].sort().slice(0,200),d=a("click"),h=a("acted"),T=JSON.stringify([d,h]);T!==Jn&&(Jn=T,t.send({type:"clicks",selectors:d,...h.length>0?{acted:h}:{}}))}))},tr=Object.freeze({get props(){return s},onProps(a){return r.add(a),s&&a(s),()=>void r.delete(a)},render:fo,style(a){typeof a!="string"||un.includes(a)||(un.push(a),t.send({type:"style",sheets:[...un]}))},on(a,d,h){let T={type:a,selector:d,listener:h};return o.add(T),typeof a=="string"&&!l.has(a)&&(l.add(a),t.send({type:"hears",events:[a]})),dn.has(a)&&Qn(),(a==="click"||a==="acted")&&er(),()=>{o.delete(T),dn.has(a)&&Qn(),(a==="click"||a==="acted")&&er()}},act:(a,d={})=>t.act(a,d),mine:w,navigate(a){if(typeof a=="string")return t.navigate(a);let d=on(a);d&&t.send(d)},html(a,...d){return os(a.reduce((h,T,b)=>h+T+(b<d.length?lo(d[b]):""),""))},get today(){return s?.today??new Date().toISOString().slice(0,10)},fromToday(a,d){let h=oo(a,s?.timeZone);return h===void 0?"":ro(h,tr.today,d)},get refused(){return i},get hardening(){return t.hardening()}});return{view:tr,hear:C,find:a=>{try{let d=c.querySelectorAll(a)[0];return d?X(d):void 0}catch{return}},listened:a=>{let d=new Set;for(let h of o)if(h.type===a)try{for(let T of Array.from(c.querySelectorAll(h.selector))){let b=X(T);b&&d.add(b)}}catch{}return[...d]}}}var $n={removed:[],stuck:[],sealed:!1,worker:!1},zn=jr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>uo.hear(t)}),uo=co({send:t=>zn.send(t),act:(t,e)=>zn.guest.act(t,e),navigate:t=>zn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>$n}),ss=uo.view;Object.defineProperty(globalThis,"graview",{value:ss,enumerable:!0,configurable:!0,writable:!1});var Wn="WorkerGlobalScope"in globalThis?Xr(globalThis,["graview"]):$n;$n=Wn;if(Wn.stuck.length>0)throw new Error(`The view\'s worker could not be hardened: ${Wn.stuck.join(", ")} would not go.`);})();\n';export{e as VIEW_RUNTIME};
|
|
1
|
+
import"./chunk.AJZBJBMO.js";var e='"use strict";\n/*! @remote-dom/core and @remote-dom/polyfill \u2014 Copyright 2020-present, Shopify Inc. \u2014 MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest\'s worker runtime \u2014 Elastic License 2.0. */\n"use strict";(()=>{var Re=globalThis,mo=Re.addEventListener,po=Re.removeEventListener,ho=Re.postMessage,go=globalThis.queueMicrotask,pn=globalThis.performance,yo=pn?pn.now.bind(pn):Date.now,_e={listen:t=>mo.call(Re,"message",t),unlisten:t=>po.call(Re,"message",t),post:t=>ho.call(Re,t),microtask:t=>go.call(globalThis,t),now:()=>yo()};var O=Symbol("name"),fe=Symbol("prefix"),me=Symbol("value"),x=Symbol("ns"),Y=Symbol("owner"),k=Symbol("owner_document"),re=Symbol("attributes"),D=Symbol("prev"),p=Symbol("next"),R=Symbol("child"),z=Symbol("parent"),pe=Symbol("host"),K=Symbol("data"),Te=Symbol("listeners"),hn=Symbol("isTrusted"),Pe=Symbol("path"),Me=Symbol("stop_immediate_propagation"),Ce=Symbol("dispatching"),ie=Symbol("content"),L=Symbol("hooks"),mt=Symbol("extensions"),we=Symbol("hooks_dispatch"),B=Symbol("is_connected"),Ie=Symbol("create_element"),nr=0,$=1,ke=2,De=3,Le=8,Se=9,rr=10,he=11,_="http://www.w3.org/1999/xhtml",Z="http://www.w3.org/2000/svg",or="http://www.w3.org/XML/1998/namespace",$e="http://www.w3.org/2000/xmlns/";function pt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function H(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function sr(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function M(t,e){let n=globalThis.DOMException;if(typeof n=="function")return new n(t,e);let r=new Error(t);return r.name=e,r}var ir=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,ar=/[\\0\\t\\n\\f\\r />=]/u,Eo=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===""?null:e}function lr(t){ir.test(t)||yn(t)}function gn(t){(t===""||ar.test(t))&&yn(t)}function ht(t,e,n){let r=ae(t),o=String(e),s=o.indexOf(":"),i=s<0?null:o.slice(0,s),l=s<0?o:o.slice(s+1);if((i!=null&&(i===""||Eo.test(i))||(n==="element"?!ir.test(l):l===""||ar.test(l)))&&yn(o),i!=null&&r==null)throw M(`A namespace is required for the prefix in "${o}"`,"NamespaceError");if(i==="xml"&&r!==or)throw M("The xml prefix requires the XML namespace","NamespaceError");if((o==="xmlns"||i==="xmlns")&&r!==$e)throw M("The xmlns name requires the XMLNS namespace","NamespaceError");if(r===$e&&o!=="xmlns"&&i!=="xmlns")throw M("The XMLNS namespace requires the xmlns name or prefix","NamespaceError");return{namespace:r,qualifiedName:o,prefix:i,localName:l}}function yn(t){throw M(`Invalid name: "${t}"`,"InvalidCharacterError")}var gt=0,yt=1,cr=2,En=3,bo=typeof performance>"u"?Date.now:performance.now.bind(performance),V=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=cr;static BUBBLING_PHASE=En;timeStamp=bo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=gt;[Pe]=[];[Me]=!1;[Ce]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,hn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[hn]}composedPath(){return[...this[Pe]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Me]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function bn(t,e,n){if(t.cancelBubble)return;let o=e[Te]?.get(t.type)?.[n===yt?"capture":"bubble"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?cr:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i=="object"?i.handleEvent(t):i.call(e,t)}catch(l){setTimeout(No,0,l)}if(t[Me])break}}function No(t){throw t}var Xe=[],Et=new WeakMap;function bt(t,e){let n=Et.get(t);n?n.push(e):Et.set(t,[e]),Xe[Xe.length-1].push(t)}function F(t){let e=[];Xe.push(e);let n;try{n=t()}catch(r){Xe.pop();try{ur(e)}catch{}throw r}return Xe.pop(),ur(e),n}function ur(t){let e,n=!1;for(let r of t){let o=Et.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}Et.delete(r)}}if(n)throw e}var Nt=[],Ke=[],Nn=!1;function Oe(t){for(let e of t)Nt.push(e),e[1]&&Ke.push(e[1]);if(!Nn){Nn=!0;try{let e,n=!1;for(let r=0;r<Nt.length;r++){let[o,s]=Nt[r];s&&Ke.splice(Ke.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{Nt.length=0,Ke.length=0,Nn=!1}}}function Ze(t){let e=t;for(;e;){if(Ke.includes(e))return!0;e=e[z]??e[pe]}return!1}var Qe=Symbol("listenerRegistrations"),ge=class{[Te]=void 0;[Qe]=void 0;[k]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r=="object"&&r.capture===!0,s=typeof r=="object"&&r.once===!0,i=typeof r=="object"?r.signal:void 0;if(i?.aborted)return;let l=Tn(o),c=this[Qe];c||(c=new Map,this[Qe]=c);let u=c.get(e);u||(u={},c.set(e,u));let m=u[l];if(m||(m=new Map,u[l]=m),m.has(n))return;let g=this,y={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(y.normalizedListener=function(...C){if(y.signal?.aborted){Tt(g,y);return}return y.once&&Tt(g,y),typeof y.listener=="object"?y.listener.handleEvent(...C):y.listener.call(this,...C)});let E=this[Te];E||(E=new Map,this[Te]=E);let v=E.get(e);v||(v={},E.set(e,v));let N=v[l];if(N||(N=new Set,v[l]=N),m.set(n,y),N.add(y),i){let w=()=>{Tt(g,y)};y.abortListener=w,i.addEventListener("abort",w,{once:!0})}this[k]?.defaultView[we].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return To.call(this,e,n,r)}dispatchEvent(e){if(e[Ce])throw M("Failed to execute \'dispatchEvent\' on \'EventTarget\': The event is already being dispatched.","InvalidStateError");e[Ce]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[Pe]=n;for(let s=n.length;s--;)if(bn(e,n[s],yt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(bn(e,o[s],En),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Ce]=!1,e.cancelBubble=!1,e[Me]=!1,e.eventPhase=gt,e.currentTarget=null,e[Pe]=[]}}};function To(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=Tn(!!r),s=this[Qe]?.get(t)?.[o]?.get(e);s&&Tt(this,s)}function Tn(t){return t?"capture":"bubble"}function Tt(t,e){let n=Tn(e.capture),r=t[Qe],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener("abort",e.abortListener);let i=t[Te],l=i?.get(e.type);if(!l)return;let c=l[n];c?.delete(e)&&(c.size===0&&delete l[n],!l.bubble&&!l.capture&&i?.delete(e.type),t[k]?.defaultView[we].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var et=0,dr=1,On=2,xn=3,tt=4,fr=0,mr=1,Ot=2,xt=3,pr=4,Sn=5,hr=6,gr=7,wt=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function wo(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s==="\\\\"?o++:s===r&&(r=null);continue}if(s===\'"\'||s==="\'")r=s;else if(s==="(")n++;else if(s===")"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function W(t){throw M(`Invalid or unsupported selector: "${t}"`,"SyntaxError")}function vt(t,e){let n=typeof e=="string"?nt(e):[{combinator:tt,matchers:e}],r=null,o=t[R];return o&&n[0].matchers.length&&vn(o,n,s=>(r=s,!1)),r}function At(t,e){let n=typeof e=="string"?nt(e):[{combinator:tt,matchers:e}],r=new Q,o=t[R];return o&&n[0].matchers.length&&vn(o,n,s=>{r.push(s)}),r}function nt(t,e=!1,n=!1){let r={combinator:tt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:([\'"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,"");i===""&&W(t);let l=0,c;for(;c=s.exec(i);){c.index!==l&&W(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&W(t),c[1]===">"?r.combinator=dr:c[1]==="+"?r.combinator=xn:c[1]==="~"?r.combinator=On:r.combinator=et,r={combinator:tt,matchers:[]},o.push(r));let u=c[8]?H(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&W(t);let g,y=c[4]??c[5]??c[7];if(c[2]){wt.test(u)||W(t);let E=c[5],v=E?.[0];if(c[3]==null&&(v===\'"\'||v==="\'")){let N=c[0].lastIndexOf(E);y=i.slice(c.index+N+1),s.lastIndex=i.length}else E!=null&&!wt.test(E)&&W(t);g=pr}else c[6]?(wt.test(u)||W(t),g=c[6]==="#"?Ot:xt):c[8]?g=c[9]==null?Sn:hr:c[7]==="*"?g=fr:c[7]&&wt.test(c[7])?g=mr:W(t);c[9]?([y,s.lastIndex]=wo(i,s.lastIndex),u!=="has"&&u!=="not"&&W(t),u==="has"&&e&&W(t),nt(y,e||u==="has",u==="has")):g===Sn&&W(t),r.matchers.push({type:g,name:u,value:y}),l=s.lastIndex}return(l!==i.length||r.matchers.length===0)&&W(t),o}function So(t,e){let n=nt(e);return n[0]?.matchers.length?Je(t,n):!1}function Oo(t,e){let n=nt(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=et,s={type:gr,name:":scope"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:et,matchers:[s]}),n.some(({matchers:c})=>c.length===0))return!1;let i=o===xn||o===On?t[p]:t[R];if(!i)return!1;let l=!1;return vn(i,n,()=>(l=!0,!1),t),l}function vn(t,e,n,r){let o=[],s=t;for(;s;){if(j(s)){if(Je(s,e,r)&&n(s)===!1)return!1;let i=s[R];if(i){let l=s[p];l&&o.push(l),s=i;continue}}s=s[p]??o.pop()??null}return!0}function Je(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===tt){if(!St(t,o,n))return!1;let l=e.slice(0,-1);return l.length===0||Je(t,l,n)}let s=r===dr||r===et?z:D,i=t[s];if(!i)return!1;if(r===et||r===On){for(;i;){if(j(i)&&St(i,o,n)){let l=e.slice(0,-1);if(l.length===0||Je(i,l,n))return!0}i=i[s]}return!1}else{if(r===xn&&!j(i)){for(;i&&!j(i);)i=i[s];if(!i)return!1}if(!j(i)||!St(i,o,n))return!1;let l=e.slice(0,-1);return l.length===0||Je(i,l,n)}}function wn(t,e){return t.getAttributeNS(null,t.namespaceURI===_?H(e):e)}function St(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(St(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case fr:return o==="*";case mr:return t.namespaceURI===_?t.localName===H(o):t.localName===o;case Ot:return wn(t,"id")===o;case xt:let i=wn(t,"class");return i?pt(i).includes(o):!1;case pr:let l=wn(t,o);return s==null?l!=null:l===s;case gr:return t===n;case Sn:W(`:${o}`);case hr:switch(o){case"has":return Oo(t,s||"");case"not":return!So(t,s||"");default:W(`:${o}(${s})`)}}return!1}function xo(t){return t.nodeType===ke}function rt(t){return K in t}function Rn(t){return t.nodeType===De}function vo(t){return t.nodeType===Le}function j(t){return t.nodeType===$}function An(t){return t.nodeType===he}function Nr(t){return"appendChild"in t}function Rt(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let l=[];for(let c of st(i)){if(o.has(c)||(o.add(c),e.push(c),l.push(c),!j(c)))continue;let u=c[re];if(u)for(let g of u)o.has(g)||(o.add(g),e.push(g));let m=c[ie];m&&!o.has(m)&&!r.has(m)&&(r.add(m),n.push(m))}s??=l}return{nodes:e,treeNodes:s}}function ot(t,e){for(let n of t)n[k]=e}function yr(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[k]=e,r}function Er(t,e){if(Rn(t))return e.createTextNode(t.data);if(vo(t))return e.createComment(t.data);if(xo(t))return yr(t,e);if(j(t)){let n=e[Ie](t[O],t.namespaceURI,t[fe],t.localName);if(t[re])for(let r=0;r<t[re].length;r++){let o=t[re].item(r);n.attributes.setNamedItem(yr(o,e))}return n}else{if(An(t))return e.createDocumentFragment();{let n=new t.constructor;return n[k]=e,n}}}function _t(t,e,n=t.ownerDocument){if(t.nodeType===Se)throw M("Cannot clone a document node","NotSupportedError");let r=Er(t,n);if(!e||!j(t)&&!An(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],l,c;if(i.cloningContent)if(i.contentSource&&i.contentDestination)l=i.contentSource.childNodes[i.childIndex++],c=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(l=i.source.childNodes[i.childIndex++],c=i.destination,!l){if(i.cloningContent=!0,i.childIndex=0,j(i.source)&&i.source.namespaceURI===_&&i.source.localName==="template"){let m=i.source[ie];m&&(o.has(m)&&br(),o.add(m),i.contentSource=m,i.contentDestination=i.destination.content)}continue}if(!l){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(l)&&br(),o.add(l);let u=Er(l,n);j(l)||An(l)?s.push({source:l,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function br(){throw new Error("Cannot clone a cyclic or repeated node graph")}function Pt(t,e){let n=String(e);return n===""?null:vt(t,[{type:Ot,name:n}])}function Mt(t,e){let n=[...new Set(pt(String(e)))];return At(t,n.map(r=>({type:xt,name:r})))}function Ct(t,e){let n=String(e),r=H(n),o=[];for(let s of It(t))j(s)&&(n==="*"||(s.namespaceURI===_?s[O]===r:s[O]===n))&&o.push(s);return o}function It(t){let e=[],n=[],r=t[R];for(;r;){e.push(r);let o=r[R],s=r[p];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function st(t){let e=It(t);return e.unshift(t),e}var J=class extends ge{nodeType=nr;[O]="";[z]=null;[pe]=null;[R]=null;[D]=null;[p]=null;[B]=!1;get[L](){return this[k].defaultView[we]}get localName(){return this[O]}get nodeName(){return this[O]}get ownerDocument(){return this[k]}get isConnected(){return this[B]}isDefaultNamespace(e){let n=ae(e);return Ao(this)===n}get parentNode(){return this[z]}set parentNode(e){}get parentElement(){let e=this[z];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[D]}set previousSibling(e){}get nextSibling(){return this[p]}set nextSibling(e){}get previousElementSibling(){let e=this[D];for(;e&&e.nodeType!==1;)e=e[D];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[p];for(;e&&e.nodeType!==1;)e=e[p];return e}set nextElementSibling(e){}get firstChild(){return this[R]}set firstChild(e){}get lastChild(){let e=this[R];for(;e;){let n=e[p];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return rt(this)?this.data:null}set nodeValue(e){rt(this)&&(this.data=e)}get textContent(){if(rt(this))return this.data;let e="";for(let n of It(this))Rn(n)&&(e+=n.data);return e}set textContent(e){if(rt(this))this.data=e;else if(Nr(this)){let n=e==null?"":String(e);n===""?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return _t(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function Ao(t){let e=t;for(;e;)switch(e.nodeType){case $:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS($e,"xmlns");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case Se:e=e.documentElement;break;case rr:case he:return null;case ke:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol("insertNode"),Mn=Symbol("preflightInsertions"),kt=Symbol("replaceNode"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=xe(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Pn(r,n,o);this.parentNode===r?r[kt](i,this,o):r[ee](i,s,o)})}before(...e){let n=xe(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[D];for(;s&&n.includes(s);)s=s[D];let i=Pn(r,n,o);r[ee](i,s?s[p]:r.firstChild,o)})}after(...e){let n=xe(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Pn(r,n,o);r[ee](i,s,o)})}};function _n(t){return F(()=>{let e=[];try{t(e)}catch(n){try{Oe(e)}catch{}throw n}Oe(e)})}function xe(t){return t.map(e=>e instanceof J?e:String(e))}function it(t,e){return e instanceof J?e:t.ownerDocument.createTextNode(String(e))}function le(t,e){for(let n of e){if(!(n instanceof J))continue;let r=t;for(;r;){if(r===n)throw M("Cannot insert a node into itself or one of its descendants","HierarchyRequestError");r=r[z]??r[pe]}}}function Pn(t,e,n){let r=[];for(let s of e)r.push(it(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[Mn](r);for(let s of r)o[ee](s,null,n);return o}var Dt,Cn=0,Tr=0,wr=0,Sr=0,Ge=!1,kn=!1,at=!1,Lt=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!="function")throw new TypeError("MutationObserver callback must be a function");this.#t=e}observe(e,n={}){let r=Ro(n),o=Dt??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?Cn++:In(i,-1),s.set(this,r),In(r,1),this.#e.add(e)}disconnect(){let e=Dt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),Cn--,In(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,Cn===0&&(Dt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function te(t){let e=Dt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let l=!1;if(t.type==="attributes"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??""))continue;l=i.attributeOldValue}else if(t.type==="characterData"){if(!i.characterData)continue;l=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||l)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new Q,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new Q,target:t.target,type:t.type})}function Gt(...t){let e=new Q;return e.push(...t),e}function Ro(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError("attributeOldValue and attributeFilter require attributes to be enabled");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError("characterDataOldValue requires characterData to be enabled");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError("MutationObserver options must enable childList, attributes, or characterData");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function In(t,e){t.attributes&&(Tr+=e),t.characterData&&(wr+=e),t.childList&&(Sr+=e),Ge=Tr>0,kn=wr>0,at=Sr>0}var oe=class extends ye{childNodes=new Q;children=new Q;appendChild(e){return F(()=>this[ee](e,null))}insertBefore(e,n){return F(()=>this[ee](e,n||null))}append(...e){return F(()=>{let n=xe(e.filter(r=>r!=null));n.length>1&&le(this,n);for(let r of n)this[ee](it(this,r),null)})}prepend(...e){return F(()=>{let n=xe(e.filter(o=>o!=null));n.length>1&&le(this,n);let r=this.firstChild;for(let o of n)this[ee](it(this,o),r)})}replaceChildren(...e){return F(()=>{let n=xe(e.filter(o=>o!=null));le(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ee](it(this,o),null)})}removeChild(e){return F(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw M("The node is not a child of this node","NotFoundError");let n=this[B]?st(e):void 0,r=e[D],o=e[p],s=Ht(this,e);if(n)for(let i of n)i[B]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,"disconnectedCallback"),Oe(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return F(()=>this[kt](e,n))}[kt](e,n,r){if(le(this,[e]),n.parentNode!==this)throw M("The reference node is not a child of this parent","NotFoundError");let o=n[D],s=n[p],i=this.prepareInsertion(e),l=this[B]?st(n):void 0,c=new Set(i.map(({node:y})=>y)),u=s;for(;u&&c.has(u);)u=u[p];let m=Ht(this,n);if(l){for(let E of l)E[B]=!1;let y=new Set(l);for(let E of i)y.has(E.node)&&(E.shouldDisconnect=!1)}this.commitInsertion(i,u);let g=this[B];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),l&&this.enqueueTreeReactions(l,"disconnectedCallback"),this.enqueueInsertionReactions(i,g),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,m),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return At(this,e)}querySelector(e){return vt(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[Mn](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(le(this,[e]),n&&n.parentNode!==this)throw M("The reference node is not a child of this parent","NotFoundError")}insertIntoValidated(e,n,r){e===n&&(n=e[p]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[B];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):Oe(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let i=e[R];for(;i;)n.push(i),i=i[p]}else n.push(e);let r=this[B],o=this[k],s=[];for(let i of n){let l=i[B],c=l||r,u,m;if(i[k]===o)c&&(u=st(i));else{let g=Rt(i);m=g.nodes,c&&(u=g.treeNodes)}s.push({node:i,nodes:u,adoption:m,shouldDisconnect:l})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[z];if(i){let l=s.node[D],c=s.node[p];s.source={parent:i,index:Ht(i,s.node),previousSibling:l,nextSibling:c}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[k];for(let{adoption:s}of e)s&&ot(s,r);let o=this[B];for(let{nodes:s}of e)if(s)for(let i of s)i[B]=o}attachChild(e,n){if(n){let s=n[D];e[p]=n,e[D]=s,s?s[p]=e:this[R]=e,n[D]=e}else{e[p]=null;let s=this[R];if(s){let i;for(;i=s[p];)s=i;s[p]=e,e[D]=s}else this[R]=e,e[D]=null}let r=j(e);e[z]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!j(s);)s=s[p];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[D],nextSibling:e[p]}}queueRemovalMutationRecord(e,n,r,o){at&&te({type:"childList",target:e,removedNodes:Gt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(at)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),te({type:"childList",target:this,addedNodes:Gt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==$||Ze(this)?[]:[[()=>this[L].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===$&&!Ze(s.parent)&&n.push([()=>s.parent[L].removeChild?.(s.parent,o,s.index)]),this.nodeType===$&&!Ze(this)&&n.push([()=>this[L].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,"disconnectedCallback"),n&&this.enqueueTreeReactions(o,"connectedCallback"))}}enqueueTreeReactions(e,n){xr(e,n)}};function Or(t,e,n,r){if(e.parentNode!==t)throw Error("not a child of this node");let o=t[B]?n.treeNodes:void 0,s=e[D],i=e[p],l=Ht(t,e);if(o)for(let u of o)u[B]=!1;ot(n.nodes,r),at&&te({type:"childList",target:t,removedNodes:Gt(e),previousSibling:s,nextSibling:i}),o&&xr(o,"disconnectedCallback");let c=[];t.nodeType===$&&!Ze(t)&&c.push([()=>t[L].removeChild?.(t,e,l)]),Oe(c)}function Ht(t,e){let n=e[D],r=e[p];n?n[p]=r:t[R]=r,r&&(r[D]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),j(e)&&t.children.splice(t.children.indexOf(e),1),e[z]=null,e[p]=null,e[D]=null,o}function xr(t,e){for(let n of t){let r=n[e];typeof r=="function"&&bt(n,()=>r.call(n))}}function lt(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||bt(t,()=>i.call(t,e,n,r,o))}var Ut=class{[R]=null;constructor(e){this[Y]=e}getNamedItem(e){let n=String(e),r=this[Y][x]===_?H(n):n,o=this[R];for(;o;){if(o.name===r)return o;o=o[p]}return null}getNamedItemNS(e,n){let r=ae(e),o=String(n),s=this[R];for(;s;){if(s.localName===o&&s[x]===r)return s;s=s[p]}return null}item(e){let n=this[R],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[R];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[Y][x]===_?H(n):n;return F(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ae(e),o=String(n);return F(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[x]===r))}removeNamedItemImmediately(e){let n=this[Y],r=this[R],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[R]===r&&(this[R]=r[p]);let s=r.value;return r[p]=null,r[Y]=null,Ge&&te({type:"attributes",target:n,attributeName:r.name,attributeNamespace:r[x],oldValue:s}),n[L].removeAttribute?.(n,r.name,r[x]),lt(n,r.localName,s,null,r[x]),r}o=r,r=r[p]}return null}setNamedItem(e){return F(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[Y],r=e[Y];if(r!=null&&r!==n)throw M("The attribute is already in use by another element.","InUseAttributeError");let o=null,s=this[R],i=null;for(;s;){if(s.localName===e.localName&&s[x]===e[x]){if(s===e)return s;i?i[p]=e:this[R]=e,e[p]=s[p],s[p]=null,o=s;break}i=s,s=s[p]}o==null&&(i?i[p]=e:this[R]=e),e[Y]=n,e[k]=n[k],o&&(o[Y]=null);let l=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return l&&Ge&&te({type:"attributes",target:n,attributeName:e.name,attributeNamespace:e[x],oldValue:o?.value??null}),c&&n[L].removeAttribute?.(n,o.name,o[x]),(l||c)&&n[L].setAttribute?.(n,e.name,e.value,e[x]),l&<(n,e.localName,o?.value??null,e.value,e[x]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[R];for(;e;)yield e,e=e[p]}};var ve=class extends J{nodeType=ke;[x]=null;[p]=null;[Y]=null;constructor(e,n,r){super(),this[O]=e,this[me]=n,r&&(this[x]=r)}get nodeName(){return this[O]}set nodeName(e){}get name(){return this[O]}set name(e){}get localName(){if(this[x]==null)return this[O];let e=this[O].indexOf(":");return e<0?this[O]:this[O].slice(e+1)}get prefix(){if(this[x]==null)return null;let e=this[O].indexOf(":");return e<0?null:this[O].slice(0,e)}get value(){return this[me]}set value(e){let n=String(e),r=this[Y];if(!r){this[me]=n;return}F(()=>{let o=this[me];this[me]=n,Ge&&o!==n&&te({type:"attributes",target:r,attributeName:this[O],attributeNamespace:this[x],oldValue:o}),this[L].setAttribute?.(r,this[O],n,this[x]),lt(r,this.localName,o,n,this[x])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[Y]}get namespaceURI(){return this[x]}get specified(){return!0}};var _o={amp:"&",AMP:"&",apos:"\'",gt:">",GT:">",lt:"<",LT:"<",quot:\'"\',QUOT:\'"\'},Po=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Mo=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>\'"=/\\s]+(?:=([\'"])[^]*?\\3|=[^>\'"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Rr=/\\s([^<>\'"=/\\n\\s]+)(?:=(["\'])([\\s\\S]*?)\\2|=([^>\'"\\n\\s]*)|)/g,Co="|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|",Io=/^(?:color|face|size)$/i;function vr(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return _o[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function _r(t){return t.namespaceURI===_&&Po.has(t.localName)}function Ar(t){let e=t.localName;return t[x]===Z&&(e==="foreignObject"||e==="desc"||e==="title")}function ko(t,e){if(Co.includes(`|${t}|`))return!0;if(t!=="font")return!1;for(let n of e.matchAll(Rr))if(Io.test(n[1]))return!0;return!1}function Bt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(Mo)){let l=i[1];if(l){let c=i[2],u=H(l),m=o[o.length-1]?.element??e,g=m[x]===Z?Z:_;if(u==="svg")g=Z;else if(g===Z){if(Ar(m))g=_;else if(ko(u,c)){for(;o.length>0;){let v=o[o.length-1];if(v.element[x]!==Z||Ar(v.element))break;o.pop(),s=v.target}g=_}}let y=g===_?u:l,E=n[Ie](y,g,null,y);for(let v of c.matchAll(Rr))E.setAttribute(v[1],vr(v[3]||v[4]||""));if(s.append(E),_r(E)||g!==_&&i[4])continue;o.push({element:E,target:s}),s=g===_&&u==="template"?E.content:E}else if(i[5]){let c=H(i[5]);for(let u=o.length-1;u>=0;u--){let m=o[u],g=H(m.element[O]);if(g===c){s=m.target,o.length=u;break}if(m.element[x]===_&&g==="template")break}}else i[6]?s.append(n.createComment(i[6])):s.append(vr(i[7]))}return r}function Vt(t){return Mr([{type:"content",child:t[R]}])}function Pr(t){return Mr([{type:"opening",node:t}])}function Mr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case"opening":{let r=n.node;switch(r.nodeType){case $:{let o=r;e.push(`<${o[O]}`);let s=o[re]?.[R];for(;s;){e.push(` ${s[O]}`);let l=s[me];l!==""&&(l=String(l).replace(/&/g,"&").replace(/"/g,"""),e.push(`="${l}"`)),s=s[p]}if(e.push(">"),_r(o))break;let i=o.namespaceURI===_&&o.localName==="template"?o[ie]:o;t.push({type:"closing",name:o[O]}),t.push({type:"content",child:i?.[R]??null});break}case De:{let o=r;e.push(o[K].replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"));break}case Le:{let o=r;e.push(`<!--${o[K]}-->`);break}}break}case"content":{let r=n.child;r&&(t.push({type:"content",child:r[p]}),t.push({type:"opening",node:r}));break}case"closing":e.push(`</${n.name}>`);break}return e.join("")}var U=class extends oe{nodeType=$;[x]=_;[fe]=null;get namespaceURI(){return this[x]}get prefix(){return this[fe]}get localName(){let e=this[fe];return e==null?this[O]:this[O].slice(e.length+1)}get nodeName(){return this[x]===_?sr(this[O]):this[O]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,"id")??""}set id(e){this.setAttribute("id",String(e))}get slot(){return this.getAttributeNS(null,"slot")??""}set slot(e){let n=String(e);this.getAttributeNS(null,"slot")!==n&&this.attributes.setNamedItem(new ve("slot",n))}get attributes(){let e=this[re];return e||(e=new Ut(this),this[re]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Ct(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Mt(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);gn(r);let s=this[x]===_?H(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new ve(s,o))}setAttributeNS(e,n,r){let o=ae(e),s=String(n),i=String(r),l=ht(o,s,"attribute"),c=this.attributes.getNamedItemNS(l.namespace,l.localName);c?c.value=i:this.attributes.setNamedItemNS(new ve(l.qualifiedName,i,l.namespace))}toggleAttribute(e,n){let r=String(e);gn(r);let o=this[x]===_?H(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new ve(o,"")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[x]===_?H(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return Pr(this)}get innerHTML(){return Vt(this)}set innerHTML(e){if(e==null||e==="")this.replaceChildren();else{let n=Bt(String(e),this);this.replaceChildren(n)}}};var He=class t extends U{[x]=Z;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var Ee=class extends ye{[K]="";constructor(e){super(),this[K]=e==null?"":String(e)}setData(e){let n=kn,r=n?this[K]:null,o="";e!=null&&(o=typeof e=="string"?e:String(e)),this[K]=o,n&&r!==o&&te({type:"characterData",target:this,oldValue:r}),this[L].setText?.(this,o)}get data(){return this[K]}set data(e){this.setData(e)}};var Ue=class extends Ee{nodeType=De;[O]="#text"};var Be=class extends Ee{nodeType=Le;[O]="#comment"};var Ve=class extends oe{nodeType=he;[O]="#document-fragment";[k]=typeof window<"u"?window.document:null;getElementById(e){return Pt(this,e)}};var Fe=class extends U{get content(){let e=this[ie];return e||(e=this.ownerDocument.createDocumentFragment(),e[pe]=this,this[ie]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Bt(String(e),this))}get innerHTML(){let e=this[ie];return e?Vt(e):""}};var Ft=class extends U{};var jt=class extends U{};var qt=class extends U{};var ct=class extends oe{nodeType=Se;[O]="#document";[B]=!0;constructor(e){super(),this.defaultView=e,this[k]=this,this.documentElement=zt(new qt,this,"html"),this.body=zt(new Ft,this,"body"),this.head=zt(new jt,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Mt(this,e)}createElement(e){let n=String(e);return lr(n),Dn(this,H(n))}createElementNS(e,n){let r=ht(e,n,"element");return Dn(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return Dn(this,e,n,r,o)}createTextNode(e){let n=Yt(new Ue(e),this);return this[L].createText?.(n,n.data),n}createComment(e){return Yt(new Be(e),this)}createDocumentFragment(){return Yt(new Ve,this)}createEvent(){return new V("")}getElementById(e){return Pt(this,e)}getElementsByTagName(e){return Ct(this,e)}importNode(e,n){if(e.nodeType===Se)throw M("Cannot import a document node","NotSupportedError");return _t(e,n,this)}adoptNode(e){if(e[k]===this)return e;let n=Rt(e);return F(()=>{let r=e.parentNode;return r?Or(r,e,n,this):ot(n.nodes,this),e})}};function Yt(t,e){return Object.defineProperty(t,k,{value:e,writable:!0,enumerable:!1}),t}function Dn(t,e,n=_,r=null,o=e){let s;if(n===Z)s=new He;else if(n===_&&o==="template")s=new Fe;else if(n===_){let i=t.defaultView.customElements.get(o);s=i?new i:new U}else s=new U;return zt(s,t,e,n,r)}function zt(t,e,n,r=_,o=null){return Yt(t,e),Object.defineProperties(t,{[O]:{value:n},[x]:{value:r},[fe]:{value:o}}),e[L].createElement?.(t,r),t}var Wt=class extends V{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var $t=class extends V{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var Xt=class extends V{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Kt=class extends V{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var Zt=class extends V{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var Qt=class extends V{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var Jt=class extends U{};var Do=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,Lo=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Cr(t){return Do.test(t)&&!Lo.has(t)}function Ir(t){return M(`Invalid custom element name: "${t}"`,"SyntaxError")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Cr(e))throw Ir(e);if(this.registry.has(e))throw M(`A custom element named "${e}" has already been defined`,"NotSupportedError");if(this.getName(n)!=null)throw M("This constructor has already been registered in this custom element registry","NotSupportedError");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Cr(e))return Promise.reject(Ir(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var Go=["onerror","onunhandledrejection"],Dr=Symbol.for("@remote-dom/polyfill/global-property");function Lr(t){return Object.getOwnPropertyDescriptors(t)}function Gr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!=="constructor"&&typeof r.value=="function"&&(r.value=Ln(r.value.bind(t)),e[n]=r);return e}function Hr(t){let e={};for(let n of Go)e[n]={configurable:!0,enumerable:!0,get:Ln(()=>t[n]),set:Ln(r=>{t[n]=r})};return e}function Ho(t){return Object.assign(Lr(t),Gr(t),Hr(t))}function Ln(t){return Object.defineProperty(t,Dr,{value:!0}),t}function kr(t,e){for(let n of Reflect.ownKeys(e)){let r=Uo(t,n);(r==null||Bo(r))&&Object.defineProperty(t,n,e[n])}}function Uo(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Bo(t){return[t.value,t.get,t.set].some(e=>typeof e=="function"&&e[Dr]===!0)}var Ae=class extends ge{[L]={};[mt]=[];[we]=Fo(this);name="";window=this;parent=this;self=this;top=this;document=new ct(this);customElements=new en;location=globalThis.location;navigator=globalThis.navigator;Event=V;ErrorEvent=$t;PromiseRejectionEvent=Xt;ToggleEvent=Kt;FocusEvent=Zt;ClipboardEvent=Qt;EventTarget=ge;CustomEvent=Wt;Node=J;ParentNode=oe;ChildNode=ye;DocumentFragment=Ve;Document=ct;CharacterData=Ee;Comment=Be;Text=Ue;Element=U;HTMLElement=Jt;SVGElement=He;HTMLTemplateElement=Fe;MutationObserver=Lt;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)Vo(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener("error",this.#t),e&&typeof e=="function"?(this.#n=e,this.#t=n=>{e(n.message??"Error",n.filename,n.lineno,n.colno,n.error)},this.addEventListener("error",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener("unhandledrejection",this.#e),e&&typeof e=="function"?(this.#e=e,this.addEventListener("unhandledrejection",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=Lr(e),s=Object.assign(Gr(e),Hr(e));delete o.self,Object.defineProperties(globalThis,o),kr(globalThis,s),typeof n>"u"||n===r&&n!==globalThis?Object.defineProperty(globalThis,"self",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),kr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Ho(e))}};function Vo(t,e){t[mt].push(e(t)??{})}function Fo(t){return{createElement:ce.bind(null,t,"createElement"),setAttribute:ce.bind(null,t,"setAttribute"),removeAttribute:ce.bind(null,t,"removeAttribute"),createText:ce.bind(null,t,"createText"),setText:ce.bind(null,t,"setText"),insertChild:ce.bind(null,t,"insertChild"),removeChild:ce.bind(null,t,"removeChild"),addEventListener:ce.bind(null,t,"addEventListener"),removeEventListener:ce.bind(null,t,"removeEventListener")}}function ce(t,e,...n){for(let s of t[mt])s[e]?.apply(s,n);let r=t[L];r[e]?.apply(r,n)}var tn=new Ae;var Gn="~";var be=new WeakMap;function je(t){return be.get(t)}var Vn=new WeakMap,qo=0;function X(t){let e=Vn.get(t);return e==null&&(e=String(qo++),nn(t,e)),e}function nn(t,e){Vn.set(t,e)}var Un=new WeakMap;function Yo(t){return Un.get(t)}var Bn=new WeakMap;function zo(t){let e=Bn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes("-"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var Wo=new WeakMap;function $o(t){return Wo.get(t)}function Fn(t,e,n){let r=Un.get(t);if(r==null&&(r={},Un.set(t,r)),r[e]===n)return;r[e]=n;let o=be.get(t);o?.mutate([[3,X(t),e,n,1]])}function Ne(t,e,n){let r=Bn.get(t);if(r==null&&(r={},Bn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=be.get(t);o?.mutate([[3,X(t),e,n,2]])}function qe(t,e){if(be.get(t)!==e&&(be.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)qe(t.childNodes[r],e)}function rn(t){if(be.get(t)!=null&&(be.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)rn(t.childNodes[n])}function Ye(t){let{nodeType:e}=t;switch(e){case 1:return{id:X(t),type:e,element:t.localName,properties:Hn(Yo(t)),attributes:Hn(zo(t)),eventListeners:Hn($o(t)),children:Array.from(t.childNodes).map(Ye)};case 3:case 8:return{id:X(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function Hn(t){return t?{...t}:void 0}function jn(t,e,...n){let r=Vn.get(t),o=be.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var ze=tn[L];ze.insertChild=(t,e,n)=>{let r=je(t);r!=null&&(qe(e,r),r.mutate([[0,X(t),Ye(e),n]]))};ze.removeChild=(t,e,n)=>{let r=je(t);r!=null&&(rn(e),r.mutate([[1,X(t),n]]))};ze.setText=(t,e)=>{let n=je(t);n?.mutate([[2,X(t),e]])};ze.setAttribute=(t,e,n)=>{t.tagName.includes("-")||Ne(t,e,n)};ze.removeAttribute=(t,e)=>{t.tagName.includes("-")||Ne(t,e)};Ae.setGlobal(tn);function on(t){if(typeof t=="string")return{type:"navigate",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e=="string"?{type:"navigate",place:e,...s}:typeof n=="string"?{type:"navigate",to:n,...s}:void 0}var Br=["wheel","drag","pinch"];function Vr(t){let e=t;return typeof t=="object"&&t!==null&&e.graview==="host-hello"&&typeof e.nonce=="string"}function jr(t,e={}){let n,r="",o,s=0,i=new Set,l=new Map,c=[],u=N=>{n?n.postMessage({...N,nonce:r}):c.push(N)},m=N=>{let w=N.data;if(!(!w||typeof w!="object")){if(w.type==="props"){o=w.props;for(let C of i)C(w.props)}else w.type==="answer"?(l.get(w.id)?.(w),l.delete(w.id)):w.type==="event"&&typeof w.listener=="number"?e.onEvent?.(w):w.type==="heartbeat"&&typeof w.beat=="number"&&u({type:"heartbeat",beat:w.beat});e.onMessage?.(w)}},g=()=>{},y=N=>{if(n||!t.fromHost(N)||!Vr(N.data)||N.data.protocol!==1)return;let w=N.ports[0];if(w){n=w,r=N.data.nonce,n.onmessage=m,n.start?.(),g();for(let C of c.splice(0))u(C)}};g=t.listen(y),t.ready({graview:"guest-ready",protocol:1});let E,v={get props(){return o},subscribe(N){return i.add(N),()=>i.delete(N)},act(N,w={}){let C=s+=1;return new Promise(I=>{l.set(C,I),u({type:"act",id:C,name:N,args:w})})},navigate(N){let w=on(N);w&&u(w)},size(N){u({type:"size",height:N})},autoSize(N){let w=N??globalThis.document?.documentElement,C=globalThis.ResizeObserver;if(!w||!C||typeof w.getBoundingClientRect!="function")return()=>{};E?.disconnect();let I=new C(()=>v.size(Math.ceil(w.getBoundingClientRect().height)));return I.observe(w),E=I,()=>I.disconnect()},close(){E?.disconnect(),g(),n?.close(),i.clear()}};return{guest:v,send:u}}var Yr=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Function","Array","Number","Boolean","String","Symbol","BigInt","Date","Promise","RegExp","Math","JSON","Reflect","Proxy","Intl","Error","AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","SuppressedError","Map","Set","WeakMap","WeakSet","WeakRef","FinalizationRegistry","Iterator","AsyncIterator","DisposableStack","AsyncDisposableStack","ArrayBuffer","SharedArrayBuffer","DataView","Atomics","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],zr=["window","parent","top","document","customElements","Event","ErrorEvent","PromiseRejectionEvent","ToggleEvent","FocusEvent","ClipboardEvent","CustomEvent","EventTarget","Node","ParentNode","ChildNode","DocumentFragment","Document","CharacterData","Comment","Text","Element","HTMLElement","SVGElement","HTMLTemplateElement","MutationObserver"],Wr=["self","postMessage","setTimeout","clearTimeout","setInterval","clearInterval","queueMicrotask","structuredClone","crypto","console","DOMException"],$r=["TEMPORARY","PERSISTENT"],vl=Object.freeze([...Yr,...zr,...Wr,...$r]),Al=Object.freeze(["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"]),qr=t=>typeof t=="symbol"?`[${t.description??"symbol"}]`:t;function Xr(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...Yr,...zr,...Wr,...e,"constructor",Symbol.toStringTag]),i=(S,P)=>{let q=Reflect.getOwnPropertyDescriptor(S,P);return q===void 0||!("value"in q)||q.writable||q.configurable?!1:n.primitivesStay&&typeof P=="symbol"&&(typeof q.value!="object"||q.value===null)&&typeof q.value!="function"?!0:$r.includes(P)&&typeof q.value=="number"},l=t,c=l.setTimeout,u=l.setInterval,m=l.crypto,g=(S,P)=>function(q,dt,...ft){if(typeof q!="function")throw new TypeError(`${P} takes a function: a guest view cannot run code from text`);return S.call(t,q,dt,...ft)},y=m?Object.freeze({getRandomValues:S=>m.getRandomValues(S)}):void 0,E=l.document?.defaultView;if(E&&E!==l)for(let S of Reflect.ownKeys(E))typeof S=="symbol"||s.has(S)||Reflect.deleteProperty(E,S)||o.push(`window.${S}`);let v=[];for(let S=t;S&&S!==Object.prototype;S=Object.getPrototypeOf(S))v.push(S);for(let S of v)for(let P of Reflect.ownKeys(S))s.has(P)||(Reflect.deleteProperty(S,P)?r.push(qr(P)):i(S,P)||o.push(qr(P)));let N=()=>function(){throw new EvalError("A guest view cannot make code from text.")},w=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let S of w){let P=N();Object.defineProperty(P,"prototype",{value:S,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(S,"constructor",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push("Function.prototype.constructor"),S===Function.prototype&&Reflect.defineProperty(t,"Function",{value:P,writable:!0,enumerable:!1,configurable:!0})}let C=(S,P)=>{Reflect.defineProperty(t,S,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(S)};C("setTimeout",g(c,"setTimeout")),C("setInterval",g(u,"setInterval")),y&&C("crypto",y);for(let S of v.slice(1))Object.freeze(S);for(let S of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,S);Reflect.defineProperty(t,S,"value"in P?{...P,writable:!1,configurable:!1}:{...P,configurable:!1})}let I;try{I=Reflect.preventExtensions(t)}catch{I=!1}return{removed:r,stuck:o,sealed:I}}var ut=class extends HTMLElement{constructor(){super(),nn(this,Gn)}connect(e){if(je(this)===e||(qe(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Gn,Ye(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Fn(this,e,n)}callRemoteMethod(e,...n){return jn(this,e,...n)}};var f={},qn={empty:!0},Xo={id:"text",class:"text",title:"text",lang:"text",dir:{oneOf:["ltr","rtl","auto"]},hidden:"text",tabindex:{oneOf:["-1","0"]},role:"text",style:"style",translate:{oneOf:["yes","no"]},spellcheck:{oneOf:["true","false"]},draggable:{oneOf:["true","false"]},inert:"boolean"},Yn={div:f,section:f,article:f,aside:f,header:f,footer:f,nav:f,hgroup:f,search:f,address:f,figure:f,figcaption:f,blockquote:f,p:f,pre:f,hr:qn,br:qn,wbr:qn,h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,span:f,strong:f,em:f,b:f,i:f,u:f,s:f,small:f,mark:f,abbr:f,cite:f,q:f,code:f,kbd:f,samp:f,var:f,sub:f,sup:f,dfn:f,bdi:f,bdo:f,ruby:f,rt:f,rp:f,time:{attributes:{datetime:"text"}},data:{attributes:{value:"text"}},del:{attributes:{datetime:"text"}},ins:{attributes:{datetime:"text"}},a:{attributes:{href:"link"}},ul:f,menu:f,dl:f,dt:f,dd:f,ol:{attributes:{start:"number",reversed:"boolean",type:{oneOf:["1","a","A","i","I"]}}},li:{attributes:{value:"number"}},table:f,caption:f,thead:f,tbody:f,tfoot:f,tr:f,colgroup:{attributes:{span:"number"}},col:{attributes:{span:"number"},empty:!0},th:{attributes:{colspan:"number",rowspan:"number",headers:"text",scope:{oneOf:["row","col","rowgroup","colgroup"]},abbr:"text"}},td:{attributes:{colspan:"number",rowspan:"number",headers:"text"}},details:{attributes:{open:"boolean",name:"text"}},summary:f,button:{attributes:{type:{oneOf:["button"]},disabled:"boolean",name:"text",value:"text"}},input:{empty:!0,attributes:{type:{oneOf:["text","search","number","range","checkbox","radio","date","time","datetime-local","month","week","color","email","tel","url"]},name:"text",value:"text",placeholder:"text",min:"text",max:"text",step:"text",checked:"boolean",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",size:"number",pattern:"text",multiple:"boolean",inputmode:"text",enterkeyhint:"text"}},select:{attributes:{name:"text",disabled:"boolean",multiple:"boolean",required:"boolean",size:"number"}},option:{attributes:{value:"text",selected:"boolean",disabled:"boolean",label:"text"}},optgroup:{attributes:{label:"text",disabled:"boolean"}},textarea:{attributes:{name:"text",placeholder:"text",rows:"number",cols:"number",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",wrap:{oneOf:["soft","hard","off"]}}},label:{attributes:{for:"text"}},fieldset:{attributes:{disabled:"boolean",name:"text"}},legend:f,output:f,meter:{attributes:{value:"number",min:"number",max:"number",low:"number",high:"number",optimum:"number"}},progress:{attributes:{value:"number",max:"number"}},img:{empty:!0,attributes:{src:"image",alt:"text",width:"number",height:"number",decoding:{oneOf:["async","sync","auto"]}}},"graview-video":{empty:!0,attributes:{autoplay:"boolean",cover:"boolean"}}},Ko=["fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-opacity","stroke-miterlimit","opacity","color","display","visibility","transform-origin","clip-path","clip-rule","marker-start","marker-mid","marker-end","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","alignment-baseline","letter-spacing","text-decoration","paint-order","vector-effect","shape-rendering","pointer-events","stop-color","stop-opacity","overflow","mask","filter","flood-color","flood-opacity","lighting-color","color-interpolation-filters"],Zo={id:"text",class:"text",style:"style",lang:"text",role:"text",tabindex:{oneOf:["-1","0"]},transform:"geometry",...Object.fromEntries(Ko.map(t=>[t,"css"]))},ue={x:"geometry",y:"geometry",width:"geometry",height:"geometry"},sn={viewBox:"geometry",preserveAspectRatio:"geometry"},Kr={oneOf:["userSpaceOnUse","objectBoundingBox"]},Zr={oneOf:["R","G","B","A"]},ne={...ue,in:"text",result:"text"},Qr={gradientUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},gradientTransform:"geometry",spreadMethod:{oneOf:["pad","reflect","repeat"]},href:"fragment"},Jr={svg:{attributes:{...ue,...sn}},g:f,defs:f,symbol:{attributes:{...ue,...sn,refX:"geometry",refY:"geometry"}},use:{attributes:{...ue,href:"fragment"}},title:f,desc:f,path:{attributes:{d:"geometry",pathLength:"number"}},rect:{attributes:{...ue,rx:"geometry",ry:"geometry",pathLength:"number"}},circle:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",pathLength:"number"}},ellipse:{attributes:{cx:"geometry",cy:"geometry",rx:"geometry",ry:"geometry",pathLength:"number"}},line:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",pathLength:"number"}},polyline:{attributes:{points:"geometry",pathLength:"number"}},polygon:{attributes:{points:"geometry",pathLength:"number"}},text:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry",lengthAdjust:{oneOf:["spacing","spacingAndGlyphs"]}}},tspan:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry"}},textPath:{attributes:{href:"fragment",startOffset:"geometry",method:{oneOf:["align","stretch"]},spacing:{oneOf:["auto","exact"]},side:{oneOf:["left","right"]}}},linearGradient:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",...Qr}},radialGradient:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",fx:"geometry",fy:"geometry",fr:"geometry",...Qr}},stop:{attributes:{offset:"geometry"}},clipPath:{attributes:{clipPathUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},mask:{attributes:{...ue,maskUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},maskContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},pattern:{attributes:{...ue,...sn,patternUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternTransform:"geometry",href:"fragment"}},marker:{attributes:{...sn,markerWidth:"geometry",markerHeight:"geometry",refX:"geometry",refY:"geometry",orient:"geometry",markerUnits:{oneOf:["strokeWidth","userSpaceOnUse"]}}},a:f,filter:{attributes:{...ue,filterUnits:Kr,primitiveUnits:Kr}},feBlend:{attributes:{...ne,in2:"text",mode:"text"}},feColorMatrix:{attributes:{...ne,type:{oneOf:["matrix","saturate","hueRotate","luminanceToAlpha"]},values:"geometry"}},feComponentTransfer:{attributes:ne},...Object.fromEntries(["feFuncR","feFuncG","feFuncB","feFuncA"].map(t=>[t,{attributes:{type:{oneOf:["identity","table","discrete","linear","gamma"]},tableValues:"geometry",slope:"number",intercept:"number",amplitude:"number",exponent:"number",offset:"number"}}])),feComposite:{attributes:{...ne,in2:"text",operator:{oneOf:["over","in","out","atop","xor","lighter","arithmetic"]},k1:"number",k2:"number",k3:"number",k4:"number"}},feDisplacementMap:{attributes:{...ne,in2:"text",scale:"number",xChannelSelector:Zr,yChannelSelector:Zr}},feDropShadow:{attributes:{...ne,dx:"number",dy:"number",stdDeviation:"geometry"}},feFlood:{attributes:ne},feGaussianBlur:{attributes:{...ne,stdDeviation:"geometry",edgeMode:{oneOf:["duplicate","wrap","none"]}}},feMerge:{attributes:ne},feMergeNode:{attributes:{in:"text"}},feMorphology:{attributes:{...ne,operator:{oneOf:["erode","dilate"]},radius:"geometry"}},feOffset:{attributes:{...ne,dx:"number",dy:"number"}},feTurbulence:{attributes:{...ue,result:"text",type:{oneOf:["fractalNoise","turbulence"]},baseFrequency:"geometry",numOctaves:"number",seed:"number",stitchTiles:{oneOf:["stitch","noStitch"]}}}};var eo={section:["aria-label","title"]};function Qo(t){return/^aria-[a-z]+$/.test(t)}function Jo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var es=new Map(Object.keys(Jr).map(t=>[t.toLowerCase(),t]));function to(t){return es.get(t.toLowerCase())}function no(t,e,n){let r=n.toLowerCase(),o=t==="html"?[Yn[e]?.attributes,Xo]:[Jr[e]?.attributes,Zo],s=t==="svg"&&r==="xlink:href"?"href":r;for(let i of o)if(i){for(let[l,c]of Object.entries(i))if(l.toLowerCase()===s)return{name:l,kind:c}}if(Qo(r)||Jo(r))return{name:r,kind:"text"}}var an=/^\\d{4}-\\d{2}-\\d{2}$/;function ts(t,e){if(typeof t!="string"||typeof e!="string"||!an.test(t)||!an.test(e))return;let n=Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5);return Number.isFinite(n)?n:void 0}function ro(t,e,n={}){let r=ts(t,e);if(r===void 0)return"";if(r===0)return"today";if(r===1)return"tomorrow";if(r<0&&n.due===!0)return"overdue";if(r===-1)return"yesterday";let o=Math.abs(r),[s,i]=o<14?[o,"day"]:o<60?[Math.round(o/7),"week"]:o<730?[Math.round(o/30.44),"month"]:[Math.round(o/365.25),"year"],l=`${s} ${i}${s===1?"":"s"}`;return r>0?`in ${l}`:`${l} ago`}function oo(t,e){if(typeof t!="string")return;if(an.test(t))return t;let n=Date.parse(t);if(Number.isFinite(n)){if(!/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t))return an.test(t.slice(0,10))?t.slice(0,10):void 0;try{let r=new Intl.DateTimeFormat("en-CA",{timeZone:e||"UTC",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(n),o=s=>r.find(i=>i.type===s)?.value??"";return`${o("year")}-${o("month")}-${o("day")}`}catch{return new Date(n).toISOString().slice(0,10)}}}var so="~",ln=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),se=(t,e=0)=>{if(t===null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t===void 0)return t;if(!(e>64||typeof t!="object"))return Array.isArray(t)?t.map(n=>se(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,se(r,e+1)]))};function io(){let t=new Map,e=new Map,n=new Map([[so,{children:[],listeners:new Map}]]),r=0,o=u=>{let m=e.get(u);return m===void 0&&(m=r+=1,e.set(u,m),t.set(m,{listener:u,count:0})),t.get(m).count+=1,m},s=u=>{let m=t.get(u);m&&(m.count-=1,!(m.count>0)&&(t.delete(u),e.delete(m.listener)))},i=u=>{let m=n.get(u);if(m){n.delete(u);for(let g of m.listeners.values())s(g);for(let g of m.children)i(g)}},l=(u,m,g=0)=>{if(!ln(u)||g>64)return se(u);let y=typeof u.id=="string"?u.id:void 0,E=m&&y!==void 0&&y!==so;E&&i(y);let v={children:[],listeners:new Map};E&&n.set(y,v);let N={};for(let[w,C]of Object.entries(u))w==="children"&&Array.isArray(C)?N[w]=C.map(I=>{let S=l(I,E,g+1);return E&&ln(I)&&typeof I.id=="string"&&v.children.push(I.id),S}):w==="eventListeners"&&ln(C)?N[w]=Object.fromEntries(Object.entries(C).map(([I,S])=>{if(typeof S!="function"||!E)return[I,void 0];let P=o(S);return v.listeners.set(I,P),[I,{listener:P}]})):N[w]=se(C,g+1);return N},c=u=>{if(!Array.isArray(u))return se(u);let[m,g]=u,y=typeof g=="string"?n.get(g):void 0;if(m===0){let E=l(u[2],y!==void 0),v=ln(u[2])?u[2].id:void 0;if(y&&typeof v=="string"&&n.has(v)){let N=Number(u[3]);y.children.splice(Number.isInteger(N)&&N>=0&&N<=y.children.length?N:y.children.length,0,v)}return[m,se(g),E,se(u[3])]}if(m===1){let E=Number(u[2]);return y&&Number.isInteger(E)&&E>=0&&E<y.children.length&&i(y.children.splice(E,1)[0]),se(u)}if(m===3&&u[4]===3){let E=String(u[2]),v=u[3],N=y&&typeof v=="function"?o(v):void 0,w=y?.listeners.get(E);return w!==void 0&&s(w),N===void 0?y?.listeners.delete(E):y.listeners.set(E,N),[m,se(g),E,N===void 0?void 0:{listener:N},3]}return se(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var cn="graview-view-root",ns=["value","checked","key","pressed","files","refused","x","y","width","height","deltaX","deltaY","deltaMode","ctrlKey","metaKey","phase","pointerId","button","pressure","dx","dy","scale","rotation"],rs=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/\'/g,"'"),os=t=>Object.freeze({html:t,toString:()=>t}),ao=t=>typeof t=="object"&&t!==null&&typeof t.html=="string"&&Object.isFrozen(t),lo=t=>t==null||t===!1?"":Array.isArray(t)?t.map(lo).join(""):ao(t)?t.html:rs(String(t));function co(t){customElements.get(cn)||customElements.define(cn,ut);let e=Event,n=io(),r=new Set,o=new Set,s,i=[],l=new Set;for(let a of["closest","matches","dataset"]){let d=()=>{throw new TypeError(`A view\'s element has no ${a}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute("data-\\u2026").`)};a in Element.prototype||Object.defineProperty(Element.prototype,a,a==="dataset"?{get:d}:{value:d})}let c=document.createElement(cn),u=a=>{let d=h=>{for(let T of Array.from(h.childNodes)){if(T.nodeType!==1)continue;if(X(T)===a)return T;let b=d(T);if(b)return b}};return d(c)},m=a=>{let d=u(a.target);if(!d)return;let h=new e(a.event,{bubbles:!0}),T={};for(let b of ns)a[b]!==void 0&&(T[b]=a[b]);for(let b of Object.keys(T))Object.defineProperty(h,b,{value:T[b],enumerable:!0});d.dispatchEvent(h);for(let b of o){if(b.type!==a.event)continue;let A;try{A=new Set(Array.from(c.querySelectorAll(b.selector)))}catch{continue}for(let G=d;G&&G!==c;G=G.parentNode)if(A.has(G)){b.listener(Object.freeze({type:a.event,target:d,element:G,...T}));break}}},g=Error,y=new Map,E=0,v=(a,d,h)=>new Promise((T,b)=>{let A=++E;y.set(A,G=>G.ok?T(G):b(new g(G.sentence??"This value was not kept."))),t.send({type:"mine",id:A,op:a,key:d,...a==="set"?{value:h}:{}})}),N=a=>(a.catch(()=>{}),a),w=Object.freeze({get(a){return N(v("get",a).then(d=>typeof d.value=="string"?d.value:null))},set(a,d){return N(v("set",a,d).then(()=>{}))}}),C=a=>{if(a.type==="mine-answer"){let b=y.get(a.id);return y.delete(a.id),b?.(a)}if(a.type==="dom-event"&&typeof a.target=="string")return m(a);if(a.type==="notice")return t.warn(a.text);if(a.type!=="props")return;s=a.props;let d=t.now();for(let b of r)try{b(a.props)}catch(A){t.threw(A)}let h=t.now()-d,T=a.push;typeof T=="number"&&t.microtask(()=>t.microtask(()=>t.send({type:"pushed",push:T,ms:h})))},I;c.connect({mutate(a){I||(I=[],t.microtask(()=>{let d=I??[];I=void 0,t.send({type:"render",records:n.encode(d)})})),I.push(...a)},call:()=>{}});let S=a=>a.nodeType===1?a.getAttribute("data-key")??a.getAttribute("id"):null,P=(a,d)=>a.nodeType===d.nodeType&&(a.nodeType!==1||a.localName===d.localName&&a.namespaceURI===d.namespaceURI&&S(a)===S(d));function q(a,d){let h=Array.from(d.childNodes),T=0;for(let b of h){let A=a.childNodes[T]??null;if(A&&P(A,b)){dt(A,b),T+=1;continue}if(S(b)!==null){let de=Array.from(a.childNodes).slice(T+1).find(We=>P(We,b));if(de){a.insertBefore(de,A),dt(de,b),T+=1;continue}}a.insertBefore(b,A),T+=1}for(;a.childNodes.length>T;)a.removeChild(a.lastChild)}function dt(a,d){if(a.nodeType!==1){a.data!==d.data&&(a.data=d.data);return}let h=a,T=d,b=ft(h);for(let A of h.getAttributeNames())T.hasAttribute(A)||(h.removeAttribute(A),b&&Ne(h,A,void 0));for(let A of T.getAttributeNames()){let G=T.getAttribute(A);h.getAttribute(A)!==G&&h.setAttribute(A,G),b&&Ne(h,A,G)}q(h,T)}let ft=a=>a.localName.includes("-");function Xn(a){for(let d of Array.from(a.childNodes)){if(d.nodeType!==1)continue;let h=d;if(ft(h))for(let T of h.getAttributeNames())Ne(h,T,h.getAttribute(T)??void 0);Xn(h)}}function Kn(a,d,h){for(let T of Array.from(a.childNodes)){if(T.nodeType!==1)continue;let b=T,A=b.localName,G=d||A.toLowerCase()==="svg",de=G?to(A):Object.prototype.hasOwnProperty.call(Yn,A.toLowerCase())?A.toLowerCase():void 0;if(!de){h.add(`<${A}>`);continue}for(let We of b.getAttributeNames())(!no(G?"svg":"html",de,We)||!G&&eo[de]?.includes(We.toLowerCase()))&&h.add(`${de} ${We}`);Kn(b,G,h)}}function fo(a){let d=document.createElement("div"),h=Array.isArray(a)?a:[a];for(let b of h)if(b!=null)if(typeof b=="string"||ao(b)){let A=document.createElement("div");A.innerHTML=typeof b=="string"?b:b.html,d.append(...Array.from(A.childNodes))}else d.append(b);let T=new Set;Kn(d,!1,T),i=[...T],i.length>0&&t.warn(`The host will not draw: ${i.join(", ")}`),Xn(d),q(c,d)}let un=[],dn=new Set(Br),Zn="[]",fn=!1,Qn=()=>{fn||(fn=!0,t.microtask(()=>{fn=!1;let a=[...new Map([...o].filter(h=>dn.has(h.type)).map(h=>[`${h.type} ${h.selector}`,{event:h.type,selector:h.selector}])).entries()].sort(([h],[T])=>h<T?-1:h>T?1:0).map(([,h])=>h),d=JSON.stringify(a);d!==Zn&&(Zn=d,t.send({type:"gestures",bound:a}))}))},Jn="[[],[]]",mn=!1,er=()=>{mn||(mn=!0,t.microtask(()=>{mn=!1;let a=b=>[...new Set([...o].filter(A=>A.type===b&&typeof A.selector=="string").map(A=>A.selector))].sort().slice(0,200),d=a("click"),h=a("acted"),T=JSON.stringify([d,h]);T!==Jn&&(Jn=T,t.send({type:"clicks",selectors:d,...h.length>0?{acted:h}:{}}))}))},tr=Object.freeze({get props(){return s},onProps(a){return r.add(a),s&&a(s),()=>void r.delete(a)},render:fo,style(a){typeof a!="string"||un.includes(a)||(un.push(a),t.send({type:"style",sheets:[...un]}))},on(a,d,h){let T={type:a,selector:d,listener:h};return o.add(T),typeof a=="string"&&!l.has(a)&&(l.add(a),t.send({type:"hears",events:[a]})),dn.has(a)&&Qn(),(a==="click"||a==="acted")&&er(),()=>{o.delete(T),dn.has(a)&&Qn(),(a==="click"||a==="acted")&&er()}},act:(a,d={})=>t.act(a,d),mine:w,navigate(a){if(typeof a=="string")return t.navigate(a);let d=on(a);d&&t.send(d)},html(a,...d){return os(a.reduce((h,T,b)=>h+T+(b<d.length?lo(d[b]):""),""))},get today(){return s?.today??new Date().toISOString().slice(0,10)},fromToday(a,d){let h=oo(a,s?.timeZone);return h===void 0?"":ro(h,tr.today,d)},get refused(){return i},get hardening(){return t.hardening()}});return{view:tr,hear:C,find:a=>{try{let d=c.querySelectorAll(a)[0];return d?X(d):void 0}catch{return}},listened:a=>{let d=new Set;for(let h of o)if(h.type===a)try{for(let T of Array.from(c.querySelectorAll(h.selector))){let b=X(T);b&&d.add(b)}}catch{}return[...d]}}}var $n={removed:[],stuck:[],sealed:!1,worker:!1},zn=jr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>uo.hear(t)}),uo=co({send:t=>zn.send(t),act:(t,e)=>zn.guest.act(t,e),navigate:t=>zn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>$n}),ss=uo.view;Object.defineProperty(globalThis,"graview",{value:ss,enumerable:!0,configurable:!0,writable:!1});var Wn="WorkerGlobalScope"in globalThis?Xr(globalThis,["graview"]):$n;$n=Wn;if(Wn.stuck.length>0)throw new Error(`The view\'s worker could not be hardened: ${Wn.stuck.join(", ")} would not go.`);})();\n';export{e as VIEW_RUNTIME};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{c as Er}from"./chunk.J4D4BIB4.js";import{Da as Rn,G as R,P as Cn,Qa as M,T as Mn,Va as Fn,Wa as Vn,Za as U,_ as P,a as be,bb as J,e as ke,ia as xe,j as Nn,ja as re,l as Ie,m as $e,s as Bn,ua as On,v as se,x as Hn,z as Tn}from"./chunk.ASNVH2G4.js";import{a as C}from"./chunk.SDO3U72B.js";import{$d as we,Hb as un,Uc as gn,Xc as fn,ae as ie,be as vn,cd as _,dd as mn,de as De,ed as yn,fe as bn,gd as hn,ge as kn,he as ne,id as wn,jd as Ve,ma as ye,oe as xn,pb as pn,pe as Sn,qa as he,qe as Ln,ra as cn,re as Pn,te as En,ue as ve,ye as An}from"./chunk.ZDUKVXBI.js";import{b as w}from"./chunk.AJZBJBMO.js";var We=w(R(),1),Qt=e=>{let n=e??null;for(;n?.parentElement?.closest('[data-testid="context-menu"]');)n=n.parentElement.closest('[data-testid="context-menu"]');let r=n?.getBoundingClientRect();return r&&r.width>0?{left:r.left,top:r.top}:void 0},_e=new WeakMap,Se=e=>{let n=_e.get(e);return n||_e.set(e,n={open:null,drawn:0,listeners:new Set}),n},Ut=e=>{let n=_e.get(e);n?.preload&&(typeof performance<"u"&&typeof performance.mark=="function"&&performance.mark("graview:quick-ask-preload"),n.preload(),n.preload=void 0)},Ar=e=>{for(let n of[...e.listeners])n()},Nr=0;function Jt(e,n){let r=Se(e);r.open=n?{...n,at:++Nr}:null,Ar(r)}var Dn=e=>n=>{let r=Se(e);return r.listeners.add(n),()=>void r.listeners.delete(n)};function In(e){let n=()=>e?Se(e).drawn>0:!1;return(0,We.useSyncExternalStore)(e?Dn(e):Br,n,n)}var Br=()=>()=>{};function Xt(e){let n=()=>Se(e).open;return(0,We.useSyncExternalStore)(Dn(e),n,n)}var V=w(R(),1),$n=w(Er(),1);function Hr(e){let[n,r]=(0,V.useState)(null),[t,i]=(0,V.useState)(null);return(0,V.useLayoutEffect)(()=>{e.current!==t&&i(e.current)}),(0,V.useLayoutEffect)(()=>{if(!t||typeof ResizeObserver>"u")return;let o=()=>Math.round(t.getBoundingClientRect().width),s=o();r(s);let p=new ResizeObserver(()=>{let d=o();d!==s&&(s=d,(0,$n.flushSync)(()=>r(d)))});return p.observe(t),()=>p.disconnect()},[t]),n}function Tr(e=!0){let[n,r]=(0,V.useState)();return(0,V.useEffect)(()=>{if(!e)return r(void 0);let t=0,i=()=>r(innerHeight),o=()=>{i(),clearTimeout(t),t=window.setTimeout(i,300)},s=p=>{for(let[d,l]of[[window,"resize"],[window,"orientationchange"],[window.visualViewport,"resize"]])d?.[p](l,o)};return s("addEventListener"),i(),()=>{clearTimeout(t),s("removeEventListener")}},[e]),n}var Le={position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",whiteSpace:"nowrap"};var N=w(R(),1);var B=w(P(),1),_n=6e3;function Cr(e){return{...e,notify:n=>e.notify({...n,from:"framework"})}}var Mr=e=>({place:"overview",...e&&!/^(aggregate|kind):/.test(e)?{record:e}:{}});function Or(){let e=[],n=0,r=new Set,t=new Map,i,o=()=>{for(let l of[...r])l()},s=l=>{if(clearTimeout(t.get(l.id)),t.delete(l.id),l.kind!=="toast")return;let u=(l.actions?.length??0)+(l.action?1:0),g=l.timeout??(u>0?!1:_n);g!==!1&&t.set(l.id,setTimeout(()=>i?.()?s(l):p(l.id),g))},p=l=>{clearTimeout(t.get(l)),t.delete(l),e.some(u=>u.id===l)&&(e=e.filter(u=>u.id!==l),o())},d=l=>{e=e.some(u=>u.id===l.id)?e.map(u=>u.id===l.id?l:u):[...e,l],s(l),o()};return{notify(l){let u=l.id??`notice-${++n}`;return d({...l,id:u,said:++n}),{id:u,dismiss:()=>p(u),update:g=>{let c=e.find(h=>h.id===u);c&&d({...c,...g,id:u,kind:c.kind,said:g.sentence!==void 0&&g.sentence!==c.sentence?++n:c.said})}}},dismiss:p,hold(l){i=l},list:()=>e,subscribe(l){return r.add(l),()=>r.delete(l)}}}function Rr({notices:e}){let n=e.reduce((p,d)=>!p||d.said>p.said?d:p,void 0),[r,t]=(0,N.useState)(""),[i,o]=(0,N.useState)(""),s=(0,N.useRef)(0);return(0,N.useEffect)(()=>{if(!n||n.said===s.current)return;s.current=n.said;let p=n.tone==="bad";(p?o:t)("");let d=setTimeout(()=>(p?o:t)(n.sentence),50);return()=>clearTimeout(d)},[n]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)("div",{role:"status","aria-live":"polite","data-testid":"notices-said",style:Le,children:r}),(0,B.jsx)("div",{role:"alert","data-testid":"notices-alarm",style:Le,children:i})]})}var Fr=(0,N.createContext)(null);function Vr({board:e,anchor:n,report:r}){let t=(0,N.useSyncExternalStore)(e.subscribe,e.list,e.list);return(0,N.useEffect)(()=>$r(ze.prefetch),[]),(0,B.jsxs)(B.Fragment,{children:[t.length>0?(0,B.jsx)(N.Suspense,{fallback:null,children:(0,B.jsx)(Ir,{notices:t,anchor:n,board:e,...r?{report:r}:{}})}):null,(0,B.jsx)(Rr,{notices:t})]})}var ze=M(C(()=>(__graviewPreload(import.meta.url,["./chunk.MB7LKKUD.js","./chunk.GH6QX7JR.js","./chunk.J4D4BIB4.js","./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.2Q4ZXP7P.js")))),Dr=()=>ze.load().then(()=>{},()=>{}),Ir=ze.part((e,n)=>(0,B.jsx)(e.NoticeStacks,{...n}),{quiet:!0});function $r(e){let n=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&e()},r=globalThis;if(r.requestIdleCallback){let i=r.requestIdleCallback(n,{timeout:5e3});return()=>r.cancelIdleCallback?.(i)}let t=setTimeout(n,2500);return()=>clearTimeout(t)}var O=M(C(()=>(__graviewPreload(import.meta.url,["./chunk.VE4AQFLW.js","./chunk.LPWANRBL.js","./chunk.I46VNAMS.js","./chunk.3BE4SHZD.js","./chunk.5OS4SYHE.js","./chunk.LG2BQ5LB.js","./chunk.U5P23GO7.js","./chunk.SNDFIJVX.js","./chunk.2TTKQAWQ.js","./chunk.CJHCUHVN.js","./chunk.MFNWHXGL.js","./chunk.DCIYOZYP.js","./chunk.A4TBVXHQ.js","./chunk.7QGDWAHH.js","./chunk.YC2IDHQX.js","./chunk.WIVNFOQR.js","./chunk.MIE4TJRW.js","./chunk.DEBW4FH6.js","./chunk.RD2FSSLV.js","./chunk.OWHH7JDV.js","./chunk.T3RFZ66S.js","./chunk.TDWJU6GW.js","./chunk.P3Z4ZCL3.js","./chunk.45OLF6BK.js","./chunk.T6ISUVUP.js","./chunk.GH6QX7JR.js","./chunk.J4D4BIB4.js","./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.HPDUGKEF.js"))));var y=w(R(),1);var Ke=e=>Math.round(e).toString(16).padStart(2,"0");function Wn(e){let n=r=>{let t=e?.schemes?.[r]?.ground,i=t?gn(t)[0]:void 0;return i?`#${Ke(i.r)}${Ke(i.g)}${Ke(i.b)}`:void 0};if(e?.scheme==="light"||e?.scheme==="dark"){let r=n(e.scheme);return r?[{color:r}]:[]}return["light","dark"].flatMap(r=>{let t=n(r);return t?[{color:t,media:`(prefers-color-scheme: ${r})`}]:[]})}var Ge=w(R(),1);var zn=w(R(),1);function le(e){return(0,zn.useMemo)(()=>e===void 0||e===""?void 0:{__html:e},[e])}var W=w(P(),1);function je({brand:e,size:n=22}){let r=Cn(),t=hn(e),i=Kn(t?.light),o=i?Kn(t?.dark):void 0,s=le(i!==void 0&&_(i)?i:void 0),p=le(o!==void 0&&_(o)?o:void 0),d={display:"inline-flex",flex:"0 0 auto",height:n,color:"var(--graview-accent)"},l=wn(e);if(l)return(0,W.jsx)("span",{className:"graview-logo graview-emoji-mark","data-testid":"app-mark","aria-hidden":!0,style:{...d,alignItems:"center",fontSize:`${n*.86/16}rem`,lineHeight:1},children:l});if(!i)return null;let u=e?.logoAlt??e?.name??"",g=u!==""&&u!==e?.name,c=g?{role:"img","aria-label":u}:{"aria-hidden":!0};if(o){let v=(b,S,L)=>_(b)?(0,W.jsx)("span",{className:"graview-logo-face","data-graview-scheme-only":L,dangerouslySetInnerHTML:S}):(0,W.jsx)("img",{className:"graview-logo-face","data-graview-scheme-only":L,src:Ve(r,b),alt:""});return(0,W.jsxs)("span",{className:"graview-logo","data-testid":"app-mark",style:d,...c,children:[v(i,s,"light"),v(o,p,"dark")]})}let h=t?.darkFallback==="invert"?{"data-graview-logo-fallback":"invert"}:{};return _(i)?(0,W.jsx)("span",{className:"graview-logo","data-testid":"app-mark",style:d,...h,...c,dangerouslySetInnerHTML:s}):(0,W.jsx)("img",{className:"graview-logo","data-testid":"app-mark",src:Ve(r,i),alt:g?u:"",...h,style:{...d,width:"auto"}})}function Kn(e){if(!(!e||!yn(e)))return _(e)&&mn(e)!==null?void 0:e}function _r(e){(0,Ge.useEffect)(()=>{if(!e||typeof document>"u")return;let n=[...document.querySelectorAll('link[rel~="icon"]')],r=n.map(i=>i.getAttribute("href")),t;n.length===0&&(t=document.createElement("link"),t.rel="icon",t.setAttribute("data-graview-favicon",""),document.head.appendChild(t),n.push(t));for(let i of n)i.href=e;return()=>{t&&t.remove(),n.forEach((i,o)=>{i!==t&&r[o]!==null&&r[o]!==void 0&&i.setAttribute("href",r[o])})}},[e])}function Wr(e){let n=e?JSON.stringify(Wn(e)):"[]";(0,Ge.useEffect)(()=>{let r=JSON.parse(n);if(r.length===0||typeof document>"u")return;let t=[...document.head.querySelectorAll('meta[name="theme-color"]:not([data-graview-theme-color])')];t.forEach(o=>o.setAttribute("name","graview-theme-color-held"));let i=r.map(({color:o,media:s})=>{let p=document.createElement("meta");return p.name="theme-color",p.content=o,s&&(p.media=s),p.setAttribute("data-graview-theme-color",""),document.head.appendChild(p),p});return()=>{i.forEach(o=>o.remove()),t.forEach(o=>o.setAttribute("name","theme-color"))}},[n])}var a=w(P(),1),zr=O.part((e,n)=>(0,a.jsx)(e.TidyFoot,{...n}),{quiet:!0}),Kr=O.part((e,n)=>(0,a.jsx)(e.AppMenuPane,{...n}),{what:"The app menu"}),Gr=O.part((e,n)=>(0,a.jsx)(e.Here,{...n}),{quiet:!0});function jr(){let e=re(),[n,r]=(0,y.useState)("");return(0,y.useEffect)(()=>e?.store.subscribe((t,i)=>{i.some(o=>o.author.id!==e.principal.id)&&O.load().then(o=>o.sayTheirChange(i,e,r),String)}),[e]),(0,a.jsx)("span",{role:"status",className:"graview-bar-said",children:n})}var qn="home",Yn="/",X="scene:whole";function qr(e){let{store:n,principal:r,views:t}=e,i=n.kindsKeptFrom(r),o=n.schema.kinds.filter(f=>!n.modules.disabledKinds.has(f)&&!i.has(f)),s=t?.arrangement?.(),p=t?.places()??[],d=Pn(s,n.schema,p),l=Ln(n.schema,s,[...n.modules.administered.values()].flatMap(f=>f.kinds??[])),u=(f,E)=>(!n.graph.size.nodes||n.graph.count(f)>0)&&(d?E?d.places.has(`${f}|${E}`):d.kinds.has(f):!l.has(f)),g=[{key:qn,label:"Home",path:Yn,group:"home",primary:!0}],c=p.filter(f=>o.includes(f.kind)&&f.as!==En),h=c.filter(f=>!f.hidden),v=new Set(ie(h).map(f=>ne(f,p,n.schema).toLowerCase())),b=f=>bn(f.as,kn(f,p)?De(n.schema,f.kind).slice(1):void 0),S=new Set(s?.hide??[]),L=An(o,s?.order,h);for(let{kind:f,view:E}of L){if(E){g.push({key:`place:${E.kind}:${E.as}`,label:ne(E,p,n.schema),path:b(E),group:"lists",kind:f,primary:d?d.places.has(`${f}|${E.as}`):!0});continue}let q=he(n.schema,f),A=v.has(q.toLowerCase());g.push({key:`kind:${f}`,label:A?cn(n.schema,f):q,path:De(n.schema,f),group:"lists",kind:f,primary:A||S.has(f)?!1:u(f),...S.has(f)?{hidden:!0}:{}})}for(let f of ie(c)){if(L.some(A=>A.view&&we(A.view,f)))continue;let E=b(f),q=[f.kind,...f.over??[]].some(A=>o.includes(A)&&u(A,f.as));g.some(A=>A.path===E)||g.push({key:`place:${f.kind}:${f.as}`,label:ne(f,p,n.schema),path:E,group:"pictures",kind:f.kind,primary:q,hidden:f.hidden})}return o.some(f=>Object.keys(n.schema.tryDefinition(f)?.edges??{}).length>0)&&g.push({key:"connections",label:"Connections",path:"/map",group:"pictures",primary:!1}),g}function Yr(e,n){let[r="/",t=""]=n.split("?"),i=e.find(s=>s.path===(t?`${r}?${t}`:r))??e.find(s=>s.path===r);if(i)return i.key;let o=`/${r.split("/").filter(Boolean)[0]??""}`;return e.find(s=>s.group==="lists"&&s.path===o)?.key??null}var Qn=(0,y.createContext)(null),Qr=()=>(0,y.useContext)(Qn),K=30,Un=48,de=640,Jn=900,Qe=4,qe=2;function Xn(e){let{widths:n,current:r,room:t,more:i,gap:o=Qe,primary:s,most:p=Sn}=e;if(n.length===0||!(t>0)||!(i>0)||n.some(g=>!(g>0)))return null;let d=(g,c)=>g.reduce((h,v)=>h+n[v],0)+o*Math.max(0,g.length-1)+(c?o+i:0),l=(g,c)=>r<0||!g.includes(r)||g.slice(0,c).includes(r)?g.slice(0,c):[...g.filter(h=>h!==r).slice(0,c-1),r].sort((h,v)=>h-v),u=l(n.map((g,c)=>c).filter(g=>s?.[g]!==!1||g===r),p);if(d(u,u.length<n.length)<=t)return u.length>=qe?u:null;for(let g=u.length-1;g>=qe;g--){let c=l(u,g);if(d(c,!0)<=t)return c}return null}var Ur=`
|
|
2
|
+
.graview-bar{display:block;margin:0;padding:0;container:graview-bar/inline-size;flex:0 0 auto;position:relative;background:var(--graview-bar);border-bottom:1px solid var(--graview-edge);color:var(--graview-ink);font-family:var(--graview-font-body,system-ui)}
|
|
3
|
+
.graview-bar-row{display:flex;flex-wrap:nowrap;align-items:center;gap:16px;height:${Un-1}px;margin:0;padding:0 16px}
|
|
4
|
+
.graview-bar-home,.graview-bar-place,.graview-bar-item,.graview-bar-at{display:inline-flex;align-items:center;box-sizing:border-box;min-width:0;margin:0;border:0;background:none;box-shadow:none;font:inherit;letter-spacing:normal;text-transform:none;text-decoration:none;color:var(--graview-ink);cursor:pointer;text-align:left}
|
|
5
|
+
.graview-bar-app{display:flex;align-items:center;gap:2px;flex:0 1 auto;max-width:50%}
|
|
6
|
+
.graview-bar-app::after{content:"";flex:0 100000 auto;width:2px;min-width:0}
|
|
7
|
+
.graview-bar-name{margin:0;display:flex;font-family:var(--graview-font-display,var(--graview-font-body,system-ui));font-size:.9375rem;font-weight:600;line-height:1.25}
|
|
8
|
+
.graview-bar-home{gap:8px;min-width:auto;min-height:30px;padding:0;letter-spacing:-.005em}
|
|
9
|
+
.graview-bar-app-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal}
|
|
10
|
+
.graview-bar-said{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
|
|
11
|
+
.graview-bar-menu-open{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;width:24px;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:6px;background:none;box-shadow:none;color:var(--graview-ink-muted);cursor:pointer}
|
|
12
|
+
.graview-bar-menu-open:is(:hover,[aria-expanded=true]){border-color:var(--graview-edge);color:var(--graview-ink)}
|
|
13
|
+
.graview-bar-share{gap:6px;padding:0 10px}
|
|
14
|
+
.graview-bar-share-pane{display:grid;gap:10px;width:min(300px,calc(100vw - 24px));padding:14px;border-radius:10px;border:1px solid var(--graview-edge);background:var(--graview-float);box-shadow:var(--graview-lift-high);color:var(--graview-ink);font-size:.875rem;line-height:1.45}
|
|
15
|
+
.graview-bar-share-pane[hidden]{display:none}
|
|
16
|
+
.graview-bar-share-pane p{margin:0}
|
|
17
|
+
.graview-bar-share-links{display:flex;flex-wrap:wrap;gap:4px 16px}
|
|
18
|
+
.graview-bar-share-pane a,.graview-bar-share-pane button{justify-self:start;display:inline-flex;align-items:center;min-height:28px;padding:0;border:0;background:none;box-shadow:none;font:inherit;font-weight:600;color:var(--graview-accent);text-decoration:none;cursor:pointer}
|
|
19
|
+
.graview-bar-status{gap:6px;padding:0 8px;cursor:default;font-weight:400}
|
|
20
|
+
a.graview-bar-status{cursor:pointer}
|
|
21
|
+
.graview-bar-mid{display:flex;flex:1 100 0;min-width:0}
|
|
22
|
+
.graview-bar-mid[data-place]{min-width:9em;flex-basis:auto}
|
|
23
|
+
.graview-bar-place-at{position:relative;display:inline-flex;min-width:0;max-width:100%}
|
|
24
|
+
.graview-bar-place{gap:6px;height:30px;max-width:100%;padding:0 8px;border:1px solid transparent;border-radius:8px;font-size:.875rem;font-weight:600}
|
|
25
|
+
.graview-bar-place:hover{border-color:var(--graview-edge);color:var(--graview-ink)}
|
|
26
|
+
.graview-bar-place-words{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
27
|
+
.graview-bar-mid[data-places=standing]{flex:0 0 auto}
|
|
28
|
+
.graview-bar-places{display:flex;align-items:center;gap:${Qe}px;min-width:0;margin:0;padding:0}
|
|
29
|
+
.graview-bar-at{gap:6px;flex:0 0 auto;height:30px;padding:0 8px;border-block:2px solid transparent;border-radius:0;font-size:.875rem;font-weight:500;white-space:nowrap;color:var(--graview-ink-muted)}
|
|
30
|
+
.graview-bar-at:is(:hover,[aria-current],[aria-expanded=true]){color:var(--graview-ink)}
|
|
31
|
+
.graview-bar-at[aria-current]{font-weight:600;border-bottom-color:var(--graview-accent)}
|
|
32
|
+
.graview-bar-ruler{position:absolute;left:0;top:0;display:flex;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none}
|
|
33
|
+
.graview-bar-ruler .graview-bar-at{font-weight:600}
|
|
34
|
+
.graview-bar-ruler>.graview-bar-name{flex:none;white-space:nowrap;letter-spacing:-.005em}
|
|
35
|
+
.graview-bar-list{display:grid;align-content:start;width:min(320px,calc(100vw - 24px));height:auto;max-height:min(70vh,560px);overflow:auto;margin:0;padding:6px;border-radius:10px;border:1px solid var(--graview-edge);background:var(--graview-float);box-shadow:var(--graview-lift-high);color:var(--graview-ink)}
|
|
36
|
+
.graview-bar-list[hidden]{display:none}
|
|
37
|
+
.graview-bar-list p{margin:8px 8px 2px;font-size:.6875rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--graview-ink-muted)}
|
|
38
|
+
.graview-bar-list ul,.graview-bar-list li{display:grid;margin:0;padding:0;list-style:none}
|
|
39
|
+
.graview-bar-item{align-items:flex-start;gap:10px;width:100%;padding:7px 8px;border-radius:7px;font-size:.875rem;line-height:1.3;overflow-wrap:anywhere}
|
|
40
|
+
.graview-bar-item:hover{background:color-mix(in srgb,var(--graview-ink) 7%,transparent)}
|
|
41
|
+
.graview-bar-item[aria-current]{font-weight:600;background:color-mix(in srgb,var(--graview-accent) 14%,transparent)}
|
|
42
|
+
.graview-bar-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:14px;height:1.3em;color:var(--graview-ink-muted)}
|
|
43
|
+
.graview-bar :focus-visible{outline:2px solid var(--graview-accent);outline-offset:1px}
|
|
44
|
+
.graview-bar-tools{display:contents}
|
|
45
|
+
.graview-bar-tools>*{margin-left:-8px}
|
|
46
|
+
.graview-bar-tools>:is(.graview-bar-find,.graview-bar-find-open){margin-left:auto}
|
|
47
|
+
.graview-bar-own{display:flex;align-items:center;flex:0 0 auto}
|
|
48
|
+
.graview-bar-own:empty{display:none}
|
|
49
|
+
.graview-bar-host{display:flex;align-items:center;gap:2px;flex:0 0 auto}
|
|
50
|
+
.graview-bar-host-action{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;min-width:${K}px;height:${K}px;margin:0;padding:0 10px;border-radius:8px;border:1px solid transparent;background:none;box-shadow:none;font:inherit;font-size:.875rem;font-weight:500;letter-spacing:normal;text-transform:none;white-space:nowrap;color:var(--graview-ink-muted);cursor:pointer}
|
|
51
|
+
.graview-bar-host-action:is(:hover,[aria-expanded=true]){border-color:var(--graview-edge);color:var(--graview-ink)}
|
|
52
|
+
.graview-bar-host-action:is([data-folded],[data-icon-only]){padding:0;justify-content:center}
|
|
53
|
+
.graview-bar-host-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:16px;height:16px;font-size:.9375rem;line-height:1}
|
|
54
|
+
.graview-bar-host-mark svg{width:16px;height:16px}
|
|
55
|
+
.graview-bar-list .graview-bar-host-action{width:100%;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere}
|
|
56
|
+
.graview-bar-host-action[data-icon-only]>.graview-bar-host-words{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
|
|
57
|
+
.graview-bar-find{position:relative;display:flex;min-width:7.5rem;flex:0 600 9rem;--graview-bar-find-end:3.25em}
|
|
58
|
+
.graview-bar-find-slot{display:flex;flex:1;min-width:0}
|
|
59
|
+
.graview-bar-find-keys{position:absolute;right:10px;line-height:30px;pointer-events:none;font-size:.75rem;color:var(--graview-ink-faint)}
|
|
60
|
+
.graview-bar-find:is(:focus-within,:has(input:not(:placeholder-shown))){flex-basis:16rem;--graview-bar-find-end:10px}
|
|
61
|
+
:is(:focus-within,:has(input:not(:placeholder-shown)))>.graview-bar-find-keys,.graview-bar-find-open{display:none}
|
|
62
|
+
.graview-bar-line{display:flex;flex:0 0 auto;padding:6px 8px;background:var(--graview-ground);border-bottom:1px solid var(--graview-edge);font-family:var(--graview-font-body,system-ui)}
|
|
63
|
+
.graview-bar-line .graview-bar-place{height:auto;min-height:32px}
|
|
64
|
+
.graview-bar-line .graview-bar-place-words{white-space:normal}
|
|
65
|
+
@media (pointer:coarse){.graview-bar-find-keys{display:none}}
|
|
66
|
+
@container graview-bar (max-width: ${Jn-1}px){
|
|
67
|
+
.graview-bar-find{display:none}
|
|
68
|
+
.graview-bar-find-open{display:inline-flex}
|
|
69
|
+
.graview-bar-tools>.graview-bar-find-open{margin-left:auto}
|
|
70
|
+
.graview-bar[data-finding] :is(.graview-bar-app,.graview-bar-mid,.graview-bar-find-open){display:none}
|
|
71
|
+
.graview-bar[data-finding] .graview-bar-find{display:flex;flex:1 1 auto;min-width:0;margin-left:0}
|
|
72
|
+
}
|
|
73
|
+
@container graview-bar (max-width: ${de-1}px){
|
|
74
|
+
.graview-bar-row{gap:10px;padding:0 12px}
|
|
75
|
+
.graview-bar-app{max-width:none;flex:1 1 auto;min-width:28px}
|
|
76
|
+
.graview-bar-home{min-width:28px}
|
|
77
|
+
.graview-bar-name,.graview-bar-app-name{min-width:0}
|
|
78
|
+
.graview-bar-mid{display:none}
|
|
79
|
+
.graview-bar-share{padding:0}
|
|
80
|
+
.graview-bar-share>.graview-bar-share-words{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
|
|
81
|
+
.graview-bar-status[data-icon]{padding:0}
|
|
82
|
+
.graview-bar-status[data-icon]>.graview-bar-status-words{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
|
|
83
|
+
}
|
|
84
|
+
@container graview-bar (max-width: 300px){
|
|
85
|
+
.graview-bar-row{gap:4px;padding:0 10px}
|
|
86
|
+
}`,te={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:K,height:K,padding:0,borderRadius:8,border:"1px solid transparent",background:"none",boxShadow:"none",color:"var(--graview-ink-muted)",font:"inherit",fontSize:"0.875rem",cursor:"pointer",flex:"0 0 auto"};function Jr({brand:e,name:n,heading:r=1,home:t,faces:i,places:o,current:s,reach:p,tools:d,find:l=!0,description:u,findBox:g,onFind:c,scenePlaces:h,skips:v,named:b=!0,history:S=!0,actions:L,appMenu:ue=Xr,scheme:f,share:E,status:q}){let A=(0,y.useRef)(null),dr=re()?.who.size,[ae,cr]=(0,y.useState)(null),[nn,pr]=(0,y.useState)(null),[I,ur]=(0,y.useState)(!1),[Z,gr]=(0,y.useState)(!1),[fr,rn]=(0,y.useState)(!1),[tn,mr]=(0,y.useState)(null),[yr,hr]=(0,y.useState)(!0),ge=i?i.pages.current:!h,oe=ge?{places:o,current:s,reach:p}:h,Ce=oe&&{...oe,places:vn(oe.places),here:oe.places.find(m=>m.key===oe.current)?.label},k=Ce&&Ce.places.length>0?Ce:null,Me=k?k.places.findIndex(m=>m.key===k.current):-1,an=k?k.places.map(m=>m.primary===!1?"0":"1").join(""):"",$=(0,y.useCallback)(()=>{let m=A.current;if(!m)return;let H=gt(m,Me,an);H!==void 0&&mr(H)},[Me,an]);(0,y.useLayoutEffect)(()=>{let m=A.current;if(!m)return;let H=()=>{let T=m.getBoundingClientRect().width;ur(T<de),gr(T<Jn);let Pr=m.querySelector("[data-graview-bar-host-ruler]");hr(T>=de+(Pr?.getBoundingClientRect().width??0)),m.style.setProperty("--graview-bar-width",`${Math.round(T)}px`),$()};H();let Y=typeof document>"u"?void 0:document.fonts;if(Y?.ready.then($),Y?.addEventListener?.("loadingdone",$),typeof ResizeObserver>"u")return()=>Y?.removeEventListener?.("loadingdone",$);let Q=new ResizeObserver(H);Q.observe(m);for(let T of m.querySelectorAll(".graview-bar-tools > *"))Q.observe(T);let ee=m.querySelector(".graview-bar-tools"),F=typeof MutationObserver>"u"||!ee?null:new MutationObserver(()=>{for(let T of ee.children)Q.observe(T)});return F?.observe(ee,{childList:!0}),()=>{F?.disconnect(),Q.disconnect(),Y?.removeEventListener?.("loadingdone",$)}},[$]);let Oe=(0,y.useRef)(c);Oe.current=c,(0,y.useLayoutEffect)(()=>{Oe.current?.(l&&ae?{slot:ae,compact:Z,own:nn}:null)},[l,ae,Z,nn]),(0,y.useLayoutEffect)(()=>()=>Oe.current?.(null),[]);let wr=(0,y.useCallback)(()=>{rn(!0),requestAnimationFrame(()=>ae?.querySelector("input")?.focus())},[ae]),on=(0,y.useRef)(null),fe=(0,y.useRef)(!1),Re=(0,y.useCallback)(()=>{rn(!1),fe.current&&(fe.current=!1,requestAnimationFrame(()=>on.current?.focus()))},[]),sn=(0,y.useRef)(null);(0,y.useEffect)(()=>{let m=sn.current;if(!m||!Z)return;let H=()=>!!m.querySelector("input")?.value,Y=F=>{let T=F.relatedTarget;T instanceof Node&&m.contains(T)||H()||Re()},Q=F=>{F.key==="Escape"&&(fe.current=!0)},ee=F=>{F.key==="Escape"&&queueMicrotask(()=>{!F.defaultPrevented||!H()?Re():fe.current=!1})};return m.addEventListener("focusout",Y),m.addEventListener("keydown",Q,!0),m.addEventListener("keydown",ee),()=>{m.removeEventListener("focusout",Y),m.removeEventListener("keydown",Q,!0),m.removeEventListener("keydown",ee)}},[Z,Re]);let vr=r===!1?"span":`h${r}`,br=t.href!==void 0?"a":"button",kr=m=>H=>{!m||!er(H)||(H.preventDefault(),m())},xr=!ge,ln=k&&!I&&tn!==null&&!(Me<0&&k.here)?tn.split(",").map(Number).filter(m=>m<k.places.length):null,me=k?(0,a.jsx)(pt,{places:k.places,current:k.current,here:k.here,reach:k.reach,scene:xr,stands:ln}):null,Sr=k?k.places.map(m=>m.label).join(`
|
|
87
|
+
`):"";(0,y.useLayoutEffect)($,[$,n,e,Sr,k?.current,ge,I,Z,l]);let Lr=Mn(),Fe=S&&b&&Lr!==null,dn=!!i||ue.length>0||!!f||Fe;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("header",{ref:A,className:"graview-bar","data-testid":"app-bar","data-graview-app-bar":"",...fr&&Z?{"data-finding":""}:{},children:[(0,a.jsx)("style",{children:Ur}),v,(0,a.jsxs)("div",{className:"graview-bar-row",children:[b?(0,a.jsxs)("div",{className:"graview-bar-app",children:[(0,a.jsx)(vr,{className:"graview-bar-name",children:(0,a.jsxs)(br,{...t.href!==void 0?{href:t.href,onClick:kr(t.go)}:{type:"button",onClick:t.go},"data-testid":"app-home",...t.current?{"aria-current":"page"}:{},title:u?`${n} \u2014 ${u}`:`${n} \u2014 home`,className:"graview-bar-home",children:[(0,a.jsx)(je,{brand:e,size:20}),(0,a.jsx)("span",{className:"graview-bar-app-name","data-testid":"app-name",children:n})]})}),dn?(0,a.jsx)(Gn,{name:n,faces:i,rows:ue,scheme:f,history:Fe}):null]}):dn?(0,a.jsx)(Gn,{name:n,faces:i,rows:ue,scheme:f,history:Fe}):null,(0,a.jsx)("div",{className:"graview-bar-mid",...ln?{"data-places":"standing"}:!I&&me?{"data-place":""}:{},children:I?null:me}),!I&&k&&k.places.length>1?(0,a.jsxs)("span",{className:"graview-bar-ruler","aria-hidden":"true","data-graview-bar-ruler":"",children:[k.places.map(m=>(0,a.jsx)("span",{className:"graview-bar-at",children:m.label},m.key)),(0,a.jsxs)("span",{className:"graview-bar-at",children:[Pe,(0,a.jsx)(Ue,{})]})]}):null,L&&L.length>0?(0,a.jsx)("span",{className:"graview-bar-ruler","aria-hidden":"true","data-graview-bar-host-ruler":"",children:(0,a.jsx)("span",{className:"graview-bar-host",children:L.map(m=>(0,a.jsxs)("span",{className:"graview-bar-host-action",...m.iconOnly&&m.icon?{"data-icon-only":""}:{},children:[m.icon?(0,a.jsx)(Je,{icon:m.icon}):null,(0,a.jsx)("span",{className:"graview-bar-host-words",children:m.label})]},m.label))})}):null,b?(0,a.jsx)("span",{className:"graview-bar-ruler","aria-hidden":"true",children:(0,a.jsx)("span",{className:"graview-bar-name",children:n})}):null,(0,a.jsxs)("div",{className:"graview-bar-tools",children:[l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"graview-bar-find-open",ref:on,"data-testid":"app-find-open","aria-label":"Find",title:"Find",onClick:wr,style:{...te,display:void 0},children:(0,a.jsx)(it,{})}),(0,a.jsxs)("div",{ref:sn,className:"graview-bar-find","data-testid":"app-find",children:[(0,a.jsx)("div",{ref:cr,className:"graview-bar-find-slot",children:g}),(0,a.jsx)(at,{})]})]}):null,(0,a.jsx)("div",{ref:pr,className:"graview-bar-own","data-graview-bar-own":""}),L&&L.length>0?(0,a.jsx)(dt,{actions:L,folded:!(L.length<=2&&L.every(m=>m.iconOnly&&m.icon))&&(I||!yr)}):null,q?(0,a.jsx)(et,{status:q}):null,dr?(0,a.jsx)(y.Suspense,{fallback:null,children:(0,a.jsx)(Gr,{scene:!ge,compact:I})}):null,E?(0,a.jsx)(Zr,{share:E}):null,(0,a.jsx)(jr,{}),d]})]})]}),I&&me?(0,a.jsx)("div",{className:"graview-bar-line","data-graview-place-line":"","data-testid":"app-place-line",children:me}):null]})}var Xr=[],Ye="graview:go-to-face";function Gn({name:e,faces:n,rows:r,scheme:t,history:i}){let o=J("app-menu",{align:"start"}),s=()=>O.prefetch(),p=(0,y.useRef)(null),d=(0,y.useRef)(n);return d.current=n,(0,y.useEffect)(()=>{let l=p.current;if(!l)return;let u=g=>{let c=d.current?.[g.detail];!c||c.current||(c.reach?.(),c.go())};return l.addEventListener(Ye,u),()=>l.removeEventListener(Ye,u)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"graview-bar-menu-open","data-testid":"app-menu-open",...o.trigger,ref:l=>{o.trigger.ref(l),p.current=l},onClick:o.toggle,onPointerEnter:s,onFocus:s,"aria-label":`${e} \u2014 app menu`,title:"App menu",...n?{"data-scene":n.scene.label,"data-pages":n.pages.label}:{},children:(0,a.jsx)(Ue,{})}),(0,a.jsx)("div",{...o.pane,"data-testid":"app-menu",hidden:!o.open,className:"graview-bar-list graview-app-menu",style:U,"aria-label":`${e} \u2014 app menu`,role:"group",children:o.open?(0,a.jsx)(y.Suspense,{fallback:null,children:(0,a.jsx)(Kr,{faces:n,rows:r,scheme:t,history:i,close:()=>o.setOpen(!1)})}):null})]})}function Zn({mark:e="lock"}){return e==="lock"?(0,a.jsxs)(z,{size:14,children:[(0,a.jsx)("rect",{x:"2.75",y:"6.25",width:"8.5",height:"6",rx:"1.25",fill:"none",stroke:"currentColor",strokeWidth:"1.3"}),(0,a.jsx)("path",{d:"M4.75 6.25 V4.5 a2.25 2.25 0 0 1 4.5 0 V6.25",fill:"none",stroke:"currentColor",strokeWidth:"1.3"})]}):e==="globe"?(0,a.jsxs)(z,{size:14,children:[(0,a.jsx)("circle",{cx:"7",cy:"7",r:"5.25",fill:"none",stroke:"currentColor",strokeWidth:"1.3"}),(0,a.jsx)("path",{d:"M1.75 7 H12.25 M7 1.75 C4.75 4.5 4.75 9.5 7 12.25 M7 1.75 C9.25 4.5 9.25 9.5 7 12.25",fill:"none",stroke:"currentColor",strokeWidth:"1.1"})]}):e==="people"?(0,a.jsxs)(z,{size:14,children:[(0,a.jsx)("circle",{cx:"5",cy:"5",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1.3"}),(0,a.jsx)("path",{d:"M1.5 12 a3.5 3.5 0 0 1 7 0",fill:"none",stroke:"currentColor",strokeWidth:"1.3"}),(0,a.jsx)("circle",{cx:"10",cy:"5.5",r:"1.6",fill:"none",stroke:"currentColor",strokeWidth:"1.2"}),(0,a.jsx)("path",{d:"M9.5 9 a3 3 0 0 1 3.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})]}):(0,a.jsx)(Je,{icon:e})}function Zr({share:e}){let n=J("share"),r=`graview-share-said-${(0,y.useId)().replace(/:/g,"")}`,t=e.label??"Share",i=e.link;return(0,a.jsxs)("div",{className:"graview-bar-share-at",children:[(0,a.jsxs)("button",{type:"button",className:"graview-bar-tool graview-bar-share","data-testid":"app-share-open",...n.trigger,onClick:n.toggle,"aria-describedby":r,title:e.description,children:[(0,a.jsx)(Zn,{mark:e.mark}),(0,a.jsx)("span",{className:"graview-bar-share-words",children:t})]}),(0,a.jsx)("span",{id:r,className:"graview-bar-said",children:e.description}),(0,a.jsxs)("div",{...n.pane,"data-testid":"app-share",hidden:!n.open,className:"graview-bar-share-pane",style:U,role:"group","aria-label":t,children:[(0,a.jsx)("p",{"data-testid":"app-share-said",children:e.description}),i||e.secondLink?(0,a.jsxs)("div",{className:"graview-bar-share-links",children:[i?(0,a.jsx)(jn,{link:i,testId:"app-share-link",close:()=>n.setOpen(!1)}):null,e.secondLink?(0,a.jsx)(jn,{link:e.secondLink,testId:"app-share-second-link",close:()=>n.setOpen(!1)}):null]}):null]})]})}function et({status:e}){let n=`graview-status-said-${(0,y.useId)().replace(/:/g,"")}`,r=(0,a.jsxs)(a.Fragment,{children:[e.icon?(0,a.jsx)(Zn,{mark:e.icon}):null,(0,a.jsx)("span",{className:"graview-bar-status-words",children:e.label})]}),t={className:"graview-bar-tool graview-bar-status","data-testid":"app-status",title:e.description,"aria-describedby":n,...e.icon?{"data-icon":""}:{}};return(0,a.jsxs)(a.Fragment,{children:[e.href!==void 0?(0,a.jsx)("a",{...t,href:e.href,...e.target?{target:e.target,rel:"noopener"}:{},children:r}):(0,a.jsx)("span",{...t,tabIndex:0,children:r}),(0,a.jsx)("span",{id:n,className:"graview-bar-said",children:e.description})]})}function jn({link:e,testId:n,close:r}){return e.href!==void 0?(0,a.jsx)("a",{href:e.href,"data-testid":n,...e.target?{target:e.target,rel:"noopener"}:{},onClick:()=>{e.onSelect?.(),r()},children:e.label}):(0,a.jsx)("button",{type:"button","data-testid":n,onClick:()=>{r(),e.onSelect?.()},children:e.label})}function nt(e){let n=e.querySelector(".graview-bar-row"),r=e.getBoundingClientRect();if(!n||!(r.width>0))return 0;let t=r.right-(parseFloat(getComputedStyle(n).paddingRight)||0),i=t;for(let o of n.querySelectorAll(":scope > *, .graview-bar-tools > *")){if(o.classList.contains("graview-bar-tools")||o.classList.contains("graview-bar-ruler")||o.classList.contains("graview-bar-said"))continue;let s=o.getBoundingClientRect();s.width>0&&(i=Math.max(i,s.right))}return Math.max(0,i-t)}function rt(e){let n=e.querySelector(".graview-bar-app"),r=e.querySelector(".graview-bar-ruler>.graview-bar-name");if(!n||!r)return 0;let t=s=>s?.getBoundingClientRect().width??0,i=t(n.firstElementChild)-t(e.querySelector(".graview-bar-app-name"))+t(r)+2,o=parseFloat(getComputedStyle(n).maxWidth)/100*(n.parentElement.clientWidth-2*n.offsetLeft)||1/0;return i>o+.5?null:Math.max(0,i-t(n))}var er=e=>e.button===0&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey);function tt(){let e=globalThis.navigator?.platform??"";return/Mac|iPhone|iPad|iPod/.test(e)?"\u2318K":"Ctrl K"}function at(){let e=In(re()?.aiDesk);return(0,a.jsx)("span",{className:"graview-bar-find-keys","data-testid":"app-find-keys","aria-hidden":"true",children:e?"/":tt()})}function z({size:e,box:n=e,children:r}){return(0,a.jsx)("svg",{width:e,height:e,viewBox:`0 0 ${n} ${n}`,"aria-hidden":"true",focusable:"false",style:{flex:"0 0 auto"},children:r})}function ot(){return(0,a.jsxs)(z,{size:14,children:[(0,a.jsx)("path",{d:"M7 1.5 L12.5 4.5 L7 7.5 L1.5 4.5 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M1.5 7.5 L7 10.5 L12.5 7.5",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round",strokeLinecap:"round"})]})}function Ue(){return(0,a.jsx)(z,{size:10,children:(0,a.jsx)("path",{d:"M2 3.5 L5 6.5 L8 3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function it(){return(0,a.jsxs)(z,{size:16,children:[(0,a.jsx)("circle",{cx:"7",cy:"7",r:"4.75",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M10.5 10.5 L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function st({place:e}){if(e.key===X)return(0,a.jsx)(ot,{});if(e.group==="home")return(0,a.jsx)(z,{size:13,box:14,children:(0,a.jsx)("path",{d:"M2 6.5 L7 2 L12 6.5 V12 H2 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round"})});let n=e.kind?`hsl(${Math.round(fn(e.kind))} 55% 52%`:"rgb(128 128 128";return(0,a.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",width:12,height:8,clipPath:"polygon(50% 0, 100% 50%, 50% 100%, 0 50%)",background:e.group==="lists"?`${n})`:`linear-gradient(${n}), ${n})) center / 6px 4px no-repeat, ${n} / 0.35)`}})}var lt=[{group:"home"},{group:"lists",heading:"Lists"},{group:"pictures",heading:"Pictures"}],Pe="More";function dt({actions:e,folded:n}){let r=J("host-actions",{popover:n}),t=e.map(o=>o.label).join(", "),i=o=>e.map(s=>(0,a.jsxs)("button",{type:"button",className:n?"graview-bar-host-action graview-bar-item":"graview-bar-host-action","data-testid":"host-bar-action",...!n&&s.iconOnly&&s.icon?{"data-icon-only":"",title:s.label}:{},onClick:()=>{o(),s.onSelect()},children:[s.icon?(0,a.jsx)(Je,{icon:s.icon}):null,(0,a.jsx)("span",{className:"graview-bar-host-words",children:s.label})]},s.label));return n?(0,a.jsxs)("div",{className:"graview-bar-host",children:[(0,a.jsx)("button",{type:"button",className:"graview-bar-host-action","data-testid":"host-bar-actions-open","data-folded":"",...r.trigger,onClick:r.toggle,"aria-label":`${Pe} \u2014 ${t}`,title:t,children:(0,a.jsxs)(z,{size:16,children:[(0,a.jsx)("circle",{cx:"3",cy:"8",r:"1.4",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"8",cy:"8",r:"1.4",fill:"currentColor"}),(0,a.jsx)("circle",{cx:"13",cy:"8",r:"1.4",fill:"currentColor"})]})}),(0,a.jsx)("div",{...r.pane,"data-testid":"host-bar-actions",hidden:!r.open,className:"graview-bar-list",style:U,"aria-label":"From the host",children:i(()=>r.setOpen(!1))})]}):(0,a.jsx)("div",{className:"graview-bar-host","data-testid":"host-bar-actions-standing",role:"group","aria-label":"From the host",children:i(()=>{})})}function Je({icon:e}){let n=le(_(e)?e:void 0);return n?(0,a.jsx)("span",{className:"graview-bar-host-mark","aria-hidden":"true",dangerouslySetInnerHTML:n}):(0,a.jsx)("span",{className:"graview-bar-host-mark","aria-hidden":"true",children:e})}function nr({place:e,current:n,reach:r,standing:t,done:i}){let o=e.key===n,s=r.href?.(e.path);return(0,a.jsxs)(s!==void 0?"a":"button",{className:t?"graview-bar-at":"graview-bar-item","data-testid":`app-place-${e.key}`,"data-place-path":e.path,...o?{"aria-current":"page"}:{},...s!==void 0?{href:s}:{type:"button"},onClick:d=>{i(),r.go&&(s!==void 0&&!er(d)||(d.preventDefault(),r.go(e)))},children:[t?null:(0,a.jsx)("span",{className:"graview-bar-mark",children:(0,a.jsx)(st,{place:e})}),t&&o?(0,a.jsx)("span",{"data-testid":"app-place-current",children:e.label}):(0,a.jsx)("span",{children:e.label})]})}function ct({places:e,current:n,reach:r,id:t,done:i}){return(0,a.jsx)(a.Fragment,{children:lt.map(({group:o,heading:s})=>{let p=e.filter(l=>l.group===o);if(p.length===0)return null;let d=`${t}-${o}`;return(0,a.jsxs)("div",{role:"group",...s?{"aria-labelledby":d}:{"aria-label":p[0].label},"data-place-group":o,children:[s?(0,a.jsx)("p",{id:d,children:s}):null,(0,a.jsx)("ul",{children:p.map(l=>(0,a.jsx)("li",{children:(0,a.jsx)(nr,{place:l,current:n,reach:r,standing:!1,done:i})},l.key))})]},o)})})}function pt({places:e,current:n,here:r,reach:t,scene:i,stands:o}){let s=J("places"),p=(0,y.useRef)(o);s.open||(p.current=o);let d=p.current,u=e.find(S=>S.key===n)?.label??r??"Places",g=d?e.filter((S,L)=>!d.includes(L)):e,c=ut(e,n,i),h=re(),v=h?.keptViews?.current(),b=!!(v&&(v.removed.length>0||h.views.places().some(S=>S.hidden)||v.may.lenses&&(h.views.arrangement?.()?.hide?.length??0)>0));return(0,a.jsxs)("nav",{className:d?"graview-bar-places":"graview-bar-place-at","aria-label":i?"What the scene shows":"The app\u2019s places",...d?{"data-testid":"app-places-standing"}:{},...c,children:[d?.map(S=>(0,a.jsx)(nr,{place:e[S],current:n,reach:t,standing:!0,done:()=>{}},e[S].key)),g.length>0||b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:d?"graview-bar-at":"graview-bar-place","data-testid":"app-places-open",...s.trigger,onClick:s.toggle,"aria-label":d?`${Pe} \u2014 ${g.length} more ${i?"pictures":"places"}`:`${u} \u2014 ${i?"what the scene shows":"every place"}`,title:d?g.map(S=>S.label).join(", "):u,children:[d?Pe:(0,a.jsx)("span",{className:"graview-bar-place-words","data-testid":"app-place-current",children:u}),(0,a.jsx)(Ue,{})]}),(0,a.jsxs)("div",{...s.pane,"data-testid":"app-places",hidden:!s.open,className:"graview-bar-list",style:U,children:[(0,a.jsx)(ct,{places:g,current:n,reach:t,id:s.pane.id,done:()=>s.setOpen(!1)}),b&&s.open?(0,a.jsx)(y.Suspense,{fallback:null,children:(0,a.jsx)(zr,{id:s.pane.id,scene:i,reach:t,done:()=>s.setOpen(!1)})}):null]})]}):null]})}function ut(e,n,r){let t=re()?.setMenuAt,i=o=>{let s=o.target.closest?.("[data-place-path],[data-testid=app-places-open]");if(!s||!t)return;let p={at:0};o.type==="pointerdown"?document.addEventListener("pointerup",()=>p.at||=Date.now(),{once:!0}):o.preventDefault();let d=o.nativeEvent;O.load().then(l=>l.placeGesture(d,s,e,n,r,t,p),String)};return{onContextMenu:o=>o.shiftKey||i(o),onKeyDown:o=>(o.key==="ContextMenu"||o.key==="F10"&&o.shiftKey)&&i(o),onPointerDown:o=>o.pointerType!=="mouse"&&o.isPrimary&&i(o)}}function gt(e,n,r){let t=e.querySelector("[data-graview-bar-ruler]"),i=e.querySelector(".graview-bar-mid");if(!t||!i)return null;let o=e.querySelector(".graview-bar-find");if(o?.matches(":focus-within"))return;if(e.getBoundingClientRect().width<de)return null;let s=rt(e);if(s===null)return null;let p=[...t.children].map(h=>h.getBoundingClientRect().width),d=p.pop()??0,l=i.getBoundingClientRect().left+s,u=o&&getComputedStyle(o).display!=="none"?o.getBoundingClientRect():void 0,g=(u&&u.width>0?u.right-l-(parseFloat(getComputedStyle(o).minWidth)||0)-16:i.getBoundingClientRect().width-s)-nt(e),c=[...r].map(h=>h!=="0");return Xn({widths:p,current:n,room:Math.floor(g),more:d,primary:c})?.join(",")??null}var ft=e=>`graview:lenses:${e}`,mt=(e,n)=>e?.name??n.kinds.join(",");function Xe(e){try{let n=JSON.parse(localStorage.getItem(ft(e))??"[]");return Array.isArray(n)?n.filter(r=>typeof r?.title=="string"&&typeof r.lens=="string"):[]}catch{return[]}}var G=w(R(),1);var x=w(P(),1);function yt({profileHref:e,keeping:n,hostActions:r=ht,signature:t=!1}){let{store:i,principal:o,seats:s,people:p,signIn:d}=xe(),l=J("profile"),u=l.open,[g,c]=(0,G.useState)(!1);(0,G.useEffect)(()=>bt(Ee),[]),u&&!g&&c(!0),(0,G.useEffect)(()=>{u&&Ee()},[u]);let h=o.id===void 0?void 0:i.graph.getNode(o.id),v=h===void 0?o.id===void 0?"Nobody in particular":pn(o,{graph:i.graph,schema:i.schema,seats:s,people:p}):ye(i.schema.tryDefinition(h.kind),h),b=d?"Not signed in \u2014 sign in and your settings":`${v} \u2014 you, your seat and your settings`;return(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)("button",{type:"button","data-testid":"profile-button",...l.trigger,onClick:l.toggle,onPointerEnter:Ee,onFocus:Ee,"aria-label":b,title:b,style:{...te,borderRadius:999},children:(0,x.jsx)("span",{"aria-hidden":"true","data-testid":"profile-mark",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:K-4,height:K-4,borderRadius:999,fontSize:"0.8125rem",fontWeight:600,background:"var(--graview-panel-muted)",color:"var(--graview-ink)",border:"1px solid var(--graview-edge)"},children:d?(0,x.jsxs)("svg",{viewBox:"0 0 16 16",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.4",children:[(0,x.jsx)("circle",{cx:"8",cy:"5.5",r:"2.75"}),(0,x.jsx)("path",{d:"M2.75 14c.6-2.9 2.7-4.5 5.25-4.5s4.65 1.6 5.25 4.5"})]}):kt(v)})}),(0,x.jsxs)("section",{...l.pane,"aria-label":"Profile","data-testid":"profile","data-graview-offstage":"",hidden:!u,style:{...U,width:280,maxWidth:"calc(100vw - 32px)",maxHeight:"min(62cqh, 520px)",overflowY:"auto",overflowX:"hidden",display:u?"grid":"none",gap:12,padding:12,borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-high)"},children:[g?(0,x.jsx)(G.Suspense,{fallback:null,children:(0,x.jsx)(wt,{part:"top",name:v,me:h,profileHref:e,hostActions:r,close:()=>l.setOpen(!1)})}):null,(0,x.jsxs)("div",{className:"graview-profile-keeping","data-testid":"profile-keeping",style:St,children:[(0,x.jsx)("span",{style:xt,children:"Keeping this app"}),n]}),g?(0,x.jsx)(G.Suspense,{fallback:null,children:(0,x.jsx)(vt,{part:"rest",name:v,me:h,hostActions:r,signature:t,close:()=>l.setOpen(!1)})}):null]})]})}var ht=[],Ee=()=>O.prefetch(),wt=O.part((e,n)=>(0,x.jsx)(e.ProfilePane,{...n}),{what:"The rest of your menu"}),vt=O.part((e,n)=>(0,x.jsx)(e.ProfilePane,{...n}),{quiet:!0});function bt(e){let n=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&e()},r=globalThis;if(r.requestIdleCallback){let i=r.requestIdleCallback(n,{timeout:5e3});return()=>r.cancelIdleCallback?.(i)}let t=setTimeout(n,2500);return()=>clearTimeout(t)}function kt(e){return(e.trim()[0]??"?").toUpperCase()}var xt={fontSize:"0.75rem",letterSpacing:"0.14em",textTransform:"uppercase",color:"var(--graview-ink-faint)"},St={paddingTop:10,borderTop:"1px solid var(--graview-edge)"};function Lt(e){return!(e==="hidden"||e===!1)}var ce=w(R(),1);var rr="Everything",Ne="scene:district:",Ae=e=>`scene:${e.kind}:${e.as}`;function tr(e){let{view:n}=e,r=e.places.filter(c=>!e.hidden.has(c.kind)),t=ie(r),i=(c,h)=>{if(c===X)return Ie($e(h,!0),"view",null);if(c.startsWith(Ne))return Nn(Ie($e(h,!1),"view",null),c.slice(Ne.length));let v=t.find(b=>Ae(b)===c);return v?Tn(h,v.over?.find(b=>h.focusId===se(b))??v.kind,v.as):null},o=n.within?.view,s=c=>n.focusId===se(c.kind)&&(o===void 0?r.filter(h=>h.kind===c.kind).at(-1)===c:o===c.as),p=r.find(c=>s(c)&&(o!==void 0||!n.overview)),d=p?t.find(c=>we(c,p)):void 0,l=t.filter(c=>!c.hidden||c===d),u=d||n.overview||!n.focusId?void 0:Pt(n.focusId,e);return{places:[{key:X,label:rr,path:`${ve}${ke(i(X,be))}`,group:"home"},...l.map(c=>({key:Ae(c),label:ne(c,r,e.schema),path:`${ve}${ke(i(Ae(c),be))}`,group:"pictures",kind:c.kind,hidden:c.hidden})),...u?[{...u,path:`${ve}${ke(i(u.key,be))}`}]:[]],current:d?Ae(d):u?.key??X,to:i}}function Pt(e,n){let r=Hn(e);if(r.length>0)return r.some(i=>n.hidden.has(i))?void 0:{key:`${Ne}${e}`,label:r.map(i=>he(n.schema,i)).join(" and "),group:"lists",kind:r[0],hidden:!0};let t=n.nameOf?.(e);return t?{key:`${Ne}${e}`,label:t,group:"lists",hidden:!0}:void 0}function Et(){let{store:e,views:n,hiddenKinds:r,principal:t}=xe(),{view:i,go:o}=Vn(),s=n.places(),p=(0,ce.useMemo)(()=>e.kindsKeptFrom(t),[e,t]),d=(0,ce.useMemo)(()=>g=>{let c=e.graph.getNode(g);if(!(!c||r.has(c.kind)||p.has(c.kind)))return ye(e.schema.tryDefinition(c.kind),c)},[e,r,p]),l=(0,ce.useMemo)(()=>tr({places:s,hidden:r,view:i,schema:e.schema,nameOf:d}),[s,r,i,e.schema,d]),u=(0,ce.useMemo)(()=>({go:g=>{let c=l.to(g.key,i);c&&o(c)}}),[l,i,o]);return{places:l.places,current:l.current,reach:u}}var pe=w(P(),1);function At({clean:e="All rules hold"}){return Fn().length>0?null:(0,pe.jsx)("div",{style:{position:"relative",display:"inline-flex"},children:(0,pe.jsx)("button",{type:"button","data-testid":"standing","aria-disabled":!0,"aria-label":e,title:e,style:{...te,position:"relative",cursor:"default",color:"var(--graview-ink-muted)"},children:(0,pe.jsx)(ar,{tone:"var(--graview-good)"})})})}function Nt(e,n){return e.length===0?n:un(e)}function ar({tone:e}){return(0,pe.jsx)("span",{"aria-hidden":"true",style:{width:8,height:8,borderRadius:999,flex:"0 0 auto",background:e}})}function Bt(e,n,r=[]){if(e.focusId)return e.focusId;let i=(e.selection??[]).map(Bn).find(o=>o!==null)??r.find(o=>n.includes(o))??n[0]??null;return i===null?null:se(i)}var He=w(P(),1),Be=M(C(()=>(__graviewPreload(import.meta.url,["./chunk.KMFH26SS.js","./chunk.YF5GCOSZ.js","./chunk.F2BZ4SC4.js","./chunk.WAPY4RCS.js","./chunk.JKX4J3KG.js","./chunk.JMXBMLKH.js","./chunk.PVAYYFT2.js","./chunk.LG2BQ5LB.js","./chunk.L3ST2YKI.js","./chunk.7VCYVCYM.js","./chunk.MFNWHXGL.js","./chunk.DCIYOZYP.js","./chunk.WVUJXDXZ.js","./chunk.J7GH2CGV.js","./chunk.SMF5S4DQ.js","./chunk.XP4IVKKR.js","./chunk.R5YGW5ZX.js","./chunk.QMGBAKX6.js","./chunk.PS765ODQ.js","./chunk.MIE4TJRW.js","./chunk.DEBW4FH6.js","./chunk.RD2FSSLV.js","./chunk.OWHH7JDV.js","./chunk.T3RFZ66S.js","./chunk.TDWJU6GW.js","./chunk.P3Z4ZCL3.js","./chunk.45OLF6BK.js","./chunk.T6ISUVUP.js","./chunk.GH6QX7JR.js","./chunk.J4D4BIB4.js","./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.6ESAFTWB.js"))));function Ht(){return Be.load().then(()=>{})}var Tt=[{cardinality:"one",fidelity:"full",slot:"page"},{cardinality:"one",fidelity:"summary",slot:"card"},{cardinality:"one",fidelity:"glyph",slot:"row"},{cardinality:"many",fidelity:"full"},{cardinality:"many",fidelity:"summary"},{cardinality:"many",fidelity:"glyph"}];function Ct({schema:e,specs:n,kind:r,view:t}){let i=Be.current.frameworkViews(e,n).lookup(r,{cardinality:t.cardinality,fidelity:t.fidelity});return i?(0,He.jsx)(i,{...t}):null}var Mt=Be.part((e,n)=>(0,He.jsx)(Ct,{...n}),{what:"This view"});function or(e,n,r){for(let t of n.kinds){let i=r?.[t];for(let o of Tt){let s=d=>(0,He.jsx)(Mt,{schema:n,specs:r,kind:t,view:d}),p=o.slot!==void 0&&i?.[o.slot]!==void 0;p&&(s.says=(d,l)=>Be.current?.frameworkViews(n,r).lookup(t,{cardinality:o.cardinality,fidelity:o.fidelity})?.says?.(d,l)),e.register(t,{cardinality:o.cardinality,fidelity:o.fidelity},p?s:On(s))}}return e}function Ot(e,n){return or(Rn(e),e,n)}var Ze=w(R(),1);var D=w(P(),1),ir=M(C(()=>(__graviewPreload(import.meta.url,["./chunk.L6BLZJ6K.js","./chunk.VNI6HZEF.js","./chunk.THLT6NVO.js","./chunk.HIIYDKFC.js","./chunk.GYP3EF6Z.js","./chunk.KMFH26SS.js","./chunk.YF5GCOSZ.js","./chunk.F2BZ4SC4.js","./chunk.WAPY4RCS.js","./chunk.JJSZLCNU.js","./chunk.JKX4J3KG.js","./chunk.JMXBMLKH.js","./chunk.PVAYYFT2.js","./chunk.HJCQ6I3S.js","./chunk.QNFX5VHW.js","./chunk.UXW43HNW.js","./chunk.LG2BQ5LB.js","./chunk.L3ST2YKI.js","./chunk.7VCYVCYM.js","./chunk.MFNWHXGL.js","./chunk.DCIYOZYP.js","./chunk.JP33TNCH.js","./chunk.BIDL7GQD.js","./chunk.O5P6LXHF.js","./chunk.VGQDPEB5.js","./chunk.WIVNFOQR.js","./chunk.53GQQETN.js","./chunk.Q5WEOX3Q.js","./chunk.7DCBIMOI.js","./chunk.GXK5PI7I.js","./chunk.DYPSFTRP.js","./chunk.WVUJXDXZ.js","./chunk.J7GH2CGV.js","./chunk.SMF5S4DQ.js","./chunk.XP4IVKKR.js","./chunk.R5YGW5ZX.js","./chunk.QMGBAKX6.js","./chunk.PS765ODQ.js","./chunk.MIE4TJRW.js","./chunk.DEBW4FH6.js","./chunk.RD2FSSLV.js","./chunk.OWHH7JDV.js","./chunk.T3RFZ66S.js","./chunk.TDWJU6GW.js","./chunk.P3Z4ZCL3.js","./chunk.45OLF6BK.js","./chunk.T6ISUVUP.js","./chunk.GH6QX7JR.js","./chunk.J4D4BIB4.js","./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.VQRY2NQ6.js"))));function Rt({lens:e,view:n}){let r=ir.current.declaredLensView(e);return(0,D.jsx)(r,{...n})}var Ft=ir.part((e,n)=>(0,D.jsx)(Rt,{...n}),{what:"This picture"});function Vt(e){let n=t=>(0,D.jsx)(Ze.Suspense,{fallback:null,children:(0,D.jsx)(Ft,{lens:e,view:t})});e.lens==="blocks"&&(n.flows=!0);let r=e.lens==="blocks"?e.options.blocks?.[0]:void 0;return typeof r?.headline=="string"&&(n.lede=r),e.create===!1&&(n.creates=!1),n}var sr=M(C(()=>(__graviewPreload(import.meta.url,["./chunk.KMFH26SS.js","./chunk.YF5GCOSZ.js","./chunk.F2BZ4SC4.js","./chunk.WAPY4RCS.js","./chunk.JKX4J3KG.js","./chunk.JMXBMLKH.js","./chunk.PVAYYFT2.js","./chunk.LG2BQ5LB.js","./chunk.L3ST2YKI.js","./chunk.7VCYVCYM.js","./chunk.MFNWHXGL.js","./chunk.DCIYOZYP.js","./chunk.WVUJXDXZ.js","./chunk.J7GH2CGV.js","./chunk.SMF5S4DQ.js","./chunk.XP4IVKKR.js","./chunk.R5YGW5ZX.js","./chunk.QMGBAKX6.js","./chunk.PS765ODQ.js","./chunk.MIE4TJRW.js","./chunk.DEBW4FH6.js","./chunk.RD2FSSLV.js","./chunk.OWHH7JDV.js","./chunk.T3RFZ66S.js","./chunk.TDWJU6GW.js","./chunk.P3Z4ZCL3.js","./chunk.45OLF6BK.js","./chunk.T6ISUVUP.js","./chunk.GH6QX7JR.js","./chunk.J4D4BIB4.js","./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.EZSST3IU.js"))));function Dt({blocks:e,view:n}){let r=sr.current.homeView(e);return(0,D.jsx)(r,{...n})}var It=sr.part((e,n)=>(0,D.jsx)(Dt,{...n}),{what:"The home"});function $t(e){let n=r=>(0,D.jsx)(Ze.Suspense,{fallback:null,children:(0,D.jsx)(It,{blocks:e,view:r})});return Object.defineProperty(n,Symbol.for("graview.home-blocks"),{value:!0}),n}function _t(e,n){return n.home&&n.home.length>0&&e.home?.($t(n.home)),lr(e,n),e.arrange?.(n.pages),e}function lr(e,n,r){for(let t of xn(n).drawn){if(r&&e.places().some(s=>s.title===t.title))continue;let i=Vt(t),o={title:t.title,lens:t.lens,...t.across?{across:t.across}:{},...r?{beside:r}:{},...t.hidden?{hidden:!0}:{},over:t.kinds,...r?{}:{declared:!0}};for(let s of t.kinds)e.register(s,{cardinality:"many",fidelity:"full"},i,o),e.register(s,{cardinality:"many",fidelity:"summary"},i,o)}}function Wt(e,n,r){r.length>0&&lr(e,{schema:n,lenses:r.map(({lens:t,...i})=>({...i,name:t}))},!0)}function zt(e,n,r){Wt(e,n,Xe(r))}var j=w(R(),1),Te=w(P(),1);var en=e=>`graview:first-look:${e}`;function Kt(e,n){if(e.seen!==void 0)try{return typeof e.seen=="function"?e.seen():e.seen}catch{return!0}try{return window.localStorage.getItem(en(n))!==null}catch{return!1}}function Gt(e,n){if(e.seen===void 0)try{window.localStorage.setItem(en(n),"seen")}catch{}}var jt=M(C(()=>(__graviewPreload(import.meta.url,["./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.NWJ7ELHN.js")))),qt=jt.part((e,n)=>{let r=e.FirstLookHints;return(0,Te.jsx)(r,{...n})},{quiet:!0});function Yt({firstLook:e,root:n,app:r}){let t=(0,j.useRef)(null);t.current=e===!0?{}:e||null;let[i,o]=(0,j.useState)(()=>t.current!==null&&typeof window<"u"&&!Kt(t.current,r)),s=(0,j.useCallback)(p=>{if(o(!1),p===null)return;let d=t.current??{};Gt(d,r),d.onDone?.(p)},[r]);return!i||t.current===null?null:(0,Te.jsx)(j.Suspense,{fallback:null,children:(0,Te.jsx)(qt,{root:n,steps:t.current.steps??[],onEnd:s})})}export{Qt as a,Se as b,Ut as c,Ar as d,Jt as e,In as f,Xt as g,le as h,_r as i,Wr as j,Hr as k,Tr as l,Le as m,Cr as n,Mr as o,Or as p,Fr as q,Vr as r,Dr as s,O as t,qr as u,Yr as v,Qn as w,Qr as x,K as y,te as z,Jr as A,Ye as B,yt as C,Lt as D,Et as E,ft as F,mt as G,Xe as H,At as I,Nt as J,ar as K,Bt as L,_t as M,Wt as N,zt as O,Ht as P,Ot as Q,Yt as R};
|