@directus/app 10.14.0 → 10.15.0
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/assets/{@directus_extensions-sdk.cAdqVt5w.entry.js → @directus_extensions-sdk.8fn189HP.entry.js} +1 -1
- package/dist/assets/{active-line-kVJ7hrUb.js → active-line-0YtlccSz.js} +1 -1
- package/dist/assets/{af-WnqVAGSR.js → af-d58LRja8.js} +1 -1
- package/dist/assets/{apl-LIhfcMCN.js → apl-bTsVU8gH.js} +1 -1
- package/dist/assets/{ar-DZ-137Xep6K.js → ar-DZ-f17ImPbj.js} +1 -1
- package/dist/assets/{ar-MA-mHHTyBtI.js → ar-MA-4PKEX48c.js} +1 -1
- package/dist/assets/{ar-SA-AM4qz240.js → ar-SA-x-aFmQXI.js} +1 -1
- package/dist/assets/{asciiarmor-SFCGsFqf.js → asciiarmor-NPFYqGDe.js} +1 -1
- package/dist/assets/{asn.1-v0wMS1j_.js → asn.1-gNxvfew8.js} +1 -1
- package/dist/assets/{asterisk-1wKdCPG6.js → asterisk-EOmIrZBJ.js} +1 -1
- package/dist/assets/{autorefresh-Cc9S0Uy7.js → autorefresh-k3KWHVd0.js} +1 -1
- package/dist/assets/{az-7rNUMcvW.js → az-gGV6JOSX.js} +1 -1
- package/dist/assets/{be-kQI7pNAn.js → be-U6euthPr.js} +1 -1
- package/dist/assets/{bg-26eh3D3P.js → bg-cqbAJwQh.js} +1 -1
- package/dist/assets/{bn-nCZ7goOS.js → bn-DGOWECLl.js} +1 -1
- package/dist/assets/{brainfuck-1EbPlA94.js → brainfuck-WEGGmnHy.js} +1 -1
- package/dist/assets/{ca-VulJ2xHX.js → ca-HjdqaPc8.js} +1 -1
- package/dist/assets/{clike-OuHMVAyx.js → clike-RFpZpPOm.js} +1 -1
- package/dist/assets/{clojure-miuUBawl.js → clojure-SVCb2UyD.js} +1 -1
- package/dist/assets/{cmake-wz3r7QmB.js → cmake-ixcFRkql.js} +1 -1
- package/dist/assets/{cobol-YxWkZBrJ.js → cobol-ebLtJLYl.js} +1 -1
- package/dist/assets/{coffeescript-dCaAMoYP.js → coffeescript-XNyGIotB.js} +1 -1
- package/dist/assets/{commonlisp-sj0Zmha8.js → commonlisp-VE69__dm.js} +1 -1
- package/dist/assets/{crystal-JVk6t14T.js → crystal-Xrhl18G5.js} +1 -1
- package/dist/assets/{cs-9lJNT0Zo.js → cs-kXMGYmZp.js} +1 -1
- package/dist/assets/{css-vFhd-hqJ.js → css-mvIFXXRr.js} +1 -1
- package/dist/assets/{cy-l466zIwn.js → cy-IdDyY_Kg.js} +1 -1
- package/dist/assets/{cypher-XPCz07n2.js → cypher-tGkPSDvZ.js} +1 -1
- package/dist/assets/{d--QnzuD7Y.js → d-TSkAzvlQ.js} +1 -1
- package/dist/assets/{da-OHtWRNct.js → da-nJQqTFP6.js} +1 -1
- package/dist/assets/{dart-BH-cdQgR.js → dart-6rSKvw2v.js} +1 -1
- package/dist/assets/{de-AT-GjQo9FGD.js → de-AT-DpTSU_8S.js} +1 -1
- package/dist/assets/{de-MWYdAr6j.js → de-C-_74e5Y.js} +1 -1
- package/dist/assets/{diff-nRPWbyTT.js → diff-F9VqPMp7.js} +1 -1
- package/dist/assets/{django-ammN6ZRf.js → django-ZoZhayU4.js} +1 -1
- package/dist/assets/{dockerfile-XVdpZPYJ.js → dockerfile-TPsaIerV.js} +1 -1
- package/dist/assets/{dtd-IaSR71uk.js → dtd-wCbQKUf4.js} +1 -1
- package/dist/assets/{dylan-h6inmtef.js → dylan-UkXgbY4T.js} +1 -1
- package/dist/assets/{ebnf-u9SZDagr.js → ebnf-WpHU-gez.js} +1 -1
- package/dist/assets/{ecl-mca6_LUz.js → ecl-E4x1DXus.js} +1 -1
- package/dist/assets/{eiffel-RwKbPrnl.js → eiffel-h3Ut1JxF.js} +1 -1
- package/dist/assets/{el-l6sedrcj.js → el-zNEgi7tP.js} +1 -1
- package/dist/assets/{elm-7nE_TIC8.js → elm-SHGW62JL.js} +1 -1
- package/dist/assets/{en-AU-bELnv9Z0.js → en-AU-qnoarP66.js} +1 -1
- package/dist/assets/{en-CA-DWUWcuBc.js → en-CA-ZuD0xKxC.js} +1 -1
- package/dist/assets/{en-GB-LlHW4MxN.js → en-GB-1jTO2iix.js} +1 -1
- package/dist/assets/{en-IN-S3cVVyp4.js → en-IN-qBWBXSwR.js} +1 -1
- package/dist/assets/{en-NZ-i8Soe9KF.js → en-NZ-T7LqFxO_.js} +1 -1
- package/dist/assets/{en-ZA-FHPP5QlX.js → en-ZA-EWPW0nRx.js} +1 -1
- package/dist/assets/{eo-qf8uJ9CG.js → eo-m0w4hkfe.js} +1 -1
- package/dist/assets/{erlang-ZlHZzkgS.js → erlang-RhwYkvnW.js} +1 -1
- package/dist/assets/{es-oth6udOm.js → es-NuMDXuBB.js} +1 -1
- package/dist/assets/{et-qyipGURl.js → et-0EzDj1gq.js} +1 -1
- package/dist/assets/{eu-lR1cmMYi.js → eu-56ccKCcO.js} +1 -1
- package/dist/assets/{fa-IR-cxUugeWC.js → fa-IR-8X2SDubD.js} +1 -1
- package/dist/assets/{factor-bSRW9MT6.js → factor-tvZSeoSa.js} +1 -1
- package/dist/assets/{fcl-FpshqE2h.js → fcl-lER7nO6J.js} +1 -1
- package/dist/assets/{fi-TckyfDxG.js → fi-r96rax9K.js} +1 -1
- package/dist/assets/{forth-THhXPyRi.js → forth-pDCWkfVk.js} +1 -1
- package/dist/assets/{fortran-fCvM0NxN.js → fortran-ftpa_0Y2.js} +1 -1
- package/dist/assets/{fr-CA-ISyuA-TQ.js → fr-CA-mt-rwdFJ.js} +1 -1
- package/dist/assets/{fr-CH-s6AF6W7H.js → fr-CH-Uo_y_3gt.js} +1 -1
- package/dist/assets/{fr-FS3qygJZ.js → fr-efKKC9C5.js} +1 -1
- package/dist/assets/{gas-oEhLiCQt.js → gas-cwYupxze.js} +1 -1
- package/dist/assets/{gd-sgOv1Ovc.js → gd-sMGoI3XY.js} +1 -1
- package/dist/assets/{gfm-cmj6Zfsr.js → gfm-1kyhlKar.js} +1 -1
- package/dist/assets/{gherkin-wPZGzQoC.js → gherkin-htNkSKfH.js} +1 -1
- package/dist/assets/{gl-HVT-xKQI.js → gl-YvUOo-dq.js} +1 -1
- package/dist/assets/{go-fMd543EK.js → go-6WcMivXJ.js} +1 -1
- package/dist/assets/{groovy-o9dO9qxP.js → groovy-EMrmaXGg.js} +1 -1
- package/dist/assets/{gu-wNk8w_W9.js → gu-mQ7ggRNj.js} +1 -1
- package/dist/assets/{haml-YDxGPgRZ.js → haml-3UplWKQR.js} +1 -1
- package/dist/assets/{handlebars-ndhWqs8V.js → handlebars-MrM2AENJ.js} +1 -1
- package/dist/assets/{haskell-DzVcZ4h4.js → haskell-PlBAZpXP.js} +1 -1
- package/dist/assets/{haskell-literate-ZjnvnBii.js → haskell-literate-x0eRC-7K.js} +1 -1
- package/dist/assets/{haxe-HyOIIcp4.js → haxe-FtEB1GhM.js} +1 -1
- package/dist/assets/{he-lY0PlOXW.js → he-cPNSMu09.js} +1 -1
- package/dist/assets/{hi-mNBEn8py.js → hi-6voQzAPz.js} +1 -1
- package/dist/assets/{hr-hOQGMUtY.js → hr-JHJTJVqq.js} +1 -1
- package/dist/assets/{ht-Ot6ITOxs.js → ht-TRMLMEFx.js} +1 -1
- package/dist/assets/{htmlembedded-Y6HpZbOs.js → htmlembedded-yCXa-Xhv.js} +1 -1
- package/dist/assets/{htmlmixed-U0zvuOcb.js → htmlmixed-kA4Eyuui.js} +1 -1
- package/dist/assets/{htmlmixed-JtdEEYop.js → htmlmixed-sOxT2JIy.js} +1 -1
- package/dist/assets/{http-C4UxXWkV.js → http-gTGI-a7C.js} +1 -1
- package/dist/assets/{hu-ASZVyT11.js → hu-AXH9Mv2l.js} +1 -1
- package/dist/assets/{hy-Yw8dlivU.js → hy-9EdgesUg.js} +1 -1
- package/dist/assets/{id-hx3Ma645.js → id-YCcuMgB2.js} +1 -1
- package/dist/assets/{idl-HSoI_QfC.js → idl-dR7MEARB.js} +1 -1
- package/dist/assets/{index-YPhh3He9.js → index-9vZu-REn.js} +2 -2
- package/dist/assets/{index-FGdN-wAh.js → index-UwgwKikT.js} +1 -1
- package/dist/assets/{index-Oyeqj4rS.css → index-Wl4EEzFD.css} +1 -1
- package/dist/assets/{index.Otjr3qZS.entry.js → index.hQ6KFwWk.entry.js} +247 -247
- package/dist/assets/{input-rich-text-html-B90RXbdP.js → input-rich-text-html-aivZx7Sk.js} +2 -2
- package/dist/assets/{is-UiOSpZaN.js → is-vdlWbahV.js} +1 -1
- package/dist/assets/isSameWeek-DKFJCfNJ.js +1 -0
- package/dist/assets/{it-vW4KLpYW.js → it-ZjaRe9RW.js} +1 -1
- package/dist/assets/{ja-XIvW7kdM.js → ja-fiFzZnX0.js} +1 -1
- package/dist/assets/{javascript-dung19Pe.js → javascript-2smLJood.js} +1 -1
- package/dist/assets/{javascript-hint-uxVStzq_.js → javascript-hint-mYLDBV0m.js} +1 -1
- package/dist/assets/{jinja2-TFRNYfZ9.js → jinja2-VDQ8BulQ.js} +1 -1
- package/dist/assets/{jsonlint-Cph1l3iM.js → jsonlint-TCvAalXK.js} +1 -1
- package/dist/assets/{jsx-xyOJdZnu.js → jsx-5DqBsMSH.js} +1 -1
- package/dist/assets/{julia-Trgz13BY.js → julia-Ww6xDsPu.js} +1 -1
- package/dist/assets/{ka-R03eMhR0.js → ka-2Q36H7oy.js} +1 -1
- package/dist/assets/{kk-JwMqJb0r.js → kk-SFG2ehN0.js} +1 -1
- package/dist/assets/{kn-bnZa2UG1.js → kn-nD_w2srn.js} +1 -1
- package/dist/assets/{ko-LgN5A1Re.js → ko-1Zzg0eJ9.js} +1 -1
- package/dist/assets/{lb-Be7ry_jj.js → lb-0if849-G.js} +1 -1
- package/dist/assets/{livescript-quBQc-5R.js → livescript-nKEeQuLH.js} +1 -1
- package/dist/assets/{lt-gqPewnsL.js → lt-LS2ELk4X.js} +1 -1
- package/dist/assets/{lua-rstUCURe.js → lua-irBPu-dM.js} +1 -1
- package/dist/assets/{lv-k2U2Aij7.js → lv-nBtdF-ml.js} +1 -1
- package/dist/assets/{mark-selection--mnrV4v4.js → mark-selection-WejxtcmP.js} +1 -1
- package/dist/assets/{match-x3fmPtgN.js → match-QdtSm8BB.js} +1 -1
- package/dist/assets/{match-NIEtW3sD.js → match-_G_gODsr.js} +1 -1
- package/dist/assets/{match-highlighter-xXcJospm.js → match-highlighter-x3_9DQYA.js} +1 -1
- package/dist/assets/{matchbrackets-2S3nsIXs.js → matchbrackets-BF8zSFXk.js} +1 -1
- package/dist/assets/{mathematica-CPajhM8s.js → mathematica-CdTFO7T-.js} +1 -1
- package/dist/assets/{mbox-NRK1on4a.js → mbox-eMlEfKRU.js} +1 -1
- package/dist/assets/{mirc-LGilhIvO.js → mirc-ICx3Ch8C.js} +1 -1
- package/dist/assets/{mk--1AQwUms.js → mk-zAK4xpKM.js} +1 -1
- package/dist/assets/{mllike-ll3vMIfQ.js → mllike-38PlQ6Wb.js} +1 -1
- package/dist/assets/{mn-MY0E7Ed8.js → mn-sQypF-qa.js} +1 -1
- package/dist/assets/{modelica-H-6vYf6k.js → modelica-AvZca0LF.js} +1 -1
- package/dist/assets/{ms-mWXuOM5o.js → ms-sQD9-yVC.js} +1 -1
- package/dist/assets/{mscgen-ulj0HWKW.js → mscgen-kHz6ahVw.js} +1 -1
- package/dist/assets/{mt-otMAHPxb.js → mt-UJoqWplI.js} +1 -1
- package/dist/assets/{multiplex-V6PRsnVj.js → multiplex-3BS1-MUa.js} +1 -1
- package/dist/assets/{mumps-Zs7kBkCh.js → mumps-CIUlgpeZ.js} +1 -1
- package/dist/assets/{nb-Th84O3wv.js → nb-a177PWFS.js} +1 -1
- package/dist/assets/{nginx-oCJn5ccr.js → nginx-fS78kkmT.js} +1 -1
- package/dist/assets/{nl-BE-aEcmxhRn.js → nl-BE-nnvG3hG6.js} +1 -1
- package/dist/assets/{nl-seu-og2c.js → nl-lHjg8-uw.js} +1 -1
- package/dist/assets/{nn-EqX0HQWb.js → nn-uBMD9PjY.js} +1 -1
- package/dist/assets/{nsis-0ENh-118.js → nsis-DzxEc0l0.js} +1 -1
- package/dist/assets/{ntriples-HC_AgVbq.js → ntriples-MDoVTaiG.js} +1 -1
- package/dist/assets/{octave-sj3nF8tX.js → octave-HnExfQrp.js} +1 -1
- package/dist/assets/{overlay-aSWOcMfz.js → overlay-2oHOd2PG.js} +1 -1
- package/dist/assets/{oz-L0IjOPvH.js → oz-ejFgcuDM.js} +1 -1
- package/dist/assets/{pascal-zr70V2Gv.js → pascal-VF8MIhGv.js} +1 -1
- package/dist/assets/{pegjs--CkMixhE.js → pegjs-dhS_rpgQ.js} +1 -1
- package/dist/assets/{perl-wxUuf0H3.js → perl-dpeB8W4J.js} +1 -1
- package/dist/assets/{php-gw8GBI94.js → php-Z9g8dQOK.js} +1 -1
- package/dist/assets/{pig-lx7RLbze.js → pig-DKm0vvIe.js} +1 -1
- package/dist/assets/{pl-Xt9fDwce.js → pl-bpC0df1S.js} +1 -1
- package/dist/assets/{powershell-sn41r7qs.js → powershell-Pp1V6oQr.js} +1 -1
- package/dist/assets/{properties-LqB0epYU.js → properties-guM5JfVx.js} +1 -1
- package/dist/assets/{protobuf-zvIaOo16.js → protobuf-jmo8dQpA.js} +1 -1
- package/dist/assets/{pt-9_RkOdiq.js → pt-3sFSpDyL.js} +1 -1
- package/dist/assets/{pt-BR-GmzWMyhK.js → pt-BR-oOBirE7z.js} +1 -1
- package/dist/assets/{pug-q7ZY4OH8.js → pug-J4F-Xmw0.js} +1 -1
- package/dist/assets/{puppet-A62PcLrg.js → puppet-_X52wq-F.js} +1 -1
- package/dist/assets/{python-n6q_dcZb.js → python--x3wZrmW.js} +1 -1
- package/dist/assets/{q-d6SrUYWB.js → q-GE-t1AnF.js} +1 -1
- package/dist/assets/{r-tIkixUHh.js → r-8zsodaNu.js} +1 -1
- package/dist/assets/{ro-3nDtByFz.js → ro-XFt5KikS.js} +1 -1
- package/dist/assets/{rpm-UpfyHsVW.js → rpm-ImNLHPVM.js} +1 -1
- package/dist/assets/{rst-2hoOAMUF.js → rst-EizfNyVH.js} +1 -1
- package/dist/assets/{ru-c4ReHxJo.js → ru-VjcHQbP5.js} +1 -1
- package/dist/assets/{ruby-mIVDG5U3.js → ruby-f7QLTeyQ.js} +1 -1
- package/dist/assets/{ruby-teRFd8E_.js → ruby-klEaT3uf.js} +1 -1
- package/dist/assets/{rust-t6Fl0rFl.js → rust-Od__WBHd.js} +1 -1
- package/dist/assets/{sas-Zl4GplQ9.js → sas-rQc4gziQ.js} +1 -1
- package/dist/assets/{sass-AXGYbsCB.js → sass-l_XNwg_Y.js} +1 -1
- package/dist/assets/{scheme-dXOmsRT-.js → scheme-3JGvA8f2.js} +1 -1
- package/dist/assets/{shell-U_VUv30s.js → shell-imm54Q7m.js} +1 -1
- package/dist/assets/{show-hint-92Mnfchm.js → show-hint-fmp5Qbke.js} +1 -1
- package/dist/assets/{sieve-RiPyXt50.js → sieve-gaeKpti8.js} +1 -1
- package/dist/assets/{sk-qr0YoyMY.js → sk-agAvG-rc.js} +1 -1
- package/dist/assets/{sl-Z2zjKLA8.js → sl-Rkdr5o7e.js} +1 -1
- package/dist/assets/{slim-xiqLfchv.js → slim-2OLsKn-i.js} +1 -1
- package/dist/assets/{smalltalk-Uu8iB7C8.js → smalltalk-sNsEggVn.js} +1 -1
- package/dist/assets/{smarty-MdqRN1iM.js → smarty-y2Z3v55F.js} +1 -1
- package/dist/assets/{solr-wijQs0Lq.js → solr-gxYBIu-o.js} +1 -1
- package/dist/assets/{soy-ntWbMBPs.js → soy-U83sQ5Yb.js} +1 -1
- package/dist/assets/{sparql-aSu8ftHu.js → sparql-ukXqZrba.js} +1 -1
- package/dist/assets/{spreadsheet-KRLoE1JC.js → spreadsheet-pkQ-jhvB.js} +1 -1
- package/dist/assets/{sq-TtS8NTPd.js → sq-PPfRYdH2.js} +1 -1
- package/dist/assets/{sql-KGsrcghc.js → sql-gsrkoAwx.js} +1 -1
- package/dist/assets/{sr-NsqWNW3-.js → sr--o4rVbiV.js} +1 -1
- package/dist/assets/{sr-Latn-U2P_f4Gs.js → sr-Latn-_4hFW-LH.js} +1 -1
- package/dist/assets/{stex-HztLz_Tz.js → stex-Oxov_yPO.js} +1 -1
- package/dist/assets/{stex-lTSZ7lyD.js → stex-RohRpy_s.js} +1 -1
- package/dist/assets/{stylus-LliJi8N4.js → stylus-LaW6QMP5.js} +1 -1
- package/dist/assets/{sv-btls77mI.js → sv-mz3Ch961.js} +1 -1
- package/dist/assets/{swift-SnOwtiX8.js → swift-6WzwgV4g.js} +1 -1
- package/dist/assets/{ta-OAaTdo_9.js → ta-Di44eM2-.js} +1 -1
- package/dist/assets/{tcl-pc2tAVbM.js → tcl-m720wNSP.js} +1 -1
- package/dist/assets/{te-NozYMb0O.js → te-ZJq2Tkgk.js} +1 -1
- package/dist/assets/{textile-n9fnKYgs.js → textile-BIx7_sAv.js} +1 -1
- package/dist/assets/{th-rYh1BwDX.js → th-tETHgxcj.js} +1 -1
- package/dist/assets/{tiddlywiki-QwnxDHmL.js → tiddlywiki-6cV6peIA.js} +1 -1
- package/dist/assets/{tiki-pl3oNcfM.js → tiki-kmDODIIz.js} +1 -1
- package/dist/assets/{toml-ukHsrvWJ.js → toml-FGgMls1d.js} +1 -1
- package/dist/assets/{tornado-l_p3sq1P.js → tornado-jlHd_KSD.js} +1 -1
- package/dist/assets/{tr-UXIafMCy.js → tr-wDexpYmi.js} +1 -1
- package/dist/assets/{troff-swh25D0M.js → troff-rovs5GAE.js} +1 -1
- package/dist/assets/{ttcn-cfg-U-ovKU_E.js → ttcn-cfg-Nk8ermoH.js} +1 -1
- package/dist/assets/{ttcn-r_IuIyXP.js → ttcn-cq-XBRRK.js} +1 -1
- package/dist/assets/{turtle-eXCjWynl.js → turtle-SUzr7hVA.js} +1 -1
- package/dist/assets/{twig-5FIM7O6N.js → twig-8exXU3nU.js} +1 -1
- package/dist/assets/{ug-JSZrxcjB.js → ug-UCRnidHo.js} +1 -1
- package/dist/assets/{uk-X-_Fb07Y.js → uk-xbyEH46-.js} +1 -1
- package/dist/assets/{uz-ZpZL2FSC.js → uz-skANJ6Y4.js} +1 -1
- package/dist/assets/{vb-dGUjhMmD.js → vb-EGeV25bN.js} +1 -1
- package/dist/assets/{vbscript-cCNsvvF7.js → vbscript-FkLfTTAs.js} +1 -1
- package/dist/assets/{velocity-zpKeNmIf.js → velocity-qG73VlGn.js} +1 -1
- package/dist/assets/{verilog-yXcWtpi_.js → verilog-umiTLWLN.js} +1 -1
- package/dist/assets/{vhdl-UBopxDGo.js → vhdl-W3mgHuJd.js} +1 -1
- package/dist/assets/{vi-4fKWZcgS.js → vi-dO5FS370.js} +1 -1
- package/dist/assets/{vue-sDZ8yVZz.js → vue-g0Mj278H.js} +1 -1
- package/dist/assets/{wast-UnY3ttwB.js → wast-JGPDP5zJ.js} +1 -1
- package/dist/assets/{webidl-mgdXxSOv.js → webidl-mGCHaNy_.js} +1 -1
- package/dist/assets/{xml-F1TwMhPO.js → xml-BqPC95-N.js} +1 -1
- package/dist/assets/{xquery-Ij0cShdG.js → xquery-8DmpS00S.js} +1 -1
- package/dist/assets/{yacas-H6uOMUEh.js → yacas-9JqeSWo_.js} +1 -1
- package/dist/assets/{yaml-frontmatter-1zB9VWeB.js → yaml-frontmatter-L_1vDCV0.js} +1 -1
- package/dist/assets/{yaml-aLhHk1eD.js → yaml-nobYPvfd.js} +1 -1
- package/dist/assets/{z80-EfojiBoR.js → z80-Gw2lp9dR.js} +1 -1
- package/dist/assets/{zh-CN-lmhYzsvQ.js → zh-CN-rPqOzuyy.js} +1 -1
- package/dist/assets/{zh-TW-2OeGGxuM.js → zh-TW-QZV-UUZY.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +9 -7
- package/dist/assets/isSameWeek-moASzo-T.js +0 -1
|
@@ -3,5 +3,5 @@ var al=Object.defineProperty;var cl=(e,t,r)=>t in e?al(e,t,{enumerable:!0,config
|
|
|
3
3
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[ha]=this[ha]={accessors:{}}).accessors,o=this.prototype;function i(c){const s=Or(c);n[s]||(i_(o,c),n[s]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}}_s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(_s.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});T.freezeMethods(_s);const bt=_s;function qs(e,t){const r=this||Vo,n=t||r,o=bt.from(n.headers);let i=n.data;return T.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function au(e){return!!(e&&e.__CANCEL__)}function gn(e,t,r){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,r),this.name="CanceledError"}T.inherits(gn,Y,{__CANCEL__:!0});function a_(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Y("Request failed with status code "+r.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const c_=it.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const c=[e+"="+encodeURIComponent(t)];T.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),T.isString(n)&&c.push("path="+n),T.isString(o)&&c.push("domain="+o),i===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function u_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function l_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cu(e,t){return e&&!u_(t)?l_(e,t):t}const f_=it.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let c=i;return t&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(c){const s=T.isString(c)?o(c):c;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function d_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function p_(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,c;return t=t!==void 0?t:1e3,function(h){const y=Date.now(),g=n[i];c||(c=y),r[o]=h,n[o]=y;let a=i,f=0;for(;a!==o;)f+=r[a++],a=a%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),y-c<t)return;const d=g&&y-g;return d?Math.round(f*1e3/d):void 0}}function ga(e,t){let r=0;const n=p_(50,250);return o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,s=i-r,h=n(s),y=i<=c;r=i;const g={loaded:i,total:c,progress:c?i/c:void 0,bytes:s,rate:h||void 0,estimated:h&&c&&y?(c-i)/h:void 0,event:o};g[t?"download":"upload"]=!0,e(g)}}const m_=typeof XMLHttpRequest<"u",h_=m_&&function(e){return new Promise(function(r,n){let o=e.data;const i=bt.from(e.headers).normalize();let{responseType:c,withXSRFToken:s}=e,h;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}let g;if(T.isFormData(o)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((g=i.getContentType())!==!1){const[u,...b]=g?g.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...b].join("; "))}}let a=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+b))}const f=cu(e.baseURL,e.url);a.open(e.method.toUpperCase(),nu(f,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const u=bt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),p={data:!c||c==="text"||c==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:u,config:e,request:a};a_(function(v){r(v),y()},function(v){n(v),y()},p),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(n(new Y("Request aborted",Y.ECONNABORTED,e,a)),a=null)},a.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||su;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),n(new Y(b,p.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,a)),a=null},it.hasStandardBrowserEnv&&(s&&T.isFunction(s)&&(s=s(e)),s||s!==!1&&f_(f))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&c_.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}o===void 0&&i.setContentType(null),"setRequestHeader"in a&&T.forEach(i.toJSON(),function(b,p){a.setRequestHeader(p,b)}),T.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),c&&c!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",ga(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",ga(e.onUploadProgress)),(e.cancelToken||e.signal)&&(h=u=>{a&&(n(!u||u.type?new gn(null,e,a):u),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h)));const l=d_(f);if(l&&it.protocols.indexOf(l)===-1){n(new Y("Unsupported protocol "+l+":",Y.ERR_BAD_REQUEST,e));return}a.send(o||null)})},po={http:Uv,xhr:h_};T.forEach(po,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ya=e=>`- ${e}`,g_=e=>T.isFunction(e)||e===null||e===!1,uu={getAdapter:e=>{e=T.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let c;if(n=r,!g_(r)&&(n=po[(c=String(r)).toLowerCase()],n===void 0))throw new Y(`Unknown adapter '${c}'`);if(n)break;o[c||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,h])=>`adapter ${s} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=t?i.length>1?`since :
|
|
4
4
|
`+i.map(ya).join(`
|
|
5
5
|
`):" "+ya(i[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:po};function Ws(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gn(null,e)}function ba(e){return Ws(e),e.headers=bt.from(e.headers),e.data=qs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),uu.getAdapter(e.adapter||Vo.adapter)(e).then(function(n){return Ws(e),n.data=qs.call(e,e.transformResponse,n),n.headers=bt.from(n.headers),n},function(n){return au(n)||(Ws(e),n&&n.response&&(n.response.data=qs.call(e,e.transformResponse,n.response),n.response.headers=bt.from(n.response.headers))),Promise.reject(n)})}const va=e=>e instanceof bt?e.toJSON():e;function ir(e,t){t=t||{};const r={};function n(y,g,a){return T.isPlainObject(y)&&T.isPlainObject(g)?T.merge.call({caseless:a},y,g):T.isPlainObject(g)?T.merge({},g):T.isArray(g)?g.slice():g}function o(y,g,a){if(T.isUndefined(g)){if(!T.isUndefined(y))return n(void 0,y,a)}else return n(y,g,a)}function i(y,g){if(!T.isUndefined(g))return n(void 0,g)}function c(y,g){if(T.isUndefined(g)){if(!T.isUndefined(y))return n(void 0,y)}else return n(void 0,g)}function s(y,g,a){if(a in t)return n(y,g);if(a in e)return n(void 0,y)}const h={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s,headers:(y,g)=>o(va(y),va(g),!0)};return T.forEach(Object.keys(Object.assign({},e,t)),function(g){const a=h[g]||o,f=a(e[g],t[g],g);T.isUndefined(f)&&a!==s||(r[g]=f)}),r}const lu="1.6.7",Go={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Go[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const _a={};Go.transitional=function(t,r,n){function o(i,c){return"[Axios v"+lu+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,s)=>{if(t===!1)throw new Y(o(c," has been removed"+(r?" in "+r:"")),Y.ERR_DEPRECATED);return r&&!_a[c]&&(_a[c]=!0,console.warn(o(c," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,c,s):!0}};function y_(e,t,r){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],c=t[i];if(c){const s=e[i],h=s===void 0||c(s,i,e);if(h!==!0)throw new Y("option "+i+" must be "+h,Y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}}const mo={assertOptions:y_,validators:Go},Rt=mo.validators;class rs{constructor(t){this.defaults=t,this.interceptors={request:new ma,response:new ma}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
-
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ir(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&mo.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),o!=null&&(T.isFunction(o)?r.paramsSerializer={serialize:o}:mo.assertOptions(o,{encode:Rt.function,serialize:Rt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=i&&T.merge(i.common,i[r.method]);i&&T.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),r.headers=bt.concat(c,i);const s=[];let h=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(r)===!1||(h=h&&u.synchronous,s.unshift(u.fulfilled,u.rejected))});const y=[];this.interceptors.response.forEach(function(u){y.push(u.fulfilled,u.rejected)});let g,a=0,f;if(!h){const l=[ba.bind(this),void 0];for(l.unshift.apply(l,s),l.push.apply(l,y),f=l.length,g=Promise.resolve(r);a<f;)g=g.then(l[a++],l[a++]);return g}f=s.length;let d=r;for(a=0;a<f;){const l=s[a++],u=s[a++];try{d=l(d)}catch(b){u.call(this,b);break}}try{g=ba.call(this,d)}catch(l){return Promise.reject(l)}for(a=0,f=y.length;a<f;)g=g.then(y[a++],y[a++]);return g}getUri(t){t=ir(this.defaults,t);const r=cu(t.baseURL,t.url);return nu(r,t.params,t.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(t){rs.prototype[t]=function(r,n){return this.request(ir(n||{},{method:t,url:r,data:(n||{}).data}))}});T.forEach(["post","put","patch"],function(t){function r(n){return function(i,c,s){return this.request(ir(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}rs.prototype[t]=r(),rs.prototype[t+"Form"]=r(!0)});const Dn=rs;class Jo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const c=new Promise(s=>{n.subscribe(s),i=s}).then(o);return c.cancel=function(){n.unsubscribe(i)},c},t(function(i,c,s){n.reason||(n.reason=new gn(i,c,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Jo(function(o){t=o}),cancel:t}}}const b_=Jo;function v_(e){return function(r){return e.apply(null,r)}}function __(e){return T.isObject(e)&&e.isAxiosError===!0}const ho={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ho).forEach(([e,t])=>{ho[t]=e});const w_=ho;function fu(e){const t=new Dn(e),r=zc(Dn.prototype.request,t);return T.extend(r,Dn.prototype,t,{allOwnKeys:!0}),T.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return fu(ir(e,o))},r}const de=fu(Vo);de.Axios=Dn;de.CanceledError=gn;de.CancelToken=b_;de.isCancel=au;de.VERSION=lu;de.toFormData=vs;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=v_;de.isAxiosError=__;de.mergeConfig=ir;de.AxiosHeaders=bt;de.formToJSON=e=>iu(T.isHTMLForm(e)?new FormData(e):e);de.getAdapter=uu.getAdapter;de.HttpStatusCode=w_;de.default=de;function x_(){const e=lr(Sy);if(!e)throw new Error("[useStores]: The stores could not be found.");return e}function O_(){const e=lr(ky);if(!e)throw new Error("[useApi]: The api could not be found.");return e}function y1(){const e=lr(Fy);if(!e)throw new Error("[useSdk]: The sdk could not be found.");return e}function $_(){const e=lr(Ay);if(!e)throw new Error("[useExtensions]: The extensions could not be found.");return e}function R_(e){const{useCollectionsStore:t,useFieldsStore:r}=x_(),n=t(),o=r(),i=typeof e=="string"?xe(e):e,c=ae(()=>n.collections.find(({collection:l})=>l===i.value)||null),s=ae(()=>i.value?o.getFieldsForCollectionSorted(i.value):[]),h=ae(()=>{if(!s.value)return{};const l={};for(const u of s.value)u.schema!==null&&"default_value"in u.schema&&(l[u.field]=u.schema.default_value);return l}),y=ae(()=>s.value.find(l=>{var u;return l.collection===i.value&&((u=l.schema)==null?void 0:u.is_primary_key)===!0})||null),g=ae(()=>{var l;return((l=s.value)==null?void 0:l.find(u=>{var b;return(((b=u.meta)==null?void 0:b.special)||[]).includes("user_created")}))||null}),a=ae(()=>{var l,u;return((u=(l=c.value)==null?void 0:l.meta)==null?void 0:u.sort_field)||null}),f=ae(()=>{var l,u;return((u=(l=c.value)==null?void 0:l.meta)==null?void 0:u.singleton)===!0}),d=ae(()=>!c.value||!c.value.meta?null:c.value.meta.accountability);return{info:c,fields:s,defaults:h,primaryKeyField:y,userCreatedField:g,sortField:a,isSingleton:f,accountabilityScope:d}}function b1(e,t,r){const n=xe(""),o=ae({get(){return n.value||(i.value?e.value:"")},set(c){c===null?(n.value="",r(null)):(n.value=c,r(c))}}),i=ae(()=>{if(t.value===null)return!1;const c=t.value.map(s=>s.value);return e.value!==null&&e.value.length>0&&c.includes(e.value)===!1});return{otherValue:o,usesOtherValue:i}}function v1(e,t,r){const n=xe([]);return rr(e,c=>{c!==null&&Array.isArray(c)&&t.value!==null&&c.forEach(s=>{if(t.value===null)return;t.value.map(g=>g.value).includes(s)||n.value.map(f=>f.value).includes(s)||o(s)})},{immediate:!0}),{otherValues:n,addOtherValue:o,setOtherValue:i};function o(c=""){n.value=[...n.value,{key:bf(),value:c}]}function i(c,s){var g;const h=n.value.find(a=>a.key===c),y=(e.value||[]).filter(a=>a!==(h==null?void 0:h.value));s===null?(n.value=n.value.filter(a=>a.key!==c),y.length===0?r(null):r(y)):(n.value=n.value.map(a=>(a.key===c&&(a.value=s),a)),y.length===((g=e.value)==null?void 0:g.length)?r(y):r([...y,s]))}}function _1(e){const t=xe(0),r=xe(0),n=new ResizeObserver(([o])=>{o!==void 0&&(t.value=o.contentRect.width,r.value=o.contentRect.height)});return ml(()=>{const o=hl(e)?e.value:e;er(o)||n.observe(o)}),gl(()=>{n.disconnect()}),{width:t,height:r}}function w1(e,t){return{fieldGroups:ae(()=>{const n={};for(const o in t)n[o]=[];return e.value.reduce((o,i)=>{for(const c in t)t[c](i)!==!1&&o[c].push(i);return o},n)})}}function x1(e){var y;const t=lr((e==null?void 0:e.group)||"item-group",null);if(er(t))return{active:xe(!1),toggle:()=>{},activate:()=>{},deactivate:()=>{}};const{register:r,unregister:n,toggle:o,selection:i}=t;let c=!1;((y=e==null?void 0:e.active)==null?void 0:y.value)===!0&&(c=!0),e!=null&&e.value&&i.value.includes(e.value)&&(c=!0);const s=xe(c),h={active:s,value:e==null?void 0:e.value};return r(h),(e==null?void 0:e.active)!==void 0&&e.watch===!0&&rr(e.active,()=>{e.active!==void 0&&(e.active.value===!0&&(s.value===!1&&o(h),s.value=!0),e.active.value===!1&&(s.value===!0&&o(h),s.value=!1))}),Ca(()=>n(h)),{active:s,toggle:()=>{o(h)},activate:()=>{s.value===!1&&o(h)},deactivate:()=>{s.value===!0&&o(h)}}}function O1(e={},t={},r="item-group"){const n=yl([]),o=xe([]),i=ae({get(){return!er(e.selection)&&!er(e.selection.value)?e.selection.value:o.value},set(d){er(e.onSelectionChange)||e.onSelectionChange(d),o.value=[...d]}});return bl(r,{register:c,unregister:s,toggle:h,selection:i}),rr(i,f,{immediate:!0}),ja().then(f),rr(()=>{var d;return(d=t==null?void 0:t.mandatory)==null?void 0:d.value},(d,l)=>{var u;Sr(d,l)||(!i.value||i.value.length===0&&((u=t==null?void 0:t.mandatory)==null?void 0:u.value)===!0)&&n.value[0]&&(i.value=[a(n.value[0])])}),{items:n,selection:i,internalSelection:o,getValueForItem:a,updateChildren:f};function c(d){var u;n.value=[...n.value,d];const l=a(d);i.value.length===0&&((u=t==null?void 0:t.mandatory)==null?void 0:u.value)===!0&&n.value.length===1&&(i.value=[l]),d.active.value&&i.value.includes(l)===!1&&h(d)}function s(d){n.value=n.value.filter(l=>l!==d)}function h(d){var l;((l=t==null?void 0:t.multiple)==null?void 0:l.value)===!0?g(d):y(d),er(e.onToggle)||e.onToggle(d)}function y(d){var u;const l=a(d);if(i.value[0]===l&&((u=t==null?void 0:t.mandatory)==null?void 0:u.value)!==!0){i.value=[];return}i.value[0]!==l&&(i.value=[l])}function g(d){var u,b;const l=a(d);if(i.value.includes(l)){if(((u=t==null?void 0:t.mandatory)==null?void 0:u.value)===!0&&i.value.length===1){f();return}i.value=i.value.filter(p=>p!==l);return}if((b=t==null?void 0:t.max)!=null&&b.value&&t.max.value!==-1&&i.value.length>=t.max.value){f();return}i.value=[...i.value,l]}function a(d){return d.value||n.value.findIndex(l=>d===l)}function f(){n.value.forEach(d=>{d.active.value=i.value.includes(a(d))})}}function $1(e,t){const r=O_(),{primaryKeyField:n}=R_(e),{fields:o,limit:i,sort:c,search:s,filter:h,page:y,alias:g,deep:a}=t,f=g??xe(),d=a??xe(),l=ae(()=>e.value?Wy(e.value):null),u=xe([]),b=xe(!1),p=xe(null),m=xe(null),v=xe(null),w=ae(()=>m.value===null||m.value<(te(i)??100)?1:Math.ceil(m.value/(te(i)??100))),O={items:null,total:null,filter:null};let k=null;const S=fy(_,500);return rr([e,i,c,s,h,o,y,f,d],async(E,P)=>{if(Sr(E,P))return;const[N,W,G,se,ge]=E,[J,ee,we,Pe,Ge]=P;!N||!t||(N!==J&&x(),(!Sr(ge,Ge)||!Sr(G,we)||W!==ee||se!==Pe)&&J&&(y.value=1),(N!==J||!Sr(ge,Ge)||se!==Pe)&&j(),S())},{deep:!0,immediate:!0}),{itemCount:m,totalCount:v,items:u,totalPages:w,loading:b,error:p,changeManualSort:R,getItems:_,getItemCount:j,getTotalCount:F};async function _(){var N;if(!l.value)return;let E=!1;O.items&&O.items.abort(),O.items=new AbortController,p.value=null,k&&clearTimeout(k),k=setTimeout(()=>{b.value=!0},150),te(v)===null&&F();let P=[...te(o)??[]];!((N=te(o))!=null&&N.includes("*"))&&n.value&&P.includes(n.value.field)===!1&&P.push(n.value.field),P=P.filter(W=>W.startsWith("$")===!1);try{let G=(await r.get(l.value,{params:{limit:te(i),fields:P,...f?{alias:te(f)}:{},sort:te(c),page:te(y),search:te(s),filter:te(h),deep:te(d)},signal:O.items.signal})).data.data;O.items=null,e.value==="directus_files"&&(G=G.map(se=>({...se,$thumbnail:se}))),u.value=G,y&&G.length===0&&(y==null?void 0:y.value)!==1&&(y.value=1)}catch(W){de.isCancel(W)?E=!0:p.value=W}finally{k&&!E&&(clearTimeout(k),k=null),k||(b.value=!1)}}function x(){u.value=[],v.value=null,m.value=null}async function R({item:E,to:P}){var ge;const N=(ge=n.value)==null?void 0:ge.field;if(!N)return;const W=u.value.findIndex(J=>J[N]===E),G=u.value.findIndex(J=>J[N]===P);u.value=Jy(u.value,W,G);const se=ae(()=>`/utils/sort/${e.value}`);await r.post(se.value,{item:E,to:P})}async function F(){if(l.value)try{O.total&&O.total.abort(),O.total=new AbortController;const E=n.value?{countDistinct:n.value.field}:{count:"*"},P=await r.get(l.value,{params:{aggregate:E},signal:O.total.signal}),N=n.value?Number(P.data.data[0].countDistinct[n.value.field]):Number(P.data.data[0].count);O.total=null,v.value=N}catch(E){if(!de.isCancel(E))throw E}}async function j(){if(l.value)try{O.filter&&O.filter.abort(),O.filter=new AbortController;const E=n.value?{countDistinct:n.value.field}:{count:"*"},P=await r.get(l.value,{params:{filter:te(h),search:te(s),aggregate:E},signal:O.filter.signal}),N=n.value?Number(P.data.data[0].countDistinct[n.value.field]):Number(P.data.data[0].count);O.filter=null,m.value=N}catch(E){if(!de.isCancel(E))throw E}}}var go="wrapper",du=["selection","layoutOptions","layoutQuery"];function S_(e){return du.includes(e)}function k_(e){return Ia({name:`${e.id}-${go}`,props:{collection:{type:String,required:!0},selection:{type:Array,default:()=>[]},layoutOptions:{type:Object,default:()=>({})},layoutQuery:{type:Object,default:()=>({})},layoutProps:{type:Object,default:()=>({})},filter:{type:Object,default:null},filterUser:{type:Object,default:null},filterSystem:{type:Object,default:null},search:{type:String,default:null},showSelect:{type:String,default:"multiple"},selectMode:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},resetPreset:{type:Function,default:null},clearFilters:{type:Function,default:null}},emits:du.map(t=>`update:${t}`),setup(t,{emit:r}){const n=Pa({...e.setup(t,{emit:r}),...Na(t)});for(const o in n)n[`onUpdate:${o}`]=i=>{S_(o)?r(`update:${o}`,i):Object.keys(t).includes(o)||(n[o]=i)};return{state:n}},render(t){return t.$slots.default!==void 0?t.$slots.default({layoutState:t.state}):null}})}function R1(e){const{layouts:t}=$_(),r=ae(()=>t.value.map(o=>k_(o)));return{layoutWrapper:ae(()=>{const o=r.value.find(i=>i.name===`${e.value}-${go}`);return o===void 0?r.value.find(i=>i.name===`tabular-${go}`):o})}}function S1(e){return ae(()=>e.xSmall?"x-small":e.small?"small":e.large?"large":e.xLarge?"x-large":null)}function k1(e,t,r){return ae({get(){return e[t]},set(n){r(`update:${t}`,n)}})}function F_(e,t=document.body){return getComputedStyle(t??document.body).getPropertyValue(e).trim()}const A_=(e,t)=>(e=e.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),r=>r.toLowerCase()),e.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,o)=>n+t+o.toLowerCase()));function E_(e,{separator:t="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return r?e:e.toLowerCase();const n=`$1${t}$2`,o=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?A_(o,t):o.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}function T_(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function j_(e){return e}function C_(e,t){t=t||{};const r=t.delimiter||".",n=t.maxDepth,o=t.transformKey||j_,i={};function c(s,h,y){y=y||1,Object.keys(s).forEach(function(g){const a=s[g],f=t.safe&&Array.isArray(a),d=Object.prototype.toString.call(a),l=T_(a),u=d==="[object Object]"||d==="[object Array]",b=h?h+r+o(g):o(g);if(!f&&!l&&u&&Object.keys(a).length&&(!t.maxDepth||y<n))return c(a,b,y+1);i[b]=a})}return c(e),i}const ht=Symbol.for("TypeBox.Transform"),ws=Symbol.for("TypeBox.Readonly"),Vt=Symbol.for("TypeBox.Optional"),xs=Symbol.for("TypeBox.Hint"),q=Symbol.for("TypeBox.Kind"),I_="(true|false)",Mn="(0|[1-9][0-9]*)",pu="(.*)",Qr=`^${Mn}$`,ns=`^${pu}$`;function P_(e){return Te(e)&&!dt(e)&&!$s(e)&&Symbol.asyncIterator in e}function dt(e){return Array.isArray(e)}function mu(e){return typeof e=="bigint"}function Os(e){return typeof e=="boolean"}function hu(e){return e instanceof globalThis.Date}function N_(e){return typeof e=="function"}function D_(e){return Te(e)&&!dt(e)&&!$s(e)&&Symbol.iterator in e}function M_(e){return e===null}function Tt(e){return typeof e=="number"}function Te(e){return typeof e=="object"&&e!==null}function L_(e){return e instanceof globalThis.RegExp}function ye(e){return typeof e=="string"}function U_(e){return typeof e=="symbol"}function $s(e){return e instanceof globalThis.Uint8Array}function pe(e){return e===void 0}class yn extends Error{constructor(t){super(t)}}const B_=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function gu(e){try{return new RegExp(e),!0}catch{return!1}}function Yo(e){if(!ye(e))return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}function yu(e){return Ko(e)||fe(e)}function $r(e){return pe(e)||mu(e)}function oe(e){return pe(e)||Tt(e)}function Ko(e){return pe(e)||Os(e)}function ne(e){return pe(e)||ye(e)}function H_(e){return pe(e)||ye(e)&&Yo(e)&&gu(e)}function q_(e){return pe(e)||ye(e)&&Yo(e)}function bu(e){return pe(e)||fe(e)}function W_(e){return Te(e)&&e[ws]==="Readonly"}function ut(e){return Te(e)&&e[Vt]==="Optional"}function tt(e){return K(e,"Any")&&ne(e.$id)}function ot(e){return K(e,"Array")&&e.type==="array"&&ne(e.$id)&&fe(e.items)&&oe(e.minItems)&&oe(e.maxItems)&&Ko(e.uniqueItems)&&bu(e.contains)&&oe(e.minContains)&&oe(e.maxContains)}function bn(e){return K(e,"AsyncIterator")&&e.type==="AsyncIterator"&&ne(e.$id)&&fe(e.items)}function vn(e){return K(e,"BigInt")&&e.type==="bigint"&&ne(e.$id)&&$r(e.exclusiveMaximum)&&$r(e.exclusiveMinimum)&&$r(e.maximum)&&$r(e.minimum)&&$r(e.multipleOf)}function It(e){return K(e,"Boolean")&&e.type==="boolean"&&ne(e.$id)}function dr(e){return K(e,"Constructor")&&e.type==="Constructor"&&ne(e.$id)&&dt(e.parameters)&&e.parameters.every(t=>fe(t))&&fe(e.returns)}function Rs(e){return K(e,"Date")&&e.type==="Date"&&ne(e.$id)&&oe(e.exclusiveMaximumTimestamp)&&oe(e.exclusiveMinimumTimestamp)&&oe(e.maximumTimestamp)&&oe(e.minimumTimestamp)&&oe(e.multipleOfTimestamp)}function pr(e){return K(e,"Function")&&e.type==="Function"&&ne(e.$id)&&dt(e.parameters)&&e.parameters.every(t=>fe(t))&&fe(e.returns)}function ze(e){return K(e,"Integer")&&e.type==="integer"&&ne(e.$id)&&oe(e.exclusiveMaximum)&&oe(e.exclusiveMinimum)&&oe(e.maximum)&&oe(e.minimum)&&oe(e.multipleOf)}function vu(e){return Te(e)&&Object.entries(e).every(([t,r])=>Yo(t)&&fe(r))}function $e(e){return K(e,"Intersect")&&!(ye(e.type)&&e.type!=="object")&&dt(e.allOf)&&e.allOf.every(t=>fe(t)&&!Ss(t))&&ne(e.type)&&(Ko(e.unevaluatedProperties)||bu(e.unevaluatedProperties))&&ne(e.$id)}function _n(e){return K(e,"Iterator")&&e.type==="Iterator"&&ne(e.$id)&&fe(e.items)}function K(e,t){return Te(e)&&q in e&&e[q]===t}function _u(e){return Ze(e)&&ye(e.const)}function wu(e){return Ze(e)&&Tt(e.const)}function xu(e){return Ze(e)&&Os(e.const)}function Ze(e){return K(e,"Literal")&&ne(e.$id)&&z_(e.const)}function z_(e){return Os(e)||Tt(e)||ye(e)}function Gt(e){return K(e,"MappedKey")&&dt(e.keys)&&e.keys.every(t=>Tt(t)||ye(t))}function Me(e){return K(e,"MappedResult")&&vu(e.properties)}function pt(e){return K(e,"Never")&&Te(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function ar(e){return K(e,"Not")&&fe(e.not)}function Xo(e){return K(e,"Null")&&e.type==="null"&&ne(e.$id)}function Oe(e){return K(e,"Number")&&e.type==="number"&&ne(e.$id)&&oe(e.exclusiveMaximum)&&oe(e.exclusiveMinimum)&&oe(e.maximum)&&oe(e.minimum)&&oe(e.multipleOf)}function Q(e){return K(e,"Object")&&e.type==="object"&&ne(e.$id)&&vu(e.properties)&&yu(e.additionalProperties)&&oe(e.minProperties)&&oe(e.maxProperties)}function mr(e){return K(e,"Promise")&&e.type==="Promise"&&ne(e.$id)&&fe(e.item)}function _e(e){return K(e,"Record")&&e.type==="object"&&ne(e.$id)&&yu(e.additionalProperties)&&Te(e.patternProperties)&&(t=>{const r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&gu(r[0])&&Te(t.patternProperties)&&fe(t.patternProperties[r[0]])})(e)}function Ou(e){return K(e,"Ref")&&ne(e.$id)&&ye(e.$ref)}function cr(e){return K(e,"RegExp")&&ne(e.$id)&&ye(e.source)&&ye(e.flags)&&oe(e.maxLength)&&oe(e.minLength)}function De(e){return K(e,"String")&&e.type==="string"&&ne(e.$id)&&oe(e.minLength)&&oe(e.maxLength)&&H_(e.pattern)&&q_(e.format)}function en(e){return K(e,"Symbol")&&e.type==="symbol"&&ne(e.$id)}function rt(e){return K(e,"TemplateLiteral")&&e.type==="string"&&ye(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function Z_(e){return K(e,"This")&&ne(e.$id)&&ye(e.$ref)}function Ss(e){return Te(e)&&ht in e}function xt(e){return K(e,"Tuple")&&e.type==="array"&&ne(e.$id)&&Tt(e.minItems)&&Tt(e.maxItems)&&e.minItems===e.maxItems&&(pe(e.items)&&pe(e.additionalItems)&&e.minItems===0||dt(e.items)&&e.items.every(t=>fe(t)))}function qt(e){return K(e,"Undefined")&&e.type==="undefined"&&ne(e.$id)}function ue(e){return K(e,"Union")&&ne(e.$id)&&Te(e)&&dt(e.anyOf)&&e.anyOf.every(t=>fe(t))}function wn(e){return K(e,"Uint8Array")&&e.type==="Uint8Array"&&ne(e.$id)&&oe(e.minByteLength)&&oe(e.maxByteLength)}function nt(e){return K(e,"Unknown")&&ne(e.$id)}function V_(e){return K(e,"Unsafe")}function ks(e){return K(e,"Void")&&e.type==="void"&&ne(e.$id)}function G_(e){return Te(e)&&q in e&&ye(e[q])&&!B_.includes(e[q])}function fe(e){return Te(e)&&(tt(e)||ot(e)||It(e)||vn(e)||bn(e)||dr(e)||Rs(e)||pr(e)||ze(e)||$e(e)||_n(e)||Ze(e)||Gt(e)||Me(e)||pt(e)||ar(e)||Xo(e)||Oe(e)||Q(e)||mr(e)||_e(e)||Ou(e)||cr(e)||De(e)||en(e)||rt(e)||Z_(e)||xt(e)||qt(e)||ue(e)||wn(e)||nt(e)||V_(e)||ks(e)||G_(e))}function J_(e){return e.map(t=>ss(t))}function Y_(e){return new Date(e.getTime())}function K_(e){return new Uint8Array(e)}function X_(e){return new RegExp(e.source,e.flags)}function Q_(e){const t=Object.getOwnPropertyNames(e).reduce((n,o)=>({...n,[o]:ss(e[o])}),{}),r=Object.getOwnPropertySymbols(e).reduce((n,o)=>({...n,[o]:ss(e[o])}),{});return{...t,...r}}function ss(e){return dt(e)?J_(e):hu(e)?Y_(e):$s(e)?K_(e):L_(e)?X_(e):Te(e)?Q_(e):e}function ew(e){return ss(e)}function lt(e){return e.map(t=>H(t))}function H(e,t={}){return{...ew(e),...t}}function tw(e,t){return e.includes(t)}function rw(e){return[...new Set(e)]}function nw(e,t){return e.filter(r=>t.includes(r))}function sw(e,t){return e.reduce((r,n)=>nw(r,n),t)}function ow(e){return e.length===1?e[0]:e.length>1?sw(e.slice(1),e[0]):[]}function iw(e){return e.reduce((t,r)=>[...t,...r],[])}function tn(e={}){return{...e,[q]:"Any"}}function $u(e,t={}){return{...t,[q]:"Array",type:"array",items:H(e)}}function Ru(e,t={}){return{...t,[q]:"AsyncIterator",type:"AsyncIterator",items:H(e)}}function aw(e,t){const{[t]:r,...n}=e;return n}function qe(e,t){return t.reduce((r,n)=>aw(r,n),e)}function Le(e={}){return{...e,[q]:"Never",not:{}}}function Re(e){return{[q]:"MappedResult",properties:e}}function Su(e,t,r){return{...r,[q]:"Constructor",type:"Constructor",parameters:lt(e),returns:H(t)}}function Fs(e,t,r){return{...r,[q]:"Function",type:"Function",parameters:lt(e),returns:H(t)}}function yo(e,t){return{...t,[q]:"Union",anyOf:lt(e)}}function cw(e){return e.some(t=>ut(t))}function wa(e){return e.map(t=>ut(t)?uw(t):t)}function uw(e){return qe(e,[Vt])}function lw(e,t){return cw(e)?Yt(yo(wa(e),t)):yo(wa(e),t)}function hr(e,t={}){return e.length===0?Le(t):e.length===1?H(e[0],t):lw(e,t)}function Ie(e,t={}){return e.length===0?Le(t):e.length===1?H(e[0],t):yo(e,t)}class xa extends yn{}function Qo(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function gt(e,t){return Qo(e,t,"(")}function rn(e,t){return Qo(e,t,")")}function ku(e,t){return Qo(e,t,"|")}function fw(e){if(!(gt(e,0)&&rn(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(gt(e,r)&&(t+=1),rn(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}function dw(e){return e.slice(1,e.length-1)}function pw(e){let t=0;for(let r=0;r<e.length;r++)if(gt(e,r)&&(t+=1),rn(e,r)&&(t-=1),ku(e,r)&&t===0)return!0;return!1}function mw(e){for(let t=0;t<e.length;t++)if(gt(e,t))return!0;return!1}function hw(e){let[t,r]=[0,0];const n=[];for(let i=0;i<e.length;i++)if(gt(e,i)&&(t+=1),rn(e,i)&&(t-=1),ku(e,i)&&t===0){const c=e.slice(r,i);c.length>0&&n.push(ur(c)),r=i+1}const o=e.slice(r);return o.length>0&&n.push(ur(o)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}function gw(e){function t(o,i){if(!gt(o,i))throw new xa("TemplateLiteralParser: Index must point to open parens");let c=0;for(let s=i;s<o.length;s++)if(gt(o,s)&&(c+=1),rn(o,s)&&(c-=1),c===0)return[i,s];throw new xa("TemplateLiteralParser: Unclosed group parens in expression")}function r(o,i){for(let c=i;c<o.length;c++)if(gt(o,c))return[i,c];return[i,o.length]}const n=[];for(let o=0;o<e.length;o++)if(gt(e,o)){const[i,c]=t(e,o),s=e.slice(i,c+1);n.push(ur(s)),o=c}else{const[i,c]=r(e,o),s=e.slice(i,c);s.length>0&&n.push(ur(s)),o=c-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}function ur(e){return fw(e)?ur(dw(e)):pw(e)?hw(e):mw(e)?gw(e):{type:"const",const:e}}function ei(e){return ur(e.slice(1,e.length-1))}class yw extends yn{}function bw(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function vw(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function _w(e){return e.type==="const"&&e.const===".*"}function nn(e){return bw(e)||_w(e)?!1:vw(e)?!0:e.type==="and"?e.expr.every(t=>nn(t)):e.type==="or"?e.expr.every(t=>nn(t)):e.type==="const"?!0:(()=>{throw new yw("Unknown expression type")})()}function ww(e){const t=ei(e.pattern);return nn(t)}class xw extends yn{}function*Fu(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const r of Fu(e.slice(1)))yield`${t}${r}`}function*Ow(e){return yield*Fu(e.expr.map(t=>[...As(t)]))}function*$w(e){for(const t of e.expr)yield*As(t)}function*Rw(e){return yield e.const}function*As(e){return e.type==="and"?yield*Ow(e):e.type==="or"?yield*$w(e):e.type==="const"?yield*Rw(e):(()=>{throw new xw("Unknown expression")})()}function Au(e){const t=ei(e.pattern);return nn(t)?[...As(t)]:[]}function ve(e,t={}){return{...t,[q]:"Literal",const:e,type:typeof e}}function Eu(e={}){return{...e,[q]:"Boolean",type:"boolean"}}function ti(e={}){return{...e,[q]:"BigInt",type:"bigint"}}function gr(e={}){return{...e,[q]:"Number",type:"number"}}function sn(e={}){return{...e,[q]:"String",type:"string"}}function*Sw(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield Eu():t==="number"?yield gr():t==="bigint"?yield ti():t==="string"?yield sn():yield(()=>{const r=t.split("|").map(n=>ve(n.trim()));return r.length===0?Le():r.length===1?r[0]:hr(r)})()}function*kw(e){if(e[1]!=="{"){const t=ve("$"),r=bo(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const r=Sw(e.slice(2,t)),n=bo(e.slice(t+1));return yield*[...r,...n]}yield ve(e)}function*bo(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const r=ve(e.slice(0,t)),n=kw(e.slice(t));return yield*[r,...n]}yield ve(e)}function Fw(e){return[...bo(e)]}class Aw extends yn{}function Ew(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tu(e,t){return rt(e)?e.pattern.slice(1,e.pattern.length-1):ue(e)?`(${e.anyOf.map(r=>Tu(r,t)).join("|")})`:Oe(e)?`${t}${Mn}`:ze(e)?`${t}${Mn}`:vn(e)?`${t}${Mn}`:De(e)?`${t}${pu}`:Ze(e)?`${t}${Ew(e.const.toString())}`:It(e)?`${t}${I_}`:(()=>{throw new Aw(`Unexpected Kind '${e[q]}'`)})()}function Oa(e){return`^${e.map(t=>Tu(t,"")).join("")}$`}function os(e){const r=Au(e).map(n=>ve(n));return hr(r)}function ju(e,t={}){const r=ye(e)?Oa(Fw(e)):Oa(e);return{...t,[q]:"TemplateLiteral",type:"string",pattern:r}}function Tw(e){return Au(e).map(r=>r.toString())}function jw(e){return e.reduce((t,r)=>[...t,...Pt(r)],[])}function Cw(e){return[e.toString()]}function Pt(e){return[...new Set(rt(e)?Tw(e):ue(e)?jw(e.anyOf):Ze(e)?Cw(e.const):Oe(e)?["[number]"]:ze(e)?["[number]"]:[])]}function Iw(e,t,r){return globalThis.Object.getOwnPropertyNames(t).reduce((n,o)=>({...n,[o]:ri(e,Pt(t[o]),r)}),{})}function Pw(e,t,r){return Iw(e,t.properties,r)}function Nw(e,t,r){const n=Pw(e,t,r);return Re(n)}function Cu(e,t){return e.map(r=>Iu(r,t))}function Dw(e){return e.filter(t=>!pt(t))}function Mw(e,t){return Lu(Dw(Cu(e,t)))}function Lw(e,t){return hr(Cu(e,t))}function Uw(e,t){return t in e?e[t]:t==="[number]"?hr(e):Le()}function Bw(e,t){return t==="[number]"?e:Le()}function Hw(e,t){return t in e?e[t]:Le()}function Iu(e,t){return $e(e)?Mw(e.allOf,t):ue(e)?Lw(e.anyOf,t):xt(e)?Uw(e.items??[],t):ot(e)?Bw(e.items,t):Q(e)?Hw(e.properties,t):Le()}function Pu(e,t){return t.map(r=>Iu(e,r))}function $a(e,t){return hr(Pu(e,t))}function ri(e,t,r={}){return Me(t)?H(Nw(e,t,r)):Gt(t)?H(Zw(e,t,r)):fe(t)?H($a(e,Pt(t)),r):H($a(e,t),r)}function qw(e,t,r){return{[t]:ri(e,[t],r)}}function Ww(e,t,r){return t.reduce((n,o)=>({...n,...qw(e,o,r)}),{})}function zw(e,t,r){return Ww(e,t.keys,r)}function Zw(e,t,r){const n=zw(e,t,r);return Re(n)}function Nu(e,t={}){return{...t,[q]:"Iterator",type:"Iterator",items:H(e)}}function Vw(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e),n=r.filter(s=>ut(e[s])),o=r.filter(s=>!n.includes(s)),i=fe(t.additionalProperties)?{additionalProperties:H(t.additionalProperties)}:{},c=r.reduce((s,h)=>({...s,[h]:H(e[h])}),{});return o.length>0?{...t,...i,[q]:"Object",type:"object",properties:c,required:o}:{...t,...i,[q]:"Object",type:"object",properties:c}}const je=Vw;function Du(e,t={}){return{...t,[q]:"Promise",type:"Promise",item:H(e)}}function Gw(e){return qe(H(e),[ws])}function Jw(e){return{...H(e),[ws]:"Readonly"}}function Yw(e,t){return t===!1?Gw(e):Jw(e)}function Jt(e,t){const r=t??!0;return Me(e)?Qw(e,r):Yw(e,r)}function Kw(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:Jt(e[n],t)}),{})}function Xw(e,t){return Kw(e.properties,t)}function Qw(e,t){const r=Xw(e,t);return Re(r)}function xn(e,t={}){const[r,n,o]=[!1,e.length,e.length];return e.length>0?{...t,[q]:"Tuple",type:"array",items:lt(e),additionalItems:r,minItems:n,maxItems:o}:{...t,[q]:"Tuple",type:"array",minItems:n,maxItems:o}}function Mu(e,t){return e in t?Ue(e,t[e]):Re(t)}function e0(e){return{[e]:ve(e)}}function t0(e){return e.reduce((t,r)=>({...t,[r]:ve(r)}),{})}function r0(e,t){return tw(t,e)?e0(e):t0(t)}function n0(e,t){const r=r0(e,t);return Mu(e,r)}function Rr(e,t){return t.map(r=>Ue(e,r))}function s0(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:Ue(e,t[n])}),{})}function Ue(e,t){return ut(t)?Yt(Ue(e,qe(t,[Vt]))):W_(t)?Jt(Ue(e,qe(t,[ws]))):Me(t)?Mu(e,t.properties):Gt(t)?n0(e,t.keys):dr(t)?Su(Rr(e,t.parameters),Ue(e,t.returns)):pr(t)?Fs(Rr(e,t.parameters),Ue(e,t.returns)):bn(t)?Ru(Ue(e,t.items)):_n(t)?Nu(Ue(e,t.items)):$e(t)?Kt(Rr(e,t.allOf)):ue(t)?Ie(Rr(e,t.anyOf)):xt(t)?xn(Rr(e,t.items??[])):Q(t)?je(s0(e,t.properties)):ot(t)?$u(Ue(e,t.items)):mr(t)?Du(Ue(e,t.item)):t}function o0(e,t,r={}){return e.reduce((n,o)=>({...n,[o]:Ue(o,t)}),{})}function i0(e,t,r={}){const n=fe(e)?Pt(e):e,o=t({[q]:"MappedKey",keys:n}),i=o0(n,o);return H(je(i),r)}function a0(e){return qe(H(e),[Vt])}function c0(e){return{...H(e),[Vt]:"Optional"}}function u0(e,t){return t===!1?a0(e):c0(e)}function Yt(e,t){const r=t??!0;return Me(e)?d0(e,r):u0(e,r)}function l0(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:Yt(e[n],t)}),{})}function f0(e,t){return l0(e.properties,t)}function d0(e,t){const r=f0(e,t);return Re(r)}function vo(e,t){const r=e.every(o=>Q(o)),n=fe(t.unevaluatedProperties)?{unevaluatedProperties:H(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===!1||fe(t.unevaluatedProperties)||r?{...t,...n,[q]:"Intersect",type:"object",allOf:lt(e)}:{...t,...n,[q]:"Intersect",allOf:lt(e)}}function p0(e){return e.every(t=>ut(t))}function m0(e){return qe(e,[Vt])}function Ra(e){return e.map(t=>ut(t)?m0(t):t)}function h0(e,t){return p0(e)?Yt(vo(Ra(e),t)):vo(Ra(e),t)}function Lu(e,t={}){if(e.length===0)return Le(t);if(e.length===1)return H(e[0],t);if(e.some(r=>Ss(r)))throw new Error("Cannot intersect transform types");return h0(e,t)}function Kt(e,t={}){if(e.length===0)return Le(t);if(e.length===1)return H(e[0],t);if(e.some(r=>Ss(r)))throw new Error("Cannot intersect transform types");return vo(e,t)}function Uu(e){return e.map(t=>ni(t))}function g0(e){return Kt(Uu(e))}function y0(e){return Ie(Uu(e))}function b0(e){return ni(e)}function ni(e){return $e(e)?g0(e.allOf):ue(e)?y0(e.anyOf):mr(e)?b0(e.item):e}function v0(e,t={}){return H(ni(e),t)}function Bu(e){return e.reduce((t,r)=>[...t,si(r)],[])}function _0(e){const t=Bu(e);return iw(t)}function w0(e){const t=Bu(e);return ow(t)}function x0(e){return e.map((t,r)=>r.toString())}function O0(e){return["[number]"]}function $0(e){return globalThis.Object.getOwnPropertyNames(e)}function R0(e){return[]}function si(e){return $e(e)?_0(e.allOf):ue(e)?w0(e.anyOf):xt(e)?x0(e.items??[]):ot(e)?O0(e.items):Q(e)?$0(e.properties):_e(e)?R0(e.patternProperties):[]}function S0(e){return e.map(t=>t==="[number]"?gr():ve(t))}function Hu(e,t={}){if(Me(e))return A0(e,t);{const r=si(e),n=S0(r),o=hr(n);return H(o,t)}}function k0(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:Hu(e[n],t)}),{})}function F0(e,t){return k0(e.properties,t)}function A0(e,t){const r=F0(e,t);return Re(r)}function E0(e){return e.reduce((t,r)=>rw([...t,...si(r)]),[])}function T0(e){return e.filter(t=>!pt(t))}function j0(e,t){return e.reduce((r,n)=>T0([...r,...Pu(n,[t])]),[])}function C0(e,t){return t.reduce((r,n)=>({...r,[n]:Lu(j0(e,n))}),{})}function I0(e,t={}){const r=E0(e),n=C0(e,r);return je(n,t)}function qu(e={}){return{...e,[q]:"Date",type:"Date"}}function Wu(e={}){return{...e,[q]:"Null",type:"null"}}function zu(e){return{...e,[q]:"Symbol",type:"symbol"}}function Zu(e={}){return{...e,[q]:"Undefined",type:"undefined"}}function Vu(e={}){return{...e,[q]:"Uint8Array",type:"Uint8Array"}}function oi(e={}){return{...e,[q]:"Unknown"}}function P0(e){return e.map(t=>ii(t,!1))}function N0(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:Jt(ii(e[r],!1))}),{})}function An(e,t){return t===!0?e:Jt(e)}function ii(e,t){return P_(e)||D_(e)?An(tn(),t):dt(e)?Jt(xn(P0(e))):$s(e)?Vu():hu(e)?qu():Te(e)?An(je(N0(e)),t):N_(e)?An(Fs([],oi()),t):pe(e)?Zu():M_(e)?Wu():U_(e)?zu():mu(e)?ti():Tt(e)||Os(e)||ye(e)?ve(e):je({})}function D0(e,t={}){return H(ii(e,!0),t)}function M0(e,t={}){return xn(lt(e.parameters),{...t})}function On(e,t){return e.map(r=>mt(r,t))}function L0(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:mt(e[n],t)}),{})}function U0(e,t){return e.parameters=On(e.parameters,t),e.returns=mt(e.returns,t),e}function B0(e,t){return e.parameters=On(e.parameters,t),e.returns=mt(e.returns,t),e}function H0(e,t){return e.allOf=On(e.allOf,t),e}function q0(e,t){return e.anyOf=On(e.anyOf,t),e}function W0(e,t){return pe(e.items)||(e.items=On(e.items,t)),e}function z0(e,t){return e.items=mt(e.items,t),e}function Z0(e,t){return e.properties=L0(e.properties,t),e}function V0(e,t){return e.item=mt(e.item,t),e}function G0(e,t){return e.items=mt(e.items,t),e}function J0(e,t){return e.items=mt(e.items,t),e}function Y0(e,t){const r=t.find(o=>o.$id===e.$ref);if(r===void 0)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=qe(r,["$id"]);return mt(n,t)}function K0(e,t){return dr(e)?U0(e,t):pr(e)?B0(e,t):$e(e)?H0(e,t):ue(e)?q0(e,t):xt(e)?W0(e,t):ot(e)?z0(e,t):Q(e)?Z0(e,t):mr(e)?V0(e,t):bn(e)?G0(e,t):_n(e)?J0(e,t):Ou(e)?Y0(e,t):e}function mt(e,t){return K0(H(e),lt(t))}function X0(e,t={}){if(pe(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter(i=>isNaN(i)).map(i=>e[i]),o=[...new Set(r)].map(i=>ve(i));return Ie(o,{...t,[xs]:"Enum"})}class Q0 extends yn{}var A;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(A||(A={}));function We(e){return e===A.False?e:A.True}function yr(e){throw new Q0(e)}function me(e){return pt(e)||$e(e)||ue(e)||nt(e)||tt(e)}function he(e,t){return pt(t)?Yu():$e(t)?Es(e,t):ue(t)?ci(e,t):nt(t)?el():tt(t)?ai():yr("StructuralRight")}function ai(e,t){return A.True}function ex(e,t){return $e(t)?Es(e,t):ue(t)&&t.anyOf.some(r=>tt(r)||nt(r))?A.True:ue(t)?A.Union:nt(t)||tt(t)?A.True:A.Union}function tx(e,t){return nt(e)?A.False:tt(e)?A.Union:pt(e)?A.True:A.False}function rx(e,t){return Q(t)&&Ts(t)?A.True:me(t)?he(e,t):ot(t)?We(re(e.items,t.items)):A.False}function nx(e,t){return me(t)?he(e,t):bn(t)?We(re(e.items,t.items)):A.False}function sx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):vn(t)?A.True:A.False}function Gu(e,t){return xu(e)||It(e)?A.True:A.False}function ox(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):It(t)?A.True:A.False}function ix(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):dr(t)?e.parameters.length>t.parameters.length?A.False:e.parameters.every((r,n)=>We(re(t.parameters[n],r))===A.True)?We(re(e.returns,t.returns)):A.False:A.False}function ax(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):Rs(t)?A.True:A.False}function cx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):pr(t)?e.parameters.length>t.parameters.length?A.False:e.parameters.every((r,n)=>We(re(t.parameters[n],r))===A.True)?We(re(e.returns,t.returns)):A.False:A.False}function Ju(e,t){return Ze(e)&&Tt(e.const)||Oe(e)||ze(e)?A.True:A.False}function ux(e,t){return ze(t)||Oe(t)?A.True:me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):A.False}function Es(e,t){return t.allOf.every(r=>re(e,r)===A.True)?A.True:A.False}function lx(e,t){return e.allOf.some(r=>re(r,t)===A.True)?A.True:A.False}function fx(e,t){return me(t)?he(e,t):_n(t)?We(re(e.items,t.items)):A.False}function dx(e,t){return Ze(t)&&t.const===e.const?A.True:me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):De(t)?Qu(e):Oe(t)?Ku(e):ze(t)?Ju(e):It(t)?Gu(e):A.False}function Yu(e,t){return A.False}function px(e,t){return A.True}function Sa(e){let[t,r]=[e,0];for(;ar(t);)t=t.not,r+=1;return r%2===0?t:oi()}function mx(e,t){return ar(e)?re(Sa(e),t):ar(t)?re(e,Sa(t)):yr("Invalid fallthrough for Not")}function hx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):Xo(t)?A.True:A.False}function Ku(e,t){return wu(e)||Oe(e)||ze(e)?A.True:A.False}function gx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):ze(t)||Oe(t)?A.True:A.False}function Ce(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function ka(e){return Ts(e)}function Fa(e){return Ce(e,0)||Ce(e,1)&&"description"in e.properties&&ue(e.properties.description)&&e.properties.description.anyOf.length===2&&(De(e.properties.description.anyOf[0])&&qt(e.properties.description.anyOf[1])||De(e.properties.description.anyOf[1])&&qt(e.properties.description.anyOf[0]))}function zs(e){return Ce(e,0)}function Aa(e){return Ce(e,0)}function yx(e){return Ce(e,0)}function bx(e){return Ce(e,0)}function vx(e){return Ts(e)}function _x(e){const t=gr();return Ce(e,0)||Ce(e,1)&&"length"in e.properties&&We(re(e.properties.length,t))===A.True}function wx(e){return Ce(e,0)}function Ts(e){const t=gr();return Ce(e,0)||Ce(e,1)&&"length"in e.properties&&We(re(e.properties.length,t))===A.True}function xx(e){const t=Fs([tn()],tn());return Ce(e,0)||Ce(e,1)&&"then"in e.properties&&We(re(e.properties.then,t))===A.True}function Xu(e,t){return re(e,t)===A.False||ut(e)&&!ut(t)?A.False:A.True}function ke(e,t){return nt(e)?A.False:tt(e)?A.Union:pt(e)||_u(e)&&ka(t)||wu(e)&&zs(t)||xu(e)&&Aa(t)||en(e)&&Fa(t)||vn(e)&&yx(t)||De(e)&&ka(t)||en(e)&&Fa(t)||Oe(e)&&zs(t)||ze(e)&&zs(t)||It(e)&&Aa(t)||wn(e)&&vx(t)||Rs(e)&&bx(t)||dr(e)&&wx(t)||pr(e)&&_x(t)?A.True:_e(e)&&De(_o(e))?t[xs]==="Record"?A.True:A.False:_e(e)&&Oe(_o(e))?Ce(t,0)?A.True:A.False:A.False}function Ox(e,t){return me(t)?he(e,t):_e(t)?Ve(e,t):Q(t)?(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!ut(t.properties[r]))return A.False;if(ut(t.properties[r]))return A.True;if(Xu(e.properties[r],t.properties[r])===A.False)return A.False}return A.True})():A.False}function $x(e,t){return me(t)?he(e,t):Q(t)&&xx(t)?A.True:mr(t)?We(re(e.item,t.item)):A.False}function _o(e){return Qr in e.patternProperties?gr():ns in e.patternProperties?sn():yr("Unknown record key pattern")}function wo(e){return Qr in e.patternProperties?e.patternProperties[Qr]:ns in e.patternProperties?e.patternProperties[ns]:yr("Unable to get record value schema")}function Ve(e,t){const[r,n]=[_o(t),wo(t)];return _u(e)&&Oe(r)&&We(re(e,n))===A.True?A.True:wn(e)&&Oe(r)||De(e)&&Oe(r)||ot(e)&&Oe(r)?re(e,n):Q(e)?(()=>{for(const o of Object.getOwnPropertyNames(e.properties))if(Xu(n,e.properties[o])===A.False)return A.False;return A.True})():A.False}function Rx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?re(wo(e),wo(t)):A.False}function Sx(e,t){const r=cr(e)?sn():e,n=cr(t)?sn():t;return re(r,n)}function Qu(e,t){return Ze(e)&&ye(e.const)||De(e)?A.True:A.False}function kx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):De(t)?A.True:A.False}function Fx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):en(t)?A.True:A.False}function Ax(e,t){return rt(e)?re(os(e),t):rt(t)?re(e,os(t)):yr("Invalid fallthrough for TemplateLiteral")}function Ex(e,t){return ot(t)&&e.items!==void 0&&e.items.every(r=>re(r,t.items)===A.True)}function Tx(e,t){return pt(e)?A.True:nt(e)?A.False:tt(e)?A.Union:A.False}function jx(e,t){return me(t)?he(e,t):Q(t)&&Ts(t)||ot(t)&&Ex(e,t)?A.True:xt(t)?pe(e.items)&&!pe(t.items)||!pe(e.items)&&pe(t.items)?A.False:pe(e.items)&&!pe(t.items)||e.items.every((r,n)=>re(r,t.items[n])===A.True)?A.True:A.False:A.False}function Cx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):wn(t)?A.True:A.False}function Ix(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):ks(t)?Dx(e):qt(t)?A.True:A.False}function ci(e,t){return t.anyOf.some(r=>re(e,r)===A.True)?A.True:A.False}function Px(e,t){return e.anyOf.every(r=>re(r,t)===A.True)?A.True:A.False}function el(e,t){return A.True}function Nx(e,t){return pt(t)?Yu():$e(t)?Es(e,t):ue(t)?ci(e,t):tt(t)?ai():De(t)?Qu(e):Oe(t)?Ku(e):ze(t)?Ju(e):It(t)?Gu(e):ot(t)?tx(e):xt(t)?Tx(e):Q(t)?ke(e,t):nt(t)?A.True:A.False}function Dx(e,t){return qt(e)||qt(e)?A.True:A.False}function Mx(e,t){return $e(t)?Es(e,t):ue(t)?ci(e,t):nt(t)?el():tt(t)?ai():Q(t)?ke(e,t):ks(t)?A.True:A.False}function re(e,t){return rt(e)||rt(t)?Ax(e,t):cr(e)||cr(t)?Sx(e,t):ar(e)||ar(t)?mx(e,t):tt(e)?ex(e,t):ot(e)?rx(e,t):vn(e)?sx(e,t):It(e)?ox(e,t):bn(e)?nx(e,t):dr(e)?ix(e,t):Rs(e)?ax(e,t):pr(e)?cx(e,t):ze(e)?ux(e,t):$e(e)?lx(e,t):_n(e)?fx(e,t):Ze(e)?dx(e,t):pt(e)?px():Xo(e)?hx(e,t):Oe(e)?gx(e,t):Q(e)?Ox(e,t):_e(e)?Rx(e,t):De(e)?kx(e,t):en(e)?Fx(e,t):xt(e)?jx(e,t):mr(e)?$x(e,t):wn(e)?Cx(e,t):qt(e)?Ix(e,t):ue(e)?Px(e,t):nt(e)?Nx(e,t):ks(e)?Mx(e,t):yr(`Unknown left type operand '${e[q]}'`)}function $n(e,t){return re(e,t)}function Lx(e,t,r,n,o){return globalThis.Object.getOwnPropertyNames(e).reduce((i,c)=>({...i,[c]:ui(e[c],t,r,n,o)}),{})}function Ux(e,t,r,n,o){return Lx(e.properties,t,r,n,o)}function Bx(e,t,r,n,o){const i=Ux(e,t,r,n,o);return Re(i)}function Hx(e,t,r,n){const o=$n(e,t);return o===A.Union?Ie([r,n]):o===A.True?r:n}function ui(e,t,r,n,o={}){return Me(e)?Bx(e,t,r,n,o):Gt(e)?H(Zx(e,t,r,n,o)):H(Hx(e,t,r,n),o)}function qx(e,t,r,n,o){return{[e]:ui(ve(e),t,r,n,o)}}function Wx(e,t,r,n,o){return e.reduce((i,c)=>({...i,...qx(c,t,r,n,o)}),{})}function zx(e,t,r,n,o){return Wx(e.keys,t,r,n,o)}function Zx(e,t,r,n,o){const i=zx(e,t,r,n,o);return Re(i)}function Vx(e,t){return li(os(e),t)}function Gx(e,t){const r=e.filter(n=>$n(n,t)===A.False);return r.length===1?r[0]:Ie(r)}function li(e,t,r={}){return rt(e)?H(Vx(e,t),r):Me(e)?H(Kx(e,t),r):H(ue(e)?Gx(e.anyOf,t):$n(e,t)!==A.False?Le():e,r)}function Jx(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:li(e[n],t)}),{})}function Yx(e,t){return Jx(e.properties,t)}function Kx(e,t){const r=Yx(e,t);return Re(r)}function Xx(e,t){return fi(os(e),t)}function Qx(e,t){const r=e.filter(n=>$n(n,t)!==A.False);return r.length===1?r[0]:Ie(r)}function fi(e,t,r={}){return rt(e)?H(Xx(e,t),r):Me(e)?H(rO(e,t),r):H(ue(e)?Qx(e.anyOf,t):$n(e,t)!==A.False?e:Le(),r)}function eO(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:fi(e[n],t)}),{})}function tO(e,t){return eO(e.properties,t)}function rO(e,t){const r=tO(e,t);return Re(r)}function nO(e,t={}){return H(e.returns,t)}function sO(e={}){return{...e,[q]:"Integer",type:"integer"}}function oO(e,t,r){return{[e]:br(ve(e),t,r)}}function iO(e,t,r){return e.reduce((n,o)=>({...n,...oO(o,t,r)}),{})}function aO(e,t,r){return iO(e.keys,t,r)}function cO(e,t,r){const n=aO(e,t,r);return Re(n)}function uO(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function lO(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function fO(e){return e.toUpperCase()}function dO(e){return e.toLowerCase()}function pO(e,t,r){const n=ei(e.pattern);if(!nn(n))return{...e,pattern:tl(e.pattern,t)};const c=[...As(n)].map(y=>ve(y)),s=rl(c,t),h=Ie(s);return ju([h],r)}function tl(e,t){return typeof e=="string"?t==="Uncapitalize"?uO(e):t==="Capitalize"?lO(e):t==="Uppercase"?fO(e):t==="Lowercase"?dO(e):e:e.toString()}function rl(e,t){return e.map(r=>br(r,t))}function br(e,t,r={}){return Gt(e)?cO(e,t,r):rt(e)?pO(e,t,e):ue(e)?Ie(rl(e.anyOf,t),r):Ze(e)?ve(tl(e.const,t),r):e}function mO(e,t={}){return br(e,"Capitalize",t)}function hO(e,t={}){return br(e,"Lowercase",t)}function gO(e,t={}){return br(e,"Uncapitalize",t)}function yO(e,t={}){return br(e,"Uppercase",t)}function bO(e,t){return{...t,[q]:"Not",not:H(e)}}function vO(e,t,r){return globalThis.Object.getOwnPropertyNames(e).reduce((n,o)=>({...n,[o]:pi(e[o],t,r)}),{})}function _O(e,t,r){return vO(e.properties,t,r)}function wO(e,t,r){const n=_O(e,t,r);return Re(n)}function xO(e,t){return e.map(r=>di(r,t))}function OO(e,t){return e.map(r=>di(r,t))}function $O(e,t){const{[t]:r,...n}=e;return n}function RO(e,t){return t.reduce((r,n)=>$O(r,n),e)}function di(e,t){return $e(e)?Kt(xO(e.allOf,t)):ue(e)?Ie(OO(e.anyOf,t)):Q(e)?je(RO(e.properties,t)):je({})}function pi(e,t,r={}){if(Gt(t))return AO(e,t,r);if(Me(e))return wO(e,t,r);const n=fe(t)?Pt(t):t,o=qe(e,[ht,"$id","required"]),i=H(di(e,n),r);return{...o,...i}}function SO(e,t,r){return{[t]:pi(e,[t],r)}}function kO(e,t,r){return t.reduce((n,o)=>({...n,...SO(e,o,r)}),{})}function FO(e,t,r){return kO(e,t.keys,r)}function AO(e,t,r){const n=FO(e,t,r);return Re(n)}function EO(e,t={}){return xn(lt(e.parameters),{...t})}function Ea(e){return e.map(t=>nl(t))}function TO(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:Yt(e[r])}),{})}function nl(e){return $e(e)?Kt(Ea(e.allOf)):ue(e)?Ie(Ea(e.anyOf)):Q(e)?je(TO(e.properties)):je({})}function sl(e,t={}){if(Me(e))return IO(e,t);const r=qe(e,[ht,"$id","required"]),n=H(nl(e),t);return{...r,...n}}function jO(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:sl(e[n],t)}),{})}function CO(e,t){return jO(e.properties,t)}function IO(e,t){const r=CO(e,t);return Re(r)}function PO(e,t,r){return globalThis.Object.getOwnPropertyNames(e).reduce((n,o)=>({...n,[o]:hi(e[o],t,r)}),{})}function NO(e,t,r){return PO(e.properties,t,r)}function DO(e,t,r){const n=NO(e,t,r);return Re(n)}function MO(e,t){return e.map(r=>mi(r,t))}function LO(e,t){return e.map(r=>mi(r,t))}function UO(e,t){return t.reduce((r,n)=>n in e?{...r,[n]:e[n]}:r,{})}function mi(e,t){return $e(e)?Kt(MO(e.allOf,t)):ue(e)?Ie(LO(e.anyOf,t)):Q(e)?je(UO(e.properties,t)):je({})}function hi(e,t,r={}){if(Gt(t))return WO(e,t,r);if(Me(e))return DO(e,t,r);const n=fe(t)?Pt(t):t,o=qe(e,[ht,"$id","required"]),i=H(mi(e,n),r);return{...o,...i}}function BO(e,t,r){return{[t]:hi(e,[t],r)}}function HO(e,t,r){return t.reduce((n,o)=>({...n,...BO(e,o,r)}),{})}function qO(e,t,r){return HO(e,t.keys,r)}function WO(e,t,r){const n=qO(e,t,r);return Re(n)}function zO(e){return Jt(Yt(e))}function Rn(e,t,r){return{...r,[q]:"Record",type:"object",patternProperties:{[e]:H(t)}}}function gi(e,t,r){const n=e.reduce((o,i)=>({...o,[i]:H(t)}),{});return je(n,{...r,[xs]:"Record"})}function ZO(e,t,r){return ww(e)?gi(Pt(e),t,r):Rn(e.pattern,t,r)}function VO(e,t,r){return gi(Pt(Ie(e)),t,r)}function GO(e,t,r){return gi([e.toString()],t,r)}function JO(e,t,r){return Rn(e.source,t,r)}function YO(e,t,r){const n=pe(e.pattern)?ns:e.pattern;return Rn(n,t,r)}function KO(e,t,r){return Rn(Qr,t,r)}function XO(e,t,r){return Rn(Qr,t,r)}function QO(e,t,r={}){return ue(e)?VO(e.anyOf,t,r):rt(e)?ZO(e,t,r):Ze(e)?GO(e.const,t,r):ze(e)?KO(e,t,r):Oe(e)?XO(e,t,r):cr(e)?JO(e,t,r):De(e)?YO(e,t,r):Le(r)}let e$=0;function t$(e,t={}){pe(t.$id)&&(t.$id=`T${e$++}`);const r=e({[q]:"This",$ref:`${t.$id}`});return r.$id=t.$id,H({...t,[xs]:"Recursive",...r})}function r$(e,t={}){if(ye(e))return{...t,[q]:"Ref",$ref:e};if(pe(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[q]:"Ref",$ref:e.$id}}function n$(e,t={}){const r=ye(e)?new globalThis.RegExp(e):e;return{...t,[q]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function Ta(e){return e.map(t=>ol(t))}function s$(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:qe(e[r],[Vt])}),{})}function ol(e){return $e(e)?Kt(Ta(e.allOf)):ue(e)?Ie(Ta(e.anyOf)):Q(e)?je(s$(e.properties)):je({})}function il(e,t={}){if(Me(e))return a$(e,t);{const r=qe(e,[ht,"$id","required"]),n=H(ol(e),t);return{...r,...n}}}function o$(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:il(e[n],t)}),{})}function i$(e,t){return o$(e.properties,t)}function a$(e,t){const r=i$(e,t);return Re(r)}function c$(e){return $e(e)?[...e.allOf]:ue(e)?[...e.anyOf]:xt(e)?[...e.items??[]]:[]}function u$(e){return lt(c$(e))}function l$(e,t={}){return H(e.returns,t)}function f$(e){return JSON.parse(JSON.stringify(e))}class d${constructor(t){Sn(this,"schema");this.schema=t}Decode(t){return new p$(this.schema,t)}}class p${constructor(t,r){Sn(this,"schema");Sn(this,"decode");this.schema=t,this.decode=r}EncodeTransform(t,r){const i={Encode:c=>r[ht].Encode(t(c)),Decode:c=>this.decode(r[ht].Decode(c))};return{...r,[ht]:i}}EncodeSchema(t,r){const n={Decode:this.decode,Encode:t};return{...r,[ht]:n}}Encode(t){const r=H(this.schema);return Ss(r)?this.EncodeTransform(t,r):this.EncodeSchema(t,r)}}function m$(e){return new d$(e)}function h$(e={}){return{...e,[q]:e[q]??"Unsafe"}}function g$(e={}){return{...e,[q]:"Void",type:"void"}}const y$=Object.freeze(Object.defineProperty({__proto__:null,Any:tn,Array:$u,AsyncIterator:Ru,Awaited:v0,BigInt:ti,Boolean:Eu,Capitalize:mO,Composite:I0,Const:D0,Constructor:Su,ConstructorParameters:M0,Date:qu,Deref:mt,Enum:X0,Exclude:li,Extends:ui,Extract:fi,Function:Fs,Index:ri,InstanceType:nO,Integer:sO,Intersect:Kt,Iterator:Nu,KeyOf:Hu,Literal:ve,Lowercase:hO,Mapped:i0,Never:Le,Not:bO,Null:Wu,Number:gr,Object:je,Omit:pi,Optional:Yt,Parameters:EO,Partial:sl,Pick:hi,Promise:Du,Readonly:Jt,ReadonlyOptional:zO,Record:QO,Recursive:t$,Ref:r$,RegExp:n$,Required:il,Rest:u$,ReturnType:l$,Strict:f$,String:sn,Symbol:zu,TemplateLiteral:ju,Transform:m$,Tuple:xn,Uint8Array:Vu,Uncapitalize:gO,Undefined:Zu,Union:Ie,Unknown:oi,Unsafe:h$,Uppercase:yO,Void:g$},Symbol.toStringTag,{value:"Module"})),$=y$,I=$.String({$id:"Color"}),Je=$.String({$id:"FamilyName"}),Qt=$.String({$id:"FontWeight"}),Tr=$.String({$id:"Length"}),jr=$.String({$id:"Percentage"}),Cr=$.String({$id:"BoxShadow"}),b$=$.String({$id:"Number"}),v$=$.String({$id:"Size"}),St=$.Union([$.String(),$.Literal("thin"),$.Literal("medium"),$.Literal("thick")],{$id:"LineWidth"}),Zs=$.Optional($.Object({columnGap:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)])),rowGap:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)])),field:$.Optional($.Object({label:$.Optional($.Object({foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),input:$.Optional($.Object({background:$.Optional($.Ref(I)),backgroundSubdued:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),foregroundSubdued:$.Optional($.Ref(I)),borderColor:$.Optional($.Ref(I)),borderColorHover:$.Optional($.Ref(I)),borderColorFocus:$.Optional($.Ref(I)),boxShadow:$.Optional($.Ref(Cr)),boxShadowHover:$.Optional($.Ref(Cr)),boxShadowFocus:$.Optional($.Ref(Cr)),height:$.Optional($.Ref(v$)),padding:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)]))}))}))})),_$=$.Object({borderRadius:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)])),borderWidth:$.Optional($.Ref(St)),foreground:$.Optional($.Ref(I)),foregroundSubdued:$.Optional($.Ref(I)),foregroundAccent:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundNormal:$.Optional($.Ref(I)),backgroundAccent:$.Optional($.Ref(I)),backgroundSubdued:$.Optional($.Ref(I)),borderColor:$.Optional($.Ref(I)),borderColorAccent:$.Optional($.Ref(I)),borderColorSubdued:$.Optional($.Ref(I)),primary:$.Optional($.Ref(I)),primaryBackground:$.Optional($.Ref(I)),primarySubdued:$.Optional($.Ref(I)),primaryAccent:$.Optional($.Ref(I)),secondary:$.Optional($.Ref(I)),secondaryBackground:$.Optional($.Ref(I)),secondarySubdued:$.Optional($.Ref(I)),secondaryAccent:$.Optional($.Ref(I)),success:$.Optional($.Ref(I)),successBackground:$.Optional($.Ref(I)),successSubdued:$.Optional($.Ref(I)),successAccent:$.Optional($.Ref(I)),warning:$.Optional($.Ref(I)),warningBackground:$.Optional($.Ref(I)),warningSubdued:$.Optional($.Ref(I)),warningAccent:$.Optional($.Ref(I)),danger:$.Optional($.Ref(I)),dangerBackground:$.Optional($.Ref(I)),dangerSubdued:$.Optional($.Ref(I)),dangerAccent:$.Optional($.Ref(I)),fonts:$.Optional($.Object({display:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),sans:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),serif:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),monospace:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))}))})),navigation:$.Optional($.Object({background:$.Optional($.Ref(I)),backgroundAccent:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),project:$.Optional($.Object({background:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I))})),modules:$.Optional($.Object({background:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),button:$.Optional($.Object({foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundHover:$.Optional($.Ref(I)),backgroundActive:$.Optional($.Ref(I))}))})),list:$.Optional($.Object({icon:$.Optional($.Object({foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I))})),foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundHover:$.Optional($.Ref(I)),backgroundActive:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),divider:$.Object({borderColor:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St))})}))})),header:$.Optional($.Object({background:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),boxShadow:$.Optional($.Ref(Cr)),headline:$.Optional($.Object({foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je))})),title:$.Optional($.Object({foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))}))})),form:Zs,sidebar:$.Optional($.Object({background:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),section:$.Optional($.Object({toggle:$.Optional($.Object({icon:$.Optional($.Object({foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I))})),foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundHover:$.Optional($.Ref(I)),backgroundActive:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I))})),form:Zs}))})),public:$.Optional($.Object({background:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),foregroundAccent:$.Optional($.Ref(I)),art:$.Optional($.Object({background:$.Optional($.Ref(I)),primary:$.Optional($.Ref(I)),secondary:$.Optional($.Ref(I)),speed:$.Optional($.Ref(b$))})),form:Zs})),popover:$.Optional($.Object({menu:$.Optional($.Object({background:$.Optional($.Ref(I)),borderRadius:$.Optional($.Optional($.Union([$.Ref(Tr),$.Ref(jr)]))),boxShadow:$.Optional($.Ref(Cr))}))}))}),w$=$.Object({id:$.String(),name:$.String(),appearance:$.Union([$.Literal("light"),$.Literal("dark")]),rules:_$}),x$=e=>{const t=ae(()=>{const n=new Map,o=(i,c=[])=>{for(const[s,h]of Object.entries(i))typeof h=="object"&&h!==null&&("type"in h&&h.type==="object"&&"properties"in h&&o(h.properties,[...c,s]),"$ref"in h&&h.$ref==="FamilyName"&&(n.has(c)?n.set(c,{family:s,weight:n.get(c).weight}):n.set(c,{family:s,weight:null})),"$ref"in h&&h.$ref==="FontWeight"&&(n.has(c)?n.set(c,{family:n.get(c).family,weight:s}):n.set(c,{family:null,weight:s})))};return o(w$.properties.rules.properties),n}),r=ae(()=>{const n=new Map;for(const[o,{family:i,weight:c}]of t.value.entries()){let s=null,h=null;if(i&&(s=qn(te(e).rules,[...o,i])),c&&(h=qn(te(e).rules,[...o,c])),s){const y=s.split(",");for(const g of y){const a=g.trim();if(a.startsWith("var(--")){y.push(F_(a.slice(6,-1)));continue}if((a.startsWith('"')&&a.endsWith('"'))===!1)continue;const f=a.slice(1,-1);n.has(f)?n.get(f).add(h??"400"):n.set(f,new Set([h??"400"]))}}}return n});return{googleFonts:ae(()=>{const n=[];for(const[o,i]of r.value.entries())if(["Inter","Merriweather","Fira Mono"].includes(o)===!1){const c=Array.from(i).join(";");n.push(`${o.replace(" ","+")}:wght@${c}`)}return n})}},js=e=>e,yi=js({id:"Directus Default",name:"$t:theme_directus_default",appearance:"dark",rules:{borderRadius:"6px",borderWidth:"2px",foreground:"#c9d1d9",foregroundAccent:"#f0f6fc",foregroundSubdued:"#666672",background:"#0d1117",backgroundNormal:"#21262e",backgroundAccent:"#30363d",backgroundSubdued:"#161b22",borderColor:"#21262e",borderColorAccent:"#30363d",borderColorSubdued:"#21262d",primary:"var(--project-color)",primaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 10%)",primarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 50%)",primaryAccent:"color-mix(in srgb, var(--theme--primary), #16151a 25%)",secondary:"#ff99dd",secondaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 10%)",secondarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 50%)",secondaryAccent:"color-mix(in srgb, var(--theme--secondary), #16151a 25%)",success:"#2ecda7",successBackground:"color-mix(in srgb, var(--theme--background), var(--theme--success) 10%)",successSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--success) 50%)",successAccent:"color-mix(in srgb, var(--theme--success), #16151a 25%)",warning:"#ffa439",warningBackground:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 10%)",warningSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 50%)",warningAccent:"color-mix(in srgb, var(--theme--warning), #16151a 25%)",danger:"#e35169",dangerBackground:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 10%)",dangerSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 50%)",dangerAccent:"color-mix(in srgb, var(--theme--danger), #16151a 25%)",fonts:{display:{fontFamily:'"Inter", system-ui',fontWeight:"700"},sans:{fontFamily:'"Inter", system-ui',fontWeight:"500"},serif:{fontFamily:'"Merriweather", serif',fontWeight:"500"},monospace:{fontFamily:'"Fira Mono", monospace',fontWeight:"500"}},navigation:{background:"#21262e",backgroundAccent:"#30363d",borderColor:"transparent",borderWidth:"0px",project:{borderColor:"transparent",borderWidth:"0px",background:"#30363d",foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--sans--font-family)"},modules:{background:"var(--theme--background)",borderColor:"transparent",borderWidth:"0px",button:{foreground:"var(--theme--foreground-subdued)",foregroundHover:"#fff",foregroundActive:"var(--theme--foreground-accent)",background:"transparent",backgroundHover:"transparent",backgroundActive:"#21262e"}},list:{icon:{foreground:"var(--theme--primary)",foregroundHover:"var(--theme--navigation--list--icon--foreground)",foregroundActive:"var(--theme--navigation--list--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--navigation--list--foreground)",foregroundActive:"var(--theme--navigation--list--foreground)",background:"transparent",backgroundHover:"#30363d",backgroundActive:"#30363d",fontFamily:"var(--theme--fonts--sans--font-family)",divider:{borderColor:"#30363d",borderWidth:"var(--theme--border-width)"}}},header:{background:"var(--theme--background)",borderColor:"transparent",borderWidth:"0px",boxShadow:"0 4px 7px -4px rgb(var(--black) / 0.2)",headline:{foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)"},title:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--display--font-family)",fontWeight:"var(--theme--fonts--display--font-weight)"}},form:{columnGap:"32px",rowGap:"40px",field:{label:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--sans--font-family)",fontWeight:"600"},input:{background:"var(--theme--background)",backgroundSubdued:"var(--theme--background-subdued)",foreground:"var(--theme--foreground)",foregroundSubdued:"var(--theme--foreground-subdued)",borderColor:"#21262e",borderColorHover:"#30363d",borderColorFocus:"var(--theme--primary)",boxShadow:"none",boxShadowHover:"none",boxShadowFocus:"0 0 16px -8px var(--theme--primary)",height:"60px",padding:"16px"}}},sidebar:{background:"#21262e",foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px",section:{toggle:{icon:{foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--icon--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--foreground)",background:"#30363d",backgroundHover:"var(--theme--sidebar--section--toggle--background)",backgroundActive:"var(--theme--sidebar--section--toggle--background)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},field:{input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"52px",padding:"12px"}}}}},public:{background:"var(--theme--background)",foreground:"var(--theme--foreground)",foregroundAccent:"var(--theme--foreground-accent)",art:{background:"#0e1c2f",primary:"var(--theme--primary)",secondary:"var(--theme--secondary)",speed:"1"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",field:{label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"var(--theme--form--field--input--height)",padding:"var(--theme--form--field--input--padding)"}}}},popover:{menu:{background:"#161b22",borderRadius:"var(--theme--border-radius)",boxShadow:"0px 0px 6px 0px rgb(0, 0, 0, 0.2)"}}}}),O$=js({id:"Directus Color Match",name:"$t:theme_directus_colormatch",appearance:"light",rules:{background:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 7%)",backgroundAccent:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 20%)",backgroundNormal:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 15%)",backgroundSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 10%)",borderColor:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 20%)",borderColorAccent:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 40%)",borderColorSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 15%)",borderRadius:"12px",borderWidth:"1px",foreground:"color-mix(in srgb, #000000, var(--theme--primary) 70%)",foregroundAccent:"color-mix(in srgb, #000000, var(--theme--primary) 50%)",foregroundSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 60%)",fonts:{display:{fontFamily:'"Montserrat", system-ui',fontWeight:"400"}},form:{field:{input:{background:"#FFFFFF",backgroundSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 13%)"}}},navigation:{background:"#FFFFFF",backgroundAccent:"var(--theme--background)",borderWidth:"var(--theme--border-width)",borderColor:"var(--theme--border-color-subdued)",modules:{background:"color-mix(in srgb, #000000, var(--theme--primary) 90%)",button:{backgroundActive:"#FFFFFF",foreground:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 20%)",foregroundActive:"var(--theme--primary)"}},project:{borderWidth:"1px",background:"#FFFFFF",borderColor:"var(--theme--border-color-subdued)"},list:{divider:{borderColor:"var(--theme--border-color-subdued)"},icon:{foreground:"var(--theme--foreground)"},foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground)"}},header:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color-subdued)",boxShadow:"0 4px 7px -4px rgba(0,102,102, 0.2)"},sidebar:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color-subdued)",section:{toggle:{borderColor:"var(--theme--border-color-subdued)",borderWidth:"1px",background:"#FFFFFF",foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)",icon:{foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)"}}}},public:{art:{background:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 10%)",primary:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 60%)",secondary:"color-mix(in srgb, #FFFFFF, var(--theme--secondary) 70%)"},background:"#FFFFFF"}}}),bi=js({id:"Directus Default",name:"$t:theme_directus_default",appearance:"light",rules:{borderRadius:"6px",borderWidth:"2px",foreground:"#4f5464",foregroundAccent:"#172940",foregroundSubdued:"#a2b5cd",background:"#fff",backgroundNormal:"#f0f4f9",backgroundAccent:"#e4eaf1",backgroundSubdued:"#f7fafc",borderColor:"#e4eaf1",borderColorAccent:"#d3dae4",borderColorSubdued:"#f0f4f9",primary:"var(--project-color)",primaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 10%)",primarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 50%)",primaryAccent:"color-mix(in srgb, var(--theme--primary), #2e3c43 25%)",secondary:"#ff99dd",secondaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 10%)",secondarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 50%)",secondaryAccent:"color-mix(in srgb, var(--theme--secondary), #2e3c43 25%)",success:"#2ecda7",successBackground:"color-mix(in srgb, var(--theme--background), var(--theme--success) 10%)",successSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--success) 50%)",successAccent:"color-mix(in srgb, var(--theme--success), #2e3c43 25%)",warning:"#ffa439",warningBackground:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 10%)",warningSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 50%)",warningAccent:"color-mix(in srgb, var(--theme--warning), #2e3c43 25%)",danger:"#e35169",dangerBackground:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 10%)",dangerSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 50%)",dangerAccent:"color-mix(in srgb, var(--theme--danger), #2e3c43 25%)",fonts:{display:{fontFamily:'"Inter", system-ui',fontWeight:"700"},sans:{fontFamily:'"Inter", system-ui',fontWeight:"500"},serif:{fontFamily:'"Merriweather", serif',fontWeight:"500"},monospace:{fontFamily:'"Fira Mono", monospace',fontWeight:"500"}},navigation:{background:"var(--theme--background-normal)",backgroundAccent:"var(--theme--background-accent)",borderColor:"transparent",borderWidth:"0px",project:{borderColor:"transparent",borderWidth:"0px",background:"var(--theme--navigation--background-accent)",foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--font-family-sans-serif)"},modules:{background:"#0e1c2f",borderColor:"transparent",borderWidth:"0px",button:{foreground:"#8196b1",foregroundHover:"#fff",foregroundActive:"var(--theme--foreground-accent)",background:"transparent",backgroundHover:"transparent",backgroundActive:"var(--theme--background-normal)"}},list:{icon:{foreground:"var(--theme--primary)",foregroundHover:"var(--theme--navigation--list--icon--foreground)",foregroundActive:"var(--theme--navigation--list--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--navigation--list--foreground)",foregroundActive:"var(--theme--navigation--list--foreground)",background:"transparent",backgroundHover:"var(--theme--navigation--background-accent)",backgroundActive:"var(--theme--navigation--background-accent)",fontFamily:"var(--theme--fonts--sans--font-family)",divider:{borderColor:"var(--theme--border-color-accent)",borderWidth:"var(--theme--border-width)"}}},header:{background:"var(--theme--background)",borderColor:"transparent",borderWidth:"0px",boxShadow:"0 4px 7px -4px rgb(0 0 0 / 0.2)",headline:{foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)"},title:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--display--font-family)",fontWeight:"var(--theme--fonts--display--font-weight)"}},form:{columnGap:"32px",rowGap:"40px",field:{label:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--sans--font-family)",fontWeight:"600"},input:{background:"var(--theme--background)",backgroundSubdued:"var(--theme--background-subdued)",foreground:"var(--theme--foreground)",foregroundSubdued:"var(--theme--foreground-subdued)",borderColor:"var(--theme--border-color)",borderColorHover:"var(--theme--border-color-accent)",borderColorFocus:"var(--theme--primary)",boxShadow:"none",boxShadowHover:"none",boxShadowFocus:"0 0 16px -8px var(--theme--primary)",height:"60px",padding:"16px"}}},sidebar:{background:"var(--theme--background-normal)",foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px",section:{toggle:{icon:{foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--icon--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--foreground)",background:"var(--theme--background-accent)",backgroundHover:"var(--theme--sidebar--section--toggle--background)",backgroundActive:"var(--theme--sidebar--section--toggle--background)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},field:{input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"52px",padding:"12px"}}}}},public:{background:"var(--theme--background)",foreground:"var(--theme--foreground)",foregroundAccent:"var(--theme--foreground-accent)",art:{background:"#0e1c2f",primary:"var(--theme--primary)",secondary:"var(--theme--secondary)",speed:"1"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},field:{input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"var(--theme--form--field--input--height)",padding:"var(--theme--form--field--input--padding)"}}}},popover:{menu:{background:"#fafcfd",borderRadius:"var(--theme--border-radius)",boxShadow:"0px 0px 6px 0px rgb(23, 41, 64, 0.2), 0px 0px 12px 2px rgb(23, 41, 64, 0.05)"}}}}),$$=js({id:"Directus Minimal",name:"$t:theme_directus_minimal",appearance:"light",rules:{borderWidth:"1px",backgroundPage:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 7%)",navigation:{background:"#FFFFFF",modules:{background:"#FFFFFF",button:{backgroundActive:"#F1F5F9",foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--primary)",foregroundActive:"var(--theme--primary)",backgroundHover:"#F1F5F9",background:"#FFFFFF"},borderWidth:"1px",borderColor:"var(--theme--border-color)"},project:{borderWidth:"1px",background:"#FFFFFF",borderColor:"var(--theme--border-color)"},list:{icon:{foreground:"#0F172A"},divider:{borderColor:"var(--theme--border-color)"}},borderWidth:"1px",backgroundAccent:"#F1F5F9",borderColor:"var(--theme--border-color)"},header:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color)",boxShadow:"0 4px 7px -4px rgba(0,102,102, 0.1)"},backgroundAccent:"#E2E8F0",backgroundSubdued:"#F8FAFC",background:"#FFFFFF",foreground:"#1E293B",foregroundAccent:"#0F172A",foregroundSubdued:"#94A3B8",borderRadius:"4px",borderColor:"#E2E8F0",borderColorAccent:"#CBD5E1",borderColorSubdued:"#F1F5F9",form:{rowGap:"32px",field:{input:{background:"#FFFFFF",backgroundSubdued:"#F8FAFC",boxShadowFocus:"none",height:"52px"}}},sidebar:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color)",section:{toggle:{borderColor:"var(--theme--border-color)",borderWidth:"1px",background:"#FFFFFF",foreground:"var(--theme--foreground-subdued)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)",icon:{foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)"}},form:{field:{input:{height:"42px"}}}}},public:{art:{background:"color-mix(in srgb, #FFFFFF, var(--project-color) 10%)",primary:"color-mix(in srgb, #FFFFFF, var(--project-color) 70%)",secondary:"color-mix(in srgb, #FFFFFF, var(--project-color) 40%)"},background:"#FFFFFF"},backgroundNormal:"#F1F5F9",secondary:"#64748B",primary:"#0F172A",primaryBackground:"#F1F5F9",primarySubdued:"#F8FAFC",primaryAccent:"#E2E8F0",secondaryAccent:"#E2E8F0",secondaryBackground:"#F1F5F9",secondarySubdued:"#F8FAFC",fonts:{display:{fontFamily:"system-ui"}}}}),R$=[yi],S$=[bi,$$,O$],k$=$l("🎨 Themes",()=>{const e=Pa({light:S$,dark:R$});return{themes:e,registerTheme:t=>{t.appearance==="light"?e.light.push(t):e.dark.push(t)}}}),F$=(e,t,r,n,o)=>{const{themes:i}=Rl(k$());return{theme:ae(()=>{const c=te(e)?te(r):te(t),s=te(e)?yi:bi,h=te(e)?te(o):te(n),y=te(i)[te(e)?"dark":"light"].find(g=>g.id===c);return y?h?jn({},s,y,{rules:h}):jn(s,y):(c&&c!==s.id&&console.warn(`Theme "${c}" doesn't exist.`),h?jn({},s,{rules:h}):s)})}},A$=e=>{const t=C_(e,{delimiter:"--"}),r=n=>`--theme--${E_(n,{separator:"-"})}`;return ay(t,(n,o)=>r(o))},F1=Ia({__name:"theme-provider",props:{darkMode:{type:Boolean},themeLight:{default:bi.name},themeLightOverrides:{default:()=>({})},themeDark:{default:yi.name},themeDarkOverrides:{default:()=>({})}},setup(e){const t=e,{darkMode:r,themeLight:n,themeDark:o,themeLightOverrides:i,themeDarkOverrides:c}=Na(t),{theme:s}=F$(r,n,o,i,c),h=ae(()=>A$(te(s).rules)),{googleFonts:y}=x$(s);hf({link:ae(()=>{let a="";if(y.value.length>0){const f=y.value.join("&family=");a+=`https://fonts.googleapis.com/css2?family=${f}`,a+=`
|
|
7
|
-
`}return a?[{rel:"stylesheet",href:a}]:[]})});const g=ae(()=>`:root {${Object.entries(te(h)).map(([a,f])=>`${a}: ${f};`).join(" ")}}`);return(a,f)=>(vl(),_l(Ol,{to:"#theme"},[wl(xl(g.value),1)]))}});export{
|
|
6
|
+
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ir(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&mo.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),o!=null&&(T.isFunction(o)?r.paramsSerializer={serialize:o}:mo.assertOptions(o,{encode:Rt.function,serialize:Rt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=i&&T.merge(i.common,i[r.method]);i&&T.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),r.headers=bt.concat(c,i);const s=[];let h=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(r)===!1||(h=h&&u.synchronous,s.unshift(u.fulfilled,u.rejected))});const y=[];this.interceptors.response.forEach(function(u){y.push(u.fulfilled,u.rejected)});let g,a=0,f;if(!h){const l=[ba.bind(this),void 0];for(l.unshift.apply(l,s),l.push.apply(l,y),f=l.length,g=Promise.resolve(r);a<f;)g=g.then(l[a++],l[a++]);return g}f=s.length;let d=r;for(a=0;a<f;){const l=s[a++],u=s[a++];try{d=l(d)}catch(b){u.call(this,b);break}}try{g=ba.call(this,d)}catch(l){return Promise.reject(l)}for(a=0,f=y.length;a<f;)g=g.then(y[a++],y[a++]);return g}getUri(t){t=ir(this.defaults,t);const r=cu(t.baseURL,t.url);return nu(r,t.params,t.paramsSerializer)}}T.forEach(["delete","get","head","options"],function(t){rs.prototype[t]=function(r,n){return this.request(ir(n||{},{method:t,url:r,data:(n||{}).data}))}});T.forEach(["post","put","patch"],function(t){function r(n){return function(i,c,s){return this.request(ir(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}rs.prototype[t]=r(),rs.prototype[t+"Form"]=r(!0)});const Dn=rs;class Jo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const c=new Promise(s=>{n.subscribe(s),i=s}).then(o);return c.cancel=function(){n.unsubscribe(i)},c},t(function(i,c,s){n.reason||(n.reason=new gn(i,c,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Jo(function(o){t=o}),cancel:t}}}const b_=Jo;function v_(e){return function(r){return e.apply(null,r)}}function __(e){return T.isObject(e)&&e.isAxiosError===!0}const ho={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ho).forEach(([e,t])=>{ho[t]=e});const w_=ho;function fu(e){const t=new Dn(e),r=zc(Dn.prototype.request,t);return T.extend(r,Dn.prototype,t,{allOwnKeys:!0}),T.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return fu(ir(e,o))},r}const de=fu(Vo);de.Axios=Dn;de.CanceledError=gn;de.CancelToken=b_;de.isCancel=au;de.VERSION=lu;de.toFormData=vs;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=v_;de.isAxiosError=__;de.mergeConfig=ir;de.AxiosHeaders=bt;de.formToJSON=e=>iu(T.isHTMLForm(e)?new FormData(e):e);de.getAdapter=uu.getAdapter;de.HttpStatusCode=w_;de.default=de;function x_(){const e=lr(Sy);if(!e)throw new Error("[useStores]: The stores could not be found.");return e}function O_(){const e=lr(ky);if(!e)throw new Error("[useApi]: The api could not be found.");return e}function y1(){const e=lr(Fy);if(!e)throw new Error("[useSdk]: The sdk could not be found.");return e}function $_(){const e=lr(Ay);if(!e)throw new Error("[useExtensions]: The extensions could not be found.");return e}function R_(e){const{useCollectionsStore:t,useFieldsStore:r}=x_(),n=t(),o=r(),i=typeof e=="string"?xe(e):e,c=ae(()=>n.collections.find(({collection:l})=>l===i.value)||null),s=ae(()=>i.value?o.getFieldsForCollectionSorted(i.value):[]),h=ae(()=>{if(!s.value)return{};const l={};for(const u of s.value)u.schema!==null&&"default_value"in u.schema&&(l[u.field]=u.schema.default_value);return l}),y=ae(()=>s.value.find(l=>{var u;return l.collection===i.value&&((u=l.schema)==null?void 0:u.is_primary_key)===!0})||null),g=ae(()=>{var l;return((l=s.value)==null?void 0:l.find(u=>{var b;return(((b=u.meta)==null?void 0:b.special)||[]).includes("user_created")}))||null}),a=ae(()=>{var l,u;return((u=(l=c.value)==null?void 0:l.meta)==null?void 0:u.sort_field)||null}),f=ae(()=>{var l,u;return((u=(l=c.value)==null?void 0:l.meta)==null?void 0:u.singleton)===!0}),d=ae(()=>!c.value||!c.value.meta?null:c.value.meta.accountability);return{info:c,fields:s,defaults:h,primaryKeyField:y,userCreatedField:g,sortField:a,isSingleton:f,accountabilityScope:d}}function b1(e,t,r){const n=xe(""),o=ae({get(){return n.value||(i.value?e.value:"")},set(c){c===null?(n.value="",r(null)):(n.value=c,r(c))}}),i=ae(()=>{if(t.value===null)return!1;const c=t.value.map(s=>s.value);return e.value!==null&&e.value.length>0&&c.includes(e.value)===!1});return{otherValue:o,usesOtherValue:i}}function v1(e,t,r){const n=xe([]);return rr(e,c=>{c!==null&&Array.isArray(c)&&t.value!==null&&c.forEach(s=>{if(t.value===null)return;t.value.map(g=>g.value).includes(s)||n.value.map(f=>f.value).includes(s)||o(s)})},{immediate:!0}),{otherValues:n,addOtherValue:o,setOtherValue:i};function o(c=""){n.value=[...n.value,{key:bf(),value:c}]}function i(c,s){var g;const h=n.value.find(a=>a.key===c),y=(e.value||[]).filter(a=>a!==(h==null?void 0:h.value));s===null?(n.value=n.value.filter(a=>a.key!==c),y.length===0?r(null):r(y)):(n.value=n.value.map(a=>(a.key===c&&(a.value=s),a)),y.length===((g=e.value)==null?void 0:g.length)?r(y):r([...y,s]))}}function _1(e){const t=xe(0),r=xe(0),n=new ResizeObserver(([o])=>{o!==void 0&&(t.value=o.contentRect.width,r.value=o.contentRect.height)});return ml(()=>{const o=hl(e)?e.value:e;er(o)||n.observe(o)}),gl(()=>{n.disconnect()}),{width:t,height:r}}function w1(e,t){return{fieldGroups:ae(()=>{const n={};for(const o in t)n[o]=[];return e.value.reduce((o,i)=>{for(const c in t)t[c](i)!==!1&&o[c].push(i);return o},n)})}}function x1(e){var y;const t=lr((e==null?void 0:e.group)||"item-group",null);if(er(t))return{active:xe(!1),toggle:()=>{},activate:()=>{},deactivate:()=>{}};const{register:r,unregister:n,toggle:o,selection:i}=t;let c=!1;((y=e==null?void 0:e.active)==null?void 0:y.value)===!0&&(c=!0),e!=null&&e.value&&i.value.includes(e.value)&&(c=!0);const s=xe(c),h={active:s,value:e==null?void 0:e.value};return r(h),(e==null?void 0:e.active)!==void 0&&e.watch===!0&&rr(e.active,()=>{e.active!==void 0&&(e.active.value===!0&&(s.value===!1&&o(h),s.value=!0),e.active.value===!1&&(s.value===!0&&o(h),s.value=!1))}),Ca(()=>n(h)),{active:s,toggle:()=>{o(h)},activate:()=>{s.value===!1&&o(h)},deactivate:()=>{s.value===!0&&o(h)}}}function O1(e={},t={},r="item-group"){const n=yl([]),o=xe([]),i=ae({get(){return!er(e.selection)&&!er(e.selection.value)?e.selection.value:o.value},set(d){er(e.onSelectionChange)||e.onSelectionChange(d),o.value=[...d]}});return bl(r,{register:c,unregister:s,toggle:h,selection:i}),rr(i,f,{immediate:!0}),ja().then(f),rr(()=>{var d;return(d=t==null?void 0:t.mandatory)==null?void 0:d.value},(d,l)=>{var u;Sr(d,l)||(!i.value||i.value.length===0&&((u=t==null?void 0:t.mandatory)==null?void 0:u.value)===!0)&&n.value[0]&&(i.value=[a(n.value[0])])}),{items:n,selection:i,internalSelection:o,getValueForItem:a,updateChildren:f};function c(d){var u;n.value=[...n.value,d];const l=a(d);i.value.length===0&&((u=t==null?void 0:t.mandatory)==null?void 0:u.value)===!0&&n.value.length===1&&(i.value=[l]),d.active.value&&i.value.includes(l)===!1&&h(d)}function s(d){n.value=n.value.filter(l=>l!==d)}function h(d){var l;((l=t==null?void 0:t.multiple)==null?void 0:l.value)===!0?g(d):y(d),er(e.onToggle)||e.onToggle(d)}function y(d){var u;const l=a(d);if(i.value[0]===l&&((u=t==null?void 0:t.mandatory)==null?void 0:u.value)!==!0){i.value=[];return}i.value[0]!==l&&(i.value=[l])}function g(d){var u,b;const l=a(d);if(i.value.includes(l)){if(((u=t==null?void 0:t.mandatory)==null?void 0:u.value)===!0&&i.value.length===1){f();return}i.value=i.value.filter(p=>p!==l);return}if((b=t==null?void 0:t.max)!=null&&b.value&&t.max.value!==-1&&i.value.length>=t.max.value){f();return}i.value=[...i.value,l]}function a(d){return d.value||n.value.findIndex(l=>d===l)}function f(){n.value.forEach(d=>{d.active.value=i.value.includes(a(d))})}}function $1(e,t){const r=O_(),{primaryKeyField:n}=R_(e),{fields:o,limit:i,sort:c,search:s,filter:h,page:y,alias:g,deep:a}=t,f=g??xe(),d=a??xe(),l=ae(()=>e.value?Wy(e.value):null),u=xe([]),b=xe(!1),p=xe(null),m=xe(null),v=xe(null),w=ae(()=>m.value===null||m.value<(te(i)??100)?1:Math.ceil(m.value/(te(i)??100))),O={items:null,total:null,filter:null};let k=null;const S=fy(_,500);return rr([e,i,c,s,h,o,y,f,d],async(E,P)=>{if(Sr(E,P))return;const[N,W,G,se,ge]=E,[J,ee,we,Pe,Ge]=P;!N||!t||(N!==J&&x(),(!Sr(ge,Ge)||!Sr(G,we)||W!==ee||se!==Pe)&&J&&(y.value=1),(N!==J||!Sr(ge,Ge)||se!==Pe)&&j(),S())},{deep:!0,immediate:!0}),{itemCount:m,totalCount:v,items:u,totalPages:w,loading:b,error:p,changeManualSort:R,getItems:_,getItemCount:j,getTotalCount:F};async function _(){var N;if(!l.value)return;let E=!1;O.items&&O.items.abort(),O.items=new AbortController,p.value=null,k&&clearTimeout(k),k=setTimeout(()=>{b.value=!0},150),te(v)===null&&F();let P=[...te(o)??[]];!((N=te(o))!=null&&N.includes("*"))&&n.value&&P.includes(n.value.field)===!1&&P.push(n.value.field),P=P.filter(W=>W.startsWith("$")===!1);try{let G=(await r.get(l.value,{params:{limit:te(i),fields:P,...f?{alias:te(f)}:{},sort:te(c),page:te(y),search:te(s),filter:te(h),deep:te(d)},signal:O.items.signal})).data.data;O.items=null,e.value==="directus_files"&&(G=G.map(se=>({...se,$thumbnail:se}))),u.value=G,y&&G.length===0&&(y==null?void 0:y.value)!==1&&(y.value=1)}catch(W){de.isCancel(W)?E=!0:p.value=W}finally{k&&!E&&(clearTimeout(k),k=null),k||(b.value=!1)}}function x(){u.value=[],v.value=null,m.value=null}async function R({item:E,to:P}){var ge;const N=(ge=n.value)==null?void 0:ge.field;if(!N)return;const W=u.value.findIndex(J=>J[N]===E),G=u.value.findIndex(J=>J[N]===P);u.value=Jy(u.value,W,G);const se=ae(()=>`/utils/sort/${e.value}`);await r.post(se.value,{item:E,to:P})}async function F(){if(l.value)try{O.total&&O.total.abort(),O.total=new AbortController;const E=n.value?{countDistinct:n.value.field}:{count:"*"},P=await r.get(l.value,{params:{aggregate:E},signal:O.total.signal}),N=n.value?Number(P.data.data[0].countDistinct[n.value.field]):Number(P.data.data[0].count);O.total=null,v.value=N}catch(E){if(!de.isCancel(E))throw E}}async function j(){if(l.value)try{O.filter&&O.filter.abort(),O.filter=new AbortController;const E=n.value?{countDistinct:n.value.field}:{count:"*"},P=await r.get(l.value,{params:{filter:te(h),search:te(s),aggregate:E},signal:O.filter.signal}),N=n.value?Number(P.data.data[0].countDistinct[n.value.field]):Number(P.data.data[0].count);O.filter=null,m.value=N}catch(E){if(!de.isCancel(E))throw E}}}var go="wrapper",du=["selection","layoutOptions","layoutQuery"];function S_(e){return du.includes(e)}function k_(e){return Ia({name:`${e.id}-${go}`,props:{collection:{type:String,required:!0},selection:{type:Array,default:()=>[]},layoutOptions:{type:Object,default:()=>({})},layoutQuery:{type:Object,default:()=>({})},layoutProps:{type:Object,default:()=>({})},filter:{type:Object,default:null},filterUser:{type:Object,default:null},filterSystem:{type:Object,default:null},search:{type:String,default:null},showSelect:{type:String,default:"multiple"},selectMode:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},resetPreset:{type:Function,default:null},clearFilters:{type:Function,default:null}},emits:du.map(t=>`update:${t}`),setup(t,{emit:r}){const n=Pa({...e.setup(t,{emit:r}),...Na(t)});for(const o in n)n[`onUpdate:${o}`]=i=>{S_(o)?r(`update:${o}`,i):Object.keys(t).includes(o)||(n[o]=i)};return{state:n}},render(t){return t.$slots.default!==void 0?t.$slots.default({layoutState:t.state}):null}})}function R1(e){const{layouts:t}=$_(),r=ae(()=>t.value.map(o=>k_(o)));return{layoutWrapper:ae(()=>{const o=r.value.find(i=>i.name===`${e.value}-${go}`);return o===void 0?r.value.find(i=>i.name===`tabular-${go}`):o})}}function S1(e){return ae(()=>e.xSmall?"x-small":e.small?"small":e.large?"large":e.xLarge?"x-large":null)}function k1(e,t,r){return ae({get(){return e[t]},set(n){r(`update:${t}`,n)}})}function F_(e,t=document.body){return getComputedStyle(t??document.body).getPropertyValue(e).trim()}const A_=(e,t)=>(e=e.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),r=>r.toLowerCase()),e.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(r,n,o)=>n+t+o.toLowerCase()));function E_(e,{separator:t="_",preserveConsecutiveUppercase:r=!1}={}){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(e.length<2)return r?e:e.toLowerCase();const n=`$1${t}$2`,o=e.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),n);return r?A_(o,t):o.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),n).toLowerCase()}function T_(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function j_(e){return e}function C_(e,t){t=t||{};const r=t.delimiter||".",n=t.maxDepth,o=t.transformKey||j_,i={};function c(s,h,y){y=y||1,Object.keys(s).forEach(function(g){const a=s[g],f=t.safe&&Array.isArray(a),d=Object.prototype.toString.call(a),l=T_(a),u=d==="[object Object]"||d==="[object Array]",b=h?h+r+o(g):o(g);if(!f&&!l&&u&&Object.keys(a).length&&(!t.maxDepth||y<n))return c(a,b,y+1);i[b]=a})}return c(e),i}function I_(e){return Te(e)&&!dt(e)&&!xs(e)&&Symbol.asyncIterator in e}function dt(e){return Array.isArray(e)}function pu(e){return typeof e=="bigint"}function ws(e){return typeof e=="boolean"}function mu(e){return e instanceof globalThis.Date}function P_(e){return typeof e=="function"}function N_(e){return Te(e)&&!dt(e)&&!xs(e)&&Symbol.iterator in e}function D_(e){return e===null}function Tt(e){return typeof e=="number"}function Te(e){return typeof e=="object"&&e!==null}function M_(e){return e instanceof globalThis.RegExp}function ye(e){return typeof e=="string"}function L_(e){return typeof e=="symbol"}function xs(e){return e instanceof globalThis.Uint8Array}function pe(e){return e===void 0}function U_(e){return e.map(t=>ns(t))}function B_(e){return new Date(e.getTime())}function H_(e){return new Uint8Array(e)}function q_(e){return new RegExp(e.source,e.flags)}function W_(e){const t=Object.getOwnPropertyNames(e).reduce((n,o)=>({...n,[o]:ns(e[o])}),{}),r=Object.getOwnPropertySymbols(e).reduce((n,o)=>({...n,[o]:ns(e[o])}),{});return{...t,...r}}function ns(e){return dt(e)?U_(e):mu(e)?B_(e):xs(e)?H_(e):M_(e)?q_(e):Te(e)?W_(e):e}function z_(e){return ns(e)}function ut(e){return e.map(t=>H(t))}function H(e,t={}){return{...z_(e),...t}}class yn extends Error{constructor(t){super(t)}}const ht=Symbol.for("TypeBox.Transform"),Os=Symbol.for("TypeBox.Readonly"),Vt=Symbol.for("TypeBox.Optional"),$s=Symbol.for("TypeBox.Hint"),q=Symbol.for("TypeBox.Kind"),Z_=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function hu(e){try{return new RegExp(e),!0}catch{return!1}}function Yo(e){if(!ye(e))return!1;for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}function gu(e){return Ko(e)||fe(e)}function $r(e){return pe(e)||pu(e)}function oe(e){return pe(e)||Tt(e)}function Ko(e){return pe(e)||ws(e)}function ne(e){return pe(e)||ye(e)}function V_(e){return pe(e)||ye(e)&&Yo(e)&&hu(e)}function G_(e){return pe(e)||ye(e)&&Yo(e)}function yu(e){return pe(e)||fe(e)}function J_(e){return Te(e)&&e[Os]==="Readonly"}function lt(e){return Te(e)&&e[Vt]==="Optional"}function tt(e){return K(e,"Any")&&ne(e.$id)}function ot(e){return K(e,"Array")&&e.type==="array"&&ne(e.$id)&&fe(e.items)&&oe(e.minItems)&&oe(e.maxItems)&&Ko(e.uniqueItems)&&yu(e.contains)&&oe(e.minContains)&&oe(e.maxContains)}function bn(e){return K(e,"AsyncIterator")&&e.type==="AsyncIterator"&&ne(e.$id)&&fe(e.items)}function vn(e){return K(e,"BigInt")&&e.type==="bigint"&&ne(e.$id)&&$r(e.exclusiveMaximum)&&$r(e.exclusiveMinimum)&&$r(e.maximum)&&$r(e.minimum)&&$r(e.multipleOf)}function It(e){return K(e,"Boolean")&&e.type==="boolean"&&ne(e.$id)}function dr(e){return K(e,"Constructor")&&e.type==="Constructor"&&ne(e.$id)&&dt(e.parameters)&&e.parameters.every(t=>fe(t))&&fe(e.returns)}function Rs(e){return K(e,"Date")&&e.type==="Date"&&ne(e.$id)&&oe(e.exclusiveMaximumTimestamp)&&oe(e.exclusiveMinimumTimestamp)&&oe(e.maximumTimestamp)&&oe(e.minimumTimestamp)&&oe(e.multipleOfTimestamp)}function pr(e){return K(e,"Function")&&e.type==="Function"&&ne(e.$id)&&dt(e.parameters)&&e.parameters.every(t=>fe(t))&&fe(e.returns)}function ze(e){return K(e,"Integer")&&e.type==="integer"&&ne(e.$id)&&oe(e.exclusiveMaximum)&&oe(e.exclusiveMinimum)&&oe(e.maximum)&&oe(e.minimum)&&oe(e.multipleOf)}function bu(e){return Te(e)&&Object.entries(e).every(([t,r])=>Yo(t)&&fe(r))}function $e(e){return K(e,"Intersect")&&!(ye(e.type)&&e.type!=="object")&&dt(e.allOf)&&e.allOf.every(t=>fe(t)&&!Ss(t))&&ne(e.type)&&(Ko(e.unevaluatedProperties)||yu(e.unevaluatedProperties))&&ne(e.$id)}function _n(e){return K(e,"Iterator")&&e.type==="Iterator"&&ne(e.$id)&&fe(e.items)}function K(e,t){return Te(e)&&q in e&&e[q]===t}function vu(e){return Ze(e)&&ye(e.const)}function _u(e){return Ze(e)&&Tt(e.const)}function wu(e){return Ze(e)&&ws(e.const)}function Ze(e){return K(e,"Literal")&&ne(e.$id)&&Y_(e.const)}function Y_(e){return ws(e)||Tt(e)||ye(e)}function Gt(e){return K(e,"MappedKey")&&dt(e.keys)&&e.keys.every(t=>Tt(t)||ye(t))}function Me(e){return K(e,"MappedResult")&&bu(e.properties)}function pt(e){return K(e,"Never")&&Te(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function ar(e){return K(e,"Not")&&fe(e.not)}function Xo(e){return K(e,"Null")&&e.type==="null"&&ne(e.$id)}function Oe(e){return K(e,"Number")&&e.type==="number"&&ne(e.$id)&&oe(e.exclusiveMaximum)&&oe(e.exclusiveMinimum)&&oe(e.maximum)&&oe(e.minimum)&&oe(e.multipleOf)}function Q(e){return K(e,"Object")&&e.type==="object"&&ne(e.$id)&&bu(e.properties)&&gu(e.additionalProperties)&&oe(e.minProperties)&&oe(e.maxProperties)}function mr(e){return K(e,"Promise")&&e.type==="Promise"&&ne(e.$id)&&fe(e.item)}function _e(e){return K(e,"Record")&&e.type==="object"&&ne(e.$id)&&gu(e.additionalProperties)&&Te(e.patternProperties)&&(t=>{const r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&hu(r[0])&&Te(t.patternProperties)&&fe(t.patternProperties[r[0]])})(e)}function xu(e){return K(e,"Ref")&&ne(e.$id)&&ye(e.$ref)}function cr(e){return K(e,"RegExp")&&ne(e.$id)&&ye(e.source)&&ye(e.flags)&&oe(e.maxLength)&&oe(e.minLength)}function De(e){return K(e,"String")&&e.type==="string"&&ne(e.$id)&&oe(e.minLength)&&oe(e.maxLength)&&V_(e.pattern)&&G_(e.format)}function Qr(e){return K(e,"Symbol")&&e.type==="symbol"&&ne(e.$id)}function rt(e){return K(e,"TemplateLiteral")&&e.type==="string"&&ye(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function K_(e){return K(e,"This")&&ne(e.$id)&&ye(e.$ref)}function Ss(e){return Te(e)&&ht in e}function xt(e){return K(e,"Tuple")&&e.type==="array"&&ne(e.$id)&&Tt(e.minItems)&&Tt(e.maxItems)&&e.minItems===e.maxItems&&(pe(e.items)&&pe(e.additionalItems)&&e.minItems===0||dt(e.items)&&e.items.every(t=>fe(t)))}function qt(e){return K(e,"Undefined")&&e.type==="undefined"&&ne(e.$id)}function ue(e){return K(e,"Union")&&ne(e.$id)&&Te(e)&&dt(e.anyOf)&&e.anyOf.every(t=>fe(t))}function wn(e){return K(e,"Uint8Array")&&e.type==="Uint8Array"&&ne(e.$id)&&oe(e.minByteLength)&&oe(e.maxByteLength)}function nt(e){return K(e,"Unknown")&&ne(e.$id)}function X_(e){return K(e,"Unsafe")}function ks(e){return K(e,"Void")&&e.type==="void"&&ne(e.$id)}function Q_(e){return Te(e)&&q in e&&ye(e[q])&&!Z_.includes(e[q])}function fe(e){return Te(e)&&(tt(e)||ot(e)||It(e)||vn(e)||bn(e)||dr(e)||Rs(e)||pr(e)||ze(e)||$e(e)||_n(e)||Ze(e)||Gt(e)||Me(e)||pt(e)||ar(e)||Xo(e)||Oe(e)||Q(e)||mr(e)||_e(e)||xu(e)||cr(e)||De(e)||Qr(e)||rt(e)||K_(e)||xt(e)||qt(e)||ue(e)||wn(e)||nt(e)||X_(e)||ks(e)||Q_(e))}const ew="(true|false)",Mn="(0|[1-9][0-9]*)",Ou="(.*)",en=`^${Mn}$`,ss=`^${Ou}$`;function tw(e,t){return e.includes(t)}function rw(e){return[...new Set(e)]}function nw(e,t){return e.filter(r=>t.includes(r))}function sw(e,t){return e.reduce((r,n)=>nw(r,n),t)}function ow(e){return e.length===1?e[0]:e.length>1?sw(e.slice(1),e[0]):[]}function iw(e){return e.reduce((t,r)=>[...t,...r],[])}function tn(e={}){return{...e,[q]:"Any"}}function $u(e,t={}){return{...t,[q]:"Array",type:"array",items:H(e)}}function Ru(e,t={}){return{...t,[q]:"AsyncIterator",type:"AsyncIterator",items:H(e)}}function aw(e,t){const{[t]:r,...n}=e;return n}function qe(e,t){return t.reduce((r,n)=>aw(r,n),e)}function Le(e={}){return{...e,[q]:"Never",not:{}}}function Re(e){return{[q]:"MappedResult",properties:e}}function Su(e,t,r){return{...r,[q]:"Constructor",type:"Constructor",parameters:ut(e),returns:H(t)}}function Fs(e,t,r){return{...r,[q]:"Function",type:"Function",parameters:ut(e),returns:H(t)}}function yo(e,t){return{...t,[q]:"Union",anyOf:ut(e)}}function cw(e){return e.some(t=>lt(t))}function wa(e){return e.map(t=>lt(t)?uw(t):t)}function uw(e){return qe(e,[Vt])}function lw(e,t){return cw(e)?Yt(yo(wa(e),t)):yo(wa(e),t)}function hr(e,t={}){return e.length===0?Le(t):e.length===1?H(e[0],t):lw(e,t)}function Ie(e,t={}){return e.length===0?Le(t):e.length===1?H(e[0],t):yo(e,t)}class xa extends yn{}function Qo(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function gt(e,t){return Qo(e,t,"(")}function rn(e,t){return Qo(e,t,")")}function ku(e,t){return Qo(e,t,"|")}function fw(e){if(!(gt(e,0)&&rn(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(gt(e,r)&&(t+=1),rn(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}function dw(e){return e.slice(1,e.length-1)}function pw(e){let t=0;for(let r=0;r<e.length;r++)if(gt(e,r)&&(t+=1),rn(e,r)&&(t-=1),ku(e,r)&&t===0)return!0;return!1}function mw(e){for(let t=0;t<e.length;t++)if(gt(e,t))return!0;return!1}function hw(e){let[t,r]=[0,0];const n=[];for(let i=0;i<e.length;i++)if(gt(e,i)&&(t+=1),rn(e,i)&&(t-=1),ku(e,i)&&t===0){const c=e.slice(r,i);c.length>0&&n.push(ur(c)),r=i+1}const o=e.slice(r);return o.length>0&&n.push(ur(o)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}function gw(e){function t(o,i){if(!gt(o,i))throw new xa("TemplateLiteralParser: Index must point to open parens");let c=0;for(let s=i;s<o.length;s++)if(gt(o,s)&&(c+=1),rn(o,s)&&(c-=1),c===0)return[i,s];throw new xa("TemplateLiteralParser: Unclosed group parens in expression")}function r(o,i){for(let c=i;c<o.length;c++)if(gt(o,c))return[i,c];return[i,o.length]}const n=[];for(let o=0;o<e.length;o++)if(gt(e,o)){const[i,c]=t(e,o),s=e.slice(i,c+1);n.push(ur(s)),o=c}else{const[i,c]=r(e,o),s=e.slice(i,c);s.length>0&&n.push(ur(s)),o=c-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}function ur(e){return fw(e)?ur(dw(e)):pw(e)?hw(e):mw(e)?gw(e):{type:"const",const:e}}function ei(e){return ur(e.slice(1,e.length-1))}class yw extends yn{}function bw(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function vw(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function _w(e){return e.type==="const"&&e.const===".*"}function nn(e){return bw(e)||_w(e)?!1:vw(e)?!0:e.type==="and"?e.expr.every(t=>nn(t)):e.type==="or"?e.expr.every(t=>nn(t)):e.type==="const"?!0:(()=>{throw new yw("Unknown expression type")})()}function ww(e){const t=ei(e.pattern);return nn(t)}class xw extends yn{}function*Fu(e){if(e.length===1)return yield*e[0];for(const t of e[0])for(const r of Fu(e.slice(1)))yield`${t}${r}`}function*Ow(e){return yield*Fu(e.expr.map(t=>[...As(t)]))}function*$w(e){for(const t of e.expr)yield*As(t)}function*Rw(e){return yield e.const}function*As(e){return e.type==="and"?yield*Ow(e):e.type==="or"?yield*$w(e):e.type==="const"?yield*Rw(e):(()=>{throw new xw("Unknown expression")})()}function Au(e){const t=ei(e.pattern);return nn(t)?[...As(t)]:[]}function ve(e,t={}){return{...t,[q]:"Literal",const:e,type:typeof e}}function Eu(e={}){return{...e,[q]:"Boolean",type:"boolean"}}function ti(e={}){return{...e,[q]:"BigInt",type:"bigint"}}function gr(e={}){return{...e,[q]:"Number",type:"number"}}function sn(e={}){return{...e,[q]:"String",type:"string"}}function*Sw(e){const t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield Eu():t==="number"?yield gr():t==="bigint"?yield ti():t==="string"?yield sn():yield(()=>{const r=t.split("|").map(n=>ve(n.trim()));return r.length===0?Le():r.length===1?r[0]:hr(r)})()}function*kw(e){if(e[1]!=="{"){const t=ve("$"),r=bo(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){const r=Sw(e.slice(2,t)),n=bo(e.slice(t+1));return yield*[...r,...n]}yield ve(e)}function*bo(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){const r=ve(e.slice(0,t)),n=kw(e.slice(t));return yield*[r,...n]}yield ve(e)}function Fw(e){return[...bo(e)]}class Aw extends yn{}function Ew(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tu(e,t){return rt(e)?e.pattern.slice(1,e.pattern.length-1):ue(e)?`(${e.anyOf.map(r=>Tu(r,t)).join("|")})`:Oe(e)?`${t}${Mn}`:ze(e)?`${t}${Mn}`:vn(e)?`${t}${Mn}`:De(e)?`${t}${Ou}`:Ze(e)?`${t}${Ew(e.const.toString())}`:It(e)?`${t}${ew}`:(()=>{throw new Aw(`Unexpected Kind '${e[q]}'`)})()}function Oa(e){return`^${e.map(t=>Tu(t,"")).join("")}$`}function os(e){const r=Au(e).map(n=>ve(n));return hr(r)}function ju(e,t={}){const r=ye(e)?Oa(Fw(e)):Oa(e);return{...t,[q]:"TemplateLiteral",type:"string",pattern:r}}function Tw(e){return Au(e).map(r=>r.toString())}function jw(e){return e.reduce((t,r)=>[...t,...Pt(r)],[])}function Cw(e){return[e.toString()]}function Pt(e){return[...new Set(rt(e)?Tw(e):ue(e)?jw(e.anyOf):Ze(e)?Cw(e.const):Oe(e)?["[number]"]:ze(e)?["[number]"]:[])]}function Iw(e,t,r){return globalThis.Object.getOwnPropertyNames(t).reduce((n,o)=>({...n,[o]:ri(e,Pt(t[o]),r)}),{})}function Pw(e,t,r){return Iw(e,t.properties,r)}function Nw(e,t,r){const n=Pw(e,t,r);return Re(n)}function Cu(e,t){return e.map(r=>Iu(r,t))}function Dw(e){return e.filter(t=>!pt(t))}function Mw(e,t){return Lu(Dw(Cu(e,t)))}function Lw(e,t){return hr(Cu(e,t))}function Uw(e,t){return t in e?e[t]:t==="[number]"?hr(e):Le()}function Bw(e,t){return t==="[number]"?e:Le()}function Hw(e,t){return t in e?e[t]:Le()}function Iu(e,t){return $e(e)?Mw(e.allOf,t):ue(e)?Lw(e.anyOf,t):xt(e)?Uw(e.items??[],t):ot(e)?Bw(e.items,t):Q(e)?Hw(e.properties,t):Le()}function Pu(e,t){return t.map(r=>Iu(e,r))}function $a(e,t){return hr(Pu(e,t))}function ri(e,t,r={}){return Me(t)?H(Nw(e,t,r)):Gt(t)?H(Zw(e,t,r)):fe(t)?H($a(e,Pt(t)),r):H($a(e,t),r)}function qw(e,t,r){return{[t]:ri(e,[t],r)}}function Ww(e,t,r){return t.reduce((n,o)=>({...n,...qw(e,o,r)}),{})}function zw(e,t,r){return Ww(e,t.keys,r)}function Zw(e,t,r){const n=zw(e,t,r);return Re(n)}function Nu(e,t={}){return{...t,[q]:"Iterator",type:"Iterator",items:H(e)}}function Vw(e,t={}){const r=globalThis.Object.getOwnPropertyNames(e),n=r.filter(s=>lt(e[s])),o=r.filter(s=>!n.includes(s)),i=fe(t.additionalProperties)?{additionalProperties:H(t.additionalProperties)}:{},c=r.reduce((s,h)=>({...s,[h]:H(e[h])}),{});return o.length>0?{...t,...i,[q]:"Object",type:"object",properties:c,required:o}:{...t,...i,[q]:"Object",type:"object",properties:c}}const je=Vw;function Du(e,t={}){return{...t,[q]:"Promise",type:"Promise",item:H(e)}}function Gw(e){return qe(H(e),[Os])}function Jw(e){return{...H(e),[Os]:"Readonly"}}function Yw(e,t){return t===!1?Gw(e):Jw(e)}function Jt(e,t){const r=t??!0;return Me(e)?Qw(e,r):Yw(e,r)}function Kw(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:Jt(e[n],t)}),{})}function Xw(e,t){return Kw(e.properties,t)}function Qw(e,t){const r=Xw(e,t);return Re(r)}function xn(e,t={}){const[r,n,o]=[!1,e.length,e.length];return e.length>0?{...t,[q]:"Tuple",type:"array",items:ut(e),additionalItems:r,minItems:n,maxItems:o}:{...t,[q]:"Tuple",type:"array",minItems:n,maxItems:o}}function Mu(e,t){return e in t?Ue(e,t[e]):Re(t)}function e0(e){return{[e]:ve(e)}}function t0(e){return e.reduce((t,r)=>({...t,[r]:ve(r)}),{})}function r0(e,t){return tw(t,e)?e0(e):t0(t)}function n0(e,t){const r=r0(e,t);return Mu(e,r)}function Rr(e,t){return t.map(r=>Ue(e,r))}function s0(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:Ue(e,t[n])}),{})}function Ue(e,t){return lt(t)?Yt(Ue(e,qe(t,[Vt]))):J_(t)?Jt(Ue(e,qe(t,[Os]))):Me(t)?Mu(e,t.properties):Gt(t)?n0(e,t.keys):dr(t)?Su(Rr(e,t.parameters),Ue(e,t.returns)):pr(t)?Fs(Rr(e,t.parameters),Ue(e,t.returns)):bn(t)?Ru(Ue(e,t.items)):_n(t)?Nu(Ue(e,t.items)):$e(t)?Kt(Rr(e,t.allOf)):ue(t)?Ie(Rr(e,t.anyOf)):xt(t)?xn(Rr(e,t.items??[])):Q(t)?je(s0(e,t.properties)):ot(t)?$u(Ue(e,t.items)):mr(t)?Du(Ue(e,t.item)):t}function o0(e,t,r={}){return e.reduce((n,o)=>({...n,[o]:Ue(o,t)}),{})}function i0(e,t,r={}){const n=fe(e)?Pt(e):e,o=t({[q]:"MappedKey",keys:n}),i=o0(n,o);return H(je(i),r)}function a0(e){return qe(H(e),[Vt])}function c0(e){return{...H(e),[Vt]:"Optional"}}function u0(e,t){return t===!1?a0(e):c0(e)}function Yt(e,t){const r=t??!0;return Me(e)?d0(e,r):u0(e,r)}function l0(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:Yt(e[n],t)}),{})}function f0(e,t){return l0(e.properties,t)}function d0(e,t){const r=f0(e,t);return Re(r)}function vo(e,t){const r=e.every(o=>Q(o)),n=fe(t.unevaluatedProperties)?{unevaluatedProperties:H(t.unevaluatedProperties)}:{};return t.unevaluatedProperties===!1||fe(t.unevaluatedProperties)||r?{...t,...n,[q]:"Intersect",type:"object",allOf:ut(e)}:{...t,...n,[q]:"Intersect",allOf:ut(e)}}function p0(e){return e.every(t=>lt(t))}function m0(e){return qe(e,[Vt])}function Ra(e){return e.map(t=>lt(t)?m0(t):t)}function h0(e,t){return p0(e)?Yt(vo(Ra(e),t)):vo(Ra(e),t)}function Lu(e,t={}){if(e.length===0)return Le(t);if(e.length===1)return H(e[0],t);if(e.some(r=>Ss(r)))throw new Error("Cannot intersect transform types");return h0(e,t)}function Kt(e,t={}){if(e.length===0)return Le(t);if(e.length===1)return H(e[0],t);if(e.some(r=>Ss(r)))throw new Error("Cannot intersect transform types");return vo(e,t)}function Uu(e){return e.map(t=>ni(t))}function g0(e){return Kt(Uu(e))}function y0(e){return Ie(Uu(e))}function b0(e){return ni(e)}function ni(e){return $e(e)?g0(e.allOf):ue(e)?y0(e.anyOf):mr(e)?b0(e.item):e}function v0(e,t={}){return H(ni(e),t)}function Bu(e){return e.reduce((t,r)=>[...t,si(r)],[])}function _0(e){const t=Bu(e);return iw(t)}function w0(e){const t=Bu(e);return ow(t)}function x0(e){return e.map((t,r)=>r.toString())}function O0(e){return["[number]"]}function $0(e){return globalThis.Object.getOwnPropertyNames(e)}function R0(e){return[]}function si(e){return $e(e)?_0(e.allOf):ue(e)?w0(e.anyOf):xt(e)?x0(e.items??[]):ot(e)?O0(e.items):Q(e)?$0(e.properties):_e(e)?R0(e.patternProperties):[]}function S0(e){return e.map(t=>t==="[number]"?gr():ve(t))}function Hu(e,t={}){if(Me(e))return A0(e,t);{const r=si(e),n=S0(r),o=hr(n);return H(o,t)}}function k0(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:Hu(e[n],t)}),{})}function F0(e,t){return k0(e.properties,t)}function A0(e,t){const r=F0(e,t);return Re(r)}function E0(e){return e.reduce((t,r)=>rw([...t,...si(r)]),[])}function T0(e){return e.filter(t=>!pt(t))}function j0(e,t){return e.reduce((r,n)=>T0([...r,...Pu(n,[t])]),[])}function C0(e,t){return t.reduce((r,n)=>({...r,[n]:Lu(j0(e,n))}),{})}function I0(e,t={}){const r=E0(e),n=C0(e,r);return je(n,t)}function qu(e={}){return{...e,[q]:"Date",type:"Date"}}function Wu(e={}){return{...e,[q]:"Null",type:"null"}}function zu(e){return{...e,[q]:"Symbol",type:"symbol"}}function Zu(e={}){return{...e,[q]:"Undefined",type:"undefined"}}function Vu(e={}){return{...e,[q]:"Uint8Array",type:"Uint8Array"}}function oi(e={}){return{...e,[q]:"Unknown"}}function P0(e){return e.map(t=>ii(t,!1))}function N0(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:Jt(ii(e[r],!1))}),{})}function An(e,t){return t===!0?e:Jt(e)}function ii(e,t){return I_(e)||N_(e)?An(tn(),t):dt(e)?Jt(xn(P0(e))):xs(e)?Vu():mu(e)?qu():Te(e)?An(je(N0(e)),t):P_(e)?An(Fs([],oi()),t):pe(e)?Zu():D_(e)?Wu():L_(e)?zu():pu(e)?ti():Tt(e)||ws(e)||ye(e)?ve(e):je({})}function D0(e,t={}){return H(ii(e,!0),t)}function M0(e,t={}){return xn(ut(e.parameters),{...t})}function On(e,t){return e.map(r=>mt(r,t))}function L0(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:mt(e[n],t)}),{})}function U0(e,t){return e.parameters=On(e.parameters,t),e.returns=mt(e.returns,t),e}function B0(e,t){return e.parameters=On(e.parameters,t),e.returns=mt(e.returns,t),e}function H0(e,t){return e.allOf=On(e.allOf,t),e}function q0(e,t){return e.anyOf=On(e.anyOf,t),e}function W0(e,t){return pe(e.items)||(e.items=On(e.items,t)),e}function z0(e,t){return e.items=mt(e.items,t),e}function Z0(e,t){return e.properties=L0(e.properties,t),e}function V0(e,t){return e.item=mt(e.item,t),e}function G0(e,t){return e.items=mt(e.items,t),e}function J0(e,t){return e.items=mt(e.items,t),e}function Y0(e,t){const r=t.find(o=>o.$id===e.$ref);if(r===void 0)throw Error(`Unable to dereference schema with $id ${e.$ref}`);const n=qe(r,["$id"]);return mt(n,t)}function K0(e,t){return dr(e)?U0(e,t):pr(e)?B0(e,t):$e(e)?H0(e,t):ue(e)?q0(e,t):xt(e)?W0(e,t):ot(e)?z0(e,t):Q(e)?Z0(e,t):mr(e)?V0(e,t):bn(e)?G0(e,t):_n(e)?J0(e,t):xu(e)?Y0(e,t):e}function mt(e,t){return K0(H(e),ut(t))}function X0(e,t={}){if(pe(e))throw new Error("Enum undefined or empty");const r=globalThis.Object.getOwnPropertyNames(e).filter(i=>isNaN(i)).map(i=>e[i]),o=[...new Set(r)].map(i=>ve(i));return Ie(o,{...t,[$s]:"Enum"})}class Q0 extends yn{}var A;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(A||(A={}));function We(e){return e===A.False?e:A.True}function yr(e){throw new Q0(e)}function me(e){return pt(e)||$e(e)||ue(e)||nt(e)||tt(e)}function he(e,t){return pt(t)?Yu():$e(t)?Es(e,t):ue(t)?ci(e,t):nt(t)?el():tt(t)?ai():yr("StructuralRight")}function ai(e,t){return A.True}function ex(e,t){return $e(t)?Es(e,t):ue(t)&&t.anyOf.some(r=>tt(r)||nt(r))?A.True:ue(t)?A.Union:nt(t)||tt(t)?A.True:A.Union}function tx(e,t){return nt(e)?A.False:tt(e)?A.Union:pt(e)?A.True:A.False}function rx(e,t){return Q(t)&&Ts(t)?A.True:me(t)?he(e,t):ot(t)?We(re(e.items,t.items)):A.False}function nx(e,t){return me(t)?he(e,t):bn(t)?We(re(e.items,t.items)):A.False}function sx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):vn(t)?A.True:A.False}function Gu(e,t){return wu(e)||It(e)?A.True:A.False}function ox(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):It(t)?A.True:A.False}function ix(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):dr(t)?e.parameters.length>t.parameters.length?A.False:e.parameters.every((r,n)=>We(re(t.parameters[n],r))===A.True)?We(re(e.returns,t.returns)):A.False:A.False}function ax(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):Rs(t)?A.True:A.False}function cx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):pr(t)?e.parameters.length>t.parameters.length?A.False:e.parameters.every((r,n)=>We(re(t.parameters[n],r))===A.True)?We(re(e.returns,t.returns)):A.False:A.False}function Ju(e,t){return Ze(e)&&Tt(e.const)||Oe(e)||ze(e)?A.True:A.False}function ux(e,t){return ze(t)||Oe(t)?A.True:me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):A.False}function Es(e,t){return t.allOf.every(r=>re(e,r)===A.True)?A.True:A.False}function lx(e,t){return e.allOf.some(r=>re(r,t)===A.True)?A.True:A.False}function fx(e,t){return me(t)?he(e,t):_n(t)?We(re(e.items,t.items)):A.False}function dx(e,t){return Ze(t)&&t.const===e.const?A.True:me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):De(t)?Qu(e):Oe(t)?Ku(e):ze(t)?Ju(e):It(t)?Gu(e):A.False}function Yu(e,t){return A.False}function px(e,t){return A.True}function Sa(e){let[t,r]=[e,0];for(;ar(t);)t=t.not,r+=1;return r%2===0?t:oi()}function mx(e,t){return ar(e)?re(Sa(e),t):ar(t)?re(e,Sa(t)):yr("Invalid fallthrough for Not")}function hx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):Xo(t)?A.True:A.False}function Ku(e,t){return _u(e)||Oe(e)||ze(e)?A.True:A.False}function gx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):ze(t)||Oe(t)?A.True:A.False}function Ce(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function ka(e){return Ts(e)}function Fa(e){return Ce(e,0)||Ce(e,1)&&"description"in e.properties&&ue(e.properties.description)&&e.properties.description.anyOf.length===2&&(De(e.properties.description.anyOf[0])&&qt(e.properties.description.anyOf[1])||De(e.properties.description.anyOf[1])&&qt(e.properties.description.anyOf[0]))}function zs(e){return Ce(e,0)}function Aa(e){return Ce(e,0)}function yx(e){return Ce(e,0)}function bx(e){return Ce(e,0)}function vx(e){return Ts(e)}function _x(e){const t=gr();return Ce(e,0)||Ce(e,1)&&"length"in e.properties&&We(re(e.properties.length,t))===A.True}function wx(e){return Ce(e,0)}function Ts(e){const t=gr();return Ce(e,0)||Ce(e,1)&&"length"in e.properties&&We(re(e.properties.length,t))===A.True}function xx(e){const t=Fs([tn()],tn());return Ce(e,0)||Ce(e,1)&&"then"in e.properties&&We(re(e.properties.then,t))===A.True}function Xu(e,t){return re(e,t)===A.False||lt(e)&&!lt(t)?A.False:A.True}function ke(e,t){return nt(e)?A.False:tt(e)?A.Union:pt(e)||vu(e)&&ka(t)||_u(e)&&zs(t)||wu(e)&&Aa(t)||Qr(e)&&Fa(t)||vn(e)&&yx(t)||De(e)&&ka(t)||Qr(e)&&Fa(t)||Oe(e)&&zs(t)||ze(e)&&zs(t)||It(e)&&Aa(t)||wn(e)&&vx(t)||Rs(e)&&bx(t)||dr(e)&&wx(t)||pr(e)&&_x(t)?A.True:_e(e)&&De(_o(e))?t[$s]==="Record"?A.True:A.False:_e(e)&&Oe(_o(e))?Ce(t,0)?A.True:A.False:A.False}function Ox(e,t){return me(t)?he(e,t):_e(t)?Ve(e,t):Q(t)?(()=>{for(const r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!lt(t.properties[r]))return A.False;if(lt(t.properties[r]))return A.True;if(Xu(e.properties[r],t.properties[r])===A.False)return A.False}return A.True})():A.False}function $x(e,t){return me(t)?he(e,t):Q(t)&&xx(t)?A.True:mr(t)?We(re(e.item,t.item)):A.False}function _o(e){return en in e.patternProperties?gr():ss in e.patternProperties?sn():yr("Unknown record key pattern")}function wo(e){return en in e.patternProperties?e.patternProperties[en]:ss in e.patternProperties?e.patternProperties[ss]:yr("Unable to get record value schema")}function Ve(e,t){const[r,n]=[_o(t),wo(t)];return vu(e)&&Oe(r)&&We(re(e,n))===A.True?A.True:wn(e)&&Oe(r)||De(e)&&Oe(r)||ot(e)&&Oe(r)?re(e,n):Q(e)?(()=>{for(const o of Object.getOwnPropertyNames(e.properties))if(Xu(n,e.properties[o])===A.False)return A.False;return A.True})():A.False}function Rx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?re(wo(e),wo(t)):A.False}function Sx(e,t){const r=cr(e)?sn():e,n=cr(t)?sn():t;return re(r,n)}function Qu(e,t){return Ze(e)&&ye(e.const)||De(e)?A.True:A.False}function kx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):De(t)?A.True:A.False}function Fx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):Qr(t)?A.True:A.False}function Ax(e,t){return rt(e)?re(os(e),t):rt(t)?re(e,os(t)):yr("Invalid fallthrough for TemplateLiteral")}function Ex(e,t){return ot(t)&&e.items!==void 0&&e.items.every(r=>re(r,t.items)===A.True)}function Tx(e,t){return pt(e)?A.True:nt(e)?A.False:tt(e)?A.Union:A.False}function jx(e,t){return me(t)?he(e,t):Q(t)&&Ts(t)||ot(t)&&Ex(e,t)?A.True:xt(t)?pe(e.items)&&!pe(t.items)||!pe(e.items)&&pe(t.items)?A.False:pe(e.items)&&!pe(t.items)||e.items.every((r,n)=>re(r,t.items[n])===A.True)?A.True:A.False:A.False}function Cx(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):wn(t)?A.True:A.False}function Ix(e,t){return me(t)?he(e,t):Q(t)?ke(e,t):_e(t)?Ve(e,t):ks(t)?Dx(e):qt(t)?A.True:A.False}function ci(e,t){return t.anyOf.some(r=>re(e,r)===A.True)?A.True:A.False}function Px(e,t){return e.anyOf.every(r=>re(r,t)===A.True)?A.True:A.False}function el(e,t){return A.True}function Nx(e,t){return pt(t)?Yu():$e(t)?Es(e,t):ue(t)?ci(e,t):tt(t)?ai():De(t)?Qu(e):Oe(t)?Ku(e):ze(t)?Ju(e):It(t)?Gu(e):ot(t)?tx(e):xt(t)?Tx(e):Q(t)?ke(e,t):nt(t)?A.True:A.False}function Dx(e,t){return qt(e)||qt(e)?A.True:A.False}function Mx(e,t){return $e(t)?Es(e,t):ue(t)?ci(e,t):nt(t)?el():tt(t)?ai():Q(t)?ke(e,t):ks(t)?A.True:A.False}function re(e,t){return rt(e)||rt(t)?Ax(e,t):cr(e)||cr(t)?Sx(e,t):ar(e)||ar(t)?mx(e,t):tt(e)?ex(e,t):ot(e)?rx(e,t):vn(e)?sx(e,t):It(e)?ox(e,t):bn(e)?nx(e,t):dr(e)?ix(e,t):Rs(e)?ax(e,t):pr(e)?cx(e,t):ze(e)?ux(e,t):$e(e)?lx(e,t):_n(e)?fx(e,t):Ze(e)?dx(e,t):pt(e)?px():Xo(e)?hx(e,t):Oe(e)?gx(e,t):Q(e)?Ox(e,t):_e(e)?Rx(e,t):De(e)?kx(e,t):Qr(e)?Fx(e,t):xt(e)?jx(e,t):mr(e)?$x(e,t):wn(e)?Cx(e,t):qt(e)?Ix(e,t):ue(e)?Px(e,t):nt(e)?Nx(e,t):ks(e)?Mx(e,t):yr(`Unknown left type operand '${e[q]}'`)}function $n(e,t){return re(e,t)}function Lx(e,t,r,n,o){return globalThis.Object.getOwnPropertyNames(e).reduce((i,c)=>({...i,[c]:ui(e[c],t,r,n,o)}),{})}function Ux(e,t,r,n,o){return Lx(e.properties,t,r,n,o)}function Bx(e,t,r,n,o){const i=Ux(e,t,r,n,o);return Re(i)}function Hx(e,t,r,n){const o=$n(e,t);return o===A.Union?Ie([r,n]):o===A.True?r:n}function ui(e,t,r,n,o={}){return Me(e)?Bx(e,t,r,n,o):Gt(e)?H(Zx(e,t,r,n,o)):H(Hx(e,t,r,n),o)}function qx(e,t,r,n,o){return{[e]:ui(ve(e),t,r,n,o)}}function Wx(e,t,r,n,o){return e.reduce((i,c)=>({...i,...qx(c,t,r,n,o)}),{})}function zx(e,t,r,n,o){return Wx(e.keys,t,r,n,o)}function Zx(e,t,r,n,o){const i=zx(e,t,r,n,o);return Re(i)}function Vx(e,t){return li(os(e),t)}function Gx(e,t){const r=e.filter(n=>$n(n,t)===A.False);return r.length===1?r[0]:Ie(r)}function li(e,t,r={}){return rt(e)?H(Vx(e,t),r):Me(e)?H(Kx(e,t),r):H(ue(e)?Gx(e.anyOf,t):$n(e,t)!==A.False?Le():e,r)}function Jx(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:li(e[n],t)}),{})}function Yx(e,t){return Jx(e.properties,t)}function Kx(e,t){const r=Yx(e,t);return Re(r)}function Xx(e,t){return fi(os(e),t)}function Qx(e,t){const r=e.filter(n=>$n(n,t)!==A.False);return r.length===1?r[0]:Ie(r)}function fi(e,t,r={}){return rt(e)?H(Xx(e,t),r):Me(e)?H(rO(e,t),r):H(ue(e)?Qx(e.anyOf,t):$n(e,t)!==A.False?e:Le(),r)}function eO(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:fi(e[n],t)}),{})}function tO(e,t){return eO(e.properties,t)}function rO(e,t){const r=tO(e,t);return Re(r)}function nO(e,t={}){return H(e.returns,t)}function sO(e={}){return{...e,[q]:"Integer",type:"integer"}}function oO(e,t,r){return{[e]:br(ve(e),t,r)}}function iO(e,t,r){return e.reduce((n,o)=>({...n,...oO(o,t,r)}),{})}function aO(e,t,r){return iO(e.keys,t,r)}function cO(e,t,r){const n=aO(e,t,r);return Re(n)}function uO(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function lO(e){const[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function fO(e){return e.toUpperCase()}function dO(e){return e.toLowerCase()}function pO(e,t,r){const n=ei(e.pattern);if(!nn(n))return{...e,pattern:tl(e.pattern,t)};const c=[...As(n)].map(y=>ve(y)),s=rl(c,t),h=Ie(s);return ju([h],r)}function tl(e,t){return typeof e=="string"?t==="Uncapitalize"?uO(e):t==="Capitalize"?lO(e):t==="Uppercase"?fO(e):t==="Lowercase"?dO(e):e:e.toString()}function rl(e,t){return e.map(r=>br(r,t))}function br(e,t,r={}){return Gt(e)?cO(e,t,r):rt(e)?pO(e,t,e):ue(e)?Ie(rl(e.anyOf,t),r):Ze(e)?ve(tl(e.const,t),r):e}function mO(e,t={}){return br(e,"Capitalize",t)}function hO(e,t={}){return br(e,"Lowercase",t)}function gO(e,t={}){return br(e,"Uncapitalize",t)}function yO(e,t={}){return br(e,"Uppercase",t)}function bO(e,t){return{...t,[q]:"Not",not:H(e)}}function vO(e,t,r){return globalThis.Object.getOwnPropertyNames(e).reduce((n,o)=>({...n,[o]:pi(e[o],t,r)}),{})}function _O(e,t,r){return vO(e.properties,t,r)}function wO(e,t,r){const n=_O(e,t,r);return Re(n)}function xO(e,t){return e.map(r=>di(r,t))}function OO(e,t){return e.map(r=>di(r,t))}function $O(e,t){const{[t]:r,...n}=e;return n}function RO(e,t){return t.reduce((r,n)=>$O(r,n),e)}function di(e,t){return $e(e)?Kt(xO(e.allOf,t)):ue(e)?Ie(OO(e.anyOf,t)):Q(e)?je(RO(e.properties,t)):je({})}function pi(e,t,r={}){if(Gt(t))return AO(e,t,r);if(Me(e))return wO(e,t,r);const n=fe(t)?Pt(t):t,o=qe(e,[ht,"$id","required"]),i=H(di(e,n),r);return{...o,...i}}function SO(e,t,r){return{[t]:pi(e,[t],r)}}function kO(e,t,r){return t.reduce((n,o)=>({...n,...SO(e,o,r)}),{})}function FO(e,t,r){return kO(e,t.keys,r)}function AO(e,t,r){const n=FO(e,t,r);return Re(n)}function EO(e,t={}){return xn(ut(e.parameters),{...t})}function Ea(e){return e.map(t=>nl(t))}function TO(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:Yt(e[r])}),{})}function nl(e){return $e(e)?Kt(Ea(e.allOf)):ue(e)?Ie(Ea(e.anyOf)):Q(e)?je(TO(e.properties)):je({})}function sl(e,t={}){if(Me(e))return IO(e,t);const r=qe(e,[ht,"$id","required"]),n=H(nl(e),t);return{...r,...n}}function jO(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:sl(e[n],t)}),{})}function CO(e,t){return jO(e.properties,t)}function IO(e,t){const r=CO(e,t);return Re(r)}function PO(e,t,r){return globalThis.Object.getOwnPropertyNames(e).reduce((n,o)=>({...n,[o]:hi(e[o],t,r)}),{})}function NO(e,t,r){return PO(e.properties,t,r)}function DO(e,t,r){const n=NO(e,t,r);return Re(n)}function MO(e,t){return e.map(r=>mi(r,t))}function LO(e,t){return e.map(r=>mi(r,t))}function UO(e,t){return t.reduce((r,n)=>n in e?{...r,[n]:e[n]}:r,{})}function mi(e,t){return $e(e)?Kt(MO(e.allOf,t)):ue(e)?Ie(LO(e.anyOf,t)):Q(e)?je(UO(e.properties,t)):je({})}function hi(e,t,r={}){if(Gt(t))return WO(e,t,r);if(Me(e))return DO(e,t,r);const n=fe(t)?Pt(t):t,o=qe(e,[ht,"$id","required"]),i=H(mi(e,n),r);return{...o,...i}}function BO(e,t,r){return{[t]:hi(e,[t],r)}}function HO(e,t,r){return t.reduce((n,o)=>({...n,...BO(e,o,r)}),{})}function qO(e,t,r){return HO(e,t.keys,r)}function WO(e,t,r){const n=qO(e,t,r);return Re(n)}function zO(e){return Jt(Yt(e))}function Rn(e,t,r){return{...r,[q]:"Record",type:"object",patternProperties:{[e]:H(t)}}}function gi(e,t,r){const n=e.reduce((o,i)=>({...o,[i]:H(t)}),{});return je(n,{...r,[$s]:"Record"})}function ZO(e,t,r){return ww(e)?gi(Pt(e),t,r):Rn(e.pattern,t,r)}function VO(e,t,r){return gi(Pt(Ie(e)),t,r)}function GO(e,t,r){return gi([e.toString()],t,r)}function JO(e,t,r){return Rn(e.source,t,r)}function YO(e,t,r){const n=pe(e.pattern)?ss:e.pattern;return Rn(n,t,r)}function KO(e,t,r){return Rn(en,t,r)}function XO(e,t,r){return Rn(en,t,r)}function QO(e,t,r={}){return ue(e)?VO(e.anyOf,t,r):rt(e)?ZO(e,t,r):Ze(e)?GO(e.const,t,r):ze(e)?KO(e,t,r):Oe(e)?XO(e,t,r):cr(e)?JO(e,t,r):De(e)?YO(e,t,r):Le(r)}let e$=0;function t$(e,t={}){pe(t.$id)&&(t.$id=`T${e$++}`);const r=e({[q]:"This",$ref:`${t.$id}`});return r.$id=t.$id,H({...t,[$s]:"Recursive",...r})}function r$(e,t={}){if(ye(e))return{...t,[q]:"Ref",$ref:e};if(pe(e.$id))throw new Error("Reference target type must specify an $id");return{...t,[q]:"Ref",$ref:e.$id}}function n$(e,t={}){const r=ye(e)?new globalThis.RegExp(e):e;return{...t,[q]:"RegExp",type:"RegExp",source:r.source,flags:r.flags}}function Ta(e){return e.map(t=>ol(t))}function s$(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:qe(e[r],[Vt])}),{})}function ol(e){return $e(e)?Kt(Ta(e.allOf)):ue(e)?Ie(Ta(e.anyOf)):Q(e)?je(s$(e.properties)):je({})}function il(e,t={}){if(Me(e))return a$(e,t);{const r=qe(e,[ht,"$id","required"]),n=H(ol(e),t);return{...r,...n}}}function o$(e,t){return globalThis.Object.getOwnPropertyNames(e).reduce((r,n)=>({...r,[n]:il(e[n],t)}),{})}function i$(e,t){return o$(e.properties,t)}function a$(e,t){const r=i$(e,t);return Re(r)}function c$(e){return $e(e)?[...e.allOf]:ue(e)?[...e.anyOf]:xt(e)?[...e.items??[]]:[]}function u$(e){return ut(c$(e))}function l$(e,t={}){return H(e.returns,t)}function f$(e){return JSON.parse(JSON.stringify(e))}class d${constructor(t){Sn(this,"schema");this.schema=t}Decode(t){return new p$(this.schema,t)}}class p${constructor(t,r){Sn(this,"schema");Sn(this,"decode");this.schema=t,this.decode=r}EncodeTransform(t,r){const i={Encode:c=>r[ht].Encode(t(c)),Decode:c=>this.decode(r[ht].Decode(c))};return{...r,[ht]:i}}EncodeSchema(t,r){const n={Decode:this.decode,Encode:t};return{...r,[ht]:n}}Encode(t){const r=H(this.schema);return Ss(r)?this.EncodeTransform(t,r):this.EncodeSchema(t,r)}}function m$(e){return new d$(e)}function h$(e={}){return{...e,[q]:e[q]??"Unsafe"}}function g$(e={}){return{...e,[q]:"Void",type:"void"}}const y$=Object.freeze(Object.defineProperty({__proto__:null,Any:tn,Array:$u,AsyncIterator:Ru,Awaited:v0,BigInt:ti,Boolean:Eu,Capitalize:mO,Composite:I0,Const:D0,Constructor:Su,ConstructorParameters:M0,Date:qu,Deref:mt,Enum:X0,Exclude:li,Extends:ui,Extract:fi,Function:Fs,Index:ri,InstanceType:nO,Integer:sO,Intersect:Kt,Iterator:Nu,KeyOf:Hu,Literal:ve,Lowercase:hO,Mapped:i0,Never:Le,Not:bO,Null:Wu,Number:gr,Object:je,Omit:pi,Optional:Yt,Parameters:EO,Partial:sl,Pick:hi,Promise:Du,Readonly:Jt,ReadonlyOptional:zO,Record:QO,Recursive:t$,Ref:r$,RegExp:n$,Required:il,Rest:u$,ReturnType:l$,Strict:f$,String:sn,Symbol:zu,TemplateLiteral:ju,Transform:m$,Tuple:xn,Uint8Array:Vu,Uncapitalize:gO,Undefined:Zu,Union:Ie,Unknown:oi,Unsafe:h$,Uppercase:yO,Void:g$},Symbol.toStringTag,{value:"Module"})),$=y$,I=$.String({$id:"Color"}),Je=$.String({$id:"FamilyName"}),Qt=$.String({$id:"FontWeight"}),Tr=$.String({$id:"Length"}),jr=$.String({$id:"Percentage"}),Cr=$.String({$id:"BoxShadow"}),b$=$.String({$id:"Number"}),v$=$.String({$id:"Size"}),St=$.Union([$.String(),$.Literal("thin"),$.Literal("medium"),$.Literal("thick")],{$id:"LineWidth"}),Zs=$.Optional($.Object({columnGap:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)])),rowGap:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)])),field:$.Optional($.Object({label:$.Optional($.Object({foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),input:$.Optional($.Object({background:$.Optional($.Ref(I)),backgroundSubdued:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),foregroundSubdued:$.Optional($.Ref(I)),borderColor:$.Optional($.Ref(I)),borderColorHover:$.Optional($.Ref(I)),borderColorFocus:$.Optional($.Ref(I)),boxShadow:$.Optional($.Ref(Cr)),boxShadowHover:$.Optional($.Ref(Cr)),boxShadowFocus:$.Optional($.Ref(Cr)),height:$.Optional($.Ref(v$)),padding:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)]))}))}))})),_$=$.Object({borderRadius:$.Optional($.Union([$.Ref(Tr),$.Ref(jr)])),borderWidth:$.Optional($.Ref(St)),foreground:$.Optional($.Ref(I)),foregroundSubdued:$.Optional($.Ref(I)),foregroundAccent:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundNormal:$.Optional($.Ref(I)),backgroundAccent:$.Optional($.Ref(I)),backgroundSubdued:$.Optional($.Ref(I)),borderColor:$.Optional($.Ref(I)),borderColorAccent:$.Optional($.Ref(I)),borderColorSubdued:$.Optional($.Ref(I)),primary:$.Optional($.Ref(I)),primaryBackground:$.Optional($.Ref(I)),primarySubdued:$.Optional($.Ref(I)),primaryAccent:$.Optional($.Ref(I)),secondary:$.Optional($.Ref(I)),secondaryBackground:$.Optional($.Ref(I)),secondarySubdued:$.Optional($.Ref(I)),secondaryAccent:$.Optional($.Ref(I)),success:$.Optional($.Ref(I)),successBackground:$.Optional($.Ref(I)),successSubdued:$.Optional($.Ref(I)),successAccent:$.Optional($.Ref(I)),warning:$.Optional($.Ref(I)),warningBackground:$.Optional($.Ref(I)),warningSubdued:$.Optional($.Ref(I)),warningAccent:$.Optional($.Ref(I)),danger:$.Optional($.Ref(I)),dangerBackground:$.Optional($.Ref(I)),dangerSubdued:$.Optional($.Ref(I)),dangerAccent:$.Optional($.Ref(I)),fonts:$.Optional($.Object({display:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),sans:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),serif:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))})),monospace:$.Optional($.Object({fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))}))})),navigation:$.Optional($.Object({background:$.Optional($.Ref(I)),backgroundAccent:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),project:$.Optional($.Object({background:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I))})),modules:$.Optional($.Object({background:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),button:$.Optional($.Object({foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundHover:$.Optional($.Ref(I)),backgroundActive:$.Optional($.Ref(I))}))})),list:$.Optional($.Object({icon:$.Optional($.Object({foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I))})),foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundHover:$.Optional($.Ref(I)),backgroundActive:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),divider:$.Object({borderColor:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St))})}))})),header:$.Optional($.Object({background:$.Optional($.Ref(I)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),boxShadow:$.Optional($.Ref(Cr)),headline:$.Optional($.Object({foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je))})),title:$.Optional($.Object({foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),fontWeight:$.Optional($.Ref(Qt))}))})),form:Zs,sidebar:$.Optional($.Object({background:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I)),section:$.Optional($.Object({toggle:$.Optional($.Object({icon:$.Optional($.Object({foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I))})),foreground:$.Optional($.Ref(I)),foregroundHover:$.Optional($.Ref(I)),foregroundActive:$.Optional($.Ref(I)),background:$.Optional($.Ref(I)),backgroundHover:$.Optional($.Ref(I)),backgroundActive:$.Optional($.Ref(I)),fontFamily:$.Optional($.Ref(Je)),borderWidth:$.Optional($.Ref(St)),borderColor:$.Optional($.Ref(I))})),form:Zs}))})),public:$.Optional($.Object({background:$.Optional($.Ref(I)),foreground:$.Optional($.Ref(I)),foregroundAccent:$.Optional($.Ref(I)),art:$.Optional($.Object({background:$.Optional($.Ref(I)),primary:$.Optional($.Ref(I)),secondary:$.Optional($.Ref(I)),speed:$.Optional($.Ref(b$))})),form:Zs})),popover:$.Optional($.Object({menu:$.Optional($.Object({background:$.Optional($.Ref(I)),borderRadius:$.Optional($.Optional($.Union([$.Ref(Tr),$.Ref(jr)]))),boxShadow:$.Optional($.Ref(Cr))}))}))}),w$=$.Object({id:$.String(),name:$.String(),appearance:$.Union([$.Literal("light"),$.Literal("dark")]),rules:_$}),x$=e=>{const t=ae(()=>{const n=new Map,o=(i,c=[])=>{for(const[s,h]of Object.entries(i))typeof h=="object"&&h!==null&&("type"in h&&h.type==="object"&&"properties"in h&&o(h.properties,[...c,s]),"$ref"in h&&h.$ref==="FamilyName"&&(n.has(c)?n.set(c,{family:s,weight:n.get(c).weight}):n.set(c,{family:s,weight:null})),"$ref"in h&&h.$ref==="FontWeight"&&(n.has(c)?n.set(c,{family:n.get(c).family,weight:s}):n.set(c,{family:null,weight:s})))};return o(w$.properties.rules.properties),n}),r=ae(()=>{const n=new Map;for(const[o,{family:i,weight:c}]of t.value.entries()){let s=null,h=null;if(i&&(s=qn(te(e).rules,[...o,i])),c&&(h=qn(te(e).rules,[...o,c])),s){const y=s.split(",");for(const g of y){const a=g.trim();if(a.startsWith("var(--")){y.push(F_(a.slice(6,-1)));continue}if((a.startsWith('"')&&a.endsWith('"'))===!1)continue;const f=a.slice(1,-1);n.has(f)?n.get(f).add(h??"400"):n.set(f,new Set([h??"400"]))}}}return n});return{googleFonts:ae(()=>{const n=[];for(const[o,i]of r.value.entries())if(["Inter","Merriweather","Fira Mono"].includes(o)===!1){const c=Array.from(i).join(";");n.push(`${o.replace(" ","+")}:wght@${c}`)}return n})}},js=e=>e,yi=js({id:"Directus Default",name:"$t:theme_directus_default",appearance:"dark",rules:{borderRadius:"6px",borderWidth:"2px",foreground:"#c9d1d9",foregroundAccent:"#f0f6fc",foregroundSubdued:"#666672",background:"#0d1117",backgroundNormal:"#21262e",backgroundAccent:"#30363d",backgroundSubdued:"#161b22",borderColor:"#21262e",borderColorAccent:"#30363d",borderColorSubdued:"#21262d",primary:"var(--project-color)",primaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 10%)",primarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 50%)",primaryAccent:"color-mix(in srgb, var(--theme--primary), #16151a 25%)",secondary:"#ff99dd",secondaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 10%)",secondarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 50%)",secondaryAccent:"color-mix(in srgb, var(--theme--secondary), #16151a 25%)",success:"#2ecda7",successBackground:"color-mix(in srgb, var(--theme--background), var(--theme--success) 10%)",successSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--success) 50%)",successAccent:"color-mix(in srgb, var(--theme--success), #16151a 25%)",warning:"#ffa439",warningBackground:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 10%)",warningSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 50%)",warningAccent:"color-mix(in srgb, var(--theme--warning), #16151a 25%)",danger:"#e35169",dangerBackground:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 10%)",dangerSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 50%)",dangerAccent:"color-mix(in srgb, var(--theme--danger), #16151a 25%)",fonts:{display:{fontFamily:'"Inter", system-ui',fontWeight:"700"},sans:{fontFamily:'"Inter", system-ui',fontWeight:"500"},serif:{fontFamily:'"Merriweather", serif',fontWeight:"500"},monospace:{fontFamily:'"Fira Mono", monospace',fontWeight:"500"}},navigation:{background:"#21262e",backgroundAccent:"#30363d",borderColor:"transparent",borderWidth:"0px",project:{borderColor:"transparent",borderWidth:"0px",background:"#30363d",foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--sans--font-family)"},modules:{background:"var(--theme--background)",borderColor:"transparent",borderWidth:"0px",button:{foreground:"var(--theme--foreground-subdued)",foregroundHover:"#fff",foregroundActive:"var(--theme--foreground-accent)",background:"transparent",backgroundHover:"transparent",backgroundActive:"#21262e"}},list:{icon:{foreground:"var(--theme--primary)",foregroundHover:"var(--theme--navigation--list--icon--foreground)",foregroundActive:"var(--theme--navigation--list--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--navigation--list--foreground)",foregroundActive:"var(--theme--navigation--list--foreground)",background:"transparent",backgroundHover:"#30363d",backgroundActive:"#30363d",fontFamily:"var(--theme--fonts--sans--font-family)",divider:{borderColor:"#30363d",borderWidth:"var(--theme--border-width)"}}},header:{background:"var(--theme--background)",borderColor:"transparent",borderWidth:"0px",boxShadow:"0 4px 7px -4px rgb(var(--black) / 0.2)",headline:{foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)"},title:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--display--font-family)",fontWeight:"var(--theme--fonts--display--font-weight)"}},form:{columnGap:"32px",rowGap:"40px",field:{label:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--sans--font-family)",fontWeight:"600"},input:{background:"var(--theme--background)",backgroundSubdued:"var(--theme--background-subdued)",foreground:"var(--theme--foreground)",foregroundSubdued:"var(--theme--foreground-subdued)",borderColor:"#21262e",borderColorHover:"#30363d",borderColorFocus:"var(--theme--primary)",boxShadow:"none",boxShadowHover:"none",boxShadowFocus:"0 0 16px -8px var(--theme--primary)",height:"60px",padding:"16px"}}},sidebar:{background:"#21262e",foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px",section:{toggle:{icon:{foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--icon--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--foreground)",background:"#30363d",backgroundHover:"var(--theme--sidebar--section--toggle--background)",backgroundActive:"var(--theme--sidebar--section--toggle--background)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},field:{input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"52px",padding:"12px"}}}}},public:{background:"var(--theme--background)",foreground:"var(--theme--foreground)",foregroundAccent:"var(--theme--foreground-accent)",art:{background:"#0e1c2f",primary:"var(--theme--primary)",secondary:"var(--theme--secondary)",speed:"1"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",field:{label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"var(--theme--form--field--input--height)",padding:"var(--theme--form--field--input--padding)"}}}},popover:{menu:{background:"#161b22",borderRadius:"var(--theme--border-radius)",boxShadow:"0px 0px 6px 0px rgb(0, 0, 0, 0.2)"}}}}),O$=js({id:"Directus Color Match",name:"$t:theme_directus_colormatch",appearance:"light",rules:{background:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 7%)",backgroundAccent:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 20%)",backgroundNormal:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 15%)",backgroundSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 10%)",borderColor:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 20%)",borderColorAccent:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 40%)",borderColorSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 15%)",borderRadius:"12px",borderWidth:"1px",foreground:"color-mix(in srgb, #000000, var(--theme--primary) 70%)",foregroundAccent:"color-mix(in srgb, #000000, var(--theme--primary) 50%)",foregroundSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 60%)",fonts:{display:{fontFamily:'"Montserrat", system-ui',fontWeight:"400"}},form:{field:{input:{background:"#FFFFFF",backgroundSubdued:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 13%)"}}},navigation:{background:"#FFFFFF",backgroundAccent:"var(--theme--background)",borderWidth:"var(--theme--border-width)",borderColor:"var(--theme--border-color-subdued)",modules:{background:"color-mix(in srgb, #000000, var(--theme--primary) 90%)",button:{backgroundActive:"#FFFFFF",foreground:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 20%)",foregroundActive:"var(--theme--primary)"}},project:{borderWidth:"1px",background:"#FFFFFF",borderColor:"var(--theme--border-color-subdued)"},list:{divider:{borderColor:"var(--theme--border-color-subdued)"},icon:{foreground:"var(--theme--foreground)"},foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground)"}},header:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color-subdued)",boxShadow:"0 4px 7px -4px rgba(0,102,102, 0.2)"},sidebar:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color-subdued)",section:{toggle:{borderColor:"var(--theme--border-color-subdued)",borderWidth:"1px",background:"#FFFFFF",foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)",icon:{foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)"}}}},public:{art:{background:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 10%)",primary:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 60%)",secondary:"color-mix(in srgb, #FFFFFF, var(--theme--secondary) 70%)"},background:"#FFFFFF"}}}),bi=js({id:"Directus Default",name:"$t:theme_directus_default",appearance:"light",rules:{borderRadius:"6px",borderWidth:"2px",foreground:"#4f5464",foregroundAccent:"#172940",foregroundSubdued:"#a2b5cd",background:"#fff",backgroundNormal:"#f0f4f9",backgroundAccent:"#e4eaf1",backgroundSubdued:"#f7fafc",borderColor:"#e4eaf1",borderColorAccent:"#d3dae4",borderColorSubdued:"#f0f4f9",primary:"var(--project-color)",primaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 10%)",primarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--primary) 50%)",primaryAccent:"color-mix(in srgb, var(--theme--primary), #2e3c43 25%)",secondary:"#ff99dd",secondaryBackground:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 10%)",secondarySubdued:"color-mix(in srgb, var(--theme--background), var(--theme--secondary) 50%)",secondaryAccent:"color-mix(in srgb, var(--theme--secondary), #2e3c43 25%)",success:"#2ecda7",successBackground:"color-mix(in srgb, var(--theme--background), var(--theme--success) 10%)",successSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--success) 50%)",successAccent:"color-mix(in srgb, var(--theme--success), #2e3c43 25%)",warning:"#ffa439",warningBackground:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 10%)",warningSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--warning) 50%)",warningAccent:"color-mix(in srgb, var(--theme--warning), #2e3c43 25%)",danger:"#e35169",dangerBackground:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 10%)",dangerSubdued:"color-mix(in srgb, var(--theme--background), var(--theme--danger) 50%)",dangerAccent:"color-mix(in srgb, var(--theme--danger), #2e3c43 25%)",fonts:{display:{fontFamily:'"Inter", system-ui',fontWeight:"700"},sans:{fontFamily:'"Inter", system-ui',fontWeight:"500"},serif:{fontFamily:'"Merriweather", serif',fontWeight:"500"},monospace:{fontFamily:'"Fira Mono", monospace',fontWeight:"500"}},navigation:{background:"var(--theme--background-normal)",backgroundAccent:"var(--theme--background-accent)",borderColor:"transparent",borderWidth:"0px",project:{borderColor:"transparent",borderWidth:"0px",background:"var(--theme--navigation--background-accent)",foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--font-family-sans-serif)"},modules:{background:"#0e1c2f",borderColor:"transparent",borderWidth:"0px",button:{foreground:"#8196b1",foregroundHover:"#fff",foregroundActive:"var(--theme--foreground-accent)",background:"transparent",backgroundHover:"transparent",backgroundActive:"var(--theme--background-normal)"}},list:{icon:{foreground:"var(--theme--primary)",foregroundHover:"var(--theme--navigation--list--icon--foreground)",foregroundActive:"var(--theme--navigation--list--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--navigation--list--foreground)",foregroundActive:"var(--theme--navigation--list--foreground)",background:"transparent",backgroundHover:"var(--theme--navigation--background-accent)",backgroundActive:"var(--theme--navigation--background-accent)",fontFamily:"var(--theme--fonts--sans--font-family)",divider:{borderColor:"var(--theme--border-color-accent)",borderWidth:"var(--theme--border-width)"}}},header:{background:"var(--theme--background)",borderColor:"transparent",borderWidth:"0px",boxShadow:"0 4px 7px -4px rgb(0 0 0 / 0.2)",headline:{foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)"},title:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--display--font-family)",fontWeight:"var(--theme--fonts--display--font-weight)"}},form:{columnGap:"32px",rowGap:"40px",field:{label:{foreground:"var(--theme--foreground-accent)",fontFamily:"var(--theme--fonts--sans--font-family)",fontWeight:"600"},input:{background:"var(--theme--background)",backgroundSubdued:"var(--theme--background-subdued)",foreground:"var(--theme--foreground)",foregroundSubdued:"var(--theme--foreground-subdued)",borderColor:"var(--theme--border-color)",borderColorHover:"var(--theme--border-color-accent)",borderColorFocus:"var(--theme--primary)",boxShadow:"none",boxShadowHover:"none",boxShadowFocus:"0 0 16px -8px var(--theme--primary)",height:"60px",padding:"16px"}}},sidebar:{background:"var(--theme--background-normal)",foreground:"var(--theme--foreground-subdued)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px",section:{toggle:{icon:{foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--icon--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--icon--foreground)"},foreground:"var(--theme--foreground-accent)",foregroundHover:"var(--theme--sidebar--section--toggle--foreground)",foregroundActive:"var(--theme--sidebar--section--toggle--foreground)",background:"var(--theme--background-accent)",backgroundHover:"var(--theme--sidebar--section--toggle--background)",backgroundActive:"var(--theme--sidebar--section--toggle--background)",fontFamily:"var(--theme--fonts--sans--font-family)",borderColor:"transparent",borderWidth:"0px"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},field:{input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"52px",padding:"12px"}}}}},public:{background:"var(--theme--background)",foreground:"var(--theme--foreground)",foregroundAccent:"var(--theme--foreground-accent)",art:{background:"#0e1c2f",primary:"var(--theme--primary)",secondary:"var(--theme--secondary)",speed:"1"},form:{columnGap:"var(--theme--form--column-gap)",rowGap:"var(--theme--form--row-gap)",label:{foreground:"var(--theme--form--field--label--foreground)",fontFamily:"var(--theme--form--field--label--font-family)"},field:{input:{background:"var(--theme--form--field--input--background)",foreground:"var(--theme--form--field--input--foreground)",foregroundSubdued:"var(--theme--form--field--input--foreground-subdued)",borderColor:"var(--theme--form--field--input--border-color)",borderColorHover:"var(--theme--form--field--input--border-color-hover)",borderColorFocus:"var(--theme--form--field--input--border-color-focus)",boxShadow:"var(--theme--form--field--input--box-shadow)",boxShadowHover:"var(--theme--form--field--input--box-shadow-hover)",boxShadowFocus:"var(--theme--form--field--input--box-shadow-focus)",height:"var(--theme--form--field--input--height)",padding:"var(--theme--form--field--input--padding)"}}}},popover:{menu:{background:"#fafcfd",borderRadius:"var(--theme--border-radius)",boxShadow:"0px 0px 6px 0px rgb(23, 41, 64, 0.2), 0px 0px 12px 2px rgb(23, 41, 64, 0.05)"}}}}),$$=js({id:"Directus Minimal",name:"$t:theme_directus_minimal",appearance:"light",rules:{borderWidth:"1px",backgroundPage:"color-mix(in srgb, #FFFFFF, var(--theme--primary) 7%)",navigation:{background:"#FFFFFF",modules:{background:"#FFFFFF",button:{backgroundActive:"#F1F5F9",foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--primary)",foregroundActive:"var(--theme--primary)",backgroundHover:"#F1F5F9",background:"#FFFFFF"},borderWidth:"1px",borderColor:"var(--theme--border-color)"},project:{borderWidth:"1px",background:"#FFFFFF",borderColor:"var(--theme--border-color)"},list:{icon:{foreground:"#0F172A"},divider:{borderColor:"var(--theme--border-color)"}},borderWidth:"1px",backgroundAccent:"#F1F5F9",borderColor:"var(--theme--border-color)"},header:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color)",boxShadow:"0 4px 7px -4px rgba(0,102,102, 0.1)"},backgroundAccent:"#E2E8F0",backgroundSubdued:"#F8FAFC",background:"#FFFFFF",foreground:"#1E293B",foregroundAccent:"#0F172A",foregroundSubdued:"#94A3B8",borderRadius:"4px",borderColor:"#E2E8F0",borderColorAccent:"#CBD5E1",borderColorSubdued:"#F1F5F9",form:{rowGap:"32px",field:{input:{background:"#FFFFFF",backgroundSubdued:"#F8FAFC",boxShadowFocus:"none",height:"52px"}}},sidebar:{background:"#FFFFFF",borderWidth:"1px",borderColor:"var(--theme--border-color)",section:{toggle:{borderColor:"var(--theme--border-color)",borderWidth:"1px",background:"#FFFFFF",foreground:"var(--theme--foreground-subdued)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)",icon:{foreground:"var(--theme--foreground)",foregroundHover:"var(--theme--foreground)",foregroundActive:"var(--theme--foreground-accent)"}},form:{field:{input:{height:"42px"}}}}},public:{art:{background:"color-mix(in srgb, #FFFFFF, var(--project-color) 10%)",primary:"color-mix(in srgb, #FFFFFF, var(--project-color) 70%)",secondary:"color-mix(in srgb, #FFFFFF, var(--project-color) 40%)"},background:"#FFFFFF"},backgroundNormal:"#F1F5F9",secondary:"#64748B",primary:"#0F172A",primaryBackground:"#F1F5F9",primarySubdued:"#F8FAFC",primaryAccent:"#E2E8F0",secondaryAccent:"#E2E8F0",secondaryBackground:"#F1F5F9",secondarySubdued:"#F8FAFC",fonts:{display:{fontFamily:"system-ui"}}}}),R$=[yi],S$=[bi,$$,O$],k$=$l("🎨 Themes",()=>{const e=Pa({light:S$,dark:R$});return{themes:e,registerTheme:t=>{t.appearance==="light"?e.light.push(t):e.dark.push(t)}}}),F$=(e,t,r,n,o)=>{const{themes:i}=Rl(k$());return{theme:ae(()=>{const c=te(e)?te(r):te(t),s=te(e)?yi:bi,h=te(e)?te(o):te(n),y=te(i)[te(e)?"dark":"light"].find(g=>g.id===c);return y?h?jn({},s,y,{rules:h}):jn(s,y):(c&&c!==s.id&&console.warn(`Theme "${c}" doesn't exist.`),h?jn({},s,{rules:h}):s)})}},A$=e=>{const t=C_(e,{delimiter:"--"}),r=n=>`--theme--${E_(n,{separator:"-"})}`;return ay(t,(n,o)=>r(o))},F1=Ia({__name:"theme-provider",props:{darkMode:{type:Boolean},themeLight:{default:bi.name},themeLightOverrides:{default:()=>({})},themeDark:{default:yi.name},themeDarkOverrides:{default:()=>({})}},setup(e){const t=e,{darkMode:r,themeLight:n,themeDark:o,themeLightOverrides:i,themeDarkOverrides:c}=Na(t),{theme:s}=F$(r,n,o,i,c),h=ae(()=>A$(te(s).rules)),{googleFonts:y}=x$(s);hf({link:ae(()=>{let a="";if(y.value.length>0){const f=y.value.join("&family=");a+=`https://fonts.googleapis.com/css2?family=${f}`,a+=`
|
|
7
|
+
`}return a?[{rel:"stylesheet",href:a}]:[]})});const g=ae(()=>`:root {${Object.entries(te(h)).map(([a,f])=>`${a}: ${f};`).join(" ")}}`);return(a,f)=>(vl(),_l(Ol,{to:"#theme"},[wl(xl(g.value),1)]))}});export{n1 as $,Yy as A,o1 as B,no as C,u1 as D,R_ as E,F_ as F,Ct as G,B$ as H,Cc as I,i1 as J,J$ as K,W$ as L,xy as M,so as N,c1 as O,r1 as P,I$ as Q,qo as R,Y$ as S,H$ as T,X$ as U,Ec as V,s1 as W,Wy as X,aa as Y,t1 as Z,R1 as _,k1 as a,F$ as a0,A$ as a1,k$ as a2,de as a3,Jy as a4,q$ as a5,z$ as a6,v1 as a7,b1 as a8,S1 as a9,p1 as aA,g1 as aB,js as aC,e1 as aa,l1 as ab,w1 as ac,f1 as ad,Z$ as ae,$y as af,V$ as ag,a1 as ah,h1 as ai,d1 as aj,O_ as ak,Ey as al,Va as am,Sy as an,ky as ao,Fy as ap,Ay as aq,F1 as ar,x1 as as,K$ as at,O1 as au,P$ as av,y1 as aw,$_ as ax,x_ as ay,m1 as az,_1 as b,hf as c,C$ as d,$o as e,Oo as f,Sl as g,Mt as h,vf as i,wf as j,Of as k,ko as l,N$ as m,bf as n,U$ as o,L$ as p,M$ as q,Ro as r,Bn as s,jt as t,$1 as u,So as v,D$ as w,Sf as x,Q$ as y,G$ as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as We,w as Se,a as Ce,v as Ee}from"./vue.runtime.esm-bundler-lXDGSjR2.js";import{t as Te,u as xe,v as Be,_ as R,w as ye,x as ce,y as we,z as Oe,M as Le,A as de,B as je,C as Fe,D as Re,E as Ae,F as qe,S as ze,G as He,H as Ne,I as Ze,J as Ge,K as Pe,L as Ke,N as Ye,V as Me,O as Je}from"./index.Otjr3qZS.entry.js";import{u as Qe,a as Xe,b as et,c as tt}from"./index-YPhh3He9.js";import{storeToRefs as ve}from"./pinia.uCKSZMNe.entry.js";import{useI18n as se}from"./vue-i18n.sqcOjxJQ.entry.js";import{useRouter as Ie}from"./vue-router.3-oaKJpv.entry.js";import{d as A,c as k,e as S,bj as $e,w as te,b5 as v,b6 as ne,by as z,aY as a,ad as g,bw as s,af as M,I as oe,y as l,ae as B,ag as x,aN as j,b7 as De,u,ak as F,bf as U,b3 as ae,aF as nt,b4 as Y,aM as ot,n as at,p as st,ai as lt,aO as it,ax as rt,a$ as ct,aZ as ut}from"./runtime-core.esm-bundler-texBTZaP.js";const dt=["src"],vt=A({__name:"module-bar-logo",setup(i){const{t:e}=se(),n=Te(),r=xe(),o=k(()=>{var d;return r.settings===null||!((d=r.settings)!=null&&d.project_logo)?null:`${Be()}assets/${r.settings.project_logo}`}),t=S(!1),{queueHasItems:p}=$e(n);te(()=>p.value,d=>{d&&(t.value=!0)});const _=k(()=>{var d;return(d=r.settings)==null?void 0:d.project_url}),b=k(()=>{var d;return(d=r.settings)!=null&&d.project_url?e("view_project"):!1});function m(){p.value===!1&&(t.value=!1)}return(d,$)=>{const y=v("v-progress-linear"),V=ne("tooltip");return z((a(),g(De(_.value?"a":"div"),{href:_.value,target:_.value?"_blank":void 0,rel:_.value?"noopener noreferrer":void 0,class:j(["module-bar-logo",{loading:t.value}])},{default:s(()=>[o.value?(a(),M(oe,{key:0},[l(We,{name:"fade"},{default:s(()=>[t.value?(a(),g(y,{key:0,indeterminate:"",rounded:"",onAnimationiteration:m})):B("",!0)]),_:1}),x("img",{class:"custom-logo",src:o.value,alt:"Project Logo"},null,8,dt)],64)):(a(),M("div",{key:1,class:j(["logo",{running:t.value}]),onAnimationiteration:m},null,34))]),_:1},8,["href","target","rel","class"])),[[V,b.value,void 0,{right:!0}]])}}}),_t=R(vt,[["__scopeId","data-v-c5931858"]]),pt={class:"module-bar-avatar"},mt=["src","alt"],ft=A({__name:"module-bar-avatar",setup(i){const{t:e}=se(),n=ye(),r=ce(),{notificationsDrawerOpen:o}=ve(n),{unread:t}=ve(r),p=we(),_=S(!1),b=k(()=>{var V;return!p.currentUser||!("avatar"in p.currentUser)||!((V=p.currentUser)!=null&&V.avatar)?null:Oe(`${Be()}assets/${p.currentUser.avatar.id}?key=system-medium-cover`)}),m=S(null),d=k(()=>`/users/${p.currentUser.id}`),$=k(()=>"/logout"),y=p.fullName??void 0;return(V,h)=>{const W=v("v-icon"),T=v("v-button"),O=v("v-badge"),Z=v("v-card-title"),J=v("v-card-actions"),Q=v("v-card"),X=v("v-dialog"),G=v("v-avatar"),le=v("router-link"),P=v("v-hover"),ee=ne("tooltip");return a(),M("div",pt,[l(O,{value:u(t),disabled:u(t)==0,class:"notifications-badge"},{default:s(()=>[z((a(),g(T,{tile:"",icon:"","x-large":"",class:"notifications",onClick:h[0]||(h[0]=H=>o.value=!0)},{default:s(()=>[l(W,{name:"notifications"})]),_:1})),[[ee,u(e)("notifications"),void 0,{right:!0}]])]),_:1},8,["value","disabled"]),l(P,null,{default:s(({hover:H})=>[l(X,{modelValue:_.value,"onUpdate:modelValue":h[2]||(h[2]=E=>_.value=E),onEsc:h[3]||(h[3]=E=>_.value=!1)},{activator:s(({on:E})=>[l(We,{name:"sign-out"},{default:s(()=>[H?z((a(),g(T,{key:0,tile:"",icon:"","x-large":"",class:"sign-out",onClick:E},{default:s(()=>[l(W,{name:"logout"})]),_:2},1032,["onClick"])),[[ee,u(e)("sign_out"),void 0,{right:!0}]]):B("",!0)]),_:2},1024)]),default:s(()=>[l(Q,null,{default:s(()=>[l(Z,null,{default:s(()=>[F(U(u(e)("sign_out_confirm")),1)]),_:1}),l(J,null,{default:s(()=>[l(T,{secondary:"",onClick:h[1]||(h[1]=E=>_.value=!_.value)},{default:s(()=>[F(U(u(e)("cancel")),1)]),_:1}),l(T,{to:$.value},{default:s(()=>[F(U(u(e)("sign_out")),1)]),_:1},8,["to"])]),_:1})]),_:1})]),_:2},1032,["modelValue"]),l(le,{to:d.value},{default:s(()=>[z((a(),g(G,{tile:"",large:"",class:j({"no-avatar":!b.value})},{default:s(()=>[b.value&&!m.value?(a(),M("img",{key:0,src:b.value,alt:u(y),class:"avatar-image",onError:h[4]||(h[4]=E=>m.value=E)},null,40,mt)):(a(),g(W,{key:1,name:"account_circle"}))]),_:1},8,["class"])),[[ee,u(y),void 0,{right:!0}]])]),_:1},8,["to"])]),_:1})])}}}),ht=R(ft,[["__scopeId","data-v-56ca75de"]]),gt={class:"module-bar"},bt={class:"modules"},yt=A({__name:"module-bar",setup(i){const e=xe(),{modules:n}=Fe(),r=k(()=>n.value.map(t=>t.id)),o=k(()=>e.settings?(e.settings.module_bar??Le).filter(t=>t.type==="link"?!0:t.enabled&&r.value.includes(t.id)).map(t=>{if(t.type==="link"){const _=de.omit(t,["url"]);return t.url.startsWith("/")?_.to=t.url:_.href=t.url,je(_)}const p=n.value.find(_=>_.id===t.id);return{...t,...n.value.find(_=>_.id===t.id),to:`/${p.id}`}}):[]);return(t,p)=>{const _=v("v-icon"),b=v("v-button"),m=ne("tooltip");return a(),M("div",gt,[l(_t),x("div",bt,[(a(!0),M(oe,null,ae(o.value,d=>z((a(),g(b,{key:d.id,icon:"","x-large":"",to:d.to,href:d.href,tile:""},{default:s(()=>[l(_,{name:d.icon},null,8,["name"])]),_:2},1032,["to","href"])),[[m,d.name,void 0,{right:!0}]])),128))]),l(ht)])}}}),wt=R(yt,[["__scopeId","data-v-572954c3"]]),kt={class:"notification-dialogs"},$t={target:"_blank",href:"https://github.com/directus/directus/issues/new?template=bug_report.yml"},St=A({__name:"notification-dialogs",setup(i){const{t:e}=se(),n=ce(),{isAdmin:r}=we(),o=k(()=>n.dialogs);function t(p){n.remove(p)}return(p,_)=>{const b=v("v-card-title"),m=v("v-error"),d=v("v-card-text"),$=v("v-button"),y=v("v-card-actions"),V=v("v-card"),h=v("v-dialog");return a(),M("div",kt,[(a(!0),M(oe,null,ae(o.value,W=>(a(),g(h,{key:W.id,"model-value":"",persist:""},{default:s(()=>[l(V,{class:j([W.type])},{default:s(()=>[l(b,null,{default:s(()=>[F(U(W.title),1)]),_:2},1024),W.text||W.error?(a(),g(d,{key:0},{default:s(()=>[F(U(W.text)+" ",1),W.error?(a(),g(m,{key:0,error:W.error},null,8,["error"])):B("",!0)]),_:2},1024)):B("",!0),l(y,null,{default:s(()=>[W.type==="error"&&u(r)&&W.code==="UNKNOWN"?(a(),g($,{key:0,secondary:""},{default:s(()=>[x("a",$t,U(u(e)("report_error")),1)]),_:1})):B("",!0),l($,{onClick:T=>t(W.id)},{default:s(()=>[F(U(u(e)("dismiss")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["class"])]),_:2},1024))),128))])}}}),Nt=R(St,[["__scopeId","data-v-69650eae"]]),Mt={key:1,class:"content"},Vt=["onClick"],Wt={key:0,class:"message"},Ct=A({__name:"notifications-drawer",setup(i){const{t:e}=se(),n=ye(),r=we(),o=Re(),{setUnreadCount:t}=ce(),p=Ie(),_=S([]),b=S(["inbox"]),m=S([]),d=S(1),$=S(25),y=S(null),V=S({}),h=S(null);te(b,(N,C)=>{N[0]!==C[0]&&(d.value=1,_.value=[])}),te([y,V],()=>{d.value=1});function W(N){_.value.includes(N)?_.value.splice(_.value.indexOf(N),1):_.value.push(N)}function T(N){m.value.includes(N)?m.value.splice(m.value.indexOf(N),1):m.value.push(N)}const{notificationsDrawerOpen:O}=ve(n),Z=k(()=>({_and:[{recipient:{_eq:r.currentUser.id}},{status:{_eq:b.value[0]}},V.value]})),{items:J,loading:Q,getItems:X,totalPages:G,getItemCount:le}=Qe(S("directus_notifications"),{filter:Z,fields:S(["id","subject","message","collection","item","timestamp"]),sort:S(["-timestamp"]),search:y,limit:$,page:d}),P=k(()=>J.value.map(N=>{var L;let C;if(N.collection){const I=o.getCollection(N.collection);(L=I==null?void 0:I.meta)!=null&&L.singleton||!N.item?C=Ae(N.collection):C=qe(N.collection,N.item)}else String(N.item).startsWith("/")&&(C=String(N.item));return{...N,to:C}}));async function ee(){await Ne.patch("/notifications",{query:{recipient:{_eq:r.currentUser.id}},data:{status:"archived"}}),await le(),await X(),t(0)}async function H(){await Ne.patch("/notifications",{keys:_.value,data:{status:b.value[0]==="inbox"?"archived":"inbox"}}),await le(),await X(),_.value=[]}function E(N){p.push(N),O.value=!1}return(N,C)=>{const L=v("v-icon"),I=v("v-button"),ue=v("v-list-item-icon"),_e=v("v-list-item-content"),pe=v("v-tab"),me=v("v-tabs"),fe=v("v-info"),he=v("v-skeleton-loader"),c=v("v-list"),f=v("v-checkbox"),q=v("v-text-overflow"),ie=v("v-list-item"),ge=v("v-pagination"),D=v("v-drawer"),re=ne("tooltip"),ke=ne("md");return a(),g(D,{modelValue:u(O),"onUpdate:modelValue":C[5]||(C[5]=w=>nt(O)?O.value=w:null),icon:"notifications",title:u(e)("notifications"),"sidebar-label":u(e)("folders"),onCancel:C[6]||(C[6]=w=>O.value=!1)},{actions:s(()=>[l(ze,{modelValue:y.value,"onUpdate:modelValue":C[0]||(C[0]=w=>y.value=w),filter:V.value,"onUpdate:filter":C[1]||(C[1]=w=>V.value=w),collection:"directus_notifications"},null,8,["modelValue","filter"]),z((a(),g(I,{icon:"",rounded:"",disabled:_.value.length===0,secondary:"",onClick:H},{default:s(()=>[l(L,{name:b.value[0]==="inbox"?"archive":"move_to_inbox"},null,8,["name"])]),_:1},8,["disabled"])),[[re,b.value[0]==="inbox"?u(e)("archive"):u(e)("unarchive"),void 0,{bottom:!0}]]),b.value[0]==="inbox"?z((a(),g(I,{key:0,icon:"",rounded:"",disabled:P.value.length===0,onClick:ee},{default:s(()=>[l(L,{name:"done_all"})]),_:1},8,["disabled"])),[[re,u(e)("archive_all"),void 0,{bottom:!0}]]):B("",!0)]),sidebar:s(()=>[l(me,{modelValue:b.value,"onUpdate:modelValue":C[2]||(C[2]=w=>b.value=w),vertical:""},{default:s(()=>[l(pe,{value:"inbox"},{default:s(()=>[l(ue,null,{default:s(()=>[l(L,{name:"inbox"})]),_:1}),l(_e,null,{default:s(()=>[F(U(u(e)("inbox")),1)]),_:1})]),_:1}),l(pe,{value:"archived"},{default:s(()=>[l(ue,null,{default:s(()=>[l(L,{name:"archive"})]),_:1}),l(_e,null,{default:s(()=>[F(U(u(e)("archive")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])]),default:s(()=>[!u(Q)&&P.value.length===0?(a(),g(fe,{key:0,icon:"notifications",title:u(e)("no_notifications"),center:""},{default:s(()=>[F(U(u(e)("no_notifications_copy")),1)]),_:1},8,["title"])):(a(),M("div",Mt,[u(Q)?(a(),g(c,{key:0,class:"notifications"},{default:s(()=>[(a(),M(oe,null,ae(10,w=>l(he,{key:w,class:j({dense:u(G)>1})},null,8,["class"])),64))]),_:1})):(a(),g(c,{key:1,class:"notifications"},{default:s(()=>[(a(!0),M(oe,null,ae(P.value,w=>(a(),g(ie,{key:w.id,block:"",dense:u(G)>1,clickable:!!w.message,onMousedown:C[3]||(C[3]=Se(({target:K})=>h.value=K,["left","self"])),onMouseup:Se(({target:K})=>{K===h.value&&T(w.id),h.value=null},["left","self"])},{default:s(()=>[x("div",{class:"header",onClick:K=>T(w.id)},[l(f,{"model-value":_.value.includes(w.id),"onUpdate:modelValue":K=>W(w.id)},null,8,["model-value","onUpdate:modelValue"]),l(q,{class:"title",highlight:y.value,text:w.subject},null,8,["highlight","text"]),l(He,{value:w.timestamp,type:"timestamp",relative:""},{default:s(({datetime:K})=>[l(q,{class:"datetime",text:K},null,8,["text"])]),_:2},1032,["value"]),w.to?z((a(),g(L,{key:0,clickable:"",name:"open_in_new",onClick:K=>E(w.to)},null,8,["onClick"])),[[re,u(e)("goto_collection_content")]]):B("",!0),w.message?(a(),g(L,{key:1,clickable:"",name:m.value.includes(w.id)?"expand_less":"expand_more"},null,8,["name"])):B("",!0)],8,Vt),m.value.includes(w.id)&&w.message?z((a(),M("div",Wt,null,512)),[[ke,w.message]]):B("",!0)]),_:2},1032,["dense","clickable","onMouseup"]))),128))]),_:1})),u(G)>1?(a(),g(ge,{key:2,modelValue:d.value,"onUpdate:modelValue":C[4]||(C[4]=w=>d.value=w),"total-visible":5,length:u(G)},null,8,["modelValue","length"])):B("",!0)]))]),_:1},8,["modelValue","title","sidebar-label"])}}}),xt=R(Ct,[["__scopeId","data-v-81248a9d"]]),Bt={key:0,class:"icon"},It={class:"content"},Dt={class:"title selectable"},Ut={key:0,class:"text selectable"},Et=A({__name:"notification-item",props:{id:{},title:{},text:{},icon:{},type:{default:"info"},tail:{type:Boolean},dense:{type:Boolean},showClose:{type:Boolean},loading:{type:Boolean},progress:{}},setup(i){const e=i,n=ce();function r(){e.showClose===!0&&n.remove(e.id)}return(o,t)=>{const p=v("v-progress-circular"),_=v("v-icon");return a(),M("div",{class:j(["notification-item",[o.type,{tail:o.tail,dense:o.dense}]]),onClick:r},[o.loading||o.progress||o.icon?(a(),M("div",Bt,[o.loading?(a(),g(p,{key:0,indeterminate:"",small:""})):o.progress?(a(),g(p,{key:1,small:"",value:o.progress},null,8,["value"])):(a(),g(_,{key:2,name:o.icon},null,8,["name"]))])):B("",!0),x("div",It,[x("p",Dt,U(o.title),1),o.text?(a(),M("p",Ut,U(o.text),1)):B("",!0)]),o.showClose?(a(),g(_,{key:1,name:"close",clickable:"",class:"close",onClick:r})):B("",!0)],2)}}}),Ue=R(Et,[["__scopeId","data-v-7d21b14f"]]),Tt=A({__name:"notifications-group",props:{sidebarOpen:{type:Boolean}},setup(i){const e=ce(),n=$e(e).queue;return(r,o)=>(a(),g(Ce,{class:j(["notifications-group",{"sidebar-open":r.sidebarOpen}]),name:"slide-fade",tag:"div"},{default:s(()=>[Y(r.$slots,"default",{},void 0,!0),(a(!0),M(oe,null,ae(u(n),(t,p)=>(a(),g(Ue,{id:t.id,key:t.id,title:t.title,icon:t.icon,type:t.type,loading:t.loading,progress:t.progress,tail:p===u(n).length-1,dense:r.sidebarOpen===!1,"show-close":t.persist===!0&&t.closeable!==!1},null,8,["id","title","icon","type","loading","progress","tail","dense","show-close"]))),128))]),_:3},8,["class"]))}}),Ot=R(Tt,[["__scopeId","data-v-00758c2d"]]),Lt={class:"icon"},jt={key:0,class:"title"},Ft=A({__name:"sidebar-button",props:{to:{},icon:{default:"box"},active:{type:Boolean}},emits:["click"],setup(i){const e=ye(),{sidebarOpen:n}=$e(e);return(r,o)=>{const t=v("v-icon");return a(),g(De(r.to?"router-link":"button"),{class:j(["sidebar-button",{active:r.active}]),onClick:o[0]||(o[0]=p=>r.$emit("click",p))},{default:s(()=>[x("div",Lt,[l(t,{name:r.icon},null,8,["name"])]),u(n)?(a(),M("div",jt,[Y(r.$slots,"default",{},void 0,!0)])):B("",!0)]),_:3},8,["class"])}}}),Rt=R(Ft,[["__scopeId","data-v-3acfa986"]]),At={class:"notifications-preview"},qt={key:0,class:"inline"},zt={class:"padding-box"},Ht=A({__name:"notifications-preview",props:{sidebarOpen:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(i){const{t:e}=se(),n=ce(),{lastFour:r}=ve(n);return(o,t)=>{const p=v("router-link"),_=v("transition-expand"),b=ne("tooltip");return a(),M("div",At,[l(_,{tag:"div"},{default:s(()=>[o.modelValue?(a(),M("div",qt,[x("div",zt,[l(p,{class:j(["link",{"has-items":u(r).length>0}]),to:"/activity"},{default:s(()=>[F(U(u(e)("show_all_activity")),1)]),_:1},8,["class"]),l(Ce,{tag:"div",name:"notification",class:"transition"},{default:s(()=>[(a(!0),M(oe,null,ae(u(r),m=>(a(),g(Ue,ot({key:m.id},m),null,16))),128))]),_:1})])])):B("",!0)]),_:1}),z((a(),g(Rt,{active:o.modelValue,class:"toggle",icon:"pending_actions",onClick:t[0]||(t[0]=m=>o.$emit("update:modelValue",!o.modelValue))},{default:s(()=>[F(U(u(e)("activity_log")),1)]),_:1},8,["active"])),[[b,!o.sidebarOpen&&u(e)("activity_log"),void 0,{left:!0}]])])}}}),Zt=R(Ht,[["__scopeId","data-v-63e60302"]]),Ve=i=>Number.isFinite(i)?i:0;function Gt(i){return{days:Math.trunc(i/864e5),hours:Math.trunc(i/36e5%24),minutes:Math.trunc(i/6e4%60),seconds:Math.trunc(i/1e3%60),milliseconds:Math.trunc(i%1e3),microseconds:Math.trunc(Ve(i*1e3)%1e3),nanoseconds:Math.trunc(Ve(i*1e6)%1e3)}}function Pt(i){return{days:i/86400000n,hours:i/3600000n%24n,minutes:i/60000n%60n,seconds:i/1000n%60n,milliseconds:i%1000n,microseconds:0n,nanoseconds:0n}}function Kt(i){switch(typeof i){case"number":{if(Number.isFinite(i))return Gt(i);break}case"bigint":return Pt(i)}throw new TypeError("Expected a finite number or bigint")}const Yt=i=>i===0||i===0n,Jt=(i,e)=>e===1||e===1n?i:`${i}s`,Qt=1e-7,Xt=24n*60n*60n*1000n;function be(i,e){const n=typeof i=="bigint";if(!n&&!Number.isFinite(i))throw new TypeError("Expected a finite number or bigint");e={...e},e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[];const o=(m,d)=>{const $=Math.floor(m*10**d+Qt);return(Math.round($)/10**d).toFixed(d)},t=(m,d,$,y)=>{if(!((r.length===0||!e.colonNotation)&&Yt(m)&&!(e.colonNotation&&$==="m"))){if(y=y??String(m),e.colonNotation){const V=y.includes(".")?y.split(".")[0].length:y.length,h=r.length>0?2:1;y="0".repeat(Math.max(0,h-V))+y}else y+=e.verbose?" "+Jt(d,m):$;r.push(y)}},p=Kt(i),_=BigInt(p.days);if(t(_/365n,"year","y"),t(_%365n,"day","d"),t(Number(p.hours),"hour","h"),t(Number(p.minutes),"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&i<1e3){const m=Number(p.seconds),d=Number(p.milliseconds),$=Number(p.microseconds),y=Number(p.nanoseconds);if(t(m,"second","s"),e.formatSubMilliseconds)t(d,"millisecond","ms"),t($,"microsecond","µs"),t(y,"nanosecond","ns");else{const V=d+$/1e3+y/1e6,h=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,W=V>=1?Math.round(V):Math.ceil(V),T=h?V.toFixed(h):W;t(Number.parseFloat(T),"millisecond","ms",T)}}else{const m=(n?Number(i%Xt):i)/1e3%60,d=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,$=o(m,d),y=e.keepDecimalsOnWholeSeconds?$:$.replace(/\.0+$/,"");t(Number.parseFloat(y),"second","s",y)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");const b=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(r=r.slice(0,Math.max(e.unitCount,1))),r.join(b)}const en={class:"latency-indicator"},tn=A({__name:"latency-indicator",setup(i){const{t:e}=se(),n=Ze(),r=k(()=>{const b=de.sortBy(n.latency,["timestamp"]);return b[b.length-1]}),o=k(()=>{if(!n.latency||n.latency.length===0)return 0;const b=de.sortBy(n.latency,["timestamp"]),m=b.slice(Math.max(b.length-5,0));let d=0;for(const{latency:$}of m)d+=$;return Math.round(d/m.length)}),t=k(()=>o.value<=250?4:o.value>250&&o.value<=500?3:o.value>500&&o.value<=750?2:1),p=k(()=>{switch(t.value){case 4:return`${e("connection_excellent")}
|
|
1
|
+
import{T as We,w as Se,a as Ce,v as Ee}from"./vue.runtime.esm-bundler-lXDGSjR2.js";import{t as Te,u as xe,v as Be,_ as R,w as ye,x as ce,y as we,z as Oe,M as Le,A as de,B as je,C as Fe,D as Re,E as Ae,F as qe,S as ze,G as He,H as Ne,I as Ze,J as Ge,K as Pe,L as Ke,N as Ye,V as Me,O as Je}from"./index.hQ6KFwWk.entry.js";import{u as Qe,a as Xe,b as et,c as tt}from"./index-9vZu-REn.js";import{storeToRefs as ve}from"./pinia.uCKSZMNe.entry.js";import{useI18n as se}from"./vue-i18n.sqcOjxJQ.entry.js";import{useRouter as Ie}from"./vue-router.3-oaKJpv.entry.js";import{d as A,c as k,e as S,bj as $e,w as te,b5 as v,b6 as ne,by as z,aY as a,ad as g,bw as s,af as M,I as oe,y as l,ae as B,ag as x,aN as j,b7 as De,u,ak as F,bf as U,b3 as ae,aF as nt,b4 as Y,aM as ot,n as at,p as st,ai as lt,aO as it,ax as rt,a$ as ct,aZ as ut}from"./runtime-core.esm-bundler-texBTZaP.js";const dt=["src"],vt=A({__name:"module-bar-logo",setup(i){const{t:e}=se(),n=Te(),r=xe(),o=k(()=>{var d;return r.settings===null||!((d=r.settings)!=null&&d.project_logo)?null:`${Be()}assets/${r.settings.project_logo}`}),t=S(!1),{queueHasItems:p}=$e(n);te(()=>p.value,d=>{d&&(t.value=!0)});const _=k(()=>{var d;return(d=r.settings)==null?void 0:d.project_url}),b=k(()=>{var d;return(d=r.settings)!=null&&d.project_url?e("view_project"):!1});function m(){p.value===!1&&(t.value=!1)}return(d,$)=>{const y=v("v-progress-linear"),V=ne("tooltip");return z((a(),g(De(_.value?"a":"div"),{href:_.value,target:_.value?"_blank":void 0,rel:_.value?"noopener noreferrer":void 0,class:j(["module-bar-logo",{loading:t.value}])},{default:s(()=>[o.value?(a(),M(oe,{key:0},[l(We,{name:"fade"},{default:s(()=>[t.value?(a(),g(y,{key:0,indeterminate:"",rounded:"",onAnimationiteration:m})):B("",!0)]),_:1}),x("img",{class:"custom-logo",src:o.value,alt:"Project Logo"},null,8,dt)],64)):(a(),M("div",{key:1,class:j(["logo",{running:t.value}]),onAnimationiteration:m},null,34))]),_:1},8,["href","target","rel","class"])),[[V,b.value,void 0,{right:!0}]])}}}),_t=R(vt,[["__scopeId","data-v-c5931858"]]),pt={class:"module-bar-avatar"},mt=["src","alt"],ft=A({__name:"module-bar-avatar",setup(i){const{t:e}=se(),n=ye(),r=ce(),{notificationsDrawerOpen:o}=ve(n),{unread:t}=ve(r),p=we(),_=S(!1),b=k(()=>{var V;return!p.currentUser||!("avatar"in p.currentUser)||!((V=p.currentUser)!=null&&V.avatar)?null:Oe(`${Be()}assets/${p.currentUser.avatar.id}?key=system-medium-cover`)}),m=S(null),d=k(()=>`/users/${p.currentUser.id}`),$=k(()=>"/logout"),y=p.fullName??void 0;return(V,h)=>{const W=v("v-icon"),T=v("v-button"),O=v("v-badge"),Z=v("v-card-title"),J=v("v-card-actions"),Q=v("v-card"),X=v("v-dialog"),G=v("v-avatar"),le=v("router-link"),P=v("v-hover"),ee=ne("tooltip");return a(),M("div",pt,[l(O,{value:u(t),disabled:u(t)==0,class:"notifications-badge"},{default:s(()=>[z((a(),g(T,{tile:"",icon:"","x-large":"",class:"notifications",onClick:h[0]||(h[0]=H=>o.value=!0)},{default:s(()=>[l(W,{name:"notifications"})]),_:1})),[[ee,u(e)("notifications"),void 0,{right:!0}]])]),_:1},8,["value","disabled"]),l(P,null,{default:s(({hover:H})=>[l(X,{modelValue:_.value,"onUpdate:modelValue":h[2]||(h[2]=E=>_.value=E),onEsc:h[3]||(h[3]=E=>_.value=!1)},{activator:s(({on:E})=>[l(We,{name:"sign-out"},{default:s(()=>[H?z((a(),g(T,{key:0,tile:"",icon:"","x-large":"",class:"sign-out",onClick:E},{default:s(()=>[l(W,{name:"logout"})]),_:2},1032,["onClick"])),[[ee,u(e)("sign_out"),void 0,{right:!0}]]):B("",!0)]),_:2},1024)]),default:s(()=>[l(Q,null,{default:s(()=>[l(Z,null,{default:s(()=>[F(U(u(e)("sign_out_confirm")),1)]),_:1}),l(J,null,{default:s(()=>[l(T,{secondary:"",onClick:h[1]||(h[1]=E=>_.value=!_.value)},{default:s(()=>[F(U(u(e)("cancel")),1)]),_:1}),l(T,{to:$.value},{default:s(()=>[F(U(u(e)("sign_out")),1)]),_:1},8,["to"])]),_:1})]),_:1})]),_:2},1032,["modelValue"]),l(le,{to:d.value},{default:s(()=>[z((a(),g(G,{tile:"",large:"",class:j({"no-avatar":!b.value})},{default:s(()=>[b.value&&!m.value?(a(),M("img",{key:0,src:b.value,alt:u(y),class:"avatar-image",onError:h[4]||(h[4]=E=>m.value=E)},null,40,mt)):(a(),g(W,{key:1,name:"account_circle"}))]),_:1},8,["class"])),[[ee,u(y),void 0,{right:!0}]])]),_:1},8,["to"])]),_:1})])}}}),ht=R(ft,[["__scopeId","data-v-56ca75de"]]),gt={class:"module-bar"},bt={class:"modules"},yt=A({__name:"module-bar",setup(i){const e=xe(),{modules:n}=Fe(),r=k(()=>n.value.map(t=>t.id)),o=k(()=>e.settings?(e.settings.module_bar??Le).filter(t=>t.type==="link"?!0:t.enabled&&r.value.includes(t.id)).map(t=>{if(t.type==="link"){const _=de.omit(t,["url"]);return t.url.startsWith("/")?_.to=t.url:_.href=t.url,je(_)}const p=n.value.find(_=>_.id===t.id);return{...t,...n.value.find(_=>_.id===t.id),to:`/${p.id}`}}):[]);return(t,p)=>{const _=v("v-icon"),b=v("v-button"),m=ne("tooltip");return a(),M("div",gt,[l(_t),x("div",bt,[(a(!0),M(oe,null,ae(o.value,d=>z((a(),g(b,{key:d.id,icon:"","x-large":"",to:d.to,href:d.href,tile:""},{default:s(()=>[l(_,{name:d.icon},null,8,["name"])]),_:2},1032,["to","href"])),[[m,d.name,void 0,{right:!0}]])),128))]),l(ht)])}}}),wt=R(yt,[["__scopeId","data-v-572954c3"]]),kt={class:"notification-dialogs"},$t={target:"_blank",href:"https://github.com/directus/directus/issues/new?template=bug_report.yml"},St=A({__name:"notification-dialogs",setup(i){const{t:e}=se(),n=ce(),{isAdmin:r}=we(),o=k(()=>n.dialogs);function t(p){n.remove(p)}return(p,_)=>{const b=v("v-card-title"),m=v("v-error"),d=v("v-card-text"),$=v("v-button"),y=v("v-card-actions"),V=v("v-card"),h=v("v-dialog");return a(),M("div",kt,[(a(!0),M(oe,null,ae(o.value,W=>(a(),g(h,{key:W.id,"model-value":"",persist:""},{default:s(()=>[l(V,{class:j([W.type])},{default:s(()=>[l(b,null,{default:s(()=>[F(U(W.title),1)]),_:2},1024),W.text||W.error?(a(),g(d,{key:0},{default:s(()=>[F(U(W.text)+" ",1),W.error?(a(),g(m,{key:0,error:W.error},null,8,["error"])):B("",!0)]),_:2},1024)):B("",!0),l(y,null,{default:s(()=>[W.type==="error"&&u(r)&&W.code==="UNKNOWN"?(a(),g($,{key:0,secondary:""},{default:s(()=>[x("a",$t,U(u(e)("report_error")),1)]),_:1})):B("",!0),l($,{onClick:T=>t(W.id)},{default:s(()=>[F(U(u(e)("dismiss")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["class"])]),_:2},1024))),128))])}}}),Nt=R(St,[["__scopeId","data-v-69650eae"]]),Mt={key:1,class:"content"},Vt=["onClick"],Wt={key:0,class:"message"},Ct=A({__name:"notifications-drawer",setup(i){const{t:e}=se(),n=ye(),r=we(),o=Re(),{setUnreadCount:t}=ce(),p=Ie(),_=S([]),b=S(["inbox"]),m=S([]),d=S(1),$=S(25),y=S(null),V=S({}),h=S(null);te(b,(N,C)=>{N[0]!==C[0]&&(d.value=1,_.value=[])}),te([y,V],()=>{d.value=1});function W(N){_.value.includes(N)?_.value.splice(_.value.indexOf(N),1):_.value.push(N)}function T(N){m.value.includes(N)?m.value.splice(m.value.indexOf(N),1):m.value.push(N)}const{notificationsDrawerOpen:O}=ve(n),Z=k(()=>({_and:[{recipient:{_eq:r.currentUser.id}},{status:{_eq:b.value[0]}},V.value]})),{items:J,loading:Q,getItems:X,totalPages:G,getItemCount:le}=Qe(S("directus_notifications"),{filter:Z,fields:S(["id","subject","message","collection","item","timestamp"]),sort:S(["-timestamp"]),search:y,limit:$,page:d}),P=k(()=>J.value.map(N=>{var L;let C;if(N.collection){const I=o.getCollection(N.collection);(L=I==null?void 0:I.meta)!=null&&L.singleton||!N.item?C=Ae(N.collection):C=qe(N.collection,N.item)}else String(N.item).startsWith("/")&&(C=String(N.item));return{...N,to:C}}));async function ee(){await Ne.patch("/notifications",{query:{recipient:{_eq:r.currentUser.id}},data:{status:"archived"}}),await le(),await X(),t(0)}async function H(){await Ne.patch("/notifications",{keys:_.value,data:{status:b.value[0]==="inbox"?"archived":"inbox"}}),await le(),await X(),_.value=[]}function E(N){p.push(N),O.value=!1}return(N,C)=>{const L=v("v-icon"),I=v("v-button"),ue=v("v-list-item-icon"),_e=v("v-list-item-content"),pe=v("v-tab"),me=v("v-tabs"),fe=v("v-info"),he=v("v-skeleton-loader"),c=v("v-list"),f=v("v-checkbox"),q=v("v-text-overflow"),ie=v("v-list-item"),ge=v("v-pagination"),D=v("v-drawer"),re=ne("tooltip"),ke=ne("md");return a(),g(D,{modelValue:u(O),"onUpdate:modelValue":C[5]||(C[5]=w=>nt(O)?O.value=w:null),icon:"notifications",title:u(e)("notifications"),"sidebar-label":u(e)("folders"),onCancel:C[6]||(C[6]=w=>O.value=!1)},{actions:s(()=>[l(ze,{modelValue:y.value,"onUpdate:modelValue":C[0]||(C[0]=w=>y.value=w),filter:V.value,"onUpdate:filter":C[1]||(C[1]=w=>V.value=w),collection:"directus_notifications"},null,8,["modelValue","filter"]),z((a(),g(I,{icon:"",rounded:"",disabled:_.value.length===0,secondary:"",onClick:H},{default:s(()=>[l(L,{name:b.value[0]==="inbox"?"archive":"move_to_inbox"},null,8,["name"])]),_:1},8,["disabled"])),[[re,b.value[0]==="inbox"?u(e)("archive"):u(e)("unarchive"),void 0,{bottom:!0}]]),b.value[0]==="inbox"?z((a(),g(I,{key:0,icon:"",rounded:"",disabled:P.value.length===0,onClick:ee},{default:s(()=>[l(L,{name:"done_all"})]),_:1},8,["disabled"])),[[re,u(e)("archive_all"),void 0,{bottom:!0}]]):B("",!0)]),sidebar:s(()=>[l(me,{modelValue:b.value,"onUpdate:modelValue":C[2]||(C[2]=w=>b.value=w),vertical:""},{default:s(()=>[l(pe,{value:"inbox"},{default:s(()=>[l(ue,null,{default:s(()=>[l(L,{name:"inbox"})]),_:1}),l(_e,null,{default:s(()=>[F(U(u(e)("inbox")),1)]),_:1})]),_:1}),l(pe,{value:"archived"},{default:s(()=>[l(ue,null,{default:s(()=>[l(L,{name:"archive"})]),_:1}),l(_e,null,{default:s(()=>[F(U(u(e)("archive")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"])]),default:s(()=>[!u(Q)&&P.value.length===0?(a(),g(fe,{key:0,icon:"notifications",title:u(e)("no_notifications"),center:""},{default:s(()=>[F(U(u(e)("no_notifications_copy")),1)]),_:1},8,["title"])):(a(),M("div",Mt,[u(Q)?(a(),g(c,{key:0,class:"notifications"},{default:s(()=>[(a(),M(oe,null,ae(10,w=>l(he,{key:w,class:j({dense:u(G)>1})},null,8,["class"])),64))]),_:1})):(a(),g(c,{key:1,class:"notifications"},{default:s(()=>[(a(!0),M(oe,null,ae(P.value,w=>(a(),g(ie,{key:w.id,block:"",dense:u(G)>1,clickable:!!w.message,onMousedown:C[3]||(C[3]=Se(({target:K})=>h.value=K,["left","self"])),onMouseup:Se(({target:K})=>{K===h.value&&T(w.id),h.value=null},["left","self"])},{default:s(()=>[x("div",{class:"header",onClick:K=>T(w.id)},[l(f,{"model-value":_.value.includes(w.id),"onUpdate:modelValue":K=>W(w.id)},null,8,["model-value","onUpdate:modelValue"]),l(q,{class:"title",highlight:y.value,text:w.subject},null,8,["highlight","text"]),l(He,{value:w.timestamp,type:"timestamp",relative:""},{default:s(({datetime:K})=>[l(q,{class:"datetime",text:K},null,8,["text"])]),_:2},1032,["value"]),w.to?z((a(),g(L,{key:0,clickable:"",name:"open_in_new",onClick:K=>E(w.to)},null,8,["onClick"])),[[re,u(e)("goto_collection_content")]]):B("",!0),w.message?(a(),g(L,{key:1,clickable:"",name:m.value.includes(w.id)?"expand_less":"expand_more"},null,8,["name"])):B("",!0)],8,Vt),m.value.includes(w.id)&&w.message?z((a(),M("div",Wt,null,512)),[[ke,w.message]]):B("",!0)]),_:2},1032,["dense","clickable","onMouseup"]))),128))]),_:1})),u(G)>1?(a(),g(ge,{key:2,modelValue:d.value,"onUpdate:modelValue":C[4]||(C[4]=w=>d.value=w),"total-visible":5,length:u(G)},null,8,["modelValue","length"])):B("",!0)]))]),_:1},8,["modelValue","title","sidebar-label"])}}}),xt=R(Ct,[["__scopeId","data-v-81248a9d"]]),Bt={key:0,class:"icon"},It={class:"content"},Dt={class:"title selectable"},Ut={key:0,class:"text selectable"},Et=A({__name:"notification-item",props:{id:{},title:{},text:{},icon:{},type:{default:"info"},tail:{type:Boolean},dense:{type:Boolean},showClose:{type:Boolean},loading:{type:Boolean},progress:{}},setup(i){const e=i,n=ce();function r(){e.showClose===!0&&n.remove(e.id)}return(o,t)=>{const p=v("v-progress-circular"),_=v("v-icon");return a(),M("div",{class:j(["notification-item",[o.type,{tail:o.tail,dense:o.dense}]]),onClick:r},[o.loading||o.progress||o.icon?(a(),M("div",Bt,[o.loading?(a(),g(p,{key:0,indeterminate:"",small:""})):o.progress?(a(),g(p,{key:1,small:"",value:o.progress},null,8,["value"])):(a(),g(_,{key:2,name:o.icon},null,8,["name"]))])):B("",!0),x("div",It,[x("p",Dt,U(o.title),1),o.text?(a(),M("p",Ut,U(o.text),1)):B("",!0)]),o.showClose?(a(),g(_,{key:1,name:"close",clickable:"",class:"close",onClick:r})):B("",!0)],2)}}}),Ue=R(Et,[["__scopeId","data-v-7d21b14f"]]),Tt=A({__name:"notifications-group",props:{sidebarOpen:{type:Boolean}},setup(i){const e=ce(),n=$e(e).queue;return(r,o)=>(a(),g(Ce,{class:j(["notifications-group",{"sidebar-open":r.sidebarOpen}]),name:"slide-fade",tag:"div"},{default:s(()=>[Y(r.$slots,"default",{},void 0,!0),(a(!0),M(oe,null,ae(u(n),(t,p)=>(a(),g(Ue,{id:t.id,key:t.id,title:t.title,icon:t.icon,type:t.type,loading:t.loading,progress:t.progress,tail:p===u(n).length-1,dense:r.sidebarOpen===!1,"show-close":t.persist===!0&&t.closeable!==!1},null,8,["id","title","icon","type","loading","progress","tail","dense","show-close"]))),128))]),_:3},8,["class"]))}}),Ot=R(Tt,[["__scopeId","data-v-00758c2d"]]),Lt={class:"icon"},jt={key:0,class:"title"},Ft=A({__name:"sidebar-button",props:{to:{},icon:{default:"box"},active:{type:Boolean}},emits:["click"],setup(i){const e=ye(),{sidebarOpen:n}=$e(e);return(r,o)=>{const t=v("v-icon");return a(),g(De(r.to?"router-link":"button"),{class:j(["sidebar-button",{active:r.active}]),onClick:o[0]||(o[0]=p=>r.$emit("click",p))},{default:s(()=>[x("div",Lt,[l(t,{name:r.icon},null,8,["name"])]),u(n)?(a(),M("div",jt,[Y(r.$slots,"default",{},void 0,!0)])):B("",!0)]),_:3},8,["class"])}}}),Rt=R(Ft,[["__scopeId","data-v-3acfa986"]]),At={class:"notifications-preview"},qt={key:0,class:"inline"},zt={class:"padding-box"},Ht=A({__name:"notifications-preview",props:{sidebarOpen:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(i){const{t:e}=se(),n=ce(),{lastFour:r}=ve(n);return(o,t)=>{const p=v("router-link"),_=v("transition-expand"),b=ne("tooltip");return a(),M("div",At,[l(_,{tag:"div"},{default:s(()=>[o.modelValue?(a(),M("div",qt,[x("div",zt,[l(p,{class:j(["link",{"has-items":u(r).length>0}]),to:"/activity"},{default:s(()=>[F(U(u(e)("show_all_activity")),1)]),_:1},8,["class"]),l(Ce,{tag:"div",name:"notification",class:"transition"},{default:s(()=>[(a(!0),M(oe,null,ae(u(r),m=>(a(),g(Ue,ot({key:m.id},m),null,16))),128))]),_:1})])])):B("",!0)]),_:1}),z((a(),g(Rt,{active:o.modelValue,class:"toggle",icon:"pending_actions",onClick:t[0]||(t[0]=m=>o.$emit("update:modelValue",!o.modelValue))},{default:s(()=>[F(U(u(e)("activity_log")),1)]),_:1},8,["active"])),[[b,!o.sidebarOpen&&u(e)("activity_log"),void 0,{left:!0}]])])}}}),Zt=R(Ht,[["__scopeId","data-v-63e60302"]]),Ve=i=>Number.isFinite(i)?i:0;function Gt(i){return{days:Math.trunc(i/864e5),hours:Math.trunc(i/36e5%24),minutes:Math.trunc(i/6e4%60),seconds:Math.trunc(i/1e3%60),milliseconds:Math.trunc(i%1e3),microseconds:Math.trunc(Ve(i*1e3)%1e3),nanoseconds:Math.trunc(Ve(i*1e6)%1e3)}}function Pt(i){return{days:i/86400000n,hours:i/3600000n%24n,minutes:i/60000n%60n,seconds:i/1000n%60n,milliseconds:i%1000n,microseconds:0n,nanoseconds:0n}}function Kt(i){switch(typeof i){case"number":{if(Number.isFinite(i))return Gt(i);break}case"bigint":return Pt(i)}throw new TypeError("Expected a finite number or bigint")}const Yt=i=>i===0||i===0n,Jt=(i,e)=>e===1||e===1n?i:`${i}s`,Qt=1e-7,Xt=24n*60n*60n*1000n;function be(i,e){const n=typeof i=="bigint";if(!n&&!Number.isFinite(i))throw new TypeError("Expected a finite number or bigint");e={...e},e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[];const o=(m,d)=>{const $=Math.floor(m*10**d+Qt);return(Math.round($)/10**d).toFixed(d)},t=(m,d,$,y)=>{if(!((r.length===0||!e.colonNotation)&&Yt(m)&&!(e.colonNotation&&$==="m"))){if(y=y??String(m),e.colonNotation){const V=y.includes(".")?y.split(".")[0].length:y.length,h=r.length>0?2:1;y="0".repeat(Math.max(0,h-V))+y}else y+=e.verbose?" "+Jt(d,m):$;r.push(y)}},p=Kt(i),_=BigInt(p.days);if(t(_/365n,"year","y"),t(_%365n,"day","d"),t(Number(p.hours),"hour","h"),t(Number(p.minutes),"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&i<1e3){const m=Number(p.seconds),d=Number(p.milliseconds),$=Number(p.microseconds),y=Number(p.nanoseconds);if(t(m,"second","s"),e.formatSubMilliseconds)t(d,"millisecond","ms"),t($,"microsecond","µs"),t(y,"nanosecond","ns");else{const V=d+$/1e3+y/1e6,h=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,W=V>=1?Math.round(V):Math.ceil(V),T=h?V.toFixed(h):W;t(Number.parseFloat(T),"millisecond","ms",T)}}else{const m=(n?Number(i%Xt):i)/1e3%60,d=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,$=o(m,d),y=e.keepDecimalsOnWholeSeconds?$:$.replace(/\.0+$/,"");t(Number.parseFloat(y),"second","s",y)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");const b=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(r=r.slice(0,Math.max(e.unitCount,1))),r.join(b)}const en={class:"latency-indicator"},tn=A({__name:"latency-indicator",setup(i){const{t:e}=se(),n=Ze(),r=k(()=>{const b=de.sortBy(n.latency,["timestamp"]);return b[b.length-1]}),o=k(()=>{if(!n.latency||n.latency.length===0)return 0;const b=de.sortBy(n.latency,["timestamp"]),m=b.slice(Math.max(b.length-5,0));let d=0;for(const{latency:$}of m)d+=$;return Math.round(d/m.length)}),t=k(()=>o.value<=250?4:o.value>250&&o.value<=500?3:o.value>500&&o.value<=750?2:1),p=k(()=>{switch(t.value){case 4:return`${e("connection_excellent")}
|
|
2
2
|
(${be(o.value)} ${e("latency")})`;case 3:return`${e("connection_good")}
|
|
3
3
|
(${be(o.value)} ${e("latency")})`;case 2:return`${e("connection_fair")}
|
|
4
4
|
(${be(o.value)} ${e("latency")})`;case 1:return`${e("connection_poor")}
|