@directus/app 15.2.0 → 15.4.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.B9CMmLpD.entry.js → @directus_extensions-sdk.DEziuuDw.entry.js} +1 -1
- package/dist/assets/{active-line-Ly85DnpA.js → active-line-CB3CsL4k.js} +1 -1
- package/dist/assets/{af-BDH9kVpL.js → af-CP1r6m7q.js} +1 -1
- package/dist/assets/{apl-D19zbuvP.js → apl-CJlbmvgm.js} +1 -1
- package/dist/assets/{ar-DZ-sAMxQj8O.js → ar-DZ-D6tCdVbI.js} +1 -1
- package/dist/assets/{ar-MA-B2KJGrJk.js → ar-MA-C5mSRkHW.js} +1 -1
- package/dist/assets/{ar-SA-DFaD766m.js → ar-SA-KkiXq1L6.js} +1 -1
- package/dist/assets/{asciiarmor-DXI4_yEU.js → asciiarmor-xX1Ilaul.js} +1 -1
- package/dist/assets/{asn.1-DVZkEjeQ.js → asn.1-BG5Jb5u0.js} +1 -1
- package/dist/assets/{asterisk-d5FqidbU.js → asterisk-BQKWnhLL.js} +1 -1
- package/dist/assets/{autorefresh-bZPhTEwp.js → autorefresh-Chm1fOe2.js} +1 -1
- package/dist/assets/{az-CqdLnMVV.js → az-BPsSmL-W.js} +1 -1
- package/dist/assets/{be-91UuarOs.js → be-8AjDWOry.js} +1 -1
- package/dist/assets/{bg-BjW8mHNP.js → bg-D-aIxuMu.js} +1 -1
- package/dist/assets/{bn-nC1Wkvaq.js → bn-CAflrvTT.js} +1 -1
- package/dist/assets/{brainfuck-D8b5wZgY.js → brainfuck-C3mXRzDk.js} +1 -1
- package/dist/assets/{ca-CEK6rWSg.js → ca-BYI1h_bQ.js} +1 -1
- package/dist/assets/{clike-t4Kxegm4.js → clike-CXwHK0HI.js} +1 -1
- package/dist/assets/{clike-BhkIjnNo.js → clike-aZ-BgUhH.js} +1 -1
- package/dist/assets/{clojure-o8z5i8qv.js → clojure-CQimjqwA.js} +1 -1
- package/dist/assets/{cmake-BQk8YoP8.js → cmake-CaJ3jyU6.js} +1 -1
- package/dist/assets/{cobol-D5T8grpV.js → cobol-CI7qPoSv.js} +1 -1
- package/dist/assets/{coffeescript-BkT85TrS.js → coffeescript-CSdm3PWc.js} +1 -1
- package/dist/assets/{coffeescript-CldUR7fb.js → coffeescript-QRWPMDv3.js} +1 -1
- package/dist/assets/{commonlisp-BEj2jPJ5.js → commonlisp-CEYrANRk.js} +1 -1
- package/dist/assets/{crystal-CzeCck1N.js → crystal-D1q11C3d.js} +1 -1
- package/dist/assets/{cs-wkRgopWZ.js → cs-Cw5yAGUR.js} +1 -1
- package/dist/assets/{css-sYpUP0nl.js → css-Ba7poN3I.js} +1 -1
- package/dist/assets/{css-Chwlifj6.js → css-DExoNTFa.js} +1 -1
- package/dist/assets/{cy-DiLUkn2Q.js → cy-Bz1Q6kpe.js} +1 -1
- package/dist/assets/{cypher-D9wZO51A.js → cypher-BHFOSUdt.js} +1 -1
- package/dist/assets/{d-o9hy_jjx.js → d-B4nWdMn6.js} +1 -1
- package/dist/assets/{da-DfHrqnDB.js → da-ChygMheQ.js} +1 -1
- package/dist/assets/{dart-BOE7FOuw.js → dart-uddfcmb9.js} +1 -1
- package/dist/assets/{de-AT-CSIZwxlM.js → de-AT-CS5y9UhC.js} +1 -1
- package/dist/assets/{de-DnnWXD4u.js → de-BhOwD2U7.js} +1 -1
- package/dist/assets/{diff-DwlsYpzT.js → diff-BDwjhVif.js} +1 -1
- package/dist/assets/{django-DAQC0m0h.js → django-fPGFXCfr.js} +1 -1
- package/dist/assets/{dockerfile-DiuVoUfn.js → dockerfile-65efZSSl.js} +1 -1
- package/dist/assets/{dtd-x-6z7Mz6.js → dtd-CjnNQqm3.js} +1 -1
- package/dist/assets/{dylan-CxgioVRV.js → dylan-D3SLiF49.js} +1 -1
- package/dist/assets/{ebnf-BZblZmnV.js → ebnf-B4Z4Ngry.js} +1 -1
- package/dist/assets/{ecl-BUDBbKZp.js → ecl-ChpHlVnE.js} +1 -1
- package/dist/assets/{eiffel-BHDS_syJ.js → eiffel-CjuTqXZf.js} +1 -1
- package/dist/assets/{el-B32rIznx.js → el-C49Fo77y.js} +1 -1
- package/dist/assets/{elm-D3-TgsME.js → elm-Bnz20RCS.js} +1 -1
- package/dist/assets/{en-AU-BzgXmcjT.js → en-AU-8Cio9CD3.js} +1 -1
- package/dist/assets/{en-CA-QZcqtm1T.js → en-CA-BlSGavPZ.js} +1 -1
- package/dist/assets/{en-GB-BddbCU8C.js → en-GB-Bb0_S_Gq.js} +1 -1
- package/dist/assets/{en-IN-i1tat2OU.js → en-IN-Xg85Ax5M.js} +1 -1
- package/dist/assets/{en-NZ-CPh17ScC.js → en-NZ-CPJmj1ob.js} +1 -1
- package/dist/assets/{en-ZA-DTCn1Zyf.js → en-ZA-Cg4ZVcer.js} +1 -1
- package/dist/assets/{eo-2ffcQ0x6.js → eo-DAFVC35Q.js} +1 -1
- package/dist/assets/{erlang-DnSUlomn.js → erlang-DzkVeBsj.js} +1 -1
- package/dist/assets/{es-C5VvVV7f.js → es-bhmHN5hf.js} +1 -1
- package/dist/assets/{et-DCKsJ67m.js → et-CnwCIuaT.js} +1 -1
- package/dist/assets/{eu-BonE_Kpb.js → eu-XpRQYuFv.js} +1 -1
- package/dist/assets/{fa-IR-DyPr3sus.js → fa-IR-BpAhmYON.js} +1 -1
- package/dist/assets/{factor-C98EhJZc.js → factor-CUEozmSs.js} +1 -1
- package/dist/assets/{fcl-BVNrza1o.js → fcl-DhC3qkbE.js} +1 -1
- package/dist/assets/{fi-DS4ECrSs.js → fi-BQSBdPtf.js} +1 -1
- package/dist/assets/{forth-CWNTVePN.js → forth-FEA45xuX.js} +1 -1
- package/dist/assets/{fortran-DaUHmKNS.js → fortran-4i6cCnfc.js} +1 -1
- package/dist/assets/{fr-CA-BWYPBIXf.js → fr-CA-DRXfQSjt.js} +1 -1
- package/dist/assets/{fr-CH-BQQQDptF.js → fr-CH-_Mwg7f4q.js} +1 -1
- package/dist/assets/{fr-CZ2_lL43.js → fr-DfsYbdN2.js} +1 -1
- package/dist/assets/{gas-dE6TjYOn.js → gas-D1Cl4EB1.js} +1 -1
- package/dist/assets/{gd-CIHxUBqN.js → gd-j3txrfol.js} +1 -1
- package/dist/assets/{gfm-DnGM-8NL.js → gfm-RuVeDgeR.js} +1 -1
- package/dist/assets/{gherkin-C0YS3Z4F.js → gherkin-CcZ6y0Sa.js} +1 -1
- package/dist/assets/{gl-CXOm7mcO.js → gl-BJ7b_G8T.js} +1 -1
- package/dist/assets/{go-DZqID6iK.js → go-DyFAXz12.js} +1 -1
- package/dist/assets/{groovy-DeW6kT5v.js → groovy-5E-F6hP3.js} +1 -1
- package/dist/assets/{gu-CAn1JOAW.js → gu-Bh0Uie69.js} +1 -1
- package/dist/assets/{haml-ay7Pv7zt.js → haml-Cpp_ZuMd.js} +1 -1
- package/dist/assets/{handlebars-BM98pnOn.js → handlebars-C3joa17B.js} +1 -1
- package/dist/assets/{handlebars-D2kLLPxK.js → handlebars-DyuRXA3Y.js} +1 -1
- package/dist/assets/{haskell-CSZls0_x.js → haskell-BA3OejXD.js} +1 -1
- package/dist/assets/{haskell-mr8SfX_2.js → haskell-CiC5i_Cv.js} +1 -1
- package/dist/assets/{haskell-literate-BhGhb7FR.js → haskell-literate-DhdZxQA9.js} +1 -1
- package/dist/assets/{haxe-B6_w3cc8.js → haxe-BkaUE6D_.js} +1 -1
- package/dist/assets/{he-DVXoTnyi.js → he-CXaXDXIa.js} +1 -1
- package/dist/assets/{hi-D-GFM1Yu.js → hi-C1KxbC1z.js} +1 -1
- package/dist/assets/{hr-BWe8pNf7.js → hr-B4usruHr.js} +1 -1
- package/dist/assets/{ht-CK7WBpBH.js → ht-BveCPALM.js} +1 -1
- package/dist/assets/{htmlembedded-D0AQZfkl.js → htmlembedded-DP6xWUjE.js} +1 -1
- package/dist/assets/{htmlmixed-Dg6mzVQU.js → htmlmixed-CFgn6y6Z.js} +1 -1
- package/dist/assets/{htmlmixed-DgT8JGPo.js → htmlmixed-DaxJMOj_.js} +1 -1
- package/dist/assets/{http-DzjMbUic.js → http-Bv_fjqRo.js} +1 -1
- package/dist/assets/{hu-BLRfs_78.js → hu-CPO-6PzS.js} +1 -1
- package/dist/assets/{hy-CZGmngyV.js → hy-BJ8S2ElH.js} +1 -1
- package/dist/assets/{id-DXRbYfVJ.js → id-BQWwrFby.js} +1 -1
- package/dist/assets/{idl-CSTO6b7g.js → idl-vyjcTdds.js} +1 -1
- package/dist/assets/index-BnWgQckE.css +1 -0
- package/dist/assets/{index-B4r-gn3z.js → index-OVWgm3X3.js} +1 -1
- package/dist/assets/{index-DmchuNNN.js → index-PhlgbAPp.js} +1 -1
- package/dist/assets/{index.CKybLqFg.entry.js → index.CJUle0El.entry.js} +269 -269
- package/dist/assets/{input-rich-text-html-D4sjnl3n.js → input-rich-text-html-xKG8CeYu.js} +1 -1
- package/dist/assets/{is-pZUnzUCu.js → is-DKP2zkBU.js} +1 -1
- package/dist/assets/isSameWeek-BMonfs6x.js +1 -0
- package/dist/assets/{it-B4BMzTM8.js → it-CDGYKMlZ.js} +1 -1
- package/dist/assets/{ja-yiUxeM8B.js → ja-Cuix6nRi.js} +1 -1
- package/dist/assets/{javascript-hint-C60wOLLc.js → javascript-hint-CTvF-FNY.js} +1 -1
- package/dist/assets/{jinja2-BqY_Xgyp.js → jinja2-DLNp0h43.js} +1 -1
- package/dist/assets/{jsonlint-C_PtfYAk.js → jsonlint-BSTL5l-x.js} +1 -1
- package/dist/assets/{jsx-DFD0Jm_E.js → jsx-v6zEnATr.js} +1 -1
- package/dist/assets/{julia-CJ6X6M22.js → julia-Y75z2eCN.js} +1 -1
- package/dist/assets/{ka-BX9TeY8-.js → ka-BAEFqsIE.js} +1 -1
- package/dist/assets/{kk-BC8IKo9W.js → kk-Chs1CdrV.js} +1 -1
- package/dist/assets/{kn-BbXWLpe2.js → kn-BpnOQsKb.js} +1 -1
- package/dist/assets/{ko-B0pXqOBA.js → ko-B_PjZDly.js} +1 -1
- package/dist/assets/{lb-CzYXenjo.js → lb-NiF5YsKB.js} +1 -1
- package/dist/assets/{livescript-CP7lgST5.js → livescript-D7rzTcyy.js} +1 -1
- package/dist/assets/{lt-BEKaXYuR.js → lt-nHoVj7zq.js} +1 -1
- package/dist/assets/{lua-BKzS-ZtW.js → lua-DnxU5W0L.js} +1 -1
- package/dist/assets/{lv-CWT4Q5l-.js → lv-TA0JGrhF.js} +1 -1
- package/dist/assets/{mark-selection-D1K77yUj.js → mark-selection-C6I5xARG.js} +1 -1
- package/dist/assets/{match-6rzZAret.js → match-BPXuHNvA.js} +1 -1
- package/dist/assets/{match-C5uJyN_B.js → match-C-P7CBre.js} +1 -1
- package/dist/assets/{match-highlighter-CNDdJQzq.js → match-highlighter-D-GtgJEj.js} +1 -1
- package/dist/assets/{matchbrackets-KBXfOU_9.js → matchbrackets-B5SWODm_.js} +1 -1
- package/dist/assets/{mathematica-CGkhLOGX.js → mathematica-DqT2uRQE.js} +1 -1
- package/dist/assets/{mbox-DV3HQsx-.js → mbox-VWFz-FqX.js} +1 -1
- package/dist/assets/{mirc-CQZDNzH9.js → mirc-Ct2hjZYd.js} +1 -1
- package/dist/assets/{mk-D2SECF9O.js → mk-nUeC-qqn.js} +1 -1
- package/dist/assets/{mllike-DVukFayG.js → mllike-M3-DcS86.js} +1 -1
- package/dist/assets/{mn-N6MAOObB.js → mn-C8nnZQ2c.js} +1 -1
- package/dist/assets/{modelica-C0fhGwDb.js → modelica-DXj89keR.js} +1 -1
- package/dist/assets/{ms-D9Y8kvk0.js → ms-SD4pKHiU.js} +1 -1
- package/dist/assets/{mscgen-DwtUXqc8.js → mscgen-Db1pbSvd.js} +1 -1
- package/dist/assets/{mt-DdqTBjxA.js → mt-e7SJ3L57.js} +1 -1
- package/dist/assets/{multiplex-C5P-FIRe.js → multiplex-Cjx5L72q.js} +1 -1
- package/dist/assets/{mumps-HLneKR5n.js → mumps-CGGcEqUX.js} +1 -1
- package/dist/assets/{nb-Drmij_2v.js → nb-DF13G10M.js} +1 -1
- package/dist/assets/{nginx-alMsNRAc.js → nginx-DRtuwHf0.js} +1 -1
- package/dist/assets/{nl-BE-BVDa83wK.js → nl-BE-BxRyJz_k.js} +1 -1
- package/dist/assets/{nl-D8uRWuOS.js → nl-D1OHSXZO.js} +1 -1
- package/dist/assets/{nn-BBrLTHd5.js → nn-DrvmD9lt.js} +1 -1
- package/dist/assets/{nsis-Cq2E6HNo.js → nsis-qZ5SEzed.js} +1 -1
- package/dist/assets/{ntriples-BGbsbWJ4.js → ntriples-CB2rLcbY.js} +1 -1
- package/dist/assets/{octave-CmI4SJRQ.js → octave-BNeRx7xB.js} +1 -1
- package/dist/assets/{overlay-BRkWBFJF.js → overlay-uOKrN5iU.js} +1 -1
- package/dist/assets/{oz-2-EQURl3.js → oz-Cn3iVLoD.js} +1 -1
- package/dist/assets/{pascal-CPgarf5n.js → pascal-Bk_h4MsB.js} +1 -1
- package/dist/assets/{pegjs-bWMGvWDJ.js → pegjs-mX4uSAeQ.js} +1 -1
- package/dist/assets/{perl-DbtRqodo.js → perl-HVqOZpxo.js} +1 -1
- package/dist/assets/{php-BvrBFEVq.js → php-CAqHPi1t.js} +1 -1
- package/dist/assets/{pig-CYz9Y362.js → pig-N0savF9m.js} +1 -1
- package/dist/assets/{pl-7RXp-O3T.js → pl-BMt6VOjQ.js} +1 -1
- package/dist/assets/{powershell-DouX6DmE.js → powershell-CPR75bSt.js} +1 -1
- package/dist/assets/{properties-CgUgMP8m.js → properties-qDnKO_F-.js} +1 -1
- package/dist/assets/{protobuf-CpX7lEgy.js → protobuf-CeM6Z6rO.js} +1 -1
- package/dist/assets/{pt-BR-BVfFm57Y.js → pt-BR-CiU-vDPJ.js} +1 -1
- package/dist/assets/{pt-Bcl92fY1.js → pt-BVBnFfMi.js} +1 -1
- package/dist/assets/pt-PT-D9NMqptI.js +3 -0
- package/dist/assets/{pug-c4Ui4AN3.js → pug-B103OFNE.js} +1 -1
- package/dist/assets/{pug-Yk21S0Fv.js → pug-BaHAr1Am.js} +1 -1
- package/dist/assets/{puppet-B8aVkHnX.js → puppet-99gjx8sm.js} +1 -1
- package/dist/assets/{python-BMR0eNxt.js → python-DbQsq_Hl.js} +1 -1
- package/dist/assets/{python-wzwwCouT.js → python-Dtlz0tfo.js} +1 -1
- package/dist/assets/{q-DaOqqUzf.js → q-BDJlloJa.js} +1 -1
- package/dist/assets/{r-BYwGjPSI.js → r-Ct7wYHa2.js} +1 -1
- package/dist/assets/{ro-BtG4ndzp.js → ro-CgFR8lrN.js} +1 -1
- package/dist/assets/{rpm-CkRPEoHE.js → rpm-DfqKjIDa.js} +1 -1
- package/dist/assets/{rst-BXceNFxT.js → rst-aRwTI753.js} +1 -1
- package/dist/assets/ru-RU-CImVq8JR.js +4 -0
- package/dist/assets/{ru-D_J-hIui.js → ru-dA5NRZdr.js} +1 -1
- package/dist/assets/{ruby-DistknvT.js → ruby-BxtOfkTr.js} +1 -1
- package/dist/assets/{ruby-D4U73nPW.js → ruby-m-4v7LO1.js} +1 -1
- package/dist/assets/{rust-Cx4g5qBj.js → rust-Ciz9CNLL.js} +1 -1
- package/dist/assets/{sas-CH-C9OC_.js → sas-C3RQHErp.js} +1 -1
- package/dist/assets/{sass-D86RFEEE.js → sass-Cg9YFpFH.js} +1 -1
- package/dist/assets/{sass-lKhDgE1N.js → sass-DwigYQ-j.js} +1 -1
- package/dist/assets/{scheme-0VekznzJ.js → scheme-FebhD2jp.js} +1 -1
- package/dist/assets/{shell-B-r_4R-v.js → shell-Bus63sRd.js} +1 -1
- package/dist/assets/{show-hint-_CsXkf3F.js → show-hint-BlUjO4df.js} +1 -1
- package/dist/assets/{sieve-DU3aUgoh.js → sieve-NYdtsq0j.js} +1 -1
- package/dist/assets/{sk-TDK0MQMR.js → sk-ClrIxII2.js} +1 -1
- package/dist/assets/{sl-CErRkZo_.js → sl-WWa0LnF0.js} +1 -1
- package/dist/assets/{slim-DvFu3k2T.js → slim-DBdIePQr.js} +1 -1
- package/dist/assets/{smalltalk-D6sXiPmZ.js → smalltalk-DMVS9IHH.js} +1 -1
- package/dist/assets/{smarty-BjzKwx3d.js → smarty-8BcE62vt.js} +1 -1
- package/dist/assets/{solr-D010pLnw.js → solr-DF4jpVhG.js} +1 -1
- package/dist/assets/{soy-DzMGbDb7.js → soy-DC8-M_7P.js} +1 -1
- package/dist/assets/{sparql-CgycZmeY.js → sparql-CnFYkS1C.js} +1 -1
- package/dist/assets/{spreadsheet-xHv1IWFb.js → spreadsheet-C8N2WRdS.js} +1 -1
- package/dist/assets/{sq-CDwclwy8.js → sq-Bdvgv3I2.js} +1 -1
- package/dist/assets/{sql-C1eX1hCI.js → sql-DcrLr5pR.js} +1 -1
- package/dist/assets/{sr-CE6vJdy7.js → sr-DtIZGmrB.js} +1 -1
- package/dist/assets/{sr-Latn-Cj6u_0Qz.js → sr-Latn-C7cPCnhw.js} +1 -1
- package/dist/assets/{stex-CrhZ73G4.js → stex-CUiHCGsp.js} +1 -1
- package/dist/assets/{stex-D-eUEWHl.js → stex-D5OZWXec.js} +1 -1
- package/dist/assets/{stylus-BEO7z66Q.js → stylus-Bn_1ohqY.js} +1 -1
- package/dist/assets/{stylus-DjKvla_v.js → stylus-x6dgy3C0.js} +1 -1
- package/dist/assets/{sv-BGmF7l3h.js → sv-D7yK02_D.js} +1 -1
- package/dist/assets/{swift-DCuW_bL6.js → swift-Db8sAk1l.js} +1 -1
- package/dist/assets/{ta-Dw-TnnWY.js → ta-job-iBBI.js} +1 -1
- package/dist/assets/{tcl-De93ucC_.js → tcl-CynFbjwr.js} +1 -1
- package/dist/assets/{te-CgY5pBEW.js → te-pZ1bGtOj.js} +1 -1
- package/dist/assets/{textile-DonkvB01.js → textile-2eNmeuvF.js} +1 -1
- package/dist/assets/{th-BpYDQcBq.js → th-BAw-p5tg.js} +1 -1
- package/dist/assets/{tiddlywiki-CThg4SiP.js → tiddlywiki-By8OaxiY.js} +1 -1
- package/dist/assets/{tiki-CstdFf_N.js → tiki-DVOw0OWk.js} +1 -1
- package/dist/assets/{toml-9BOCtssy.js → toml-Zs5MBP_M.js} +1 -1
- package/dist/assets/{tornado-DcCP6EMA.js → tornado-CtIAfh_-.js} +1 -1
- package/dist/assets/{tr-UuioftlV.js → tr-7likFAv2.js} +1 -1
- package/dist/assets/{troff-qWP_U4p5.js → troff-vEf4XGqG.js} +1 -1
- package/dist/assets/{ttcn-CrS85gnZ.js → ttcn-DOzlq8fO.js} +1 -1
- package/dist/assets/{ttcn-cfg-D3-AFzmY.js → ttcn-cfg-TrnnSPij.js} +1 -1
- package/dist/assets/{turtle-Cgr9dvvC.js → turtle-DM3L8-AX.js} +1 -1
- package/dist/assets/{twig-C43K_ym8.js → twig-k66_v8ix.js} +1 -1
- package/dist/assets/{ug-BnwNi8Qv.js → ug-ziZ8ut1e.js} +1 -1
- package/dist/assets/{uk-IT0T4zOG.js → uk-DGHTM4Qc.js} +1 -1
- package/dist/assets/{uz-BwWNM1Fc.js → uz-B99oeiEy.js} +1 -1
- package/dist/assets/{vb-DrKnNMUx.js → vb-DfM4udtC.js} +1 -1
- package/dist/assets/{vbscript-BBDs8GhJ.js → vbscript-CPVDHt60.js} +1 -1
- package/dist/assets/{velocity-rRsPkFHp.js → velocity-Be4kCyBB.js} +1 -1
- package/dist/assets/{verilog-qt_s0rCC.js → verilog-DoKtHYCq.js} +1 -1
- package/dist/assets/{vhdl-Bh9DoHOI.js → vhdl-Dx1V5wJt.js} +1 -1
- package/dist/assets/{vi-CxChILnT.js → vi-Stijkg1C.js} +1 -1
- package/dist/assets/{vue-DkdcQjTj.js → vue-M99tjsno.js} +1 -1
- package/dist/assets/{wast-Bz8s71AZ.js → wast-D-aQFxJV.js} +1 -1
- package/dist/assets/{webidl-BOqUqcUn.js → webidl-D6X2Srwl.js} +1 -1
- package/dist/assets/{xml-Cpwc9p1M.js → xml-Bnl3fhaN.js} +1 -1
- package/dist/assets/{xquery-BTe962yp.js → xquery-Dd1m-zJY.js} +1 -1
- package/dist/assets/{yacas-sLK2FEPW.js → yacas-BXhsbC29.js} +1 -1
- package/dist/assets/{yaml-Cptow8ha.js → yaml-BJ1FteJT.js} +1 -1
- package/dist/assets/{yaml-D39kO_h4.js → yaml-D1qaRxWk.js} +1 -1
- package/dist/assets/{yaml-frontmatter-DFLbFq3G.js → yaml-frontmatter-BUql0GbF.js} +1 -1
- package/dist/assets/{z80-Bhc8LWbG.js → z80-Nq398mLG.js} +1 -1
- package/dist/assets/{zh-CN-Du6QCUYy.js → zh-CN-BH3q-h2P.js} +1 -1
- package/dist/assets/{zh-TW-CYJM4ScF.js → zh-TW-B6FckMLH.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +12 -12
- package/dist/assets/index-ZGSrnW68.css +0 -1
- package/dist/assets/isSameWeek-D5zsMTUQ.js +0 -1
- package/dist/assets/pt-PT-B64eHjuZ.js +0 -2
- package/dist/assets/ru-RU-ChHFpTzl.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./index.
|
|
1
|
+
import{_ as t}from"./index.CJUle0El.entry.js";import{a as n}from"./index.CJUle0El.entry.js";import"./runtime-dom.esm-bundler-DoRdk9oh.js";import"./runtime-core.esm-bundler-C5MyH5Ph.js";import"./pinia.C_xFyXxM.entry.js";import"./index-PhlgbAPp.js";import"./vue-router.hmDQfpqn.entry.js";import"./vue-i18n.CtBHPlhC.entry.js";export{t as PrivateView,n as PrivateViewHeaderBarActionButton,t as default};
|
|
@@ -40,7 +40,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
40
40
|
--v-button-background-color: #6644FF !important;
|
|
41
41
|
--v-button-background-color-hover: #5E41EC !important;
|
|
42
42
|
}
|
|
43
|
-
`},width:"full",group:"theming_group"},{field:"ai_group",interface:"group-raw",special:["alias","no-data","group"]},{field:"ai_divider",interface:"presentation-divider",options:{icon:"chat",title:"$t:ai_assistant"},special:["alias","no-data"],width:"full",group:"ai_group"},{field:"ai_notice",interface:"presentation-notice",options:{icon:"info",text:"$t:fields.directus_settings.ai_notice"},special:["alias","no-data"],width:"full",group:"ai_group"},{field:"ai_openai_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_openai_allowed_models",interface:"select-multiple-dropdown",special:["cast-json"],options:{allowOther:!0,choices:[{text:"GPT-4o Mini",value:"gpt-4o-mini"},{text:"GPT-4.1 Nano",value:"gpt-4.1-nano"},{text:"GPT-4.1 Mini",value:"gpt-4.1-mini"},{text:"GPT-4.1",value:"gpt-4.1"},{text:"GPT-5 Nano",value:"gpt-5-nano"},{text:"GPT-5 Mini",value:"gpt-5-mini"},{text:"GPT-5",value:"gpt-5"},{text:"GPT-5.2",value:"gpt-5.2"},{text:"GPT-5.2 Chat",value:"gpt-5.2-chat-latest"},{text:"GPT-5.2 Pro",value:"gpt-5.2-pro"}]},width:"half",group:"ai_group"},{field:"ai_anthropic_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_anthropic_allowed_models",interface:"select-multiple-dropdown",special:["cast-json"],options:{allowOther:!0,choices:[{text:"Claude Haiku 4.5",value:"claude-haiku-4-5"},{text:"Claude Sonnet 4.5",value:"claude-sonnet-4-5"},{text:"Claude Opus 4.5",value:"claude-opus-4-5"}]},width:"half",group:"ai_group"},{field:"ai_google_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_google_allowed_models",interface:"select-multiple-dropdown",special:["cast-json"],options:{allowOther:!0,choices:[{text:"Gemini 3 Pro Preview",value:"gemini-3-pro-preview"},{text:"Gemini 3 Flash Preview",value:"gemini-3-flash-preview"},{text:"Gemini 2.5 Pro",value:"gemini-2.5-pro"},{text:"Gemini 2.5 Flash",value:"gemini-2.5-flash"}]},width:"half",group:"ai_group"},{field:"ai_system_prompt",interface:"input-rich-text-md",group:"ai_group",width:"full",note:"$t:fields.directus_settings.ai_system_prompt_note",options:{label:"$t:fields.directus_settings.ai_system_prompt"}},{field:"ai_openai_compatible_divider",interface:"presentation-divider",options:{inlineTitle:!0,color:"var(--theme--foreground-subdued)",title:"$t:fields.directus_settings.ai_openai_compatible"},special:["alias","no-data"],width:"full",group:"ai_group"},{field:"ai_openai_compatible_name",interface:"input",options:{placeholder:"LM Studio, Ollama, etc."},width:"half",group:"ai_group"},{field:"ai_openai_compatible_base_url",interface:"input",options:{placeholder:"http://localhost:1234/v1"},width:"half",group:"ai_group"},{field:"ai_openai_compatible_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_openai_compatible_headers",interface:"list",special:["cast-json"],options:{template:"{{header}}",fields:[{field:"header",name:"$t:fields.directus_settings.ai_header_name",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"X-Custom-Header"}}},{field:"value",name:"$t:value",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"header-value"}}}]},width:"half",group:"ai_group"},{field:"ai_openai_compatible_models",interface:"list",special:["cast-json"],options:{template:"{{name}}",fields:[{field:"id",name:"$t:fields.directus_settings.ai_model_id",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"llama3.2"}}},{field:"name",name:"$t:name",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"Llama 3.2"}}},{field:"context",name:"$t:fields.directus_settings.ai_context_limit",type:"integer",schema:{is_nullable:!0},meta:{interface:"input",width:"half",options:{placeholder:"128000"}}},{field:"output",name:"$t:fields.directus_settings.ai_output_limit",type:"integer",schema:{is_nullable:!0},meta:{interface:"input",width:"half",options:{placeholder:"16000"}}},{field:"attachment",name:"$t:fields.directus_settings.ai_supports_attachments",type:"boolean",schema:{is_nullable:!0,default_value:!1},meta:{interface:"boolean",width:"half"}},{field:"reasoning",name:"$t:fields.directus_settings.ai_supports_reasoning",type:"boolean",schema:{is_nullable:!0,default_value:!1},meta:{interface:"boolean",width:"half"}},{field:"providerOptions",name:"$t:fields.directus_settings.ai_provider_options",type:"json",schema:{is_nullable:!0},meta:{interface:"input-code",width:"full",options:{language:"json",placeholder:'{ "customOption": "value" }'},note:"$t:fields.directus_settings.ai_provider_options_note"}}]},width:"full",group:"ai_group"},{field:"mcp_group",interface:"group-raw",special:["alias","no-data","group"]},{field:"mcp_divider",interface:"presentation-divider",options:{icon:"automation",title:"$t:model_context_protocol"},special:["alias","no-data"],width:"full",group:"mcp_group"},{field:"mcp_notice",interface:"presentation-notice",options:{icon:"info",text:"$t:fields.directus_settings.mcp_notice"},special:["alias","no-data"],width:"full",group:"mcp_group"},{field:"mcp_enabled",interface:"boolean",group:"mcp_group",special:["cast-boolean"],note:"$t:fields.directus_settings.mcp_enabled_note",width:"half",options:{label:"$t:enabled"}},{field:"mcp_allow_deletes",interface:"boolean",group:"mcp_group",special:["cast-boolean"],note:"$t:fields.directus_settings.mcp_allow_deletes_note",width:"half",options:{label:"$t:fields.directus_settings.mcp_allow_deletes"},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0}]},{field:"mcp_prompts_collection",interface:"system-collection",group:"mcp_group",width:"half",note:"$t:fields.directus_settings.mcp_prompts_collection_note",options:{includeSingleton:!1,allowNone:!0},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0}]},{field:"mcp_prompts_collection_validation",interface:"system-mcp-prompts-collection-validation",group:"mcp_group",width:"half",special:["alias","no-data"],conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},hidden:!0}]},{field:"mcp_system_prompt_divider",interface:"presentation-divider",options:{inlineTitle:!0,color:"var(--theme--foreground-subdued)",title:"$t:fields.directus_settings.mcp_system_prompt_divider"},special:["alias","no-data"],width:"full",group:"mcp_group"},{field:"mcp_system_prompt_enabled",interface:"boolean",group:"mcp_group",special:["cast-boolean"],width:"half-left",note:"$t:fields.directus_settings.mcp_system_prompt_enabled_note",options:{label:"$t:enabled"},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0}]},{field:"mcp_system_prompt",interface:"input-rich-text-md",group:"mcp_group",width:"full",note:"$t:fields.directus_settings.mcp_system_prompt_note",options:{label:"$t:fields.directus_settings.mcp_system_prompt"},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0},{name:"mcp_system_prompt_enabled",rule:{mcp_system_prompt_enabled:{_neq:!0}},readonly:!0}]}]},k6={table:"directus_shares",fields:[{field:"id",special:["uuid"],readonly:!0,hidden:!0},{field:"name"},{field:"collection",width:"half",hidden:!0},{field:"item",width:"half",hidden:!0},{field:"role",interface:"select-dropdown-m2o",width:"half",options:{template:"{{name}}"}},{field:"password",special:["hash","conceal"],interface:"input-hash",options:{iconRight:"lock",masked:!0},width:"half",note:"$t:shared_leave_blank_for_passwordless_access"},{field:"date_start",width:"half",note:"$t:shared_leave_blank_for_unlimited"},{field:"date_end",width:"half",note:"$t:shared_leave_blank_for_unlimited"},{field:"max_uses",width:"half",note:"$t:shared_leave_blank_for_unlimited"},{field:"times_used",width:"half",readonly:!0},{field:"date_created",special:["date-created","cast-timestamp"],width:"half",readonly:!0,conditions:[{name:"notCreatedYet",rule:{id:{_null:!0}},hidden:!0}]},{field:"user_created",special:["user-created"],interface:"select-dropdown-m2o",width:"half",display:"user",options:{template:"{{avatar.$thumbnail}} {{first_name}} {{last_name}}"},readonly:!0,conditions:[{name:"notCreatedYet",rule:{id:{_null:!0}},hidden:!0}]}]},S6={table:"directus_translations",fields:[{field:"id",hidden:!0,sort:1,special:["uuid"]},{field:"key",width:"half",sort:2,required:!0,interface:"input",options:{font:"monospace",placeholder:"$t:translation_key_placeholder"}},{field:"language",interface:"system-language",width:"half",sort:3,required:!0},{field:"value",interface:"input-multiline",sort:4,required:!0,options:{placeholder:"$t:enter_a_value"}}]},I6={table:"directus_users",fields:[{field:"first_name",interface:"input",options:{iconRight:"account_circle"},width:"half"},{field:"last_name",interface:"input",options:{iconRight:"account_circle"},width:"half"},{field:"email",interface:"input",options:{iconRight:"email"},width:"half"},{field:"password",special:["hash","conceal"],interface:"input-hash",options:{iconRight:"lock",masked:!0},width:"half"},{field:"avatar",interface:"file",width:"full",display:"image"},{field:"location",interface:"input",options:{iconRight:"place"},width:"half"},{field:"title",interface:"input",options:{iconRight:"work"},width:"half"},{field:"description",interface:"input-multiline",width:"full"},{field:"tags",interface:"tags",special:["cast-json"],width:"full",options:{iconRight:"local_offer"},display:"labels",display_options:{choices:null,format:!1}},{field:"preferences_divider",interface:"presentation-divider",options:{icon:"face",title:"$t:fields.directus_users.user_preferences"},special:["alias","no-data"],width:"full"},{field:"language",interface:"system-language",width:"half",options:{includeProjectDefault:!0}},{field:"text_direction",interface:"select-dropdown",options:{choices:[{value:"auto",text:"$t:text_direction_auto"},{value:"ltr",text:"$t:text_direction_ltr"},{value:"rtl",text:"$t:text_direction_rtl"}]},width:"half"},{field:"tfa_secret",interface:"system-mfa-setup",special:["conceal"],width:"half"},{field:"email_notifications",interface:"boolean",width:"half",special:["cast-boolean"]},{field:"theming_divider",interface:"presentation-divider",options:{icon:"palette",title:"$t:theme"},special:["alias","no-data"],width:"full"},{field:"appearance",interface:"select-dropdown",options:{choices:[{value:null,text:"$t:default_sync_with_project"},{value:"auto",text:"$t:appearance_auto"},{value:"light",text:"$t:appearance_light"},{value:"dark",text:"$t:appearance_dark"}]},width:"half"},{field:"theme_light",width:"full",interface:"system-theme",options:{appearance:"light",includeNull:!0}},{field:"theme_light_overrides",width:"full",interface:"system-theme-overrides",options:{appearance:"light"},special:["cast-json"]},{field:"theme_dark",width:"full",interface:"system-theme",options:{appearance:"dark",includeNull:!0}},{field:"theme_dark_overrides",width:"full",interface:"system-theme-overrides",options:{appearance:"dark"},special:["cast-json"]},{field:"admin_divider",interface:"presentation-divider",options:{icon:"verified_user",title:"$t:fields.directus_users.admin_options",color:"var(--theme--danger)"},special:["alias","no-data"],width:"full"},{field:"status",interface:"select-dropdown",options:{choices:[{text:"$t:fields.directus_users.status_draft",value:"draft"},{text:"$t:fields.directus_users.status_invited",value:"invited"},{text:"$t:fields.directus_users.status_unverified",value:"unverified"},{text:"$t:fields.directus_users.status_active",value:"active"},{text:"$t:fields.directus_users.status_suspended",value:"suspended"},{text:"$t:fields.directus_users.status_archived",value:"archived"}]},width:"half"},{field:"role",interface:"select-dropdown-m2o",options:{template:"{{ name }}"},special:["m2o"],width:"half",display:"related-values",display_options:{template:"{{ name }}"}},{field:"policies",interface:"list-m2m",options:{layout:"list"},display:"related-values",special:["m2m"],width:"full"},{field:"token",interface:"system-token",special:["conceal"],width:"full"},{field:"id",special:["uuid"],interface:"input",options:{iconRight:"vpn_key"},width:"full"},{field:"last_page",width:"half"},{field:"last_access",width:"half",display:"datetime",readonly:!0},{field:"provider",width:"half",interface:"select-dropdown",options:{choices:[{text:"$t:default_provider",value:"default"}]}},{field:"external_identifier",width:"half",options:{iconRight:"account_circle"},interface:"input"},{field:"auth_data",hidden:!0}]},A6={table:"directus_versions",fields:[{field:"id",special:["uuid"],readonly:!0,hidden:!0},{field:"key"},{field:"name"},{field:"collection"},{field:"item"},{field:"hash",readonly:!0,hidden:!0},{field:"date_created",special:["date-created","cast-timestamp"]},{field:"date_updated",special:["date-updated","cast-timestamp"]},{field:"user_created",special:["user-created"]},{field:"user_updated",special:["user-updated"]},{field:"delta",special:["cast-json"]}]};const E6=[];fe(QF),fe(e6),fe(t6),fe(n6),fe(r6),fe(a6),fe(u6),fe(c6),fe(l6),fe(d6),fe(f6),fe(p6),fe(m6),fe(h6),fe(g6),fe(v6),fe(_6),fe(y6),fe(b6),fe($6),fe(w6),fe(O6),fe(k6),fe(S6),fe(I6),fe(A6),fe(s6),fe(i6),fe(o6);function fe(e){let{table:t,fields:n,indexed:i}=e;n.forEach((r,o)=>{E6.push({system:!0,...YF,...r,collection:t,sort:o+1})}),i&&i.forEach(({field:r})=>{})}var x6=[{collection:"directus_activity",action:"read",permissions:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_comments",action:"read",permissions:{user_created:{_eq:"$CURRENT_USER"}}},{collection:"directus_comments",action:"create",validation:{comment:{_nnull:!0}}},{collection:"directus_comments",action:"update",permissions:{user_created:{_eq:"$CURRENT_USER"}},fields:["comment"]},{collection:"directus_comments",action:"delete",permissions:{user_created:{_eq:"$CURRENT_USER"}}},{collection:"directus_presets",action:"read",permissions:{_or:[{user:{_eq:"$CURRENT_USER"}},{_and:[{user:{_null:!0}},{role:{_eq:"$CURRENT_ROLE"}}]},{_and:[{user:{_null:!0}},{role:{_null:!0}}]}]}},{collection:"directus_presets",action:"create",validation:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_presets",action:"update",permissions:{user:{_eq:"$CURRENT_USER"}},validation:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_presets",action:"delete",permissions:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_roles",action:"read",permissions:{id:{_in:"$CURRENT_ROLES"}}},{collection:"directus_settings",action:"read"},{collection:"directus_translations",action:"read"},{collection:"directus_notifications",action:"read",permissions:{recipient:{_eq:"$CURRENT_USER"}}},{collection:"directus_notifications",action:"update",permissions:{recipient:{_eq:"$CURRENT_USER"}},fields:["status"]},{collection:"directus_shares",action:"read",permissions:{user_created:{_eq:"$CURRENT_USER"}}},{collection:"directus_users",action:"read",permissions:{id:{_eq:"$CURRENT_USER"}},fields:["id","first_name","last_name","last_page","email","password","location","title","description","tags","provider","preferences_divider","avatar","language","appearance","theme_light","theme_dark","tfa_secret","status","role"]}],T6=[{collection:"directus_collections",action:"read"},{collection:"directus_fields",action:"read"},{collection:"directus_relations",action:"read"},{collection:"directus_translations",action:"read"}];const Tb={policy:null,permissions:{},validation:null,presets:null,fields:["*"],system:!0},N6=T6.map(e=>({...Tb,...e})),U3=[...N6,...x6].map(e=>({...Tb,...e}));let D3=(function(e){return e.CREATE="create",e.UPDATE="update",e.DELETE="delete",e.REVERT="revert",e.VERSION_SAVE="version_save",e.COMMENT="comment",e.UPLOAD="upload",e.LOGIN="login",e.RUN="run",e.INSTALL="install",e})({});const lo=["interface","display","layout","module","panel","theme"],fa=["hook","endpoint"],fo=["operation"],Nb=["bundle"],F3=[...lo,...fa,...fo,...Nb];[...lo,...fa,...fo];const R6=[...lo,...fo];[...R6,...Nb];const j6=["bigInteger","boolean","date","dateTime","decimal","float","integer","json","string","text","time","timestamp","binary","uuid"],L3=[...j6,"alias","hash","csv","geometry","geometry.Point","geometry.LineString","geometry.Polygon","geometry.MultiPoint","geometry.MultiLineString","geometry.MultiPolygon","unknown"],Z3=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],M3=["standard","file","files","m2o","o2m","m2m","m2a","presentation","translations","group"],B3=["file","files","m2o","o2m","m2m","m2a","translations"],G3=["text","string","integer","bigInteger","float","decimal","uuid"],H3=8388608,P6="stores",z6="api",C6="sdk",U6="extensions",W3=["create","read","update","delete","share"],$d=/\(([^)]+)\)/;var D6=Object.create,Rb=Object.defineProperty,F6=Object.getOwnPropertyDescriptor,jb=Object.getOwnPropertyNames,L6=Object.getPrototypeOf,Z6=Object.prototype.hasOwnProperty,M6=(e,t)=>function(){return t||(0,e[jb(e)[0]])((t={exports:{}}).exports,t),t.exports},B6=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=jb(t),o=0,s=r.length,u;o<s;o++)u=r[o],!Z6.call(e,u)&&u!==n&&Rb(e,u,{get:(a=>t[a]).bind(null,u),enumerable:!(i=F6(t,u))||i.enumerable});return e},G6=(e,t,n)=>(n=e!=null?D6(L6(e)):{},B6(Rb(n,"default",{value:e,enumerable:!0}),e));function V3(e,t=0,n=["K","M","B","T"]){const i=e<0;e=Math.abs(e);let r=String(e);if(e>=1e3){const o=Math.pow(10,t);for(let s=n.length-1;s>=0;s--){const u=Math.pow(10,(s+1)*3);if(u<=e){e=Math.round(e*o/u)/o,e===1e3&&s<n.length-1&&(e=1,s++),r=e.toFixed(t)+n[s];break}}}return i&&(r=`-${r}`),r}function H6(e,t){e=PA(e);const n=t.startsWith("-");(n||t.startsWith("+"))&&(t=t.substring(1));const i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|months?|mth|mo|years?|yrs?|y)?$/i.exec(t);if(!i||!i[1])return;const r=parseFloat(i[1]);switch((i[2]??"days").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n?CF(e,r):Sb(e,r);case"months":case"month":case"mth":case"mo":return n?TF(e,r):_d(e,r);case"weeks":case"week":case"w":return n?zF(e,r):kb(e,r);case"days":case"day":case"d":return n?mF(e,r):vd(e,r);case"hours":case"hour":case"hrs":case"hr":case"h":return n?NF(e,r):$b(e,r);case"minutes":case"minute":case"mins":case"min":case"m":return n?jF(e,r):wb(e,r);case"seconds":case"second":case"secs":case"sec":case"s":return n?PF(e,r):Ob(e,r);case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n?RF(e,r):la(e,r);default:return}}function Pb(e){return String(e).includes("__proto__")?JSON.parse(e,W6):JSON.parse(e)}function W6(e,t){if(e!=="__proto__")return t}function q3(e,t,n=[]){return Object.fromEntries(Object.entries(e).map(([i,r])=>[i,vu(r,t,n.includes(i))]))}function V6(e){return(t,n)=>{const i=bd(n,t);return i!==void 0||!e?typeof i=="object"?JSON.stringify(i):i:`{{ ${t} }}`}}function vu(e,t,n){if(typeof e=="string"){const i=e.match(/^\{\{\s*([^}\s]+)\s*\}\}$/);if(i!==null){const r=bd(t,i[1]);if(r!==void 0)return r}return VF(e,V6(n),t,{explicit:!0})}else return Array.isArray(e)?e.map(i=>vu(i,t,n)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([i,r])=>[i,vu(r,t,n)])):e}function K3(e,t){return t.includes(e)}function zb(e,t,n){return i(e);function i(r,o){return Array.isArray(r)?r.map(i):wt(r)&&Mu(r)?Object.fromEntries(Object.entries(r).map(([s,u])=>[s,i(u,s)])):o!==void 0?t.call(n,r,o):r}}const q6={year:K6,month:X6,week:J6,day:Y6,weekday:Q6,hour:eL,minute:tL,second:nL,count:rL};function K6(e){return Cn(e).getUTCFullYear()}function X6(e){return Cn(e).getUTCMonth()+1}function J6(e){return dF(Cn(e))}function Y6(e){return fF(Cn(e))}function Q6(e){return pF(Cn(e))}function eL(e){return Cn(e).getUTCHours()}function tL(e){return Cn(e).getUTCMinutes()}function nL(e){return Cn(e).getUTCSeconds()}function rL(e){return Array.isArray(e)?e.length:null}const be=yp.extend({type:"string",base:yp.string(),messages:{"string.contains":"{{#label}} must contain [{{#substring}}]","string.icontains":"{{#label}} must contain case insensitive [{{#substring}}]","string.ncontains":"{{#label}} can't contain [{{#substring}}]"},rules:{contains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"contains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!1?t.error("string.contains",{substring:n}):e}},icontains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"icontains",args:{substring:e}})},validate(e,t,{substring:n}){return e.toLowerCase().includes(n.toLowerCase())===!1?t.error("string.icontains",{substring:n}):e}},ncontains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"ncontains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!0?t.error("string.ncontains",{substring:n}):e}}}}),iL={requireAll:!1};function Cb(e,t){e=e||{},t=jo({},iL,t);const n={},i=Object.keys(e)[0];if(!i)throw new Error(`[generateJoi] Filter doesn't contain field key. Passed filter: ${JSON.stringify(e)}`);const r=Object.values(e)[0];if(!r)throw new Error(`[generateJoi] Filter doesn't contain filter rule. Passed filter: ${JSON.stringify(e)}`);if(Object.keys(r)[0]?.startsWith("_")===!1)n[i]=Cb(r,t);else{const o=Object.keys(r)[0],s=Object.values(r)[0],u=()=>n[i]??be.any(),a=()=>n[i]??be.string(),h=()=>n[i]??be.number(),g=()=>n[i]??be.date();if(o==="_eq"){let _;typeof s=="number"?_=String(s):_=[null,"",!0,!1].includes(s)?NaN:Number(s),typeof _=="number"&&isNaN(_)?n[i]=u().equal(s):n[i]=u().equal(s,_)}if(o==="_neq"){let _;typeof s=="number"?_=String(s):_=[null,"",!0,!1].includes(s)?NaN:Number(s),typeof _=="number"&&isNaN(_)?n[i]=u().not(s):n[i]=u().not(s,_)}if(o==="_contains"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=be.alternatives().try(a().contains(s),be.array().items(a().contains(s).required(),be.any()))),o==="_icontains"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=be.alternatives().try(a().icontains(s),be.array().items(a().icontains(s).required(),be.any()))),o==="_ncontains"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=be.alternatives().try(a().ncontains(s),be.array().items(a().contains(s).forbidden()))),o==="_starts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`),{name:"starts_with"})),o==="_nstarts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`),{name:"nstarts_with",invert:!0})),o==="_istarts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`,"i"),{name:"istarts_with"})),o==="_nistarts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`,"i"),{name:"nistarts_with",invert:!0})),o==="_ends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`),{name:"ends_with"})),o==="_nends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`),{name:"nends_with",invert:!0})),o==="_iends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`,"i"),{name:"iends_with"})),o==="_niends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`,"i"),{name:"niends_with",invert:!0})),o==="_in"&&(n[i]=u().equal(...s)),o==="_nin"&&(n[i]=u().not(...s)),o==="_gt"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().greater(s):h().greater(Number(s))),o==="_gte"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().min(s):h().min(Number(s))),o==="_lt"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().less(s):h().less(Number(s))),o==="_lte"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().max(s):h().max(Number(s))),o==="_null"&&(n[i]=u().valid(null)),o==="_nnull"&&(n[i]=u().invalid(null)),o==="_empty"&&(n[i]=u().valid("")),o==="_nempty"&&(n[i]=u().invalid("")),o==="_between")if(s.every(_=>{const c=Number(_ instanceof Date?NaN:_);return!Number.isNaN(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER})){const _=s;n[i]=h().min(Number(_[0])).max(Number(_[1]))}else{const _=s;n[i]=g().min(_[0]).max(_[1])}if(o==="_nbetween")if(s.every(_=>{const c=Number(_ instanceof Date?NaN:_);return!Number.isNaN(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER})){const _=s;n[i]=h().less(Number(_[0])).greater(Number(_[1]))}else{const _=s;n[i]=g().less(_[0]).greater(_[1])}if(o==="_submitted"&&(n[i]=u().required()),o==="_regex")if(s==null)n[i]=be.any().equal(!0);else{const _=typeof s=="string"?s.startsWith("/")&&s.endsWith("/"):!1;n[i]=a().min(0).regex(new RegExp(_?s.slice(1,-1):s))}}return n[i]=n[i]??be.any(),t.requireAll&&(n[i]=n[i].required()),be.object(n).unknown()}function X3(e){return e.schema?"table":e.meta?"alias":"unknown"}function J3(){const e=new Date;let t=String(e.getMonth()+1);t.length===1&&(t="0"+t);let n=String(e.getDate());return n.length===1&&(n="0"+n),`${e.getFullYear()}${t}${n}-${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}function oL(e){return JF(e)?`/${e.substring(9)}`:`/items/${e}`}function Y3(e){if(Fn(e))return[];const t=e.match(/{{(.*?)}}/g);return Array.isArray(t)?t.map(n=>n.replace(/{{/g,"").replace(/}}/g,"").trim()):[]}function Q3(e,t){const n=t?.includeValidation?["regex"]:[];switch(e){case"binary":case"string":case"text":case"csv":return["contains","ncontains","icontains","starts_with","nstarts_with","istarts_with","nistarts_with","ends_with","nends_with","iends_with","niends_with","eq","neq","empty","nempty","null","nnull","in","nin",...n];case"hash":return["empty","nempty","null","nnull"];case"uuid":return["eq","neq","null","nnull","in","nin"];case"json":return["null","nnull"];case"boolean":return["eq","neq","null","nnull"];case"bigInteger":case"integer":case"decimal":case"float":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"dateTime":case"date":case"time":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"geometry":return["eq","neq","null","nnull","intersects","nintersects","intersects_bbox","nintersects_bbox"];default:return["contains","ncontains","eq","neq","lt","lte","gt","gte","between","nbetween","empty","nempty","null","nnull","in","nin",...n]}}function eG(e){switch(e){case"dateTime":case"timestamp":return["year","month","week","day","weekday","hour","minute","second"];case"date":return["year","month","week","day","weekday"];case"time":return["hour","minute","second"];case"json":return["count"];case"alias":return["count"];default:return[]}}function tG(e){return{year:"integer",month:"integer",week:"integer",day:"integer",weekday:"integer",hour:"integer",minute:"integer",second:"integer",count:"integer"}[e]}function nG(e){const{relation:t,collection:n,field:i,useA2O:r=!1}=e;return t?t.collection===n&&t.field===i&&t.meta?.one_collection_field&&t.meta?.one_allowed_collections?r?"a2o":"m2a":t.collection===n&&t.field===i?"m2o":t.related_collection===n&&t.meta?.one_field===i?"o2m":null:null}function rG(e,t,n){return e.filter(i=>i.collection===t&&i.field===n||i.related_collection===t&&i.meta?.one_field===n)}function iG(e,t,n){return e.find(i=>i.collection===t&&i.field===n||i.related_collection===t&&i.meta?.one_field===n)}function oG(e){let t=0;for(let n=0;n<e.length;t&=t)t=31*t+e.charCodeAt(n++);return Math.abs(t).toString(16)}function wr(e,t,n){let i=t.split(".")[0];const r=t.split(".").slice(1);i.includes(":")&&(i=i.split(":")[0]);const o=Array.isArray(e)?sL(e,i):e?.[i];return o!==void 0&&r.length>0?wr(o,r.join("."),n):o??n}function sL(e,t){const n=e.map(i=>i?.[t]).filter(i=>i);return n.length>0?n.flat():void 0}function aL(e,t){const n=UA(e);return i(t),n;function i(r,o){for(const[s,u]of Object.entries(r)){const a=o?o+"."+s:s;if(s.startsWith("_")===!1&&Mu(u)&&i(u,a),s.includes("(")&&s.includes(")")){const h=s.split("(")[0],g=s.match($d)?.[1];if(!g||!h)continue;const _=Go(n,o?o+"."+g:g);ZE(n,a,q6[h](_))}}}}function wd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function sG(e){return wd(e)?Array.isArray(e.create)&&Array.isArray(e.update)&&Array.isArray(e.delete):!1}const uL=["$NOW","$CURRENT_USER","$CURRENT_ROLE","$CURRENT_ROLES","$CURRENT_POLICIES"];function aG(e){return typeof e=="string"&&uL.some(t=>e.startsWith(t))}function uG(e){try{return Pb(e),!0}catch{return!1}}function cG(e){return wd(e)?typeof e.setup=="function"||typeof e.render=="function":!1}function lG(e,t,n="and"){return e?t?{[`_${n}`]:[e,t]}:e:t}function cL(e,t,n){const i=e[t],r=e.length,o=t-n;if(i===void 0)return e;if(o>0)return[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)];if(o<0){const s=n+1;return[...e.slice(0,t),...e.slice(t+1,s),i,...e.slice(s,r)]}return e}function dG(e){if(e.includes("(")&&e.includes(")")){const t=e.split("(")[0],n=t.includes("."),i=n?t.slice(0,t.lastIndexOf(".")+1):"",r=n?t.slice(t.lastIndexOf(".")+1):t,o=e.match($d);if(o){const s=o[1],u=s.includes(".");return`${i}${u?s.slice(0,s.lastIndexOf(".")+1):""}${r}(${u?s.slice(s.lastIndexOf(".")+1):s})`}}return e}function lL(e){return typeof e=="string"?e.split(","):Array.isArray(e)?e:[e]}function fG(e,t,n={},i=!1){let r=_u(e,t,n);return r&&(i===!1&&(r=zb(r,o=>o==="true"?!0:o==="false"?!1:o==="null"||o==="NULL"?null:o)),Fo(r))}const $p=["_and","_or"],dL=["_none","_some"];function Fo(e){const t=Object.keys(e)[0];if(!t)return e;if($p.includes(t))return{[t]:e[t].map(Fo)};if(t.startsWith("_"))return e;{const n=Fo(e[t]),i=Object.keys(n)[0];return i?$p.includes(i)?Fo({[i]:n[i].map(r=>({[t]:r}))}):{[t]:n}:{[t]:n}}}function _u(e,t,n={}){if(e==null)return null;if(!wt(e))return{_eq:mi(e,t,n)};const i=Object.entries(e).map(r=>fL(r,t,n));return i.length===0?{}:i.length===1?i[0]??null:{_and:i}}function pG(e,t,n){return e&&zb(e,i=>i==="true"?!0:i==="false"?!1:i==="null"||i==="NULL"?null:mi(i,t,n))}function fL([e,t],n,i){if(["_or","_and"].includes(String(e)))return{[e]:t.map(r=>_u(r,n,i))};if(["_in","_nin","_between","_nbetween"].includes(String(e))){const r=wd(t)?Object.values(t):t;return{[e]:lL(r).flatMap(o=>mi(o,n,i))}}else return["_intersects","_nintersects","_intersects_bbox","_nintersects_bbox"].includes(String(e))?{[e]:mi(typeof t=="string"?Pb(t):t,n,i)}:String(e).startsWith("_")&&!dL.includes(e)?{[e]:mi(t,n,i)}:{[e]:_u(t,n,i)}}function mi(e,t,n){if(typeof e!="string")return e;if(e.startsWith("$NOW")){if(e.includes("(")&&e.includes(")")){const i=e.match($d)?.[1];return i?H6(new Date,i):new Date}return new Date}return e.startsWith("$CURRENT_USER")?e==="$CURRENT_USER"?t?.user??null:wr(n,e,null):e.startsWith("$CURRENT_ROLES")?e==="$CURRENT_ROLES"?t?.roles??null:wr(n,e,null):e.startsWith("$CURRENT_ROLE")?e==="$CURRENT_ROLE"?t?.role??null:wr(n,e,null):e.startsWith("$CURRENT_POLICIES")?e==="$CURRENT_POLICIES"?wr(n,e,null)?.map(({id:i})=>i)??null:wr(n,e,null):e}function mG(e){return`${e}s`}function wp(e,t,n){const i=[];if(Object.keys(e)[0]==="_and"){const r=Object.values(e)[0],o=eI(r.map(s=>wp(s,t,n))).filter(s=>s);i.push(...o)}else if(Object.keys(e)[0]==="_or"){const r=Object.values(e)[0],o=[];r.some(s=>{const u=wp(s,t,n);return u.length>0?(o.push(...u),!1):!0})||i.push(...o)}else{const r=aL(t,e),{error:o}=Cb(e,n).validate(r,{abortEarly:!1});o&&i.push(o)}return i}var pL=M6({"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js":((e,t)=>{var n=1e3,i=n*60,r=i*60,o=r*24,s=o*7,u=o*365.25;t.exports=function(c,l){l=l||{};var d=typeof c;if(d==="string"&&c.length>0)return a(c);if(d==="number"&&isFinite(c))return l.long?g(c):h(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(l){var d=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*u;case"weeks":case"week":case"w":return d*s;case"days":case"day":case"d":return d*o;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*i;case"seconds":case"second":case"secs":case"sec":case"s":return d*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function h(c){var l=Math.abs(c);return l>=o?Math.round(c/o)+"d":l>=r?Math.round(c/r)+"h":l>=i?Math.round(c/i)+"m":l>=n?Math.round(c/n)+"s":c+"ms"}function g(c){var l=Math.abs(c);return l>=o?_(c,l,o,"day"):l>=r?_(c,l,r,"hour"):l>=i?_(c,l,i,"minute"):l>=n?_(c,l,n,"second"):c+" ms"}function _(c,l,d,p){var f=l>=d*1.5;return Math.round(c/d)+" "+p+(f?"s":"")}})}),Ub=G6(pL());const ue=(e,t,n=500)=>class extends Error{name="DirectusError";extensions;code=e.toUpperCase();status=n;constructor(i,r){const o=typeof t=="string"?t:t(i);super(o,r),this.extensions=i}toString(){return`${this.name} [${this.code}]: ${this.message}`}};let ce=(function(e){return e.ContainsNullValues="CONTAINS_NULL_VALUES",e.ContentTooLarge="CONTENT_TOO_LARGE",e.EmailLimitExceeded="EMAIL_LIMIT_EXCEEDED",e.Forbidden="FORBIDDEN",e.IllegalAssetTransformation="ILLEGAL_ASSET_TRANSFORMATION",e.Internal="INTERNAL_SERVER_ERROR",e.InvalidCredentials="INVALID_CREDENTIALS",e.InvalidForeignKey="INVALID_FOREIGN_KEY",e.InvalidIp="INVALID_IP",e.InvalidOtp="INVALID_OTP",e.InvalidPayload="INVALID_PAYLOAD",e.InvalidPathParameter="INVALID_PATH_PARAMETER",e.InvalidProvider="INVALID_PROVIDER",e.InvalidProviderConfig="INVALID_PROVIDER_CONFIG",e.InvalidQuery="INVALID_QUERY",e.InvalidToken="INVALID_TOKEN",e.LimitExceeded="LIMIT_EXCEEDED",e.MethodNotAllowed="METHOD_NOT_ALLOWED",e.NotNullViolation="NOT_NULL_VIOLATION",e.OutOfDate="OUT_OF_DATE",e.RangeNotSatisfiable="RANGE_NOT_SATISFIABLE",e.RecordNotUnique="RECORD_NOT_UNIQUE",e.RequestsExceeded="REQUESTS_EXCEEDED",e.RouteNotFound="ROUTE_NOT_FOUND",e.ServiceUnavailable="SERVICE_UNAVAILABLE",e.TokenExpired="TOKEN_EXPIRED",e.UnexpectedResponse="UNEXPECTED_RESPONSE",e.UnprocessableContent="UNPROCESSABLE_CONTENT",e.UnsupportedMediaType="UNSUPPORTED_MEDIA_TYPE",e.UserSuspended="USER_SUSPENDED",e.ValueOutOfRange="VALUE_OUT_OF_RANGE",e.ValueTooLong="VALUE_TOO_LONG",e})({});const mL=({collection:e,field:t})=>`Field "${t}" in collection "${e}" contains null values.`;ue(ce.ContainsNullValues,mL,400);ue(ce.ContentTooLarge,"Uploaded content is too large.",413);const hL=e=>{const t=["Email sending limit exceeded."];if(typeof e.points=="number"&&typeof e.duration=="number"){const n=(0,Ub.default)(e.duration*1e3,{long:!0}),i=e.points!==1?"s":"";t.push(`Limit of ${e.points} email${i} every ${n}.`)}return e.message&&t.push(e.message),t.join(" ")};ue(ce.EmailLimitExceeded,hL,429);const gL=e=>e?.reason?e.reason:"You don't have permission to access this.";ue(ce.Forbidden,gL,403);const vL=e=>`Too many requests, retry after ${(0,Ub.default)(e.reset.getTime()-Date.now())}.`;ue(ce.RequestsExceeded,vL,429);ue(ce.IllegalAssetTransformation,"Illegal asset transformation.",400);ue(ce.Internal,"An unexpected error occurred.");ue(ce.InvalidCredentials,"Invalid user credentials.",401);const _L=({collection:e,field:t,value:n})=>{let i="Invalid foreign key";return n&&(i+=` "${n}"`),t&&(i+=` for field "${t}"`),e&&(i+=` in collection "${e}"`),i+=".",i};ue(ce.InvalidForeignKey,_L,400);ue(ce.InvalidIp,"Invalid IP address.",401);ue(ce.InvalidOtp,"Invalid user OTP.",401);const yL=({reason:e})=>`Invalid payload. ${e}.`;ue(ce.InvalidPayload,yL,400);const bL=({reason:e})=>`Invalid path parameter. ${e}.`;ue(ce.InvalidPathParameter,bL,400);ue(ce.InvalidProviderConfig,"Invalid config.",503);ue(ce.InvalidProvider,"Invalid provider.",403);const $L=({reason:e})=>`Invalid query. ${e}.`;ue(ce.InvalidQuery,$L,400);ue(ce.InvalidToken,"Invalid token.",403);const wL=({category:e})=>`${e} limit exceeded.`;ue(ce.LimitExceeded,wL,403);const OL=e=>`Invalid method "${e.current}" used. Should be one of ${e.allowed.map(t=>`"${t}"`).join(", ")}.`;ue(ce.MethodNotAllowed,OL,405);const kL=({collection:e,field:t})=>{let n="Value ";return t&&(n+=`for field "${t}" `),e&&(n+=`in collection "${e}" `),n+="can't be null.",n};ue(ce.NotNullViolation,kL,400);ue(ce.OutOfDate,"Operation could not be executed: Your current instance of Directus is out of date.",503);const SL=({range:e})=>`Range ${`"${e.start??""}-${e.end??""}"`} is invalid or the file's size doesn't match the requested range.`;ue(ce.RangeNotSatisfiable,SL,416);const IL=({collection:e,field:t,value:n})=>{let i="Value ";return n&&(i+=`"${n}" `),t&&(i+=`for field "${t}" `),e&&(i+=`in collection "${e}" `),i+="has to be unique.",i};ue(ce.RecordNotUnique,IL,400);const AL=({path:e})=>`Route ${e} doesn't exist.`;ue(ce.RouteNotFound,AL,404);const EL=({service:e,reason:t})=>`Service "${e}" is unavailable. ${t}.`;ue(ce.ServiceUnavailable,EL,503);ue(ce.TokenExpired,"Token expired.",401);ue(ce.UnexpectedResponse,"Received an unexpected response.",503);const xL=e=>`Can't process content. ${e.reason}.`;ue(ce.UnprocessableContent,xL,422);const TL=e=>`Unsupported media type "${e.mediaType}" in ${e.where}.`;ue(ce.UnsupportedMediaType,TL,415);ue(ce.UserSuspended,"User suspended.",401);const NL=({collection:e,field:t,value:n})=>{let i="Numeric value ";return n&&(i+=`"${n}" `),t&&(i+=`for field "${t}" `),e&&(i+=`in collection "${e}" `),i+="is out of range.",i};ue(ce.ValueOutOfRange,NL,400);const RL=({collection:e,field:t,value:n})=>{let i="Value ";return n&&(i+=`"${n}" `),t&&(i+=`for field "${t}" `),e&&(i+=`in collection "${e}" `),i+="is too long.",i};ue(ce.ValueTooLong,RL,400);function jL(){const e=Fr(P6);if(!e)throw new Error("[useStores]: The stores could not be found.");return e}function PL(){const e=Fr(z6);if(!e)throw new Error("[useApi]: The api could not be found.");return e}function hG(){const e=Fr(C6);if(!e)throw new Error("[useSdk]: The sdk could not be found.");return e}function zL(){const e=Fr(U6);if(!e)throw new Error("[useExtensions]: The extensions could not be found.");return e}function CL(e){const{useCollectionsStore:t,useFieldsStore:n}=jL(),i=t(),r=n(),o=typeof e=="string"?Ye(e):e,s=we(()=>i.collections.find(({collection:a})=>a===o.value)||null),u=we(()=>o.value?r.getFieldsForCollectionSorted(o.value):[]);return{info:s,fields:u,defaults:we(()=>{if(!u.value)return{};const a={};for(const h of u.value)h.schema!==null&&"default_value"in h.schema&&(a[h.field]=h.schema.default_value);return a}),primaryKeyField:we(()=>u.value.find(a=>a.collection===o.value&&a.schema?.is_primary_key===!0)||null),userCreatedField:we(()=>u.value?.find(a=>(a.meta?.special||[]).includes("user_created"))||null),sortField:we(()=>s.value?.meta?.sort_field||null),isSingleton:we(()=>s.value?.meta?.singleton===!0),accountabilityScope:we(()=>s.value?.meta?.accountability||null)}}function gG(e,t,n){const i=Ye(""),r=we({get(){return i.value||(o.value?e.value:"")},set(s){s===null?(i.value="",n(null)):(i.value=s,n(s))}}),o=we(()=>{if(t.value===null)return!1;const s=t.value.map(u=>u.value);return e.value!==null&&e.value.length>0&&s.includes(e.value)===!1});return{otherValue:r,usesOtherValue:o}}function vG(e,t,n){const i=Ye([]);return Vn(e,s=>{s!==null&&Array.isArray(s)&&t.value!==null&&s.forEach(u=>{t.value!==null&&(t.value.map(a=>a.value).includes(u)||i.value.map(a=>a.value).includes(u)||r(u))})},{immediate:!0}),{otherValues:i,addOtherValue:r,setOtherValue:o};function r(s="",u=!1){i.value=[...i.value,{key:sF(),value:s,focus:u}]}function o(s,u){const a=i.value.find(g=>g.key===s),h=(e.value||[]).filter(g=>g!==a?.value);u===null?(i.value=i.value.filter(g=>g.key!==s),h.length===0?n(null):n(h)):(i.value=i.value.map(g=>(g.key===s&&(g.value=u),g)),h.length===e.value?.length?n(h):n([...h,u]))}}function _G(e){const t=Ye(0),n=Ye(0),i=new ResizeObserver(([r])=>{r!==void 0&&(t.value=r.contentRect.width,n.value=r.contentRect.height)});return jO(()=>{const r=PO(e)?e.value:e;Fn(r)||i.observe(r)}),zO(()=>{i.disconnect()}),{width:t,height:n}}function yG(e,t){return{fieldGroups:we(()=>{const n={};for(const i in t)n[i]=[];return e.value.reduce((i,r)=>{for(const o in t)t[o](r)!==!1&&i[o].push(r);return i},n)})}}function bG(e){const t=Fr(e?.group||"item-group",null);if(Fn(t))return{active:Ye(!1),toggle:()=>{},activate:()=>{},deactivate:()=>{}};const{register:n,unregister:i,toggle:r,selection:o}=t;let s=!1;e?.active?.value===!0&&(s=!0),e?.value&&o.value.includes(e.value)&&(s=!0);const u=Ye(s),a={active:u,value:e?.value};return n(a),e?.active!==void 0&&e.watch===!0&&Vn(e.active,()=>{e.active!==void 0&&(e.active.value===!0&&(u.value===!1&&r(a),u.value=!0),e.active.value===!1&&(u.value===!0&&r(a),u.value=!1))}),Fp(()=>i(a)),{active:u,toggle:()=>{r(a)},activate:()=>{u.value===!1&&r(a)},deactivate:()=>{u.value===!0&&r(a)}}}function $G(e={},t={},n="item-group"){const i=CO([]),r=Ye([]),o=we({get(){return!Fn(e.selection)&&!Fn(e.selection.value)?e.selection.value:r.value},set(l){Fn(e.onSelectionChange)||e.onSelectionChange(l),r.value=[...l]}});return UO(n,{register:s,unregister:u,toggle:a,selection:o}),Vn(o,c,{immediate:!0}),Dp().then(c),Vn(()=>t?.mandatory?.value,(l,d)=>{br(l,d)||(!o.value||o.value.length===0&&t?.mandatory?.value===!0)&&i.value[0]&&(o.value=[_(i.value[0])])}),{items:i,selection:o,internalSelection:r,getValueForItem:_,updateChildren:c};function s(l){i.value=[...i.value,l];const d=_(l);o.value.length===0&&t?.mandatory?.value===!0&&i.value.length===1&&(o.value=[d]),l.active.value&&o.value.includes(d)===!1&&a(l)}function u(l){i.value=i.value.filter(d=>d!==l)}function a(l){t?.multiple?.value===!0?g(l):h(l),Fn(e.onToggle)||e.onToggle(l)}function h(l){const d=_(l);if(o.value[0]===d&&t?.mandatory?.value!==!0){o.value=[];return}o.value[0]!==d&&(o.value=[d])}function g(l){const d=_(l);if(o.value.includes(d)){if(t?.mandatory?.value===!0&&o.value.length===1){c();return}o.value=o.value.filter(p=>p!==d);return}if(t?.max?.value&&t.max.value!==-1&&o.value.length>=t.max.value){c();return}o.value=[...o.value,d]}function _(l){return l.value||i.value.findIndex(d=>l===d)}function c(){i.value.forEach(l=>{l.active.value=o.value.includes(_(l))})}}function wG(e,t){const n=PL(),{primaryKeyField:i}=CL(e),{fields:r,limit:o,sort:s,search:u,filter:a,page:h,filterSystem:g,alias:_,deep:c}=t,l=we(()=>e.value?oL(e.value):null),d=Ye([]),p=Ye(!1),f=Ye(!1),y=Ye(null),m=Ye(null),v=Ye(null),b=we(()=>m.value===null||m.value<(pe(o)??100)?1:Math.ceil(m.value/(pe(o)??100))),w={items:null,total:null,filter:null};let O=null;const A=BE(j=>{Promise.all([E(),j?x():Promise.resolve()])},500);return Vn([e,o,s,u,a,r,h,Aa(_),Aa(c)],async(j,P)=>{if(br(j,P))return;const[Z,M,J,K,se]=j,[Re,ee,le,Ze,Ve]=P;!Z||!t||(Z!==Re&&$(),(!br(se,Ve)||!br(J,le)||M!==ee||K!==Ze)&&Re&&(h.value=1),A(Z!==Re||!br(se,Ve)||K!==Ze))},{deep:!0,immediate:!0}),Vn([e,Aa(g)],async(j,P)=>{br(j,P)||I()},{deep:!0,immediate:!0}),{itemCount:m,totalCount:v,items:d,totalPages:b,loading:p,loadingItemCount:f,error:y,changeManualSort:S,getItems:E,getItemCount:x,getTotalCount:I};async function E(){if(!l.value)return;let j=!1;w.items&&w.items.abort(),w.items=new AbortController,y.value=null,O&&clearTimeout(O),O=setTimeout(()=>{p.value=!0},150);let P=[...pe(r)??[]];!pe(r)?.includes("*")&&i.value&&P.includes(i.value.field)===!1&&P.push(i.value.field),P=P.filter(Z=>Z.startsWith("$")===!1);try{let Z=(await n.get(l.value,{params:{limit:pe(o),fields:P.join(","),..._?{alias:pe(_)}:{},sort:pe(s),page:pe(h),search:pe(u),filter:pe(a),deep:pe(c)},signal:w.items.signal})).data.data;w.items=null,e.value==="directus_files"&&(Z=Z.map(M=>({...M,$thumbnail:M}))),d.value=Z,h&&Z.length===0&&h?.value!==1&&(h.value=1)}catch(Z){Te.isCancel(Z)?j=!0:y.value=Z}finally{O&&!j&&(clearTimeout(O),O=null),O||(p.value=!1)}}function $(){d.value=[],v.value=null,m.value=null}async function S({item:j,to:P}){const Z=i.value?.field;if(!Z)return;const M=d.value.findIndex(se=>se[Z]===j),J=d.value.findIndex(se=>se[Z]===P);d.value=cL(d.value,M,J);const K=we(()=>`/utils/sort/${e.value}`);await n.post(K.value,{item:j,to:P})}async function I(){if(l.value)try{w.total&&w.total.abort(),w.total=new AbortController;const j=i.value?{countDistinct:i.value.field}:{count:"*"},P=await n.get(l.value,{params:{aggregate:j,filter:pe(g)},signal:w.total.signal}),Z=i.value?Number(P.data.data[0].countDistinct[i.value.field]):Number(P.data.data[0].count);w.total=null,v.value=Z}catch(j){if(!Te.isCancel(j))throw j}}async function x(){if(l.value){f.value=!0;try{w.filter&&w.filter.abort(),w.filter=new AbortController;const j=i.value?{countDistinct:i.value.field}:{count:"*"},P=await n.get(l.value,{params:{filter:pe(a),search:pe(u),aggregate:j},signal:w.filter.signal}),Z=i.value?Number(P.data.data[0].countDistinct[i.value.field]):Number(P.data.data[0].count);w.filter=null,m.value=Z}catch(j){if(!Te.isCancel(j))throw j}finally{f.value=!1}}}}const yu="wrapper",Db=["selection","layoutOptions","layoutQuery"];function UL(e){return Db.includes(e)}function DL(e){return Lp({name:`${e.id}-${yu}`,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:Db.map(t=>`update:${t}`),setup(t,{emit:n}){const i=Mp({...e.setup(t,{emit:n}),...Zp(t),sidebarShadow:e.sidebarShadow??!1});for(const r in i)i[`onUpdate:${r}`]=o=>{UL(r)?n(`update:${r}`,o):Object.keys(t).includes(r)||(i[r]=o)};return{state:i}},render(t){return t.$slots.default!==void 0?t.$slots.default({layoutState:t.state}):null}})}function OG(e){const{layouts:t}=zL(),n=we(()=>t.value.map(i=>DL(i)));return{layoutWrapper:we(()=>{const i=n.value.find(r=>r.name===`${e.value}-${yu}`);return i===void 0?n.value.find(r=>r.name===`tabular-${yu}`):i})}}function kG(e){return we(()=>e.xSmall?"x-small":e.small?"small":e.large?"large":e.xLarge?"x-large":null)}function SG(e,t,n){return we({get(){return e[t]},set(i){n(`update:${t}`,i)}})}const IG=Object.freeze({status:"aborted"});function N(e,t,n){function i(u,a){var h;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(h=u._zod).traits??(h.traits=new Set),u._zod.traits.add(e),t(u,a);for(const g in s.prototype)g in u||Object.defineProperty(u,g,{value:s.prototype[g].bind(u)});u._zod.constr=s,u._zod.def=a}const r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function s(u){var a;const h=n?.Parent?new o:this;i(h,u),(a=h._zod).deferred??(a.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}const AG=Symbol("zod_brand");class Or extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Od extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const bu={};function Yt(e){return e&&Object.assign(bu,e),bu}function FL(e){return e}function LL(e){return e}function ZL(e){}function ML(e){throw new Error}function BL(e){}function Fb(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function GL(e,t="|"){return e.map(n=>Bb(n)).join(t)}function us(e,t){return typeof t=="bigint"?t.toString():t}function po(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function _r(e){return e==null}function pa(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Lb(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){const a=i.match(/\d?e-(\d?)/);a?.[1]&&(r=Number.parseInt(a[1]))}const o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(t.toFixed(o).replace(".",""));return s%u/10**o}const Op=Symbol("evaluating");function re(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Op)return i===void 0&&(i=Op,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function HL(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Un(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function dn(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function WL(e){return dn(e._zod.def)}function VL(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function qL(e){const t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{const r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function KL(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function $u(e){return JSON.stringify(e)}const kd="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Zb=po(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function tr(e){if(Cr(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Cr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ma(e){return tr(e)?{...e}:Array.isArray(e)?[...e]:e}function XL(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const JL=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},cs=new Set(["string","number","symbol"]),Mb=new Set(["string","number","bigint","boolean","symbol","undefined"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qt(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function U(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function YL(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function Bb(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Gb(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Hb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wb={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Vb(e,t){const n=e._zod.def,i=dn(e._zod.def,{get shape(){const r={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(r[o]=n.shape[o])}return Un(this,"shape",r),r},checks:[]});return Qt(e,i)}function qb(e,t){const n=e._zod.def,i=dn(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete r[o]}return Un(this,"shape",r),r},checks:[]});return Qt(e,i)}function Kb(e,t){if(!tr(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const r=dn(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Un(this,"shape",o),o},checks:[]});return Qt(e,r)}function Xb(e,t){if(!tr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Un(this,"shape",i),i},checks:e._zod.def.checks};return Qt(e,n)}function Jb(e,t){const n=dn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Un(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Qt(e,n)}function Yb(e,t,n){const i=dn(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)o[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return Un(this,"shape",o),o},checks:[]});return Qt(t,i)}function Qb(e,t,n){const i=dn(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return Un(this,"shape",o),o},checks:[]});return Qt(t,i)}function Bn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function jt(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function li(e){return typeof e=="string"?e:e?.message}function Mt(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const r=li(e.inst?._zod.def?.error?.(e))??li(t?.error?.(e))??li(n.customError?.(e))??li(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function ha(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ga(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ur(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function QL(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function e$(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function t$(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function e2(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return e$(t+n)}function t2(e){return t$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function n2(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function r2(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class i2{constructor(...t){}}const EG=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Wb,Class:i2,NUMBER_FORMAT_RANGES:Hb,aborted:Bn,allowsEval:Zb,assert:BL,assertEqual:FL,assertIs:ZL,assertNever:ML,assertNotEqual:LL,assignProp:Un,base64ToUint8Array:e$,base64urlToUint8Array:e2,cached:po,captureStackTrace:kd,cleanEnum:QL,cleanRegex:pa,clone:Qt,cloneDef:WL,createTransparentProxy:YL,defineLazy:re,esc:$u,escapeRegex:An,extend:Kb,finalizeIssue:Mt,floatSafeRemainder:Lb,getElementAtPath:VL,getEnumValues:Fb,getLengthableOrigin:ga,getParsedType:JL,getSizableOrigin:ha,hexToUint8Array:n2,isObject:Cr,isPlainObject:tr,issue:Ur,joinValues:GL,jsonStringifyReplacer:us,merge:Jb,mergeDefs:dn,normalizeParams:U,nullish:_r,numKeys:XL,objectClone:HL,omit:qb,optionalKeys:Gb,partial:Yb,pick:Vb,prefixIssues:jt,primitiveTypes:Mb,promiseAllObject:qL,propertyKeyTypes:cs,randomString:KL,required:Qb,safeExtend:Xb,shallowClone:ma,stringifyPrimitive:Bb,uint8ArrayToBase64:t$,uint8ArrayToBase64url:t2,uint8ArrayToHex:r2,unwrapMessage:li},Symbol.toStringTag,{value:"Module"})),n$=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,us,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},r$=N("$ZodError",n$),Et=N("$ZodError",n$,{Parent:Error});function o2(e,t=n=>n.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function s2(e,t=n=>n.message){const n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let s=n,u=0;for(;u<o.path.length;){const a=o.path[u];u===o.path.length-1?(s[a]=s[a]||{_errors:[]},s[a]._errors.push(t(o))):s[a]=s[a]||{_errors:[]},s=s[a],u++}}};return i(e),n}function xG(e,t=n=>n.message){const n={errors:[]},i=(r,o=[])=>{var s,u;for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(h=>i({issues:h},a.path));else if(a.code==="invalid_key")i({issues:a.issues},a.path);else if(a.code==="invalid_element")i({issues:a.issues},a.path);else{const h=[...o,...a.path];if(h.length===0){n.errors.push(t(a));continue}let g=n,_=0;for(;_<h.length;){const c=h[_],l=_===h.length-1;typeof c=="string"?(g.properties??(g.properties={}),(s=g.properties)[c]??(s[c]={errors:[]}),g=g.properties[c]):(g.items??(g.items=[]),(u=g.items)[c]??(u[c]={errors:[]}),g=g.items[c]),l&&g.errors.push(t(a)),_++}}};return i(e),n}function a2(e){const t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(const i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function TG(e){const t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(const i of n)t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${a2(i.path)}`);return t.join(`
|
|
43
|
+
`},width:"full",group:"theming_group"},{field:"ai_group",interface:"group-raw",special:["alias","no-data","group"]},{field:"ai_divider",interface:"presentation-divider",options:{icon:"chat",title:"$t:ai_assistant"},special:["alias","no-data"],width:"full",group:"ai_group"},{field:"ai_notice",interface:"presentation-notice",options:{icon:"info",text:"$t:fields.directus_settings.ai_notice"},special:["alias","no-data"],width:"full",group:"ai_group"},{field:"ai_openai_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_openai_allowed_models",interface:"select-multiple-dropdown",special:["cast-json"],options:{allowOther:!0,choices:[{text:"GPT-4o Mini",value:"gpt-4o-mini"},{text:"GPT-4.1 Nano",value:"gpt-4.1-nano"},{text:"GPT-4.1 Mini",value:"gpt-4.1-mini"},{text:"GPT-4.1",value:"gpt-4.1"},{text:"GPT-5 Nano",value:"gpt-5-nano"},{text:"GPT-5 Mini",value:"gpt-5-mini"},{text:"GPT-5",value:"gpt-5"},{text:"GPT-5.2",value:"gpt-5.2"},{text:"GPT-5.2 Chat",value:"gpt-5.2-chat-latest"},{text:"GPT-5.2 Pro",value:"gpt-5.2-pro"}]},width:"half",group:"ai_group"},{field:"ai_anthropic_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_anthropic_allowed_models",interface:"select-multiple-dropdown",special:["cast-json"],options:{allowOther:!0,choices:[{text:"Claude Haiku 4.5",value:"claude-haiku-4-5"},{text:"Claude Sonnet 4.5",value:"claude-sonnet-4-5"},{text:"Claude Opus 4.5",value:"claude-opus-4-5"}]},width:"half",group:"ai_group"},{field:"ai_google_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_google_allowed_models",interface:"select-multiple-dropdown",special:["cast-json"],options:{allowOther:!0,choices:[{text:"Gemini 3 Pro Preview",value:"gemini-3-pro-preview"},{text:"Gemini 3 Flash Preview",value:"gemini-3-flash-preview"},{text:"Gemini 2.5 Pro",value:"gemini-2.5-pro"},{text:"Gemini 2.5 Flash",value:"gemini-2.5-flash"}]},width:"half",group:"ai_group"},{field:"ai_system_prompt",interface:"input-rich-text-md",group:"ai_group",width:"full",note:"$t:fields.directus_settings.ai_system_prompt_note",options:{label:"$t:fields.directus_settings.ai_system_prompt"}},{field:"ai_openai_compatible_divider",interface:"presentation-divider",options:{inlineTitle:!0,color:"var(--theme--foreground-subdued)",title:"$t:fields.directus_settings.ai_openai_compatible"},special:["alias","no-data"],width:"full",group:"ai_group"},{field:"ai_openai_compatible_name",interface:"input",options:{placeholder:"LM Studio, Ollama, etc."},width:"half",group:"ai_group"},{field:"ai_openai_compatible_base_url",interface:"input",options:{placeholder:"http://localhost:1234/v1"},width:"half",group:"ai_group"},{field:"ai_openai_compatible_api_key",special:["encrypt"],interface:"input-hash",options:{iconRight:"lock",masked:!0,autocomplete:"off"},width:"half",group:"ai_group"},{field:"ai_openai_compatible_headers",interface:"list",special:["cast-json"],options:{template:"{{header}}",fields:[{field:"header",name:"$t:fields.directus_settings.ai_header_name",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"X-Custom-Header"}}},{field:"value",name:"$t:value",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"header-value"}}}]},width:"half",group:"ai_group"},{field:"ai_openai_compatible_models",interface:"list",special:["cast-json"],options:{template:"{{name}}",fields:[{field:"id",name:"$t:fields.directus_settings.ai_model_id",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"llama3.2"}}},{field:"name",name:"$t:name",type:"string",schema:{is_nullable:!1},meta:{interface:"input",required:!0,width:"half",options:{placeholder:"Llama 3.2"}}},{field:"context",name:"$t:fields.directus_settings.ai_context_limit",type:"integer",schema:{is_nullable:!0},meta:{interface:"input",width:"half",options:{placeholder:"128000"}}},{field:"output",name:"$t:fields.directus_settings.ai_output_limit",type:"integer",schema:{is_nullable:!0},meta:{interface:"input",width:"half",options:{placeholder:"16000"}}},{field:"attachment",name:"$t:fields.directus_settings.ai_supports_attachments",type:"boolean",schema:{is_nullable:!0,default_value:!1},meta:{interface:"boolean",width:"half"}},{field:"reasoning",name:"$t:fields.directus_settings.ai_supports_reasoning",type:"boolean",schema:{is_nullable:!0,default_value:!1},meta:{interface:"boolean",width:"half"}},{field:"providerOptions",name:"$t:fields.directus_settings.ai_provider_options",type:"json",schema:{is_nullable:!0},meta:{interface:"input-code",width:"full",options:{language:"json",placeholder:'{ "customOption": "value" }'},note:"$t:fields.directus_settings.ai_provider_options_note"}}]},width:"full",group:"ai_group"},{field:"mcp_group",interface:"group-raw",special:["alias","no-data","group"]},{field:"mcp_divider",interface:"presentation-divider",options:{icon:"automation",title:"$t:model_context_protocol"},special:["alias","no-data"],width:"full",group:"mcp_group"},{field:"mcp_notice",interface:"presentation-notice",options:{icon:"info",text:"$t:fields.directus_settings.mcp_notice"},special:["alias","no-data"],width:"full",group:"mcp_group"},{field:"mcp_enabled",interface:"boolean",group:"mcp_group",special:["cast-boolean"],note:"$t:fields.directus_settings.mcp_enabled_note",width:"half",options:{label:"$t:enabled"}},{field:"mcp_allow_deletes",interface:"boolean",group:"mcp_group",special:["cast-boolean"],note:"$t:fields.directus_settings.mcp_allow_deletes_note",width:"half",options:{label:"$t:fields.directus_settings.mcp_allow_deletes"},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0}]},{field:"mcp_prompts_collection",interface:"system-collection",group:"mcp_group",width:"half",note:"$t:fields.directus_settings.mcp_prompts_collection_note",options:{includeSingleton:!1,allowNone:!0},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0}]},{field:"mcp_prompts_collection_validation",interface:"system-mcp-prompts-collection-validation",group:"mcp_group",width:"half",special:["alias","no-data"],conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},hidden:!0}]},{field:"mcp_system_prompt_divider",interface:"presentation-divider",options:{inlineTitle:!0,color:"var(--theme--foreground-subdued)",title:"$t:fields.directus_settings.mcp_system_prompt_divider"},special:["alias","no-data"],width:"full",group:"mcp_group"},{field:"mcp_system_prompt_enabled",interface:"boolean",group:"mcp_group",special:["cast-boolean"],width:"half-left",note:"$t:fields.directus_settings.mcp_system_prompt_enabled_note",options:{label:"$t:enabled"},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0}]},{field:"mcp_system_prompt",interface:"input-rich-text-md",group:"mcp_group",width:"full",note:"$t:fields.directus_settings.mcp_system_prompt_note",options:{label:"$t:fields.directus_settings.mcp_system_prompt"},conditions:[{name:"mcp_enabled",rule:{mcp_enabled:{_neq:!0}},readonly:!0},{name:"mcp_system_prompt_enabled",rule:{mcp_system_prompt_enabled:{_neq:!0}},readonly:!0}]}]},k6={table:"directus_shares",fields:[{field:"id",special:["uuid"],readonly:!0,hidden:!0},{field:"name"},{field:"collection",width:"half",hidden:!0},{field:"item",width:"half",hidden:!0},{field:"role",interface:"select-dropdown-m2o",width:"half",options:{template:"{{name}}"}},{field:"password",special:["hash","conceal"],interface:"input-hash",options:{iconRight:"lock",masked:!0},width:"half",note:"$t:shared_leave_blank_for_passwordless_access"},{field:"date_start",width:"half",note:"$t:shared_leave_blank_for_unlimited"},{field:"date_end",width:"half",note:"$t:shared_leave_blank_for_unlimited"},{field:"max_uses",width:"half",note:"$t:shared_leave_blank_for_unlimited"},{field:"times_used",width:"half",readonly:!0},{field:"date_created",special:["date-created","cast-timestamp"],width:"half",readonly:!0,conditions:[{name:"notCreatedYet",rule:{id:{_null:!0}},hidden:!0}]},{field:"user_created",special:["user-created"],interface:"select-dropdown-m2o",width:"half",display:"user",options:{template:"{{avatar.$thumbnail}} {{first_name}} {{last_name}}"},readonly:!0,conditions:[{name:"notCreatedYet",rule:{id:{_null:!0}},hidden:!0}]}]},S6={table:"directus_translations",fields:[{field:"id",hidden:!0,sort:1,special:["uuid"]},{field:"key",width:"half",sort:2,required:!0,interface:"input",options:{font:"monospace",placeholder:"$t:translation_key_placeholder"}},{field:"language",interface:"system-language",width:"half",sort:3,required:!0},{field:"value",interface:"input-multiline",sort:4,required:!0,options:{placeholder:"$t:enter_a_value"}}]},I6={table:"directus_users",fields:[{field:"first_name",interface:"input",options:{iconRight:"account_circle"},width:"half"},{field:"last_name",interface:"input",options:{iconRight:"account_circle"},width:"half"},{field:"email",interface:"input",options:{iconRight:"email"},width:"half"},{field:"password",special:["hash","conceal"],interface:"input-hash",options:{iconRight:"lock",masked:!0},width:"half"},{field:"avatar",interface:"file",width:"full",display:"image"},{field:"location",interface:"input",options:{iconRight:"place"},width:"half"},{field:"title",interface:"input",options:{iconRight:"work"},width:"half"},{field:"description",interface:"input-multiline",width:"full"},{field:"tags",interface:"tags",special:["cast-json"],width:"full",options:{iconRight:"local_offer"},display:"labels",display_options:{choices:null,format:!1}},{field:"preferences_divider",interface:"presentation-divider",options:{icon:"face",title:"$t:fields.directus_users.user_preferences"},special:["alias","no-data"],width:"full"},{field:"language",interface:"system-language",width:"half",options:{includeProjectDefault:!0}},{field:"text_direction",interface:"select-dropdown",options:{choices:[{value:"auto",text:"$t:text_direction_auto"},{value:"ltr",text:"$t:text_direction_ltr"},{value:"rtl",text:"$t:text_direction_rtl"}]},width:"half"},{field:"tfa_secret",interface:"system-mfa-setup",special:["conceal"],width:"half"},{field:"email_notifications",interface:"boolean",width:"half",special:["cast-boolean"]},{field:"theming_divider",interface:"presentation-divider",options:{icon:"palette",title:"$t:theme"},special:["alias","no-data"],width:"full"},{field:"appearance",interface:"select-dropdown",options:{choices:[{value:null,text:"$t:default_sync_with_project"},{value:"auto",text:"$t:appearance_auto"},{value:"light",text:"$t:appearance_light"},{value:"dark",text:"$t:appearance_dark"}]},width:"half"},{field:"theme_light",width:"full",interface:"system-theme",options:{appearance:"light",includeNull:!0}},{field:"theme_light_overrides",width:"full",interface:"system-theme-overrides",options:{appearance:"light"},special:["cast-json"]},{field:"theme_dark",width:"full",interface:"system-theme",options:{appearance:"dark",includeNull:!0}},{field:"theme_dark_overrides",width:"full",interface:"system-theme-overrides",options:{appearance:"dark"},special:["cast-json"]},{field:"admin_divider",interface:"presentation-divider",options:{icon:"verified_user",title:"$t:fields.directus_users.admin_options",color:"var(--theme--danger)"},special:["alias","no-data"],width:"full"},{field:"status",interface:"select-dropdown",options:{choices:[{text:"$t:fields.directus_users.status_draft",value:"draft"},{text:"$t:fields.directus_users.status_invited",value:"invited"},{text:"$t:fields.directus_users.status_unverified",value:"unverified"},{text:"$t:fields.directus_users.status_active",value:"active"},{text:"$t:fields.directus_users.status_suspended",value:"suspended"},{text:"$t:fields.directus_users.status_archived",value:"archived"}]},width:"half"},{field:"role",interface:"select-dropdown-m2o",options:{template:"{{ name }}"},special:["m2o"],width:"half",display:"related-values",display_options:{template:"{{ name }}"}},{field:"policies",interface:"list-m2m",options:{layout:"list"},display:"related-values",special:["m2m"],width:"full"},{field:"token",interface:"system-token",special:["conceal"],width:"full"},{field:"id",special:["uuid"],interface:"input",options:{iconRight:"vpn_key"},width:"full"},{field:"last_page",width:"half"},{field:"last_access",width:"half",display:"datetime",readonly:!0},{field:"provider",width:"half",interface:"select-dropdown",options:{choices:[{text:"$t:default_provider",value:"default"}]}},{field:"external_identifier",width:"half",options:{iconRight:"account_circle"},interface:"input"},{field:"auth_data",hidden:!0}]},A6={table:"directus_versions",fields:[{field:"id",special:["uuid"],readonly:!0,hidden:!0},{field:"key"},{field:"name"},{field:"collection"},{field:"item"},{field:"hash",readonly:!0,hidden:!0},{field:"date_created",special:["date-created","cast-timestamp"]},{field:"date_updated",special:["date-updated","cast-timestamp"]},{field:"user_created",special:["user-created"]},{field:"user_updated",special:["user-updated"]},{field:"delta",special:["cast-json"]}]};const E6=[];fe(QF),fe(e6),fe(t6),fe(n6),fe(r6),fe(a6),fe(u6),fe(c6),fe(l6),fe(d6),fe(f6),fe(p6),fe(m6),fe(h6),fe(g6),fe(v6),fe(_6),fe(y6),fe(b6),fe($6),fe(w6),fe(O6),fe(k6),fe(S6),fe(I6),fe(A6),fe(s6),fe(i6),fe(o6);function fe(e){let{table:t,fields:n,indexed:i}=e;n.forEach((r,o)=>{E6.push({system:!0,...YF,...r,collection:t,sort:o+1})}),i&&i.forEach(({field:r})=>{})}var x6=[{collection:"directus_activity",action:"read",permissions:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_comments",action:"read",permissions:{user_created:{_eq:"$CURRENT_USER"}}},{collection:"directus_comments",action:"create",validation:{comment:{_nnull:!0}}},{collection:"directus_comments",action:"update",permissions:{user_created:{_eq:"$CURRENT_USER"}},fields:["comment"]},{collection:"directus_comments",action:"delete",permissions:{user_created:{_eq:"$CURRENT_USER"}}},{collection:"directus_presets",action:"read",permissions:{_or:[{user:{_eq:"$CURRENT_USER"}},{_and:[{user:{_null:!0}},{role:{_eq:"$CURRENT_ROLE"}}]},{_and:[{user:{_null:!0}},{role:{_null:!0}}]}]}},{collection:"directus_presets",action:"create",validation:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_presets",action:"update",permissions:{user:{_eq:"$CURRENT_USER"}},validation:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_presets",action:"delete",permissions:{user:{_eq:"$CURRENT_USER"}}},{collection:"directus_roles",action:"read",permissions:{id:{_in:"$CURRENT_ROLES"}}},{collection:"directus_settings",action:"read"},{collection:"directus_translations",action:"read"},{collection:"directus_notifications",action:"read",permissions:{recipient:{_eq:"$CURRENT_USER"}}},{collection:"directus_notifications",action:"update",permissions:{recipient:{_eq:"$CURRENT_USER"}},fields:["status"]},{collection:"directus_shares",action:"read",permissions:{user_created:{_eq:"$CURRENT_USER"}}},{collection:"directus_users",action:"read",permissions:{id:{_eq:"$CURRENT_USER"}},fields:["id","first_name","last_name","last_page","email","password","location","title","description","tags","provider","preferences_divider","avatar","language","appearance","theme_light","theme_dark","tfa_secret","status","role"]}],T6=[{collection:"directus_collections",action:"read"},{collection:"directus_fields",action:"read"},{collection:"directus_relations",action:"read"},{collection:"directus_translations",action:"read"}];const Tb={policy:null,permissions:{},validation:null,presets:null,fields:["*"],system:!0},N6=T6.map(e=>({...Tb,...e})),U3=[...N6,...x6].map(e=>({...Tb,...e}));let D3=(function(e){return e.CREATE="create",e.UPDATE="update",e.DELETE="delete",e.REVERT="revert",e.VERSION_SAVE="version_save",e.COMMENT="comment",e.UPLOAD="upload",e.LOGIN="login",e.LOGOUT="logout",e.RUN="run",e.INSTALL="install",e})({});const lo=["interface","display","layout","module","panel","theme"],fa=["hook","endpoint"],fo=["operation"],Nb=["bundle"],F3=[...lo,...fa,...fo,...Nb];[...lo,...fa,...fo];const R6=[...lo,...fo];[...R6,...Nb];const j6=["bigInteger","boolean","date","dateTime","decimal","float","integer","json","string","text","time","timestamp","binary","uuid"],L3=[...j6,"alias","hash","csv","geometry","geometry.Point","geometry.LineString","geometry.Polygon","geometry.MultiPoint","geometry.MultiLineString","geometry.MultiPolygon","unknown"],Z3=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],M3=["standard","file","files","m2o","o2m","m2m","m2a","presentation","translations","group"],B3=["file","files","m2o","o2m","m2m","m2a","translations"],G3=["text","string","integer","bigInteger","float","decimal","uuid"],H3=8388608,P6="stores",z6="api",C6="sdk",U6="extensions",W3=["create","read","update","delete","share"],$d=/\(([^)]+)\)/;var D6=Object.create,Rb=Object.defineProperty,F6=Object.getOwnPropertyDescriptor,jb=Object.getOwnPropertyNames,L6=Object.getPrototypeOf,Z6=Object.prototype.hasOwnProperty,M6=(e,t)=>function(){return t||(0,e[jb(e)[0]])((t={exports:{}}).exports,t),t.exports},B6=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=jb(t),o=0,s=r.length,u;o<s;o++)u=r[o],!Z6.call(e,u)&&u!==n&&Rb(e,u,{get:(a=>t[a]).bind(null,u),enumerable:!(i=F6(t,u))||i.enumerable});return e},G6=(e,t,n)=>(n=e!=null?D6(L6(e)):{},B6(Rb(n,"default",{value:e,enumerable:!0}),e));function V3(e,t=0,n=["K","M","B","T"]){const i=e<0;e=Math.abs(e);let r=String(e);if(e>=1e3){const o=Math.pow(10,t);for(let s=n.length-1;s>=0;s--){const u=Math.pow(10,(s+1)*3);if(u<=e){e=Math.round(e*o/u)/o,e===1e3&&s<n.length-1&&(e=1,s++),r=e.toFixed(t)+n[s];break}}}return i&&(r=`-${r}`),r}function H6(e,t){e=PA(e);const n=t.startsWith("-");(n||t.startsWith("+"))&&(t=t.substring(1));const i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|months?|mth|mo|years?|yrs?|y)?$/i.exec(t);if(!i||!i[1])return;const r=parseFloat(i[1]);switch((i[2]??"days").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n?CF(e,r):Sb(e,r);case"months":case"month":case"mth":case"mo":return n?TF(e,r):_d(e,r);case"weeks":case"week":case"w":return n?zF(e,r):kb(e,r);case"days":case"day":case"d":return n?mF(e,r):vd(e,r);case"hours":case"hour":case"hrs":case"hr":case"h":return n?NF(e,r):$b(e,r);case"minutes":case"minute":case"mins":case"min":case"m":return n?jF(e,r):wb(e,r);case"seconds":case"second":case"secs":case"sec":case"s":return n?PF(e,r):Ob(e,r);case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n?RF(e,r):la(e,r);default:return}}function Pb(e){return String(e).includes("__proto__")?JSON.parse(e,W6):JSON.parse(e)}function W6(e,t){if(e!=="__proto__")return t}function q3(e,t,n=[]){return Object.fromEntries(Object.entries(e).map(([i,r])=>[i,vu(r,t,n.includes(i))]))}function V6(e){return(t,n)=>{const i=bd(n,t);return i!==void 0||!e?typeof i=="object"?JSON.stringify(i):i:`{{ ${t} }}`}}function vu(e,t,n){if(typeof e=="string"){const i=e.match(/^\{\{\s*([^}\s]+)\s*\}\}$/);if(i!==null){const r=bd(t,i[1]);if(r!==void 0)return r}return VF(e,V6(n),t,{explicit:!0})}else return Array.isArray(e)?e.map(i=>vu(i,t,n)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([i,r])=>[i,vu(r,t,n)])):e}function K3(e,t){return t.includes(e)}function zb(e,t,n){return i(e);function i(r,o){return Array.isArray(r)?r.map(i):wt(r)&&Mu(r)?Object.fromEntries(Object.entries(r).map(([s,u])=>[s,i(u,s)])):o!==void 0?t.call(n,r,o):r}}const q6={year:K6,month:X6,week:J6,day:Y6,weekday:Q6,hour:eL,minute:tL,second:nL,count:rL};function K6(e){return Cn(e).getUTCFullYear()}function X6(e){return Cn(e).getUTCMonth()+1}function J6(e){return dF(Cn(e))}function Y6(e){return fF(Cn(e))}function Q6(e){return pF(Cn(e))}function eL(e){return Cn(e).getUTCHours()}function tL(e){return Cn(e).getUTCMinutes()}function nL(e){return Cn(e).getUTCSeconds()}function rL(e){return Array.isArray(e)?e.length:null}const be=yp.extend({type:"string",base:yp.string(),messages:{"string.contains":"{{#label}} must contain [{{#substring}}]","string.icontains":"{{#label}} must contain case insensitive [{{#substring}}]","string.ncontains":"{{#label}} can't contain [{{#substring}}]"},rules:{contains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"contains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!1?t.error("string.contains",{substring:n}):e}},icontains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"icontains",args:{substring:e}})},validate(e,t,{substring:n}){return e.toLowerCase().includes(n.toLowerCase())===!1?t.error("string.icontains",{substring:n}):e}},ncontains:{args:[{name:"substring",ref:!0,assert:e=>typeof e=="string",message:"must be a string"}],method(e){return this.$_addRule({name:"ncontains",args:{substring:e}})},validate(e,t,{substring:n}){return e.includes(n)===!0?t.error("string.ncontains",{substring:n}):e}}}}),iL={requireAll:!1};function Cb(e,t){e=e||{},t=jo({},iL,t);const n={},i=Object.keys(e)[0];if(!i)throw new Error(`[generateJoi] Filter doesn't contain field key. Passed filter: ${JSON.stringify(e)}`);const r=Object.values(e)[0];if(!r)throw new Error(`[generateJoi] Filter doesn't contain filter rule. Passed filter: ${JSON.stringify(e)}`);if(Object.keys(r)[0]?.startsWith("_")===!1)n[i]=Cb(r,t);else{const o=Object.keys(r)[0],s=Object.values(r)[0],u=()=>n[i]??be.any(),a=()=>n[i]??be.string(),h=()=>n[i]??be.number(),g=()=>n[i]??be.date();if(o==="_eq"){let _;typeof s=="number"?_=String(s):_=[null,"",!0,!1].includes(s)?NaN:Number(s),typeof _=="number"&&isNaN(_)?n[i]=u().equal(s):n[i]=u().equal(s,_)}if(o==="_neq"){let _;typeof s=="number"?_=String(s):_=[null,"",!0,!1].includes(s)?NaN:Number(s),typeof _=="number"&&isNaN(_)?n[i]=u().not(s):n[i]=u().not(s,_)}if(o==="_contains"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=be.alternatives().try(a().contains(s),be.array().items(a().contains(s).required(),be.any()))),o==="_icontains"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=be.alternatives().try(a().icontains(s),be.array().items(a().icontains(s).required(),be.any()))),o==="_ncontains"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=be.alternatives().try(a().ncontains(s),be.array().items(a().contains(s).forbidden()))),o==="_starts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`),{name:"starts_with"})),o==="_nstarts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`),{name:"nstarts_with",invert:!0})),o==="_istarts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`,"i"),{name:"istarts_with"})),o==="_nistarts_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`^${pn(s)}.*`,"i"),{name:"nistarts_with",invert:!0})),o==="_ends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`),{name:"ends_with"})),o==="_nends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`),{name:"nends_with",invert:!0})),o==="_iends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`,"i"),{name:"iends_with"})),o==="_niends_with"&&(s==null||typeof s!="string"?n[i]=be.any().equal(!0):n[i]=a().pattern(new RegExp(`.*${pn(s)}$`,"i"),{name:"niends_with",invert:!0})),o==="_in"&&(n[i]=u().equal(...s)),o==="_nin"&&(n[i]=u().not(...s)),o==="_gt"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().greater(s):h().greater(Number(s))),o==="_gte"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().min(s):h().min(Number(s))),o==="_lt"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().less(s):h().less(Number(s))),o==="_lte"&&(n[i]=s instanceof Date||Number.isNaN(Number(s))?g().max(s):h().max(Number(s))),o==="_null"&&(n[i]=u().valid(null)),o==="_nnull"&&(n[i]=u().invalid(null)),o==="_empty"&&(n[i]=u().valid("")),o==="_nempty"&&(n[i]=u().invalid("")),o==="_between")if(s.every(_=>{const c=Number(_ instanceof Date?NaN:_);return!Number.isNaN(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER})){const _=s;n[i]=h().min(Number(_[0])).max(Number(_[1]))}else{const _=s;n[i]=g().min(_[0]).max(_[1])}if(o==="_nbetween")if(s.every(_=>{const c=Number(_ instanceof Date?NaN:_);return!Number.isNaN(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER})){const _=s;n[i]=h().less(Number(_[0])).greater(Number(_[1]))}else{const _=s;n[i]=g().less(_[0]).greater(_[1])}if(o==="_submitted"&&(n[i]=u().required()),o==="_regex")if(s==null)n[i]=be.any().equal(!0);else{const _=typeof s=="string"?s.startsWith("/")&&s.endsWith("/"):!1;n[i]=a().min(0).regex(new RegExp(_?s.slice(1,-1):s))}}return n[i]=n[i]??be.any(),t.requireAll&&(n[i]=n[i].required()),be.object(n).unknown()}function X3(e){return e.schema?"table":e.meta?"alias":"unknown"}function J3(){const e=new Date;let t=String(e.getMonth()+1);t.length===1&&(t="0"+t);let n=String(e.getDate());return n.length===1&&(n="0"+n),`${e.getFullYear()}${t}${n}-${e.getHours()}${e.getMinutes()}${e.getSeconds()}`}function oL(e){return JF(e)?`/${e.substring(9)}`:`/items/${e}`}function Y3(e){if(Fn(e))return[];const t=e.match(/{{(.*?)}}/g);return Array.isArray(t)?t.map(n=>n.replace(/{{/g,"").replace(/}}/g,"").trim()):[]}function Q3(e,t){const n=t?.includeValidation?["regex"]:[];switch(e){case"binary":case"string":case"text":case"csv":return["contains","ncontains","icontains","starts_with","nstarts_with","istarts_with","nistarts_with","ends_with","nends_with","iends_with","niends_with","eq","neq","empty","nempty","null","nnull","in","nin",...n];case"hash":return["empty","nempty","null","nnull"];case"uuid":return["eq","neq","null","nnull","in","nin"];case"json":return["null","nnull"];case"boolean":return["eq","neq","null","nnull"];case"bigInteger":case"integer":case"decimal":case"float":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"dateTime":case"date":case"time":return["eq","neq","lt","lte","gt","gte","between","nbetween","null","nnull","in","nin"];case"geometry":return["eq","neq","null","nnull","intersects","nintersects","intersects_bbox","nintersects_bbox"];default:return["contains","ncontains","eq","neq","lt","lte","gt","gte","between","nbetween","empty","nempty","null","nnull","in","nin",...n]}}function eG(e){switch(e){case"dateTime":case"timestamp":return["year","month","week","day","weekday","hour","minute","second"];case"date":return["year","month","week","day","weekday"];case"time":return["hour","minute","second"];case"json":return["count"];case"alias":return["count"];default:return[]}}function tG(e){return{year:"integer",month:"integer",week:"integer",day:"integer",weekday:"integer",hour:"integer",minute:"integer",second:"integer",count:"integer"}[e]}function nG(e){const{relation:t,collection:n,field:i,useA2O:r=!1}=e;return t?t.collection===n&&t.field===i&&t.meta?.one_collection_field&&t.meta?.one_allowed_collections?r?"a2o":"m2a":t.collection===n&&t.field===i?"m2o":t.related_collection===n&&t.meta?.one_field===i?"o2m":null:null}function rG(e,t,n){return e.filter(i=>i.collection===t&&i.field===n||i.related_collection===t&&i.meta?.one_field===n)}function iG(e,t,n){return e.find(i=>i.collection===t&&i.field===n||i.related_collection===t&&i.meta?.one_field===n)}function oG(e){let t=0;for(let n=0;n<e.length;t&=t)t=31*t+e.charCodeAt(n++);return Math.abs(t).toString(16)}function wr(e,t,n){let i=t.split(".")[0];const r=t.split(".").slice(1);i.includes(":")&&(i=i.split(":")[0]);const o=Array.isArray(e)?sL(e,i):e?.[i];return o!==void 0&&r.length>0?wr(o,r.join("."),n):o??n}function sL(e,t){const n=e.map(i=>i?.[t]).filter(i=>i);return n.length>0?n.flat():void 0}function aL(e,t){const n=UA(e);return i(t),n;function i(r,o){for(const[s,u]of Object.entries(r)){const a=o?o+"."+s:s;if(s.startsWith("_")===!1&&Mu(u)&&i(u,a),s.includes("(")&&s.includes(")")){const h=s.split("(")[0],g=s.match($d)?.[1];if(!g||!h)continue;const _=Go(n,o?o+"."+g:g);ZE(n,a,q6[h](_))}}}}function wd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function sG(e){return wd(e)?Array.isArray(e.create)&&Array.isArray(e.update)&&Array.isArray(e.delete):!1}const uL=["$NOW","$CURRENT_USER","$CURRENT_ROLE","$CURRENT_ROLES","$CURRENT_POLICIES"];function aG(e){return typeof e=="string"&&uL.some(t=>e.startsWith(t))}function uG(e){try{return Pb(e),!0}catch{return!1}}function cG(e){return wd(e)?typeof e.setup=="function"||typeof e.render=="function":!1}function lG(e,t,n="and"){return e?t?{[`_${n}`]:[e,t]}:e:t}function cL(e,t,n){const i=e[t],r=e.length,o=t-n;if(i===void 0)return e;if(o>0)return[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)];if(o<0){const s=n+1;return[...e.slice(0,t),...e.slice(t+1,s),i,...e.slice(s,r)]}return e}function dG(e){if(e.includes("(")&&e.includes(")")){const t=e.split("(")[0],n=t.includes("."),i=n?t.slice(0,t.lastIndexOf(".")+1):"",r=n?t.slice(t.lastIndexOf(".")+1):t,o=e.match($d);if(o){const s=o[1],u=s.includes(".");return`${i}${u?s.slice(0,s.lastIndexOf(".")+1):""}${r}(${u?s.slice(s.lastIndexOf(".")+1):s})`}}return e}function lL(e){return typeof e=="string"?e.split(","):Array.isArray(e)?e:[e]}function fG(e,t,n={},i=!1){let r=_u(e,t,n);return r&&(i===!1&&(r=zb(r,o=>o==="true"?!0:o==="false"?!1:o==="null"||o==="NULL"?null:o)),Fo(r))}const $p=["_and","_or"],dL=["_none","_some"];function Fo(e){const t=Object.keys(e)[0];if(!t)return e;if($p.includes(t))return{[t]:e[t].map(Fo)};if(t.startsWith("_"))return e;{const n=Fo(e[t]),i=Object.keys(n)[0];return i?$p.includes(i)?Fo({[i]:n[i].map(r=>({[t]:r}))}):{[t]:n}:{[t]:n}}}function _u(e,t,n={}){if(e==null)return null;if(!wt(e))return{_eq:mi(e,t,n)};const i=Object.entries(e).map(r=>fL(r,t,n));return i.length===0?{}:i.length===1?i[0]??null:{_and:i}}function pG(e,t,n){return e&&zb(e,i=>i==="true"?!0:i==="false"?!1:i==="null"||i==="NULL"?null:mi(i,t,n))}function fL([e,t],n,i){if(["_or","_and"].includes(String(e)))return{[e]:t.map(r=>_u(r,n,i))};if(["_in","_nin","_between","_nbetween"].includes(String(e))){const r=wd(t)?Object.values(t):t;return{[e]:lL(r).flatMap(o=>mi(o,n,i))}}else return["_intersects","_nintersects","_intersects_bbox","_nintersects_bbox"].includes(String(e))?{[e]:mi(typeof t=="string"?Pb(t):t,n,i)}:String(e).startsWith("_")&&!dL.includes(e)?{[e]:mi(t,n,i)}:{[e]:_u(t,n,i)}}function mi(e,t,n){if(typeof e!="string")return e;if(e.startsWith("$NOW")){if(e.includes("(")&&e.includes(")")){const i=e.match($d)?.[1];return i?H6(new Date,i):new Date}return new Date}return e.startsWith("$CURRENT_USER")?e==="$CURRENT_USER"?t?.user??null:wr(n,e,null):e.startsWith("$CURRENT_ROLES")?e==="$CURRENT_ROLES"?t?.roles??null:wr(n,e,null):e.startsWith("$CURRENT_ROLE")?e==="$CURRENT_ROLE"?t?.role??null:wr(n,e,null):e.startsWith("$CURRENT_POLICIES")?e==="$CURRENT_POLICIES"?wr(n,e,null)?.map(({id:i})=>i)??null:wr(n,e,null):e}function mG(e){return`${e}s`}function wp(e,t,n){const i=[];if(Object.keys(e)[0]==="_and"){const r=Object.values(e)[0],o=eI(r.map(s=>wp(s,t,n))).filter(s=>s);i.push(...o)}else if(Object.keys(e)[0]==="_or"){const r=Object.values(e)[0],o=[];r.some(s=>{const u=wp(s,t,n);return u.length>0?(o.push(...u),!1):!0})||i.push(...o)}else{const r=aL(t,e),{error:o}=Cb(e,n).validate(r,{abortEarly:!1});o&&i.push(o)}return i}var pL=M6({"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js":((e,t)=>{var n=1e3,i=n*60,r=i*60,o=r*24,s=o*7,u=o*365.25;t.exports=function(c,l){l=l||{};var d=typeof c;if(d==="string"&&c.length>0)return a(c);if(d==="number"&&isFinite(c))return l.long?g(c):h(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(l){var d=parseFloat(l[1]);switch((l[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return d*u;case"weeks":case"week":case"w":return d*s;case"days":case"day":case"d":return d*o;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*i;case"seconds":case"second":case"secs":case"sec":case"s":return d*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function h(c){var l=Math.abs(c);return l>=o?Math.round(c/o)+"d":l>=r?Math.round(c/r)+"h":l>=i?Math.round(c/i)+"m":l>=n?Math.round(c/n)+"s":c+"ms"}function g(c){var l=Math.abs(c);return l>=o?_(c,l,o,"day"):l>=r?_(c,l,r,"hour"):l>=i?_(c,l,i,"minute"):l>=n?_(c,l,n,"second"):c+" ms"}function _(c,l,d,p){var f=l>=d*1.5;return Math.round(c/d)+" "+p+(f?"s":"")}})}),Ub=G6(pL());const ue=(e,t,n=500)=>class extends Error{name="DirectusError";extensions;code=e.toUpperCase();status=n;constructor(i,r){const o=typeof t=="string"?t:t(i);super(o,r),this.extensions=i}toString(){return`${this.name} [${this.code}]: ${this.message}`}};let ce=(function(e){return e.ContainsNullValues="CONTAINS_NULL_VALUES",e.ContentTooLarge="CONTENT_TOO_LARGE",e.EmailLimitExceeded="EMAIL_LIMIT_EXCEEDED",e.Forbidden="FORBIDDEN",e.IllegalAssetTransformation="ILLEGAL_ASSET_TRANSFORMATION",e.Internal="INTERNAL_SERVER_ERROR",e.InvalidCredentials="INVALID_CREDENTIALS",e.InvalidForeignKey="INVALID_FOREIGN_KEY",e.InvalidIp="INVALID_IP",e.InvalidOtp="INVALID_OTP",e.InvalidPayload="INVALID_PAYLOAD",e.InvalidPathParameter="INVALID_PATH_PARAMETER",e.InvalidProvider="INVALID_PROVIDER",e.InvalidProviderConfig="INVALID_PROVIDER_CONFIG",e.InvalidQuery="INVALID_QUERY",e.InvalidToken="INVALID_TOKEN",e.LimitExceeded="LIMIT_EXCEEDED",e.MethodNotAllowed="METHOD_NOT_ALLOWED",e.NotNullViolation="NOT_NULL_VIOLATION",e.OutOfDate="OUT_OF_DATE",e.RangeNotSatisfiable="RANGE_NOT_SATISFIABLE",e.RecordNotUnique="RECORD_NOT_UNIQUE",e.RequestsExceeded="REQUESTS_EXCEEDED",e.RouteNotFound="ROUTE_NOT_FOUND",e.ServiceUnavailable="SERVICE_UNAVAILABLE",e.TokenExpired="TOKEN_EXPIRED",e.UnexpectedResponse="UNEXPECTED_RESPONSE",e.UnprocessableContent="UNPROCESSABLE_CONTENT",e.UnsupportedMediaType="UNSUPPORTED_MEDIA_TYPE",e.UserSuspended="USER_SUSPENDED",e.ValueOutOfRange="VALUE_OUT_OF_RANGE",e.ValueTooLong="VALUE_TOO_LONG",e})({});const mL=({collection:e,field:t})=>`Field "${t}" in collection "${e}" contains null values.`;ue(ce.ContainsNullValues,mL,400);ue(ce.ContentTooLarge,"Uploaded content is too large.",413);const hL=e=>{const t=["Email sending limit exceeded."];if(typeof e.points=="number"&&typeof e.duration=="number"){const n=(0,Ub.default)(e.duration*1e3,{long:!0}),i=e.points!==1?"s":"";t.push(`Limit of ${e.points} email${i} every ${n}.`)}return e.message&&t.push(e.message),t.join(" ")};ue(ce.EmailLimitExceeded,hL,429);const gL=e=>e?.reason?e.reason:"You don't have permission to access this.";ue(ce.Forbidden,gL,403);const vL=e=>`Too many requests, retry after ${(0,Ub.default)(e.reset.getTime()-Date.now())}.`;ue(ce.RequestsExceeded,vL,429);ue(ce.IllegalAssetTransformation,"Illegal asset transformation.",400);ue(ce.Internal,"An unexpected error occurred.");ue(ce.InvalidCredentials,"Invalid user credentials.",401);const _L=({collection:e,field:t,value:n})=>{let i="Invalid foreign key";return n&&(i+=` "${n}"`),t&&(i+=` for field "${t}"`),e&&(i+=` in collection "${e}"`),i+=".",i};ue(ce.InvalidForeignKey,_L,400);ue(ce.InvalidIp,"Invalid IP address.",401);ue(ce.InvalidOtp,"Invalid user OTP.",401);const yL=({reason:e})=>`Invalid payload. ${e}.`;ue(ce.InvalidPayload,yL,400);const bL=({reason:e})=>`Invalid path parameter. ${e}.`;ue(ce.InvalidPathParameter,bL,400);ue(ce.InvalidProviderConfig,"Invalid config.",503);ue(ce.InvalidProvider,"Invalid provider.",403);const $L=({reason:e})=>`Invalid query. ${e}.`;ue(ce.InvalidQuery,$L,400);ue(ce.InvalidToken,"Invalid token.",403);const wL=({category:e})=>`${e} limit exceeded.`;ue(ce.LimitExceeded,wL,403);const OL=e=>`Invalid method "${e.current}" used. Should be one of ${e.allowed.map(t=>`"${t}"`).join(", ")}.`;ue(ce.MethodNotAllowed,OL,405);const kL=({collection:e,field:t})=>{let n="Value ";return t&&(n+=`for field "${t}" `),e&&(n+=`in collection "${e}" `),n+="can't be null.",n};ue(ce.NotNullViolation,kL,400);ue(ce.OutOfDate,"Operation could not be executed: Your current instance of Directus is out of date.",503);const SL=({range:e})=>`Range ${`"${e.start??""}-${e.end??""}"`} is invalid or the file's size doesn't match the requested range.`;ue(ce.RangeNotSatisfiable,SL,416);const IL=({collection:e,field:t,value:n})=>{let i="Value ";return n&&(i+=`"${n}" `),t&&(i+=`for field "${t}" `),e&&(i+=`in collection "${e}" `),i+="has to be unique.",i};ue(ce.RecordNotUnique,IL,400);const AL=({path:e})=>`Route ${e} doesn't exist.`;ue(ce.RouteNotFound,AL,404);const EL=({service:e,reason:t})=>`Service "${e}" is unavailable. ${t}.`;ue(ce.ServiceUnavailable,EL,503);ue(ce.TokenExpired,"Token expired.",401);ue(ce.UnexpectedResponse,"Received an unexpected response.",503);const xL=e=>`Can't process content. ${e.reason}.`;ue(ce.UnprocessableContent,xL,422);const TL=e=>`Unsupported media type "${e.mediaType}" in ${e.where}.`;ue(ce.UnsupportedMediaType,TL,415);ue(ce.UserSuspended,"User suspended.",401);const NL=({collection:e,field:t,value:n})=>{let i="Numeric value ";return n&&(i+=`"${n}" `),t&&(i+=`for field "${t}" `),e&&(i+=`in collection "${e}" `),i+="is out of range.",i};ue(ce.ValueOutOfRange,NL,400);const RL=({collection:e,field:t,value:n})=>{let i="Value ";return n&&(i+=`"${n}" `),t&&(i+=`for field "${t}" `),e&&(i+=`in collection "${e}" `),i+="is too long.",i};ue(ce.ValueTooLong,RL,400);function jL(){const e=Fr(P6);if(!e)throw new Error("[useStores]: The stores could not be found.");return e}function PL(){const e=Fr(z6);if(!e)throw new Error("[useApi]: The api could not be found.");return e}function hG(){const e=Fr(C6);if(!e)throw new Error("[useSdk]: The sdk could not be found.");return e}function zL(){const e=Fr(U6);if(!e)throw new Error("[useExtensions]: The extensions could not be found.");return e}function CL(e){const{useCollectionsStore:t,useFieldsStore:n}=jL(),i=t(),r=n(),o=typeof e=="string"?Ye(e):e,s=we(()=>i.collections.find(({collection:a})=>a===o.value)||null),u=we(()=>o.value?r.getFieldsForCollectionSorted(o.value):[]);return{info:s,fields:u,defaults:we(()=>{if(!u.value)return{};const a={};for(const h of u.value)h.schema!==null&&"default_value"in h.schema&&(a[h.field]=h.schema.default_value);return a}),primaryKeyField:we(()=>u.value.find(a=>a.collection===o.value&&a.schema?.is_primary_key===!0)||null),userCreatedField:we(()=>u.value?.find(a=>(a.meta?.special||[]).includes("user_created"))||null),sortField:we(()=>s.value?.meta?.sort_field||null),isSingleton:we(()=>s.value?.meta?.singleton===!0),accountabilityScope:we(()=>s.value?.meta?.accountability||null)}}function gG(e,t,n){const i=Ye(""),r=we({get(){return i.value||(o.value?e.value:"")},set(s){s===null?(i.value="",n(null)):(i.value=s,n(s))}}),o=we(()=>{if(t.value===null)return!1;const s=t.value.map(u=>u.value);return e.value!==null&&e.value.length>0&&s.includes(e.value)===!1});return{otherValue:r,usesOtherValue:o}}function vG(e,t,n){const i=Ye([]);return Vn(e,s=>{s!==null&&Array.isArray(s)&&t.value!==null&&s.forEach(u=>{t.value!==null&&(t.value.map(a=>a.value).includes(u)||i.value.map(a=>a.value).includes(u)||r(u))})},{immediate:!0}),{otherValues:i,addOtherValue:r,setOtherValue:o};function r(s="",u=!1){i.value=[...i.value,{key:sF(),value:s,focus:u}]}function o(s,u){const a=i.value.find(g=>g.key===s),h=(e.value||[]).filter(g=>g!==a?.value);u===null?(i.value=i.value.filter(g=>g.key!==s),h.length===0?n(null):n(h)):(i.value=i.value.map(g=>(g.key===s&&(g.value=u),g)),h.length===e.value?.length?n(h):n([...h,u]))}}function _G(e){const t=Ye(0),n=Ye(0),i=new ResizeObserver(([r])=>{r!==void 0&&(t.value=r.contentRect.width,n.value=r.contentRect.height)});return jO(()=>{const r=PO(e)?e.value:e;Fn(r)||i.observe(r)}),zO(()=>{i.disconnect()}),{width:t,height:n}}function yG(e,t){return{fieldGroups:we(()=>{const n={};for(const i in t)n[i]=[];return e.value.reduce((i,r)=>{for(const o in t)t[o](r)!==!1&&i[o].push(r);return i},n)})}}function bG(e){const t=Fr(e?.group||"item-group",null);if(Fn(t))return{active:Ye(!1),toggle:()=>{},activate:()=>{},deactivate:()=>{}};const{register:n,unregister:i,toggle:r,selection:o}=t;let s=!1;e?.active?.value===!0&&(s=!0),e?.value&&o.value.includes(e.value)&&(s=!0);const u=Ye(s),a={active:u,value:e?.value};return n(a),e?.active!==void 0&&e.watch===!0&&Vn(e.active,()=>{e.active!==void 0&&(e.active.value===!0&&(u.value===!1&&r(a),u.value=!0),e.active.value===!1&&(u.value===!0&&r(a),u.value=!1))}),Fp(()=>i(a)),{active:u,toggle:()=>{r(a)},activate:()=>{u.value===!1&&r(a)},deactivate:()=>{u.value===!0&&r(a)}}}function $G(e={},t={},n="item-group"){const i=CO([]),r=Ye([]),o=we({get(){return!Fn(e.selection)&&!Fn(e.selection.value)?e.selection.value:r.value},set(l){Fn(e.onSelectionChange)||e.onSelectionChange(l),r.value=[...l]}});return UO(n,{register:s,unregister:u,toggle:a,selection:o}),Vn(o,c,{immediate:!0}),Dp().then(c),Vn(()=>t?.mandatory?.value,(l,d)=>{br(l,d)||(!o.value||o.value.length===0&&t?.mandatory?.value===!0)&&i.value[0]&&(o.value=[_(i.value[0])])}),{items:i,selection:o,internalSelection:r,getValueForItem:_,updateChildren:c};function s(l){i.value=[...i.value,l];const d=_(l);o.value.length===0&&t?.mandatory?.value===!0&&i.value.length===1&&(o.value=[d]),l.active.value&&o.value.includes(d)===!1&&a(l)}function u(l){i.value=i.value.filter(d=>d!==l)}function a(l){t?.multiple?.value===!0?g(l):h(l),Fn(e.onToggle)||e.onToggle(l)}function h(l){const d=_(l);if(o.value[0]===d&&t?.mandatory?.value!==!0){o.value=[];return}o.value[0]!==d&&(o.value=[d])}function g(l){const d=_(l);if(o.value.includes(d)){if(t?.mandatory?.value===!0&&o.value.length===1){c();return}o.value=o.value.filter(p=>p!==d);return}if(t?.max?.value&&t.max.value!==-1&&o.value.length>=t.max.value){c();return}o.value=[...o.value,d]}function _(l){return l.value||i.value.findIndex(d=>l===d)}function c(){i.value.forEach(l=>{l.active.value=o.value.includes(_(l))})}}function wG(e,t){const n=PL(),{primaryKeyField:i}=CL(e),{fields:r,limit:o,sort:s,search:u,filter:a,page:h,filterSystem:g,alias:_,deep:c}=t,l=we(()=>e.value?oL(e.value):null),d=Ye([]),p=Ye(!1),f=Ye(!1),y=Ye(null),m=Ye(null),v=Ye(null),b=we(()=>m.value===null||m.value<(pe(o)??100)?1:Math.ceil(m.value/(pe(o)??100))),w={items:null,total:null,filter:null};let O=null;const A=BE(j=>{Promise.all([E(),j?x():Promise.resolve()])},500);return Vn([e,o,s,u,a,r,h,Aa(_),Aa(c)],async(j,P)=>{if(br(j,P))return;const[Z,M,J,K,se]=j,[Re,ee,le,Ze,Ve]=P;!Z||!t||(Z!==Re&&$(),(!br(se,Ve)||!br(J,le)||M!==ee||K!==Ze)&&Re&&(h.value=1),A(Z!==Re||!br(se,Ve)||K!==Ze))},{deep:!0,immediate:!0}),Vn([e,Aa(g)],async(j,P)=>{br(j,P)||I()},{deep:!0,immediate:!0}),{itemCount:m,totalCount:v,items:d,totalPages:b,loading:p,loadingItemCount:f,error:y,changeManualSort:S,getItems:E,getItemCount:x,getTotalCount:I};async function E(){if(!l.value)return;let j=!1;w.items&&w.items.abort(),w.items=new AbortController,y.value=null,O&&clearTimeout(O),O=setTimeout(()=>{p.value=!0},150);let P=[...pe(r)??[]];!pe(r)?.includes("*")&&i.value&&P.includes(i.value.field)===!1&&P.push(i.value.field),P=P.filter(Z=>Z.startsWith("$")===!1);try{let Z=(await n.get(l.value,{params:{limit:pe(o),fields:P.join(","),..._?{alias:pe(_)}:{},sort:pe(s),page:pe(h),search:pe(u),filter:pe(a),deep:pe(c)},signal:w.items.signal})).data.data;w.items=null,e.value==="directus_files"&&(Z=Z.map(M=>({...M,$thumbnail:M}))),d.value=Z,h&&Z.length===0&&h?.value!==1&&(h.value=1)}catch(Z){Te.isCancel(Z)?j=!0:y.value=Z}finally{O&&!j&&(clearTimeout(O),O=null),O||(p.value=!1)}}function $(){d.value=[],v.value=null,m.value=null}async function S({item:j,to:P}){const Z=i.value?.field;if(!Z)return;const M=d.value.findIndex(se=>se[Z]===j),J=d.value.findIndex(se=>se[Z]===P);d.value=cL(d.value,M,J);const K=we(()=>`/utils/sort/${e.value}`);await n.post(K.value,{item:j,to:P})}async function I(){if(l.value)try{w.total&&w.total.abort(),w.total=new AbortController;const j=i.value?{countDistinct:i.value.field}:{count:"*"},P=await n.get(l.value,{params:{aggregate:j,filter:pe(g)},signal:w.total.signal}),Z=i.value?Number(P.data.data[0].countDistinct[i.value.field]):Number(P.data.data[0].count);w.total=null,v.value=Z}catch(j){if(!Te.isCancel(j))throw j}}async function x(){if(l.value){f.value=!0;try{w.filter&&w.filter.abort(),w.filter=new AbortController;const j=i.value?{countDistinct:i.value.field}:{count:"*"},P=await n.get(l.value,{params:{filter:pe(a),search:pe(u),aggregate:j},signal:w.filter.signal}),Z=i.value?Number(P.data.data[0].countDistinct[i.value.field]):Number(P.data.data[0].count);w.filter=null,m.value=Z}catch(j){if(!Te.isCancel(j))throw j}finally{f.value=!1}}}}const yu="wrapper",Db=["selection","layoutOptions","layoutQuery"];function UL(e){return Db.includes(e)}function DL(e){return Lp({name:`${e.id}-${yu}`,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:Db.map(t=>`update:${t}`),setup(t,{emit:n}){const i=Mp({...e.setup(t,{emit:n}),...Zp(t),sidebarShadow:e.sidebarShadow??!1});for(const r in i)i[`onUpdate:${r}`]=o=>{UL(r)?n(`update:${r}`,o):Object.keys(t).includes(r)||(i[r]=o)};return{state:i}},render(t){return t.$slots.default!==void 0?t.$slots.default({layoutState:t.state}):null}})}function OG(e){const{layouts:t}=zL(),n=we(()=>t.value.map(i=>DL(i)));return{layoutWrapper:we(()=>{const i=n.value.find(r=>r.name===`${e.value}-${yu}`);return i===void 0?n.value.find(r=>r.name===`tabular-${yu}`):i})}}function kG(e){return we(()=>e.xSmall?"x-small":e.small?"small":e.large?"large":e.xLarge?"x-large":null)}function SG(e,t,n){return we({get(){return e[t]},set(i){n(`update:${t}`,i)}})}const IG=Object.freeze({status:"aborted"});function N(e,t,n){function i(u,a){var h;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(h=u._zod).traits??(h.traits=new Set),u._zod.traits.add(e),t(u,a);for(const g in s.prototype)g in u||Object.defineProperty(u,g,{value:s.prototype[g].bind(u)});u._zod.constr=s,u._zod.def=a}const r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function s(u){var a;const h=n?.Parent?new o:this;i(h,u),(a=h._zod).deferred??(a.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}const AG=Symbol("zod_brand");class Or extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Od extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const bu={};function Yt(e){return e&&Object.assign(bu,e),bu}function FL(e){return e}function LL(e){return e}function ZL(e){}function ML(e){throw new Error}function BL(e){}function Fb(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function GL(e,t="|"){return e.map(n=>Bb(n)).join(t)}function us(e,t){return typeof t=="bigint"?t.toString():t}function po(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function _r(e){return e==null}function pa(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Lb(e,t){const n=(e.toString().split(".")[1]||"").length,i=t.toString();let r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){const a=i.match(/\d?e-(\d?)/);a?.[1]&&(r=Number.parseInt(a[1]))}const o=n>r?n:r,s=Number.parseInt(e.toFixed(o).replace(".","")),u=Number.parseInt(t.toFixed(o).replace(".",""));return s%u/10**o}const Op=Symbol("evaluating");function re(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Op)return i===void 0&&(i=Op,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function HL(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Un(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function dn(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function WL(e){return dn(e._zod.def)}function VL(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function qL(e){const t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{const r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function KL(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function $u(e){return JSON.stringify(e)}const kd="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Zb=po(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function tr(e){if(Cr(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Cr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ma(e){return tr(e)?{...e}:Array.isArray(e)?[...e]:e}function XL(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}const JL=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},cs=new Set(["string","number","symbol"]),Mb=new Set(["string","number","bigint","boolean","symbol","undefined"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qt(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function U(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function YL(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function Bb(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Gb(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Hb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wb={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Vb(e,t){const n=e._zod.def,i=dn(e._zod.def,{get shape(){const r={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(r[o]=n.shape[o])}return Un(this,"shape",r),r},checks:[]});return Qt(e,i)}function qb(e,t){const n=e._zod.def,i=dn(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete r[o]}return Un(this,"shape",r),r},checks:[]});return Qt(e,i)}function Kb(e,t){if(!tr(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const r=dn(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Un(this,"shape",o),o},checks:[]});return Qt(e,r)}function Xb(e,t){if(!tr(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Un(this,"shape",i),i},checks:e._zod.def.checks};return Qt(e,n)}function Jb(e,t){const n=dn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Un(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Qt(e,n)}function Yb(e,t,n){const i=dn(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)o[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return Un(this,"shape",o),o},checks:[]});return Qt(t,i)}function Qb(e,t,n){const i=dn(t._zod.def,{get shape(){const r=t._zod.def.shape,o={...r};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)o[s]=new e({type:"nonoptional",innerType:r[s]});return Un(this,"shape",o),o},checks:[]});return Qt(t,i)}function Bn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function jt(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function li(e){return typeof e=="string"?e:e?.message}function Mt(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const r=li(e.inst?._zod.def?.error?.(e))??li(t?.error?.(e))??li(n.customError?.(e))??li(n.localeError?.(e))??"Invalid input";i.message=r}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function ha(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ga(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ur(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function QL(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function e$(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function t$(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function e2(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return e$(t+n)}function t2(e){return t$(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function n2(e){const t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function r2(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}class i2{constructor(...t){}}const EG=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Wb,Class:i2,NUMBER_FORMAT_RANGES:Hb,aborted:Bn,allowsEval:Zb,assert:BL,assertEqual:FL,assertIs:ZL,assertNever:ML,assertNotEqual:LL,assignProp:Un,base64ToUint8Array:e$,base64urlToUint8Array:e2,cached:po,captureStackTrace:kd,cleanEnum:QL,cleanRegex:pa,clone:Qt,cloneDef:WL,createTransparentProxy:YL,defineLazy:re,esc:$u,escapeRegex:An,extend:Kb,finalizeIssue:Mt,floatSafeRemainder:Lb,getElementAtPath:VL,getEnumValues:Fb,getLengthableOrigin:ga,getParsedType:JL,getSizableOrigin:ha,hexToUint8Array:n2,isObject:Cr,isPlainObject:tr,issue:Ur,joinValues:GL,jsonStringifyReplacer:us,merge:Jb,mergeDefs:dn,normalizeParams:U,nullish:_r,numKeys:XL,objectClone:HL,omit:qb,optionalKeys:Gb,partial:Yb,pick:Vb,prefixIssues:jt,primitiveTypes:Mb,promiseAllObject:qL,propertyKeyTypes:cs,randomString:KL,required:Qb,safeExtend:Xb,shallowClone:ma,stringifyPrimitive:Bb,uint8ArrayToBase64:t$,uint8ArrayToBase64url:t2,uint8ArrayToHex:r2,unwrapMessage:li},Symbol.toStringTag,{value:"Module"})),n$=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,us,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},r$=N("$ZodError",n$),Et=N("$ZodError",n$,{Parent:Error});function o2(e,t=n=>n.message){const n={},i=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function s2(e,t=n=>n.message){const n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>i({issues:s}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let s=n,u=0;for(;u<o.path.length;){const a=o.path[u];u===o.path.length-1?(s[a]=s[a]||{_errors:[]},s[a]._errors.push(t(o))):s[a]=s[a]||{_errors:[]},s=s[a],u++}}};return i(e),n}function xG(e,t=n=>n.message){const n={errors:[]},i=(r,o=[])=>{var s,u;for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(h=>i({issues:h},a.path));else if(a.code==="invalid_key")i({issues:a.issues},a.path);else if(a.code==="invalid_element")i({issues:a.issues},a.path);else{const h=[...o,...a.path];if(h.length===0){n.errors.push(t(a));continue}let g=n,_=0;for(;_<h.length;){const c=h[_],l=_===h.length-1;typeof c=="string"?(g.properties??(g.properties={}),(s=g.properties)[c]??(s[c]={errors:[]}),g=g.properties[c]):(g.items??(g.items=[]),(u=g.items)[c]??(u[c]={errors:[]}),g=g.items[c]),l&&g.errors.push(t(a)),_++}}};return i(e),n}function a2(e){const t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(const i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function TG(e){const t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(const i of n)t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${a2(i.path)}`);return t.join(`
|
|
44
44
|
`)}const va=e=>(t,n,i,r)=>{const o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Or;if(s.issues.length){const u=new(r?.Err??e)(s.issues.map(a=>Mt(a,o,Yt())));throw kd(u,r?.callee),u}return s.value},kp=va(Et),_a=e=>async(t,n,i,r)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const u=new(r?.Err??e)(s.issues.map(a=>Mt(a,o,Yt())));throw kd(u,r?.callee),u}return s.value},Sp=_a(Et),ya=e=>(t,n,i)=>{const r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Or;return o.issues.length?{success:!1,error:new(e??r$)(o.issues.map(s=>Mt(s,r,Yt())))}:{success:!0,data:o.value}},u2=ya(Et),ba=e=>async(t,n,i)=>{const r=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>Mt(s,r,Yt())))}:{success:!0,data:o.value}},c2=ba(Et),i$=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return va(e)(t,n,r)},NG=i$(Et),o$=e=>(t,n,i)=>va(e)(t,n,i),RG=o$(Et),s$=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _a(e)(t,n,r)},jG=s$(Et),a$=e=>async(t,n,i)=>_a(e)(t,n,i),PG=a$(Et),u$=e=>(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ya(e)(t,n,r)},zG=u$(Et),c$=e=>(t,n,i)=>ya(e)(t,n,i),CG=c$(Et),l$=e=>async(t,n,i)=>{const r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ba(e)(t,n,r)},UG=l$(Et),d$=e=>async(t,n,i)=>ba(e)(t,n,i),DG=d$(Et),f$=/^[cC][^\s-]{8,}$/,p$=/^[0-9a-z]+$/,m$=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,h$=/^[0-9a-vA-V]{20}$/,g$=/^[A-Za-z0-9]{27}$/,v$=/^[a-zA-Z0-9_-]{21}$/,_$=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,l2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,y$=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Dr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,d2=Dr(4),f2=Dr(6),p2=Dr(7),b$=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,m2=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,h2=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,$$=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,g2=$$,v2=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_2="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function w$(){return new RegExp(_2,"u")}const O$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,k$=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,S$=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,I$=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,A$=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sd=/^[A-Za-z0-9_-]*$/,Id=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,E$=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,x$=/^\+(?:[0-9]){6,14}[0-9]$/,T$="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",N$=new RegExp(`^${T$}$`);function R$(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function j$(e){return new RegExp(`^${R$(e)}$`)}function P$(e){const t=R$({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${T$}T(?:${i})$`)}const z$=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},C$=/^-?\d+n?$/,U$=/^-?\d+$/,D$=/^-?\d+(?:\.\d+)?/,F$=/^(?:true|false)$/i,L$=/^null$/i,Z$=/^undefined$/i,M$=/^[^A-Z]*$/,B$=/^[^a-z]*$/,G$=/^[0-9a-fA-F]*$/;function mo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ho(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const y2=/^[0-9a-fA-F]{32}$/,b2=mo(22,"=="),$2=ho(22),w2=/^[0-9a-fA-F]{40}$/,O2=mo(27,"="),k2=ho(27),S2=/^[0-9a-fA-F]{64}$/,I2=mo(43,"="),A2=ho(43),E2=/^[0-9a-fA-F]{96}$/,x2=mo(64,""),T2=ho(64),N2=/^[0-9a-fA-F]{128}$/,R2=mo(86,"=="),j2=ho(86),P2=Object.freeze(Object.defineProperty({__proto__:null,base64:A$,base64url:Sd,bigint:C$,boolean:F$,browserEmail:v2,cidrv4:S$,cidrv6:I$,cuid:f$,cuid2:p$,date:N$,datetime:P$,domain:E$,duration:_$,e164:x$,email:b$,emoji:w$,extendedDuration:l2,guid:y$,hex:G$,hostname:Id,html5Email:m2,idnEmail:g2,integer:U$,ipv4:O$,ipv6:k$,ksuid:g$,lowercase:M$,md5_base64:b2,md5_base64url:$2,md5_hex:y2,nanoid:v$,null:L$,number:D$,rfc5322Email:h2,sha1_base64:O2,sha1_base64url:k2,sha1_hex:w2,sha256_base64:I2,sha256_base64url:A2,sha256_hex:S2,sha384_base64:x2,sha384_base64url:T2,sha384_hex:E2,sha512_base64:R2,sha512_base64url:j2,sha512_hex:N2,string:z$,time:j$,ulid:m$,undefined:Z$,unicodeEmail:$$,uppercase:B$,uuid:Dr,uuid4:d2,uuid6:f2,uuid7:p2,xid:h$},Symbol.toStringTag,{value:"Module"})),ze=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),H$={number:"number",bigint:"bigint",object:"date"},W$=N("$ZodCheckLessThan",(e,t)=>{ze.init(e,t);const n=H$[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),V$=N("$ZodCheckGreaterThan",(e,t)=>{ze.init(e,t);const n=H$[typeof t.value];e._zod.onattach.push(i=>{const r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),z2=N("$ZodCheckMultipleOf",(e,t)=>{ze.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Lb(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),C2=N("$ZodCheckNumberFormat",(e,t)=>{ze.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),i=n?"int":"number",[r,o]=Hb[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=r,u.maximum=o,n&&(u.pattern=U$)}),e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}u<r&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),u>o&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inst:e})}}),U2=N("$ZodCheckBigIntFormat",(e,t)=>{ze.init(e,t);const[n,i]=Wb[t.format];e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{const o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),D2=N("$ZodCheckMaxSize",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!_r(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;r.size<=t.maximum||i.issues.push({origin:ha(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),F2=N("$ZodCheckMinSize",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!_r(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;r.size>=t.minimum||i.issues.push({origin:ha(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),L2=N("$ZodCheckSizeEquals",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!_r(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{const r=i.value,o=r.size;if(o===t.size)return;const s=o>t.size;i.issues.push({origin:ha(r),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Z2=N("$ZodCheckMaxLength",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!_r(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const r=i.value;if(r.length<=t.maximum)return;const s=ga(r);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),M2=N("$ZodCheckMinLength",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!_r(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const r=i.value;if(r.length>=t.minimum)return;const s=ga(r);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),B2=N("$ZodCheckLengthEquals",(e,t)=>{var n;ze.init(e,t),(n=e._zod.def).when??(n.when=i=>{const r=i.value;return!_r(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{const r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{const r=i.value,o=r.length;if(o===t.length)return;const s=ga(r),u=o>t.length;i.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),$a=N("$ZodCheckStringFormat",(e,t)=>{var n,i;ze.init(e,t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),G2=N("$ZodCheckRegex",(e,t)=>{$a.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),H2=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=M$),$a.init(e,t)}),W2=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=B$),$a.init(e,t)}),V2=N("$ZodCheckIncludes",(e,t)=>{ze.init(e,t);const n=An(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),q2=N("$ZodCheckStartsWith",(e,t)=>{ze.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),K2=N("$ZodCheckEndsWith",(e,t)=>{ze.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Ip(e,t,n){e.issues.length&&t.issues.push(...jt(n,e.issues))}const X2=N("$ZodCheckProperty",(e,t)=>{ze.init(e,t),e._zod.check=n=>{const i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Ip(r,n,t.property));Ip(i,n,t.property)}}),J2=N("$ZodCheckMimeType",(e,t)=>{ze.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Y2=N("$ZodCheckOverwrite",(e,t)=>{ze.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Q2{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
45
45
|
`).filter(s=>s),r=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(r)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
|
|
46
46
|
`))}}const eZ={major:4,minor:1,patch:12},q=N("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eZ;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const r of i)for(const o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(s,u,a)=>{let h=Bn(s),g;for(const _ of u){if(_._zod.def.when){if(!_._zod.def.when(s))continue}else if(h)continue;const c=s.issues.length,l=_._zod.check(s);if(l instanceof Promise&&a?.async===!1)throw new Or;if(g||l instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await l,s.issues.length!==c&&(h||(h=Bn(s,c)))});else{if(s.issues.length===c)continue;h||(h=Bn(s,c))}}return g?g.then(()=>s):s},o=(s,u,a)=>{if(Bn(s))return s.aborted=!0,s;const h=r(u,i,a);if(h instanceof Promise){if(a.async===!1)throw new Or;return h.then(g=>e._zod.parse(g,a))}return e._zod.parse(h,a)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){const h=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return h instanceof Promise?h.then(g=>o(g,s,u)):o(h,s,u)}const a=e._zod.parse(s,u);if(a instanceof Promise){if(u.async===!1)throw new Or;return a.then(h=>r(h,i,u))}return r(a,i,u)}}e["~standard"]={validate:r=>{try{const o=u2(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return c2(e,r).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),wa=N("$ZodString",(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??z$(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Ae=N("$ZodStringFormat",(e,t)=>{$a.init(e,t),wa.init(e,t)}),tZ=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=y$),Ae.init(e,t)}),nZ=N("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Dr(i))}else t.pattern??(t.pattern=Dr());Ae.init(e,t)}),rZ=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=b$),Ae.init(e,t)}),iZ=N("$ZodURL",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Id.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),oZ=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=w$()),Ae.init(e,t)}),sZ=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=v$),Ae.init(e,t)}),aZ=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=f$),Ae.init(e,t)}),uZ=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=p$),Ae.init(e,t)}),cZ=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=m$),Ae.init(e,t)}),lZ=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=h$),Ae.init(e,t)}),dZ=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=g$),Ae.init(e,t)}),fZ=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=P$(t)),Ae.init(e,t)}),pZ=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=N$),Ae.init(e,t)}),mZ=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=j$(t)),Ae.init(e,t)}),hZ=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=_$),Ae.init(e,t)}),gZ=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=O$),Ae.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format="ipv4"})}),vZ=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=k$),Ae.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),_Z=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=S$),Ae.init(e,t)}),yZ=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=I$),Ae.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[r,o]=i;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function q$(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const bZ=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=A$),Ae.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{q$(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function $Z(e){if(!Sd.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return q$(n)}const wZ=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sd),Ae.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{$Z(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),OZ=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=x$),Ae.init(e,t)});function kZ(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const SZ=N("$ZodJWT",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{kZ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),IZ=N("$ZodCustomStringFormat",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),K$=N("$ZodNumber",(e,t)=>{q.init(e,t),e._zod.pattern=e._zod.bag.pattern??D$,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),AZ=N("$ZodNumber",(e,t)=>{C2.init(e,t),K$.init(e,t)}),X$=N("$ZodBoolean",(e,t)=>{q.init(e,t),e._zod.pattern=F$,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),J$=N("$ZodBigInt",(e,t)=>{q.init(e,t),e._zod.pattern=C$,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),EZ=N("$ZodBigInt",(e,t)=>{U2.init(e,t),J$.init(e,t)}),xZ=N("$ZodSymbol",(e,t)=>{q.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),TZ=N("$ZodUndefined",(e,t)=>{q.init(e,t),e._zod.pattern=Z$,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),NZ=N("$ZodNull",(e,t)=>{q.init(e,t),e._zod.pattern=L$,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{const r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),RZ=N("$ZodAny",(e,t)=>{q.init(e,t),e._zod.parse=n=>n}),jZ=N("$ZodUnknown",(e,t)=>{q.init(e,t),e._zod.parse=n=>n}),PZ=N("$ZodNever",(e,t)=>{q.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),zZ=N("$ZodVoid",(e,t)=>{q.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),CZ=N("$ZodDate",(e,t)=>{q.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}const r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function Ap(e,t,n){e.issues.length&&t.issues.push(...jt(n,e.issues)),t.value[n]=e.value}const UZ=N("$ZodArray",(e,t)=>{q.init(e,t),e._zod.parse=(n,i)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const o=[];for(let s=0;s<r.length;s++){const u=r[s],a=t.element._zod.run({value:u,issues:[]},i);a instanceof Promise?o.push(a.then(h=>Ap(h,n,s))):Ap(a,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function ls(e,t,n,i){e.issues.length&&t.issues.push(...jt(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Y$(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=Gb(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Q$(e,t,n,i,r,o){const s=[],u=r.keySet,a=r.catchall._zod,h=a.def.type;for(const g of Object.keys(t)){if(u.has(g))continue;if(h==="never"){s.push(g);continue}const _=a.run({value:t[g],issues:[]},i);_ instanceof Promise?e.push(_.then(c=>ls(c,n,g,t))):ls(_,n,g,t)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const DZ=N("$ZodObject",(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const a={...u};return Object.defineProperty(t,"shape",{value:a}),a}})}const i=po(()=>Y$(t));re(e._zod,"propValues",()=>{const u=t.shape,a={};for(const h in u){const g=u[h]._zod;if(g.values){a[h]??(a[h]=new Set);for(const _ of g.values)a[h].add(_)}}return a});const r=Cr,o=t.catchall;let s;e._zod.parse=(u,a)=>{s??(s=i.value);const h=u.value;if(!r(h))return u.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),u;u.value={};const g=[],_=s.shape;for(const c of s.keys){const d=_[c]._zod.run({value:h[c],issues:[]},a);d instanceof Promise?g.push(d.then(p=>ls(p,u,c,h))):ls(d,u,c,h)}return o?Q$(g,h,u,a,i.value,e):g.length?Promise.all(g).then(()=>u):u}}),FZ=N("$ZodObjectJIT",(e,t)=>{DZ.init(e,t);const n=e._zod.parse,i=po(()=>Y$(t)),r=c=>{const l=new Q2(["shape","payload","ctx"]),d=i.value,p=v=>{const b=$u(v);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};l.write("const input = payload.value;");const f=Object.create(null);let y=0;for(const v of d.keys)f[v]=`key_${y++}`;l.write("const newResult = {};");for(const v of d.keys){const b=f[v],w=$u(v);l.write(`const ${b} = ${p(v)};`),l.write(`
|