@mcp-use/inspector 0.16.0 → 0.16.1
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/web/assets/{1c-BpExluXO.js → 1c-DsLCpL8w.js} +1 -1
- package/dist/web/assets/{abnf-BOhqtDGC.js → abnf-9vwmpHKr.js} +1 -1
- package/dist/web/assets/{accesslog-DuZISOzp.js → accesslog-B2zPah7l.js} +1 -1
- package/dist/web/assets/{actionscript-Cas0TrJm.js → actionscript-dJ1FsgQR.js} +1 -1
- package/dist/web/assets/{ada-Cpl8tZ-O.js → ada-BCRN9qRt.js} +1 -1
- package/dist/web/assets/{angelscript-CFuCizE7.js → angelscript-kme7w3ut.js} +1 -1
- package/dist/web/assets/{apache-D-nO3JiR.js → apache-CuECYmIF.js} +1 -1
- package/dist/web/assets/{applescript-BLFezDaJ.js → applescript-Dzf4Y6_l.js} +1 -1
- package/dist/web/assets/{arcade-Daeqyh4I.js → arcade-DbePqNJz.js} +1 -1
- package/dist/web/assets/{arduino-BMH_pX-6.js → arduino-kpev9uZJ.js} +1 -1
- package/dist/web/assets/{armasm-BCQ9PVRk.js → armasm-CJf1D-4y.js} +1 -1
- package/dist/web/assets/{asciidoc-PVsrzf7K.js → asciidoc-CSjeacoo.js} +1 -1
- package/dist/web/assets/{aspectj-DiTs5TYy.js → aspectj-BOBL3IRY.js} +1 -1
- package/dist/web/assets/{autohotkey-64DExUGu.js → autohotkey-BX6SM4Ac.js} +1 -1
- package/dist/web/assets/{autoit-CcxcKxwy.js → autoit-BgrXicrk.js} +1 -1
- package/dist/web/assets/{avrasm-GLc-DMl7.js → avrasm-BDYyEXGK.js} +1 -1
- package/dist/web/assets/{awk-DIh3N_Md.js → awk-BXsZIeiQ.js} +1 -1
- package/dist/web/assets/{axapta-CRPJBA3F.js → axapta-BAY7AkxF.js} +1 -1
- package/dist/web/assets/{bash-Chtb0_Gh.js → bash-N9kGbHmX.js} +1 -1
- package/dist/web/assets/{basic-ClOyP4YB.js → basic-6zN0XoTc.js} +1 -1
- package/dist/web/assets/{bnf-BAO-KDca.js → bnf-DKF7Avln.js} +1 -1
- package/dist/web/assets/{brainfuck-DfEJ5Q9S.js → brainfuck-BYXny-FZ.js} +1 -1
- package/dist/web/assets/{browser-Iil3BsPT.js → browser-B7_aBwjH.js} +3 -3
- package/dist/web/assets/{c-CKYwH7yb.js → c-gvOYmoS7.js} +1 -1
- package/dist/web/assets/{c-like-D3lczBkH.js → c-like-COfgCutt.js} +1 -1
- package/dist/web/assets/{cal-BTXUBeW2.js → cal-DWQYGeJn.js} +1 -1
- package/dist/web/assets/{capnproto-BR9wGhg4.js → capnproto-sUZfRIL4.js} +1 -1
- package/dist/web/assets/{ceylon-C0fwAl1p.js → ceylon-D1srqIX9.js} +1 -1
- package/dist/web/assets/{chunk-VL2OQCWN-BVgT8d9t.js → chunk-VL2OQCWN-DNUAbDme.js} +1 -1
- package/dist/web/assets/{clean-zHQJqhuh.js → clean-BLUxpETI.js} +1 -1
- package/dist/web/assets/{client-f4uNZLPx.js → client-BA5ujI4G.js} +1 -1
- package/dist/web/assets/{clojure-Bj92WCS_.js → clojure-BisW8RtX.js} +1 -1
- package/dist/web/assets/{clojure-repl-DIo3CN4A.js → clojure-repl-GsjsOiQb.js} +1 -1
- package/dist/web/assets/{cmake-ByzTgMiz.js → cmake-ctzN3JQT.js} +1 -1
- package/dist/web/assets/{coffeescript-u-JP5T4t.js → coffeescript-BrGCJ8si.js} +1 -1
- package/dist/web/assets/{coq-C3vWTySb.js → coq-DBBmDQ-P.js} +1 -1
- package/dist/web/assets/{core-Dj--Y0VN.js → core-8o1qxQZY.js} +1 -1
- package/dist/web/assets/{cos-G4sVsQHi.js → cos-kVuVXddq.js} +1 -1
- package/dist/web/assets/{cpp-C3zyqvhV.js → cpp-qxXnNoY9.js} +1 -1
- package/dist/web/assets/{crmsh-CKEZ6EbZ.js → crmsh-C5CHn7WO.js} +1 -1
- package/dist/web/assets/{crystal-DaRVHRt_.js → crystal-DS6kzVKL.js} +1 -1
- package/dist/web/assets/{csharp-En8WbkTR.js → csharp-F50dEBeb.js} +1 -1
- package/dist/web/assets/{csp-1VT7B8GV.js → csp-sS9DXyAJ.js} +1 -1
- package/dist/web/assets/{css-FZreTXEf.js → css-IZOceUAf.js} +1 -1
- package/dist/web/assets/{d-BtEt9sGM.js → d-BpWVhXvk.js} +1 -1
- package/dist/web/assets/{dart-CZgpMA20.js → dart-B2Cxcgrr.js} +1 -1
- package/dist/web/assets/{delphi-DU7wBWDb.js → delphi-D9DOxMPQ.js} +1 -1
- package/dist/web/assets/{diff-FPE9u1_a.js → diff-BObO0YzB.js} +1 -1
- package/dist/web/assets/{display-A5IEINAP-Z3ib7VJH.js → display-A5IEINAP-B6Exp_E2.js} +2 -2
- package/dist/web/assets/{django-CTFE4fhP.js → django-CF8yzq3K.js} +1 -1
- package/dist/web/assets/{dns-D5SyhODs.js → dns-xq1HKg5h.js} +1 -1
- package/dist/web/assets/{dockerfile-lgAxBpQ7.js → dockerfile-BOB6kThH.js} +1 -1
- package/dist/web/assets/{dos-DvdefiRZ.js → dos-BFdgMObo.js} +1 -1
- package/dist/web/assets/{dsconfig-DC0WZse2.js → dsconfig-zSC21iIz.js} +1 -1
- package/dist/web/assets/{dts--GZxVo6w.js → dts-Do70zRa6.js} +1 -1
- package/dist/web/assets/{dust-Cgt6_Khj.js → dust-BrpO2QUc.js} +1 -1
- package/dist/web/assets/{ebnf-BlyRMJx9.js → ebnf-CDjzy9Hw.js} +1 -1
- package/dist/web/assets/{elixir-DtPpK_HA.js → elixir-CB2Pw74y.js} +1 -1
- package/dist/web/assets/{elm-BDefbJoD.js → elm-C0rcfD-l.js} +1 -1
- package/dist/web/assets/{embeddings-ByfyRhPQ.js → embeddings-BDvfji09.js} +1 -1
- package/dist/web/assets/{erb-DahroyLS.js → erb-DgzXpkAR.js} +1 -1
- package/dist/web/assets/{erlang-B3h8VlxH.js → erlang-ebt4G520.js} +1 -1
- package/dist/web/assets/{erlang-repl-BYjJIClY.js → erlang-repl-CvYHzy9C.js} +1 -1
- package/dist/web/assets/{excel-cH0QQaK3.js → excel-D73_rzKM.js} +1 -1
- package/dist/web/assets/{fix-DgFFsw_D.js → fix-BDB4C2vh.js} +1 -1
- package/dist/web/assets/{flix-C1Cv9DJP.js → flix-BGlYAAWW.js} +1 -1
- package/dist/web/assets/{fortran-DBDxw3kU.js → fortran-Bhdm-ydL.js} +1 -1
- package/dist/web/assets/{fsharp-BQefMakE.js → fsharp-y572jbgL.js} +1 -1
- package/dist/web/assets/{gams-D6qQlWCu.js → gams-hlfSU4V0.js} +1 -1
- package/dist/web/assets/{gauss-ZMwm02o5.js → gauss-BZ9TNpfn.js} +1 -1
- package/dist/web/assets/{gcode-C6FhYd-m.js → gcode-DJaDkCmi.js} +1 -1
- package/dist/web/assets/{gherkin-5ndGq6n1.js → gherkin-DisAkI4X.js} +1 -1
- package/dist/web/assets/{glsl-BGH32P5Z.js → glsl-CwMzu7ez.js} +1 -1
- package/dist/web/assets/{gml-Z6oFf0_x.js → gml-DWjPGe-h.js} +1 -1
- package/dist/web/assets/{go-CPh1md-R.js → go-8g2dJW-9.js} +1 -1
- package/dist/web/assets/{golo-BH-SumEt.js → golo-BkyN2EPQ.js} +1 -1
- package/dist/web/assets/{gradle-DtVSHYXd.js → gradle-CSHGUZBU.js} +1 -1
- package/dist/web/assets/{groovy-DpzJUkEG.js → groovy-CgiinG9s.js} +1 -1
- package/dist/web/assets/{haml-Dl736qHG.js → haml-Dr66V6pg.js} +1 -1
- package/dist/web/assets/{handlebars-DaTaMrlH.js → handlebars-BEC9AdoG.js} +1 -1
- package/dist/web/assets/{haskell-DpNYlaFZ.js → haskell-in9Bw9kH.js} +1 -1
- package/dist/web/assets/{haxe-PstwQ13U.js → haxe-Dy86Wxat.js} +1 -1
- package/dist/web/assets/{hsp-DFvTtF5G.js → hsp-xnxKG8AI.js} +1 -1
- package/dist/web/assets/{htmlbars-BqxuTGsq.js → htmlbars-CKe_eNa9.js} +1 -1
- package/dist/web/assets/{http-Bm-WwDK6.js → http-CKMXzlel.js} +1 -1
- package/dist/web/assets/{hy-XjX6pDRs.js → hy-xHtqF3t5.js} +1 -1
- package/dist/web/assets/{index-bnUfjGsP.js → index-B3rNNbmk.js} +1 -1
- package/dist/web/assets/{index-DI7DaQz5.js → index-BLhn5wnB.js} +1 -1
- package/dist/web/assets/{index-DIQHM_yt.js → index-Bm4ScUaP.js} +1 -1
- package/dist/web/assets/{index-z2B6AQIZ.js → index-Bux7ZiSz.js} +1 -1
- package/dist/web/assets/{index-B_oCOR-M.js → index-C8RONjrp.js} +1 -1
- package/dist/web/assets/{index-CBHQxSZ-.js → index-CBFdP1qr.js} +1 -1
- package/dist/web/assets/{index-BbVBgYoN.js → index-CkrTxNWw.js} +10 -10
- package/dist/web/assets/{index-3iXzlUh_.js → index-ClvO42kD.js} +1 -1
- package/dist/web/assets/{index-B0r6x7TF.js → index-D7WB6zLK.js} +1 -1
- package/dist/web/assets/{inform7-BLCRNRYr.js → inform7-D8b9BGmI.js} +1 -1
- package/dist/web/assets/{ini-sBm7weJQ.js → ini-C1I9NiAH.js} +1 -1
- package/dist/web/assets/{irpf90-BNaauKSM.js → irpf90-DJsfg4bo.js} +1 -1
- package/dist/web/assets/{isbl-D9kUh_EV.js → isbl-rG7gkkoo.js} +1 -1
- package/dist/web/assets/{java-C8XkMMEO.js → java-D3FUHvxq.js} +1 -1
- package/dist/web/assets/{javascript-BUNO0q8H.js → javascript-B8cDGDGF.js} +1 -1
- package/dist/web/assets/{jboss-cli-BfCeJcT1.js → jboss-cli-9nfdMFpS.js} +1 -1
- package/dist/web/assets/{json-BaRJxvKB.js → json-doOYXyCh.js} +1 -1
- package/dist/web/assets/{julia-MyP1f-Rm.js → julia-GTNU0Z-i.js} +1 -1
- package/dist/web/assets/{julia-repl-tmCyqB0n.js → julia-repl-B6m1ifwQ.js} +1 -1
- package/dist/web/assets/{kotlin-Ckt4czVz.js → kotlin-9pU7uXau.js} +1 -1
- package/dist/web/assets/{lasso-CdrV6Z71.js → lasso-CXyYQMXS.js} +1 -1
- package/dist/web/assets/{latex-DWPS0hNH.js → latex-lxegWU1a.js} +1 -1
- package/dist/web/assets/{ldif-CxEzemo8.js → ldif-BCD9LemM.js} +1 -1
- package/dist/web/assets/{leaf-BvyVVB00.js → leaf-logAWCl1.js} +1 -1
- package/dist/web/assets/{less-Dx8bb7gF.js → less-C9z_Fesu.js} +1 -1
- package/dist/web/assets/{lisp-Cq5j3PaX.js → lisp-hm1vmgpq.js} +1 -1
- package/dist/web/assets/{livecodeserver-E-3ntdwn.js → livecodeserver-CXmhWhXA.js} +1 -1
- package/dist/web/assets/{livescript-DwSZOyXI.js → livescript-fLiMOBoi.js} +1 -1
- package/dist/web/assets/{llvm-CLfPhL_b.js → llvm-P-JEF1wJ.js} +1 -1
- package/dist/web/assets/{lsl-2IQmNv_s.js → lsl-CZ0BD6_7.js} +1 -1
- package/dist/web/assets/{lua-Pbw87B8s.js → lua-DnUGtNm7.js} +1 -1
- package/dist/web/assets/{makefile-MarMw7Ju.js → makefile-BRedlD8e.js} +1 -1
- package/dist/web/assets/{markdown-DGMqbg8I.js → markdown-DFs1S2Fi.js} +1 -1
- package/dist/web/assets/{mathematica-CHXGEnAS.js → mathematica-Da7ADFHe.js} +1 -1
- package/dist/web/assets/{matlab-BTlOHYKJ.js → matlab-_SVGSNVy.js} +1 -1
- package/dist/web/assets/{maxima-BhcqNuMI.js → maxima-D4vUBMk5.js} +1 -1
- package/dist/web/assets/{mel-orKNgDt6.js → mel-CSMdriLv.js} +1 -1
- package/dist/web/assets/{mercury-imyOOMyG.js → mercury-C3uRHkI0.js} +1 -1
- package/dist/web/assets/{mipsasm-B0QIx4-a.js → mipsasm-C6Aw78VM.js} +1 -1
- package/dist/web/assets/{mizar-B_0SVY3N.js → mizar-CF-74lFr.js} +1 -1
- package/dist/web/assets/{mojolicious-DsqWs9fN.js → mojolicious-kxYSCsKJ.js} +1 -1
- package/dist/web/assets/{monkey-DASnCiON.js → monkey-DpmvL5Pj.js} +1 -1
- package/dist/web/assets/{moonscript-C4zmXg2l.js → moonscript-iI_TUTTq.js} +1 -1
- package/dist/web/assets/{n1ql-M1-Xfiwf.js → n1ql-uICy3g5N.js} +1 -1
- package/dist/web/assets/{nginx-BAY64knz.js → nginx-BqIu7G7K.js} +1 -1
- package/dist/web/assets/{nim-Dot7oB5A.js → nim-AC_-giC2.js} +1 -1
- package/dist/web/assets/{nix-CQOm5wCB.js → nix-GnWZlcP3.js} +1 -1
- package/dist/web/assets/{node-repl-DqGo4qw8.js → node-repl-9BYhpoy5.js} +1 -1
- package/dist/web/assets/{nsis-L07WKxtl.js → nsis-ylGPotxq.js} +1 -1
- package/dist/web/assets/{objectivec-D05zdWqj.js → objectivec-CcaZWk7J.js} +1 -1
- package/dist/web/assets/{ocaml-XyYp_H3q.js → ocaml-LZoqPUwz.js} +1 -1
- package/dist/web/assets/{openscad-DzXZwCjA.js → openscad-BpzDaCT0.js} +1 -1
- package/dist/web/assets/{oxygene-CCRe1cg8.js → oxygene-CNhKBMbT.js} +1 -1
- package/dist/web/assets/{parser3-2miz0w_N.js → parser3-hga9eLyC.js} +1 -1
- package/dist/web/assets/{perl-DgyLJryp.js → perl-DUuVBmHF.js} +1 -1
- package/dist/web/assets/{pf-CeuflYQG.js → pf-FaUD4myh.js} +1 -1
- package/dist/web/assets/{pgsql-BsTAIIIN.js → pgsql-BNJ2pmqD.js} +1 -1
- package/dist/web/assets/{php-DRxWcvs1.js → php-DP7QAuH9.js} +1 -1
- package/dist/web/assets/{php-template-BmyKAGYS.js → php-template-BOfslSFi.js} +1 -1
- package/dist/web/assets/{plaintext-CbjanxM_.js → plaintext-cDkM2fY6.js} +1 -1
- package/dist/web/assets/{pony-C094YI2R.js → pony-ELE1Yt7-.js} +1 -1
- package/dist/web/assets/{powershell-JX0xEE73.js → powershell-wnbJw3WQ.js} +1 -1
- package/dist/web/assets/{processing-UeAJXsmU.js → processing-CmouDwk0.js} +1 -1
- package/dist/web/assets/{profile-BIEyuvJW.js → profile-yKy9GDf5.js} +1 -1
- package/dist/web/assets/{prolog-0iA-ZCjn.js → prolog-DkYLEsVP.js} +1 -1
- package/dist/web/assets/{properties-bwkEBAKR.js → properties-CearfX11.js} +1 -1
- package/dist/web/assets/{protobuf-CdUmQCv1.js → protobuf-DzAUQVEL.js} +1 -1
- package/dist/web/assets/{puppet-Dr7lhKSI.js → puppet-BTExyGZu.js} +1 -1
- package/dist/web/assets/{purebasic-BpRosM4G.js → purebasic-DbjCsd9N.js} +1 -1
- package/dist/web/assets/{python-BtKDiZEA.js → python-DP34fJ04.js} +1 -1
- package/dist/web/assets/{python-repl-BqGwrbhn.js → python-repl-DAsF8lug.js} +1 -1
- package/dist/web/assets/{q-DTqbasDl.js → q-B-Mr8NK4.js} +1 -1
- package/dist/web/assets/{qml-CCAn9OF_.js → qml-D2RzTRE8.js} +1 -1
- package/dist/web/assets/{r-DvaKyCXa.js → r-CNxht3dc.js} +1 -1
- package/dist/web/assets/{reasonml-Dm7pqqFO.js → reasonml-BIz8m5Lt.js} +1 -1
- package/dist/web/assets/{rib-BADui2EF.js → rib-CDOG6NKu.js} +1 -1
- package/dist/web/assets/{roboconf-CsItjlm1.js → roboconf-DqVn2w7s.js} +1 -1
- package/dist/web/assets/{routeros-ZrZ_SRnV.js → routeros-BZrIdAjF.js} +1 -1
- package/dist/web/assets/{rsl-vlNwAKri.js → rsl-CN4neZ32.js} +1 -1
- package/dist/web/assets/{ruby-9SnBLVsW.js → ruby-67eUaeGY.js} +1 -1
- package/dist/web/assets/{ruleslanguage-CtQ_nQiW.js → ruleslanguage-BllrpKqH.js} +1 -1
- package/dist/web/assets/{rust-CtQpLKhA.js → rust-BmYl_y-P.js} +1 -1
- package/dist/web/assets/{sas-D0L0RgJV.js → sas-Dtj8I-D_.js} +1 -1
- package/dist/web/assets/{scala-BfsyjM66.js → scala-STTUagV5.js} +1 -1
- package/dist/web/assets/{scheme-CkvpsaPD.js → scheme-Dzn6yRr6.js} +1 -1
- package/dist/web/assets/{scilab-BNiDYBJI.js → scilab-B69ssMJD.js} +1 -1
- package/dist/web/assets/{scss-CDqAjKBF.js → scss-Bgzbc2Gw.js} +1 -1
- package/dist/web/assets/{shell-BB7nmb_G.js → shell-Ch6dpVau.js} +1 -1
- package/dist/web/assets/{smali-8aIwcJmF.js → smali-CZRDhqPo.js} +1 -1
- package/dist/web/assets/{smalltalk-ZxJk1kPR.js → smalltalk-wD7uBKFk.js} +1 -1
- package/dist/web/assets/{sml-DHeme0rp.js → sml-p2YVjYuc.js} +1 -1
- package/dist/web/assets/{sqf-fbyDA_xT.js → sqf-C4iV_5wD.js} +1 -1
- package/dist/web/assets/{sql-Y9n2LL4z.js → sql-Cj4ORfKr.js} +1 -1
- package/dist/web/assets/{sql_more-BqBnqVwq.js → sql_more-1KBBvJKz.js} +1 -1
- package/dist/web/assets/{stan-DWoGMbXO.js → stan-ZkoKrhVU.js} +1 -1
- package/dist/web/assets/{stata-U7WjgYuE.js → stata-DXMcFPgB.js} +1 -1
- package/dist/web/assets/{step21-B52AdNv7.js → step21-BqaVvDvv.js} +1 -1
- package/dist/web/assets/{stylus-XZNZsBw5.js → stylus-DMSe3hbS.js} +1 -1
- package/dist/web/assets/{subunit-DyOIYHss.js → subunit-CCJaWqF4.js} +1 -1
- package/dist/web/assets/{swift-a238OOhT.js → swift-CqXQLHTU.js} +1 -1
- package/dist/web/assets/{taggerscript-CH7oi_-h.js → taggerscript-2BkD-9Ch.js} +1 -1
- package/dist/web/assets/{tap-OKBQ2xkK.js → tap-AzyE40XP.js} +1 -1
- package/dist/web/assets/{tcl-DalHBdzA.js → tcl-B4lDLW2d.js} +1 -1
- package/dist/web/assets/{thrift-6aAG_p7t.js → thrift-BuX3DrHi.js} +1 -1
- package/dist/web/assets/{tp-D31BbU8M.js → tp-w1bCBV5I.js} +1 -1
- package/dist/web/assets/{twig-aT8QDGqg.js → twig-B8GCAuLy.js} +1 -1
- package/dist/web/assets/{typescript-BWWv0BMG.js → typescript-B8NzFqKY.js} +1 -1
- package/dist/web/assets/{vala-C7ewz1gl.js → vala-P7GsRd6e.js} +1 -1
- package/dist/web/assets/{validator-Cld2RiHc.js → validator-D6Xm4Kb-.js} +1 -1
- package/dist/web/assets/{vbnet-B6JRwkbZ.js → vbnet-BBlWg7Qb.js} +1 -1
- package/dist/web/assets/{vbscript-JbReiKXr.js → vbscript-8Si4S_Xz.js} +1 -1
- package/dist/web/assets/{vbscript-html-BtKnSTQV.js → vbscript-html-BJ2ziV0x.js} +1 -1
- package/dist/web/assets/{verilog-xvt_uCmz.js → verilog-kmPQsjEw.js} +1 -1
- package/dist/web/assets/{vhdl-ZEk8lluM.js → vhdl-DYEOrfIz.js} +1 -1
- package/dist/web/assets/{vim-BLelW7fW.js → vim-BSXN1GTO.js} +1 -1
- package/dist/web/assets/{x86asm-C3F4cIIq.js → x86asm-owzZIooW.js} +1 -1
- package/dist/web/assets/{xl-BJamdhQW.js → xl-dtWQrkXy.js} +1 -1
- package/dist/web/assets/{xml-C3DlHeyt.js → xml-ChVJjG3W.js} +1 -1
- package/dist/web/assets/{xquery-_lb1K-2T.js → xquery-BsuLxDoP.js} +1 -1
- package/dist/web/assets/{yaml-D94J1POE.js → yaml-BidV7mHf.js} +1 -1
- package/dist/web/assets/{zephir-BEYLNszh.js → zephir-CtkK_7uR.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ft}from"./index-BbVBgYoN.js";var G;(function(r){r.assertEqual=n=>{};function e(n){}r.assertIs=e;function t(n){throw new Error}r.assertNever=t,r.arrayToEnum=n=>{const a={};for(const i of n)a[i]=i;return a},r.getValidEnumValues=n=>{const a=r.objectKeys(n).filter(o=>typeof n[n[o]]!="number"),i={};for(const o of a)i[o]=n[o];return r.objectValues(i)},r.objectValues=n=>r.objectKeys(n).map(function(a){return n[a]}),r.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const a=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.push(i);return a},r.find=(n,a)=>{for(const i of n)if(a(i))return i},r.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function s(n,a=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}r.joinValues=s,r.jsonStringifyReplacer=(n,a)=>typeof a=="bigint"?a.toString():a})(G||(G={}));var qr;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(qr||(qr={}));const R=G.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_e=r=>{switch(typeof r){case"undefined":return R.undefined;case"string":return R.string;case"number":return Number.isNaN(r)?R.nan:R.number;case"boolean":return R.boolean;case"function":return R.function;case"bigint":return R.bigint;case"symbol":return R.symbol;case"object":return Array.isArray(r)?R.array:r===null?R.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?R.promise:typeof Map<"u"&&r instanceof Map?R.map:typeof Set<"u"&&r instanceof Set?R.set:typeof Date<"u"&&r instanceof Date?R.date:R.object;default:return R.unknown}},y=G.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class oe extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(a){return a.message},s={_errors:[]},n=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let o=s,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(i))):o[c]=o[c]||{_errors:[]},o=o[c],l++}}};return n(this),s}static assert(e){if(!(e instanceof oe))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,G.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t=Object.create(null),s=[];for(const n of this.issues)if(n.path.length>0){const a=n.path[0];t[a]=t[a]||[],t[a].push(e(n))}else s.push(e(n));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}oe.create=r=>new oe(r);const Ve=(r,e)=>{let t;switch(r.code){case y.invalid_type:r.received===R.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case y.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,G.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:t=`Unrecognized key(s) in object: ${G.joinValues(r.keys,", ")}`;break;case y.invalid_union:t="Invalid input";break;case y.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${G.joinValues(r.options)}`;break;case y.invalid_enum_value:t=`Invalid enum value. Expected ${G.joinValues(r.options)}, received '${r.received}'`;break;case y.invalid_arguments:t="Invalid function arguments";break;case y.invalid_return_type:t="Invalid function return type";break;case y.invalid_date:t="Invalid date";break;case y.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:G.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case y.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case y.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case y.custom:t="Invalid input";break;case y.invalid_intersection_types:t="Intersection results could not be merged";break;case y.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case y.not_finite:t="Number must be finite";break;default:t=e.defaultError,G.assertNever(r)}return{message:t}};let dn=Ve;function yr(){return dn}const vr=r=>{const{data:e,path:t,errorMaps:s,issueData:n}=r,a=[...t,...n.path||[]],i={...n,path:a};if(n.message!==void 0)return{...n,path:a,message:n.message};let o="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)o=c(i,{data:e,defaultError:o}).message;return{...n,path:a,message:o}};function $(r,e){const t=yr(),s=vr({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Ve?void 0:Ve].filter(n=>!!n)});r.common.issues.push(s)}class se{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const n of t){if(n.status==="aborted")return D;n.status==="dirty"&&e.dirty(),s.push(n.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const n of t){const a=await n.key,i=await n.value;s.push({key:a,value:i})}return se.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const n of t){const{key:a,value:i}=n;if(a.status==="aborted"||i.status==="aborted")return D;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(s[a.value]=i.value)}return{status:e.value,value:s}}}const D=Object.freeze({status:"aborted"}),Ue=r=>({status:"dirty",value:r}),ie=r=>({status:"valid",value:r}),jr=r=>r.status==="aborted",Dr=r=>r.status==="dirty",Ae=r=>r.status==="valid",ot=r=>typeof Promise<"u"&&r instanceof Promise;var b;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(b||(b={}));class ye{constructor(e,t,s,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Mr=(r,e)=>{if(Ae(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new oe(r.common.issues);return this._error=t,this._error}}};function V(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:n}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(i,o)=>{const{message:l}=r;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??s??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:l??t??o.defaultError}},description:n}}class B{get description(){return this._def.description}_getType(e){return _e(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:_e(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new se,ctx:{common:e.parent.common,data:e.data,parsedType:_e(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(ot(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_e(e)},n=this._parseSync({data:e,path:s.path,parent:s});return Mr(s,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_e(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:t});return Ae(s)?{value:s.value}:{issues:t.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(s=>Ae(s)?{value:s.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_e(e)},n=this._parse({data:e,path:s.path,parent:s}),a=await(ot(n)?n:Promise.resolve(n));return Mr(s,a)}refine(e,t){const s=n=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(n):t;return this._refinement((n,a)=>{const i=e(n),o=()=>a.addIssue({code:y.custom,...s(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((s,n)=>e(s)?!0:(n.addIssue(typeof t=="function"?t(s,n):t),!1))}_refinement(e){return new Pe({schema:this,typeName:L.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return $e.create(this,this._def)}nullable(){return Le.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return me.create(this)}promise(){return Xe.create(this,this._def)}or(e){return lt.create([this,e],this._def)}and(e){return ct.create(this,e,this._def)}transform(e){return new Pe({...V(this._def),schema:this,typeName:L.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new xr({...V(this._def),innerType:this,defaultValue:t,typeName:L.ZodDefault})}brand(){return new Pn({typeName:L.ZodBranded,type:this,...V(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new wr({...V(this._def),innerType:this,catchValue:t,typeName:L.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Ir.create(this,e)}readonly(){return Rr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const fn=/^c[^\s-]{8,}$/i,hn=/^[0-9a-z]+$/,pn=/^[0-9A-HJKMNP-TV-Z]{26}$/i,mn=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,yn=/^[a-z0-9_-]{21}$/i,vn=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,gn=/^[-+]?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)?)??$/,_n=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$n="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $t;const En=/^(?:(?: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])$/,xn=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,wn=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Rn=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,In=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kn=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ks="((\\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])))",bn=new RegExp(`^${Ks}$`);function Qs(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function On(r){return new RegExp(`^${Qs(r)}$`)}function Tn(r){let e=`${Ks}T${Qs(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Sn(r,e){return!!((e==="v4"||!e)&&En.test(r)||(e==="v6"||!e)&&wn.test(r))}function An(r,e){if(!vn.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),n=JSON.parse(atob(s));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||e&&n.alg!==e)}catch{return!1}}function Nn(r,e){return!!((e==="v4"||!e)&&xn.test(r)||(e==="v6"||!e)&&Rn.test(r))}class ve extends B{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==R.string){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_type,expected:R.string,received:a.parsedType}),D}const s=new se;let n;for(const a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="max")e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,o=e.data.length<a.value;(i||o)&&(n=this._getOrReturnCtx(e,n),i?$(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&$(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),s.dirty())}else if(a.kind==="email")_n.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"email",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="emoji")$t||($t=new RegExp($n,"u")),$t.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"emoji",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="uuid")mn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"uuid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="nanoid")yn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"nanoid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid")fn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"cuid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid2")hn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"cuid2",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="ulid")pn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"ulid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),$(n,{validation:"url",code:y.invalid_string,message:a.message}),s.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"regex",code:y.invalid_string,message:a.message}),s.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),s.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),s.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),s.dirty()):a.kind==="datetime"?Tn(a).test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:"datetime",message:a.message}),s.dirty()):a.kind==="date"?bn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:"date",message:a.message}),s.dirty()):a.kind==="time"?On(a).test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:"time",message:a.message}),s.dirty()):a.kind==="duration"?gn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"duration",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="ip"?Sn(e.data,a.version)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"ip",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="jwt"?An(e.data,a.alg)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"jwt",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="cidr"?Nn(e.data,a.version)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"cidr",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="base64"?In.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"base64",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="base64url"?kn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"base64url",code:y.invalid_string,message:a.message}),s.dirty()):G.assertNever(a);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(n=>e.test(n),{validation:t,code:y.invalid_string,...b.errToObj(s)})}_addCheck(e){return new ve({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...b.errToObj(e)})}url(e){return this._addCheck({kind:"url",...b.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...b.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...b.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...b.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...b.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...b.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...b.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...b.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...b.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...b.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...b.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...b.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...b.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...b.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...b.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...b.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...b.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...b.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...b.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...b.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...b.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...b.errToObj(t)})}nonempty(e){return this.min(1,b.errToObj(e))}trim(){return new ve({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ve({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ve({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}ve.create=r=>new ve({checks:[],typeName:L.ZodString,coerce:r?.coerce??!1,...V(r)});function Cn(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,n=t>s?t:s,a=Number.parseInt(r.toFixed(n).replace(".","")),i=Number.parseInt(e.toFixed(n).replace(".",""));return a%i/10**n}class Ne extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==R.number){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_type,expected:R.number,received:a.parsedType}),D}let s;const n=new se;for(const a of this._def.checks)a.kind==="int"?G.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:y.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="multipleOf"?Cn(e.data,a.value)!==0&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:y.not_finite,message:a.message}),n.dirty()):G.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,b.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b.toString(t))}setLimit(e,t,s,n){return new Ne({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:b.toString(n)}]})}_addCheck(e){return new Ne({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:b.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:b.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:b.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:b.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:b.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:b.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:b.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:b.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&G.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Ne.create=r=>new Ne({checks:[],typeName:L.ZodNumber,coerce:r?.coerce||!1,...V(r)});class Fe extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==R.bigint)return this._getInvalidInput(e);let s;const n=new se;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):G.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return $(t,{code:y.invalid_type,expected:R.bigint,received:t.parsedType}),D}gte(e,t){return this.setLimit("min",e,!0,b.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b.toString(t))}setLimit(e,t,s,n){return new Fe({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:b.toString(n)}]})}_addCheck(e){return new Fe({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:b.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:b.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:b.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:b.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Fe.create=r=>new Fe({checks:[],typeName:L.ZodBigInt,coerce:r?.coerce??!1,...V(r)});class gr extends B{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==R.boolean){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.boolean,received:s.parsedType}),D}return ie(e.data)}}gr.create=r=>new gr({typeName:L.ZodBoolean,coerce:r?.coerce||!1,...V(r)});class ut extends B{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==R.date){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_type,expected:R.date,received:a.parsedType}),D}if(Number.isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_date}),D}const s=new se;let n;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),s.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):G.assertNever(a);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ut({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:b.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:b.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}ut.create=r=>new ut({checks:[],coerce:r?.coerce||!1,typeName:L.ZodDate,...V(r)});class Ur extends B{_parse(e){if(this._getType(e)!==R.symbol){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.symbol,received:s.parsedType}),D}return ie(e.data)}}Ur.create=r=>new Ur({typeName:L.ZodSymbol,...V(r)});class _r extends B{_parse(e){if(this._getType(e)!==R.undefined){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.undefined,received:s.parsedType}),D}return ie(e.data)}}_r.create=r=>new _r({typeName:L.ZodUndefined,...V(r)});class Zr extends B{_parse(e){if(this._getType(e)!==R.null){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.null,received:s.parsedType}),D}return ie(e.data)}}Zr.create=r=>new Zr({typeName:L.ZodNull,...V(r)});class Be extends B{constructor(){super(...arguments),this._any=!0}_parse(e){return ie(e.data)}}Be.create=r=>new Be({typeName:L.ZodAny,...V(r)});class Se extends B{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ie(e.data)}}Se.create=r=>new Se({typeName:L.ZodUnknown,...V(r)});class Ee extends B{_parse(e){const t=this._getOrReturnCtx(e);return $(t,{code:y.invalid_type,expected:R.never,received:t.parsedType}),D}}Ee.create=r=>new Ee({typeName:L.ZodNever,...V(r)});class zr extends B{_parse(e){if(this._getType(e)!==R.undefined){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.void,received:s.parsedType}),D}return ie(e.data)}}zr.create=r=>new zr({typeName:L.ZodVoid,...V(r)});class me extends B{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),n=this._def;if(t.parsedType!==R.array)return $(t,{code:y.invalid_type,expected:R.array,received:t.parsedType}),D;if(n.exactLength!==null){const i=t.data.length>n.exactLength.value,o=t.data.length<n.exactLength.value;(i||o)&&($(t,{code:i?y.too_big:y.too_small,minimum:o?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&t.data.length<n.minLength.value&&($(t,{code:y.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&t.data.length>n.maxLength.value&&($(t,{code:y.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>n.type._parseAsync(new ye(t,i,t.path,o)))).then(i=>se.mergeArray(s,i));const a=[...t.data].map((i,o)=>n.type._parseSync(new ye(t,i,t.path,o)));return se.mergeArray(s,a)}get element(){return this._def.type}min(e,t){return new me({...this._def,minLength:{value:e,message:b.toString(t)}})}max(e,t){return new me({...this._def,maxLength:{value:e,message:b.toString(t)}})}length(e,t){return new me({...this._def,exactLength:{value:e,message:b.toString(t)}})}nonempty(e){return this.min(1,e)}}me.create=(r,e)=>new me({type:r,minLength:null,maxLength:null,exactLength:null,typeName:L.ZodArray,...V(e)});function Te(r){if(r instanceof ee){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=$e.create(Te(s))}return new ee({...r._def,shape:()=>e})}else return r instanceof me?new me({...r._def,type:Te(r.element)}):r instanceof $e?$e.create(Te(r.unwrap())):r instanceof Le?Le.create(Te(r.unwrap())):r instanceof ge?ge.create(r.items.map(e=>Te(e))):r}class ee extends B{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=G.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==R.object){const c=this._getOrReturnCtx(e);return $(c,{code:y.invalid_type,expected:R.object,received:c.parsedType}),D}const{status:s,ctx:n}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ee&&this._def.unknownKeys==="strip"))for(const c in n.data)i.includes(c)||o.push(c);const l=[];for(const c of i){const u=a[c],d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ye(n,d,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Ee){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict")o.length>0&&($(n,{code:y.unrecognized_keys,keys:o}),s.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of o){const d=n.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ye(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>se.mergeObjectSync(s,c)):se.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(e){return b.errToObj,new ee({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{const n=this._def.errorMap?.(t,s).message??s.defaultError;return t.code==="unrecognized_keys"?{message:b.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:L.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){const t={};for(const s of G.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new ee({...this._def,shape:()=>t})}omit(e){const t={};for(const s of G.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new ee({...this._def,shape:()=>t})}deepPartial(){return Te(this)}partial(e){const t={};for(const s of G.objectKeys(this.shape)){const n=this.shape[s];e&&!e[s]?t[s]=n:t[s]=n.optional()}return new ee({...this._def,shape:()=>t})}required(e){const t={};for(const s of G.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof $e;)a=a._def.innerType;t[s]=a}return new ee({...this._def,shape:()=>t})}keyof(){return en(G.objectKeys(this.shape))}}ee.create=(r,e)=>new ee({shape:()=>r,unknownKeys:"strip",catchall:Ee.create(),typeName:L.ZodObject,...V(e)});ee.strictCreate=(r,e)=>new ee({shape:()=>r,unknownKeys:"strict",catchall:Ee.create(),typeName:L.ZodObject,...V(e)});ee.lazycreate=(r,e)=>new ee({shape:r,unknownKeys:"strip",catchall:Ee.create(),typeName:L.ZodObject,...V(e)});class lt extends B{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function n(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new oe(o.ctx.common.issues));return $(t,{code:y.invalid_union,unionErrors:i}),D}if(t.common.async)return Promise.all(s.map(async a=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);{let a;const i=[];for(const l of s){const c={...t,common:{...t.common,issues:[]},parent:null},u=l._parseSync({data:t.data,path:t.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(l=>new oe(l));return $(t,{code:y.invalid_union,unionErrors:o}),D}}get options(){return this._def.options}}lt.create=(r,e)=>new lt({options:r,typeName:L.ZodUnion,...V(e)});function $r(r,e){const t=_e(r),s=_e(e);if(r===e)return{valid:!0,data:r};if(t===R.object&&s===R.object){const n=G.objectKeys(e),a=G.objectKeys(r).filter(o=>n.indexOf(o)!==-1),i={...r,...e};for(const o of a){const l=$r(r[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(t===R.array&&s===R.array){if(r.length!==e.length)return{valid:!1};const n=[];for(let a=0;a<r.length;a++){const i=r[a],o=e[a],l=$r(i,o);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return t===R.date&&s===R.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class ct extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),n=(a,i)=>{if(jr(a)||jr(i))return D;const o=$r(a.value,i.value);return o.valid?((Dr(a)||Dr(i))&&t.dirty(),{status:t.value,value:o.data}):($(s,{code:y.invalid_intersection_types}),D)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,i])=>n(a,i)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ct.create=(r,e,t)=>new ct({left:r,right:e,typeName:L.ZodIntersection,...V(t)});class ge extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.array)return $(s,{code:y.invalid_type,expected:R.array,received:s.parsedType}),D;if(s.data.length<this._def.items.length)return $(s,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),D;!this._def.rest&&s.data.length>this._def.items.length&&($(s,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...s.data].map((i,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ye(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(a).then(i=>se.mergeArray(t,i)):se.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new ge({...this._def,rest:e})}}ge.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ge({items:r,typeName:L.ZodTuple,rest:null,...V(e)})};class dt extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.object)return $(s,{code:y.invalid_type,expected:R.object,received:s.parsedType}),D;const n=[],a=this._def.keyType,i=this._def.valueType;for(const o in s.data)n.push({key:a._parse(new ye(s,o,s.path,o)),value:i._parse(new ye(s,s.data[o],s.path,o)),alwaysSet:o in s.data});return s.common.async?se.mergeObjectAsync(t,n):se.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,s){return t instanceof B?new dt({keyType:e,valueType:t,typeName:L.ZodRecord,...V(s)}):new dt({keyType:ve.create(),valueType:e,typeName:L.ZodRecord,...V(t)})}}class Vr extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.map)return $(s,{code:y.invalid_type,expected:R.map,received:s.parsedType}),D;const n=this._def.keyType,a=this._def.valueType,i=[...s.data.entries()].map(([o,l],c)=>({key:n._parse(new ye(s,o,s.path,[c,"key"])),value:a._parse(new ye(s,l,s.path,[c,"value"]))}));if(s.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return D;(c.status==="dirty"||u.status==="dirty")&&t.dirty(),o.set(c.value,u.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return D;(c.status==="dirty"||u.status==="dirty")&&t.dirty(),o.set(c.value,u.value)}return{status:t.value,value:o}}}}Vr.create=(r,e,t)=>new Vr({valueType:e,keyType:r,typeName:L.ZodMap,...V(t)});class Ge extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.set)return $(s,{code:y.invalid_type,expected:R.set,received:s.parsedType}),D;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&($(s,{code:y.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&($(s,{code:y.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const a=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return D;u.status==="dirty"&&t.dirty(),c.add(u.value)}return{status:t.value,value:c}}const o=[...s.data.values()].map((l,c)=>a._parse(new ye(s,l,s.path,c)));return s.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,t){return new Ge({...this._def,minSize:{value:e,message:b.toString(t)}})}max(e,t){return new Ge({...this._def,maxSize:{value:e,message:b.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ge.create=(r,e)=>new Ge({valueType:r,minSize:null,maxSize:null,typeName:L.ZodSet,...V(e)});class Ze extends B{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.function)return $(t,{code:y.invalid_type,expected:R.function,received:t.parsedType}),D;function s(o,l){return vr({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,yr(),Ve].filter(c=>!!c),issueData:{code:y.invalid_arguments,argumentsError:l}})}function n(o,l){return vr({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,yr(),Ve].filter(c=>!!c),issueData:{code:y.invalid_return_type,returnTypeError:l}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Xe){const o=this;return ie(async function(...l){const c=new oe([]),u=await o._def.args.parseAsync(l,a).catch(h=>{throw c.addIssue(s(l,h)),c}),d=await Reflect.apply(i,this,u);return await o._def.returns._def.type.parseAsync(d,a).catch(h=>{throw c.addIssue(n(d,h)),c})})}else{const o=this;return ie(function(...l){const c=o._def.args.safeParse(l,a);if(!c.success)throw new oe([s(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=o._def.returns.safeParse(u,a);if(!d.success)throw new oe([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ze({...this._def,args:ge.create(e).rest(Se.create())})}returns(e){return new Ze({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,s){return new Ze({args:e||ge.create([]).rest(Se.create()),returns:t||Se.create(),typeName:L.ZodFunction,...V(s)})}}class Fr extends B{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Fr.create=(r,e)=>new Fr({getter:r,typeName:L.ZodLazy,...V(e)});class Er extends B{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return $(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),D}return{status:"valid",value:e.data}}get value(){return this._def.value}}Er.create=(r,e)=>new Er({value:r,typeName:L.ZodLiteral,...V(e)});function en(r,e){return new Ce({values:r,typeName:L.ZodEnum,...V(e)})}class Ce extends B{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return $(t,{expected:G.joinValues(s),received:t.parsedType,code:y.invalid_type}),D}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return $(t,{received:t.data,code:y.invalid_enum_value,options:s}),D}return ie(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ce.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ce.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}Ce.create=en;class Br extends B{_parse(e){const t=G.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==R.string&&s.parsedType!==R.number){const n=G.objectValues(t);return $(s,{expected:G.joinValues(n),received:s.parsedType,code:y.invalid_type}),D}if(this._cache||(this._cache=new Set(G.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const n=G.objectValues(t);return $(s,{received:s.data,code:y.invalid_enum_value,options:n}),D}return ie(e.data)}get enum(){return this._def.values}}Br.create=(r,e)=>new Br({values:r,typeName:L.ZodNativeEnum,...V(e)});class Xe extends B{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.promise&&t.common.async===!1)return $(t,{code:y.invalid_type,expected:R.promise,received:t.parsedType}),D;const s=t.parsedType===R.promise?t.data:Promise.resolve(t.data);return ie(s.then(n=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Xe.create=(r,e)=>new Xe({type:r,typeName:L.ZodPromise,...V(e)});class Pe extends B{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===L.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),n=this._def.effect||null,a={addIssue:i=>{$(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),n.type==="preprocess"){const i=n.transform(s.data,a);if(s.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return D;const l=await this._def.schema._parseAsync({data:o,path:s.path,parent:s});return l.status==="aborted"?D:l.status==="dirty"||t.value==="dirty"?Ue(l.value):l});{if(t.value==="aborted")return D;const o=this._def.schema._parseSync({data:i,path:s.path,parent:s});return o.status==="aborted"?D:o.status==="dirty"||t.value==="dirty"?Ue(o.value):o}}if(n.type==="refinement"){const i=o=>{const l=n.refinement(o,a);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?D:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>o.status==="aborted"?D:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(n.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ae(i))return D;const o=n.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>Ae(i)?Promise.resolve(n.transform(i.value,a)).then(o=>({status:t.value,value:o})):D);G.assertNever(n)}}Pe.create=(r,e,t)=>new Pe({schema:r,typeName:L.ZodEffects,effect:e,...V(t)});Pe.createWithPreprocess=(r,e,t)=>new Pe({schema:e,effect:{type:"preprocess",transform:r},typeName:L.ZodEffects,...V(t)});class $e extends B{_parse(e){return this._getType(e)===R.undefined?ie(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$e.create=(r,e)=>new $e({innerType:r,typeName:L.ZodOptional,...V(e)});class Le extends B{_parse(e){return this._getType(e)===R.null?ie(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Le.create=(r,e)=>new Le({innerType:r,typeName:L.ZodNullable,...V(e)});class xr extends B{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===R.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}xr.create=(r,e)=>new xr({innerType:r,typeName:L.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...V(e)});class wr extends B{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ot(n)?n.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new oe(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new oe(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}wr.create=(r,e)=>new wr({innerType:r,typeName:L.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...V(e)});class Gr extends B{_parse(e){if(this._getType(e)!==R.nan){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.nan,received:s.parsedType}),D}return{status:"valid",value:e.data}}}Gr.create=r=>new Gr({typeName:L.ZodNaN,...V(r)});class Pn extends B{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ir extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?D:a.status==="dirty"?(t.dirty(),Ue(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?D:n.status==="dirty"?(t.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(e,t){return new Ir({in:e,out:t,typeName:L.ZodPipeline})}}class Rr extends B{_parse(e){const t=this._def.innerType._parse(e),s=n=>(Ae(n)&&(n.value=Object.freeze(n.value)),n);return ot(t)?t.then(n=>s(n)):s(t)}unwrap(){return this._def.innerType}}Rr.create=(r,e)=>new Rr({innerType:r,typeName:L.ZodReadonly,...V(e)});function Xr(r,e){const t=typeof r=="function"?r(e):typeof r=="string"?{message:r}:r;return typeof t=="string"?{message:t}:t}function Ln(r,e={},t){return r?Be.create().superRefine((s,n)=>{const a=r(s);if(a instanceof Promise)return a.then(i=>{if(!i){const o=Xr(e,s),l=o.fatal??t??!0;n.addIssue({code:"custom",...o,fatal:l})}});if(!a){const i=Xr(e,s),o=i.fatal??t??!0;n.addIssue({code:"custom",...i,fatal:o})}}):Be.create()}var L;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(L||(L={}));const oi=(r,e={message:`Input not instance of ${r.name}`})=>Ln(t=>t instanceof r,e),ui=ve.create,li=Ne.create,ci=gr.create,di=_r.create,fi=Be.create;Se.create;Ee.create;const hi=me.create,pi=ee.create,mi=lt.create;ct.create;ge.create;const yi=dt.create,vi=Ze.create,gi=Er.create,_i=Ce.create,$i=Xe.create;$e.create;Le.create;var Et,Hr;function qn(){return Hr||(Hr=1,Et=function(r,e){if(typeof r!="string")throw new TypeError("Expected a string");return e=typeof e>"u"?"_":e,r.replace(/([a-z\d])([A-Z])/g,"$1"+e+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+e+"$2").toLowerCase()}),Et}var jn=qn();const Ei=ft(jn);var et={exports:{}},Wr;function Dn(){if(Wr)return et.exports;Wr=1;const r=/[\p{Lu}]/u,e=/[\p{Ll}]/u,t=/^[\p{Lu}](?![\p{Lu}])/gu,s=/([\p{Alpha}\p{N}_]|$)/u,n=/[_.\- ]+/,a=new RegExp("^"+n.source),i=new RegExp(n.source+s.source,"gu"),o=new RegExp("\\d+"+s.source,"gu"),l=(f,h,v)=>{let p=!1,m=!1,k=!1;for(let Z=0;Z<f.length;Z++){const x=f[Z];p&&r.test(x)?(f=f.slice(0,Z)+"-"+f.slice(Z),p=!1,k=m,m=!0,Z++):m&&k&&e.test(x)?(f=f.slice(0,Z-1)+"-"+f.slice(Z-1),k=m,m=!1,p=!0):(p=h(x)===x&&v(x)!==x,k=m,m=v(x)===x&&h(x)!==x)}return f},c=(f,h)=>(t.lastIndex=0,f.replace(t,v=>h(v))),u=(f,h)=>(i.lastIndex=0,o.lastIndex=0,f.replace(i,(v,p)=>h(p)).replace(o,v=>h(v))),d=(f,h)=>{if(!(typeof f=="string"||Array.isArray(f)))throw new TypeError("Expected the input to be `string | string[]`");if(h={pascalCase:!1,preserveConsecutiveUppercase:!1,...h},Array.isArray(f)?f=f.map(k=>k.trim()).filter(k=>k.length).join("-"):f=f.trim(),f.length===0)return"";const v=h.locale===!1?k=>k.toLowerCase():k=>k.toLocaleLowerCase(h.locale),p=h.locale===!1?k=>k.toUpperCase():k=>k.toLocaleUpperCase(h.locale);return f.length===1?h.pascalCase?p(f):v(f):(f!==v(f)&&(f=l(f,v,p)),f=f.replace(a,""),h.preserveConsecutiveUppercase?f=c(f,v):f=v(f),h.pascalCase&&(f=p(f.charAt(0))+f.slice(1)),u(f,p))};return et.exports=d,et.exports.default=d,et.exports}var Mn=Dn();const xi=ft(Mn),Un=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Zn(r){return typeof r=="string"&&Un.test(r)}function zn(r){if(!Zn(r))throw TypeError("Invalid UUID");var e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var re=[];for(var xt=0;xt<256;++xt)re.push((xt+256).toString(16).slice(1));function kr(r,e=0){return(re[r[e+0]]+re[r[e+1]]+re[r[e+2]]+re[r[e+3]]+"-"+re[r[e+4]]+re[r[e+5]]+"-"+re[r[e+6]]+re[r[e+7]]+"-"+re[r[e+8]]+re[r[e+9]]+"-"+re[r[e+10]]+re[r[e+11]]+re[r[e+12]]+re[r[e+13]]+re[r[e+14]]+re[r[e+15]]).toLowerCase()}var tt,Vn=new Uint8Array(16);function tn(){if(!tt&&(tt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tt(Vn)}function Fn(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}var Bn="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Gn="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xn(r,e,t){function s(n,a,i,o){var l;if(typeof n=="string"&&(n=Fn(n)),typeof a=="string"&&(a=zn(a)),((l=a)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+n.length);if(c.set(a),c.set(n,a.length),c=t(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,i){o=o||0;for(var u=0;u<16;++u)i[o+u]=c[u];return i}return kr(c)}try{s.name=r}catch{}return s.DNS=Bn,s.URL=Gn,s}var Hn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Yr={randomUUID:Hn};function wi(r,e,t){if(Yr.randomUUID&&!r)return Yr.randomUUID();r=r||{};var s=r.random||(r.rng||tn)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,kr(s)}function Wn(r,e,t,s){switch(r){case 0:return e&t^~e&s;case 1:return e^t^s;case 2:return e&t^e&s^t&s;case 3:return e^t^s}}function wt(r,e){return r<<e|r>>>32-e}function Yn(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var s=unescape(encodeURIComponent(r));r=[];for(var n=0;n<s.length;++n)r.push(s.charCodeAt(n))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var a=r.length/4+2,i=Math.ceil(a/16),o=new Array(i),l=0;l<i;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=r[l*64+u*4]<<24|r[l*64+u*4+1]<<16|r[l*64+u*4+2]<<8|r[l*64+u*4+3];o[l]=c}o[i-1][14]=(r.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(r.length-1)*8&4294967295;for(var d=0;d<i;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=o[d][h];for(var v=16;v<80;++v)f[v]=wt(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=t[0],m=t[1],k=t[2],Z=t[3],x=t[4],Y=0;Y<80;++Y){var J=Math.floor(Y/20),H=wt(p,5)+Wn(J,m,k,Z)+x+e[J]+f[Y]>>>0;x=Z,Z=k,k=wt(m,30)>>>0,m=p,p=H}t[0]=t[0]+p>>>0,t[1]=t[1]+m>>>0,t[2]=t[2]+k>>>0,t[3]=t[3]+Z>>>0,t[4]=t[4]+x>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var Ri=Xn("v5",80,Yn),Jr=null,Kr=null,ue=0;function Ii(r,e,t){r=r||{};var s=0,n=new Uint8Array(16),a=r.random||(r.rng||tn)(),i=r.msecs!==void 0?r.msecs:Date.now(),o=r.seq!==void 0?r.seq:null,l=Kr,c=Jr;return i>ue&&r.msecs===void 0&&(ue=i,o!==null&&(l=null,c=null)),o!==null&&(o>2147483647&&(o=2147483647),l=o>>>19&4095,c=o&524287),(l===null||c===null)&&(l=a[6]&127,l=l<<8|a[7],c=a[8]&63,c=c<<8|a[9],c=c<<5|a[10]>>>3),i+1e4>ue&&o===null?++c>524287&&(c=0,++l>4095&&(l=0,ue++)):ue=i,Kr=l,Jr=c,n[s++]=ue/1099511627776&255,n[s++]=ue/4294967296&255,n[s++]=ue/16777216&255,n[s++]=ue/65536&255,n[s++]=ue/256&255,n[s++]=ue&255,n[s++]=l>>>4&15|112,n[s++]=l&255,n[s++]=c>>>13&63|128,n[s++]=c>>>5&255,n[s++]=c<<3&255|a[10]&7,n[s++]=a[11],n[s++]=a[12],n[s++]=a[13],n[s++]=a[14],n[s++]=a[15],kr(n)}var rt={},Rt={exports:{}},Qr;function Jn(){return Qr||(Qr=1,(function(r){var e=Object.prototype.hasOwnProperty,t="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(t=!1));function n(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new n(u,d||l,f),v=t?t+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,l._eventsCount++),l}function i(l,c){--l._eventsCount===0?l._events=new s:delete l._events[c]}function o(){this._events=new s,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)e.call(u,d)&&c.push(t?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},o.prototype.listeners=function(c){var u=t?t+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,v=new Array(h);f<h;f++)v[f]=d[f].fn;return v},o.prototype.listenerCount=function(c){var u=t?t+c:c,d=this._events[u];return d?d.fn?1:d.length:0},o.prototype.emit=function(c,u,d,f,h,v){var p=t?t+c:c;if(!this._events[p])return!1;var m=this._events[p],k=arguments.length,Z,x;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),k){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,d),!0;case 4:return m.fn.call(m.context,u,d,f),!0;case 5:return m.fn.call(m.context,u,d,f,h),!0;case 6:return m.fn.call(m.context,u,d,f,h,v),!0}for(x=1,Z=new Array(k-1);x<k;x++)Z[x-1]=arguments[x];m.fn.apply(m.context,Z)}else{var Y=m.length,J;for(x=0;x<Y;x++)switch(m[x].once&&this.removeListener(c,m[x].fn,void 0,!0),k){case 1:m[x].fn.call(m[x].context);break;case 2:m[x].fn.call(m[x].context,u);break;case 3:m[x].fn.call(m[x].context,u,d);break;case 4:m[x].fn.call(m[x].context,u,d,f);break;default:if(!Z)for(J=1,Z=new Array(k-1);J<k;J++)Z[J-1]=arguments[J];m[x].fn.apply(m[x].context,Z)}}return!0},o.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},o.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},o.prototype.removeListener=function(c,u,d,f){var h=t?t+c:c;if(!this._events[h])return this;if(!u)return i(this,h),this;var v=this._events[h];if(v.fn)v.fn===u&&(!f||v.once)&&(!d||v.context===d)&&i(this,h);else{for(var p=0,m=[],k=v.length;p<k;p++)(v[p].fn!==u||f&&!v[p].once||d&&v[p].context!==d)&&m.push(v[p]);m.length?this._events[h]=m.length===1?m[0]:m:i(this,h)}return this},o.prototype.removeAllListeners=function(c){var u;return c?(u=t?t+c:c,this._events[u]&&i(this,u)):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,r.exports=o})(Rt)),Rt.exports}var Me={exports:{}},It,es;function Kn(){return es||(es=1,It=(r,e)=>(e=e||(()=>{}),r.then(t=>new Promise(s=>{s(e())}).then(()=>t),t=>new Promise(s=>{s(e())}).then(()=>{throw t})))),It}var ts;function Qn(){if(ts)return Me.exports;ts=1;const r=Kn();class e extends Error{constructor(n){super(n),this.name="TimeoutError"}}const t=(s,n,a)=>new Promise((i,o)=>{if(typeof n!="number"||n<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(n===1/0){i(s);return}const l=setTimeout(()=>{if(typeof a=="function"){try{i(a())}catch(d){o(d)}return}const c=typeof a=="string"?a:`Promise timed out after ${n} milliseconds`,u=a instanceof Error?a:new e(c);typeof s.cancel=="function"&&s.cancel(),o(u)},n);r(s.then(i,o),()=>{clearTimeout(l)})});return Me.exports=t,Me.exports.default=t,Me.exports.TimeoutError=e,Me.exports}var st={},nt={},rs;function ea(){if(rs)return nt;rs=1,Object.defineProperty(nt,"__esModule",{value:!0});function r(e,t,s){let n=0,a=e.length;for(;a>0;){const i=a/2|0;let o=n+i;s(e[o],t)<=0?(n=++o,a-=i+1):a=i}return n}return nt.default=r,nt}var ss;function ta(){if(ss)return st;ss=1,Object.defineProperty(st,"__esModule",{value:!0});const r=ea();class e{constructor(){this._queue=[]}enqueue(s,n){n=Object.assign({priority:0},n);const a={priority:n.priority,run:s};if(this.size&&this._queue[this.size-1].priority>=n.priority){this._queue.push(a);return}const i=r.default(this._queue,a,(o,l)=>l.priority-o.priority);this._queue.splice(i,0,a)}dequeue(){const s=this._queue.shift();return s?.run}filter(s){return this._queue.filter(n=>n.priority===s.priority).map(n=>n.run)}get size(){return this._queue.length}}return st.default=e,st}var ns;function ra(){if(ns)return rt;ns=1,Object.defineProperty(rt,"__esModule",{value:!0});const r=Jn(),e=Qn(),t=ta(),s=()=>{},n=new e.TimeoutError;class a extends r{constructor(o){var l,c,u,d;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=s,this._resolveIdle=s,o=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:t.default},o),!(typeof o.intervalCap=="number"&&o.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(c=(l=o.intervalCap)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""}\` (${typeof o.intervalCap})`);if(o.interval===void 0||!(Number.isFinite(o.interval)&&o.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(d=(u=o.interval)===null||u===void 0?void 0:u.toString())!==null&&d!==void 0?d:""}\` (${typeof o.interval})`);this._carryoverConcurrencyCount=o.carryoverConcurrencyCount,this._isIntervalIgnored=o.intervalCap===1/0||o.interval===0,this._intervalCap=o.intervalCap,this._interval=o.interval,this._queue=new o.queueClass,this._queueClass=o.queueClass,this.concurrency=o.concurrency,this._timeout=o.timeout,this._throwOnTimeout=o.throwOnTimeout===!0,this._isPaused=o.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=s,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=s,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const o=Date.now();if(this._intervalId===void 0){const l=this._intervalEnd-o;if(l<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},l)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const o=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const l=this._queue.dequeue();return l?(this.emit("active"),l(),o&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(o){if(!(typeof o=="number"&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);this._concurrency=o,this._processQueue()}async add(o,l={}){return new Promise((c,u)=>{const d=async()=>{this._pendingCount++,this._intervalCount++;try{const f=this._timeout===void 0&&l.timeout===void 0?o():e.default(Promise.resolve(o()),l.timeout===void 0?this._timeout:l.timeout,()=>{(l.throwOnTimeout===void 0?this._throwOnTimeout:l.throwOnTimeout)&&u(n)});c(await f)}catch(f){u(f)}this._next()};this._queue.enqueue(d,l),this._tryToStartAnother(),this.emit("add")})}async addAll(o,l){return Promise.all(o.map(async c=>this.add(c,l)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(o=>{const l=this._resolveEmpty;this._resolveEmpty=()=>{l(),o()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(o=>{const l=this._resolveIdle;this._resolveIdle=()=>{l(),o()}})}get size(){return this._queue.size}sizeBy(o){return this._queue.filter(o).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(o){this._timeout=o}}return rt.default=a,rt}var sa=ra();const ki=ft(sa);var at={exports:{}},kt,as;function ht(){if(as)return kt;as=1;const r="2.0.0",e=256,t=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,n=e-6;return kt={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},kt}var bt,is;function pt(){if(is)return bt;is=1;var r={};return bt=typeof process=="object"&&r&&r.NODE_DEBUG&&/\bsemver\b/i.test(r.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{},bt}var os;function He(){return os||(os=1,(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=ht(),a=pt();e=r.exports={};const i=e.re=[],o=e.safeRe=[],l=e.src=[],c=e.safeSrc=[],u=e.t={};let d=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",n],[f,s]],v=m=>{for(const[k,Z]of h)m=m.split(`${k}*`).join(`${k}{0,${Z}}`).split(`${k}+`).join(`${k}{1,${Z}}`);return m},p=(m,k,Z)=>{const x=v(k),Y=d++;a(m,Y,k),u[m]=Y,l[Y]=k,c[Y]=x,i[Y]=new RegExp(k,Z?"g":void 0),o[Y]=new RegExp(x,Z?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${f}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),p("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("COERCERTLFULL",l[u.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(at,at.exports)),at.exports}var Ot,us;function br(){if(us)return Ot;us=1;const r=Object.freeze({loose:!0}),e=Object.freeze({});return Ot=s=>s?typeof s!="object"?r:s:e,Ot}var Tt,ls;function rn(){if(ls)return Tt;ls=1;const r=/^[0-9]+$/,e=(s,n)=>{if(typeof s=="number"&&typeof n=="number")return s===n?0:s<n?-1:1;const a=r.test(s),i=r.test(n);return a&&i&&(s=+s,n=+n),s===n?0:a&&!i?-1:i&&!a?1:s<n?-1:1};return Tt={compareIdentifiers:e,rcompareIdentifiers:(s,n)=>e(n,s)},Tt}var St,cs;function ne(){if(cs)return St;cs=1;const r=pt(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:t}=ht(),{safeRe:s,t:n}=He(),a=br(),{compareIdentifiers:i}=rn();class o{constructor(c,u){if(u=a(u),c instanceof o){if(c.loose===!!u.loose&&c.includePrerelease===!!u.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);r("SemVer",c,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const d=c.trim().match(u.loose?s[n.LOOSE]:s[n.FULL]);if(!d)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>t||this.major<0)throw new TypeError("Invalid major version");if(this.minor>t||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>t||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const h=+f;if(h>=0&&h<t)return h}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(r("SemVer.compare",this.version,this.options,c),!(c instanceof o)){if(typeof c=="string"&&c===this.version)return 0;c=new o(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof o||(c=new o(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof o||(c=new o(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let u=0;do{const d=this.prerelease[u],f=c.prerelease[u];if(r("prerelease compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++u)}compareBuild(c){c instanceof o||(c=new o(c,this.options));let u=0;do{const d=this.build[u],f=c.build[u];if(r("build compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++u)}inc(c,u,d){if(c.startsWith("pre")){if(!u&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const f=`-${u}`.match(this.options.loose?s[n.PRERELEASELOOSE]:s[n.PRERELEASE]);if(!f||f[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,d),this.inc("pre",u,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,d),this.inc("pre",u,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(u===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(u){let h=[u,f];d===!1&&(h=[u]),i(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return St=o,St}var At,ds;function qe(){if(ds)return At;ds=1;const r=ne();return At=(t,s,n=!1)=>{if(t instanceof r)return t;try{return new r(t,s)}catch(a){if(!n)return null;throw a}},At}var Nt,fs;function na(){if(fs)return Nt;fs=1;const r=qe();return Nt=(t,s)=>{const n=r(t,s);return n?n.version:null},Nt}var Ct,hs;function aa(){if(hs)return Ct;hs=1;const r=qe();return Ct=(t,s)=>{const n=r(t.trim().replace(/^[=v]+/,""),s);return n?n.version:null},Ct}var Pt,ps;function ia(){if(ps)return Pt;ps=1;const r=ne();return Pt=(t,s,n,a,i)=>{typeof n=="string"&&(i=a,a=n,n=void 0);try{return new r(t instanceof r?t.version:t,n).inc(s,a,i).version}catch{return null}},Pt}var Lt,ms;function oa(){if(ms)return Lt;ms=1;const r=qe();return Lt=(t,s)=>{const n=r(t,null,!0),a=r(s,null,!0),i=n.compare(a);if(i===0)return null;const o=i>0,l=o?n:a,c=o?a:n,u=!!l.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0)return c.minor&&!c.patch?"minor":"patch"}const f=u?"pre":"";return n.major!==a.major?f+"major":n.minor!==a.minor?f+"minor":n.patch!==a.patch?f+"patch":"prerelease"},Lt}var qt,ys;function ua(){if(ys)return qt;ys=1;const r=ne();return qt=(t,s)=>new r(t,s).major,qt}var jt,vs;function la(){if(vs)return jt;vs=1;const r=ne();return jt=(t,s)=>new r(t,s).minor,jt}var Dt,gs;function ca(){if(gs)return Dt;gs=1;const r=ne();return Dt=(t,s)=>new r(t,s).patch,Dt}var Mt,_s;function da(){if(_s)return Mt;_s=1;const r=qe();return Mt=(t,s)=>{const n=r(t,s);return n&&n.prerelease.length?n.prerelease:null},Mt}var Ut,$s;function ce(){if($s)return Ut;$s=1;const r=ne();return Ut=(t,s,n)=>new r(t,n).compare(new r(s,n)),Ut}var Zt,Es;function fa(){if(Es)return Zt;Es=1;const r=ce();return Zt=(t,s,n)=>r(s,t,n),Zt}var zt,xs;function ha(){if(xs)return zt;xs=1;const r=ce();return zt=(t,s)=>r(t,s,!0),zt}var Vt,ws;function Or(){if(ws)return Vt;ws=1;const r=ne();return Vt=(t,s,n)=>{const a=new r(t,n),i=new r(s,n);return a.compare(i)||a.compareBuild(i)},Vt}var Ft,Rs;function pa(){if(Rs)return Ft;Rs=1;const r=Or();return Ft=(t,s)=>t.sort((n,a)=>r(n,a,s)),Ft}var Bt,Is;function ma(){if(Is)return Bt;Is=1;const r=Or();return Bt=(t,s)=>t.sort((n,a)=>r(a,n,s)),Bt}var Gt,ks;function mt(){if(ks)return Gt;ks=1;const r=ce();return Gt=(t,s,n)=>r(t,s,n)>0,Gt}var Xt,bs;function Tr(){if(bs)return Xt;bs=1;const r=ce();return Xt=(t,s,n)=>r(t,s,n)<0,Xt}var Ht,Os;function sn(){if(Os)return Ht;Os=1;const r=ce();return Ht=(t,s,n)=>r(t,s,n)===0,Ht}var Wt,Ts;function nn(){if(Ts)return Wt;Ts=1;const r=ce();return Wt=(t,s,n)=>r(t,s,n)!==0,Wt}var Yt,Ss;function Sr(){if(Ss)return Yt;Ss=1;const r=ce();return Yt=(t,s,n)=>r(t,s,n)>=0,Yt}var Jt,As;function Ar(){if(As)return Jt;As=1;const r=ce();return Jt=(t,s,n)=>r(t,s,n)<=0,Jt}var Kt,Ns;function an(){if(Ns)return Kt;Ns=1;const r=sn(),e=nn(),t=mt(),s=Sr(),n=Tr(),a=Ar();return Kt=(o,l,c,u)=>{switch(l){case"===":return typeof o=="object"&&(o=o.version),typeof c=="object"&&(c=c.version),o===c;case"!==":return typeof o=="object"&&(o=o.version),typeof c=="object"&&(c=c.version),o!==c;case"":case"=":case"==":return r(o,c,u);case"!=":return e(o,c,u);case">":return t(o,c,u);case">=":return s(o,c,u);case"<":return n(o,c,u);case"<=":return a(o,c,u);default:throw new TypeError(`Invalid operator: ${l}`)}},Kt}var Qt,Cs;function ya(){if(Cs)return Qt;Cs=1;const r=ne(),e=qe(),{safeRe:t,t:s}=He();return Qt=(a,i)=>{if(a instanceof r)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;i=i||{};let o=null;if(!i.rtl)o=a.match(i.includePrerelease?t[s.COERCEFULL]:t[s.COERCE]);else{const h=i.includePrerelease?t[s.COERCERTLFULL]:t[s.COERCERTL];let v;for(;(v=h.exec(a))&&(!o||o.index+o[0].length!==a.length);)(!o||v.index+v[0].length!==o.index+o[0].length)&&(o=v),h.lastIndex=v.index+v[1].length+v[2].length;h.lastIndex=-1}if(o===null)return null;const l=o[2],c=o[3]||"0",u=o[4]||"0",d=i.includePrerelease&&o[5]?`-${o[5]}`:"",f=i.includePrerelease&&o[6]?`+${o[6]}`:"";return e(`${l}.${c}.${u}${d}${f}`,i)},Qt}var er,Ps;function va(){if(Ps)return er;Ps=1;class r{constructor(){this.max=1e3,this.map=new Map}get(t){const s=this.map.get(t);if(s!==void 0)return this.map.delete(t),this.map.set(t,s),s}delete(t){return this.map.delete(t)}set(t,s){if(!this.delete(t)&&s!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(t,s)}return this}}return er=r,er}var tr,Ls;function de(){if(Ls)return tr;Ls=1;const r=/\s+/g;class e{constructor(g,A){if(A=n(A),g instanceof e)return g.loose===!!A.loose&&g.includePrerelease===!!A.includePrerelease?g:new e(g.raw,A);if(g instanceof a)return this.raw=g.value,this.set=[[g]],this.formatted=void 0,this;if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=g.trim().replace(r," "),this.set=this.raw.split("||").map(O=>this.parseRange(O.trim())).filter(O=>O.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const O=this.set[0];if(this.set=this.set.filter(N=>!p(N[0])),this.set.length===0)this.set=[O];else if(this.set.length>1){for(const N of this.set)if(N.length===1&&m(N[0])){this.set=[N];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let g=0;g<this.set.length;g++){g>0&&(this.formatted+="||");const A=this.set[g];for(let O=0;O<A.length;O++)O>0&&(this.formatted+=" "),this.formatted+=A[O].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(g){const O=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+g,N=s.get(O);if(N)return N;const T=this.options.loose,q=T?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];g=g.replace(q,be(this.options.includePrerelease)),i("hyphen replace",g),g=g.replace(l[c.COMPARATORTRIM],u),i("comparator trim",g),g=g.replace(l[c.TILDETRIM],d),i("tilde trim",g),g=g.replace(l[c.CARETTRIM],f),i("caret trim",g);let F=g.split(" ").map(X=>Z(X,this.options)).join(" ").split(/\s+/).map(X=>we(X,this.options));T&&(F=F.filter(X=>(i("loose invalid filter",X,this.options),!!X.match(l[c.COMPARATORLOOSE])))),i("range list",F);const z=new Map,W=F.map(X=>new a(X,this.options));for(const X of W){if(p(X))return[X];z.set(X.value,X)}z.size>1&&z.has("")&&z.delete("");const te=[...z.values()];return s.set(O,te),te}intersects(g,A){if(!(g instanceof e))throw new TypeError("a Range is required");return this.set.some(O=>k(O,A)&&g.set.some(N=>k(N,A)&&O.every(T=>N.every(q=>T.intersects(q,A)))))}test(g){if(!g)return!1;if(typeof g=="string")try{g=new o(g,this.options)}catch{return!1}for(let A=0;A<this.set.length;A++)if(Oe(this.set[A],g,this.options))return!0;return!1}}tr=e;const t=va(),s=new t,n=br(),a=yt(),i=pt(),o=ne(),{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=He(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=ht(),p=E=>E.value==="<0.0.0-0",m=E=>E.value==="",k=(E,g)=>{let A=!0;const O=E.slice();let N=O.pop();for(;A&&O.length;)A=O.every(T=>N.intersects(T,g)),N=O.pop();return A},Z=(E,g)=>(E=E.replace(l[c.BUILD],""),i("comp",E,g),E=H(E,g),i("caret",E),E=Y(E,g),i("tildes",E),E=U(E,g),i("xrange",E),E=xe(E,g),i("stars",E),E),x=E=>!E||E.toLowerCase()==="x"||E==="*",Y=(E,g)=>E.trim().split(/\s+/).map(A=>J(A,g)).join(" "),J=(E,g)=>{const A=g.loose?l[c.TILDELOOSE]:l[c.TILDE];return E.replace(A,(O,N,T,q,F)=>{i("tilde",E,O,N,T,q,F);let z;return x(N)?z="":x(T)?z=`>=${N}.0.0 <${+N+1}.0.0-0`:x(q)?z=`>=${N}.${T}.0 <${N}.${+T+1}.0-0`:F?(i("replaceTilde pr",F),z=`>=${N}.${T}.${q}-${F} <${N}.${+T+1}.0-0`):z=`>=${N}.${T}.${q} <${N}.${+T+1}.0-0`,i("tilde return",z),z})},H=(E,g)=>E.trim().split(/\s+/).map(A=>Q(A,g)).join(" "),Q=(E,g)=>{i("caret",E,g);const A=g.loose?l[c.CARETLOOSE]:l[c.CARET],O=g.includePrerelease?"-0":"";return E.replace(A,(N,T,q,F,z)=>{i("caret",E,N,T,q,F,z);let W;return x(T)?W="":x(q)?W=`>=${T}.0.0${O} <${+T+1}.0.0-0`:x(F)?T==="0"?W=`>=${T}.${q}.0${O} <${T}.${+q+1}.0-0`:W=`>=${T}.${q}.0${O} <${+T+1}.0.0-0`:z?(i("replaceCaret pr",z),T==="0"?q==="0"?W=`>=${T}.${q}.${F}-${z} <${T}.${q}.${+F+1}-0`:W=`>=${T}.${q}.${F}-${z} <${T}.${+q+1}.0-0`:W=`>=${T}.${q}.${F}-${z} <${+T+1}.0.0-0`):(i("no pr"),T==="0"?q==="0"?W=`>=${T}.${q}.${F}${O} <${T}.${q}.${+F+1}-0`:W=`>=${T}.${q}.${F}${O} <${T}.${+q+1}.0-0`:W=`>=${T}.${q}.${F} <${+T+1}.0.0-0`),i("caret return",W),W})},U=(E,g)=>(i("replaceXRanges",E,g),E.split(/\s+/).map(A=>fe(A,g)).join(" ")),fe=(E,g)=>{E=E.trim();const A=g.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return E.replace(A,(O,N,T,q,F,z)=>{i("xRange",E,O,N,T,q,F,z);const W=x(T),te=W||x(q),X=te||x(F),he=X;return N==="="&&he&&(N=""),z=g.includePrerelease?"-0":"",W?N===">"||N==="<"?O="<0.0.0-0":O="*":N&&he?(te&&(q=0),F=0,N===">"?(N=">=",te?(T=+T+1,q=0,F=0):(q=+q+1,F=0)):N==="<="&&(N="<",te?T=+T+1:q=+q+1),N==="<"&&(z="-0"),O=`${N+T}.${q}.${F}${z}`):te?O=`>=${T}.0.0${z} <${+T+1}.0.0-0`:X&&(O=`>=${T}.${q}.0${z} <${T}.${+q+1}.0-0`),i("xRange return",O),O})},xe=(E,g)=>(i("replaceStars",E,g),E.trim().replace(l[c.STAR],"")),we=(E,g)=>(i("replaceGTE0",E,g),E.trim().replace(l[g.includePrerelease?c.GTE0PRE:c.GTE0],"")),be=E=>(g,A,O,N,T,q,F,z,W,te,X,he)=>(x(O)?A="":x(N)?A=`>=${O}.0.0${E?"-0":""}`:x(T)?A=`>=${O}.${N}.0${E?"-0":""}`:q?A=`>=${A}`:A=`>=${A}${E?"-0":""}`,x(W)?z="":x(te)?z=`<${+W+1}.0.0-0`:x(X)?z=`<${W}.${+te+1}.0-0`:he?z=`<=${W}.${te}.${X}-${he}`:E?z=`<${W}.${te}.${+X+1}-0`:z=`<=${z}`,`${A} ${z}`.trim()),Oe=(E,g,A)=>{for(let O=0;O<E.length;O++)if(!E[O].test(g))return!1;if(g.prerelease.length&&!A.includePrerelease){for(let O=0;O<E.length;O++)if(i(E[O].semver),E[O].semver!==a.ANY&&E[O].semver.prerelease.length>0){const N=E[O].semver;if(N.major===g.major&&N.minor===g.minor&&N.patch===g.patch)return!0}return!1}return!0};return tr}var rr,qs;function yt(){if(qs)return rr;qs=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,d){if(d=t(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),i("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(u){const d=this.options.loose?s[n.COMPARATORLOOSE]:s[n.COMPARATOR],f=u.match(d);if(!f)throw new TypeError(`Invalid comparator: ${u}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new o(f[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(i("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}rr=e;const t=br(),{safeRe:s,t:n}=He(),a=an(),i=pt(),o=ne(),l=de();return rr}var sr,js;function vt(){if(js)return sr;js=1;const r=de();return sr=(t,s,n)=>{try{s=new r(s,n)}catch{return!1}return s.test(t)},sr}var nr,Ds;function ga(){if(Ds)return nr;Ds=1;const r=de();return nr=(t,s)=>new r(t,s).set.map(n=>n.map(a=>a.value).join(" ").trim().split(" ")),nr}var ar,Ms;function _a(){if(Ms)return ar;Ms=1;const r=ne(),e=de();return ar=(s,n,a)=>{let i=null,o=null,l=null;try{l=new e(n,a)}catch{return null}return s.forEach(c=>{l.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new r(i,a))}),i},ar}var ir,Us;function $a(){if(Us)return ir;Us=1;const r=ne(),e=de();return ir=(s,n,a)=>{let i=null,o=null,l=null;try{l=new e(n,a)}catch{return null}return s.forEach(c=>{l.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new r(i,a))}),i},ir}var or,Zs;function Ea(){if(Zs)return or;Zs=1;const r=ne(),e=de(),t=mt();return or=(n,a)=>{n=new e(n,a);let i=new r("0.0.0");if(n.test(i)||(i=new r("0.0.0-0"),n.test(i)))return i;i=null;for(let o=0;o<n.set.length;++o){const l=n.set[o];let c=null;l.forEach(u=>{const d=new r(u.semver.version);switch(u.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!c||t(d,c))&&(c=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),c&&(!i||t(i,c))&&(i=c)}return i&&n.test(i)?i:null},or}var ur,zs;function xa(){if(zs)return ur;zs=1;const r=de();return ur=(t,s)=>{try{return new r(t,s).range||"*"}catch{return null}},ur}var lr,Vs;function Nr(){if(Vs)return lr;Vs=1;const r=ne(),e=yt(),{ANY:t}=e,s=de(),n=vt(),a=mt(),i=Tr(),o=Ar(),l=Sr();return lr=(u,d,f,h)=>{u=new r(u,h),d=new s(d,h);let v,p,m,k,Z;switch(f){case">":v=a,p=o,m=i,k=">",Z=">=";break;case"<":v=i,p=l,m=a,k="<",Z="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(n(u,d,h))return!1;for(let x=0;x<d.set.length;++x){const Y=d.set[x];let J=null,H=null;if(Y.forEach(Q=>{Q.semver===t&&(Q=new e(">=0.0.0")),J=J||Q,H=H||Q,v(Q.semver,J.semver,h)?J=Q:m(Q.semver,H.semver,h)&&(H=Q)}),J.operator===k||J.operator===Z||(!H.operator||H.operator===k)&&p(u,H.semver))return!1;if(H.operator===Z&&m(u,H.semver))return!1}return!0},lr}var cr,Fs;function wa(){if(Fs)return cr;Fs=1;const r=Nr();return cr=(t,s,n)=>r(t,s,">",n),cr}var dr,Bs;function Ra(){if(Bs)return dr;Bs=1;const r=Nr();return dr=(t,s,n)=>r(t,s,"<",n),dr}var fr,Gs;function Ia(){if(Gs)return fr;Gs=1;const r=de();return fr=(t,s,n)=>(t=new r(t,n),s=new r(s,n),t.intersects(s,n)),fr}var hr,Xs;function ka(){if(Xs)return hr;Xs=1;const r=vt(),e=ce();return hr=(t,s,n)=>{const a=[];let i=null,o=null;const l=t.sort((f,h)=>e(f,h,n));for(const f of l)r(f,s,n)?(o=f,i||(i=f)):(o&&a.push([i,o]),o=null,i=null);i&&a.push([i,null]);const c=[];for(const[f,h]of a)f===h?c.push(f):!h&&f===l[0]?c.push("*"):h?f===l[0]?c.push(`<=${h}`):c.push(`${f} - ${h}`):c.push(`>=${f}`);const u=c.join(" || "),d=typeof s.raw=="string"?s.raw:String(s);return u.length<d.length?u:s},hr}var pr,Hs;function ba(){if(Hs)return pr;Hs=1;const r=de(),e=yt(),{ANY:t}=e,s=vt(),n=ce(),a=(d,f,h={})=>{if(d===f)return!0;d=new r(d,h),f=new r(f,h);let v=!1;e:for(const p of d.set){for(const m of f.set){const k=l(p,m,h);if(v=v||k!==null,k)continue e}if(v)return!1}return!0},i=[new e(">=0.0.0-0")],o=[new e(">=0.0.0")],l=(d,f,h)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===t){if(f.length===1&&f[0].semver===t)return!0;h.includePrerelease?d=i:d=o}if(f.length===1&&f[0].semver===t){if(h.includePrerelease)return!0;f=o}const v=new Set;let p,m;for(const U of d)U.operator===">"||U.operator===">="?p=c(p,U,h):U.operator==="<"||U.operator==="<="?m=u(m,U,h):v.add(U.semver);if(v.size>1)return null;let k;if(p&&m){if(k=n(p.semver,m.semver,h),k>0)return null;if(k===0&&(p.operator!==">="||m.operator!=="<="))return null}for(const U of v){if(p&&!s(U,String(p),h)||m&&!s(U,String(m),h))return null;for(const fe of f)if(!s(U,String(fe),h))return!1;return!0}let Z,x,Y,J,H=m&&!h.includePrerelease&&m.semver.prerelease.length?m.semver:!1,Q=p&&!h.includePrerelease&&p.semver.prerelease.length?p.semver:!1;H&&H.prerelease.length===1&&m.operator==="<"&&H.prerelease[0]===0&&(H=!1);for(const U of f){if(J=J||U.operator===">"||U.operator===">=",Y=Y||U.operator==="<"||U.operator==="<=",p){if(Q&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===Q.major&&U.semver.minor===Q.minor&&U.semver.patch===Q.patch&&(Q=!1),U.operator===">"||U.operator===">="){if(Z=c(p,U,h),Z===U&&Z!==p)return!1}else if(p.operator===">="&&!s(p.semver,String(U),h))return!1}if(m){if(H&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===H.major&&U.semver.minor===H.minor&&U.semver.patch===H.patch&&(H=!1),U.operator==="<"||U.operator==="<="){if(x=u(m,U,h),x===U&&x!==m)return!1}else if(m.operator==="<="&&!s(m.semver,String(U),h))return!1}if(!U.operator&&(m||p)&&k!==0)return!1}return!(p&&Y&&!m&&k!==0||m&&J&&!p&&k!==0||Q||H)},c=(d,f,h)=>{if(!d)return f;const v=n(d.semver,f.semver,h);return v>0?d:v<0||f.operator===">"&&d.operator===">="?f:d},u=(d,f,h)=>{if(!d)return f;const v=n(d.semver,f.semver,h);return v<0?d:v>0||f.operator==="<"&&d.operator==="<="?f:d};return pr=a,pr}var mr,Ws;function Oa(){if(Ws)return mr;Ws=1;const r=He(),e=ht(),t=ne(),s=rn(),n=qe(),a=na(),i=aa(),o=ia(),l=oa(),c=ua(),u=la(),d=ca(),f=da(),h=ce(),v=fa(),p=ha(),m=Or(),k=pa(),Z=ma(),x=mt(),Y=Tr(),J=sn(),H=nn(),Q=Sr(),U=Ar(),fe=an(),xe=ya(),we=yt(),be=de(),Oe=vt(),E=ga(),g=_a(),A=$a(),O=Ea(),N=xa(),T=Nr(),q=wa(),F=Ra(),z=Ia(),W=ka(),te=ba();return mr={parse:n,valid:a,clean:i,inc:o,diff:l,major:c,minor:u,patch:d,prerelease:f,compare:h,rcompare:v,compareLoose:p,compareBuild:m,sort:k,rsort:Z,gt:x,lt:Y,eq:J,neq:H,gte:Q,lte:U,cmp:fe,coerce:xe,Comparator:we,Range:be,satisfies:Oe,toComparators:E,maxSatisfying:g,minSatisfying:A,minVersion:O,validRange:N,outside:T,gtr:q,ltr:F,intersects:z,simplifyRange:W,subset:te,SemVer:t,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},mr}Oa();var it={exports:{}};it.exports;var Ys;function Ta(){return Ys||(Ys=1,(function(r){const t=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,s=(a=0)=>(i,o,l)=>`\x1B[${38+a};2;${i};${o};${l}m`;function n(){const a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[o,l]of Object.entries(i)){for(const[c,u]of Object.entries(l))i[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[c]=i[c],a.set(u[0],u[1]);Object.defineProperty(i,o,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=t(),i.color.ansi16m=s(),i.bgColor.ansi256=t(10),i.bgColor.ansi16m=s(10),Object.defineProperties(i,{rgbToAnsi256:{value:(o,l,c)=>o===l&&l===c?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:o=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(o.toString(16));if(!l)return[0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(d=>d+d).join(""));const u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:o=>i.rgbToAnsi256(...i.hexToRgb(o)),enumerable:!1}}),i}Object.defineProperty(r,"exports",{enumerable:!0,get:n})})(it)),it.exports}var Sa=Ta();const bi=ft(Sa);function ze(r,e){const t=typeof r;if(t!==typeof e)return!1;if(Array.isArray(r)){if(!Array.isArray(e))return!1;const s=r.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(!ze(r[n],e[n]))return!1;return!0}if(t==="object"){if(!r||!e)return r===e;const s=Object.keys(r),n=Object.keys(e);if(s.length!==n.length)return!1;for(const i of s)if(!ze(r[i],e[i]))return!1;return!0}return r===e}function le(r){return encodeURI(Aa(r))}function Aa(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}const Na={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},Ca={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},Pa={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};let La=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function ke(r,e=Object.create(null),t=La,s=""){if(r&&typeof r=="object"&&!Array.isArray(r)){const a=r.$id||r.id;if(a){const i=new URL(a,t.href);i.hash.length>1?e[i.href]=r:(i.hash="",s===""?t=i:ke(r,e,t))}}else if(r!==!0&&r!==!1)return e;const n=t.href+(s?"#"+s:"");if(e[n]!==void 0)throw new Error(`Duplicate schema URI "${n}".`);if(e[n]=r,r===!0||r===!1)return e;if(r.__absolute_uri__===void 0&&Object.defineProperty(r,"__absolute_uri__",{enumerable:!1,value:n}),r.$ref&&r.__absolute_ref__===void 0){const a=new URL(r.$ref,t.href);a.hash=a.hash,Object.defineProperty(r,"__absolute_ref__",{enumerable:!1,value:a.href})}if(r.$recursiveRef&&r.__absolute_recursive_ref__===void 0){const a=new URL(r.$recursiveRef,t.href);a.hash=a.hash,Object.defineProperty(r,"__absolute_recursive_ref__",{enumerable:!1,value:a.href})}if(r.$anchor){const a=new URL("#"+r.$anchor,t.href);e[a.href]=r}for(let a in r){if(Pa[a])continue;const i=`${s}/${le(a)}`,o=r[a];if(Array.isArray(o)){if(Na[a]){const l=o.length;for(let c=0;c<l;c++)ke(o[c],e,t,`${i}/${c}`)}}else if(Ca[a])for(let l in o)ke(o[l],e,t,`${i}/${le(l)}`);else ke(o,e,t,i)}return e}const qa=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ja=[0,31,28,31,30,31,30,31,31,30,31,30,31],Da=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Ma=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Ua=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Za=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,za=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,Va=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Fa=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ba=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ga=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Xa=r=>{if(r[0]==='"')return!1;const[e,t,...s]=r.split("@");return!e||!t||s.length!==0||e.length>64||t.length>253||e[0]==="."||e.endsWith(".")||e.includes("..")||!/^[a-z0-9.-]+$/i.test(t)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(e)?!1:t.split(".").every(n=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(n))},Ha=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Wa=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Ya=r=>r.length>1&&r.length<80&&(/^P\d+([.,]\d+)?W$/.test(r)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(r)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(r));function pe(r){return r.test.bind(r)}const Js={date:on,time:un.bind(void 0,!1),"date-time":Qa,duration:Ya,uri:ri,"uri-reference":pe(Ua),"uri-template":pe(Za),url:pe(za),email:Xa,hostname:pe(Ma),ipv4:pe(Ha),ipv6:pe(Wa),regex:ni,uuid:pe(Va),"json-pointer":pe(Fa),"json-pointer-uri-fragment":pe(Ba),"relative-json-pointer":pe(Ga)};function Ja(r){return r%4===0&&(r%100!==0||r%400===0)}function on(r){const e=r.match(qa);if(!e)return!1;const t=+e[1],s=+e[2],n=+e[3];return s>=1&&s<=12&&n>=1&&n<=(s==2&&Ja(t)?29:ja[s])}function un(r,e){const t=e.match(Da);if(!t)return!1;const s=+t[1],n=+t[2],a=+t[3],i=!!t[5];return(s<=23&&n<=59&&a<=59||s==23&&n==59&&a==60)&&(!r||i)}const Ka=/t|\s/i;function Qa(r){const e=r.split(Ka);return e.length==2&&on(e[0])&&un(!0,e[1])}const ei=/\/|:/,ti=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function ri(r){return ei.test(r)&&ti.test(r)}const si=/[^\\]\\Z/;function ni(r){if(si.test(r))return!1;try{return new RegExp(r,"u"),!0}catch{return!1}}function ai(r){let e=0,t=r.length,s=0,n;for(;s<t;)e++,n=r.charCodeAt(s++),n>=55296&&n<=56319&&s<t&&(n=r.charCodeAt(s),(n&64512)==56320&&s++);return e}function K(r,e,t="2019-09",s=ke(e),n=!0,a=null,i="#",o="#",l=Object.create(null)){if(e===!0)return{valid:!0,errors:[]};if(e===!1)return{valid:!1,errors:[{instanceLocation:i,keyword:"false",keywordLocation:i,error:"False boolean schema."}]};const c=typeof r;let u;switch(c){case"boolean":case"number":case"string":u=c;break;case"object":r===null?u="null":Array.isArray(r)?u="array":u="object";break;default:throw new Error(`Instances of "${c}" type are not supported.`)}const{$ref:d,$recursiveRef:f,$recursiveAnchor:h,type:v,const:p,enum:m,required:k,not:Z,anyOf:x,allOf:Y,oneOf:J,if:H,then:Q,else:U,format:fe,properties:xe,patternProperties:we,additionalProperties:be,unevaluatedProperties:Oe,minProperties:E,maxProperties:g,propertyNames:A,dependentRequired:O,dependentSchemas:N,dependencies:T,prefixItems:q,items:F,additionalItems:z,unevaluatedItems:W,contains:te,minContains:X,maxContains:he,minItems:gt,maxItems:_t,uniqueItems:ln,minimum:Re,maximum:Ie,exclusiveMinimum:je,exclusiveMaximum:De,multipleOf:We,minLength:Ye,maxLength:Je,pattern:Cr,__absolute_ref__:Ke,__absolute_recursive_ref__:cn}=e,w=[];if(h===!0&&a===null&&(a=e),f==="#"){const C=a===null?s[cn]:a,S=`${o}/$recursiveRef`,M=K(r,a===null?e:a,t,s,n,C,i,S,l);M.valid||w.push({instanceLocation:i,keyword:"$recursiveRef",keywordLocation:S,error:"A subschema had errors."},...M.errors)}if(d!==void 0){const S=s[Ke||d];if(S===void 0){let _=`Unresolved $ref "${d}".`;throw Ke&&Ke!==d&&(_+=` Absolute URI "${Ke}".`),_+=`
|
|
1
|
+
import{g as ft}from"./index-CkrTxNWw.js";var G;(function(r){r.assertEqual=n=>{};function e(n){}r.assertIs=e;function t(n){throw new Error}r.assertNever=t,r.arrayToEnum=n=>{const a={};for(const i of n)a[i]=i;return a},r.getValidEnumValues=n=>{const a=r.objectKeys(n).filter(o=>typeof n[n[o]]!="number"),i={};for(const o of a)i[o]=n[o];return r.objectValues(i)},r.objectValues=n=>r.objectKeys(n).map(function(a){return n[a]}),r.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const a=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.push(i);return a},r.find=(n,a)=>{for(const i of n)if(a(i))return i},r.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function s(n,a=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}r.joinValues=s,r.jsonStringifyReplacer=(n,a)=>typeof a=="bigint"?a.toString():a})(G||(G={}));var qr;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(qr||(qr={}));const R=G.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_e=r=>{switch(typeof r){case"undefined":return R.undefined;case"string":return R.string;case"number":return Number.isNaN(r)?R.nan:R.number;case"boolean":return R.boolean;case"function":return R.function;case"bigint":return R.bigint;case"symbol":return R.symbol;case"object":return Array.isArray(r)?R.array:r===null?R.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?R.promise:typeof Map<"u"&&r instanceof Map?R.map:typeof Set<"u"&&r instanceof Set?R.set:typeof Date<"u"&&r instanceof Date?R.date:R.object;default:return R.unknown}},y=G.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class oe extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(a){return a.message},s={_errors:[]},n=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let o=s,l=0;for(;l<i.path.length;){const c=i.path[l];l===i.path.length-1?(o[c]=o[c]||{_errors:[]},o[c]._errors.push(t(i))):o[c]=o[c]||{_errors:[]},o=o[c],l++}}};return n(this),s}static assert(e){if(!(e instanceof oe))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,G.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t=Object.create(null),s=[];for(const n of this.issues)if(n.path.length>0){const a=n.path[0];t[a]=t[a]||[],t[a].push(e(n))}else s.push(e(n));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}oe.create=r=>new oe(r);const Ve=(r,e)=>{let t;switch(r.code){case y.invalid_type:r.received===R.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case y.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,G.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:t=`Unrecognized key(s) in object: ${G.joinValues(r.keys,", ")}`;break;case y.invalid_union:t="Invalid input";break;case y.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${G.joinValues(r.options)}`;break;case y.invalid_enum_value:t=`Invalid enum value. Expected ${G.joinValues(r.options)}, received '${r.received}'`;break;case y.invalid_arguments:t="Invalid function arguments";break;case y.invalid_return_type:t="Invalid function return type";break;case y.invalid_date:t="Invalid date";break;case y.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:G.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case y.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case y.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case y.custom:t="Invalid input";break;case y.invalid_intersection_types:t="Intersection results could not be merged";break;case y.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case y.not_finite:t="Number must be finite";break;default:t=e.defaultError,G.assertNever(r)}return{message:t}};let dn=Ve;function yr(){return dn}const vr=r=>{const{data:e,path:t,errorMaps:s,issueData:n}=r,a=[...t,...n.path||[]],i={...n,path:a};if(n.message!==void 0)return{...n,path:a,message:n.message};let o="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)o=c(i,{data:e,defaultError:o}).message;return{...n,path:a,message:o}};function $(r,e){const t=yr(),s=vr({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Ve?void 0:Ve].filter(n=>!!n)});r.common.issues.push(s)}class se{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const n of t){if(n.status==="aborted")return D;n.status==="dirty"&&e.dirty(),s.push(n.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const n of t){const a=await n.key,i=await n.value;s.push({key:a,value:i})}return se.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const n of t){const{key:a,value:i}=n;if(a.status==="aborted"||i.status==="aborted")return D;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(s[a.value]=i.value)}return{status:e.value,value:s}}}const D=Object.freeze({status:"aborted"}),Ue=r=>({status:"dirty",value:r}),ie=r=>({status:"valid",value:r}),jr=r=>r.status==="aborted",Dr=r=>r.status==="dirty",Ae=r=>r.status==="valid",ot=r=>typeof Promise<"u"&&r instanceof Promise;var b;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(b||(b={}));class ye{constructor(e,t,s,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Mr=(r,e)=>{if(Ae(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new oe(r.common.issues);return this._error=t,this._error}}};function V(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:n}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(i,o)=>{const{message:l}=r;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??s??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:l??t??o.defaultError}},description:n}}class B{get description(){return this._def.description}_getType(e){return _e(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:_e(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new se,ctx:{common:e.parent.common,data:e.data,parsedType:_e(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(ot(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_e(e)},n=this._parseSync({data:e,path:s.path,parent:s});return Mr(s,n)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_e(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:t});return Ae(s)?{value:s.value}:{issues:t.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(s=>Ae(s)?{value:s.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_e(e)},n=this._parse({data:e,path:s.path,parent:s}),a=await(ot(n)?n:Promise.resolve(n));return Mr(s,a)}refine(e,t){const s=n=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(n):t;return this._refinement((n,a)=>{const i=e(n),o=()=>a.addIssue({code:y.custom,...s(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((s,n)=>e(s)?!0:(n.addIssue(typeof t=="function"?t(s,n):t),!1))}_refinement(e){return new Pe({schema:this,typeName:L.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return $e.create(this,this._def)}nullable(){return Le.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return me.create(this)}promise(){return Xe.create(this,this._def)}or(e){return lt.create([this,e],this._def)}and(e){return ct.create(this,e,this._def)}transform(e){return new Pe({...V(this._def),schema:this,typeName:L.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new xr({...V(this._def),innerType:this,defaultValue:t,typeName:L.ZodDefault})}brand(){return new Pn({typeName:L.ZodBranded,type:this,...V(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new wr({...V(this._def),innerType:this,catchValue:t,typeName:L.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Ir.create(this,e)}readonly(){return Rr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const fn=/^c[^\s-]{8,}$/i,hn=/^[0-9a-z]+$/,pn=/^[0-9A-HJKMNP-TV-Z]{26}$/i,mn=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,yn=/^[a-z0-9_-]{21}$/i,vn=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,gn=/^[-+]?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)?)??$/,_n=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$n="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let $t;const En=/^(?:(?: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])$/,xn=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,wn=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Rn=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,In=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kn=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ks="((\\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])))",bn=new RegExp(`^${Ks}$`);function Qs(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function On(r){return new RegExp(`^${Qs(r)}$`)}function Tn(r){let e=`${Ks}T${Qs(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function Sn(r,e){return!!((e==="v4"||!e)&&En.test(r)||(e==="v6"||!e)&&wn.test(r))}function An(r,e){if(!vn.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),n=JSON.parse(atob(s));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||e&&n.alg!==e)}catch{return!1}}function Nn(r,e){return!!((e==="v4"||!e)&&xn.test(r)||(e==="v6"||!e)&&Rn.test(r))}class ve extends B{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==R.string){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_type,expected:R.string,received:a.parsedType}),D}const s=new se;let n;for(const a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="max")e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,o=e.data.length<a.value;(i||o)&&(n=this._getOrReturnCtx(e,n),i?$(n,{code:y.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&$(n,{code:y.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),s.dirty())}else if(a.kind==="email")_n.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"email",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="emoji")$t||($t=new RegExp($n,"u")),$t.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"emoji",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="uuid")mn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"uuid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="nanoid")yn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"nanoid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid")fn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"cuid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="cuid2")hn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"cuid2",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="ulid")pn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"ulid",code:y.invalid_string,message:a.message}),s.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),$(n,{validation:"url",code:y.invalid_string,message:a.message}),s.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"regex",code:y.invalid_string,message:a.message}),s.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),s.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:{startsWith:a.value},message:a.message}),s.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:{endsWith:a.value},message:a.message}),s.dirty()):a.kind==="datetime"?Tn(a).test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:"datetime",message:a.message}),s.dirty()):a.kind==="date"?bn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:"date",message:a.message}),s.dirty()):a.kind==="time"?On(a).test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{code:y.invalid_string,validation:"time",message:a.message}),s.dirty()):a.kind==="duration"?gn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"duration",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="ip"?Sn(e.data,a.version)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"ip",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="jwt"?An(e.data,a.alg)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"jwt",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="cidr"?Nn(e.data,a.version)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"cidr",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="base64"?In.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"base64",code:y.invalid_string,message:a.message}),s.dirty()):a.kind==="base64url"?kn.test(e.data)||(n=this._getOrReturnCtx(e,n),$(n,{validation:"base64url",code:y.invalid_string,message:a.message}),s.dirty()):G.assertNever(a);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(n=>e.test(n),{validation:t,code:y.invalid_string,...b.errToObj(s)})}_addCheck(e){return new ve({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...b.errToObj(e)})}url(e){return this._addCheck({kind:"url",...b.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...b.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...b.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...b.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...b.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...b.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...b.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...b.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...b.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...b.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...b.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...b.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...b.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...b.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...b.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...b.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...b.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...b.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...b.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...b.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...b.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...b.errToObj(t)})}nonempty(e){return this.min(1,b.errToObj(e))}trim(){return new ve({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ve({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ve({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}ve.create=r=>new ve({checks:[],typeName:L.ZodString,coerce:r?.coerce??!1,...V(r)});function Cn(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,n=t>s?t:s,a=Number.parseInt(r.toFixed(n).replace(".","")),i=Number.parseInt(e.toFixed(n).replace(".",""));return a%i/10**n}class Ne extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==R.number){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_type,expected:R.number,received:a.parsedType}),D}let s;const n=new se;for(const a of this._def.checks)a.kind==="int"?G.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:y.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="multipleOf"?Cn(e.data,a.value)!==0&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),$(s,{code:y.not_finite,message:a.message}),n.dirty()):G.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,b.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b.toString(t))}setLimit(e,t,s,n){return new Ne({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:b.toString(n)}]})}_addCheck(e){return new Ne({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:b.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:b.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:b.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:b.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:b.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:b.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:b.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:b.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&G.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Ne.create=r=>new Ne({checks:[],typeName:L.ZodNumber,coerce:r?.coerce||!1,...V(r)});class Fe extends B{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==R.bigint)return this._getInvalidInput(e);let s;const n=new se;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),$(s,{code:y.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):G.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return $(t,{code:y.invalid_type,expected:R.bigint,received:t.parsedType}),D}gte(e,t){return this.setLimit("min",e,!0,b.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b.toString(t))}setLimit(e,t,s,n){return new Fe({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:b.toString(n)}]})}_addCheck(e){return new Fe({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:b.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:b.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:b.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:b.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Fe.create=r=>new Fe({checks:[],typeName:L.ZodBigInt,coerce:r?.coerce??!1,...V(r)});class gr extends B{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==R.boolean){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.boolean,received:s.parsedType}),D}return ie(e.data)}}gr.create=r=>new gr({typeName:L.ZodBoolean,coerce:r?.coerce||!1,...V(r)});class ut extends B{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==R.date){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_type,expected:R.date,received:a.parsedType}),D}if(Number.isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return $(a,{code:y.invalid_date}),D}const s=new se;let n;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),s.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(n=this._getOrReturnCtx(e,n),$(n,{code:y.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):G.assertNever(a);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ut({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:b.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:b.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}ut.create=r=>new ut({checks:[],coerce:r?.coerce||!1,typeName:L.ZodDate,...V(r)});class Ur extends B{_parse(e){if(this._getType(e)!==R.symbol){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.symbol,received:s.parsedType}),D}return ie(e.data)}}Ur.create=r=>new Ur({typeName:L.ZodSymbol,...V(r)});class _r extends B{_parse(e){if(this._getType(e)!==R.undefined){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.undefined,received:s.parsedType}),D}return ie(e.data)}}_r.create=r=>new _r({typeName:L.ZodUndefined,...V(r)});class Zr extends B{_parse(e){if(this._getType(e)!==R.null){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.null,received:s.parsedType}),D}return ie(e.data)}}Zr.create=r=>new Zr({typeName:L.ZodNull,...V(r)});class Be extends B{constructor(){super(...arguments),this._any=!0}_parse(e){return ie(e.data)}}Be.create=r=>new Be({typeName:L.ZodAny,...V(r)});class Se extends B{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ie(e.data)}}Se.create=r=>new Se({typeName:L.ZodUnknown,...V(r)});class Ee extends B{_parse(e){const t=this._getOrReturnCtx(e);return $(t,{code:y.invalid_type,expected:R.never,received:t.parsedType}),D}}Ee.create=r=>new Ee({typeName:L.ZodNever,...V(r)});class zr extends B{_parse(e){if(this._getType(e)!==R.undefined){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.void,received:s.parsedType}),D}return ie(e.data)}}zr.create=r=>new zr({typeName:L.ZodVoid,...V(r)});class me extends B{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),n=this._def;if(t.parsedType!==R.array)return $(t,{code:y.invalid_type,expected:R.array,received:t.parsedType}),D;if(n.exactLength!==null){const i=t.data.length>n.exactLength.value,o=t.data.length<n.exactLength.value;(i||o)&&($(t,{code:i?y.too_big:y.too_small,minimum:o?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&t.data.length<n.minLength.value&&($(t,{code:y.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&t.data.length>n.maxLength.value&&($(t,{code:y.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>n.type._parseAsync(new ye(t,i,t.path,o)))).then(i=>se.mergeArray(s,i));const a=[...t.data].map((i,o)=>n.type._parseSync(new ye(t,i,t.path,o)));return se.mergeArray(s,a)}get element(){return this._def.type}min(e,t){return new me({...this._def,minLength:{value:e,message:b.toString(t)}})}max(e,t){return new me({...this._def,maxLength:{value:e,message:b.toString(t)}})}length(e,t){return new me({...this._def,exactLength:{value:e,message:b.toString(t)}})}nonempty(e){return this.min(1,e)}}me.create=(r,e)=>new me({type:r,minLength:null,maxLength:null,exactLength:null,typeName:L.ZodArray,...V(e)});function Te(r){if(r instanceof ee){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=$e.create(Te(s))}return new ee({...r._def,shape:()=>e})}else return r instanceof me?new me({...r._def,type:Te(r.element)}):r instanceof $e?$e.create(Te(r.unwrap())):r instanceof Le?Le.create(Te(r.unwrap())):r instanceof ge?ge.create(r.items.map(e=>Te(e))):r}class ee extends B{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=G.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==R.object){const c=this._getOrReturnCtx(e);return $(c,{code:y.invalid_type,expected:R.object,received:c.parsedType}),D}const{status:s,ctx:n}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ee&&this._def.unknownKeys==="strip"))for(const c in n.data)i.includes(c)||o.push(c);const l=[];for(const c of i){const u=a[c],d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ye(n,d,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Ee){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict")o.length>0&&($(n,{code:y.unrecognized_keys,keys:o}),s.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of o){const d=n.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ye(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>se.mergeObjectSync(s,c)):se.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(e){return b.errToObj,new ee({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{const n=this._def.errorMap?.(t,s).message??s.defaultError;return t.code==="unrecognized_keys"?{message:b.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:L.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){const t={};for(const s of G.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new ee({...this._def,shape:()=>t})}omit(e){const t={};for(const s of G.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new ee({...this._def,shape:()=>t})}deepPartial(){return Te(this)}partial(e){const t={};for(const s of G.objectKeys(this.shape)){const n=this.shape[s];e&&!e[s]?t[s]=n:t[s]=n.optional()}return new ee({...this._def,shape:()=>t})}required(e){const t={};for(const s of G.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof $e;)a=a._def.innerType;t[s]=a}return new ee({...this._def,shape:()=>t})}keyof(){return en(G.objectKeys(this.shape))}}ee.create=(r,e)=>new ee({shape:()=>r,unknownKeys:"strip",catchall:Ee.create(),typeName:L.ZodObject,...V(e)});ee.strictCreate=(r,e)=>new ee({shape:()=>r,unknownKeys:"strict",catchall:Ee.create(),typeName:L.ZodObject,...V(e)});ee.lazycreate=(r,e)=>new ee({shape:r,unknownKeys:"strip",catchall:Ee.create(),typeName:L.ZodObject,...V(e)});class lt extends B{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function n(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new oe(o.ctx.common.issues));return $(t,{code:y.invalid_union,unionErrors:i}),D}if(t.common.async)return Promise.all(s.map(async a=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(n);{let a;const i=[];for(const l of s){const c={...t,common:{...t.common,issues:[]},parent:null},u=l._parseSync({data:t.data,path:t.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(l=>new oe(l));return $(t,{code:y.invalid_union,unionErrors:o}),D}}get options(){return this._def.options}}lt.create=(r,e)=>new lt({options:r,typeName:L.ZodUnion,...V(e)});function $r(r,e){const t=_e(r),s=_e(e);if(r===e)return{valid:!0,data:r};if(t===R.object&&s===R.object){const n=G.objectKeys(e),a=G.objectKeys(r).filter(o=>n.indexOf(o)!==-1),i={...r,...e};for(const o of a){const l=$r(r[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(t===R.array&&s===R.array){if(r.length!==e.length)return{valid:!1};const n=[];for(let a=0;a<r.length;a++){const i=r[a],o=e[a],l=$r(i,o);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return t===R.date&&s===R.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class ct extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),n=(a,i)=>{if(jr(a)||jr(i))return D;const o=$r(a.value,i.value);return o.valid?((Dr(a)||Dr(i))&&t.dirty(),{status:t.value,value:o.data}):($(s,{code:y.invalid_intersection_types}),D)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,i])=>n(a,i)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ct.create=(r,e,t)=>new ct({left:r,right:e,typeName:L.ZodIntersection,...V(t)});class ge extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.array)return $(s,{code:y.invalid_type,expected:R.array,received:s.parsedType}),D;if(s.data.length<this._def.items.length)return $(s,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),D;!this._def.rest&&s.data.length>this._def.items.length&&($(s,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...s.data].map((i,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ye(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(a).then(i=>se.mergeArray(t,i)):se.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new ge({...this._def,rest:e})}}ge.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ge({items:r,typeName:L.ZodTuple,rest:null,...V(e)})};class dt extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.object)return $(s,{code:y.invalid_type,expected:R.object,received:s.parsedType}),D;const n=[],a=this._def.keyType,i=this._def.valueType;for(const o in s.data)n.push({key:a._parse(new ye(s,o,s.path,o)),value:i._parse(new ye(s,s.data[o],s.path,o)),alwaysSet:o in s.data});return s.common.async?se.mergeObjectAsync(t,n):se.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,s){return t instanceof B?new dt({keyType:e,valueType:t,typeName:L.ZodRecord,...V(s)}):new dt({keyType:ve.create(),valueType:e,typeName:L.ZodRecord,...V(t)})}}class Vr extends B{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.map)return $(s,{code:y.invalid_type,expected:R.map,received:s.parsedType}),D;const n=this._def.keyType,a=this._def.valueType,i=[...s.data.entries()].map(([o,l],c)=>({key:n._parse(new ye(s,o,s.path,[c,"key"])),value:a._parse(new ye(s,l,s.path,[c,"value"]))}));if(s.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return D;(c.status==="dirty"||u.status==="dirty")&&t.dirty(),o.set(c.value,u.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return D;(c.status==="dirty"||u.status==="dirty")&&t.dirty(),o.set(c.value,u.value)}return{status:t.value,value:o}}}}Vr.create=(r,e,t)=>new Vr({valueType:e,keyType:r,typeName:L.ZodMap,...V(t)});class Ge extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==R.set)return $(s,{code:y.invalid_type,expected:R.set,received:s.parsedType}),D;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&($(s,{code:y.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&($(s,{code:y.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());const a=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return D;u.status==="dirty"&&t.dirty(),c.add(u.value)}return{status:t.value,value:c}}const o=[...s.data.values()].map((l,c)=>a._parse(new ye(s,l,s.path,c)));return s.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,t){return new Ge({...this._def,minSize:{value:e,message:b.toString(t)}})}max(e,t){return new Ge({...this._def,maxSize:{value:e,message:b.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ge.create=(r,e)=>new Ge({valueType:r,minSize:null,maxSize:null,typeName:L.ZodSet,...V(e)});class Ze extends B{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.function)return $(t,{code:y.invalid_type,expected:R.function,received:t.parsedType}),D;function s(o,l){return vr({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,yr(),Ve].filter(c=>!!c),issueData:{code:y.invalid_arguments,argumentsError:l}})}function n(o,l){return vr({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,yr(),Ve].filter(c=>!!c),issueData:{code:y.invalid_return_type,returnTypeError:l}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Xe){const o=this;return ie(async function(...l){const c=new oe([]),u=await o._def.args.parseAsync(l,a).catch(h=>{throw c.addIssue(s(l,h)),c}),d=await Reflect.apply(i,this,u);return await o._def.returns._def.type.parseAsync(d,a).catch(h=>{throw c.addIssue(n(d,h)),c})})}else{const o=this;return ie(function(...l){const c=o._def.args.safeParse(l,a);if(!c.success)throw new oe([s(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=o._def.returns.safeParse(u,a);if(!d.success)throw new oe([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ze({...this._def,args:ge.create(e).rest(Se.create())})}returns(e){return new Ze({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,s){return new Ze({args:e||ge.create([]).rest(Se.create()),returns:t||Se.create(),typeName:L.ZodFunction,...V(s)})}}class Fr extends B{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Fr.create=(r,e)=>new Fr({getter:r,typeName:L.ZodLazy,...V(e)});class Er extends B{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return $(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),D}return{status:"valid",value:e.data}}get value(){return this._def.value}}Er.create=(r,e)=>new Er({value:r,typeName:L.ZodLiteral,...V(e)});function en(r,e){return new Ce({values:r,typeName:L.ZodEnum,...V(e)})}class Ce extends B{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return $(t,{expected:G.joinValues(s),received:t.parsedType,code:y.invalid_type}),D}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return $(t,{received:t.data,code:y.invalid_enum_value,options:s}),D}return ie(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ce.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ce.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}Ce.create=en;class Br extends B{_parse(e){const t=G.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==R.string&&s.parsedType!==R.number){const n=G.objectValues(t);return $(s,{expected:G.joinValues(n),received:s.parsedType,code:y.invalid_type}),D}if(this._cache||(this._cache=new Set(G.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const n=G.objectValues(t);return $(s,{received:s.data,code:y.invalid_enum_value,options:n}),D}return ie(e.data)}get enum(){return this._def.values}}Br.create=(r,e)=>new Br({values:r,typeName:L.ZodNativeEnum,...V(e)});class Xe extends B{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==R.promise&&t.common.async===!1)return $(t,{code:y.invalid_type,expected:R.promise,received:t.parsedType}),D;const s=t.parsedType===R.promise?t.data:Promise.resolve(t.data);return ie(s.then(n=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Xe.create=(r,e)=>new Xe({type:r,typeName:L.ZodPromise,...V(e)});class Pe extends B{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===L.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),n=this._def.effect||null,a={addIssue:i=>{$(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),n.type==="preprocess"){const i=n.transform(s.data,a);if(s.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return D;const l=await this._def.schema._parseAsync({data:o,path:s.path,parent:s});return l.status==="aborted"?D:l.status==="dirty"||t.value==="dirty"?Ue(l.value):l});{if(t.value==="aborted")return D;const o=this._def.schema._parseSync({data:i,path:s.path,parent:s});return o.status==="aborted"?D:o.status==="dirty"||t.value==="dirty"?Ue(o.value):o}}if(n.type==="refinement"){const i=o=>{const l=n.refinement(o,a);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?D:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>o.status==="aborted"?D:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(n.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ae(i))return D;const o=n.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>Ae(i)?Promise.resolve(n.transform(i.value,a)).then(o=>({status:t.value,value:o})):D);G.assertNever(n)}}Pe.create=(r,e,t)=>new Pe({schema:r,typeName:L.ZodEffects,effect:e,...V(t)});Pe.createWithPreprocess=(r,e,t)=>new Pe({schema:e,effect:{type:"preprocess",transform:r},typeName:L.ZodEffects,...V(t)});class $e extends B{_parse(e){return this._getType(e)===R.undefined?ie(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}$e.create=(r,e)=>new $e({innerType:r,typeName:L.ZodOptional,...V(e)});class Le extends B{_parse(e){return this._getType(e)===R.null?ie(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Le.create=(r,e)=>new Le({innerType:r,typeName:L.ZodNullable,...V(e)});class xr extends B{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===R.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}xr.create=(r,e)=>new xr({innerType:r,typeName:L.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...V(e)});class wr extends B{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ot(n)?n.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new oe(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new oe(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}wr.create=(r,e)=>new wr({innerType:r,typeName:L.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...V(e)});class Gr extends B{_parse(e){if(this._getType(e)!==R.nan){const s=this._getOrReturnCtx(e);return $(s,{code:y.invalid_type,expected:R.nan,received:s.parsedType}),D}return{status:"valid",value:e.data}}}Gr.create=r=>new Gr({typeName:L.ZodNaN,...V(r)});class Pn extends B{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class Ir extends B{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?D:a.status==="dirty"?(t.dirty(),Ue(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?D:n.status==="dirty"?(t.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(e,t){return new Ir({in:e,out:t,typeName:L.ZodPipeline})}}class Rr extends B{_parse(e){const t=this._def.innerType._parse(e),s=n=>(Ae(n)&&(n.value=Object.freeze(n.value)),n);return ot(t)?t.then(n=>s(n)):s(t)}unwrap(){return this._def.innerType}}Rr.create=(r,e)=>new Rr({innerType:r,typeName:L.ZodReadonly,...V(e)});function Xr(r,e){const t=typeof r=="function"?r(e):typeof r=="string"?{message:r}:r;return typeof t=="string"?{message:t}:t}function Ln(r,e={},t){return r?Be.create().superRefine((s,n)=>{const a=r(s);if(a instanceof Promise)return a.then(i=>{if(!i){const o=Xr(e,s),l=o.fatal??t??!0;n.addIssue({code:"custom",...o,fatal:l})}});if(!a){const i=Xr(e,s),o=i.fatal??t??!0;n.addIssue({code:"custom",...i,fatal:o})}}):Be.create()}var L;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(L||(L={}));const oi=(r,e={message:`Input not instance of ${r.name}`})=>Ln(t=>t instanceof r,e),ui=ve.create,li=Ne.create,ci=gr.create,di=_r.create,fi=Be.create;Se.create;Ee.create;const hi=me.create,pi=ee.create,mi=lt.create;ct.create;ge.create;const yi=dt.create,vi=Ze.create,gi=Er.create,_i=Ce.create,$i=Xe.create;$e.create;Le.create;var Et,Hr;function qn(){return Hr||(Hr=1,Et=function(r,e){if(typeof r!="string")throw new TypeError("Expected a string");return e=typeof e>"u"?"_":e,r.replace(/([a-z\d])([A-Z])/g,"$1"+e+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+e+"$2").toLowerCase()}),Et}var jn=qn();const Ei=ft(jn);var et={exports:{}},Wr;function Dn(){if(Wr)return et.exports;Wr=1;const r=/[\p{Lu}]/u,e=/[\p{Ll}]/u,t=/^[\p{Lu}](?![\p{Lu}])/gu,s=/([\p{Alpha}\p{N}_]|$)/u,n=/[_.\- ]+/,a=new RegExp("^"+n.source),i=new RegExp(n.source+s.source,"gu"),o=new RegExp("\\d+"+s.source,"gu"),l=(f,h,v)=>{let p=!1,m=!1,k=!1;for(let Z=0;Z<f.length;Z++){const x=f[Z];p&&r.test(x)?(f=f.slice(0,Z)+"-"+f.slice(Z),p=!1,k=m,m=!0,Z++):m&&k&&e.test(x)?(f=f.slice(0,Z-1)+"-"+f.slice(Z-1),k=m,m=!1,p=!0):(p=h(x)===x&&v(x)!==x,k=m,m=v(x)===x&&h(x)!==x)}return f},c=(f,h)=>(t.lastIndex=0,f.replace(t,v=>h(v))),u=(f,h)=>(i.lastIndex=0,o.lastIndex=0,f.replace(i,(v,p)=>h(p)).replace(o,v=>h(v))),d=(f,h)=>{if(!(typeof f=="string"||Array.isArray(f)))throw new TypeError("Expected the input to be `string | string[]`");if(h={pascalCase:!1,preserveConsecutiveUppercase:!1,...h},Array.isArray(f)?f=f.map(k=>k.trim()).filter(k=>k.length).join("-"):f=f.trim(),f.length===0)return"";const v=h.locale===!1?k=>k.toLowerCase():k=>k.toLocaleLowerCase(h.locale),p=h.locale===!1?k=>k.toUpperCase():k=>k.toLocaleUpperCase(h.locale);return f.length===1?h.pascalCase?p(f):v(f):(f!==v(f)&&(f=l(f,v,p)),f=f.replace(a,""),h.preserveConsecutiveUppercase?f=c(f,v):f=v(f),h.pascalCase&&(f=p(f.charAt(0))+f.slice(1)),u(f,p))};return et.exports=d,et.exports.default=d,et.exports}var Mn=Dn();const xi=ft(Mn),Un=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Zn(r){return typeof r=="string"&&Un.test(r)}function zn(r){if(!Zn(r))throw TypeError("Invalid UUID");var e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var re=[];for(var xt=0;xt<256;++xt)re.push((xt+256).toString(16).slice(1));function kr(r,e=0){return(re[r[e+0]]+re[r[e+1]]+re[r[e+2]]+re[r[e+3]]+"-"+re[r[e+4]]+re[r[e+5]]+"-"+re[r[e+6]]+re[r[e+7]]+"-"+re[r[e+8]]+re[r[e+9]]+"-"+re[r[e+10]]+re[r[e+11]]+re[r[e+12]]+re[r[e+13]]+re[r[e+14]]+re[r[e+15]]).toLowerCase()}var tt,Vn=new Uint8Array(16);function tn(){if(!tt&&(tt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tt(Vn)}function Fn(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}var Bn="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Gn="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Xn(r,e,t){function s(n,a,i,o){var l;if(typeof n=="string"&&(n=Fn(n)),typeof a=="string"&&(a=zn(a)),((l=a)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+n.length);if(c.set(a),c.set(n,a.length),c=t(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,i){o=o||0;for(var u=0;u<16;++u)i[o+u]=c[u];return i}return kr(c)}try{s.name=r}catch{}return s.DNS=Bn,s.URL=Gn,s}var Hn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Yr={randomUUID:Hn};function wi(r,e,t){if(Yr.randomUUID&&!r)return Yr.randomUUID();r=r||{};var s=r.random||(r.rng||tn)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,kr(s)}function Wn(r,e,t,s){switch(r){case 0:return e&t^~e&s;case 1:return e^t^s;case 2:return e&t^e&s^t&s;case 3:return e^t^s}}function wt(r,e){return r<<e|r>>>32-e}function Yn(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var s=unescape(encodeURIComponent(r));r=[];for(var n=0;n<s.length;++n)r.push(s.charCodeAt(n))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var a=r.length/4+2,i=Math.ceil(a/16),o=new Array(i),l=0;l<i;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=r[l*64+u*4]<<24|r[l*64+u*4+1]<<16|r[l*64+u*4+2]<<8|r[l*64+u*4+3];o[l]=c}o[i-1][14]=(r.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(r.length-1)*8&4294967295;for(var d=0;d<i;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=o[d][h];for(var v=16;v<80;++v)f[v]=wt(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=t[0],m=t[1],k=t[2],Z=t[3],x=t[4],Y=0;Y<80;++Y){var J=Math.floor(Y/20),H=wt(p,5)+Wn(J,m,k,Z)+x+e[J]+f[Y]>>>0;x=Z,Z=k,k=wt(m,30)>>>0,m=p,p=H}t[0]=t[0]+p>>>0,t[1]=t[1]+m>>>0,t[2]=t[2]+k>>>0,t[3]=t[3]+Z>>>0,t[4]=t[4]+x>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var Ri=Xn("v5",80,Yn),Jr=null,Kr=null,ue=0;function Ii(r,e,t){r=r||{};var s=0,n=new Uint8Array(16),a=r.random||(r.rng||tn)(),i=r.msecs!==void 0?r.msecs:Date.now(),o=r.seq!==void 0?r.seq:null,l=Kr,c=Jr;return i>ue&&r.msecs===void 0&&(ue=i,o!==null&&(l=null,c=null)),o!==null&&(o>2147483647&&(o=2147483647),l=o>>>19&4095,c=o&524287),(l===null||c===null)&&(l=a[6]&127,l=l<<8|a[7],c=a[8]&63,c=c<<8|a[9],c=c<<5|a[10]>>>3),i+1e4>ue&&o===null?++c>524287&&(c=0,++l>4095&&(l=0,ue++)):ue=i,Kr=l,Jr=c,n[s++]=ue/1099511627776&255,n[s++]=ue/4294967296&255,n[s++]=ue/16777216&255,n[s++]=ue/65536&255,n[s++]=ue/256&255,n[s++]=ue&255,n[s++]=l>>>4&15|112,n[s++]=l&255,n[s++]=c>>>13&63|128,n[s++]=c>>>5&255,n[s++]=c<<3&255|a[10]&7,n[s++]=a[11],n[s++]=a[12],n[s++]=a[13],n[s++]=a[14],n[s++]=a[15],kr(n)}var rt={},Rt={exports:{}},Qr;function Jn(){return Qr||(Qr=1,(function(r){var e=Object.prototype.hasOwnProperty,t="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(t=!1));function n(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new n(u,d||l,f),v=t?t+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,l._eventsCount++),l}function i(l,c){--l._eventsCount===0?l._events=new s:delete l._events[c]}function o(){this._events=new s,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)e.call(u,d)&&c.push(t?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},o.prototype.listeners=function(c){var u=t?t+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,h=d.length,v=new Array(h);f<h;f++)v[f]=d[f].fn;return v},o.prototype.listenerCount=function(c){var u=t?t+c:c,d=this._events[u];return d?d.fn?1:d.length:0},o.prototype.emit=function(c,u,d,f,h,v){var p=t?t+c:c;if(!this._events[p])return!1;var m=this._events[p],k=arguments.length,Z,x;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),k){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,d),!0;case 4:return m.fn.call(m.context,u,d,f),!0;case 5:return m.fn.call(m.context,u,d,f,h),!0;case 6:return m.fn.call(m.context,u,d,f,h,v),!0}for(x=1,Z=new Array(k-1);x<k;x++)Z[x-1]=arguments[x];m.fn.apply(m.context,Z)}else{var Y=m.length,J;for(x=0;x<Y;x++)switch(m[x].once&&this.removeListener(c,m[x].fn,void 0,!0),k){case 1:m[x].fn.call(m[x].context);break;case 2:m[x].fn.call(m[x].context,u);break;case 3:m[x].fn.call(m[x].context,u,d);break;case 4:m[x].fn.call(m[x].context,u,d,f);break;default:if(!Z)for(J=1,Z=new Array(k-1);J<k;J++)Z[J-1]=arguments[J];m[x].fn.apply(m[x].context,Z)}}return!0},o.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},o.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},o.prototype.removeListener=function(c,u,d,f){var h=t?t+c:c;if(!this._events[h])return this;if(!u)return i(this,h),this;var v=this._events[h];if(v.fn)v.fn===u&&(!f||v.once)&&(!d||v.context===d)&&i(this,h);else{for(var p=0,m=[],k=v.length;p<k;p++)(v[p].fn!==u||f&&!v[p].once||d&&v[p].context!==d)&&m.push(v[p]);m.length?this._events[h]=m.length===1?m[0]:m:i(this,h)}return this},o.prototype.removeAllListeners=function(c){var u;return c?(u=t?t+c:c,this._events[u]&&i(this,u)):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,r.exports=o})(Rt)),Rt.exports}var Me={exports:{}},It,es;function Kn(){return es||(es=1,It=(r,e)=>(e=e||(()=>{}),r.then(t=>new Promise(s=>{s(e())}).then(()=>t),t=>new Promise(s=>{s(e())}).then(()=>{throw t})))),It}var ts;function Qn(){if(ts)return Me.exports;ts=1;const r=Kn();class e extends Error{constructor(n){super(n),this.name="TimeoutError"}}const t=(s,n,a)=>new Promise((i,o)=>{if(typeof n!="number"||n<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(n===1/0){i(s);return}const l=setTimeout(()=>{if(typeof a=="function"){try{i(a())}catch(d){o(d)}return}const c=typeof a=="string"?a:`Promise timed out after ${n} milliseconds`,u=a instanceof Error?a:new e(c);typeof s.cancel=="function"&&s.cancel(),o(u)},n);r(s.then(i,o),()=>{clearTimeout(l)})});return Me.exports=t,Me.exports.default=t,Me.exports.TimeoutError=e,Me.exports}var st={},nt={},rs;function ea(){if(rs)return nt;rs=1,Object.defineProperty(nt,"__esModule",{value:!0});function r(e,t,s){let n=0,a=e.length;for(;a>0;){const i=a/2|0;let o=n+i;s(e[o],t)<=0?(n=++o,a-=i+1):a=i}return n}return nt.default=r,nt}var ss;function ta(){if(ss)return st;ss=1,Object.defineProperty(st,"__esModule",{value:!0});const r=ea();class e{constructor(){this._queue=[]}enqueue(s,n){n=Object.assign({priority:0},n);const a={priority:n.priority,run:s};if(this.size&&this._queue[this.size-1].priority>=n.priority){this._queue.push(a);return}const i=r.default(this._queue,a,(o,l)=>l.priority-o.priority);this._queue.splice(i,0,a)}dequeue(){const s=this._queue.shift();return s?.run}filter(s){return this._queue.filter(n=>n.priority===s.priority).map(n=>n.run)}get size(){return this._queue.length}}return st.default=e,st}var ns;function ra(){if(ns)return rt;ns=1,Object.defineProperty(rt,"__esModule",{value:!0});const r=Jn(),e=Qn(),t=ta(),s=()=>{},n=new e.TimeoutError;class a extends r{constructor(o){var l,c,u,d;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=s,this._resolveIdle=s,o=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:t.default},o),!(typeof o.intervalCap=="number"&&o.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(c=(l=o.intervalCap)===null||l===void 0?void 0:l.toString())!==null&&c!==void 0?c:""}\` (${typeof o.intervalCap})`);if(o.interval===void 0||!(Number.isFinite(o.interval)&&o.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(d=(u=o.interval)===null||u===void 0?void 0:u.toString())!==null&&d!==void 0?d:""}\` (${typeof o.interval})`);this._carryoverConcurrencyCount=o.carryoverConcurrencyCount,this._isIntervalIgnored=o.intervalCap===1/0||o.interval===0,this._intervalCap=o.intervalCap,this._interval=o.interval,this._queue=new o.queueClass,this._queueClass=o.queueClass,this.concurrency=o.concurrency,this._timeout=o.timeout,this._throwOnTimeout=o.throwOnTimeout===!0,this._isPaused=o.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=s,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=s,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const o=Date.now();if(this._intervalId===void 0){const l=this._intervalEnd-o;if(l<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},l)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const o=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const l=this._queue.dequeue();return l?(this.emit("active"),l(),o&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(o){if(!(typeof o=="number"&&o>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${o}\` (${typeof o})`);this._concurrency=o,this._processQueue()}async add(o,l={}){return new Promise((c,u)=>{const d=async()=>{this._pendingCount++,this._intervalCount++;try{const f=this._timeout===void 0&&l.timeout===void 0?o():e.default(Promise.resolve(o()),l.timeout===void 0?this._timeout:l.timeout,()=>{(l.throwOnTimeout===void 0?this._throwOnTimeout:l.throwOnTimeout)&&u(n)});c(await f)}catch(f){u(f)}this._next()};this._queue.enqueue(d,l),this._tryToStartAnother(),this.emit("add")})}async addAll(o,l){return Promise.all(o.map(async c=>this.add(c,l)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(o=>{const l=this._resolveEmpty;this._resolveEmpty=()=>{l(),o()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(o=>{const l=this._resolveIdle;this._resolveIdle=()=>{l(),o()}})}get size(){return this._queue.size}sizeBy(o){return this._queue.filter(o).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(o){this._timeout=o}}return rt.default=a,rt}var sa=ra();const ki=ft(sa);var at={exports:{}},kt,as;function ht(){if(as)return kt;as=1;const r="2.0.0",e=256,t=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,n=e-6;return kt={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},kt}var bt,is;function pt(){if(is)return bt;is=1;var r={};return bt=typeof process=="object"&&r&&r.NODE_DEBUG&&/\bsemver\b/i.test(r.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{},bt}var os;function He(){return os||(os=1,(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=ht(),a=pt();e=r.exports={};const i=e.re=[],o=e.safeRe=[],l=e.src=[],c=e.safeSrc=[],u=e.t={};let d=0;const f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",n],[f,s]],v=m=>{for(const[k,Z]of h)m=m.split(`${k}*`).join(`${k}{0,${Z}}`).split(`${k}+`).join(`${k}{1,${Z}}`);return m},p=(m,k,Z)=>{const x=v(k),Y=d++;a(m,Y,k),u[m]=Y,l[Y]=k,c[Y]=x,i[Y]=new RegExp(k,Z?"g":void 0),o[Y]=new RegExp(x,Z?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${f}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),p("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("COERCERTLFULL",l[u.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(at,at.exports)),at.exports}var Ot,us;function br(){if(us)return Ot;us=1;const r=Object.freeze({loose:!0}),e=Object.freeze({});return Ot=s=>s?typeof s!="object"?r:s:e,Ot}var Tt,ls;function rn(){if(ls)return Tt;ls=1;const r=/^[0-9]+$/,e=(s,n)=>{if(typeof s=="number"&&typeof n=="number")return s===n?0:s<n?-1:1;const a=r.test(s),i=r.test(n);return a&&i&&(s=+s,n=+n),s===n?0:a&&!i?-1:i&&!a?1:s<n?-1:1};return Tt={compareIdentifiers:e,rcompareIdentifiers:(s,n)=>e(n,s)},Tt}var St,cs;function ne(){if(cs)return St;cs=1;const r=pt(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:t}=ht(),{safeRe:s,t:n}=He(),a=br(),{compareIdentifiers:i}=rn();class o{constructor(c,u){if(u=a(u),c instanceof o){if(c.loose===!!u.loose&&c.includePrerelease===!!u.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);r("SemVer",c,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const d=c.trim().match(u.loose?s[n.LOOSE]:s[n.FULL]);if(!d)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>t||this.major<0)throw new TypeError("Invalid major version");if(this.minor>t||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>t||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const h=+f;if(h>=0&&h<t)return h}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(r("SemVer.compare",this.version,this.options,c),!(c instanceof o)){if(typeof c=="string"&&c===this.version)return 0;c=new o(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof o||(c=new o(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof o||(c=new o(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let u=0;do{const d=this.prerelease[u],f=c.prerelease[u];if(r("prerelease compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++u)}compareBuild(c){c instanceof o||(c=new o(c,this.options));let u=0;do{const d=this.build[u],f=c.build[u];if(r("build compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return i(d,f)}while(++u)}inc(c,u,d){if(c.startsWith("pre")){if(!u&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const f=`-${u}`.match(this.options.loose?s[n.PRERELEASELOOSE]:s[n.PRERELEASE]);if(!f||f[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,d),this.inc("pre",u,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,d),this.inc("pre",u,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(u===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(u){let h=[u,f];d===!1&&(h=[u]),i(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return St=o,St}var At,ds;function qe(){if(ds)return At;ds=1;const r=ne();return At=(t,s,n=!1)=>{if(t instanceof r)return t;try{return new r(t,s)}catch(a){if(!n)return null;throw a}},At}var Nt,fs;function na(){if(fs)return Nt;fs=1;const r=qe();return Nt=(t,s)=>{const n=r(t,s);return n?n.version:null},Nt}var Ct,hs;function aa(){if(hs)return Ct;hs=1;const r=qe();return Ct=(t,s)=>{const n=r(t.trim().replace(/^[=v]+/,""),s);return n?n.version:null},Ct}var Pt,ps;function ia(){if(ps)return Pt;ps=1;const r=ne();return Pt=(t,s,n,a,i)=>{typeof n=="string"&&(i=a,a=n,n=void 0);try{return new r(t instanceof r?t.version:t,n).inc(s,a,i).version}catch{return null}},Pt}var Lt,ms;function oa(){if(ms)return Lt;ms=1;const r=qe();return Lt=(t,s)=>{const n=r(t,null,!0),a=r(s,null,!0),i=n.compare(a);if(i===0)return null;const o=i>0,l=o?n:a,c=o?a:n,u=!!l.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0)return c.minor&&!c.patch?"minor":"patch"}const f=u?"pre":"";return n.major!==a.major?f+"major":n.minor!==a.minor?f+"minor":n.patch!==a.patch?f+"patch":"prerelease"},Lt}var qt,ys;function ua(){if(ys)return qt;ys=1;const r=ne();return qt=(t,s)=>new r(t,s).major,qt}var jt,vs;function la(){if(vs)return jt;vs=1;const r=ne();return jt=(t,s)=>new r(t,s).minor,jt}var Dt,gs;function ca(){if(gs)return Dt;gs=1;const r=ne();return Dt=(t,s)=>new r(t,s).patch,Dt}var Mt,_s;function da(){if(_s)return Mt;_s=1;const r=qe();return Mt=(t,s)=>{const n=r(t,s);return n&&n.prerelease.length?n.prerelease:null},Mt}var Ut,$s;function ce(){if($s)return Ut;$s=1;const r=ne();return Ut=(t,s,n)=>new r(t,n).compare(new r(s,n)),Ut}var Zt,Es;function fa(){if(Es)return Zt;Es=1;const r=ce();return Zt=(t,s,n)=>r(s,t,n),Zt}var zt,xs;function ha(){if(xs)return zt;xs=1;const r=ce();return zt=(t,s)=>r(t,s,!0),zt}var Vt,ws;function Or(){if(ws)return Vt;ws=1;const r=ne();return Vt=(t,s,n)=>{const a=new r(t,n),i=new r(s,n);return a.compare(i)||a.compareBuild(i)},Vt}var Ft,Rs;function pa(){if(Rs)return Ft;Rs=1;const r=Or();return Ft=(t,s)=>t.sort((n,a)=>r(n,a,s)),Ft}var Bt,Is;function ma(){if(Is)return Bt;Is=1;const r=Or();return Bt=(t,s)=>t.sort((n,a)=>r(a,n,s)),Bt}var Gt,ks;function mt(){if(ks)return Gt;ks=1;const r=ce();return Gt=(t,s,n)=>r(t,s,n)>0,Gt}var Xt,bs;function Tr(){if(bs)return Xt;bs=1;const r=ce();return Xt=(t,s,n)=>r(t,s,n)<0,Xt}var Ht,Os;function sn(){if(Os)return Ht;Os=1;const r=ce();return Ht=(t,s,n)=>r(t,s,n)===0,Ht}var Wt,Ts;function nn(){if(Ts)return Wt;Ts=1;const r=ce();return Wt=(t,s,n)=>r(t,s,n)!==0,Wt}var Yt,Ss;function Sr(){if(Ss)return Yt;Ss=1;const r=ce();return Yt=(t,s,n)=>r(t,s,n)>=0,Yt}var Jt,As;function Ar(){if(As)return Jt;As=1;const r=ce();return Jt=(t,s,n)=>r(t,s,n)<=0,Jt}var Kt,Ns;function an(){if(Ns)return Kt;Ns=1;const r=sn(),e=nn(),t=mt(),s=Sr(),n=Tr(),a=Ar();return Kt=(o,l,c,u)=>{switch(l){case"===":return typeof o=="object"&&(o=o.version),typeof c=="object"&&(c=c.version),o===c;case"!==":return typeof o=="object"&&(o=o.version),typeof c=="object"&&(c=c.version),o!==c;case"":case"=":case"==":return r(o,c,u);case"!=":return e(o,c,u);case">":return t(o,c,u);case">=":return s(o,c,u);case"<":return n(o,c,u);case"<=":return a(o,c,u);default:throw new TypeError(`Invalid operator: ${l}`)}},Kt}var Qt,Cs;function ya(){if(Cs)return Qt;Cs=1;const r=ne(),e=qe(),{safeRe:t,t:s}=He();return Qt=(a,i)=>{if(a instanceof r)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;i=i||{};let o=null;if(!i.rtl)o=a.match(i.includePrerelease?t[s.COERCEFULL]:t[s.COERCE]);else{const h=i.includePrerelease?t[s.COERCERTLFULL]:t[s.COERCERTL];let v;for(;(v=h.exec(a))&&(!o||o.index+o[0].length!==a.length);)(!o||v.index+v[0].length!==o.index+o[0].length)&&(o=v),h.lastIndex=v.index+v[1].length+v[2].length;h.lastIndex=-1}if(o===null)return null;const l=o[2],c=o[3]||"0",u=o[4]||"0",d=i.includePrerelease&&o[5]?`-${o[5]}`:"",f=i.includePrerelease&&o[6]?`+${o[6]}`:"";return e(`${l}.${c}.${u}${d}${f}`,i)},Qt}var er,Ps;function va(){if(Ps)return er;Ps=1;class r{constructor(){this.max=1e3,this.map=new Map}get(t){const s=this.map.get(t);if(s!==void 0)return this.map.delete(t),this.map.set(t,s),s}delete(t){return this.map.delete(t)}set(t,s){if(!this.delete(t)&&s!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(t,s)}return this}}return er=r,er}var tr,Ls;function de(){if(Ls)return tr;Ls=1;const r=/\s+/g;class e{constructor(g,A){if(A=n(A),g instanceof e)return g.loose===!!A.loose&&g.includePrerelease===!!A.includePrerelease?g:new e(g.raw,A);if(g instanceof a)return this.raw=g.value,this.set=[[g]],this.formatted=void 0,this;if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=g.trim().replace(r," "),this.set=this.raw.split("||").map(O=>this.parseRange(O.trim())).filter(O=>O.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const O=this.set[0];if(this.set=this.set.filter(N=>!p(N[0])),this.set.length===0)this.set=[O];else if(this.set.length>1){for(const N of this.set)if(N.length===1&&m(N[0])){this.set=[N];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let g=0;g<this.set.length;g++){g>0&&(this.formatted+="||");const A=this.set[g];for(let O=0;O<A.length;O++)O>0&&(this.formatted+=" "),this.formatted+=A[O].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(g){const O=((this.options.includePrerelease&&h)|(this.options.loose&&v))+":"+g,N=s.get(O);if(N)return N;const T=this.options.loose,q=T?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];g=g.replace(q,be(this.options.includePrerelease)),i("hyphen replace",g),g=g.replace(l[c.COMPARATORTRIM],u),i("comparator trim",g),g=g.replace(l[c.TILDETRIM],d),i("tilde trim",g),g=g.replace(l[c.CARETTRIM],f),i("caret trim",g);let F=g.split(" ").map(X=>Z(X,this.options)).join(" ").split(/\s+/).map(X=>we(X,this.options));T&&(F=F.filter(X=>(i("loose invalid filter",X,this.options),!!X.match(l[c.COMPARATORLOOSE])))),i("range list",F);const z=new Map,W=F.map(X=>new a(X,this.options));for(const X of W){if(p(X))return[X];z.set(X.value,X)}z.size>1&&z.has("")&&z.delete("");const te=[...z.values()];return s.set(O,te),te}intersects(g,A){if(!(g instanceof e))throw new TypeError("a Range is required");return this.set.some(O=>k(O,A)&&g.set.some(N=>k(N,A)&&O.every(T=>N.every(q=>T.intersects(q,A)))))}test(g){if(!g)return!1;if(typeof g=="string")try{g=new o(g,this.options)}catch{return!1}for(let A=0;A<this.set.length;A++)if(Oe(this.set[A],g,this.options))return!0;return!1}}tr=e;const t=va(),s=new t,n=br(),a=yt(),i=pt(),o=ne(),{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=He(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:v}=ht(),p=E=>E.value==="<0.0.0-0",m=E=>E.value==="",k=(E,g)=>{let A=!0;const O=E.slice();let N=O.pop();for(;A&&O.length;)A=O.every(T=>N.intersects(T,g)),N=O.pop();return A},Z=(E,g)=>(E=E.replace(l[c.BUILD],""),i("comp",E,g),E=H(E,g),i("caret",E),E=Y(E,g),i("tildes",E),E=U(E,g),i("xrange",E),E=xe(E,g),i("stars",E),E),x=E=>!E||E.toLowerCase()==="x"||E==="*",Y=(E,g)=>E.trim().split(/\s+/).map(A=>J(A,g)).join(" "),J=(E,g)=>{const A=g.loose?l[c.TILDELOOSE]:l[c.TILDE];return E.replace(A,(O,N,T,q,F)=>{i("tilde",E,O,N,T,q,F);let z;return x(N)?z="":x(T)?z=`>=${N}.0.0 <${+N+1}.0.0-0`:x(q)?z=`>=${N}.${T}.0 <${N}.${+T+1}.0-0`:F?(i("replaceTilde pr",F),z=`>=${N}.${T}.${q}-${F} <${N}.${+T+1}.0-0`):z=`>=${N}.${T}.${q} <${N}.${+T+1}.0-0`,i("tilde return",z),z})},H=(E,g)=>E.trim().split(/\s+/).map(A=>Q(A,g)).join(" "),Q=(E,g)=>{i("caret",E,g);const A=g.loose?l[c.CARETLOOSE]:l[c.CARET],O=g.includePrerelease?"-0":"";return E.replace(A,(N,T,q,F,z)=>{i("caret",E,N,T,q,F,z);let W;return x(T)?W="":x(q)?W=`>=${T}.0.0${O} <${+T+1}.0.0-0`:x(F)?T==="0"?W=`>=${T}.${q}.0${O} <${T}.${+q+1}.0-0`:W=`>=${T}.${q}.0${O} <${+T+1}.0.0-0`:z?(i("replaceCaret pr",z),T==="0"?q==="0"?W=`>=${T}.${q}.${F}-${z} <${T}.${q}.${+F+1}-0`:W=`>=${T}.${q}.${F}-${z} <${T}.${+q+1}.0-0`:W=`>=${T}.${q}.${F}-${z} <${+T+1}.0.0-0`):(i("no pr"),T==="0"?q==="0"?W=`>=${T}.${q}.${F}${O} <${T}.${q}.${+F+1}-0`:W=`>=${T}.${q}.${F}${O} <${T}.${+q+1}.0-0`:W=`>=${T}.${q}.${F} <${+T+1}.0.0-0`),i("caret return",W),W})},U=(E,g)=>(i("replaceXRanges",E,g),E.split(/\s+/).map(A=>fe(A,g)).join(" ")),fe=(E,g)=>{E=E.trim();const A=g.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return E.replace(A,(O,N,T,q,F,z)=>{i("xRange",E,O,N,T,q,F,z);const W=x(T),te=W||x(q),X=te||x(F),he=X;return N==="="&&he&&(N=""),z=g.includePrerelease?"-0":"",W?N===">"||N==="<"?O="<0.0.0-0":O="*":N&&he?(te&&(q=0),F=0,N===">"?(N=">=",te?(T=+T+1,q=0,F=0):(q=+q+1,F=0)):N==="<="&&(N="<",te?T=+T+1:q=+q+1),N==="<"&&(z="-0"),O=`${N+T}.${q}.${F}${z}`):te?O=`>=${T}.0.0${z} <${+T+1}.0.0-0`:X&&(O=`>=${T}.${q}.0${z} <${T}.${+q+1}.0-0`),i("xRange return",O),O})},xe=(E,g)=>(i("replaceStars",E,g),E.trim().replace(l[c.STAR],"")),we=(E,g)=>(i("replaceGTE0",E,g),E.trim().replace(l[g.includePrerelease?c.GTE0PRE:c.GTE0],"")),be=E=>(g,A,O,N,T,q,F,z,W,te,X,he)=>(x(O)?A="":x(N)?A=`>=${O}.0.0${E?"-0":""}`:x(T)?A=`>=${O}.${N}.0${E?"-0":""}`:q?A=`>=${A}`:A=`>=${A}${E?"-0":""}`,x(W)?z="":x(te)?z=`<${+W+1}.0.0-0`:x(X)?z=`<${W}.${+te+1}.0-0`:he?z=`<=${W}.${te}.${X}-${he}`:E?z=`<${W}.${te}.${+X+1}-0`:z=`<=${z}`,`${A} ${z}`.trim()),Oe=(E,g,A)=>{for(let O=0;O<E.length;O++)if(!E[O].test(g))return!1;if(g.prerelease.length&&!A.includePrerelease){for(let O=0;O<E.length;O++)if(i(E[O].semver),E[O].semver!==a.ANY&&E[O].semver.prerelease.length>0){const N=E[O].semver;if(N.major===g.major&&N.minor===g.minor&&N.patch===g.patch)return!0}return!1}return!0};return tr}var rr,qs;function yt(){if(qs)return rr;qs=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,d){if(d=t(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),i("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(u){const d=this.options.loose?s[n.COMPARATORLOOSE]:s[n.COMPARATOR],f=u.match(d);if(!f)throw new TypeError(`Invalid comparator: ${u}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new o(f[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(i("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}rr=e;const t=br(),{safeRe:s,t:n}=He(),a=an(),i=pt(),o=ne(),l=de();return rr}var sr,js;function vt(){if(js)return sr;js=1;const r=de();return sr=(t,s,n)=>{try{s=new r(s,n)}catch{return!1}return s.test(t)},sr}var nr,Ds;function ga(){if(Ds)return nr;Ds=1;const r=de();return nr=(t,s)=>new r(t,s).set.map(n=>n.map(a=>a.value).join(" ").trim().split(" ")),nr}var ar,Ms;function _a(){if(Ms)return ar;Ms=1;const r=ne(),e=de();return ar=(s,n,a)=>{let i=null,o=null,l=null;try{l=new e(n,a)}catch{return null}return s.forEach(c=>{l.test(c)&&(!i||o.compare(c)===-1)&&(i=c,o=new r(i,a))}),i},ar}var ir,Us;function $a(){if(Us)return ir;Us=1;const r=ne(),e=de();return ir=(s,n,a)=>{let i=null,o=null,l=null;try{l=new e(n,a)}catch{return null}return s.forEach(c=>{l.test(c)&&(!i||o.compare(c)===1)&&(i=c,o=new r(i,a))}),i},ir}var or,Zs;function Ea(){if(Zs)return or;Zs=1;const r=ne(),e=de(),t=mt();return or=(n,a)=>{n=new e(n,a);let i=new r("0.0.0");if(n.test(i)||(i=new r("0.0.0-0"),n.test(i)))return i;i=null;for(let o=0;o<n.set.length;++o){const l=n.set[o];let c=null;l.forEach(u=>{const d=new r(u.semver.version);switch(u.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!c||t(d,c))&&(c=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),c&&(!i||t(i,c))&&(i=c)}return i&&n.test(i)?i:null},or}var ur,zs;function xa(){if(zs)return ur;zs=1;const r=de();return ur=(t,s)=>{try{return new r(t,s).range||"*"}catch{return null}},ur}var lr,Vs;function Nr(){if(Vs)return lr;Vs=1;const r=ne(),e=yt(),{ANY:t}=e,s=de(),n=vt(),a=mt(),i=Tr(),o=Ar(),l=Sr();return lr=(u,d,f,h)=>{u=new r(u,h),d=new s(d,h);let v,p,m,k,Z;switch(f){case">":v=a,p=o,m=i,k=">",Z=">=";break;case"<":v=i,p=l,m=a,k="<",Z="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(n(u,d,h))return!1;for(let x=0;x<d.set.length;++x){const Y=d.set[x];let J=null,H=null;if(Y.forEach(Q=>{Q.semver===t&&(Q=new e(">=0.0.0")),J=J||Q,H=H||Q,v(Q.semver,J.semver,h)?J=Q:m(Q.semver,H.semver,h)&&(H=Q)}),J.operator===k||J.operator===Z||(!H.operator||H.operator===k)&&p(u,H.semver))return!1;if(H.operator===Z&&m(u,H.semver))return!1}return!0},lr}var cr,Fs;function wa(){if(Fs)return cr;Fs=1;const r=Nr();return cr=(t,s,n)=>r(t,s,">",n),cr}var dr,Bs;function Ra(){if(Bs)return dr;Bs=1;const r=Nr();return dr=(t,s,n)=>r(t,s,"<",n),dr}var fr,Gs;function Ia(){if(Gs)return fr;Gs=1;const r=de();return fr=(t,s,n)=>(t=new r(t,n),s=new r(s,n),t.intersects(s,n)),fr}var hr,Xs;function ka(){if(Xs)return hr;Xs=1;const r=vt(),e=ce();return hr=(t,s,n)=>{const a=[];let i=null,o=null;const l=t.sort((f,h)=>e(f,h,n));for(const f of l)r(f,s,n)?(o=f,i||(i=f)):(o&&a.push([i,o]),o=null,i=null);i&&a.push([i,null]);const c=[];for(const[f,h]of a)f===h?c.push(f):!h&&f===l[0]?c.push("*"):h?f===l[0]?c.push(`<=${h}`):c.push(`${f} - ${h}`):c.push(`>=${f}`);const u=c.join(" || "),d=typeof s.raw=="string"?s.raw:String(s);return u.length<d.length?u:s},hr}var pr,Hs;function ba(){if(Hs)return pr;Hs=1;const r=de(),e=yt(),{ANY:t}=e,s=vt(),n=ce(),a=(d,f,h={})=>{if(d===f)return!0;d=new r(d,h),f=new r(f,h);let v=!1;e:for(const p of d.set){for(const m of f.set){const k=l(p,m,h);if(v=v||k!==null,k)continue e}if(v)return!1}return!0},i=[new e(">=0.0.0-0")],o=[new e(">=0.0.0")],l=(d,f,h)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===t){if(f.length===1&&f[0].semver===t)return!0;h.includePrerelease?d=i:d=o}if(f.length===1&&f[0].semver===t){if(h.includePrerelease)return!0;f=o}const v=new Set;let p,m;for(const U of d)U.operator===">"||U.operator===">="?p=c(p,U,h):U.operator==="<"||U.operator==="<="?m=u(m,U,h):v.add(U.semver);if(v.size>1)return null;let k;if(p&&m){if(k=n(p.semver,m.semver,h),k>0)return null;if(k===0&&(p.operator!==">="||m.operator!=="<="))return null}for(const U of v){if(p&&!s(U,String(p),h)||m&&!s(U,String(m),h))return null;for(const fe of f)if(!s(U,String(fe),h))return!1;return!0}let Z,x,Y,J,H=m&&!h.includePrerelease&&m.semver.prerelease.length?m.semver:!1,Q=p&&!h.includePrerelease&&p.semver.prerelease.length?p.semver:!1;H&&H.prerelease.length===1&&m.operator==="<"&&H.prerelease[0]===0&&(H=!1);for(const U of f){if(J=J||U.operator===">"||U.operator===">=",Y=Y||U.operator==="<"||U.operator==="<=",p){if(Q&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===Q.major&&U.semver.minor===Q.minor&&U.semver.patch===Q.patch&&(Q=!1),U.operator===">"||U.operator===">="){if(Z=c(p,U,h),Z===U&&Z!==p)return!1}else if(p.operator===">="&&!s(p.semver,String(U),h))return!1}if(m){if(H&&U.semver.prerelease&&U.semver.prerelease.length&&U.semver.major===H.major&&U.semver.minor===H.minor&&U.semver.patch===H.patch&&(H=!1),U.operator==="<"||U.operator==="<="){if(x=u(m,U,h),x===U&&x!==m)return!1}else if(m.operator==="<="&&!s(m.semver,String(U),h))return!1}if(!U.operator&&(m||p)&&k!==0)return!1}return!(p&&Y&&!m&&k!==0||m&&J&&!p&&k!==0||Q||H)},c=(d,f,h)=>{if(!d)return f;const v=n(d.semver,f.semver,h);return v>0?d:v<0||f.operator===">"&&d.operator===">="?f:d},u=(d,f,h)=>{if(!d)return f;const v=n(d.semver,f.semver,h);return v<0?d:v>0||f.operator==="<"&&d.operator==="<="?f:d};return pr=a,pr}var mr,Ws;function Oa(){if(Ws)return mr;Ws=1;const r=He(),e=ht(),t=ne(),s=rn(),n=qe(),a=na(),i=aa(),o=ia(),l=oa(),c=ua(),u=la(),d=ca(),f=da(),h=ce(),v=fa(),p=ha(),m=Or(),k=pa(),Z=ma(),x=mt(),Y=Tr(),J=sn(),H=nn(),Q=Sr(),U=Ar(),fe=an(),xe=ya(),we=yt(),be=de(),Oe=vt(),E=ga(),g=_a(),A=$a(),O=Ea(),N=xa(),T=Nr(),q=wa(),F=Ra(),z=Ia(),W=ka(),te=ba();return mr={parse:n,valid:a,clean:i,inc:o,diff:l,major:c,minor:u,patch:d,prerelease:f,compare:h,rcompare:v,compareLoose:p,compareBuild:m,sort:k,rsort:Z,gt:x,lt:Y,eq:J,neq:H,gte:Q,lte:U,cmp:fe,coerce:xe,Comparator:we,Range:be,satisfies:Oe,toComparators:E,maxSatisfying:g,minSatisfying:A,minVersion:O,validRange:N,outside:T,gtr:q,ltr:F,intersects:z,simplifyRange:W,subset:te,SemVer:t,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},mr}Oa();var it={exports:{}};it.exports;var Ys;function Ta(){return Ys||(Ys=1,(function(r){const t=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,s=(a=0)=>(i,o,l)=>`\x1B[${38+a};2;${i};${o};${l}m`;function n(){const a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(const[o,l]of Object.entries(i)){for(const[c,u]of Object.entries(l))i[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[c]=i[c],a.set(u[0],u[1]);Object.defineProperty(i,o,{value:l,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=t(),i.color.ansi16m=s(),i.bgColor.ansi256=t(10),i.bgColor.ansi16m=s(10),Object.defineProperties(i,{rgbToAnsi256:{value:(o,l,c)=>o===l&&l===c?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:o=>{const l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(o.toString(16));if(!l)return[0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(d=>d+d).join(""));const u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:o=>i.rgbToAnsi256(...i.hexToRgb(o)),enumerable:!1}}),i}Object.defineProperty(r,"exports",{enumerable:!0,get:n})})(it)),it.exports}var Sa=Ta();const bi=ft(Sa);function ze(r,e){const t=typeof r;if(t!==typeof e)return!1;if(Array.isArray(r)){if(!Array.isArray(e))return!1;const s=r.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(!ze(r[n],e[n]))return!1;return!0}if(t==="object"){if(!r||!e)return r===e;const s=Object.keys(r),n=Object.keys(e);if(s.length!==n.length)return!1;for(const i of s)if(!ze(r[i],e[i]))return!1;return!0}return r===e}function le(r){return encodeURI(Aa(r))}function Aa(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}const Na={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},Ca={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},Pa={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};let La=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function ke(r,e=Object.create(null),t=La,s=""){if(r&&typeof r=="object"&&!Array.isArray(r)){const a=r.$id||r.id;if(a){const i=new URL(a,t.href);i.hash.length>1?e[i.href]=r:(i.hash="",s===""?t=i:ke(r,e,t))}}else if(r!==!0&&r!==!1)return e;const n=t.href+(s?"#"+s:"");if(e[n]!==void 0)throw new Error(`Duplicate schema URI "${n}".`);if(e[n]=r,r===!0||r===!1)return e;if(r.__absolute_uri__===void 0&&Object.defineProperty(r,"__absolute_uri__",{enumerable:!1,value:n}),r.$ref&&r.__absolute_ref__===void 0){const a=new URL(r.$ref,t.href);a.hash=a.hash,Object.defineProperty(r,"__absolute_ref__",{enumerable:!1,value:a.href})}if(r.$recursiveRef&&r.__absolute_recursive_ref__===void 0){const a=new URL(r.$recursiveRef,t.href);a.hash=a.hash,Object.defineProperty(r,"__absolute_recursive_ref__",{enumerable:!1,value:a.href})}if(r.$anchor){const a=new URL("#"+r.$anchor,t.href);e[a.href]=r}for(let a in r){if(Pa[a])continue;const i=`${s}/${le(a)}`,o=r[a];if(Array.isArray(o)){if(Na[a]){const l=o.length;for(let c=0;c<l;c++)ke(o[c],e,t,`${i}/${c}`)}}else if(Ca[a])for(let l in o)ke(o[l],e,t,`${i}/${le(l)}`);else ke(o,e,t,i)}return e}const qa=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ja=[0,31,28,31,30,31,30,31,31,30,31,30,31],Da=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Ma=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Ua=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Za=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,za=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,Va=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Fa=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ba=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ga=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Xa=r=>{if(r[0]==='"')return!1;const[e,t,...s]=r.split("@");return!e||!t||s.length!==0||e.length>64||t.length>253||e[0]==="."||e.endsWith(".")||e.includes("..")||!/^[a-z0-9.-]+$/i.test(t)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(e)?!1:t.split(".").every(n=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(n))},Ha=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Wa=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Ya=r=>r.length>1&&r.length<80&&(/^P\d+([.,]\d+)?W$/.test(r)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(r)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(r));function pe(r){return r.test.bind(r)}const Js={date:on,time:un.bind(void 0,!1),"date-time":Qa,duration:Ya,uri:ri,"uri-reference":pe(Ua),"uri-template":pe(Za),url:pe(za),email:Xa,hostname:pe(Ma),ipv4:pe(Ha),ipv6:pe(Wa),regex:ni,uuid:pe(Va),"json-pointer":pe(Fa),"json-pointer-uri-fragment":pe(Ba),"relative-json-pointer":pe(Ga)};function Ja(r){return r%4===0&&(r%100!==0||r%400===0)}function on(r){const e=r.match(qa);if(!e)return!1;const t=+e[1],s=+e[2],n=+e[3];return s>=1&&s<=12&&n>=1&&n<=(s==2&&Ja(t)?29:ja[s])}function un(r,e){const t=e.match(Da);if(!t)return!1;const s=+t[1],n=+t[2],a=+t[3],i=!!t[5];return(s<=23&&n<=59&&a<=59||s==23&&n==59&&a==60)&&(!r||i)}const Ka=/t|\s/i;function Qa(r){const e=r.split(Ka);return e.length==2&&on(e[0])&&un(!0,e[1])}const ei=/\/|:/,ti=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function ri(r){return ei.test(r)&&ti.test(r)}const si=/[^\\]\\Z/;function ni(r){if(si.test(r))return!1;try{return new RegExp(r,"u"),!0}catch{return!1}}function ai(r){let e=0,t=r.length,s=0,n;for(;s<t;)e++,n=r.charCodeAt(s++),n>=55296&&n<=56319&&s<t&&(n=r.charCodeAt(s),(n&64512)==56320&&s++);return e}function K(r,e,t="2019-09",s=ke(e),n=!0,a=null,i="#",o="#",l=Object.create(null)){if(e===!0)return{valid:!0,errors:[]};if(e===!1)return{valid:!1,errors:[{instanceLocation:i,keyword:"false",keywordLocation:i,error:"False boolean schema."}]};const c=typeof r;let u;switch(c){case"boolean":case"number":case"string":u=c;break;case"object":r===null?u="null":Array.isArray(r)?u="array":u="object";break;default:throw new Error(`Instances of "${c}" type are not supported.`)}const{$ref:d,$recursiveRef:f,$recursiveAnchor:h,type:v,const:p,enum:m,required:k,not:Z,anyOf:x,allOf:Y,oneOf:J,if:H,then:Q,else:U,format:fe,properties:xe,patternProperties:we,additionalProperties:be,unevaluatedProperties:Oe,minProperties:E,maxProperties:g,propertyNames:A,dependentRequired:O,dependentSchemas:N,dependencies:T,prefixItems:q,items:F,additionalItems:z,unevaluatedItems:W,contains:te,minContains:X,maxContains:he,minItems:gt,maxItems:_t,uniqueItems:ln,minimum:Re,maximum:Ie,exclusiveMinimum:je,exclusiveMaximum:De,multipleOf:We,minLength:Ye,maxLength:Je,pattern:Cr,__absolute_ref__:Ke,__absolute_recursive_ref__:cn}=e,w=[];if(h===!0&&a===null&&(a=e),f==="#"){const C=a===null?s[cn]:a,S=`${o}/$recursiveRef`,M=K(r,a===null?e:a,t,s,n,C,i,S,l);M.valid||w.push({instanceLocation:i,keyword:"$recursiveRef",keywordLocation:S,error:"A subschema had errors."},...M.errors)}if(d!==void 0){const S=s[Ke||d];if(S===void 0){let _=`Unresolved $ref "${d}".`;throw Ke&&Ke!==d&&(_+=` Absolute URI "${Ke}".`),_+=`
|
|
2
2
|
Known schemas:
|
|
3
3
|
- ${Object.keys(s).join(`
|
|
4
4
|
- `)}`,new Error(_)}const M=`${o}/$ref`,I=K(r,S,t,s,n,a,i,M,l);if(I.valid||w.push({instanceLocation:i,keyword:"$ref",keywordLocation:M,error:"A subschema had errors."},...I.errors),t==="4"||t==="7")return{valid:w.length===0,errors:w}}if(Array.isArray(v)){let C=v.length,S=!1;for(let M=0;M<C;M++)if(u===v[M]||v[M]==="integer"&&u==="number"&&r%1===0&&r===r){S=!0;break}S||w.push({instanceLocation:i,keyword:"type",keywordLocation:`${o}/type`,error:`Instance type "${u}" is invalid. Expected "${v.join('", "')}".`})}else v==="integer"?(u!=="number"||r%1||r!==r)&&w.push({instanceLocation:i,keyword:"type",keywordLocation:`${o}/type`,error:`Instance type "${u}" is invalid. Expected "${v}".`}):v!==void 0&&u!==v&&w.push({instanceLocation:i,keyword:"type",keywordLocation:`${o}/type`,error:`Instance type "${u}" is invalid. Expected "${v}".`});if(p!==void 0&&(u==="object"||u==="array"?ze(r,p)||w.push({instanceLocation:i,keyword:"const",keywordLocation:`${o}/const`,error:`Instance does not match ${JSON.stringify(p)}.`}):r!==p&&w.push({instanceLocation:i,keyword:"const",keywordLocation:`${o}/const`,error:`Instance does not match ${JSON.stringify(p)}.`})),m!==void 0&&(u==="object"||u==="array"?m.some(C=>ze(r,C))||w.push({instanceLocation:i,keyword:"enum",keywordLocation:`${o}/enum`,error:`Instance does not match any of ${JSON.stringify(m)}.`}):m.some(C=>r===C)||w.push({instanceLocation:i,keyword:"enum",keywordLocation:`${o}/enum`,error:`Instance does not match any of ${JSON.stringify(m)}.`})),Z!==void 0){const C=`${o}/not`;K(r,Z,t,s,n,a,i,C).valid&&w.push({instanceLocation:i,keyword:"not",keywordLocation:C,error:'Instance matched "not" schema.'})}let Qe=[];if(x!==void 0){const C=`${o}/anyOf`,S=w.length;let M=!1;for(let I=0;I<x.length;I++){const _=x[I],j=Object.create(l),P=K(r,_,t,s,n,h===!0?a:null,i,`${C}/${I}`,j);w.push(...P.errors),M=M||P.valid,P.valid&&Qe.push(j)}M?w.length=S:w.splice(S,0,{instanceLocation:i,keyword:"anyOf",keywordLocation:C,error:"Instance does not match any subschemas."})}if(Y!==void 0){const C=`${o}/allOf`,S=w.length;let M=!0;for(let I=0;I<Y.length;I++){const _=Y[I],j=Object.create(l),P=K(r,_,t,s,n,h===!0?a:null,i,`${C}/${I}`,j);w.push(...P.errors),M=M&&P.valid,P.valid&&Qe.push(j)}M?w.length=S:w.splice(S,0,{instanceLocation:i,keyword:"allOf",keywordLocation:C,error:"Instance does not match every subschema."})}if(J!==void 0){const C=`${o}/oneOf`,S=w.length,M=J.filter((I,_)=>{const j=Object.create(l),P=K(r,I,t,s,n,h===!0?a:null,i,`${C}/${_}`,j);return w.push(...P.errors),P.valid&&Qe.push(j),P.valid}).length;M===1?w.length=S:w.splice(S,0,{instanceLocation:i,keyword:"oneOf",keywordLocation:C,error:`Instance does not match exactly one subschema (${M} matches).`})}if((u==="object"||u==="array")&&Object.assign(l,...Qe),H!==void 0){const C=`${o}/if`;if(K(r,H,t,s,n,a,i,C,l).valid){if(Q!==void 0){const M=K(r,Q,t,s,n,a,i,`${o}/then`,l);M.valid||w.push({instanceLocation:i,keyword:"if",keywordLocation:C,error:'Instance does not match "then" schema.'},...M.errors)}}else if(U!==void 0){const M=K(r,U,t,s,n,a,i,`${o}/else`,l);M.valid||w.push({instanceLocation:i,keyword:"if",keywordLocation:C,error:'Instance does not match "else" schema.'},...M.errors)}}if(u==="object"){if(k!==void 0)for(const I of k)I in r||w.push({instanceLocation:i,keyword:"required",keywordLocation:`${o}/required`,error:`Instance does not have required property "${I}".`});const C=Object.keys(r);if(E!==void 0&&C.length<E&&w.push({instanceLocation:i,keyword:"minProperties",keywordLocation:`${o}/minProperties`,error:`Instance does not have at least ${E} properties.`}),g!==void 0&&C.length>g&&w.push({instanceLocation:i,keyword:"maxProperties",keywordLocation:`${o}/maxProperties`,error:`Instance does not have at least ${g} properties.`}),A!==void 0){const I=`${o}/propertyNames`;for(const _ in r){const j=`${i}/${le(_)}`,P=K(_,A,t,s,n,a,j,I);P.valid||w.push({instanceLocation:i,keyword:"propertyNames",keywordLocation:I,error:`Property name "${_}" does not match schema.`},...P.errors)}}if(O!==void 0){const I=`${o}/dependantRequired`;for(const _ in O)if(_ in r){const j=O[_];for(const P of j)P in r||w.push({instanceLocation:i,keyword:"dependentRequired",keywordLocation:I,error:`Instance has "${_}" but does not have "${P}".`})}}if(N!==void 0)for(const I in N){const _=`${o}/dependentSchemas`;if(I in r){const j=K(r,N[I],t,s,n,a,i,`${_}/${le(I)}`,l);j.valid||w.push({instanceLocation:i,keyword:"dependentSchemas",keywordLocation:_,error:`Instance has "${I}" but does not match dependant schema.`},...j.errors)}}if(T!==void 0){const I=`${o}/dependencies`;for(const _ in T)if(_ in r){const j=T[_];if(Array.isArray(j))for(const P of j)P in r||w.push({instanceLocation:i,keyword:"dependencies",keywordLocation:I,error:`Instance has "${_}" but does not have "${P}".`});else{const P=K(r,j,t,s,n,a,i,`${I}/${le(_)}`);P.valid||w.push({instanceLocation:i,keyword:"dependencies",keywordLocation:I,error:`Instance has "${_}" but does not match dependant schema.`},...P.errors)}}}const S=Object.create(null);let M=!1;if(xe!==void 0){const I=`${o}/properties`;for(const _ in xe){if(!(_ in r))continue;const j=`${i}/${le(_)}`,P=K(r[_],xe[_],t,s,n,a,j,`${I}/${le(_)}`);if(P.valid)l[_]=S[_]=!0;else if(M=n,w.push({instanceLocation:i,keyword:"properties",keywordLocation:I,error:`Property "${_}" does not match schema.`},...P.errors),M)break}}if(!M&&we!==void 0){const I=`${o}/patternProperties`;for(const _ in we){const j=new RegExp(_,"u"),P=we[_];for(const ae in r){if(!j.test(ae))continue;const Pr=`${i}/${le(ae)}`,Lr=K(r[ae],P,t,s,n,a,Pr,`${I}/${le(_)}`);Lr.valid?l[ae]=S[ae]=!0:(M=n,w.push({instanceLocation:i,keyword:"patternProperties",keywordLocation:I,error:`Property "${ae}" matches pattern "${_}" but does not match associated schema.`},...Lr.errors))}}}if(!M&&be!==void 0){const I=`${o}/additionalProperties`;for(const _ in r){if(S[_])continue;const j=`${i}/${le(_)}`,P=K(r[_],be,t,s,n,a,j,I);P.valid?l[_]=!0:(M=n,w.push({instanceLocation:i,keyword:"additionalProperties",keywordLocation:I,error:`Property "${_}" does not match additional properties schema.`},...P.errors))}}else if(!M&&Oe!==void 0){const I=`${o}/unevaluatedProperties`;for(const _ in r)if(!l[_]){const j=`${i}/${le(_)}`,P=K(r[_],Oe,t,s,n,a,j,I);P.valid?l[_]=!0:w.push({instanceLocation:i,keyword:"unevaluatedProperties",keywordLocation:I,error:`Property "${_}" does not match unevaluated properties schema.`},...P.errors)}}}else if(u==="array"){_t!==void 0&&r.length>_t&&w.push({instanceLocation:i,keyword:"maxItems",keywordLocation:`${o}/maxItems`,error:`Array has too many items (${r.length} > ${_t}).`}),gt!==void 0&&r.length<gt&&w.push({instanceLocation:i,keyword:"minItems",keywordLocation:`${o}/minItems`,error:`Array has too few items (${r.length} < ${gt}).`});const C=r.length;let S=0,M=!1;if(q!==void 0){const I=`${o}/prefixItems`,_=Math.min(q.length,C);for(;S<_;S++){const j=K(r[S],q[S],t,s,n,a,`${i}/${S}`,`${I}/${S}`);if(l[S]=!0,!j.valid&&(M=n,w.push({instanceLocation:i,keyword:"prefixItems",keywordLocation:I,error:"Items did not match schema."},...j.errors),M))break}}if(F!==void 0){const I=`${o}/items`;if(Array.isArray(F)){const _=Math.min(F.length,C);for(;S<_;S++){const j=K(r[S],F[S],t,s,n,a,`${i}/${S}`,`${I}/${S}`);if(l[S]=!0,!j.valid&&(M=n,w.push({instanceLocation:i,keyword:"items",keywordLocation:I,error:"Items did not match schema."},...j.errors),M))break}}else for(;S<C;S++){const _=K(r[S],F,t,s,n,a,`${i}/${S}`,I);if(l[S]=!0,!_.valid&&(M=n,w.push({instanceLocation:i,keyword:"items",keywordLocation:I,error:"Items did not match schema."},..._.errors),M))break}if(!M&&z!==void 0){const _=`${o}/additionalItems`;for(;S<C;S++){const j=K(r[S],z,t,s,n,a,`${i}/${S}`,_);l[S]=!0,j.valid||(M=n,w.push({instanceLocation:i,keyword:"additionalItems",keywordLocation:_,error:"Items did not match additional items schema."},...j.errors))}}}if(te!==void 0)if(C===0&&X===void 0)w.push({instanceLocation:i,keyword:"contains",keywordLocation:`${o}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(X!==void 0&&C<X)w.push({instanceLocation:i,keyword:"minContains",keywordLocation:`${o}/minContains`,error:`Array has less items (${C}) than minContains (${X}).`});else{const I=`${o}/contains`,_=w.length;let j=0;for(let P=0;P<C;P++){const ae=K(r[P],te,t,s,n,a,`${i}/${P}`,I);ae.valid?(l[P]=!0,j++):w.push(...ae.errors)}j>=(X||0)&&(w.length=_),X===void 0&&he===void 0&&j===0?w.splice(_,0,{instanceLocation:i,keyword:"contains",keywordLocation:I,error:"Array does not contain item matching schema."}):X!==void 0&&j<X?w.push({instanceLocation:i,keyword:"minContains",keywordLocation:`${o}/minContains`,error:`Array must contain at least ${X} items matching schema. Only ${j} items were found.`}):he!==void 0&&j>he&&w.push({instanceLocation:i,keyword:"maxContains",keywordLocation:`${o}/maxContains`,error:`Array may contain at most ${he} items matching schema. ${j} items were found.`})}if(!M&&W!==void 0){const I=`${o}/unevaluatedItems`;for(S;S<C;S++){if(l[S])continue;const _=K(r[S],W,t,s,n,a,`${i}/${S}`,I);l[S]=!0,_.valid||w.push({instanceLocation:i,keyword:"unevaluatedItems",keywordLocation:I,error:"Items did not match unevaluated items schema."},..._.errors)}}if(ln)for(let I=0;I<C;I++){const _=r[I],j=typeof _=="object"&&_!==null;for(let P=0;P<C;P++){if(I===P)continue;const ae=r[P];(_===ae||j&&(typeof ae=="object"&&ae!==null)&&ze(_,ae))&&(w.push({instanceLocation:i,keyword:"uniqueItems",keywordLocation:`${o}/uniqueItems`,error:`Duplicate items at indexes ${I} and ${P}.`}),I=Number.MAX_SAFE_INTEGER,P=Number.MAX_SAFE_INTEGER)}}}else if(u==="number"){if(t==="4"?(Re!==void 0&&(je===!0&&r<=Re||r<Re)&&w.push({instanceLocation:i,keyword:"minimum",keywordLocation:`${o}/minimum`,error:`${r} is less than ${je?"or equal to ":""} ${Re}.`}),Ie!==void 0&&(De===!0&&r>=Ie||r>Ie)&&w.push({instanceLocation:i,keyword:"maximum",keywordLocation:`${o}/maximum`,error:`${r} is greater than ${De?"or equal to ":""} ${Ie}.`})):(Re!==void 0&&r<Re&&w.push({instanceLocation:i,keyword:"minimum",keywordLocation:`${o}/minimum`,error:`${r} is less than ${Re}.`}),Ie!==void 0&&r>Ie&&w.push({instanceLocation:i,keyword:"maximum",keywordLocation:`${o}/maximum`,error:`${r} is greater than ${Ie}.`}),je!==void 0&&r<=je&&w.push({instanceLocation:i,keyword:"exclusiveMinimum",keywordLocation:`${o}/exclusiveMinimum`,error:`${r} is less than ${je}.`}),De!==void 0&&r>=De&&w.push({instanceLocation:i,keyword:"exclusiveMaximum",keywordLocation:`${o}/exclusiveMaximum`,error:`${r} is greater than or equal to ${De}.`})),We!==void 0){const C=r%We;Math.abs(0-C)>=11920929e-14&&Math.abs(We-C)>=11920929e-14&&w.push({instanceLocation:i,keyword:"multipleOf",keywordLocation:`${o}/multipleOf`,error:`${r} is not a multiple of ${We}.`})}}else if(u==="string"){const C=Ye===void 0&&Je===void 0?0:ai(r);Ye!==void 0&&C<Ye&&w.push({instanceLocation:i,keyword:"minLength",keywordLocation:`${o}/minLength`,error:`String is too short (${C} < ${Ye}).`}),Je!==void 0&&C>Je&&w.push({instanceLocation:i,keyword:"maxLength",keywordLocation:`${o}/maxLength`,error:`String is too long (${C} > ${Je}).`}),Cr!==void 0&&!new RegExp(Cr,"u").test(r)&&w.push({instanceLocation:i,keyword:"pattern",keywordLocation:`${o}/pattern`,error:"String does not match pattern."}),fe!==void 0&&Js[fe]&&!Js[fe](r)&&w.push({instanceLocation:i,keyword:"format",keywordLocation:`${o}/format`,error:`String does not match format "${fe}".`})}return{valid:w.length===0,errors:w}}class Oi{schema;draft;shortCircuit;lookup;constructor(e,t="2019-09",s=!0){this.schema=e,this.draft=t,this.shortCircuit=s,this.lookup=ke(e)}validate(e){return K(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),ke(e,this.lookup)}}export{ci as A,li as B,oi as C,ki as P,Oi as V,L as Z,Ei as a,Ii as b,wi as c,ze as d,Ri as e,bi as f,ke as g,Zn as h,fi as i,xi as j,Ln as k,B as l,mi as m,gi as n,pi as o,zn as p,di as q,tn as r,ui as s,vi as t,kr as u,K as v,$i as w,_i as x,yi as y,hi as z};
|