@marimo-team/frontend 0.19.7-dev20 → 0.19.7-dev21

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.
Files changed (26) hide show
  1. package/dist/assets/{JsonOutput-BVI_kCSN.js → JsonOutput-Dmfgex9T.js} +1 -1
  2. package/dist/assets/{agent-panel-0HhcHaVj.js → agent-panel-Baphp2Rh.js} +1 -1
  3. package/dist/assets/{cell-editor-COotfHlv.js → cell-editor-Cqw8VDah.js} +1 -1
  4. package/dist/assets/{column-preview-tRvaNrl-.js → column-preview-BvwEAGt6.js} +1 -1
  5. package/dist/assets/{command-palette-D8_SvjIR.js → command-palette-aT5upvTH.js} +1 -1
  6. package/dist/assets/{dependency-graph-panel-DSeZ5qhn.js → dependency-graph-panel-CBiKFUBG.js} +1 -1
  7. package/dist/assets/download-kUMZIq8-.js +1 -0
  8. package/dist/assets/{edit-page-CdRvNDWO.js → edit-page-cuNCsDIq.js} +3 -3
  9. package/dist/assets/{file-explorer-panel-g80R2HMx.js → file-explorer-panel-CkOMaMbq.js} +1 -1
  10. package/dist/assets/{hooks-BCWaBVPa.js → hooks-DxXRX-38.js} +1 -1
  11. package/dist/assets/{index-Clc-qLX8.js → index-DOcwFnbt.js} +3 -3
  12. package/dist/assets/{layout--FMxALVU.js → layout-BkGjQBnQ.js} +1 -1
  13. package/dist/assets/{panels-D4X7kUpt.js → panels-B55q0DEo.js} +1 -1
  14. package/dist/assets/{run-page-DLppr0V5.js → run-page-6DKviU71.js} +1 -1
  15. package/dist/assets/{scratchpad-panel-Dh7Pdw2h.js → scratchpad-panel-CM5InA2G.js} +1 -1
  16. package/dist/assets/{session-panel-CCi2mMz9.js → session-panel-CRStSDDj.js} +1 -1
  17. package/dist/assets/{useCellActionButton-Cgy2ht_4.js → useCellActionButton-CQQ8dBy_.js} +1 -1
  18. package/dist/assets/{useDependencyPanelTab-gUps1qpH.js → useDependencyPanelTab-_ibASMD1.js} +1 -1
  19. package/dist/assets/{useNotebookActions-BuhoyoG6.js → useNotebookActions-REoVp8xc.js} +1 -1
  20. package/dist/assets/{utilities.esm-DOpL-6DC.js → utilities.esm-eBoXu7lR.js} +1 -1
  21. package/dist/index.html +5 -5
  22. package/package.json +1 -1
  23. package/src/utils/__tests__/iframe.test.ts +139 -0
  24. package/src/utils/download.ts +14 -0
  25. package/src/utils/iframe.ts +142 -0
  26. package/dist/assets/download-CBUrhm0-.js +0 -1
@@ -1,9 +1,9 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-Dtcd7Trh.js","./app-config-button-BK2508Jf.js","./ai-model-dropdown-GvB-5iLY.js","./cells-Cvo5AIrZ.js","./preload-helper-DItdS47A.js","./badge-Ce8wRjuQ.js","./cn-BKtXLv3a.js","./clsx-D8GwTfvk.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./jsx-runtime-ZmTK25f3.js","./button-B3uq-Cpf.js","./hotkeys-DghjL7BQ.js","./useEventListener-DIUKKfEy.js","./Combination-CMPwuAmi.js","./react-dom-C9fstfnp.js","./select-UFziUNxL.js","./menu-items-CJhvWPOk.js","./dist-uzvC4uAK.js","./createLucideIcon-CnW3RofX.js","./check-DdfN0k2d.js","./tooltip-CEc2ajau.js","./use-toast-rmUWldD_.js","./utils-CSDCHxwI.js","./useEvent-DO6uJBas.js","./_baseIsEqual-B9N9Mw_N.js","./_Uint8Array-BGESiCQL.js","./invariant-CAG_dYON.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./config-BgpK7vqH.js","./constants-B6Cb__3x.js","./Deferred-CrO5-0RA.js","./DeferredRequestRegistry-CO2AyNfd.js","./uuid-DercMavo.js","./requests-BsVD4CdD.js","./useLifecycle-DvpL8DUJ.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-CWqKLxBC.js","./useNonce-_Aax6sXd.js","./useTheme-CuyH5VNX.js","./once-Bul8mtFs.js","./capabilities-CUpom6r4.js","./createReducer-Cki97cx5.js","./dist-ChS0Dc_R.js","./dist-DBwNzi3C.js","./dist-CtsanegT.js","./dist-Cayq-K1c.js","./dist-TiFCI16_.js","./dist-BIKFl48f.js","./dist-B0VqT_4z.js","./dist-BYyu59D8.js","./dist-Gqv0jSNr.js","./stex-CtmkcLz7.js","./toDate-CgbKQM5E.js","./cjs-CH5Rj0g8.js","./type-D8l_U05h.js","./_arrayReduce-TT0iOGKY.js","./_baseProperty-NKyJO2oh.js","./debounce-B3mjKxHe.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-B9y7063w.js","./main-U5Goe76G.js","./cells-jmgGt1lS.css","./spinner-DaIKav-i.js","./renderShortcut-Dyrbz79Y.js","./dropdown-menu-df9T83C0.js","./chevron-right-DwagBitu.js","./kbd-C3JY7O_u.js","./multi-map-Cwq--tzY.js","./alert-BrGyZf9c.js","./dialog-C5Pa_iIq.js","./alert-dialog-Bv1sALHm.js","./textarea-hNyWE2r_.js","./label-C_OuzPjQ.js","./dist-R0oOvu5B.js","./useDebounce-D5NcotGm.js","./input-BeGfEf2S.js","./numbers-CSY3JIgn.js","./useNumberFormatter-c6GXymzg.js","./context-JwD-oSsl.js","./SSRProvider-CEHRCdjA.js","./usePress-Bup4EGrp.js","./links-DHZUhGz-.js","./popover-D16ZremR.js","./switch-Di5kBaS8.js","./table-BSASHvkq.js","./mode-DjraKyN2.js","./useAsyncData-C4XRy1BE.js","./error-banner-BWJsOpnc.js","./errors-2SszdW9t.js","./copy-r7i0SKI4.js","./get-6uJrSKbw.js","./memoize-BCOZVFBt.js","./capitalize-CXGTjPyK.js","./copy-CQ15EONK.js","./plus-BD5o34_i.js","./refresh-cw-CQd-1kjx.js","./trash-2-CyqGun26.js","./triangle-alert-B65rDESJ.js","./Inputs-D2Xn4HON.js","./Inputs-CuKU-ENz.css","./ImperativeModal-DstvzsTs.js","./settings-DOXWMfVd.js","./ErrorBoundary-BU1OKJ3L.js","./icons-BhEXrzsb.js","./types-DWpF5HiT.js","./file-video-camera-DW3v07j2.js","./file-Cs1JbsV6.js","./useInterval-Cu9ChZf-.js","./dates-CxJmszXT.js","./en-US-pRRbZZHE.js","./isValid-DcYggVWP.js","./links-CUKo4afc.js","./maps-vcWR7nnr.js","./tree-BdwmBGSx.js","./extends-B2LJnKU3.js","./chart-no-axes-column-W42b2ZIs.js","./circle-play-BuOtSgid.js","./youtube-8p26v8EM.js","./link-BsTPF7B0.js","./refresh-ccw-DLEiQDS3.js","./run-page-DLppr0V5.js","./panels-D4X7kUpt.js","./JsonOutput-BVI_kCSN.js","./tooltip-CE4l3v3B.js","./vega-loader.browser-CRZ52CKf.js","./precisionRound-BMPhtTJQ.js","./defaultLocale-D_rSvXvJ.js","./defaultLocale-C92Rrpmf.js","./MarimoErrorOutput-eoDwRuKU.js","./useInstallPackage-Dxl_p6oW.js","./cell-link-BITMERKQ.js","./datasource-D2hNaG_n.js","./state-CS48Wh7M.js","./copy-icon-wZr2McVB.js","./markdown-renderer-CoQm4UxN.js","./html-to-image-CJgqxZci.js","./focus-BeWVOW9Q.js","./LazyAnyLanguageCodeMirror-ygeIsKeo.js","./chunk-5FQGJX7Z-CVUXBqX6.js","./katex-Dc8yG8NU.js","./markdown-renderer-DdDKmWlR.css","./command-BjWSp3sa.js","./RenderHTML-DuJkj1GV.js","./useRunCells-jbEa8WGV.js","./purify.es-DNVQZNFu.js","./useIframeCapabilities-BVYqWHmA.js","./formats-BBDL2N4i.js","./download-CBUrhm0-.js","./emotion-is-prop-valid.esm-DD4AwVTU.js","./useDateFormatter-CS4kbWl2.js","./range-D2UKkEg-.js","./table-DZR6ewbN.js","./JsonOutput-B7vuddcd.css","./layout--FMxALVU.js","./name-cell-input-CHmzPoeN.js","./esm-DpMp6qko.js","./objectWithoutPropertiesLoose-DaPAPabU.js","./name-cell-input-ujOhus_y.css","./floating-outline-CxfziveS.js","./readonly-python-code-BlVsu50E.js","./useAddCell-CklpKCq2.js","./eye-off-BhExYOph.js","./process-output-CwcoTocd.js","./esm-l4kcybiY.js","./dist-C9XNJlLJ.js","./dist-fsvXrTzp.js","./dist-6cIjG-FS.js","./dist-kdxmhWbv.js","./dist-CldbmzwA.js","./dist-BtWo0SNF.js","./dist-BVyBw1BD.js","./dist-OM63llNV.js","./dist-BmvOPdv_.js","./dist-DDGPBuw4.js","./dist-BZY_uvFb.js","./dist-CS67iP1P.js","./dist-C4h-1T2Q.js","./dist-D_XLVesh.js","./apl-DVWF09P_.js","./asciiarmor-l0ikukqg.js","./asn1-CsdiW8T7.js","./brainfuck-C66TQVgP.js","./clike-Cc3gZvM_.js","./clojure-kT8c8jnq.js","./cmake-B3S-FpMv.js","./cobol-BrIP6mPV.js","./coffeescript-ByxLkrBT.js","./commonlisp-BjIOT_KK.js","./crystal-CQtLRTna.js","./css-CU1K_XUx.js","./cypher-An7BGqKu.js","./d-fbf-n02o.js","./diff-DbzsqZEz.js","./dtd-DnQAYfYi.js","./dylan-DeXj1TAN.js","./ecl-B8-j0xrP.js","./eiffel-DdiJ6Uyn.js","./elm-CAmK9rmL.js","./erlang-hqy6gURy.js","./factor-Di_n0Vcb.js","./simple-mode-BVXe8Gj5.js","./forth-CsaVBHm8.js","./fortran-DGNsp41i.js","./gas-BX8xjNNw.js","./gherkin--u9ojH5d.js","./groovy-Drg0Cp0-.js","./haskell-D96A8Bg_.js","./haxe-B_4sGLdj.js","./idl-CA47OCO3.js","./javascript-i8I6A_gg.js","./julia-DYuDt1xN.js","./livescript-C72Fe_WX.js","./lua-CrUucAvm.js","./mathematica-GLtAlQgr.js","./mbox-DsldZPOv.js","./mirc-Dpq184o1.js","./mllike-eEM7KiC0.js","./modelica-BKRVU7Ex.js","./mscgen-LPWHVNeM.js","./mumps-46YgImgy.js","./nsis-Bh7CNuij.js","./ntriples-CABx3n6p.js","./octave-ChjrzDtA.js","./oz-BZ0G7oQI.js","./pascal-BDWWzmkf.js","./perl-C1twkBDg.js","./pig-CKZ-JUXx.js","./powershell-BmnkAUC8.js","./properties-B3qF4Ofl.js","./protobuf-CdWFIAi_.js","./pug-DEhrk7ZA.js","./puppet-oVG7sgNi.js","./python-GCb3koKb.js","./q-CylRV6ad.js","./r-BV8FQxo8.js","./rpm-0QmIraaR.js","./ruby-h-bI2J_W.js","./sas-BvwZbLPG.js","./scheme-BPuaxh6y.js","./shell-DmziZNbR.js","./sieve-DT4D9aeW.js","./smalltalk-lAY6r45k.js","./sparql-nFvL3z3l.js","./stylus-BawZsgUJ.js","./swift-CdaDqiGL.js","./tcl-D5FopUjH.js","./textile-Cum4VLew.js","./toml-5si8PWt8.js","./troff-qCd7sECP.js","./ttcn-cfg-BlUyan1P.js","./ttcn-BZC1oJG1.js","./turtle-BGa4pyfx.js","./vb-G28CZ46r.js","./vbscript-DOr4ZYtx.js","./velocity-DRewaasJ.js","./verilog-DmcGbw8B.js","./vhdl-C6ktucee.js","./webidl-DHu7cr9_.js","./xquery-BuvyHzVJ.js","./yacas-C_HpkPlV.js","./z80-BDlRltlF.js","./code-xml-XLwHyDBr.js","./ellipsis-5ip-qDfN.js","./play-BPIh-ZEU.js","./trash-DMqDgJ5r.js","./prop-types-BiQYf0aU.js","./layout-BjXzDXoG.css","./utilities.esm-DOpL-6DC.js","./toggle-jWKnIArU.js","./globals-uEPg-4pq.js","./share-CKfNi8fD.js","./_baseSet-5Rdwpmr3.js","./react-resizable-panels.browser.esm-Ctj_10o2.js","./types-z6Sk3JCV.js","./requests-BEWfBENt.js","./runs-CAvk6jVz.js","./request-registry-CB8fU98Q.js","./ws-BApgRfsy.js","./panels-B4E3DsXP.css","./icon-32x32-ClOCJ7rj.js","./download-B9SUL40m.js","./edit-page-CdRvNDWO.js","./loro_wasm_bg-CDxXoyfI.js","./useDeleteCell-BRWEDSc9.js","./add-cell-with-ai-COxBrLrH.js","./blob-CuXvdYPX.js","./cell-editor-COotfHlv.js","./useSplitCell-CdjW9REr.js","./hooks-BCWaBVPa.js","./dist-CzfJUeh-.js","./circle-check-C57eOpl0.js","./save-PMHbdtqc.js","./cell-editor-Iey559K_.css","./useCellActionButton-Cgy2ht_4.js","./multi-icon-DZsiUPo5.js","./multi-icon-pwGWVz3d.css","./circle-plus-CnWl9uZo.js","./useNotebookActions-BuhoyoG6.js","./add-database-form-BtP14Anj.js","./write-secret-modal-DfRIeQB5.js","./field-BN2j4cag.js","./form-DazVYGCT.js","./_baseEach-BhAgFun2.js","./hasIn-CycJImp8.js","./file-plus-corner-Da9I6dgU.js","./house-DhFkiXz7.js","./square-C8Tw_XXG.js","./CellStatus-DFhwmbo5.js","./workflow-CMjI9cxl.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-gUps1qpH.js","./panel-context-B7WTvLhE.js","./kiosk-mode-Djm3JPwk.js","./useBoolean-BE72e3yb.js","./arrow-left-Cb_73j1f.js","./clipboard-paste-BiDF-cqm.js","./rotate-ccw-B_yU4f05.js","./square-function-CqXXKtIq.js","./edit-page-Dstp9NQ5.css","./glide-data-editor-DEwgx2xp.js","./types-CS34eOZi.js","./click-outside-container-BVQDdpbt.js","./dist-CdBsAJTp.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-Cosas-Z0.js","./spec-DJ3YTCel.js","./react-vega-CoHwoAp_.js","./linear-DjglEiG4.js","./timer-ffBO1paY.js","./init-AtRnKt23.js","./time-lLuPpFd-.js","./range-Bc7-zhbC.js","./treemap-DqSsE4KM.js","./path-BMloFSsK.js","./colors-C3_wIR8c.js","./ordinal-DTOdb5Da.js","./arc-3DY1fURi.js","./math-BIeW4iGV.js","./array-BF0shS9G.js","./step-COhf-b0R.js","./line-BCZzhM6G.js","./isString-DtNk7ov1.js","./react-plotly-V8H4ohaU.js","./vega-component-B3_9VVhH.js","./useDeepCompareMemoize-ZPd9PxYl.js","./_baseUniq-BP3iN0f3.js","./slides-component-0GonPC6Y.js","./slides-component-vtdQFHpk.css","./ImageComparisonComponent-dmuxayWy.js","./mermaid-R2vBM-JH.js","./dist-C04_12Dz.js","./chunk-JA3XYJ7Z-CaauVIYw.js","./src-BKLwm2RN.js","./src-Cf4NnJCp.js","./chunk-S3R3BYOJ-DgPGJLrA.js","./chunk-ABZYJK2D-t8l6Viza.js","./isEmpty-CgX_-6Mt.js","./chunk-ATLVNIR6-VxibvAOV.js","./chunk-CVBHYZKI-CsebuiSO.js","./chunk-EXTU4WIE-CyW9PraH.js","./chunk-HN2XXSSU-Bw_9WyjM.js","./chunk-JZLCHNYA-cYgsW1_e.js","./chunk-MI3HLSF2-Csy17Fj5.js","./chunk-N4CR4FBY-eo9CRI73.js","./chunk-QXUST7PY-CUUVFKsm.js","./chunk-XAJISQIX-Bus-Z8i1.js","./katex-D_uHS_Lg.js","./mhchem-4Yr1r21Y.js"])))=>i.map(i=>d[i]);
2
- var EE=Object.defineProperty;var _E=(Za,sa,hr)=>sa in Za?EE(Za,sa,{enumerable:!0,configurable:!0,writable:!0,value:hr}):Za[sa]=hr;var q=(Za,sa,hr)=>_E(Za,typeof sa!="symbol"?sa+"":sa,hr);import{o as RE,r as TE,s as xa,t as cu}from"./chunk-LvLJmgfZ.js";import{c as Tl,i as Oe,l as Ln,n as $e,s as Al,u as Il}from"./useEvent-DO6uJBas.js";import{t as AE}from"./react-BGmjiNul.js";import{$r as S1,An as k1,Fn as N1,G as mu,Gn as E1,Gt as IE,Hn as Pl,I as PE,Jn as ME,Jr as FE,Kn as VE,Qr as zE,Rn as OE,Rt as $E,Sr as LE,St as pu,Ur as BE,Vr as HE,Xn as WE,Zr as UE,ai as _1,ci as Bn,ei as hu,hi as R1,kn as fu,li as KE,mi as ZE,qr as qE,ri as Hn,rt as YE,ti as GE,x as JE,y as T1,zt as A1,__tla as QE}from"./cells-Cvo5AIrZ.js";import{t as Wn}from"./react-dom-C9fstfnp.js";import{A as $r,B as ke,C as Ht,E as XE,F as I1,I as ft,J as e_,N as Y,P as $,R as F,S as sr,T as W,U as t_,V as va,a as P1,b as ye,h as a_,i as M1,j as r_,k as He,n as F1,r as n_,s as gu,t as xu,v as i_,w as ee,x as V1,z as Pa}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as l_}from"./get-6uJrSKbw.js";import{t as vu}from"./pick-B_6Qi5aM.js";import{n as o_}from"./useLifecycle-DvpL8DUJ.js";import{t as Ma}from"./capitalize-CXGTjPyK.js";import{a as s_,i as yu,n as d_}from"./type-D8l_U05h.js";import{i as u_,r as z1,t as c_}from"./tooltip-CE4l3v3B.js";import{A as m_,G as bu,H as p_,I as h_,J as f_,K as Lr,L as g_,M as x_,N as v_,O as y_,Q as b_,R as w_,T as O1,U as D_,V as $1,W as Fa,Y as L1,Z as B1,at as Un,et as j_,ft as C_,g as S_,it as wu,j as k_,k as N_,lt as H1,ot as E_}from"./utilities.esm-DOpL-6DC.js";import{G as Kn,J as __,K as R_,X as Ml,Y as W1,Z as T_,at as U1,et as K1,it as A_,nt as Du,q as I_,rt as Fl,st as Vl,tt as zl}from"./ai-model-dropdown-GvB-5iLY.js";import{a as Va,d as se,f as za}from"./hotkeys-DghjL7BQ.js";import{t as Br}from"./invariant-CAG_dYON.js";import{A as P_,O as M_,S as F_,g as V_,i as z_,k as O_,l as $_,v as L_,y as B_}from"./utils-CSDCHxwI.js";import{r as ju}from"./constants-B6Cb__3x.js";import{A as Z1,E as q1,O as Ze,a as H_,h as W_,i as Y1,j as U_,l as K_,n as Z_,p as q_,r as Cu,t as Y_,w as G1}from"./config-BgpK7vqH.js";import{a as G_,d as J_,l as Q_,o as X_,r as eR,t as tR,u as aR}from"./switch-Di5kBaS8.js";import{t as rR}from"./globals-uEPg-4pq.js";import{t as Ol}from"./ErrorBoundary-BU1OKJ3L.js";import{n as nR,r as St,t as $l}from"./useEventListener-DIUKKfEy.js";import{t as iR}from"./jsx-runtime-ZmTK25f3.js";import{n as Oa,t as Ce}from"./button-B3uq-Cpf.js";import{n as Ll,t as U}from"./cn-BKtXLv3a.js";import{at as lR}from"./dist-DBwNzi3C.js";import{$ as oR,A as sR,C as dR,D as uR,E as Su,F as ku,G as cR,H as mR,J as J1,K as pR,O as hR,P as Nu,S as fR,T as Q1,U as X1,V as ev,W as gR,Y as Zn,b as xR,d as vR,et as yR,j as tv,l as bR,nt as wR,q as av,r as DR,t as rv,tt as jR,u as CR,v as SR,w as kR,x as Eu,y as NR,__tla as ER}from"./JsonOutput-BVI_kCSN.js";import{c as _R,n as nv,p as RR,r as ya,t as TR}from"./once-Bul8mtFs.js";import"./cjs-CH5Rj0g8.js";import"./main-U5Goe76G.js";import"./useNonce-_Aax6sXd.js";import{n as AR}from"./requests-BsVD4CdD.js";import{t as kt}from"./createLucideIcon-CnW3RofX.js";import{A as IR,C as iv,D as PR,O as MR,S as FR,_ as VR,a as lv,b as zR,c as ov,d as qn,f as sv,g as OR,h as $R,i as _u,k as LR,l as BR,m as dv,n as HR,p as WR,r as ba,s as UR,t as KR,u as ra,v as ZR,y as qR}from"./spec-DJ3YTCel.js";import{D as YR,E as GR,O as JR,h as QR,k as XR,l as eT,m as tT,n as aT,w as rT}from"./add-cell-with-ai-COxBrLrH.js";import{t as nT,__tla as iT}from"./LazyAnyLanguageCodeMirror-ygeIsKeo.js";import{i as lT,r as oT}from"./chat-components-BV83l1rZ.js";import{a as sT,i as dT,n as uT,o as cT,t as uv}from"./useBoolean-BE72e3yb.js";import{_ as mT,a as pT,c as $a,d as hT,f as fT,h as Hr,i as Pt,l as Ru,m as cv,n as La,o as Bl,p as mv,r as Wr,s as dr,t as Ba}from"./select-UFziUNxL.js";import{d as Hl,r as gT}from"./download-CBUrhm0-.js";import{t as Wl}from"./chevron-right-DwagBitu.js";import{i as xT,o as vT}from"./maps-vcWR7nnr.js";import"./markdown-renderer-CoQm4UxN.js";import{u as yT}from"./toDate-CgbKQM5E.js";import{P as pv,a as Tu,c as bT,i as wT,o as DT,p as hv,r as fv,t as gv}from"./dropdown-menu-df9T83C0.js";import{t as jT}from"./code-xml-XLwHyDBr.js";import{t as CT}from"./copy-CQ15EONK.js";import{t as ST}from"./download-B9SUL40m.js";import{i as kT}from"./file-video-camera-DW3v07j2.js";import{r as NT,t as ET}from"./types-DWpF5HiT.js";import{n as _T,t as RT}from"./house-DhFkiXz7.js";import{n as Ul,t as Yn}from"./spinner-DaIKav-i.js";import{n as TT,t as Au}from"./readonly-python-code-BlVsu50E.js";import{n as AT,t as Kl}from"./types-CS34eOZi.js";import{t as xv}from"./plus-BD5o34_i.js";import{t as IT}from"./refresh-cw-CQd-1kjx.js";import{$ as vv,A as Iu,C as PT,D as MT,E as Pu,G as FT,H as VT,J as Ur,K as Zl,L as Mu,M as ql,N as yv,O as bv,P as Yl,Q as wa,R as zT,T as Gl,U as OT,W as Ha,X as Wa,Y as Ua,Z as wv,_ as Jl,at as Kr,b as $T,c as LT,ct as st,d as Dv,et as jv,g as Zr,h as Gn,i as BT,it as HT,k as Fu,l as WT,lt as UT,m as Ql,n as KT,nt as Vu,o as zu,ot as ZT,p as Cv,q as Sv,r as Ou,rt as ur,s as qT,st as Xl,t as $u,tt as eo,u as to,v as Lu,w as YT}from"./input-BeGfEf2S.js";import{t as GT}from"./settings-DOXWMfVd.js";import{t as ao}from"./square-function-CqXXKtIq.js";import{_ as Qe,a as dt,c as at,d as cr,f as JT,g as kv,h as QT,i as XT,l as it,n as eA,o as Jn,p as Nv,r as tA,t as aA,u as ct,v as na}from"./textarea-hNyWE2r_.js";import{a as rA,d as nA,i as iA,l as lA,o as Ev,r as oA,s as sA,t as dA,u as uA}from"./column-preview-tRvaNrl-.js";import{t as cA}from"./square-C8Tw_XXG.js";import{t as _v}from"./trash-2-CyqGun26.js";import{t as ro}from"./triangle-alert-B65rDESJ.js";import{i as Rv,r as mA,t as pA}from"./es-D8BOePqo.js";import{t as yt}from"./preload-helper-DItdS47A.js";import"./dist-Cayq-K1c.js";import"./dist-TiFCI16_.js";import"./dist-BIKFl48f.js";import"./dist-B0VqT_4z.js";import"./dist-BYyu59D8.js";import{n as hA,t as Wt}from"./use-toast-rmUWldD_.js";import{r as qr}from"./useTheme-CuyH5VNX.js";import{C as no,E as Bu,S as io,_ as We,d as fA,f as Tv,g as Ut,h as gA,l as xA,m as vA,p as yA,u as bA,v as Hu,w as Ee,x as Qn}from"./Combination-CMPwuAmi.js";import{l as wA,r as Av,t as DA}from"./dist-uzvC4uAK.js";import{a as Wu,i as Nt,n as Uu,o as Ku,r as Zu,s as Iv,t as Mt}from"./tooltip-CEc2ajau.js";import{d as lo,u as Pv}from"./menu-items-CJhvWPOk.js";import"./dates-CxJmszXT.js";import{a as jA,n as CA,t as SA}from"./mode-DjraKyN2.js";import{a as kA,c as NA,i as EA,l as _A,n as RA,s as TA,t as AA}from"./alert-dialog-Bv1sALHm.js";import{C as IA,D as PA,E as Mv,F as Fv,I as Vv,L as Yr,N as MA,O as Xe,R as zv,n as FA,s as oo,t as Ov,x as VA,z as Da}from"./usePress-Bup4EGrp.js";import{t as zA}from"./SSRProvider-CEHRCdjA.js";import{n as Kt,r as OA,t as ia}from"./useDateFormatter-CS4kbWl2.js";import{n as $A,t as qe}from"./context-JwD-oSsl.js";import{t as LA}from"./useNumberFormatter-c6GXymzg.js";import{a as BA,c as la,i as HA,l as Xn,r as $v,s as ei,t as Lv,u as oa}from"./popover-D16ZremR.js";import{i as Gr,r as WA}from"./numbers-CSY3JIgn.js";import{n as UA,t as Bv}from"./useDebounce-D5NcotGm.js";import{t as KA}from"./ImperativeModal-DstvzsTs.js";import"./share-CKfNi8fD.js";import{n as Hv,r as Wv,t as ZA}from"./errors-2SszdW9t.js";import"./vega-loader.browser-CRZ52CKf.js";import"./defaultLocale-D_rSvXvJ.js";import"./defaultLocale-C92Rrpmf.js";import{t as so}from"./copy-icon-wZr2McVB.js";import{t as Me}from"./RenderHTML-DuJkj1GV.js";import"./purify.es-DNVQZNFu.js";import{a as Uv,c as qA,i as Kv,l as YA,n as qu,o as GA,r as Zv,s as JA}from"./multi-map-Cwq--tzY.js";import{n as QA,r as Yu,t as uo}from"./alert-BrGyZf9c.js";import{n as Jr,t as mr}from"./error-banner-BWJsOpnc.js";import{n as Et}from"./useAsyncData-C4XRy1BE.js";import{a as XA,c as e6,o as t6,r as a6,s as r6,t as n6}from"./command-BjWSp3sa.js";import{t as qv}from"./dist-R0oOvu5B.js";import{__tla as i6}from"./chunk-5FQGJX7Z-CVUXBqX6.js";import"./katex-Dc8yG8NU.js";import"./html-to-image-CJgqxZci.js";import{a as l6,o as o6}from"./focus-BeWVOW9Q.js";import{a as Yv,i as Gu,n as Ju,o as Qr,r as pr,t as Qu}from"./table-BSASHvkq.js";import{t as Ka}from"./useDeepCompareMemoize-ZPd9PxYl.js";import{t as Gv}from"./renderShortcut-Dyrbz79Y.js";import{t as ti}from"./label-C_OuzPjQ.js";import{t as s6}from"./chat-display-C4qhRyWq.js";import"./esm-DpMp6qko.js";import{n as d6}from"./icons-BhEXrzsb.js";import{t as u6}from"./bundle.esm-2AjO7UK5.js";import{a as Jv,c as c6,d as Qv,f as co,i as m6,l as p6,n as Xv,o as h6,p as ja,r as f6,s as ey,t as g6,u as oe}from"./form-DazVYGCT.js";import"./react-resizable-panels.browser.esm-Ctj_10o2.js";import{a as x6,i as ty,n as ay,t as ry}from"./field-BN2j4cag.js";import{i as v6,n as y6,r as b6}from"./floating-outline-CxfziveS.js";Promise.all([(()=>{try{return QE}catch{}})(),(()=>{try{return ER}catch{}})(),(()=>{try{return iT}catch{}})(),(()=>{try{return i6}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var Za=kt("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),sa=kt("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),hr=kt("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),iy=kt("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),ly=kt("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),oy=kt("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),sy=kt("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),dy=kt("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),uy=kt("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),cy=kt("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),rc=kt("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),my=kt("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),nc=kt("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),py=xa(R1(),1);const Ca={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function hy(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:Ca.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:Ca.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:Ca.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:Ca.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function fy(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Ca.MATCH:r.push(t[n]),n++;break;case Ca.DELETE:n++;break;case Ca.INSERT:r.push(a);break;case Ca.SUBSTITUTE:r.push(a),n++;break}return r}function gy(t,e,a,r){let n=hy(t,e,a);return{merged:fy(t,n.operations,r),edits:n}}var ai=0,ri="";function xy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Hn.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||ic()]))}}if(!e){let o=t.cells.map(d=>d.id??Hn.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,ic()]))}}let{merged:n,edits:i}=gy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},lc());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;o<e.cells.length;o++){let d=e.cells[o];if(d){let u=d.id??Hn.create();l.push(u);let c=n[o]||lc();c.id=u,a.set(u,c),r.set(u,d)}else se.warn("Merged notebook cell is null at index",o)}return{cellIds:l,sessionCellData:a,notebookCellData:r}}function ic(){return{id:Hn.create(),name:ri,code:ri,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function lc(){return{id:Hn.create(),code_hash:null,console:[],outputs:[]}}function vy(t,e){var a,r,n;return{id:t,name:e.name??ri,code:e.code??ri,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((a=e.config)==null?void 0:a.column)??null,disabled:((r=e.config)==null?void 0:r.disabled)??!1,hide_code:((n=e.config)==null?void 0:n.hide_code)??!1},serializedEditorState:null}}function yy(t){let e=PE();if(!t)return e;let a=t.outputs||[],r=a.find(i=>i.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ai};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ai}}}let n=t.console||[];return{...e,outline:e.output?YE(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ai}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ai})}}function by(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=xy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=vy(o,u)),l[o]=yy(d)}return{cellIds:HE.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var wy=J(),oc=Object.freeze({left:0,top:0,width:16,height:16}),ni=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...oc,...ni}),po=Object.freeze({...Xr,body:"",hidden:!1}),Dy=Object.freeze({width:null,height:null}),sc=Object.freeze({...Dy,...ni});function jy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var Cy=/[\s,]+/;function Sy(t,e){e.split(Cy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var dc={...sc,preserveAspectRatio:""};function uc(t){let e={...dc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=jy(a("rotate","")),Sy(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function ky(t,e){for(let a in dc)if(t[a]!==e[a])return!0;return!1}var cc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ii(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ii(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ii(o,a)?null:o}return null},ii=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Ny(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function mc(t,e){let a=Ny(t,e);for(let r in po)r in ni?r in t&&!(r in a)&&(a[r]=ni[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Ey(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function _y(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=mc(r[o]||n[o],i)}return l(e),a.forEach(l),mc(t,i)}function pc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Ey(t);for(let n in r){let i=r[n];i&&(e(n,_y(t,n,i)),a.push(n))}return a}var Ry={provider:"",aliases:{},not_found:{},...oc};function ho(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function hc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ho(t,Ry))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!ho(i,po))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!ho(i,po))return null}return e}var li=Object.create(null);function Ty(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function da(t,e){let a=li[t]||(li[t]=Object.create(null));return a[e]||(a[e]=Ty(t,e))}function fc(t,e){return hc(e)?pc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ay(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Iy(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(li)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(li[r]||{})).forEach(n=>{let i=da(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var tn=!1;function gc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=da(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function xc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=da(a.provider,a.prefix);return e?Ay(r,a.name,e):(r.missing.add(a.name),!0)}function vc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return hc(t)&&(t.prefix="",pc(t,(n,i)=>{xc(n,i)&&(r=!0)})),r}let a=t.prefix;return ii({provider:e,prefix:a,name:"a"})?!!fc(da(e,a),t):!1}function yc(t){return!!an(t)}function Py(t){let e=an(t);return e&&{...Xr,...e}}function My(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=da(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let m={provider:i,prefix:l,name:o};c.push(m)}),e}function bc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function Fy(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||bc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var Vy=0;function zy(t,e,a){let r=Vy++,n=bc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var fo=Object.create(null);function wc(t,e){fo[t]=e}function go(t){return fo[t]||fo[""]}function Oy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var $y={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ly(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let N=t.resources.slice(0);for(l=[];N.length>1;){let k=Math.floor(Math.random()*N.length);l.push(N[k]),N=N.slice(0,k).concat(N.slice(k+1))}l=l.concat(N)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,m=null,p=[],h=[];typeof r=="function"&&h.push(r);function g(){m&&(m=(clearTimeout(m),null))}function f(){d==="pending"&&(d="aborted"),g(),p.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),p=[]}function x(N,k){k&&(h=[]),typeof N=="function"&&h.push(N)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:p.length,subscribe:x,abort:f}}function w(){d="failed",h.forEach(N=>{N(void 0,c)})}function D(){p.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),p=[]}function j(N,k,y){let C=k!=="success";switch(p=p.filter(_=>_!==N),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(k==="abort"){c=y,w();return}if(C){c=y,p.length||(l.length?S():w());return}if(g(),D(),!t.random){let _=t.resources.indexOf(N.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function S(){if(d!=="pending")return;g();let N=l.shift();if(N===void 0){if(p.length){m=setTimeout(()=>{g(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let k={status:"pending",resource:N,callback:(y,C)=>{j(k,y,C)}};p.push(k),u++,m=setTimeout(S,t.rotate),a(N,e,k.callback)}return setTimeout(S),b}function Dc(t){let e={...$y,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=Ly(e,l,o,(c,m)=>{r(),d&&d(c,m)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function xo(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var oi=Object.create(null),si=["https://api.simplesvg.com","https://api.unisvg.com"],vo=[];si.length>0;)si.length===1||Math.random()>.5?vo.push(si.shift()):vo.push(si.pop());oi[""]=xo({resources:["https://api.iconify.design"].concat(vo)});function jc(t,e){let a=xo(e);return a===null?!1:(oi[t]=a,!0)}function di(t){return oi[t]}function By(){return Object.keys(oi)}function Cc(){}var yo=Object.create(null);function Hy(t){if(!yo[t]){let e=di(t);if(!e)return;yo[t]={config:e,redundancy:Dc(e)}}return yo[t]}function Sc(t,e,a){let r,n;if(typeof t=="string"){let i=go(t);if(!i)return a(void 0,424),Cc;n=i.send;let l=Hy(t);l&&(r=l.redundancy)}else{let i=xo(t);if(i){r=Dc(i);let l=go(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),Cc):r.query(e,n,a)().abort}function kc(){}function Wy(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Fy(t)}))}function Uy(t){let e=[],a=[];return t.forEach(r=>{(r.match(cc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!fc(t,a).length){r();return}}catch(n){console.error(n)}r(),Wy(t)}function Nc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Ky(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Nc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Nc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Uy(n);if(o.length&&rn(t,o,null),!l.length)return;let d=r.match(cc)?go(a):null;if(!d){rn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Sc(a,u,c=>{rn(t,u.icons,c)})})}))}var bo=(t,e)=>{let a=My(Oy(t,!0,gc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(da(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,m=da(d,u),p=m.pendingIcons||(m.pendingIcons=new Set);p.has(c)||(p.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Ky(o,d)}),e?zy(e,a,n):kc},Zy=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bo([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function Ec(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function qy(t,e){if(typeof t=="object")return{data:Ec(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Ec(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bo([a],()=>e(t,a,an(a)))}}var _c=!1;try{_c=navigator.vendor.indexOf("Apple")===0}catch{}function Yy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(_c||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Gy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Jy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(t,e,a){if(e===1)return t;if(a||(a=100),typeof t=="number")return Math.ceil(t*e*a)/a;if(typeof t!="string")return t;let r=t.split(Gy);if(r===null||!r.length)return t;let n=[],i=r.shift(),l=Jy.test(i);for(;;){if(l){let o=parseFloat(i);isNaN(o)?n.push(i):n.push(Math.ceil(o*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");l=!l}}function Qy(t,e="defs"){let a="",r=t.indexOf("<"+e);for(;r>=0;){let n=t.indexOf(">",r),i=t.indexOf("</"+e);if(n===-1||i===-1)break;let l=t.indexOf(">",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Xy(t,e){return t?"<defs>"+t+"</defs>"+e:e}function eb(t,e,a){let r=Qy(t);return Xy(r.defs,e+r.content+a)}var tb=t=>t==="unset"||t==="undefined"||t==="none";function Rc(t,e){let a={...Xr,...t},r={...sc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let x=[],b=f.hFlip,w=f.vFlip,D=f.rotate;b?w?D+=2:(x.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),x.push("scale(-1 1)"),n.top=n.left=0):w&&(x.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),x.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,x.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:x.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,x.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),x.length&&(i=eb(i,'<g transform="'+x.join(" ")+'">',"</g>"))});let l=r.width,o=r.height,d=n.width,u=n.height,c,m;l===null?(m=o===null?"1em":o==="auto"?u:o,c=wo(m,d/u)):(c=l==="auto"?d:l,m=o===null?wo(c,u/d):o==="auto"?u:o);let p={},h=(f,x)=>{tb(x)||(p[f]=x.toString())};h("width",c),h("height",m);let g=[n.left,n.top,d,u];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:i}}function Do(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function ab(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rb(t){return"data:image/svg+xml,"+ab(t)}function Tc(t){return'url("'+rb(t)+'")'}var ui=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function nb(t){ui=t}function ib(){return ui}function lb(t,e){let a=di(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function ob(t){return t===404}var sb=(t,e,a)=>{let r=[],n=lb(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function db(t){if(typeof t=="string"){let e=di(t);if(e)return e.path}return"/"}var ub={prepare:sb,send:(t,e,a)=>{if(!ui){a("abort",424);return}let r=db(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;ui(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(ob(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function cb(t,e,a){da(a||"",e).loadIcons=t}function mb(t,e,a){da(a||"",e).loadIcon=t}var jo="data-style",Ac="";function pb(t){Ac=t}function Ic(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(jo));a||(a=document.createElement("style"),a.setAttribute(jo,jo),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Ac}function Pc(){wc("",ub),gc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;jc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:yc,iconExists:yc,getIcon:Py,listIcons:Iy,addIcon:xc,addCollection:vc,calculateSize:wo,buildIcon:Rc,iconToHTML:Do,svgToURL:Tc,loadIcons:bo,loadIcon:Zy,addAPIProvider:jc,setCustomIconLoader:mb,setCustomIconsLoader:cb,appendCustomStyle:pb,_api:{getAPIConfig:di,setAPIModule:wc,sendAPIQuery:Sc,setFetch:nb,getFetch:ib,listAPIProviders:By}}}var Co={"background-color":"currentColor"},Mc={"background-color":"transparent"},Fc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Vc={"-webkit-mask":Co,mask:Co,background:Mc};for(let t in Vc){let e=Vc[t];for(let a in Fc)e[t+"-"+a]=Fc[a]}function zc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function hb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,l=Tc(Do(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:zc(i.width),height:zc(i.height),...a?Co:Mc};for(let u in d)o.setProperty(u,d[u]);return r}var nn;function fb(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function gb(t){return nn===void 0&&fb(),nn?nn.createHTML(t):t}function xb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=gb(Do(t.body,a)),e.firstChild}function So(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function Oc(t,e){let a=e.icon.data,r=e.customisations,n=Rc(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=xb(n):l=hb(n,{...Xr,...a},i==="mask");let o=So(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function $c(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function vb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ic(d,u),this._state=$c({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ic(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}Oc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),m=uc(this);(d.attrMode!==c||ky(d.customisations,m)||!So(this._shadowRoot))&&this._renderIcon(d.icon,m,c)}_iconChanged(d){let u=qy(d,(c,m,p)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let g={value:c,name:m,data:p};g.data?this._gotIconData(g):h.icon=g});u.data?this._gotIconData(u):this._state=$c(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=So(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,uc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let m=Yy(d.data.body,c),p=this._state.inline;Oc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:p,customisations:u,attrMode:c,renderedMode:m})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Pc();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:w6,disableCache:D6,iconLoaded:j6,iconExists:C6,getIcon:S6,listIcons:k6,addIcon:N6,addCollection:E6,calculateSize:_6,buildIcon:R6,iconToHTML:T6,svgToURL:A6,loadIcons:I6,loadIcon:P6,setCustomIconLoader:M6,setCustomIconsLoader:F6,addAPIProvider:V6,_api:z6}=vb()||Pc(),v=xa(AE(),1),s=xa(iR(),1);const yb=()=>((0,wy.c)(1),null);var Lc=J();const Bc=(0,v.memo)(t=>{let e=(0,Lc.c)(3),{children:a}=t,{theme:r}=qr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,v.useLayoutEffect)(n,i),a});Bc.displayName="ThemeProvider";const bb=t=>{let e=(0,Lc.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},ko=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:v.lazy(()=>a())}};var wb=J();const Db=()=>{let t=(0,wb.c)(25),[e,a]=Ln(E_);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),Wt({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{Wt({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=r);let n=r,i;t[2]===a?i=t[3]:(i=()=>{a(null)},t[2]=a,t[3]=i);let l=i,o=jb,d;t[4]===l?d=t[5]:(d=D=>!D&&l(),t[4]=l,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(NA,{children:[(0,s.jsxs)(_A,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(ME,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(kA,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=u):u=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=c):c=t[7];let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(CT,{className:"h-3 w-3"}),t[8]=m):m=t[8];let p;t[9]===n?p=t[10]:(p=(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[c,(0,s.jsxs)(Ce,{variant:"outline",size:"xs",onClick:n,className:"flex items-center gap-1",children:[m,"Copy"]})]}),t[9]=n,t[10]=p);let h;t[11]===e?h=t[12]:(h=(0,s.jsx)("pre",{className:"bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80",children:e}),t[11]=e,t[12]=h);let g;t[13]!==p||t[14]!==h?(g=(0,s.jsxs)("div",{className:"my-4 overflow-hidden",children:[p,h]}),t[13]=p,t[14]=h,t[15]=g):g=t[15];let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)(Ce,{variant:"outline",onClick:o,className:"flex items-center gap-2",children:[(0,s.jsx)(RT,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let x;t[17]===l?x=t[18]:(x=(0,s.jsxs)(TA,{children:[f,(0,s.jsx)(RA,{onClick:l,children:"Dismiss"})]}),t[17]=l,t[18]=x);let b;t[19]!==x||t[20]!==g?(b=(0,s.jsxs)(EA,{className:"max-w-2xl",children:[u,g,x]}),t[19]=x,t[20]=g,t[21]=b):b=t[21];let w;return t[22]!==b||t[23]!==d?(w=(0,s.jsx)(AA,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=w):w=t[24],w};function jb(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function Cb(){return window.ResizeObserver!==void 0}function ci(t){let{ref:e,box:a,onResize:r}=t;(0,v.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(Cb()){let i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var Sb=Wn();function kb(t,e=!0){let[a,r]=(0,v.useState)(!0),n=a&&e;return Da(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Hc(t,n,(0,v.useCallback)(()=>r(!1),[])),n}function Nb(t,e){let[a,r]=(0,v.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Hc(t,n,(0,v.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Hc(t,e,a){Da(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,Sb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Zt={top:"top",bottom:"top",left:"left",right:"left"},mi={top:"bottom",bottom:"top",left:"right",right:"left"},Eb={top:"left",left:"top"},No={top:"height",left:"width"},Wc={width:"totalWidth",height:"totalHeight"},pi={},rt=typeof document<"u"?window.visualViewport:null;function Uc(t){let e=0,a=0,r=0,n=0,i=0,l=0,o={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,o.top=u.scrollTop||t.scrollTop,o.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,l=rt.offsetLeft)}else({width:e,height:a,top:i,left:l}=fr(t,!1)),o.top=t.scrollTop,o.left=t.scrollLeft,r=e,n=a;return VA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(o.top=0,o.left=0,i=(rt==null?void 0:rt.pageTop)??0,l=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:o,top:i,left:l}}function _b(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Kc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[No[t]],u=r.scroll[Zt[t]]+i,c=d+r.scroll[Zt[t]]-i,m=e-o+l[t]-r[Zt[t]],p=e-o+a+l[t]-r[Zt[t]];return m<u?u-m:p>c?Math.max(c-p,u-m):0}function Rb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Zc(t){if(pi[t])return pi[t];let[e,a]=t.split(" "),r=Zt[e]||"right",n=Eb[r];Zt[a]||(a="center");let i=No[r],l=No[n];return pi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},pi[t]}function Eo(t,e,a,r,n,i,l,o,d,u){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:g,crossSize:f}=r,x={};x[h]=t[h]??0,m==="center"?x[h]+=((t[f]??0)-(a[f]??0))/2:m!==h&&(x[h]+=(t[f]??0)-(a[f]??0)),x[h]+=i;let b=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(x[h]=Vu(x[h],b,w),c===p){let D=o?l[g]:e[Wc[g]];x[mi[p]]=Math.floor(D-t[p]+n)}else x[p]=Math.floor(t[p]+t[g]+n);return x}function Tb(t,e,a,r,n,i,l,o){let d=r?a.height:e[Wc.height],u=t.top==null?a.top+(d-(t.bottom??0)-l):a.top+t.top,c=o==="top"?Math.max(0,u+l-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function qc(t,e,a,r,n,i){let{placement:l,axis:o,size:d}=i;return l===o?Math.max(0,a[o]-t[o]-(t.scroll[o]??0)+e[o]-(r[o]??0)-r[mi[o]]-n):Math.max(0,t[d]+t[o]+t.scroll[o]-e[o]-a[o]-a[d]-(r[o]??0)-r[mi[o]]-n)}function Ab(t,e,a,r,n,i,l,o,d,u,c,m,p,h,g,f){let x=Zc(t),{size:b,crossAxis:w,crossSize:D,placement:j,crossPlacement:S}=x,N=Eo(e,o,a,x,c,m,u,p,g,f),k=c,y=qc(o,u,e,n,i+c,x);if(l&&r[b]>y){let z=Zc(`${mi[j]} ${S}`),L=Eo(e,o,a,z,c,m,u,p,g,f);qc(o,u,e,n,i+c,z)>y&&(x=z,N=L,k=c)}let C="bottom";x.axis==="top"?x.placement==="top"?C="top":x.placement==="bottom"&&(C="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?C="bottom":x.crossPlacement==="bottom"&&(C="top"));let _=Kc(w,N[w],a[D],o,d,i,u);N[w]+=_;let E=Tb(N,o,u,p,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),N=Eo(e,o,a,x,k,m,u,p,g,f),_=Kc(w,N[w],a[D],o,d,i,u),N[w]+=_;let T={},P=e[w]-N[w]-n[Zt[w]],R=P+.5*e[D],M=g/2+f,I=Zt[w]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),V=a[D]-I-g/2-f;T[w]=Vu(Vu(R,e[w]+g/2-(N[w]+n[Zt[w]]),e[w]+e[D]-g/2-(N[w]+n[Zt[w]])),M,V),{placement:j,crossPlacement:S}=x,g?P=T[w]:S==="right"?P+=e[D]:S==="center"&&(P+=e[D]/2);let A=j==="left"||j==="top"?a[b]:0,O={x:j==="top"||j==="bottom"?P:A,y:j==="left"||j==="right"?P:A};return{position:N,maxHeight:E,arrowOffsetLeft:T.left,arrowOffsetTop:T.top,placement:j,triggerAnchorPoint:O}}function Ib(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:o,offset:d,crossOffset:u,maxHeight:c,arrowSize:m=0,arrowBoundaryOffset:p=0}=t,h=r instanceof HTMLElement?Pb(r):document.documentElement,g=h===document.documentElement,f=window.getComputedStyle(h).position,x=!!f&&f!=="static",b=g?fr(a,!1):Yc(a,h,!1);if(!g){let{marginTop:y,marginLeft:C}=window.getComputedStyle(a);b.top+=parseInt(y,10)||0,b.left+=parseInt(C,10)||0}let w=fr(r,!0),D=Rb(r);w.width+=(D.left??0)+(D.right??0),w.height+=(D.top??0)+(D.bottom??0);let j=_b(n),S=Uc(o),N=Uc(h),k=o.tagName==="BODY"?fr(h,!1):Yc(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(N.scroll.top=0,N.scroll.left=0),Ab(e,b,w,j,D,i,l,S,N,k,d,u,x,c,m,p)}function _o(t,e){let{top:a,left:r,width:n,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(n=t.offsetWidth,i=t.offsetHeight),{top:a,left:r,width:n,height:i}}function fr(t,e){let{top:a,left:r,width:n,height:i}=_o(t,e),{scrollTop:l,scrollLeft:o,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+l-d,left:r+o-u,width:n,height:i}}function Yc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=_o(t,a);else{n=fr(t,a);let i=fr(e,a),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Pb(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Gc(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Gc(e);)e=e.parentElement;return e||document.documentElement}function Gc(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}var Mb=new WeakMap;function Fb(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,v.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Mb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function gr(t,e){return t-e*Math.floor(t/e)}var Jc=1721426;function qa(t,e,a,r){e=ln(t,e);let n=e-1,i=-2;return a<=2?i=0:Sa(e)&&(i=-1),Jc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function Sa(t){return t%4==0&&(t%100!=0||t%400==0)}function ln(t,e){return t==="BC"?1-e:e}function hi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Vb={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},gt=class{fromJulianDay(t){let e=t,a=e-Jc,r=Math.floor(a/146097),n=gr(a,146097),i=Math.floor(n/36524),l=gr(n,36524),o=Math.floor(l/1461),d=gr(l,1461),u=Math.floor(d/365),[c,m]=hi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),p=e-qa(c,m,1,1),h=2;e<qa(c,m,3,1)?h=0:Sa(m)&&(h=1);let g=Math.floor(((p+h)*12+373)/367);return new nt(c,m,g,e-qa(c,m,g,1)+1)}toJulianDay(t){return qa(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Vb[Sa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Sa(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}},zb={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ue(t,e){return e=Fe(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Ob(t,e){return e=Fe(e,t.calendar),t=Ya(t),e=Ya(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function Ro(t,e){return fi(t.calendar,e.calendar)&&Ue(t,e)}function fi(t,e){var a,r;return((a=t.isEqual)==null?void 0:a.call(t,e))??((r=e.isEqual)==null?void 0:r.call(e,t))??t.identifier===e.identifier}function Qc(t,e){return Ue(t,gi(e))}var $b={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function To(t,e,a){let r=t.calendar.toJulianDay(t),n=a?$b[a]:Kb(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Xc(t){return ca(Date.now(),t)}function gi(t){return mt(Xc(t))}function em(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function tm(t,e){return am(t)-am(e)}function am(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var rm=null;function xi(){return rm??(rm=new Intl.DateTimeFormat().resolvedOptions().timeZone),rm}function Ya(t){return t.subtract({days:t.day-1})}function vi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Lb(t){return Ya(t.subtract({months:t.month-1}))}function Bb(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function Hb(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function on(t,e,a){let r=To(t,e,a);return t.subtract({days:r})}function Wb(t,e,a){return on(t,e,a).add({days:6})}var nm=new Map,Ao=new Map;function Ub(t){if(Intl.Locale){let a=nm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&nm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Kb(t){let e=Ao.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Ao.set(t,e),e.firstDay}let a=Ub(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e=r==="mon"?{firstDay:1}:r==="tue"?{firstDay:2}:r==="wed"?{firstDay:3}:r==="thu"?{firstDay:4}:r==="fri"?{firstDay:5}:r==="sat"?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&zb[a]||0};Ao.set(t,e)}return e.firstDay}function Zb(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((To(Ya(t),e,a)+r)/7)}function Io(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Po(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function xr(t){return t=Fe(t,new gt),im(ln(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function im(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Mo(t,e){if(e==="UTC")return 0;if(t>0&&e===xi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=om(t,e);return im(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var lm=new Map;function om(t,e){let a=lm.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),lm.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var sm=864e5;function qb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Yb(t,e,n))}function Yb(t,e,a){let r=om(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function ua(t,e,a="compatible"){let r=qt(t);if(e==="UTC")return xr(r);if(e===xi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=ln(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=xr(r),i=Mo(n-sm,e),l=Mo(n+sm,e),o=qb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function dm(t,e,a="compatible"){return new Date(ua(t,e,a))}function ca(t,e){let a=Mo(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new wm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function mt(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function qt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new bm(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(fi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ga(r),r}function Gb(t,e,a){return t instanceof wm?t.timeZone===e?t:Qb(t,e):ca(ua(t,e,a),e)}function Jb(t){let e=xr(t)-t.offset;return new Date(e)}function Qb(t,e){return Fe(ca(xr(t)-t.offset,e),t.calendar)}var sn=36e5;function yi(t,e){var o;let a=t.copy(),r="hour"in a?pm(a,e):0;Fo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Vo(a),um(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Xb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Fo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Vo(t){for(;t.month<1;)Fo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Fo(t,1)}function Xb(t){for(;t.day<1;)t.month--,Vo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Vo(t)}function um(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ga(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),um(t)}function zo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function cm(t,e){return yi(t,zo(e))}function Oo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ga(a),a}function dn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),mm(a),a}function ew(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=bi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=bi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=bi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=bi(t.hour,24),e}function mm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function bi(t,e){let a=t%e;return a<0&&(a+=e),a}function pm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ew(t)}function hm(t,e){let a=t.copy();return pm(a,e),a}function tw(t,e){return hm(t,zo(e))}function $o(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ma(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ga(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ma(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ma(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ma(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ga(n),n}function Lo(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ma(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ma(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ma(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ma(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ma(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let i=Math.abs(e);t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function fm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?ua(yi(qt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):xr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ca(a,t.timeZone),t.calendar)}function aw(t,e){return fm(t,zo(e))}function rw(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=t.hour>=12;n=g?12:0,i=g?23:11}let l=qt(t),o=Fe(dn(l,{hour:n}),new gt),d=[ua(o,t.timeZone,"earlier"),ua(o,t.timeZone,"later")].filter(g=>ca(g,t.timeZone).day===o.day)[0],u=Fe(dn(l,{hour:i}),new gt),c=[ua(u,t.timeZone,"earlier"),ua(u,t.timeZone,"later")].filter(g=>ca(g,t.timeZone).day===u.day).pop(),m=xr(t)-t.offset,p=Math.floor(m/sn),h=m%sn;return m=ma(p,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(ca(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Lo(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ca(ua($o(qt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function nw(t,e,a){let r=qt(t),n=dn(Oo(r,e),e);return n.compare(r)===0?t:Fe(ca(ua(n,t.timeZone,a),t.timeZone),t.calendar)}var iw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,lw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,gm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ka(t){let e=t.match(iw);if(!e)throw gm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(Yt(e[1],0,9999),Yt(e[2],1,12),1);return a.day=Yt(e[3],1,a.calendar.getDaysInMonth(a)),a}function wi(t){let e=t.match(lw);if(!e)throw gm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=Yt(e[1],-9999,9999),r=new bm(a<1?"BC":"AD",a<1?-a+1:a,Yt(e[2],1,12),1,e[4]?Yt(e[4],0,23):0,e[5]?Yt(e[5],0,59):0,e[6]?Yt(e[6],0,59):0,e[7]?Yt(e[7],0,1/0)*1e3:0);return r.day=Yt(e[3],0,r.calendar.getDaysInMonth(r)),r}function Yt(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function xm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function vm(t){let e=Fe(t,new gt),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function ym(t){return`${vm(t)}T${xm(t)}`}function ow(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function sw(t){return`${ym(t)}${ow(t.offset)}[${t.timeZone}]`}function Bo(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var dw=new WeakMap,nt=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day):new Xu(this.calendar,this.year,this.month,this.day)}add(e){return yi(this,e)}subtract(e){return cm(this,e)}set(e){return Oo(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toDate(e){return dm(this,e)}toString(){return vm(this)}compare(e){return em(this,e)}constructor(...e){oo(this,dw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ga(this)}},uw=new WeakMap,cw=class ny{copy(){return new ny(this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return tw(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Lo(this,e,a,r)}toString(){return xm(this)}compare(e){return tm(this,e)}constructor(e=0,a=0,r=0,n=0){oo(this,uw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,mm(this)}},mw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return yi(this,e)}subtract(e){return cm(this,e)}set(e){return Oo(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return $o(this,e,a,r);default:return Lo(this,e,a,r)}}toDate(e,a){return dm(this,e,a)}toString(){return ym(this)}compare(e){let a=em(this,e);return a===0?tm(this,qt(e)):a}constructor(...e){oo(this,mw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ga(this)}},pw=new WeakMap,wm=class tc{copy(){return this.era?new tc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new tc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return fm(this,e)}subtract(e){return aw(this,e)}set(e,a){return nw(this,e,a)}cycle(e,a,r){return rw(this,e,a,r)}toDate(){return Jb(this)}toString(){return sw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Gb(e,this.timeZone).toDate().getTime()}constructor(...e){oo(this,pw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ga(this)}},vr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Di=[1867,1911,1925,1988,2018],Na=["meiji","taisho","showa","heisei","reiwa"];function Dm(t){let e=vr.findIndex(([a,r,n])=>t.year<a||t.year===a&&t.month<r||t.year===a&&t.month===r&&t.day<n);return e===-1?vr.length-1:e===0?0:e-1}function Ho(t){let e=Di[Na.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new nt(t.year+e,t.month,t.day)}var fw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=Dm(e);return new nt(this,Na[a],e.year-Di[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Ho(t))}balanceDate(t){let e=Ho(t),a=Dm(e);Na[a]!==t.era&&(t.era=Na[a],t.year=e.year-Di[a]),this.constrainDate(t)}constrainDate(t){let e=Na.indexOf(t.era),a=hw[e];if(a!=null){let[r,n,i]=a,l=r-Di[e];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)))}if(t.year===1&&e>=0){let[,r,n]=vr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Na}getYearsInEra(t){let e=Na.indexOf(t.era),a=vr[e],r=vr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Ho(t))}getMinimumMonthInYear(t){let e=jm(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=jm(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function jm(t){if(t.year===1)return vr[Na.indexOf(t.era)]}var Cm=-543,gw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=ln(e.era,e.year);return new nt(this,a-Cm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Sm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Sm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Sm(t){let[e,a]=hi(t.year+Cm);return new nt(e,a,t.month,t.day)}var ji=1911;function km(t){return t.era==="minguo"?t.year+ji:1-t.year+ji}function Nm(t){let e=t-ji;return e>0?["minguo",e]:["before_minguo",1-e]}var xw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Nm(ln(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Em(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Nm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Em(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ji}constructor(...t){super(...t),this.identifier="roc"}};function Em(t){let[e,a]=hi(km(t));return new nt(e,a,t.month,t.day)}var _m=1948320,Rm=[0,31,62,93,124,155,186,216,246,276,306,336],vw=class{fromJulianDay(t){let e=t-_m,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-Rm[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=_m-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=Rm[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||gr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Wo=78,Tm=80,yw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Wo,r=t-qa(e.era,e.year,1,1),n;r<Tm?(a--,n=Sa(e.year-1)?31:30,r+=n+155+90+10):(n=Sa(e.year)?31:30,r-=Tm);let i,l;if(r<n)i=1,l=r+1;else{let o=r-n;o<155?(i=Math.floor(o/31)+2,l=o%31+1):(o-=155,i=Math.floor(o/30)+7,l=o%30+1)}return new nt(this,a,i,l)}toJulianDay(t){let[e,a]=hi(t.year+Wo),r,n;return Sa(a)?(r=31,n=qa(e,a,3,21)):(r=30,n=qa(e,a,3,22)),t.month===1?n+t.day-1:(n+=r+Math.min(t.month-2,5)*31,t.month>=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&Sa(t.year+Wo)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Ci=1948440,Am=1948439,_t=1300,yr=1600,bw=460322;function Si(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Im(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+Si(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-Si(e,r,n,1)+1)}function Pm(t){return(14+11*t)%30<11}var Uo=class{fromJulianDay(t){return Im(this,Ci,t)}toJulianDay(t){return Si(Ci,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Pm(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Pm(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},ww=class extends Uo{fromJulianDay(t){return Im(this,Am,t)}toJulianDay(t){return Si(Am,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Dw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Mm,br;function ki(t){return bw+br[t-_t]}function un(t,e){let a=t-_t,r=1<<11-(e-1);return(Mm[a]&r)===0?29:30}function Fm(t,e){let a=ki(t);for(let r=1;r<e;r++)a+=un(t,r);return a}function Vm(t){return br[t+1-_t]-br[t-_t]}var jw=class extends Uo{fromJulianDay(t){let e=t-Ci,a=ki(_t),r=ki(yr);if(e<a||e>r)return super.fromJulianDay(t);{let n=_t-1,i=1,l=1;for(;l>0;){n++,l=e-ki(n)+1;let o=Vm(n);if(l===o){i=12;break}else if(l<o){let d=un(n,i);for(i=1;l>d;)l-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Fm(n,i)+1)}}toJulianDay(t){return t.year<_t||t.year>yr?super.toJulianDay(t):Ci+Fm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<_t||t.year>yr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<_t||t.year>yr?super.getDaysInYear(t):Vm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Mm||(Mm=new Uint16Array(Uint8Array.from(atob(Dw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(yr-_t+1);let t=0;for(let e=_t;e<=yr;e++){br[e-_t]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},zm=347997,Om=1080,$m=24*Om,Cw=29,Sw=12*Om+793,kw=Cw*$m+Sw;function Ja(t){return gr(t*7+1,19)<7}function Ni(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return gr(3*(r+1),7)<3&&(r+=1),r}function Nw(t){let e=Ni(t-1),a=Ni(t);return Ni(t+1)-a===356?2:a-e===382?1:0}function cn(t){return Ni(t)+Nw(t)}function Lm(t){return cn(t+1)-cn(t)}function Ew(t){let e=Lm(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ei(t,e){if(e>=6&&!Ja(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=Ew(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Ja(t)?30:0:30}var _w=class{fromJulianDay(t){let e=t-zm,a=e*$m/kw,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let l=1,o=0;for(;o<i;)o+=Ei(r,l),l++;l--,o-=Ei(r,l);let d=i-o;return new nt(this,r,l,d)}toJulianDay(t){let e=cn(t.year);for(let a=1;a<t.month;a++)e+=Ei(t.year,a);return e+t.day+zm}getDaysInMonth(t){return Ei(t.year,t.month)}getMonthsInYear(t){return Ja(t.year)?13:12}getDaysInYear(t){return Lm(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(Ja(e.year)&&!Ja(t.year)&&e.month>6?t.month--:!Ja(e.year)&&Ja(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ko=1723856,Bm=1824665,Zo=5500;function _i(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function qo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-_i(t,a,1,1))/30);return[a,r,e+1-_i(t,a,r,1)]}function Hm(t){return Math.floor(t%4/3)}function Wm(t,e){return e%13==0?Hm(t)+5:30}var Yo=class{fromJulianDay(t){let[e,a,r]=qo(Ko,t),n="AM";return e<=0&&(n="AA",e+=Zo),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Zo),_i(Ko,e,t.month,t.day)}getDaysInMonth(t){return Wm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Hm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},Rw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Ko,t);return e+=Zo,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Tw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Bm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),_i(Bm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Wm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Go(t){switch(t){case"buddhist":return new gw;case"ethiopic":return new Yo;case"ethioaa":return new Rw;case"coptic":return new Tw;case"hebrew":return new _w;case"indian":return new yw;case"islamic-civil":return new Uo;case"islamic-tbla":return new ww;case"islamic-umalqura":return new jw;case"japanese":return new fw;case"persian":return new vw;case"roc":return new xw;default:return new gt}}function Aw(t){let e=T_({usage:"search",...t}),a=(0,v.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,v.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,v.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,v.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ke=typeof document<"u"?window.visualViewport:null;function Iw(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:m=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:f,maxHeight:x,arrowBoundaryOffset:b=0}=t,[w,D]=(0,v.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,m,p,g,e,x,b,a],S=(0,v.useRef)(Ke==null?void 0:Ke.scale);(0,v.useEffect)(()=>{g&&(S.current=Ke==null?void 0:Ke.scale)},[g]);let N=(0,v.useCallback)(()=>{var T,P;if(h===!1||!g||!n.current||!r.current||!c||(Ke==null?void 0:Ke.scale)!==S.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let R=(T=document.activeElement)==null?void 0:T.getBoundingClientRect(),M=l.current.getBoundingClientRect();C={type:"top",offset:((R==null?void 0:R.top)??0)-M.top},C.offset>M.height/2&&(C.type="bottom",C.offset=((R==null?void 0:R.bottom)??0)-M.bottom)}let _=n.current;!x&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Ib({placement:Mw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:m,crossOffset:p,maxHeight:x,arrowSize:a??(i!=null&&i.current?_o(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(R=>_.style[R]=E.position[R]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let R=document.activeElement.getBoundingClientRect(),M=l.current.getBoundingClientRect(),I=R[C.type]-M[C.type];l.current.scrollTop+=I-C.offset}D(E)}},j);Da(N,j),Pw(N),ci({ref:n,onResize:N}),ci({ref:r,onResize:N});let k=(0,v.useRef)(!1);Da(()=>{let C,_=()=>{k.current=!0,clearTimeout(C),C=setTimeout(()=>{k.current=!1},500),N()},E=()=>{k.current&&_()};return Ke==null||Ke.addEventListener("resize",_),Ke==null||Ke.addEventListener("scroll",E),()=>{Ke==null||Ke.removeEventListener("resize",_),Ke==null||Ke.removeEventListener("scroll",E)}},[N]);let y=(0,v.useCallback)(()=>{k.current||(f==null||f())},[f,k]);return Fb({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:N}}function Pw(t){Da(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Fw({children:t}){let e=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(FA.Provider,{value:e},t)}function Vw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=zv(d=>{a&&Um(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=zv(d=>{a&&a(d)});(0,v.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=MA(u);if(typeof PointerEvent<"u"){let m=p=>{d.isPointerDown&&Um(p,e)&&o(p),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",m,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",m,!0)}}},[e,r,l,o])}function Um(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var Gt=[];function zw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,v.useEffect)(()=>{if(n&&!Gt.includes(e))return Gt.push(e),()=>{let g=Gt.indexOf(e);g>=0&&Gt.splice(g,1)}},[n,e]);let d=()=>{Gt[Gt.length-1]===e&&a&&a()},u=g=>{(!o||o(g.target))&&Gt[Gt.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!o||o(g.target))&&(Gt[Gt.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};Vw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Yl({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||I_(g.relatedTarget)||(!o||o(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...p},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ri=0,Km;function Ow(t={}){let{isDisabled:e}=t;Da(()=>{if(!e)return Ri++,Ri===1&&(Km=Mv()?Lw():$w()),()=>{Ri--,Ri===0&&Km()}},[e])}function $w(){let t=window.innerWidth-document.documentElement.clientWidth;return Fv(t>0&&("scrollbarGutter"in document.documentElement.style?Jo(document.documentElement,"scrollbarGutter","stable"):Jo(document.documentElement,"paddingRight",`${t}px`)),Jo(document.documentElement,"overflow","hidden"))}function Lw(){let t,e=!1,a=d=>{let u=d.target;t=A_(u)?u:Fl(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(e=!0)},r=document.createElement("style");r.textContent=`@layer {
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-Dtcd7Trh.js","./app-config-button-BK2508Jf.js","./ai-model-dropdown-GvB-5iLY.js","./cells-Cvo5AIrZ.js","./preload-helper-DItdS47A.js","./badge-Ce8wRjuQ.js","./cn-BKtXLv3a.js","./clsx-D8GwTfvk.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./jsx-runtime-ZmTK25f3.js","./button-B3uq-Cpf.js","./hotkeys-DghjL7BQ.js","./useEventListener-DIUKKfEy.js","./Combination-CMPwuAmi.js","./react-dom-C9fstfnp.js","./select-UFziUNxL.js","./menu-items-CJhvWPOk.js","./dist-uzvC4uAK.js","./createLucideIcon-CnW3RofX.js","./check-DdfN0k2d.js","./tooltip-CEc2ajau.js","./use-toast-rmUWldD_.js","./utils-CSDCHxwI.js","./useEvent-DO6uJBas.js","./_baseIsEqual-B9N9Mw_N.js","./_Uint8Array-BGESiCQL.js","./invariant-CAG_dYON.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./config-BgpK7vqH.js","./constants-B6Cb__3x.js","./Deferred-CrO5-0RA.js","./DeferredRequestRegistry-CO2AyNfd.js","./uuid-DercMavo.js","./requests-BsVD4CdD.js","./useLifecycle-DvpL8DUJ.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-CWqKLxBC.js","./useNonce-_Aax6sXd.js","./useTheme-CuyH5VNX.js","./once-Bul8mtFs.js","./capabilities-CUpom6r4.js","./createReducer-Cki97cx5.js","./dist-ChS0Dc_R.js","./dist-DBwNzi3C.js","./dist-CtsanegT.js","./dist-Cayq-K1c.js","./dist-TiFCI16_.js","./dist-BIKFl48f.js","./dist-B0VqT_4z.js","./dist-BYyu59D8.js","./dist-Gqv0jSNr.js","./stex-CtmkcLz7.js","./toDate-CgbKQM5E.js","./cjs-CH5Rj0g8.js","./type-D8l_U05h.js","./_arrayReduce-TT0iOGKY.js","./_baseProperty-NKyJO2oh.js","./debounce-B3mjKxHe.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-B9y7063w.js","./main-U5Goe76G.js","./cells-jmgGt1lS.css","./spinner-DaIKav-i.js","./renderShortcut-Dyrbz79Y.js","./dropdown-menu-df9T83C0.js","./chevron-right-DwagBitu.js","./kbd-C3JY7O_u.js","./multi-map-Cwq--tzY.js","./alert-BrGyZf9c.js","./dialog-C5Pa_iIq.js","./alert-dialog-Bv1sALHm.js","./textarea-hNyWE2r_.js","./label-C_OuzPjQ.js","./dist-R0oOvu5B.js","./useDebounce-D5NcotGm.js","./input-BeGfEf2S.js","./numbers-CSY3JIgn.js","./useNumberFormatter-c6GXymzg.js","./context-JwD-oSsl.js","./SSRProvider-CEHRCdjA.js","./usePress-Bup4EGrp.js","./links-DHZUhGz-.js","./popover-D16ZremR.js","./switch-Di5kBaS8.js","./table-BSASHvkq.js","./mode-DjraKyN2.js","./useAsyncData-C4XRy1BE.js","./error-banner-BWJsOpnc.js","./errors-2SszdW9t.js","./copy-r7i0SKI4.js","./get-6uJrSKbw.js","./memoize-BCOZVFBt.js","./capitalize-CXGTjPyK.js","./copy-CQ15EONK.js","./plus-BD5o34_i.js","./refresh-cw-CQd-1kjx.js","./trash-2-CyqGun26.js","./triangle-alert-B65rDESJ.js","./Inputs-D2Xn4HON.js","./Inputs-CuKU-ENz.css","./ImperativeModal-DstvzsTs.js","./settings-DOXWMfVd.js","./ErrorBoundary-BU1OKJ3L.js","./icons-BhEXrzsb.js","./types-DWpF5HiT.js","./file-video-camera-DW3v07j2.js","./file-Cs1JbsV6.js","./useInterval-Cu9ChZf-.js","./dates-CxJmszXT.js","./en-US-pRRbZZHE.js","./isValid-DcYggVWP.js","./links-CUKo4afc.js","./maps-vcWR7nnr.js","./tree-BdwmBGSx.js","./extends-B2LJnKU3.js","./chart-no-axes-column-W42b2ZIs.js","./circle-play-BuOtSgid.js","./youtube-8p26v8EM.js","./link-BsTPF7B0.js","./refresh-ccw-DLEiQDS3.js","./run-page-6DKviU71.js","./panels-B55q0DEo.js","./JsonOutput-Dmfgex9T.js","./tooltip-CE4l3v3B.js","./vega-loader.browser-CRZ52CKf.js","./precisionRound-BMPhtTJQ.js","./defaultLocale-D_rSvXvJ.js","./defaultLocale-C92Rrpmf.js","./MarimoErrorOutput-eoDwRuKU.js","./useInstallPackage-Dxl_p6oW.js","./cell-link-BITMERKQ.js","./datasource-D2hNaG_n.js","./state-CS48Wh7M.js","./copy-icon-wZr2McVB.js","./markdown-renderer-CoQm4UxN.js","./html-to-image-CJgqxZci.js","./focus-BeWVOW9Q.js","./LazyAnyLanguageCodeMirror-ygeIsKeo.js","./chunk-5FQGJX7Z-CVUXBqX6.js","./katex-Dc8yG8NU.js","./markdown-renderer-DdDKmWlR.css","./command-BjWSp3sa.js","./RenderHTML-DuJkj1GV.js","./useRunCells-jbEa8WGV.js","./purify.es-DNVQZNFu.js","./useIframeCapabilities-BVYqWHmA.js","./formats-BBDL2N4i.js","./download-kUMZIq8-.js","./emotion-is-prop-valid.esm-DD4AwVTU.js","./useDateFormatter-CS4kbWl2.js","./range-D2UKkEg-.js","./table-DZR6ewbN.js","./JsonOutput-B7vuddcd.css","./layout-BkGjQBnQ.js","./name-cell-input-CHmzPoeN.js","./esm-DpMp6qko.js","./objectWithoutPropertiesLoose-DaPAPabU.js","./name-cell-input-ujOhus_y.css","./floating-outline-CxfziveS.js","./readonly-python-code-BlVsu50E.js","./useAddCell-CklpKCq2.js","./eye-off-BhExYOph.js","./process-output-CwcoTocd.js","./esm-l4kcybiY.js","./dist-C9XNJlLJ.js","./dist-fsvXrTzp.js","./dist-6cIjG-FS.js","./dist-kdxmhWbv.js","./dist-CldbmzwA.js","./dist-BtWo0SNF.js","./dist-BVyBw1BD.js","./dist-OM63llNV.js","./dist-BmvOPdv_.js","./dist-DDGPBuw4.js","./dist-BZY_uvFb.js","./dist-CS67iP1P.js","./dist-C4h-1T2Q.js","./dist-D_XLVesh.js","./apl-DVWF09P_.js","./asciiarmor-l0ikukqg.js","./asn1-CsdiW8T7.js","./brainfuck-C66TQVgP.js","./clike-Cc3gZvM_.js","./clojure-kT8c8jnq.js","./cmake-B3S-FpMv.js","./cobol-BrIP6mPV.js","./coffeescript-ByxLkrBT.js","./commonlisp-BjIOT_KK.js","./crystal-CQtLRTna.js","./css-CU1K_XUx.js","./cypher-An7BGqKu.js","./d-fbf-n02o.js","./diff-DbzsqZEz.js","./dtd-DnQAYfYi.js","./dylan-DeXj1TAN.js","./ecl-B8-j0xrP.js","./eiffel-DdiJ6Uyn.js","./elm-CAmK9rmL.js","./erlang-hqy6gURy.js","./factor-Di_n0Vcb.js","./simple-mode-BVXe8Gj5.js","./forth-CsaVBHm8.js","./fortran-DGNsp41i.js","./gas-BX8xjNNw.js","./gherkin--u9ojH5d.js","./groovy-Drg0Cp0-.js","./haskell-D96A8Bg_.js","./haxe-B_4sGLdj.js","./idl-CA47OCO3.js","./javascript-i8I6A_gg.js","./julia-DYuDt1xN.js","./livescript-C72Fe_WX.js","./lua-CrUucAvm.js","./mathematica-GLtAlQgr.js","./mbox-DsldZPOv.js","./mirc-Dpq184o1.js","./mllike-eEM7KiC0.js","./modelica-BKRVU7Ex.js","./mscgen-LPWHVNeM.js","./mumps-46YgImgy.js","./nsis-Bh7CNuij.js","./ntriples-CABx3n6p.js","./octave-ChjrzDtA.js","./oz-BZ0G7oQI.js","./pascal-BDWWzmkf.js","./perl-C1twkBDg.js","./pig-CKZ-JUXx.js","./powershell-BmnkAUC8.js","./properties-B3qF4Ofl.js","./protobuf-CdWFIAi_.js","./pug-DEhrk7ZA.js","./puppet-oVG7sgNi.js","./python-GCb3koKb.js","./q-CylRV6ad.js","./r-BV8FQxo8.js","./rpm-0QmIraaR.js","./ruby-h-bI2J_W.js","./sas-BvwZbLPG.js","./scheme-BPuaxh6y.js","./shell-DmziZNbR.js","./sieve-DT4D9aeW.js","./smalltalk-lAY6r45k.js","./sparql-nFvL3z3l.js","./stylus-BawZsgUJ.js","./swift-CdaDqiGL.js","./tcl-D5FopUjH.js","./textile-Cum4VLew.js","./toml-5si8PWt8.js","./troff-qCd7sECP.js","./ttcn-cfg-BlUyan1P.js","./ttcn-BZC1oJG1.js","./turtle-BGa4pyfx.js","./vb-G28CZ46r.js","./vbscript-DOr4ZYtx.js","./velocity-DRewaasJ.js","./verilog-DmcGbw8B.js","./vhdl-C6ktucee.js","./webidl-DHu7cr9_.js","./xquery-BuvyHzVJ.js","./yacas-C_HpkPlV.js","./z80-BDlRltlF.js","./code-xml-XLwHyDBr.js","./ellipsis-5ip-qDfN.js","./play-BPIh-ZEU.js","./trash-DMqDgJ5r.js","./prop-types-BiQYf0aU.js","./layout-BjXzDXoG.css","./utilities.esm-eBoXu7lR.js","./toggle-jWKnIArU.js","./globals-uEPg-4pq.js","./share-CKfNi8fD.js","./_baseSet-5Rdwpmr3.js","./react-resizable-panels.browser.esm-Ctj_10o2.js","./types-z6Sk3JCV.js","./requests-BEWfBENt.js","./runs-CAvk6jVz.js","./request-registry-CB8fU98Q.js","./ws-BApgRfsy.js","./panels-B4E3DsXP.css","./icon-32x32-ClOCJ7rj.js","./download-B9SUL40m.js","./edit-page-cuNCsDIq.js","./loro_wasm_bg-CDxXoyfI.js","./useDeleteCell-BRWEDSc9.js","./add-cell-with-ai-COxBrLrH.js","./blob-CuXvdYPX.js","./cell-editor-Cqw8VDah.js","./useSplitCell-CdjW9REr.js","./hooks-DxXRX-38.js","./dist-CzfJUeh-.js","./circle-check-C57eOpl0.js","./save-PMHbdtqc.js","./cell-editor-Iey559K_.css","./useCellActionButton-CQQ8dBy_.js","./multi-icon-DZsiUPo5.js","./multi-icon-pwGWVz3d.css","./circle-plus-CnWl9uZo.js","./useNotebookActions-REoVp8xc.js","./add-database-form-BtP14Anj.js","./write-secret-modal-DfRIeQB5.js","./field-BN2j4cag.js","./form-DazVYGCT.js","./_baseEach-BhAgFun2.js","./hasIn-CycJImp8.js","./file-plus-corner-Da9I6dgU.js","./house-DhFkiXz7.js","./square-C8Tw_XXG.js","./CellStatus-DFhwmbo5.js","./workflow-CMjI9cxl.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-_ibASMD1.js","./panel-context-B7WTvLhE.js","./kiosk-mode-Djm3JPwk.js","./useBoolean-BE72e3yb.js","./arrow-left-Cb_73j1f.js","./clipboard-paste-BiDF-cqm.js","./rotate-ccw-B_yU4f05.js","./square-function-CqXXKtIq.js","./edit-page-Dstp9NQ5.css","./glide-data-editor-DEwgx2xp.js","./types-CS34eOZi.js","./click-outside-container-BVQDdpbt.js","./dist-CdBsAJTp.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-Cosas-Z0.js","./spec-DJ3YTCel.js","./react-vega-CoHwoAp_.js","./linear-DjglEiG4.js","./timer-ffBO1paY.js","./init-AtRnKt23.js","./time-lLuPpFd-.js","./range-Bc7-zhbC.js","./treemap-DqSsE4KM.js","./path-BMloFSsK.js","./colors-C3_wIR8c.js","./ordinal-DTOdb5Da.js","./arc-3DY1fURi.js","./math-BIeW4iGV.js","./array-BF0shS9G.js","./step-COhf-b0R.js","./line-BCZzhM6G.js","./isString-DtNk7ov1.js","./react-plotly-V8H4ohaU.js","./vega-component-B3_9VVhH.js","./useDeepCompareMemoize-ZPd9PxYl.js","./_baseUniq-BP3iN0f3.js","./slides-component-0GonPC6Y.js","./slides-component-vtdQFHpk.css","./ImageComparisonComponent-dmuxayWy.js","./mermaid-R2vBM-JH.js","./dist-C04_12Dz.js","./chunk-JA3XYJ7Z-CaauVIYw.js","./src-BKLwm2RN.js","./src-Cf4NnJCp.js","./chunk-S3R3BYOJ-DgPGJLrA.js","./chunk-ABZYJK2D-t8l6Viza.js","./isEmpty-CgX_-6Mt.js","./chunk-ATLVNIR6-VxibvAOV.js","./chunk-CVBHYZKI-CsebuiSO.js","./chunk-EXTU4WIE-CyW9PraH.js","./chunk-HN2XXSSU-Bw_9WyjM.js","./chunk-JZLCHNYA-cYgsW1_e.js","./chunk-MI3HLSF2-Csy17Fj5.js","./chunk-N4CR4FBY-eo9CRI73.js","./chunk-QXUST7PY-CUUVFKsm.js","./chunk-XAJISQIX-Bus-Z8i1.js","./katex-D_uHS_Lg.js","./mhchem-4Yr1r21Y.js"])))=>i.map(i=>d[i]);
2
+ var EE=Object.defineProperty;var _E=(Za,sa,hr)=>sa in Za?EE(Za,sa,{enumerable:!0,configurable:!0,writable:!0,value:hr}):Za[sa]=hr;var q=(Za,sa,hr)=>_E(Za,typeof sa!="symbol"?sa+"":sa,hr);import{o as RE,r as TE,s as xa,t as cu}from"./chunk-LvLJmgfZ.js";import{c as Tl,i as Oe,l as Ln,n as $e,s as Al,u as Il}from"./useEvent-DO6uJBas.js";import{t as AE}from"./react-BGmjiNul.js";import{$r as S1,An as k1,Fn as N1,G as mu,Gn as E1,Gt as IE,Hn as Pl,I as PE,Jn as ME,Jr as FE,Kn as VE,Qr as zE,Rn as OE,Rt as $E,Sr as LE,St as pu,Ur as BE,Vr as HE,Xn as WE,Zr as UE,ai as _1,ci as Bn,ei as hu,hi as R1,kn as fu,li as KE,mi as ZE,qr as qE,ri as Hn,rt as YE,ti as GE,x as JE,y as T1,zt as A1,__tla as QE}from"./cells-Cvo5AIrZ.js";import{t as Wn}from"./react-dom-C9fstfnp.js";import{A as $r,B as ke,C as Ht,E as XE,F as I1,I as ft,J as e_,N as Y,P as $,R as F,S as sr,T as W,U as t_,V as va,a as P1,b as ye,h as a_,i as M1,j as r_,k as He,n as F1,r as n_,s as gu,t as xu,v as i_,w as ee,x as V1,z as Pa}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as l_}from"./get-6uJrSKbw.js";import{t as vu}from"./pick-B_6Qi5aM.js";import{n as o_}from"./useLifecycle-DvpL8DUJ.js";import{t as Ma}from"./capitalize-CXGTjPyK.js";import{a as s_,i as yu,n as d_}from"./type-D8l_U05h.js";import{i as u_,r as z1,t as c_}from"./tooltip-CE4l3v3B.js";import{A as m_,G as bu,H as p_,I as h_,J as f_,K as Lr,L as g_,M as x_,N as v_,O as y_,Q as b_,R as w_,T as O1,U as D_,V as $1,W as Fa,Y as L1,Z as B1,at as Un,et as j_,ft as C_,g as S_,it as wu,j as k_,k as N_,lt as H1,ot as E_}from"./utilities.esm-eBoXu7lR.js";import{G as Kn,J as __,K as R_,X as Ml,Y as W1,Z as T_,at as U1,et as K1,it as A_,nt as Du,q as I_,rt as Fl,st as Vl,tt as zl}from"./ai-model-dropdown-GvB-5iLY.js";import{a as Va,d as se,f as za}from"./hotkeys-DghjL7BQ.js";import{t as Br}from"./invariant-CAG_dYON.js";import{A as P_,O as M_,S as F_,g as V_,i as z_,k as O_,l as $_,v as L_,y as B_}from"./utils-CSDCHxwI.js";import{r as ju}from"./constants-B6Cb__3x.js";import{A as Z1,E as q1,O as Ze,a as H_,h as W_,i as Y1,j as U_,l as K_,n as Z_,p as q_,r as Cu,t as Y_,w as G1}from"./config-BgpK7vqH.js";import{a as G_,d as J_,l as Q_,o as X_,r as eR,t as tR,u as aR}from"./switch-Di5kBaS8.js";import{t as rR}from"./globals-uEPg-4pq.js";import{t as Ol}from"./ErrorBoundary-BU1OKJ3L.js";import{n as nR,r as St,t as $l}from"./useEventListener-DIUKKfEy.js";import{t as iR}from"./jsx-runtime-ZmTK25f3.js";import{n as Oa,t as Ce}from"./button-B3uq-Cpf.js";import{n as Ll,t as U}from"./cn-BKtXLv3a.js";import{at as lR}from"./dist-DBwNzi3C.js";import{$ as oR,A as sR,C as dR,D as uR,E as Su,F as ku,G as cR,H as mR,J as J1,K as pR,O as hR,P as Nu,S as fR,T as Q1,U as X1,V as ev,W as gR,Y as Zn,b as xR,d as vR,et as yR,j as tv,l as bR,nt as wR,q as av,r as DR,t as rv,tt as jR,u as CR,v as SR,w as kR,x as Eu,y as NR,__tla as ER}from"./JsonOutput-Dmfgex9T.js";import{c as _R,n as nv,p as RR,r as ya,t as TR}from"./once-Bul8mtFs.js";import"./cjs-CH5Rj0g8.js";import"./main-U5Goe76G.js";import"./useNonce-_Aax6sXd.js";import{n as AR}from"./requests-BsVD4CdD.js";import{t as kt}from"./createLucideIcon-CnW3RofX.js";import{A as IR,C as iv,D as PR,O as MR,S as FR,_ as VR,a as lv,b as zR,c as ov,d as qn,f as sv,g as OR,h as $R,i as _u,k as LR,l as BR,m as dv,n as HR,p as WR,r as ba,s as UR,t as KR,u as ra,v as ZR,y as qR}from"./spec-DJ3YTCel.js";import{D as YR,E as GR,O as JR,h as QR,k as XR,l as eT,m as tT,n as aT,w as rT}from"./add-cell-with-ai-COxBrLrH.js";import{t as nT,__tla as iT}from"./LazyAnyLanguageCodeMirror-ygeIsKeo.js";import{i as lT,r as oT}from"./chat-components-BV83l1rZ.js";import{a as sT,i as dT,n as uT,o as cT,t as uv}from"./useBoolean-BE72e3yb.js";import{_ as mT,a as pT,c as $a,d as hT,f as fT,h as Hr,i as Pt,l as Ru,m as cv,n as La,o as Bl,p as mv,r as Wr,s as dr,t as Ba}from"./select-UFziUNxL.js";import{d as Hl,r as gT}from"./download-kUMZIq8-.js";import{t as Wl}from"./chevron-right-DwagBitu.js";import{i as xT,o as vT}from"./maps-vcWR7nnr.js";import"./markdown-renderer-CoQm4UxN.js";import{u as yT}from"./toDate-CgbKQM5E.js";import{P as pv,a as Tu,c as bT,i as wT,o as DT,p as hv,r as fv,t as gv}from"./dropdown-menu-df9T83C0.js";import{t as jT}from"./code-xml-XLwHyDBr.js";import{t as CT}from"./copy-CQ15EONK.js";import{t as ST}from"./download-B9SUL40m.js";import{i as kT}from"./file-video-camera-DW3v07j2.js";import{r as NT,t as ET}from"./types-DWpF5HiT.js";import{n as _T,t as RT}from"./house-DhFkiXz7.js";import{n as Ul,t as Yn}from"./spinner-DaIKav-i.js";import{n as TT,t as Au}from"./readonly-python-code-BlVsu50E.js";import{n as AT,t as Kl}from"./types-CS34eOZi.js";import{t as xv}from"./plus-BD5o34_i.js";import{t as IT}from"./refresh-cw-CQd-1kjx.js";import{$ as vv,A as Iu,C as PT,D as MT,E as Pu,G as FT,H as VT,J as Ur,K as Zl,L as Mu,M as ql,N as yv,O as bv,P as Yl,Q as wa,R as zT,T as Gl,U as OT,W as Ha,X as Wa,Y as Ua,Z as wv,_ as Jl,at as Kr,b as $T,c as LT,ct as st,d as Dv,et as jv,g as Zr,h as Gn,i as BT,it as HT,k as Fu,l as WT,lt as UT,m as Ql,n as KT,nt as Vu,o as zu,ot as ZT,p as Cv,q as Sv,r as Ou,rt as ur,s as qT,st as Xl,t as $u,tt as eo,u as to,v as Lu,w as YT}from"./input-BeGfEf2S.js";import{t as GT}from"./settings-DOXWMfVd.js";import{t as ao}from"./square-function-CqXXKtIq.js";import{_ as Qe,a as dt,c as at,d as cr,f as JT,g as kv,h as QT,i as XT,l as it,n as eA,o as Jn,p as Nv,r as tA,t as aA,u as ct,v as na}from"./textarea-hNyWE2r_.js";import{a as rA,d as nA,i as iA,l as lA,o as Ev,r as oA,s as sA,t as dA,u as uA}from"./column-preview-BvwEAGt6.js";import{t as cA}from"./square-C8Tw_XXG.js";import{t as _v}from"./trash-2-CyqGun26.js";import{t as ro}from"./triangle-alert-B65rDESJ.js";import{i as Rv,r as mA,t as pA}from"./es-D8BOePqo.js";import{t as yt}from"./preload-helper-DItdS47A.js";import"./dist-Cayq-K1c.js";import"./dist-TiFCI16_.js";import"./dist-BIKFl48f.js";import"./dist-B0VqT_4z.js";import"./dist-BYyu59D8.js";import{n as hA,t as Wt}from"./use-toast-rmUWldD_.js";import{r as qr}from"./useTheme-CuyH5VNX.js";import{C as no,E as Bu,S as io,_ as We,d as fA,f as Tv,g as Ut,h as gA,l as xA,m as vA,p as yA,u as bA,v as Hu,w as Ee,x as Qn}from"./Combination-CMPwuAmi.js";import{l as wA,r as Av,t as DA}from"./dist-uzvC4uAK.js";import{a as Wu,i as Nt,n as Uu,o as Ku,r as Zu,s as Iv,t as Mt}from"./tooltip-CEc2ajau.js";import{d as lo,u as Pv}from"./menu-items-CJhvWPOk.js";import"./dates-CxJmszXT.js";import{a as jA,n as CA,t as SA}from"./mode-DjraKyN2.js";import{a as kA,c as NA,i as EA,l as _A,n as RA,s as TA,t as AA}from"./alert-dialog-Bv1sALHm.js";import{C as IA,D as PA,E as Mv,F as Fv,I as Vv,L as Yr,N as MA,O as Xe,R as zv,n as FA,s as oo,t as Ov,x as VA,z as Da}from"./usePress-Bup4EGrp.js";import{t as zA}from"./SSRProvider-CEHRCdjA.js";import{n as Kt,r as OA,t as ia}from"./useDateFormatter-CS4kbWl2.js";import{n as $A,t as qe}from"./context-JwD-oSsl.js";import{t as LA}from"./useNumberFormatter-c6GXymzg.js";import{a as BA,c as la,i as HA,l as Xn,r as $v,s as ei,t as Lv,u as oa}from"./popover-D16ZremR.js";import{i as Gr,r as WA}from"./numbers-CSY3JIgn.js";import{n as UA,t as Bv}from"./useDebounce-D5NcotGm.js";import{t as KA}from"./ImperativeModal-DstvzsTs.js";import"./share-CKfNi8fD.js";import{n as Hv,r as Wv,t as ZA}from"./errors-2SszdW9t.js";import"./vega-loader.browser-CRZ52CKf.js";import"./defaultLocale-D_rSvXvJ.js";import"./defaultLocale-C92Rrpmf.js";import{t as so}from"./copy-icon-wZr2McVB.js";import{t as Me}from"./RenderHTML-DuJkj1GV.js";import"./purify.es-DNVQZNFu.js";import{a as Uv,c as qA,i as Kv,l as YA,n as qu,o as GA,r as Zv,s as JA}from"./multi-map-Cwq--tzY.js";import{n as QA,r as Yu,t as uo}from"./alert-BrGyZf9c.js";import{n as Jr,t as mr}from"./error-banner-BWJsOpnc.js";import{n as Et}from"./useAsyncData-C4XRy1BE.js";import{a as XA,c as e6,o as t6,r as a6,s as r6,t as n6}from"./command-BjWSp3sa.js";import{t as qv}from"./dist-R0oOvu5B.js";import{__tla as i6}from"./chunk-5FQGJX7Z-CVUXBqX6.js";import"./katex-Dc8yG8NU.js";import"./html-to-image-CJgqxZci.js";import{a as l6,o as o6}from"./focus-BeWVOW9Q.js";import{a as Yv,i as Gu,n as Ju,o as Qr,r as pr,t as Qu}from"./table-BSASHvkq.js";import{t as Ka}from"./useDeepCompareMemoize-ZPd9PxYl.js";import{t as Gv}from"./renderShortcut-Dyrbz79Y.js";import{t as ti}from"./label-C_OuzPjQ.js";import{t as s6}from"./chat-display-C4qhRyWq.js";import"./esm-DpMp6qko.js";import{n as d6}from"./icons-BhEXrzsb.js";import{t as u6}from"./bundle.esm-2AjO7UK5.js";import{a as Jv,c as c6,d as Qv,f as co,i as m6,l as p6,n as Xv,o as h6,p as ja,r as f6,s as ey,t as g6,u as oe}from"./form-DazVYGCT.js";import"./react-resizable-panels.browser.esm-Ctj_10o2.js";import{a as x6,i as ty,n as ay,t as ry}from"./field-BN2j4cag.js";import{i as v6,n as y6,r as b6}from"./floating-outline-CxfziveS.js";Promise.all([(()=>{try{return QE}catch{}})(),(()=>{try{return ER}catch{}})(),(()=>{try{return iT}catch{}})(),(()=>{try{return i6}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var Za=kt("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),sa=kt("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),hr=kt("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),iy=kt("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),ly=kt("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),oy=kt("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),sy=kt("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),dy=kt("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),uy=kt("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),cy=kt("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),rc=kt("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),my=kt("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),nc=kt("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),py=xa(R1(),1);const Ca={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function hy(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:Ca.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:Ca.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:Ca.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:Ca.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function fy(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Ca.MATCH:r.push(t[n]),n++;break;case Ca.DELETE:n++;break;case Ca.INSERT:r.push(a);break;case Ca.SUBSTITUTE:r.push(a),n++;break}return r}function gy(t,e,a,r){let n=hy(t,e,a);return{merged:fy(t,n.operations,r),edits:n}}var ai=0,ri="";function xy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Hn.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||ic()]))}}if(!e){let o=t.cells.map(d=>d.id??Hn.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,ic()]))}}let{merged:n,edits:i}=gy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},lc());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;o<e.cells.length;o++){let d=e.cells[o];if(d){let u=d.id??Hn.create();l.push(u);let c=n[o]||lc();c.id=u,a.set(u,c),r.set(u,d)}else se.warn("Merged notebook cell is null at index",o)}return{cellIds:l,sessionCellData:a,notebookCellData:r}}function ic(){return{id:Hn.create(),name:ri,code:ri,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function lc(){return{id:Hn.create(),code_hash:null,console:[],outputs:[]}}function vy(t,e){var a,r,n;return{id:t,name:e.name??ri,code:e.code??ri,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((a=e.config)==null?void 0:a.column)??null,disabled:((r=e.config)==null?void 0:r.disabled)??!1,hide_code:((n=e.config)==null?void 0:n.hide_code)??!1},serializedEditorState:null}}function yy(t){let e=PE();if(!t)return e;let a=t.outputs||[],r=a.find(i=>i.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ai};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ai}}}let n=t.console||[];return{...e,outline:e.output?YE(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ai}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ai})}}function by(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=xy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=vy(o,u)),l[o]=yy(d)}return{cellIds:HE.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var wy=J(),oc=Object.freeze({left:0,top:0,width:16,height:16}),ni=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...oc,...ni}),po=Object.freeze({...Xr,body:"",hidden:!1}),Dy=Object.freeze({width:null,height:null}),sc=Object.freeze({...Dy,...ni});function jy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var Cy=/[\s,]+/;function Sy(t,e){e.split(Cy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var dc={...sc,preserveAspectRatio:""};function uc(t){let e={...dc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=jy(a("rotate","")),Sy(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function ky(t,e){for(let a in dc)if(t[a]!==e[a])return!0;return!1}var cc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ii(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ii(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ii(o,a)?null:o}return null},ii=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Ny(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function mc(t,e){let a=Ny(t,e);for(let r in po)r in ni?r in t&&!(r in a)&&(a[r]=ni[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Ey(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function _y(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=mc(r[o]||n[o],i)}return l(e),a.forEach(l),mc(t,i)}function pc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Ey(t);for(let n in r){let i=r[n];i&&(e(n,_y(t,n,i)),a.push(n))}return a}var Ry={provider:"",aliases:{},not_found:{},...oc};function ho(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function hc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ho(t,Ry))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!ho(i,po))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!ho(i,po))return null}return e}var li=Object.create(null);function Ty(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function da(t,e){let a=li[t]||(li[t]=Object.create(null));return a[e]||(a[e]=Ty(t,e))}function fc(t,e){return hc(e)?pc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ay(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Iy(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(li)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(li[r]||{})).forEach(n=>{let i=da(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var tn=!1;function gc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=da(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function xc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=da(a.provider,a.prefix);return e?Ay(r,a.name,e):(r.missing.add(a.name),!0)}function vc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return hc(t)&&(t.prefix="",pc(t,(n,i)=>{xc(n,i)&&(r=!0)})),r}let a=t.prefix;return ii({provider:e,prefix:a,name:"a"})?!!fc(da(e,a),t):!1}function yc(t){return!!an(t)}function Py(t){let e=an(t);return e&&{...Xr,...e}}function My(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=da(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let m={provider:i,prefix:l,name:o};c.push(m)}),e}function bc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function Fy(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||bc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var Vy=0;function zy(t,e,a){let r=Vy++,n=bc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var fo=Object.create(null);function wc(t,e){fo[t]=e}function go(t){return fo[t]||fo[""]}function Oy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var $y={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ly(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let N=t.resources.slice(0);for(l=[];N.length>1;){let k=Math.floor(Math.random()*N.length);l.push(N[k]),N=N.slice(0,k).concat(N.slice(k+1))}l=l.concat(N)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,m=null,p=[],h=[];typeof r=="function"&&h.push(r);function g(){m&&(m=(clearTimeout(m),null))}function f(){d==="pending"&&(d="aborted"),g(),p.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),p=[]}function x(N,k){k&&(h=[]),typeof N=="function"&&h.push(N)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:p.length,subscribe:x,abort:f}}function w(){d="failed",h.forEach(N=>{N(void 0,c)})}function D(){p.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),p=[]}function j(N,k,y){let C=k!=="success";switch(p=p.filter(_=>_!==N),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(k==="abort"){c=y,w();return}if(C){c=y,p.length||(l.length?S():w());return}if(g(),D(),!t.random){let _=t.resources.indexOf(N.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function S(){if(d!=="pending")return;g();let N=l.shift();if(N===void 0){if(p.length){m=setTimeout(()=>{g(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let k={status:"pending",resource:N,callback:(y,C)=>{j(k,y,C)}};p.push(k),u++,m=setTimeout(S,t.rotate),a(N,e,k.callback)}return setTimeout(S),b}function Dc(t){let e={...$y,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=Ly(e,l,o,(c,m)=>{r(),d&&d(c,m)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function xo(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var oi=Object.create(null),si=["https://api.simplesvg.com","https://api.unisvg.com"],vo=[];si.length>0;)si.length===1||Math.random()>.5?vo.push(si.shift()):vo.push(si.pop());oi[""]=xo({resources:["https://api.iconify.design"].concat(vo)});function jc(t,e){let a=xo(e);return a===null?!1:(oi[t]=a,!0)}function di(t){return oi[t]}function By(){return Object.keys(oi)}function Cc(){}var yo=Object.create(null);function Hy(t){if(!yo[t]){let e=di(t);if(!e)return;yo[t]={config:e,redundancy:Dc(e)}}return yo[t]}function Sc(t,e,a){let r,n;if(typeof t=="string"){let i=go(t);if(!i)return a(void 0,424),Cc;n=i.send;let l=Hy(t);l&&(r=l.redundancy)}else{let i=xo(t);if(i){r=Dc(i);let l=go(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),Cc):r.query(e,n,a)().abort}function kc(){}function Wy(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Fy(t)}))}function Uy(t){let e=[],a=[];return t.forEach(r=>{(r.match(cc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!fc(t,a).length){r();return}}catch(n){console.error(n)}r(),Wy(t)}function Nc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Ky(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Nc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Nc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Uy(n);if(o.length&&rn(t,o,null),!l.length)return;let d=r.match(cc)?go(a):null;if(!d){rn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Sc(a,u,c=>{rn(t,u.icons,c)})})}))}var bo=(t,e)=>{let a=My(Oy(t,!0,gc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(da(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,m=da(d,u),p=m.pendingIcons||(m.pendingIcons=new Set);p.has(c)||(p.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Ky(o,d)}),e?zy(e,a,n):kc},Zy=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bo([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function Ec(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function qy(t,e){if(typeof t=="object")return{data:Ec(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Ec(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bo([a],()=>e(t,a,an(a)))}}var _c=!1;try{_c=navigator.vendor.indexOf("Apple")===0}catch{}function Yy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(_c||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Gy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Jy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(t,e,a){if(e===1)return t;if(a||(a=100),typeof t=="number")return Math.ceil(t*e*a)/a;if(typeof t!="string")return t;let r=t.split(Gy);if(r===null||!r.length)return t;let n=[],i=r.shift(),l=Jy.test(i);for(;;){if(l){let o=parseFloat(i);isNaN(o)?n.push(i):n.push(Math.ceil(o*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");l=!l}}function Qy(t,e="defs"){let a="",r=t.indexOf("<"+e);for(;r>=0;){let n=t.indexOf(">",r),i=t.indexOf("</"+e);if(n===-1||i===-1)break;let l=t.indexOf(">",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Xy(t,e){return t?"<defs>"+t+"</defs>"+e:e}function eb(t,e,a){let r=Qy(t);return Xy(r.defs,e+r.content+a)}var tb=t=>t==="unset"||t==="undefined"||t==="none";function Rc(t,e){let a={...Xr,...t},r={...sc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let x=[],b=f.hFlip,w=f.vFlip,D=f.rotate;b?w?D+=2:(x.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),x.push("scale(-1 1)"),n.top=n.left=0):w&&(x.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),x.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,x.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:x.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,x.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),x.length&&(i=eb(i,'<g transform="'+x.join(" ")+'">',"</g>"))});let l=r.width,o=r.height,d=n.width,u=n.height,c,m;l===null?(m=o===null?"1em":o==="auto"?u:o,c=wo(m,d/u)):(c=l==="auto"?d:l,m=o===null?wo(c,u/d):o==="auto"?u:o);let p={},h=(f,x)=>{tb(x)||(p[f]=x.toString())};h("width",c),h("height",m);let g=[n.left,n.top,d,u];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:i}}function Do(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function ab(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rb(t){return"data:image/svg+xml,"+ab(t)}function Tc(t){return'url("'+rb(t)+'")'}var ui=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function nb(t){ui=t}function ib(){return ui}function lb(t,e){let a=di(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function ob(t){return t===404}var sb=(t,e,a)=>{let r=[],n=lb(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function db(t){if(typeof t=="string"){let e=di(t);if(e)return e.path}return"/"}var ub={prepare:sb,send:(t,e,a)=>{if(!ui){a("abort",424);return}let r=db(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;ui(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(ob(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function cb(t,e,a){da(a||"",e).loadIcons=t}function mb(t,e,a){da(a||"",e).loadIcon=t}var jo="data-style",Ac="";function pb(t){Ac=t}function Ic(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(jo));a||(a=document.createElement("style"),a.setAttribute(jo,jo),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Ac}function Pc(){wc("",ub),gc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;jc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:yc,iconExists:yc,getIcon:Py,listIcons:Iy,addIcon:xc,addCollection:vc,calculateSize:wo,buildIcon:Rc,iconToHTML:Do,svgToURL:Tc,loadIcons:bo,loadIcon:Zy,addAPIProvider:jc,setCustomIconLoader:mb,setCustomIconsLoader:cb,appendCustomStyle:pb,_api:{getAPIConfig:di,setAPIModule:wc,sendAPIQuery:Sc,setFetch:nb,getFetch:ib,listAPIProviders:By}}}var Co={"background-color":"currentColor"},Mc={"background-color":"transparent"},Fc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Vc={"-webkit-mask":Co,mask:Co,background:Mc};for(let t in Vc){let e=Vc[t];for(let a in Fc)e[t+"-"+a]=Fc[a]}function zc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function hb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,l=Tc(Do(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:zc(i.width),height:zc(i.height),...a?Co:Mc};for(let u in d)o.setProperty(u,d[u]);return r}var nn;function fb(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function gb(t){return nn===void 0&&fb(),nn?nn.createHTML(t):t}function xb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=gb(Do(t.body,a)),e.firstChild}function So(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function Oc(t,e){let a=e.icon.data,r=e.customisations,n=Rc(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=xb(n):l=hb(n,{...Xr,...a},i==="mask");let o=So(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function $c(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function vb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ic(d,u),this._state=$c({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ic(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}Oc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),m=uc(this);(d.attrMode!==c||ky(d.customisations,m)||!So(this._shadowRoot))&&this._renderIcon(d.icon,m,c)}_iconChanged(d){let u=qy(d,(c,m,p)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let g={value:c,name:m,data:p};g.data?this._gotIconData(g):h.icon=g});u.data?this._gotIconData(u):this._state=$c(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=So(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,uc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let m=Yy(d.data.body,c),p=this._state.inline;Oc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:p,customisations:u,attrMode:c,renderedMode:m})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Pc();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:w6,disableCache:D6,iconLoaded:j6,iconExists:C6,getIcon:S6,listIcons:k6,addIcon:N6,addCollection:E6,calculateSize:_6,buildIcon:R6,iconToHTML:T6,svgToURL:A6,loadIcons:I6,loadIcon:P6,setCustomIconLoader:M6,setCustomIconsLoader:F6,addAPIProvider:V6,_api:z6}=vb()||Pc(),v=xa(AE(),1),s=xa(iR(),1);const yb=()=>((0,wy.c)(1),null);var Lc=J();const Bc=(0,v.memo)(t=>{let e=(0,Lc.c)(3),{children:a}=t,{theme:r}=qr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,v.useLayoutEffect)(n,i),a});Bc.displayName="ThemeProvider";const bb=t=>{let e=(0,Lc.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},ko=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:v.lazy(()=>a())}};var wb=J();const Db=()=>{let t=(0,wb.c)(25),[e,a]=Ln(E_);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),Wt({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{Wt({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=r);let n=r,i;t[2]===a?i=t[3]:(i=()=>{a(null)},t[2]=a,t[3]=i);let l=i,o=jb,d;t[4]===l?d=t[5]:(d=D=>!D&&l(),t[4]=l,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(NA,{children:[(0,s.jsxs)(_A,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(ME,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(kA,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=u):u=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=c):c=t[7];let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(CT,{className:"h-3 w-3"}),t[8]=m):m=t[8];let p;t[9]===n?p=t[10]:(p=(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[c,(0,s.jsxs)(Ce,{variant:"outline",size:"xs",onClick:n,className:"flex items-center gap-1",children:[m,"Copy"]})]}),t[9]=n,t[10]=p);let h;t[11]===e?h=t[12]:(h=(0,s.jsx)("pre",{className:"bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80",children:e}),t[11]=e,t[12]=h);let g;t[13]!==p||t[14]!==h?(g=(0,s.jsxs)("div",{className:"my-4 overflow-hidden",children:[p,h]}),t[13]=p,t[14]=h,t[15]=g):g=t[15];let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)(Ce,{variant:"outline",onClick:o,className:"flex items-center gap-2",children:[(0,s.jsx)(RT,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let x;t[17]===l?x=t[18]:(x=(0,s.jsxs)(TA,{children:[f,(0,s.jsx)(RA,{onClick:l,children:"Dismiss"})]}),t[17]=l,t[18]=x);let b;t[19]!==x||t[20]!==g?(b=(0,s.jsxs)(EA,{className:"max-w-2xl",children:[u,g,x]}),t[19]=x,t[20]=g,t[21]=b):b=t[21];let w;return t[22]!==b||t[23]!==d?(w=(0,s.jsx)(AA,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=w):w=t[24],w};function jb(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function Cb(){return window.ResizeObserver!==void 0}function ci(t){let{ref:e,box:a,onResize:r}=t;(0,v.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(Cb()){let i=new window.ResizeObserver(l=>{l.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var Sb=Wn();function kb(t,e=!0){let[a,r]=(0,v.useState)(!0),n=a&&e;return Da(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Hc(t,n,(0,v.useCallback)(()=>r(!1),[])),n}function Nb(t,e){let[a,r]=(0,v.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Hc(t,n,(0,v.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Hc(t,e,a){Da(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,Sb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Zt={top:"top",bottom:"top",left:"left",right:"left"},mi={top:"bottom",bottom:"top",left:"right",right:"left"},Eb={top:"left",left:"top"},No={top:"height",left:"width"},Wc={width:"totalWidth",height:"totalHeight"},pi={},rt=typeof document<"u"?window.visualViewport:null;function Uc(t){let e=0,a=0,r=0,n=0,i=0,l=0,o={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,o.top=u.scrollTop||t.scrollTop,o.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,l=rt.offsetLeft)}else({width:e,height:a,top:i,left:l}=fr(t,!1)),o.top=t.scrollTop,o.left=t.scrollLeft,r=e,n=a;return VA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(o.top=0,o.left=0,i=(rt==null?void 0:rt.pageTop)??0,l=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:o,top:i,left:l}}function _b(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Kc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[No[t]],u=r.scroll[Zt[t]]+i,c=d+r.scroll[Zt[t]]-i,m=e-o+l[t]-r[Zt[t]],p=e-o+a+l[t]-r[Zt[t]];return m<u?u-m:p>c?Math.max(c-p,u-m):0}function Rb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Zc(t){if(pi[t])return pi[t];let[e,a]=t.split(" "),r=Zt[e]||"right",n=Eb[r];Zt[a]||(a="center");let i=No[r],l=No[n];return pi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},pi[t]}function Eo(t,e,a,r,n,i,l,o,d,u){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:g,crossSize:f}=r,x={};x[h]=t[h]??0,m==="center"?x[h]+=((t[f]??0)-(a[f]??0))/2:m!==h&&(x[h]+=(t[f]??0)-(a[f]??0)),x[h]+=i;let b=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(x[h]=Vu(x[h],b,w),c===p){let D=o?l[g]:e[Wc[g]];x[mi[p]]=Math.floor(D-t[p]+n)}else x[p]=Math.floor(t[p]+t[g]+n);return x}function Tb(t,e,a,r,n,i,l,o){let d=r?a.height:e[Wc.height],u=t.top==null?a.top+(d-(t.bottom??0)-l):a.top+t.top,c=o==="top"?Math.max(0,u+l-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function qc(t,e,a,r,n,i){let{placement:l,axis:o,size:d}=i;return l===o?Math.max(0,a[o]-t[o]-(t.scroll[o]??0)+e[o]-(r[o]??0)-r[mi[o]]-n):Math.max(0,t[d]+t[o]+t.scroll[o]-e[o]-a[o]-a[d]-(r[o]??0)-r[mi[o]]-n)}function Ab(t,e,a,r,n,i,l,o,d,u,c,m,p,h,g,f){let x=Zc(t),{size:b,crossAxis:w,crossSize:D,placement:j,crossPlacement:S}=x,N=Eo(e,o,a,x,c,m,u,p,g,f),k=c,y=qc(o,u,e,n,i+c,x);if(l&&r[b]>y){let z=Zc(`${mi[j]} ${S}`),L=Eo(e,o,a,z,c,m,u,p,g,f);qc(o,u,e,n,i+c,z)>y&&(x=z,N=L,k=c)}let C="bottom";x.axis==="top"?x.placement==="top"?C="top":x.placement==="bottom"&&(C="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?C="bottom":x.crossPlacement==="bottom"&&(C="top"));let _=Kc(w,N[w],a[D],o,d,i,u);N[w]+=_;let E=Tb(N,o,u,p,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),N=Eo(e,o,a,x,k,m,u,p,g,f),_=Kc(w,N[w],a[D],o,d,i,u),N[w]+=_;let T={},P=e[w]-N[w]-n[Zt[w]],R=P+.5*e[D],M=g/2+f,I=Zt[w]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),V=a[D]-I-g/2-f;T[w]=Vu(Vu(R,e[w]+g/2-(N[w]+n[Zt[w]]),e[w]+e[D]-g/2-(N[w]+n[Zt[w]])),M,V),{placement:j,crossPlacement:S}=x,g?P=T[w]:S==="right"?P+=e[D]:S==="center"&&(P+=e[D]/2);let A=j==="left"||j==="top"?a[b]:0,O={x:j==="top"||j==="bottom"?P:A,y:j==="left"||j==="right"?P:A};return{position:N,maxHeight:E,arrowOffsetLeft:T.left,arrowOffsetTop:T.top,placement:j,triggerAnchorPoint:O}}function Ib(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:o,offset:d,crossOffset:u,maxHeight:c,arrowSize:m=0,arrowBoundaryOffset:p=0}=t,h=r instanceof HTMLElement?Pb(r):document.documentElement,g=h===document.documentElement,f=window.getComputedStyle(h).position,x=!!f&&f!=="static",b=g?fr(a,!1):Yc(a,h,!1);if(!g){let{marginTop:y,marginLeft:C}=window.getComputedStyle(a);b.top+=parseInt(y,10)||0,b.left+=parseInt(C,10)||0}let w=fr(r,!0),D=Rb(r);w.width+=(D.left??0)+(D.right??0),w.height+=(D.top??0)+(D.bottom??0);let j=_b(n),S=Uc(o),N=Uc(h),k=o.tagName==="BODY"?fr(h,!1):Yc(h,o,!1);return h.tagName==="HTML"&&o.tagName==="BODY"&&(N.scroll.top=0,N.scroll.left=0),Ab(e,b,w,j,D,i,l,S,N,k,d,u,x,c,m,p)}function _o(t,e){let{top:a,left:r,width:n,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(n=t.offsetWidth,i=t.offsetHeight),{top:a,left:r,width:n,height:i}}function fr(t,e){let{top:a,left:r,width:n,height:i}=_o(t,e),{scrollTop:l,scrollLeft:o,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+l-d,left:r+o-u,width:n,height:i}}function Yc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=_o(t,a);else{n=fr(t,a);let i=fr(e,a),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Pb(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Gc(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Gc(e);)e=e.parentElement;return e||document.documentElement}function Gc(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}var Mb=new WeakMap;function Fb(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,v.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Mb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function gr(t,e){return t-e*Math.floor(t/e)}var Jc=1721426;function qa(t,e,a,r){e=ln(t,e);let n=e-1,i=-2;return a<=2?i=0:Sa(e)&&(i=-1),Jc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function Sa(t){return t%4==0&&(t%100!=0||t%400==0)}function ln(t,e){return t==="BC"?1-e:e}function hi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Vb={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},gt=class{fromJulianDay(t){let e=t,a=e-Jc,r=Math.floor(a/146097),n=gr(a,146097),i=Math.floor(n/36524),l=gr(n,36524),o=Math.floor(l/1461),d=gr(l,1461),u=Math.floor(d/365),[c,m]=hi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),p=e-qa(c,m,1,1),h=2;e<qa(c,m,3,1)?h=0:Sa(m)&&(h=1);let g=Math.floor(((p+h)*12+373)/367);return new nt(c,m,g,e-qa(c,m,g,1)+1)}toJulianDay(t){return qa(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Vb[Sa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Sa(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}},zb={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ue(t,e){return e=Fe(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Ob(t,e){return e=Fe(e,t.calendar),t=Ya(t),e=Ya(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function Ro(t,e){return fi(t.calendar,e.calendar)&&Ue(t,e)}function fi(t,e){var a,r;return((a=t.isEqual)==null?void 0:a.call(t,e))??((r=e.isEqual)==null?void 0:r.call(e,t))??t.identifier===e.identifier}function Qc(t,e){return Ue(t,gi(e))}var $b={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function To(t,e,a){let r=t.calendar.toJulianDay(t),n=a?$b[a]:Kb(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Xc(t){return ca(Date.now(),t)}function gi(t){return mt(Xc(t))}function em(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function tm(t,e){return am(t)-am(e)}function am(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var rm=null;function xi(){return rm??(rm=new Intl.DateTimeFormat().resolvedOptions().timeZone),rm}function Ya(t){return t.subtract({days:t.day-1})}function vi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Lb(t){return Ya(t.subtract({months:t.month-1}))}function Bb(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function Hb(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function on(t,e,a){let r=To(t,e,a);return t.subtract({days:r})}function Wb(t,e,a){return on(t,e,a).add({days:6})}var nm=new Map,Ao=new Map;function Ub(t){if(Intl.Locale){let a=nm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&nm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Kb(t){let e=Ao.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Ao.set(t,e),e.firstDay}let a=Ub(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e=r==="mon"?{firstDay:1}:r==="tue"?{firstDay:2}:r==="wed"?{firstDay:3}:r==="thu"?{firstDay:4}:r==="fri"?{firstDay:5}:r==="sat"?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&zb[a]||0};Ao.set(t,e)}return e.firstDay}function Zb(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((To(Ya(t),e,a)+r)/7)}function Io(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Po(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function xr(t){return t=Fe(t,new gt),im(ln(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function im(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Mo(t,e){if(e==="UTC")return 0;if(t>0&&e===xi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=om(t,e);return im(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var lm=new Map;function om(t,e){let a=lm.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),lm.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var sm=864e5;function qb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Yb(t,e,n))}function Yb(t,e,a){let r=om(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function ua(t,e,a="compatible"){let r=qt(t);if(e==="UTC")return xr(r);if(e===xi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=ln(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=xr(r),i=Mo(n-sm,e),l=Mo(n+sm,e),o=qb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function dm(t,e,a="compatible"){return new Date(ua(t,e,a))}function ca(t,e){let a=Mo(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new wm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function mt(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function qt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new bm(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(fi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ga(r),r}function Gb(t,e,a){return t instanceof wm?t.timeZone===e?t:Qb(t,e):ca(ua(t,e,a),e)}function Jb(t){let e=xr(t)-t.offset;return new Date(e)}function Qb(t,e){return Fe(ca(xr(t)-t.offset,e),t.calendar)}var sn=36e5;function yi(t,e){var o;let a=t.copy(),r="hour"in a?pm(a,e):0;Fo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Vo(a),um(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Xb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Fo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Vo(t){for(;t.month<1;)Fo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Fo(t,1)}function Xb(t){for(;t.day<1;)t.month--,Vo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Vo(t)}function um(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ga(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),um(t)}function zo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function cm(t,e){return yi(t,zo(e))}function Oo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ga(a),a}function dn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),mm(a),a}function ew(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=bi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=bi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=bi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=bi(t.hour,24),e}function mm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function bi(t,e){let a=t%e;return a<0&&(a+=e),a}function pm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ew(t)}function hm(t,e){let a=t.copy();return pm(a,e),a}function tw(t,e){return hm(t,zo(e))}function $o(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ma(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ga(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ma(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ma(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ma(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ga(n),n}function Lo(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ma(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ma(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ma(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ma(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ma(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let i=Math.abs(e);t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function fm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?ua(yi(qt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):xr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ca(a,t.timeZone),t.calendar)}function aw(t,e){return fm(t,zo(e))}function rw(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let g=t.hour>=12;n=g?12:0,i=g?23:11}let l=qt(t),o=Fe(dn(l,{hour:n}),new gt),d=[ua(o,t.timeZone,"earlier"),ua(o,t.timeZone,"later")].filter(g=>ca(g,t.timeZone).day===o.day)[0],u=Fe(dn(l,{hour:i}),new gt),c=[ua(u,t.timeZone,"earlier"),ua(u,t.timeZone,"later")].filter(g=>ca(g,t.timeZone).day===u.day).pop(),m=xr(t)-t.offset,p=Math.floor(m/sn),h=m%sn;return m=ma(p,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(ca(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Lo(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ca(ua($o(qt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function nw(t,e,a){let r=qt(t),n=dn(Oo(r,e),e);return n.compare(r)===0?t:Fe(ca(ua(n,t.timeZone,a),t.timeZone),t.calendar)}var iw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,lw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,gm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ka(t){let e=t.match(iw);if(!e)throw gm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(Yt(e[1],0,9999),Yt(e[2],1,12),1);return a.day=Yt(e[3],1,a.calendar.getDaysInMonth(a)),a}function wi(t){let e=t.match(lw);if(!e)throw gm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=Yt(e[1],-9999,9999),r=new bm(a<1?"BC":"AD",a<1?-a+1:a,Yt(e[2],1,12),1,e[4]?Yt(e[4],0,23):0,e[5]?Yt(e[5],0,59):0,e[6]?Yt(e[6],0,59):0,e[7]?Yt(e[7],0,1/0)*1e3:0);return r.day=Yt(e[3],0,r.calendar.getDaysInMonth(r)),r}function Yt(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function xm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function vm(t){let e=Fe(t,new gt),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function ym(t){return`${vm(t)}T${xm(t)}`}function ow(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function sw(t){return`${ym(t)}${ow(t.offset)}[${t.timeZone}]`}function Bo(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var dw=new WeakMap,nt=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day):new Xu(this.calendar,this.year,this.month,this.day)}add(e){return yi(this,e)}subtract(e){return cm(this,e)}set(e){return Oo(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toDate(e){return dm(this,e)}toString(){return vm(this)}compare(e){return em(this,e)}constructor(...e){oo(this,dw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ga(this)}},uw=new WeakMap,cw=class ny{copy(){return new ny(this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return tw(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Lo(this,e,a,r)}toString(){return xm(this)}compare(e){return tm(this,e)}constructor(e=0,a=0,r=0,n=0){oo(this,uw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,mm(this)}},mw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return yi(this,e)}subtract(e){return cm(this,e)}set(e){return Oo(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return $o(this,e,a,r);default:return Lo(this,e,a,r)}}toDate(e,a){return dm(this,e,a)}toString(){return ym(this)}compare(e){let a=em(this,e);return a===0?tm(this,qt(e)):a}constructor(...e){oo(this,mw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ga(this)}},pw=new WeakMap,wm=class tc{copy(){return this.era?new tc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new tc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return fm(this,e)}subtract(e){return aw(this,e)}set(e,a){return nw(this,e,a)}cycle(e,a,r){return rw(this,e,a,r)}toDate(){return Jb(this)}toString(){return sw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Gb(e,this.timeZone).toDate().getTime()}constructor(...e){oo(this,pw,{writable:!0,value:void 0});let[a,r,n,i,l]=Bo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ga(this)}},vr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Di=[1867,1911,1925,1988,2018],Na=["meiji","taisho","showa","heisei","reiwa"];function Dm(t){let e=vr.findIndex(([a,r,n])=>t.year<a||t.year===a&&t.month<r||t.year===a&&t.month===r&&t.day<n);return e===-1?vr.length-1:e===0?0:e-1}function Ho(t){let e=Di[Na.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new nt(t.year+e,t.month,t.day)}var fw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=Dm(e);return new nt(this,Na[a],e.year-Di[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Ho(t))}balanceDate(t){let e=Ho(t),a=Dm(e);Na[a]!==t.era&&(t.era=Na[a],t.year=e.year-Di[a]),this.constrainDate(t)}constrainDate(t){let e=Na.indexOf(t.era),a=hw[e];if(a!=null){let[r,n,i]=a,l=r-Di[e];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)))}if(t.year===1&&e>=0){let[,r,n]=vr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Na}getYearsInEra(t){let e=Na.indexOf(t.era),a=vr[e],r=vr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Ho(t))}getMinimumMonthInYear(t){let e=jm(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=jm(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function jm(t){if(t.year===1)return vr[Na.indexOf(t.era)]}var Cm=-543,gw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=ln(e.era,e.year);return new nt(this,a-Cm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Sm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Sm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Sm(t){let[e,a]=hi(t.year+Cm);return new nt(e,a,t.month,t.day)}var ji=1911;function km(t){return t.era==="minguo"?t.year+ji:1-t.year+ji}function Nm(t){let e=t-ji;return e>0?["minguo",e]:["before_minguo",1-e]}var xw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Nm(ln(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Em(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Nm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Em(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ji}constructor(...t){super(...t),this.identifier="roc"}};function Em(t){let[e,a]=hi(km(t));return new nt(e,a,t.month,t.day)}var _m=1948320,Rm=[0,31,62,93,124,155,186,216,246,276,306,336],vw=class{fromJulianDay(t){let e=t-_m,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-Rm[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=_m-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=Rm[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||gr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Wo=78,Tm=80,yw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Wo,r=t-qa(e.era,e.year,1,1),n;r<Tm?(a--,n=Sa(e.year-1)?31:30,r+=n+155+90+10):(n=Sa(e.year)?31:30,r-=Tm);let i,l;if(r<n)i=1,l=r+1;else{let o=r-n;o<155?(i=Math.floor(o/31)+2,l=o%31+1):(o-=155,i=Math.floor(o/30)+7,l=o%30+1)}return new nt(this,a,i,l)}toJulianDay(t){let[e,a]=hi(t.year+Wo),r,n;return Sa(a)?(r=31,n=qa(e,a,3,21)):(r=30,n=qa(e,a,3,22)),t.month===1?n+t.day-1:(n+=r+Math.min(t.month-2,5)*31,t.month>=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&Sa(t.year+Wo)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Ci=1948440,Am=1948439,_t=1300,yr=1600,bw=460322;function Si(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Im(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+Si(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-Si(e,r,n,1)+1)}function Pm(t){return(14+11*t)%30<11}var Uo=class{fromJulianDay(t){return Im(this,Ci,t)}toJulianDay(t){return Si(Ci,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Pm(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Pm(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},ww=class extends Uo{fromJulianDay(t){return Im(this,Am,t)}toJulianDay(t){return Si(Am,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Dw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Mm,br;function ki(t){return bw+br[t-_t]}function un(t,e){let a=t-_t,r=1<<11-(e-1);return(Mm[a]&r)===0?29:30}function Fm(t,e){let a=ki(t);for(let r=1;r<e;r++)a+=un(t,r);return a}function Vm(t){return br[t+1-_t]-br[t-_t]}var jw=class extends Uo{fromJulianDay(t){let e=t-Ci,a=ki(_t),r=ki(yr);if(e<a||e>r)return super.fromJulianDay(t);{let n=_t-1,i=1,l=1;for(;l>0;){n++,l=e-ki(n)+1;let o=Vm(n);if(l===o){i=12;break}else if(l<o){let d=un(n,i);for(i=1;l>d;)l-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Fm(n,i)+1)}}toJulianDay(t){return t.year<_t||t.year>yr?super.toJulianDay(t):Ci+Fm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<_t||t.year>yr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<_t||t.year>yr?super.getDaysInYear(t):Vm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Mm||(Mm=new Uint16Array(Uint8Array.from(atob(Dw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(yr-_t+1);let t=0;for(let e=_t;e<=yr;e++){br[e-_t]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},zm=347997,Om=1080,$m=24*Om,Cw=29,Sw=12*Om+793,kw=Cw*$m+Sw;function Ja(t){return gr(t*7+1,19)<7}function Ni(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return gr(3*(r+1),7)<3&&(r+=1),r}function Nw(t){let e=Ni(t-1),a=Ni(t);return Ni(t+1)-a===356?2:a-e===382?1:0}function cn(t){return Ni(t)+Nw(t)}function Lm(t){return cn(t+1)-cn(t)}function Ew(t){let e=Lm(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ei(t,e){if(e>=6&&!Ja(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=Ew(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Ja(t)?30:0:30}var _w=class{fromJulianDay(t){let e=t-zm,a=e*$m/kw,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let l=1,o=0;for(;o<i;)o+=Ei(r,l),l++;l--,o-=Ei(r,l);let d=i-o;return new nt(this,r,l,d)}toJulianDay(t){let e=cn(t.year);for(let a=1;a<t.month;a++)e+=Ei(t.year,a);return e+t.day+zm}getDaysInMonth(t){return Ei(t.year,t.month)}getMonthsInYear(t){return Ja(t.year)?13:12}getDaysInYear(t){return Lm(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(Ja(e.year)&&!Ja(t.year)&&e.month>6?t.month--:!Ja(e.year)&&Ja(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ko=1723856,Bm=1824665,Zo=5500;function _i(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function qo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-_i(t,a,1,1))/30);return[a,r,e+1-_i(t,a,r,1)]}function Hm(t){return Math.floor(t%4/3)}function Wm(t,e){return e%13==0?Hm(t)+5:30}var Yo=class{fromJulianDay(t){let[e,a,r]=qo(Ko,t),n="AM";return e<=0&&(n="AA",e+=Zo),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Zo),_i(Ko,e,t.month,t.day)}getDaysInMonth(t){return Wm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Hm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},Rw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Ko,t);return e+=Zo,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Tw=class extends Yo{fromJulianDay(t){let[e,a,r]=qo(Bm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),_i(Bm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Wm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Go(t){switch(t){case"buddhist":return new gw;case"ethiopic":return new Yo;case"ethioaa":return new Rw;case"coptic":return new Tw;case"hebrew":return new _w;case"indian":return new yw;case"islamic-civil":return new Uo;case"islamic-tbla":return new ww;case"islamic-umalqura":return new jw;case"japanese":return new fw;case"persian":return new vw;case"roc":return new xw;default:return new gt}}function Aw(t){let e=T_({usage:"search",...t}),a=(0,v.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,v.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,v.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,v.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ke=typeof document<"u"?window.visualViewport:null;function Iw(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:m=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:f,maxHeight:x,arrowBoundaryOffset:b=0}=t,[w,D]=(0,v.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,m,p,g,e,x,b,a],S=(0,v.useRef)(Ke==null?void 0:Ke.scale);(0,v.useEffect)(()=>{g&&(S.current=Ke==null?void 0:Ke.scale)},[g]);let N=(0,v.useCallback)(()=>{var T,P;if(h===!1||!g||!n.current||!r.current||!c||(Ke==null?void 0:Ke.scale)!==S.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let R=(T=document.activeElement)==null?void 0:T.getBoundingClientRect(),M=l.current.getBoundingClientRect();C={type:"top",offset:((R==null?void 0:R.top)??0)-M.top},C.offset>M.height/2&&(C.type="bottom",C.offset=((R==null?void 0:R.bottom)??0)-M.bottom)}let _=n.current;!x&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Ib({placement:Mw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:m,crossOffset:p,maxHeight:x,arrowSize:a??(i!=null&&i.current?_o(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(R=>_.style[R]=E.position[R]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let R=document.activeElement.getBoundingClientRect(),M=l.current.getBoundingClientRect(),I=R[C.type]-M[C.type];l.current.scrollTop+=I-C.offset}D(E)}},j);Da(N,j),Pw(N),ci({ref:n,onResize:N}),ci({ref:r,onResize:N});let k=(0,v.useRef)(!1);Da(()=>{let C,_=()=>{k.current=!0,clearTimeout(C),C=setTimeout(()=>{k.current=!1},500),N()},E=()=>{k.current&&_()};return Ke==null||Ke.addEventListener("resize",_),Ke==null||Ke.addEventListener("scroll",E),()=>{Ke==null||Ke.removeEventListener("resize",_),Ke==null||Ke.removeEventListener("scroll",E)}},[N]);let y=(0,v.useCallback)(()=>{k.current||(f==null||f())},[f,k]);return Fb({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:N}}function Pw(t){Da(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Fw({children:t}){let e=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(FA.Provider,{value:e},t)}function Vw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=zv(d=>{a&&Um(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=zv(d=>{a&&a(d)});(0,v.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=MA(u);if(typeof PointerEvent<"u"){let m=p=>{d.isPointerDown&&Um(p,e)&&o(p),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",m,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",m,!0)}}},[e,r,l,o])}function Um(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var Gt=[];function zw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,v.useEffect)(()=>{if(n&&!Gt.includes(e))return Gt.push(e),()=>{let g=Gt.indexOf(e);g>=0&&Gt.splice(g,1)}},[n,e]);let d=()=>{Gt[Gt.length-1]===e&&a&&a()},u=g=>{(!o||o(g.target))&&Gt[Gt.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!o||o(g.target))&&(Gt[Gt.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},m=g=>{g.key==="Escape"&&!l&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};Vw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Yl({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||I_(g.relatedTarget)||(!o||o(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...p},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ri=0,Km;function Ow(t={}){let{isDisabled:e}=t;Da(()=>{if(!e)return Ri++,Ri===1&&(Km=Mv()?Lw():$w()),()=>{Ri--,Ri===0&&Km()}},[e])}function $w(){let t=window.innerWidth-document.documentElement.clientWidth;return Fv(t>0&&("scrollbarGutter"in document.documentElement.style?Jo(document.documentElement,"scrollbarGutter","stable"):Jo(document.documentElement,"paddingRight",`${t}px`)),Jo(document.documentElement,"overflow","hidden"))}function Lw(){let t,e=!1,a=d=>{let u=d.target;t=A_(u)?u:Fl(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(e=!0)},r=document.createElement("style");r.textContent=`@layer {
3
3
  * {
4
4
  overscroll-behavior: contain;
5
5
  }
6
- }`,document.head.prepend(r);let n=d=>{if(!(d.touches.length===2||e)){if(!t||t===document.documentElement||t===document.body){d.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&d.preventDefault()}},i=d=>{var m,p;let u=d.target,c=d.relatedTarget;c&&Du(c)?(c.focus({preventScroll:!0}),Zm(c,Du(u))):c||((p=(m=u.parentElement)==null?void 0:m.closest("[tabindex]"))==null||p.focus({preventScroll:!0}))},l=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&Du(document.activeElement);l.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Zm(this,u)};let o=Fv(Qo(document,"touchstart",a,{passive:!1,capture:!0}),Qo(document,"touchmove",n,{passive:!1,capture:!0}),Qo(document,"blur",i,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=l}}function Jo(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Qo(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Zm(t,e){e||!mn?qm(t):mn.addEventListener("resize",()=>qm(t),{once:!0})}function qm(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=Fl(a);if(r!==document.documentElement&&r!==document.body&&r!==a){let n=r.getBoundingClientRect(),i=a.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+a.clientHeight){let l=n.bottom;mn&&(l=Math.min(l,mn.offsetTop+mn.height));let o=i.top-n.top-((l-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}a=r.parentElement}}var Bw=(0,v.createContext)({});function Hw(){return(0,v.useContext)(Bw)??{}}var Ym={};Ym={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Gm={};Gm={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Jm={};Jm={dismiss:"Odstranit"};var Qm={};Qm={dismiss:"Luk"};var Xm={};Xm={dismiss:"Schlie\xDFen"};var ep={};ep={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var tp={};tp={dismiss:"Dismiss"};var ap={};ap={dismiss:"Descartar"};var rp={};rp={dismiss:"L\xF5peta"};var np={};np={dismiss:"Hylk\xE4\xE4"};var ip={};ip={dismiss:"Rejeter"};var lp={};lp={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var op={};op={dismiss:"Odbaci"};var sp={};sp={dismiss:"Elutas\xEDt\xE1s"};var dp={};dp={dismiss:"Ignora"};var up={};up={dismiss:"\u9589\u3058\u308B"};var cp={};cp={dismiss:"\uBB34\uC2DC"};var mp={};mp={dismiss:"Atmesti"};var pp={};pp={dismiss:"Ner\u0101d\u012Bt"};var hp={};hp={dismiss:"Lukk"};var fp={};fp={dismiss:"Negeren"};var gp={};gp={dismiss:"Zignoruj"};var xp={};xp={dismiss:"Descartar"};var vp={};vp={dismiss:"Dispensar"};var yp={};yp={dismiss:"Revocare"};var bp={};bp={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var wp={};wp={dismiss:"Zru\u0161i\u0165"};var Dp={};Dp={dismiss:"Opusti"};var jp={};jp={dismiss:"Odbaci"};var Cp={};Cp={dismiss:"Avvisa"};var Sp={};Sp={dismiss:"Kapat"};var kp={};kp={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var Np={};Np={dismiss:"\u53D6\u6D88"};var Ep={};Ep={dismiss:"\u95DC\u9589"};var _p={};_p={"ar-AE":Ym,"bg-BG":Gm,"cs-CZ":Jm,"da-DK":Qm,"de-DE":Xm,"el-GR":ep,"en-US":tp,"es-ES":ap,"et-EE":rp,"fi-FI":np,"fr-FR":ip,"he-IL":lp,"hr-HR":op,"hu-HU":sp,"it-IT":dp,"ja-JP":up,"ko-KR":cp,"lt-LT":mp,"lv-LV":pp,"nb-NO":hp,"nl-NL":fp,"pl-PL":gp,"pt-BR":xp,"pt-PT":vp,"ro-RO":yp,"ru-RU":bp,"sk-SK":wp,"sl-SI":Dp,"sr-SP":jp,"sv-SE":Cp,"tr-TR":Sp,"uk-UA":kp,"zh-CN":Np,"zh-TW":Ep};function Ww(t){return t&&t.__esModule?t.default:t}function Rp(t){let{onDismiss:e,...a}=t,r=Xl(a,Ha(Ww(_p),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return v.createElement(Kn,null,v.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function Uw(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:m}=zw({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},n??r),{overlayProps:p,arrowProps:h,placement:g,triggerAnchorPoint:f}=Iw({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Ow({isDisabled:i||!e.isOpen}),(0,v.useEffect)(()=>{if(e.isOpen&&r.current)return i?dT((n==null?void 0:n.current)??r.current):sT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:Xe(c,p),arrowProps:h,underlayProps:m,placement:g,triggerAnchorPoint:f}}var Kw=xa(Wn(),1),Tp=v.createContext(null);function Ap(t){let e=zA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,v.useState)(!1),l=(0,v.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:o}=Hw();if(!t.portalContainer&&o&&(a=o()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=v.createElement(__,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=v.createElement(Tp.Provider,{value:l},v.createElement(Fw,null,d)),Kw.createPortal(d,a)}function Zw(){var e;let t=(e=(0,v.useContext)(Tp))==null?void 0:e.setContain;Da(()=>{t==null||t(!0)},[t])}var Ip={};Ip={dateRange:t=>`${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,dateSelected:t=>`${t.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date}`,todayDateSelected:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date} \u0645\u062D\u062F\u062F`};var Pp={};Pp={dateRange:t=>`${t.startDate} \u0434\u043E ${t.endDate}`,dateSelected:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:t=>`\u0414\u043D\u0435\u0441, ${t.date}`,todayDateSelected:t=>`\u0414\u043D\u0435\u0441, ${t.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`};var Mp={};Mp={dateRange:t=>`${t.startDate} a\u017E ${t.endDate}`,dateSelected:t=>`Vybr\xE1no ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:t=>`Dnes, ${t.date}`,todayDateSelected:t=>`Dnes, vybr\xE1no ${t.date}`};var Fp={};Fp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Vp={};Vp={dateRange:t=>`${t.startDate} bis ${t.endDate}`,dateSelected:t=>`${t.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:t=>`Heute, ${t.date}`,todayDateSelected:t=>`Heute, ${t.date} ausgew\xE4hlt`};var zp={};zp={dateRange:t=>`${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,dateSelected:t=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${t.date}`,todayDateSelected:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${t.date}`};var Op={};Op={previous:"Previous",next:"Next",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.dateRange}`,todayDate:t=>`Today, ${t.date}`,todayDateSelected:t=>`Today, ${t.date} selected`,dateSelected:t=>`${t.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:t=>`${t.startDate} to ${t.endDate}`};var $p={};$p={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo seleccionado: ${t.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:t=>`Hoy, ${t.date}`,todayDateSelected:t=>`Hoy, ${t.date} seleccionado`};var Lp={};Lp={dateRange:t=>`${t.startDate} kuni ${t.endDate}`,dateSelected:t=>`${t.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:t=>`T\xE4na, ${t.date}`,todayDateSelected:t=>`T\xE4na, ${t.date} valitud`};var Bp={};Bp={dateRange:t=>`${t.startDate} \u2013 ${t.endDate}`,dateSelected:t=>`${t.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:t=>`T\xE4n\xE4\xE4n, ${t.date}`,todayDateSelected:t=>`T\xE4n\xE4\xE4n, ${t.date} valittu`};var Hp={};Hp={dateRange:t=>`${t.startDate} \xE0 ${t.endDate}`,dateSelected:t=>`${t.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:t=>`Aujourd'hui, ${t.date}`,todayDateSelected:t=>`Aujourd\u2019hui, ${t.date} s\xE9lectionn\xE9`};var Wp={};Wp={dateRange:t=>`${t.startDate} \u05E2\u05D3 ${t.endDate}`,dateSelected:t=>`${t.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date}`,todayDateSelected:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date} \u05E0\u05D1\u05D7\u05E8`};var Up={};Up={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, odabran ${t.date}`};var Kp={};Kp={dateRange:t=>`${t.startDate}\u2013${t.endDate}`,dateSelected:t=>`${t.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:t=>`Ma, ${t.date}`,todayDateSelected:t=>`Ma, ${t.date} kijel\xF6lve`};var Zp={};Zp={dateRange:t=>`Da ${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: ${t.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:t=>`Oggi, ${t.date}`,todayDateSelected:t=>`Oggi, ${t.date} selezionata`};var qp={};qp={dateRange:t=>`${t.startDate} \u304B\u3089 ${t.endDate}`,dateSelected:t=>`${t.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:t=>`\u672C\u65E5\u3001${t.date}`,todayDateSelected:t=>`\u672C\u65E5\u3001${t.date} \u3092\u9078\u629E`};var Yp={};Yp={dateRange:t=>`${t.startDate} ~ ${t.endDate}`,dateSelected:t=>`${t.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:t=>`\uC624\uB298, ${t.date}`,todayDateSelected:t=>`\uC624\uB298, ${t.date} \uC120\uD0DD\uB428`};var Gp={};Gp={dateRange:t=>`Nuo ${t.startDate} iki ${t.endDate}`,dateSelected:t=>`Pasirinkta ${t.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: ${t.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:t=>`\u0160iandien, ${t.date}`,todayDateSelected:t=>`\u0160iandien, pasirinkta ${t.date}`};var Jp={};Jp={dateRange:t=>`No ${t.startDate} l\u012Bdz ${t.endDate}`,dateSelected:t=>`Atlas\u012Bts: ${t.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: ${t.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:t=>`\u0160odien, ${t.date}`,todayDateSelected:t=>`Atlas\u012Bta \u0161odiena, ${t.date}`};var Qp={};Qp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Xp={};Xp={dateRange:t=>`${t.startDate} tot ${t.endDate}`,dateSelected:t=>`${t.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:t=>`Vandaag, ${t.date}`,todayDateSelected:t=>`Vandaag, ${t.date} geselecteerd`};var eh={};eh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`Wybrano ${t.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:t=>`Dzisiaj, ${t.date}`,todayDateSelected:t=>`Dzisiaj wybrano ${t.date}`};var th={};th={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var ah={};ah={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var rh={};rh={dateRange:t=>`De la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,dateSelected:t=>`${t.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: ${t.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:t=>`Ast\u0103zi, ${t.date}`,todayDateSelected:t=>`Azi, ${t.date} selectat\u0103`};var nh={};nh={dateRange:t=>`\u0421 ${t.startDate} \u043F\u043E ${t.endDate}`,dateSelected:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${t.date}`,todayDateSelected:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`};var ih={};ih={dateRange:t=>`Od ${t.startDate} do ${t.endDate}`,dateSelected:t=>`Vybrat\xFD d\xE1tum ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:t=>`Dnes ${t.date}`,todayDateSelected:t=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${t.date}`};var lh={};lh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:t=>`Danes, ${t.date}`,todayDateSelected:t=>`Danes, ${t.date} izbrano`};var oh={};oh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani period: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, izabran ${t.date}`};var sh={};sh={dateRange:t=>`${t.startDate} till ${t.endDate}`,dateSelected:t=>`${t.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:t=>`Idag, ${t.date}`,todayDateSelected:t=>`Idag, ${t.date} har valts`};var dh={};dh={dateRange:t=>`${t.startDate} - ${t.endDate}`,dateSelected:t=>`${t.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:t=>`Bug\xFCn, ${t.date}`,todayDateSelected:t=>`Bug\xFCn, ${t.date} se\xE7ildi`};var uh={};uh={dateRange:t=>`${t.startDate} \u2014 ${t.endDate}`,dateSelected:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${t.date}`,todayDateSelected:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`};var ch={};ch={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9009\u62E9 ${t.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:t=>`\u4ECA\u5929\uFF0C\u5373 ${t.date}`,todayDateSelected:t=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${t.date}`};var mh={};mh={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9078\u53D6 ${t.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:t=>`\u4ECA\u5929\uFF0C${t.date}`,todayDateSelected:t=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${t.date}`};var pn={};pn={"ar-AE":Ip,"bg-BG":Pp,"cs-CZ":Mp,"da-DK":Fp,"de-DE":Vp,"el-GR":zp,"en-US":Op,"es-ES":$p,"et-EE":Lp,"fi-FI":Bp,"fr-FR":Hp,"he-IL":Wp,"hr-HR":Up,"hu-HU":Kp,"it-IT":Zp,"ja-JP":qp,"ko-KR":Yp,"lt-LT":Gp,"lv-LV":Jp,"nb-NO":Qp,"nl-NL":Xp,"pl-PL":eh,"pt-BR":th,"pt-PT":ah,"ro-RO":rh,"ru-RU":nh,"sk-SK":ih,"sl-SI":lh,"sr-SP":oh,"sv-SE":sh,"tr-TR":dh,"uk-UA":uh,"zh-CN":ch,"zh-TW":mh};function ph(t){return t&&t.__esModule?t.default:t}var Xo=new WeakMap;function hn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function qw(t){let e=Ha(ph(pn),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ia({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hn(a)||hn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,v.useMemo)(()=>{if(!i&&a&&r)if(Ue(a,r)){let l=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:l})}else{let l=ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:l})}return""},[a,r,i,t.timeZone,e,n])}function es(t,e,a,r){let n=Ha(ph(pn),"@react-aria/calendar"),i=hn(t)||hn(e),l=ia({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),o=ia({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,v.useMemo)(()=>{if(Ue(t,Ya(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Ue(e,vi(t)))return l.format(d.toDate(a));if(Ue(e,vi(e)))return r?ts(l,n,d,u,a):l.formatRange(d.toDate(a),u.toDate(a))}return r?ts(o,n,t,e,a):o.formatRange(t.toDate(a),e.toDate(a))},[t,e,l,o,n,a,r])}function ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),l=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")l=u;else if(c.source==="endRange")break}let o="",d="";for(let u=0;u<i.length;u++)u<l?o+=i[u].value:u>l&&(d+=i[u].value);return e.format("dateRange",{startDate:o,endDate:d})}function Yw(t){return t&&t.__esModule?t.default:t}function hh(t,e){let a=Ha(Yw(pn),"@react-aria/calendar"),r=st(t),n=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);U1(()=>{e.isFocused||Sv(i)},[i]);let l=qw(e);U1(()=>{l&&Sv(l,"polite",4e3)},[l]);let o=Vv([!!t.errorMessage,t.isInvalid,t.validationState]);Xo.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[d,u]=(0,v.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[m,p]=(0,v.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&m&&(p(!1),e.setFocused(!0)),{calendarProps:Xe(r,Xl({id:t.id,"aria-label":[t["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":t["aria-labelledby"]}),{role:"application","aria-details":t["aria-details"]||void 0,"aria-describedby":t["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>e.focusNextPage(),"aria-label":a.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>e.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:h,onFocusChange:p},errorMessageProps:{id:o},title:n}}function Gw(t,e){return hh(t,e)}function Jw(t,e,a){let r=hh(t,e),n=(0,v.useRef)(!1),i=(0,v.useRef)(typeof window<"u"?window:null);return Kr(i,"pointerdown",l=>{n.current=l.width===0&&l.height===0}),Kr(i,"pointerup",l=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let o=l.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(o)||!o.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=l=>{a.current&&(!l.relatedTarget||!a.current.contains(l.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},Kr(a,"touchmove",l=>{e.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function Qw(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=qe(),l=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),e.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),e.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),e.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(f.preventDefault(),e.setAnchorDate(null));break}},o=es(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=Xo.get(e),c=Xl({"aria-label":[d,o].filter(Boolean).join(", "),"aria-labelledby":u}),m=ia({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:p}=qe(),h=(0,v.useMemo)(()=>{let f=on(gi(e.timeZone),p,n);return[...Array(7).keys()].map(x=>{let b=f.add({days:x}).toDate(e.timeZone);return m.format(b)})},[p,e.timeZone,m,n]),g=Zb(a,p,n);return{gridProps:Xe(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:l,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function Xw(t){return t&&t.__esModule?t.default:t}function e2(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:l}=Xo.get(e),o=Ha(Xw(pn),"@react-aria/calendar"),d=ia({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hn(r),timeZone:e.timeZone}),u=e.isSelected(r),c=e.isCellFocused(r)&&!t.isOutsideMonth;n||(n=e.isCellDisabled(r));let m=e.isCellUnavailable(r),p=!n&&!m,h=e.isValueInvalid&&!!("highlightedRange"in e?!e.anchorDate&&e.highlightedRange&&r.compare(e.highlightedRange.start)>=0&&r.compare(e.highlightedRange.end)<=0:e.value&&Ue(e.value,r));h&&(u=!0),r=OA(r,Ro);let g=(0,v.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Qc(r,e.timeZone),x=(0,v.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Ue(r,e.value.start)||Ue(r,e.value.end))&&(E=l+", "),E+=d.format(g),f?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),e.minValue&&Ue(r,e.minValue)?E+=", "+o.format("minimumDate"):e.maxValue&&Ue(r,e.maxValue)&&(E+=", "+o.format("maximumDate")),E},[d,g,o,u,f,r,e,l]),b="";"anchorDate"in e&&c&&!e.isReadOnly&&p&&(b=e.anchorDate?o.format("finishRangeSelectionPrompt"):o.format("startRangeSelectionPrompt"));let w=zl(b),D=(0,v.useRef)(!1),j=(0,v.useRef)(!1),S=(0,v.useRef)(void 0),{pressProps:N,isPressed:k}=Ov({shouldCancelOnPointerExit:"anchorDate"in e&&!!e.anchorDate,preventFocusOnPress:!0,isDisabled:!p||e.isReadOnly,onPressStart(E){if(e.isReadOnly){e.setFocusedDate(r);return}if("highlightedRange"in e&&!e.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(e.highlightedRange&&!h){if(Ue(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Ue(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let T=()=>{e.setDragging(!0),S.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?S.current=setTimeout(T,200):T()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(S.current),S.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&S.current&&(e.selectDate(r),e.setFocusedDate(r)),"anchorDate"in e))if(j.current)e.setAnchorDate(r);else if(e.anchorDate&&!D.current)e.selectDate(r),e.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!e.anchorDate){e.selectDate(r);let T=r.add({days:1});e.isInvalid(T)&&(T=r.subtract({days:1})),e.isInvalid(T)||e.setFocusedDate(T)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Ue(r,e.focusedDate)?0:-1),(0,v.useEffect)(()=>{c&&a.current&&(PA(a.current),zT()!=="pointer"&&document.activeElement===a.current&&K1(a.current,{containingElement:Fl(a.current)}))},[c,a]);let C=ia({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,v.useMemo)(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":u||void 0,"aria-invalid":h||void 0},buttonProps:Xe(N,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!p||void 0,"aria-label":x,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in e&&(E.pointerType!=="touch"||e.isDragging)&&p&&e.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:k,isFocused:c,isSelected:u,isDisabled:n,isUnavailable:m,isOutsideVisibleRange:r.compare(e.visibleRange.start)<0||r.compare(e.visibleRange.end)>0,isInvalid:h,formattedDate:_}}var fh={};fh={calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,selectedTimeDescription:t=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"};var gh={};gh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u0434\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${t.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var xh={};xh={calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.startDate} a\u017E ${t.endDate}`,selectedTimeDescription:t=>`Vybran\xFD \u010Das: ${t.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"};var vh={};vh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tidspunkt: ${t.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"};var yh={};yh={calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.startDate} bis ${t.endDate}`,selectedTimeDescription:t=>`Ausgew\xE4hlte Zeit: ${t.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var bh={};bh={calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,selectedTimeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${t.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"};var wh={};wh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.startDate} to ${t.endDate}`,selectedTimeDescription:t=>`Selected Time: ${t.time}`};var Dh={};Dh={calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Rango seleccionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora seleccionada: ${t.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"};var jh={};jh={calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.startDate} kuni ${t.endDate}`,selectedTimeDescription:t=>`Valitud aeg: ${t.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"};var Ch={};Ch={calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.startDate} \u2013 ${t.endDate}`,selectedTimeDescription:t=>`Valittu aika: ${t.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"};var Sh={};Sh={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.startDate} au ${t.endDate}`,selectedTimeDescription:t=>`Heure choisie\xA0: ${t.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"};var kh={};kh={calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.startDate} \u05E2\u05D3 ${t.endDate}`,selectedTimeDescription:t=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${t.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"};var Nh={};Nh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Odabrano vrijeme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Eh={};Eh={calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.startDate}\u2013${t.endDate}`,selectedTimeDescription:t=>`Kijel\xF6lt id\u0151: ${t.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"};var _h={};_h={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: da ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Ora selezionata: ${t.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Rh={};Rh={calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.startDate} \u304B\u3089 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${t.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"};var Th={};Th={calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.startDate} ~ ${t.endDate}`,selectedTimeDescription:t=>`\uC120\uD0DD \uC2DC\uAC04: ${t.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"};var Ah={};Ah={calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: nuo ${t.startDate} iki ${t.endDate}`,selectedTimeDescription:t=>`Pasirinktas laikas: ${t.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"};var Ih={};Ih={calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: no ${t.startDate} l\u012Bdz ${t.endDate}`,selectedTimeDescription:t=>`Atlas\u012Btais laiks: ${t.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"};var Ph={};Ph={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tid: ${t.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"};var Mh={};Mh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.startDate} tot ${t.endDate}`,selectedTimeDescription:t=>`Geselecteerde tijd: ${t.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Fh={};Fh={calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Wybrany czas: ${t.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"};var Vh={};Vh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var zh={};zh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var Oh={};Oh={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: de la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,selectedTimeDescription:t=>`Ora selectat\u0103: ${t.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"};var $h={};$h={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${t.startDate} \u043F\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"};var Lh={};Lh={calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Vybrat\xFD \u010Das: ${t.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"};var Bh={};Bh={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izbrani \u010Das: ${t.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"};var Hh={};Hh={calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani opseg: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izabrano vreme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var Wh={};Wh={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.startDate} till ${t.endDate}`,selectedTimeDescription:t=>`Vald tid: ${t.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"};var Uh={};Uh={calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.startDate} - ${t.endDate}`,selectedTimeDescription:t=>`Se\xE7ilen Zaman: ${t.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"};var Kh={};Kh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u2014 ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"};var Zh={};Zh={calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${t.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var qh={};qh={calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${t.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var fn={};fn={"ar-AE":fh,"bg-BG":gh,"cs-CZ":xh,"da-DK":vh,"de-DE":yh,"el-GR":bh,"en-US":wh,"es-ES":Dh,"et-EE":jh,"fi-FI":Ch,"fr-FR":Sh,"he-IL":kh,"hr-HR":Nh,"hu-HU":Eh,"it-IT":_h,"ja-JP":Rh,"ko-KR":Th,"lt-LT":Ah,"lv-LV":Ih,"nb-NO":Ph,"nl-NL":Mh,"pl-PL":Fh,"pt-BR":Vh,"pt-PT":zh,"ro-RO":Oh,"ru-RU":$h,"sk-SK":Lh,"sl-SI":Bh,"sr-SP":Hh,"sv-SE":Wh,"tr-TR":Uh,"uk-UA":Kh,"zh-CN":Zh,"zh-TW":qh};function as(t,e,a){let{direction:r}=qe(),n=(0,v.useMemo)(()=>Ml(e),[e]),i=d=>{if(d.currentTarget.contains(d.target)&&(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in t&&(d.preventDefault(),d.stopPropagation(),t.setOpen(!0)),!a))switch(d.key){case"ArrowLeft":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=Yh(e.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else n.focusPrevious();break;case"ArrowRight":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=Yh(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},l=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=W1(e.current,{tabbable:!0});if(d&&(d=(u.currentNode=d,u.previousNode())),!d){let m;do m=u.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=u.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:o}=Ov({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&l()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&l()}});return Xe(o,{onKeyDown:i})}function Yh(t,e,a){let r=W1(t,{tabbable:!0}),n=r.nextNode(),i=null,l=1/0;for(;n;){let o=n.getBoundingClientRect().left-e,d=Math.abs(o);Math.sign(o)===a&&d<l&&(i=n,l=d),n=r.nextNode()}return i}function t2(t){return t&&t.__esModule?t.default:t}var Gh=new WeakMap,gn="__role_"+Date.now(),Jh="__focusManager_"+Date.now();function a2(t,e,a){var y;let{isInvalid:r,validationErrors:n,validationDetails:i}=e.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:d,errorMessageProps:u}=Iu({...t,labelElementType:"span",isInvalid:r,errorMessage:t.errorMessage||n}),c=(0,v.useRef)(null),{focusWithinProps:m}=Yl({...t,onFocusWithin(C){var _;c.current=e.value,(_=t.onFocus)==null||_.call(t,C)},onBlurWithin:C=>{var _;e.confirmPlaceholder(),e.value!==c.current&&e.commitValidation(),(_=t.onBlur)==null||_.call(t,C)},onFocusWithinChange:t.onFocusChange}),p=Ha(t2(fn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=zl(e.value?p.format(h,{[g]:e.formatValue({month:"long"})}):""),x=t[gn]==="presentation"?o["aria-describedby"]:[f["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=t[Jh],w=(0,v.useMemo)(()=>b||Ml(a),[b,a]),D=as(e,a,t[gn]==="presentation");Gh.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[l.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:x,focusManager:w});let j=(0,v.useRef)(t.autoFocus),S;S=t[gn]==="presentation"?{role:"presentation"}:Xe(o,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":x}),(0,v.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),HT(t.inputRef,e.defaultValue,e.setValue),YT({...t,focus(){w.focusFirst()}},e,t.inputRef);let N={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(N.type="text",N.hidden=!0,N.required=t.isRequired,N.onChange=()=>{});let k=st(t);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:Xe(k,S,D,m,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:N,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function r2(t){return t&&t.__esModule?t.default:t}function n2(t,e,a){let r=Yr(),n=Yr(),i=Yr(),l=Ha(r2(fn),"@react-aria/datepicker"),{isInvalid:o,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:m,descriptionProps:p,errorMessageProps:h}=Iu({...t,labelElementType:"span",isInvalid:o,errorMessage:t.errorMessage||d}),g=as(e,a),f=m["aria-labelledby"]||m.id,{locale:x}=qe(),b=e.formatValue(x,{month:"long"}),w=zl(b?l.format("selectedDateDescription",{date:b}):""),D=[w["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=st(t),S=(0,v.useMemo)(()=>Ml(a),[a]),N=(0,v.useRef)(!1),{focusWithinProps:k}=Yl({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;N.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!N.current){var C,_;N.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:Xe(j,g,m,w,k,{role:"group","aria-disabled":t.isDisabled||null,"aria-labelledby":f,"aria-describedby":D,onKeyDown(y){e.isOpen||t.onKeyDown&&t.onKeyDown(y)},onKeyUp(y){e.isOpen||t.onKeyUp&&t.onKeyUp(y)}}),labelProps:{...c,onClick:()=>{S.focusFirst()}},fieldProps:{...m,id:i,[gn]:"presentation","aria-describedby":D,value:e.value,defaultValue:e.defaultValue,onChange:e.setValue,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,granularity:t.granularity,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior,[Pu]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${r} ${f}`,"aria-describedby":D,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:n,"aria-labelledby":`${r} ${f}`},calendarProps:{autoFocus:!0,value:e.dateValue,onChange:e.setDateValue,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,defaultFocusedValue:e.dateValue?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:o,validationErrors:d,validationDetails:u}}function i2(t){return t&&t.__esModule?t.default:t}function l2(){let{locale:t}=qe(),e=OT(i2(fn),"@react-aria/datepicker");return(0,v.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new o2(t,e)}},[t,e])}var o2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function s2(t,e,a){let r=(0,v.useRef)(""),{locale:n,direction:i}=qe(),l=l2(),{ariaLabel:o,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Gh.get(e),m=t.isPlaceholder?"":t.text,p=(0,v.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ia({month:"long",timeZone:p.timeZone}),g=ia({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if(t.type==="month"&&!t.isPlaceholder){let A=h.format(e.dateValue);m=A===m?A:`${m} \u2013 ${A}`}else t.type==="hour"&&!t.isPlaceholder&&(m=g.format(e.dateValue));let{spinButtonProps:f}=$T({value:t.value,textValue:m,minValue:t.minValue,maxValue:t.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly||!t.isEditable,isRequired:e.isRequired,onIncrement:()=>{r.current="",e.increment(t.type)},onDecrement:()=>{r.current="",e.decrement(t.type)},onIncrementPage:()=>{r.current="",e.incrementPage(t.type)},onDecrementPage:()=>{r.current="",e.decrementPage(t.type)},onIncrementToMax:()=>{r.current="",t.maxValue!==void 0&&e.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{r.current="",t.minValue!==void 0&&e.setSegment(t.type,t.minValue)}}),x=(0,v.useMemo)(()=>new VT(n,{maximumFractionDigits:0}),[n]),b=()=>{if(t.text===t.placeholder&&c.focusPrevious(),x.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let A=t.text.slice(0,-1),O=x.parse(A);A=O===0?"":A,A.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=A}else t.type==="dayPeriod"&&e.clearSegment(t.type)},w=A=>{if(A.key==="a"&&(IA()?A.metaKey:A.ctrlKey)&&A.preventDefault(),!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey))switch(A.key){case"Backspace":case"Delete":A.preventDefault(),A.stopPropagation(),b();break}},{startsWith:D}=Aw({sensitivity:"base"}),j=ia({hour:"numeric",hour12:!0}),S=(0,v.useMemo)(()=>{let A=new Date;return A.setHours(0),j.formatToParts(A).find(O=>O.type==="dayPeriod").value},[j]),N=(0,v.useMemo)(()=>{let A=new Date;return A.setHours(12),j.formatToParts(A).find(O=>O.type==="dayPeriod").value},[j]),k=ia({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,v.useMemo)(()=>{if(t.type!=="era")return[];let A=Fe(new nt(1,1,1),e.calendar),O=e.calendar.getEras().map(L=>{let G=A.set({year:1,month:1,day:1,era:L}).toDate("UTC");return{era:L,formatted:k.formatToParts(G).find(Q=>Q.type==="era").value}}),z=d2(O.map(L=>L.formatted));if(z)for(let L of O)L.formatted=L.formatted.slice(z);return O},[k,e.calendar,t.type]),C=A=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+A;switch(t.type){case"dayPeriod":if(D(S,A))e.setSegment("dayPeriod",0);else if(D(N,A))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let z=y.find(L=>D(L.formatted,A));z&&(e.setSegment("era",z.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!x.isValidPartialNumber(O))return;let z=x.parse(O),L=z,G=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":z>11&&(L=x.parse(A));break;case"h12":G=!1,z>12&&(L=x.parse(A));break}t.value!==void 0&&t.value>=12&&z>1&&(z+=12)}else t.maxValue!==void 0&&z>t.maxValue&&(L=x.parse(A));if(isNaN(z))return;let Q=L!==0||G;Q&&e.setSegment(t.type,L),t.maxValue!==void 0&&(+(z+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",Q&&c.focusNext()):r.current=O;break}}},_=()=>{var A;r.current="",a.current&&K1(a.current,{containingElement:Fl(a.current)}),(A=window.getSelection())==null||A.collapse(a.current)};Kr((0,v.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let A=window.getSelection();A!=null&&A.anchorNode&&((O=a.current)!=null&&O.contains(A==null?void 0:A.anchorNode))&&A.collapse(a.current)});let E=(0,v.useRef)("");Kr(a,"beforeinput",A=>{if(a.current)switch(A.preventDefault(),A.inputType){case"deleteContentBackward":case"deleteContentForward":x.isValidPartialNumber(t.text)&&!e.isReadOnly&&b();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:A.data!=null&&C(A.data);break}}),Kr(a,"input",A=>{let{inputType:O,data:z}=A;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),z!=null&&(D(S,z)||D(N,z))&&C(z))}),Da(()=>{let A=a.current;return()=>{document.activeElement===A&&(c.focusPrevious()||c.focusNext())}},[a,c]);let T=Mv()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,v.useMemo)(()=>e.segments.find(A=>A.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let P=Yr(),R=!e.isDisabled&&!e.isReadOnly&&t.isEditable,M=t.type==="literal"?"":l.of(t.type),I=Xl({"aria-label":`${M}${o?`, ${o}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let V={caretColor:"transparent"};if(i==="rtl"){V.unicodeBidi="embed";let A=p[t.type];(A==="numeric"||A==="2-digit")&&(V.direction="ltr")}return{segmentProps:Xe(f,I,{id:P,...T,"aria-invalid":e.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":e.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:R,suppressContentEditableWarning:R,spellCheck:R?"false":void 0,autoCorrect:R?"off":void 0,enterKeyHint:R?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!R?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:w,onFocus:_,style:V,onPointerDown(A){A.stopPropagation()},onMouseDown(A){A.stopPropagation()}})}}function d2(t){t.sort();let e=t[0],a=t[t.length-1];for(let r=0;r<e.length;r++)if(e[r]!==a[r])return r;return 0}function u2(t){return t&&t.__esModule?t.default:t}function c2(t,e,a){var T,P,R,M,I;let r=Ha(u2(fn),"@react-aria/datepicker"),{isInvalid:n,validationErrors:i,validationDetails:l}=e.displayValidation,{labelProps:o,fieldProps:d,descriptionProps:u,errorMessageProps:c}=Iu({...t,labelElementType:"span",isInvalid:n,errorMessage:t.errorMessage||i}),m=d["aria-labelledby"]||d.id,{locale:p}=qe(),h=e.formatValue(p,{month:"long"}),g=zl(h?r.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),f={"aria-label":r.format("startDate"),"aria-labelledby":m},x={"aria-label":r.format("endDate"),"aria-labelledby":m},b=Yr(),w=Yr(),D=as(e,a),j=[g["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=(0,v.useMemo)(()=>Ml(a,{accept:V=>V.id!==b}),[a,b]),N={[Jh]:S,[gn]:"presentation","aria-describedby":j,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,granularity:t.granularity,shouldForceLeadingZeros:t.shouldForceLeadingZeros,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior},k=st(t),y=(0,v.useRef)(!1),{focusWithinProps:C}=Yl({...t,isDisabled:e.isOpen,onBlurWithin:V=>{var z;if(!((z=document.getElementById(w))!=null&&z.contains(V.relatedTarget))){var A,O;y.current=!1,(A=t.onBlur)==null||A.call(t,V),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:V=>{if(!y.current){var A,O;y.current=!0,(A=t.onFocus)==null||A.call(t,V),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,v.useRef)(bv),E=(0,v.useRef)(bv);return{groupProps:Xe(k,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(V){e.isOpen||t.onKeyDown&&t.onKeyDown(V)},onKeyUp(V){e.isOpen||t.onKeyUp&&t.onKeyUp(V)}}),labelProps:{...o,onClick:()=>{S.focusFirst()}},buttonProps:{...g,id:b,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${b} ${m}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${m}`},startFieldProps:{...f,...N,value:((T=e.value)==null?void 0:T.start)??null,defaultValue:(P=e.defaultValue)==null?void 0:P.start,onChange:V=>e.setDateTime("start",V),autoFocus:t.autoFocus,name:t.startName,form:t.form,[Pu]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(V){_.current=V,e.updateValidation(Gl(V,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...x,...N,value:((R=e.value)==null?void 0:R.end)??null,defaultValue:(M=e.defaultValue)==null?void 0:M.end,onChange:V=>e.setDateTime("end",V),name:t.endName,form:t.form,[Pu]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(V){E.current=V,e.updateValidation(Gl(_.current,V))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(I=e.dateRange)!=null&&I.start&&e.dateRange.end?e.dateRange:null,onChange:e.setDateRange,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,allowsNonContiguousRanges:t.allowsNonContiguousRanges,defaultFocusedValue:e.dateRange?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:n,validationErrors:i,validationDetails:l}}function m2(t,e){let{role:a="dialog"}=t,r=Vv();r=t["aria-label"]?void 0:r;let n=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){Mu(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),Mu(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),Zw(),{dialogProps:{...st(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function wr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function rs(t,e,a,r,n){let i={};for(let l in e)i[l]=Math.floor(e[l]/2),i[l]>0&&e[l]%2==0&&i[l]--;return xn(t,Qa(t,e,a).subtract(i),e,a,r,n)}function Qa(t,e,a,r,n){let i=t;return e.years?i=Lb(t):e.months?i=Ya(t):e.weeks&&(i=on(t,a)),xn(t,i,e,a,r,n)}function ns(t,e,a,r,n){let i={...e};return i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--,xn(t,Qa(t,e,a).subtract(i),e,a,r,n)}function xn(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let l=Po(e,Qa(mt(n),a,r));l&&(e=l)}if(i&&t.compare(i)<=0){let l=Io(e,ns(mt(i),a,r));l&&(e=l)}return e}function Ea(t,e,a){if(e){let r=Po(t,mt(e));r&&(t=r)}if(a){let r=Io(t,mt(a));r&&(t=r)}return t}function Qh(t,e,a){if(!a)return t;for(;t.compare(e)>=0&&a(t);)t=t.subtract({days:1});return t.compare(e)>=0?t:null}function Xh(t){let e=(0,v.useMemo)(()=>new Kt(t.locale),[t.locale]),a=(0,v.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:l,maxValue:o,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:m}=t,p=(0,v.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=ur(t.value,t.defaultValue??null,t.onChange),f=(0,v.useMemo)(()=>h?Fe(mt(h),p):null,[h,p]),x=(0,v.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[b,w]=ur((0,v.useMemo)(()=>t.focusedValue?Ea(Fe(mt(t.focusedValue),p),l,o):void 0,[t.focusedValue,p,l,o]),(0,v.useMemo)(()=>Ea(t.defaultFocusedValue?Fe(mt(t.defaultFocusedValue),p):f||Fe(gi(x),p),l,o),[t.defaultFocusedValue,f,x,p,l,o]),t.onFocusChange),[D,j]=(0,v.useState)(()=>{switch(d){case"start":return Qa(b,i,r,l,o);case"end":return ns(b,i,r,l,o);default:return rs(b,i,r,l,o)}}),[S,N]=(0,v.useState)(t.autoFocus||!1),k=(0,v.useMemo)(()=>{let I={...i};return I.days?I.days--:I.days=-1,D.add(I)},[D,i]),[y,C]=(0,v.useState)(p);if(!fi(p,y)){let I=Fe(b,p);j(rs(I,i,r,l,o)),w(I),C(p)}wr(b,l,o)?w(Ea(b,l,o)):b.compare(D)<0?j(ns(b,i,r,l,o)):b.compare(k)>0&&j(Qa(b,i,r,l,o));function _(I){I=Ea(I,l,o),w(I)}function E(I){if(!t.isDisabled&&!t.isReadOnly){let V=I;if(V===null){g(null);return}if(V=Ea(V,l,o),V=Qh(V,D,u),!V)return;V=Fe(V,(h==null?void 0:h.calendar)||new gt),h&&"hour"in h?g(h.set(V)):g(V)}}let T=(0,v.useMemo)(()=>f?u&&u(f)?!0:wr(f,l,o):!1,[f,u,l,o]),P=t.isInvalid||t.validationState==="invalid"||T,R=P?"invalid":null,M=(0,v.useMemo)(()=>c==="visible"?i:is(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:k},minValue:l,maxValue:o,focusedDate:b,timeZone:x,validationState:R,isValueInvalid:P,setFocusedDate(I){_(I),N(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(b.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let I=D.add(M);w(Ea(b.add(M),l,o)),j(Qa(xn(b,I,M,r,l,o),M,r))},focusPreviousPage(){let I=D.subtract(M);w(Ea(b.subtract(M),l,o)),j(Qa(xn(b,I,M,r,l,o),M,r))},focusSectionStart(){i.days?_(D):i.weeks?_(on(b,r)):(i.months||i.years)&&_(Ya(b))},focusSectionEnd(){i.days?_(k):i.weeks?_(Wb(b,r)):(i.months||i.years)&&_(vi(b))},focusNextSection(I){if(!I&&!i.days){_(b.add(is(i)));return}i.days?this.focusNextPage():i.weeks?_(b.add({months:1})):(i.months||i.years)&&_(b.add({years:1}))},focusPreviousSection(I){if(!I&&!i.days){_(b.subtract(is(i)));return}i.days?this.focusPreviousPage():i.weeks?_(b.subtract({months:1})):(i.months||i.years)&&_(b.subtract({years:1}))},selectFocusedDate(){u&&u(b)||E(b)},selectDate(I){E(I)},isFocused:S,setFocused:N,isInvalid(I){return wr(I,l,o)},isSelected(I){return f!=null&&Ue(I,f)&&!this.isCellDisabled(I)&&!this.isCellUnavailable(I)},isCellFocused(I){return S&&b&&Ue(I,b)},isCellDisabled(I){return t.isDisabled||I.compare(D)<0||I.compare(k)>0||this.isInvalid(I)},isCellUnavailable(I){return t.isDateUnavailable?t.isDateUnavailable(I):!1},isPreviousVisibleRangeInvalid(){let I=D.subtract({days:1});return Ue(I,D)||this.isInvalid(I)},isNextVisibleRangeInvalid(){let I=k.add({days:1});return Ue(I,k)||this.isInvalid(I)},getDatesInWeek(I,V=D){let A=V.add({weeks:I}),O=[];A=on(A,r,m);let z=To(A,r,m);for(let L=0;L<z;L++)O.push(null);for(;O.length<7;){O.push(A);let L=A.add({days:1});if(Ue(A,L))break;A=L}for(;O.length<7;)O.push(null);return O}}}function is(t){let e={...t};for(let a in t)e[a]=1;return e}function p2(t){let{value:e,defaultValue:a,onChange:r,createCalendar:n,locale:i,visibleDuration:l={months:1},minValue:o,maxValue:d,...u}=t,[c,m]=ur(e,a||null,r),[p,h]=(0,v.useState)(null),g="center";if(c&&c.start&&c.end){let V=rs(mt(c.start),l,i,o,d).add(l).subtract({days:1});c.end.compare(V)>0&&(g="start")}let f=(0,v.useRef)(null),[x,b]=(0,v.useState)(null),w=(0,v.useMemo)(()=>Po(o,x==null?void 0:x.start),[o,x]),D=(0,v.useMemo)(()=>Io(d,x==null?void 0:x.end),[d,x]),j=Xh({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:l,minValue:w,maxValue:D,selectionAlignment:t.selectionAlignment||g}),S=V=>{V&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:tf(V,j,-1),end:tf(V,j,1)},b(f.current)):(f.current=null,b(null))},[N,k]=(0,v.useState)(j.visibleRange);(!Ro(j.visibleRange.start,N.start)||!Ro(j.visibleRange.end,N.end))&&(S(p),k(j.visibleRange));let y=V=>{V?(h(V),S(V)):(h(null),S(null))},C=p?ls(p,j.focusedDate):c&&ls(c.start,c.end),_=V=>{if(t.isReadOnly)return;let A=Qh(Ea(V,w,D),j.visibleRange.start,t.isDateUnavailable);if(A)if(!p)y(A);else{let O=ls(p,A);O&&m({start:ef(O.start,c==null?void 0:c.start),end:ef(O.end,c==null?void 0:c.end)}),y(null)}},[E,T]=(0,v.useState)(!1),{isDateUnavailable:P}=t,R=(0,v.useMemo)(()=>!c||p?!1:P&&(P(c.start)||P(c.end))?!0:wr(c.start,o,d)||wr(c.end,o,d),[P,c,p,o,d]),M=t.isInvalid||t.validationState==="invalid"||R;return{...j,value:c,setValue:m,anchorDate:p,setAnchorDate:y,highlightedRange:C,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(V){p&&j.setFocusedDate(V)},isSelected(V){return!!(C&&V.compare(C.start)>=0&&V.compare(C.end)<=0&&!j.isCellDisabled(V)&&!j.isCellUnavailable(V))},isInvalid(V){var A,O;return j.isInvalid(V)||wr(V,(A=f.current)==null?void 0:A.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:T}}function ls(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:mt(t),end:mt(e)})}function ef(t,e){return t=Fe(t,(e==null?void 0:e.calendar)||new gt),e&&"hour"in e?e.set(t):t}function tf(t,e,a){let r=t.add({days:a});for(;(a<0?r.compare(e.visibleRange.start)>=0:r.compare(e.visibleRange.end)<=0)&&!e.isCellUnavailable(r);)r=r.add({days:a});if(e.isCellUnavailable(r))return r.add({days:-a})}function os(t){let[e,a]=ur(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,v.useCallback)(()=>{a(!0)},[a]),close:(0,v.useCallback)(()=>{a(!1)},[a]),toggle:(0,v.useCallback)(()=>{a(!e)},[a,e])}}var af={};af={rangeOverflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."};var rf={};rf={rangeOverflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."};var nf={};nf={rangeOverflow:t=>`Hodnota mus\xED b\xFDt ${t.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:t=>`Hodnota mus\xED b\xFDt ${t.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."};var lf={};lf={rangeOverflow:t=>`V\xE6rdien skal v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:t=>`V\xE6rdien skal v\xE6re ${t.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."};var of={};of={rangeOverflow:t=>`Der Wert muss ${t.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:t=>`Der Wert muss ${t.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."};var sf={};sf={rangeOverflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."};var df={};df={rangeUnderflow:t=>`Value must be ${t.minValue} or later.`,rangeOverflow:t=>`Value must be ${t.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var uf={};uf={rangeOverflow:t=>`El valor debe ser ${t.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:t=>`El valor debe ser ${t.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var cf={};cf={rangeOverflow:t=>`V\xE4\xE4rtus peab olema ${t.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:t=>`V\xE4\xE4rtus peab olema ${t.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."};var mf={};mf={rangeOverflow:t=>`Arvon on oltava ${t.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:t=>`Arvon on oltava ${t.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."};var pf={};pf={rangeOverflow:t=>`La valeur doit \xEAtre ${t.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:t=>`La valeur doit \xEAtre ${t.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."};var hf={};hf={rangeOverflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."};var ff={};ff={rangeOverflow:t=>`Vrijednost mora biti ${t.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrijednost mora biti ${t.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var gf={};gf={rangeOverflow:t=>`Az \xE9rt\xE9knek ${t.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:t=>`Az \xE9rt\xE9knek ${t.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."};var xf={};xf={rangeOverflow:t=>`Il valore deve essere ${t.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:t=>`Il valore deve essere ${t.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var vf={};vf={rangeOverflow:t=>`\u5024\u306F ${t.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:t=>`\u5024\u306F ${t.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"};var yf={};yf={rangeOverflow:t=>`\uAC12\uC740 ${t.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:t=>`\uAC12\uC740 ${t.minValue} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."};var bf={};bf={rangeOverflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."};var wf={};wf={rangeOverflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."};var Df={};Df={rangeOverflow:t=>`Verdien m\xE5 v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:t=>`Verdien m\xE5 v\xE6re ${t.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var jf={};jf={rangeOverflow:t=>`Waarde moet ${t.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:t=>`Waarde moet ${t.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Cf={};Cf={rangeOverflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."};var Sf={};Sf={rangeOverflow:t=>`O valor deve ser ${t.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:t=>`O valor deve ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var kf={};kf={rangeOverflow:t=>`O valor tem de ser ${t.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:t=>`O valor tem de ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var Nf={};Nf={rangeOverflow:t=>`Valoarea trebuie s\u0103 fie ${t.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:t=>`Valoarea trebuie s\u0103 fie ${t.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."};var Ef={};Ef={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var _f={};_f={rangeOverflow:t=>`Hodnota mus\xED by\u0165 ${t.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:t=>`Hodnota mus\xED by\u0165 ${t.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."};var Rf={};Rf={rangeOverflow:t=>`Vrednost mora biti ${t.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:t=>`Vrednost mora biti ${t.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."};var Tf={};Tf={rangeOverflow:t=>`Vrednost mora da bude ${t.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrednost mora da bude ${t.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Af={};Af={rangeOverflow:t=>`V\xE4rdet m\xE5ste vara ${t.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:t=>`V\xE4rdet m\xE5ste vara ${t.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."};var If={};If={rangeOverflow:t=>`De\u011Fer, ${t.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:t=>`De\u011Fer, ${t.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."};var Pf={};Pf={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Mf={};Mf={rangeOverflow:t=>`\u503C\u5FC5\u987B\u662F ${t.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u987B\u662F ${t.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"};var Ff={};Ff={rangeOverflow:t=>`\u503C\u5FC5\u9808\u662F ${t.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u9808\u662F ${t.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"};var Vf={};Vf={"ar-AE":af,"bg-BG":rf,"cs-CZ":nf,"da-DK":lf,"de-DE":of,"el-GR":sf,"en-US":df,"es-ES":uf,"et-EE":cf,"fi-FI":mf,"fr-FR":pf,"he-IL":hf,"hr-HR":ff,"hu-HU":gf,"it-IT":xf,"ja-JP":vf,"ko-KR":yf,"lt-LT":bf,"lv-LV":wf,"nb-NO":Df,"nl-NL":jf,"pl-PL":Cf,"pt-BR":Sf,"pt-PT":kf,"ro-RO":Nf,"ru-RU":Ef,"sk-SK":_f,"sl-SI":Rf,"sr-SP":Tf,"sv-SE":Af,"tr-TR":If,"uk-UA":Pf,"zh-CN":Mf,"zh-TW":Ff};function h2(t){return t&&t.__esModule?t.default:t}var zf=new Zl(h2(Vf));function Of(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function Ti(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,l=t!=null&&e!=null&&t.compare(e)<0,o=t!=null&&(r==null?void 0:r(t))||!1,d=i||l||o,u=[];if(d){let c=Of(),m=new FT(c,Zl.getGlobalDictionaryForPackage("@react-stately/datepicker")||zf),p=new Kt(c,pa({},n)),h=p.resolvedOptions().timeZone;l&&e!=null&&u.push(m.format("rangeUnderflow",{minValue:p.format(e.toDate(h))})),i&&a!=null&&u.push(m.format("rangeOverflow",{maxValue:p.format(a.toDate(h))})),o&&u.push(m.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function f2(t,e,a,r,n){let i=Gl(Ti((t==null?void 0:t.start)??null,e,a,r,n),Ti((t==null?void 0:t.end)??null,e,a,r,n));if((t==null?void 0:t.end)!=null&&t.start!=null&&t.end.compare(t.start)<0){let l=Zl.getGlobalDictionaryForPackage("@react-stately/datepicker")||zf;i=Gl(i,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",Of())],validationDetails:{...MT,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var g2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},x2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function pa(t,e){t={...e.shouldForceLeadingZeros?x2:g2,...t};let a=e.granularity||"minute",r=Object.keys(t),n=r.indexOf(e.maxGranularity??"year");n<0&&(n=0);let i=r.indexOf(a);if(i<0&&(i=2),n>i)throw Error("maxGranularity must be greater than granularity");let l=r.slice(n,i+1).reduce((o,d)=>(o[d]=t[d],o),{});return e.hourCycle!=null&&(l.hour12=e.hourCycle===12),l.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(l.timeZoneName="short"),e.showEra&&n===0&&(l.era="short"),l}function Dr(t){return t&&"hour"in t?t:new cw}function $f(t,e){if(t===null)return null;if(t)return Fe(t,e)}function vn(t,e,a,r){if(t)return $f(t,a);let n=Fe(Xc(r??xi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?mt(n):r?n:qt(n)}function ss(t,e){let a=t&&"timeZone"in t?t.timeZone:void 0,r=t&&"minute"in t?"minute":"day";if(t&&e&&!(e in t))throw Error("Invalid granularity "+e+" for value "+t.toString());let[n,i]=(0,v.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let l=t?a:n[1];return[e,l]}function v2(t){let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,v.useState)(a),i=a||t.placeholderValue||null,[l,o]=ss(i,t.granularity),d=a==null?null:a.toDate(o??"UTC"),u=l==="hour"||l==="minute"||l==="second",c=t.shouldCloseOnSelect??!0,[m,p]=(0,v.useState)(null),[h,g]=(0,v.useState)(null);if(a&&(m=a,"hour"in a&&(h=a)),i&&!(l in i))throw Error("Invalid granularity "+l+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",x=(0,v.useMemo)(()=>({granularity:l,timeZone:o,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[l,t.hourCycle,t.shouldForceLeadingZeros,o,t.hideTimeZone,f]),{minValue:b,maxValue:w,isDateUnavailable:D}=t,j=(0,v.useMemo)(()=>Ti(a,b,w,D,x),[a,b,w,D,x]),S=Fu({...t,value:a,builtinValidation:j}),N=S.displayValidation.isInvalid,k=t.validationState||(N?"invalid":null),y=(E,T)=>{r("timeZone"in T?T.set(mt(E)):qt(E,T)),p(null),g(null),S.commitValidation()},C=E=>{let T=typeof c=="function"?c():c;u?h||T?y(E,h||Dr(t.defaultValue||t.placeholderValue)):p(E):(r(E),S.commitValidation()),T&&e.setOpen(!1)},_=E=>{m&&E?y(m,E):g(E)};return{...S,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:m,timeValue:h,setDateValue:C,setTimeValue:_,granularity:l,hasTime:u,...e,setOpen(E){!E&&!a&&m&&u&&y(m,h||Dr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:k,isInvalid:N,formatValue(E,T){return d?new Kt(E,pa(T,x)).format(d):""},getDateFormatter(E,T){return new Kt(E,pa({},{...x,...T}))}}}var y2=new Zl({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function b2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?y2.getStringForLocale(t,a):"\u2013\u2013"}var Ai={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Lf={year:5,month:2,day:7,hour:2,minute:15,second:15},Bf={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function w2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:l=!1,minValue:o,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[m,p]=ss(c,t.granularity),h=p||"UTC";if(c&&!(m in c))throw Error("Invalid granularity "+m+" for value "+c.toString());let g=(0,v.useMemo)(()=>new Kt(e),[e]),f=(0,v.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[x,b]=ur(t.value,t.defaultValue??null,t.onChange),[w]=(0,v.useState)(x),D=(0,v.useMemo)(()=>$f(x,f)??null,[x,f]),[j,S]=(0,v.useState)(()=>vn(t.placeholderValue,m,f,p)),N=D||j,k=f.identifier==="gregory"&&N.era==="BC",y=(0,v.useMemo)(()=>({granularity:m,maxGranularity:t.maxGranularity??"year",timeZone:p,hideTimeZone:r,hourCycle:t.hourCycle,showEra:k,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,m,t.hourCycle,t.shouldForceLeadingZeros,p,r,k]),C=(0,v.useMemo)(()=>pa({},y),[y]),_=(0,v.useMemo)(()=>new Kt(e,C),[e,C]),E=(0,v.useMemo)(()=>_.resolvedOptions(),[_]),T=(0,v.useMemo)(()=>_.formatToParts(new Date).filter(Z=>Ai[Z.type]).reduce((Z,B)=>(Z[Bf[B.type]||B.type]=!0,Z),{}),[_]),[P,R]=(0,v.useState)(()=>t.value||t.defaultValue?{...T}:{}),M=(0,v.useRef)(null),I=(0,v.useRef)(f);(0,v.useEffect)(()=>{fi(f,I.current)||(I.current=f,S(Z=>Object.keys(P).length>0?Fe(Z,f):vn(t.placeholderValue,m,f,p)))},[f,m,P,p,t.placeholderValue]),x&&Object.keys(P).length<Object.keys(T).length&&(P={...T},R(P)),x==null&&Object.keys(P).length===Object.keys(T).length&&(P={},R(P),S(vn(t.placeholderValue,m,f,p)));let V=D&&Object.keys(P).length>=Object.keys(T).length?D:j,A=Z=>{if(t.isDisabled||t.isReadOnly)return;let B=Object.keys(P),re=Object.keys(T);Z==null?(b(null),S(vn(t.placeholderValue,m,f,p)),R({})):B.length===0&&M.current==null||B.length>=re.length||B.length===re.length-1&&T.dayPeriod&&!P.dayPeriod&&M.current!=="dayPeriod"?(B.length===0&&(P={...T},R(P)),Z=Fe(Z,(c==null?void 0:c.calendar)||new gt),b(Z)):S(Z),M.current=null},O=(0,v.useMemo)(()=>V.toDate(h),[V,h]),z=(0,v.useMemo)(()=>D2(O,P,_,E,V,f,e,m),[O,P,_,E,V,f,e,m]);T.era&&P.year&&!P.era?(P.era=!0,R({...P})):!T.era&&P.era&&(delete P.era,R({...P}));let L=Z=>{P[Z]=!0,Z==="year"&&T.era&&(P.era=!0),R({...P})},G=(Z,B)=>{if(P[Z])A(j2(V,Z,B,E));else{L(Z);let re=Object.keys(P),te=Object.keys(T);(re.length>=te.length||re.length===te.length-1&&T.dayPeriod&&!P.dayPeriod)&&A(V)}},Q=(0,v.useMemo)(()=>Ti(x,o,d,u,y),[x,o,d,u,y]),ae=Fu({...t,value:x,builtinValidation:Q}),ce=ae.displayValidation.isInvalid,le=t.validationState||(ce?"invalid":null);return{...ae,value:D,defaultValue:t.defaultValue??w,dateValue:O,calendar:f,setValue:A,segments:z,dateFormatter:_,validationState:le,isInvalid:ce,granularity:m,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:l,increment(Z){G(Z,1)},decrement(Z){G(Z,-1)},incrementPage(Z){G(Z,Lf[Z]||1)},decrementPage(Z){G(Z,-(Lf[Z]||1))},setSegment(Z,B){L(Z),A(C2(V,Z,B,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let Z=Object.keys(P),B=Object.keys(T);Z.length===B.length-1&&T.dayPeriod&&!P.dayPeriod&&(P={...T},R(P),A(V.copy()))},clearSegment(Z){delete P[Z],M.current=Z,R({...P});let B=vn(t.placeholderValue,m,f,p),re=V;if(Z==="dayPeriod"&&"hour"in V&&"hour"in B){let te=V.hour>=12,ie=B.hour>=12;te&&!ie?re=V.set({hour:V.hour-12}):!te&&ie&&(re=V.set({hour:V.hour+12}))}else Z==="hour"&&"hour"in V&&V.hour>=12&&P.dayPeriod?re=V.set({hour:B.hour+12}):Z in V&&(re=V.set({[Z]:B[Z]}));b(null),A(re)},formatValue(Z){return D?new Kt(e,pa(Z,y)).format(O):""},getDateFormatter(Z,B){return new Kt(Z,pa({},{...y,...B}))}}}function D2(t,e,a,r,n,i,l,o){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let m of u){let p=Bf[m.type]||m.type,h=Ai[p];p==="era"&&i.getEras().length===1&&(h=!1);let g=Ai[p]&&!e[p],f=Ai[p]?b2(p,m.value,l):null,x={type:p,text:g?f:m.value,...Ii(n,p,r),isPlaceholder:g,placeholder:f,isEditable:h};p==="hour"?(c.push({type:"literal",text:"\u2066",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(x),p===o&&c.push({type:"literal",text:"\u2069",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(p)&&p===o?(c.push(x),c.push({type:"literal",text:"\u2069",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(x)}return c}function Ii(t,e,a){switch(e){case"era":{let r=t.calendar.getEras();return{value:r.indexOf(t.era),minValue:0,maxValue:r.length-1}}case"year":return{value:t.year,minValue:1,maxValue:t.calendar.getYearsInEra(t)};case"month":return{value:t.month,minValue:Bb(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:Hb(t),maxValue:t.calendar.getDaysInMonth(t)}}if("hour"in t)switch(e){case"dayPeriod":return{value:t.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(a.hour12){let r=t.hour>=12;return{value:t.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:t.hour,minValue:0,maxValue:23};case"minute":return{value:t.minute,minValue:0,maxValue:59};case"second":return{value:t.second,minValue:0,maxValue:59}}return{}}function j2(t,e,a,r){switch(e){case"era":case"year":case"month":case"day":return t.cycle(e,a,{round:e==="year"})}if("hour"in t)switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return t.set({hour:i?n-12:n+12})}case"hour":case"minute":case"second":return t.cycle(e,a,{round:e!=="hour",hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+e)}function C2(t,e,a,r){switch(e){case"day":case"month":case"year":case"era":return t.set({[e]:a})}if("hour"in t&&typeof a=="number")switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return a>=12===i?t:t.set({hour:i?n-12:n+12})}case"hour":if(r.hour12){let n=t.hour>=12;!n&&a===12&&(a=0),n&&a<12&&(a+=12)}case"minute":case"second":return t.set({[e]:a})}throw Error("Unknown segment: "+e)}function S2(t){var P,R;let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,v.useState)(a),[i,l]=(0,v.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},l(i));let o=a||i,d=M=>{o=M||{start:null,end:null},l(o),Xa(o)?r(o):r(null)},[u,c]=ss((o==null?void 0:o.start)||(o==null?void 0:o.end)||t.placeholderValue||null,t.granularity),m=u==="hour"||u==="minute"||u==="second",p=t.shouldCloseOnSelect??!0,[h,g]=(0,v.useState)(null),[f,x]=(0,v.useState)(null);o&&Xa(o)&&(h=o,"hour"in o.start&&(f=o));let b=(M,I)=>{d({start:"timeZone"in I.start?I.start.set(mt(M.start)):qt(M.start,I.start),end:"timeZone"in I.end?I.end.set(mt(M.end)):qt(M.end,I.end)}),g(null),x(null),_.commitValidation()},w=M=>{let I=typeof p=="function"?p():p;m?Xa(M)&&(I||f!=null&&f.start&&(f!=null&&f.end))?b(M,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}):g(M):Xa(M)?(d(M),_.commitValidation()):g(M),I&&e.setOpen(!1)},D=M=>{Xa(h)&&Xa(M)?b(h,M):x(M)},j=((P=o==null?void 0:o.start)==null?void 0:P.calendar.identifier)==="gregory"&&o.start.era==="BC"||((R=o==null?void 0:o.end)==null?void 0:R.calendar.identifier)==="gregory"&&o.end.era==="BC",S=(0,v.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:j}),[u,t.hourCycle,t.shouldForceLeadingZeros,c,t.hideTimeZone,j]),{minValue:N,maxValue:k,isDateUnavailable:y}=t,C=(0,v.useMemo)(()=>f2(o,N,k,y,S),[o,N,k,y,S]),_=Fu({...t,value:a,name:(0,v.useMemo)(()=>[t.startName,t.endName].filter(M=>M!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,T=t.validationState||(E?"invalid":null);return{..._,value:o,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:m,setDate(M,I){w(M==="start"?{start:I,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:I})},setTime(M,I){D(M==="start"?{start:I,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:I})},setDateTime(M,I){d(M==="start"?{start:I,end:(o==null?void 0:o.end)??null}:{start:(o==null?void 0:o.start)??null,end:I})},setDateRange:w,setTimeRange:D,...e,setOpen(M){!M&&!(o!=null&&o.start&&(o!=null&&o.end))&&Xa(h)&&m&&b(h,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}),e.setOpen(M)},validationState:T,isInvalid:E,formatValue(M,I){if(!o||!o.start||!o.end)return null;let V="timeZone"in o.start?o.start.timeZone:void 0,A=t.granularity||(o.start&&"minute"in o.start?"minute":"day"),O="timeZone"in o.end?o.end.timeZone:void 0,z=t.granularity||(o.end&&"minute"in o.end?"minute":"day"),L=pa(I,{granularity:A,timeZone:V,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:o.start.calendar.identifier==="gregory"&&o.start.era==="BC"||o.end.calendar.identifier==="gregory"&&o.end.era==="BC"}),G=o.start.toDate(V||"UTC"),Q=o.end.toDate(O||"UTC"),ae=new Kt(M,L),ce;if(V===O&&A===z&&o.start.compare(o.end)!==0){try{let le=ae.formatRangeToParts(G,Q),Z=-1;for(let te=0;te<le.length;te++){let ie=le[te];if(ie.source==="shared"&&ie.type==="literal")Z=te;else if(ie.source==="endRange")break}let B="",re="";for(let te=0;te<le.length;te++)te<Z?B+=le[te].value:te>Z&&(re+=le[te].value);return{start:B,end:re}}catch{}ce=ae}else ce=new Kt(M,pa(I,{granularity:z,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ae.format(G),end:ce.format(Q)}},getDateFormatter(M,I){return new Kt(M,pa({},{...S,...I}))}}}function Xa(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var Pi=(0,v.createContext)(null),Mi=(0,v.createContext)(null),Fi=(0,v.createContext)(null),yn=(0,v.createContext)(null),k2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,Pi);let{locale:a}=qe(),r=Xh({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Gw(t,r),u=Wa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=st(t,{global:!0});return v.createElement("div",{...Xe(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},v.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[Vl,{"aria-hidden":!0,level:2,children:d}],[Fi,r],[Pi,t],[Gn,{slots:{errorMessage:o}}]]},v.createElement(Kn,null,v.createElement("h2",null,n["aria-label"])),u.children,v.createElement(Kn,null,v.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),N2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,Mi);let{locale:a}=qe(),r=p2({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Jw(t,r,e),u=Wa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=st(t,{global:!0});return v.createElement("div",{...Xe(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},v.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[Vl,{"aria-hidden":!0,level:2,children:d}],[yn,r],[Mi,t],[Gn,{slots:{errorMessage:o}}]]},v.createElement(Kn,null,v.createElement("h2",null,n["aria-label"])),u.children,v.createElement(Kn,null,v.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),Vi=(0,v.createContext)(null),E2=(0,v.forwardRef)(function(t,e){let a=(0,v.useContext)(Fi),r=(0,v.useContext)(yn),n=eo(Pi),i=eo(Mi),l=a??r,o=l.visibleRange.start;t.offset&&(o=o.add(t.offset));let d=(n==null?void 0:n.firstDayOfWeek)??(i==null?void 0:i.firstDayOfWeek),{gridProps:u,headerProps:c,weekDays:m,weeksInMonth:p}=Qw({startDate:o,endDate:vi(o),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},l),h=st(t,{global:!0});return v.createElement(Vi.Provider,{value:{headerProps:c,weekDays:m,startDate:o,weeksInMonth:p}},v.createElement("table",{...Xe(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?v.createElement(v.Fragment,null,v.createElement(Hf,null,g=>v.createElement(Wf,null,g)),v.createElement(Uf,null,t.children)):t.children))});function _2(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:l}=(0,v.useContext)(Vi),o=st(t,{global:!0});return v.createElement("thead",{...Xe(o,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},v.createElement("tr",null,l.map((d,u)=>v.cloneElement(a(d),{key:u}))))}var Hf=(0,v.forwardRef)(_2);function R2(t,e){let{children:a,style:r,className:n}=t,i=st(t,{global:!0});return v.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Wf=(0,v.forwardRef)(R2);function T2(t,e){let{children:a,style:r,className:n}=t,i=(0,v.useContext)(Fi),l=(0,v.useContext)(yn),o=i??l,{startDate:d,weeksInMonth:u}=(0,v.useContext)(Vi),c=st(t,{global:!0});return v.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(m=>v.createElement("tr",{key:m},o.getDatesInWeek(m,d).map((p,h)=>p?v.cloneElement(a(p),{key:h}):v.createElement("td",{key:h})))))}var Uf=(0,v.forwardRef)(T2),A2=(0,v.forwardRef)(function({date:t,...e},a){let r=(0,v.useContext)(Fi),n=(0,v.useContext)(yn),i=r??n,{startDate:l}=(0,v.useContext)(Vi)??{startDate:i.visibleRange.start},o=!Ob(l,t),d=Qc(t,i.timeZone),u=(0,v.useRef)(null),{cellProps:c,buttonProps:m,...p}=e2({date:t,isOutsideMonth:o},i,u),{hoverProps:h,isHovered:g}=yv({...e,isDisabled:p.isDisabled}),{focusProps:f,isFocusVisible:x}=ql();x&&(x=p.isFocused);let b=!1,w=!1;"highlightedRange"in i&&i.highlightedRange&&(b=Ue(t,i.highlightedRange.start),w=Ue(t,i.highlightedRange.end));let D=Wa({...e,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:o,isFocusVisible:x,isSelectionStart:b,isSelectionEnd:w,isToday:d,...p}}),j={"data-focused":p.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":p.isPressed||void 0,"data-unavailable":p.isUnavailable||void 0,"data-disabled":p.isDisabled||void 0,"data-focus-visible":x||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":o||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":p.isInvalid||void 0,"data-today":d||void 0},S=st(e,{global:!0});return v.createElement("td",{...c,ref:a},v.createElement("div",{...Xe(S,m,f,h,j,D),ref:u}))}),I2=(0,v.createContext)({placement:"bottom"}),ds=(0,v.createContext)(null),Kf=(0,v.createContext)(null),P2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,ds);let a=(0,v.useContext)(zi),r=os(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=Nb(e,n.isOpen)||t.isExiting||!1,l=PT(),{direction:o}=qe();if(l){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,d)}return n&&!n.isOpen&&!i?null:v.createElement(M2,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:o})});function M2({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,v.useRef)(null),l=(0,v.useRef)(null),o=(0,v.useContext)(Kf),d=o&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:m,placement:p,triggerAnchorPoint:h}=Uw({...n,offset:n.offset??8,arrowRef:i,groupRef:d?o:l},t),g=n.popoverRef,f=kb(g,!!p)||n.isEntering||!1,x=Wa({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:p,isEntering:f,isExiting:e}}),b=!n.isNonModal||n.trigger==="SubmenuTrigger",[w,D]=(0,v.useState)(!1);Da(()=>{g.current&&D(b&&!g.current.querySelector("[role=dialog]"))},[g,b]),(0,v.useEffect)(()=>{w&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&Mu(g.current)},[w,g,n.trigger]);let j=(0,v.useMemo)(()=>{let k=x.children;if(r)for(let y of r)k=v.createElement(y.Provider,{value:null},k);return k},[x.children,r]),S={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...x.style},N=v.createElement("div",{...Xe(st(n,{global:!0}),u),...x,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:S,dir:n.dir,"data-trigger":n.trigger,"data-placement":p,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&v.createElement(Rp,{onDismiss:t.close}),v.createElement(I2.Provider,{value:{...m,placement:p,ref:i}},j),v.createElement(Rp,{onDismiss:t.close}));return d?v.createElement(Ap,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a??(o==null?void 0:o.current)??void 0},N):v.createElement(Ap,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&v.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),v.createElement("div",{ref:l,style:{display:"contents"}},v.createElement(Kf.Provider,{value:l},N)))}var us=(0,v.createContext)(null),zi=(0,v.createContext)(null),F2=(0,v.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ua(t,e,us);let{dialogProps:r,titleProps:n}=m2({...t,"aria-labelledby":a},e),i=(0,v.useContext)(zi);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let l=Wa({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),o=st(t,{global:!0});return v.createElement("section",{...Xe(o,l,r),ref:e,slot:t.slot||void 0},v.createElement(Ur,{values:[[Vl,{slots:{[vv]:{},title:{...n,level:2}}}],[Zr,{slots:{[vv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},l.children))}),V2=["day","month","year"],z2={hour:1,minute:2,second:3};function O2(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=R_({style:{position:"fixed",top:0,left:0}}),l=60;e.granularity==="second"?l=1:e.granularity==="hour"&&(l=3600);let o=e.value==null?"":e.value.toString(),d=e.granularity==="day"?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(e.granularity)&&(c=z2[e.granularity],u=u.slice(0,c)),{containerProps:{...i,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:a,disabled:r,type:d,form:"",name:n,step:l,value:o,onChange:m=>{let p=m.target.value.toString();if(p)try{let h=wi(p);if(e.granularity==="day"&&(h=ka(p)),"setSegment"in e)for(let g in h)V2.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function $2(t){let{state:e}=t,{containerProps:a,inputProps:r}=O2({...t},e);return v.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},v.createElement("input",r))}var cs=(0,v.createContext)(null),Oi=(0,v.createContext)(null),ms=(0,v.createContext)(null),L2=(0,v.forwardRef)(function(t,e){let a=(0,v.useContext)(Oi),r=(0,v.useContext)(ms);return a||r?v.createElement(Zf,{...t,ref:e}):v.createElement(B2,{...t,ref:e})}),B2=(0,v.forwardRef)((t,e)=>{let[a,r]=Ua({slot:t.slot},e,cs),{locale:n}=qe(),i=w2({...a,locale:n,createCalendar:Go}),l=(0,v.useRef)(null),{fieldProps:o,inputProps:d}=a2({...a,inputRef:l},i,r);return v.createElement(Ur,{values:[[Oi,i],[qT,{...d,ref:l}],[to,{...o,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},v.createElement(Zf,t))}),Zf=(0,v.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,v.useContext)(Oi),i=(0,v.useContext)(ms),l=n??i;return v.createElement(v.Fragment,null,v.createElement(WT,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,d)=>(0,v.cloneElement)(r(o),{key:d}))),v.createElement(LT,null))}),H2=(0,v.forwardRef)(function({segment:t,...e},a){let r=(0,v.useContext)(Oi),n=(0,v.useContext)(ms),i=r??n,l=ZT(a),{segmentProps:o}=s2(t,i,l),{focusProps:d,isFocused:u,isFocusVisible:c}=ql(),{hoverProps:m,isHovered:p}=yv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Wa({...e,values:{...t,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:u,isFocusVisible:c},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return v.createElement("span",{...Xe(st(e,{global:!0}),o,d,m),...h,style:o.style,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":i.isReadOnly||void 0,"data-disabled":i.isDisabled||void 0,"data-type":t.type,"data-hovered":p||void 0,"data-focused":u||void 0,"data-focus-visible":c||void 0})}),W2=(0,v.createContext)(null),U2=(0,v.createContext)(null),K2=(0,v.createContext)(null),Z2=(0,v.createContext)(null),qf=[to,Zr,Lu,Gn],q2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,W2);let{validationBehavior:a}=eo(Dv)||{},r=t.validationBehavior??a??"native",n=v2({...t,validationBehavior:r}),i=(0,v.useRef)(null),[l,o]=wv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:m,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:f,...x}=n2({...jv(t),label:o,validationBehavior:r},n,i),[b,w]=(0,v.useState)(null);ci({ref:i,onResize:(0,v.useCallback)(()=>{i.current&&w(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:S}=ql({within:!0}),N=Wa({...t,values:{state:n,isFocusWithin:j,isFocusVisible:S,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),k=st(t,{global:!0});return delete k.id,v.createElement(Ur,{values:[[K2,n],[to,{...d,ref:i,isInvalid:n.isInvalid}],[cs,c],[Zr,{...m,isPressed:n.isOpen}],[Lu,{...u,ref:l,elementType:"span"}],[Pi,h],[zi,n],[ds,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:qf}],[us,p],[Gn,{slots:{description:g,errorMessage:f}}],[Cv,x]]},v.createElement("div",{...Xe(k,N,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),v.createElement($2,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),Y2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,U2);let{validationBehavior:a}=eo(Dv)||{},r=t.validationBehavior??a??"native",n=S2({...t,validationBehavior:r}),i=(0,v.useRef)(null),[l,o]=wv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:m,buttonProps:p,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:x,...b}=c2({...jv(t),label:o,validationBehavior:r},n,i),[w,D]=(0,v.useState)(null);ci({ref:i,onResize:(0,v.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:S,isFocusVisible:N}=ql({within:!0}),k=Wa({...t,values:{state:n,isFocusWithin:S,isFocusVisible:N,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=st(t,{global:!0});return delete y.id,v.createElement(Ur,{values:[[Z2,n],[to,{...d,ref:i,isInvalid:n.isInvalid}],[Zr,{...p,isPressed:n.isOpen}],[Lu,{...u,ref:l,elementType:"span"}],[Mi,g],[zi,n],[ds,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:qf}],[us,h],[cs,{slots:{start:c,end:m}}],[Gn,{slots:{description:f,errorMessage:x}}],[Cv,b]]},v.createElement("div",{...Xe(y,k,j),ref:e,slot:t.slot||void 0,"data-focus-within":S||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":N||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}))}),G2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,Vl);let{children:a,level:r=3,className:n,...i}=t,l=`h${r}`;return v.createElement(l,{...i,ref:e,className:n??"react-aria-Heading"},a)}),J2=xa(Wn(),1),ps="ToastProvider",[hs,Q2,X2]=lo("Toast"),[Yf,O6]=Bu("Toast",[X2]),[e4,$i]=Yf(ps),Gf=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:l}=t,[o,d]=v.useState(null),[u,c]=v.useState(0),m=v.useRef(!1),p=v.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${ps}\`. Expected non-empty \`string\`.`),(0,s.jsx)(hs.Provider,{scope:e,children:(0,s.jsx)(e4,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:o,onViewportChange:d,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:p,children:l})})};Gf.displayName=ps;var Jf="ToastViewport",t4=["F8"],fs="toast.viewportPause",gs="toast.viewportResume",Qf=v.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=t4,label:n="Notifications ({hotkey})",...i}=t,l=$i(Jf,a),o=Q2(a),d=v.useRef(null),u=v.useRef(null),c=v.useRef(null),m=v.useRef(null),p=St(e,m,l.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=l.toastCount>0;v.useEffect(()=>{let x=b=>{var w;r.length!==0&&r.every(D=>b[D]||b.code===D)&&((w=m.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),v.useEffect(()=>{let x=d.current,b=m.current;if(g&&x&&b){let w=()=>{if(!l.isClosePausedRef.current){let N=new CustomEvent(fs);b.dispatchEvent(N),l.isClosePausedRef.current=!0}},D=()=>{if(l.isClosePausedRef.current){let N=new CustomEvent(gs);b.dispatchEvent(N),l.isClosePausedRef.current=!1}},j=N=>{x.contains(N.relatedTarget)||D()},S=()=>{x.contains(document.activeElement)||D()};return x.addEventListener("focusin",w),x.addEventListener("focusout",j),x.addEventListener("pointermove",w),x.addEventListener("pointerleave",S),window.addEventListener("blur",w),window.addEventListener("focus",D),()=>{x.removeEventListener("focusin",w),x.removeEventListener("focusout",j),x.removeEventListener("pointermove",w),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",w),window.removeEventListener("focus",D)}}},[g,l.isClosePausedRef]);let f=v.useCallback(({tabbingDirection:x})=>{let b=o().map(w=>{let D=w.ref.current,j=[D,...h4(D)];return x==="forwards"?j:j.reverse()});return(x==="forwards"?b.reverse():b).flat()},[o]);return v.useEffect(()=>{let x=m.current;if(x){let b=w=>{var j,S,N;let D=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!D){let k=document.activeElement,y=w.shiftKey;if(w.target===x&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===k);ys(C.slice(_+1))?w.preventDefault():y?(S=u.current)==null||S.focus():(N=c.current)==null||N.focus()}};return x.addEventListener("keydown",b),()=>x.removeEventListener("keydown",b)}},[o,f]),(0,s.jsxs)(yA,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(xs,{ref:u,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(hs.Slot,{scope:a,children:(0,s.jsx)(We.ol,{tabIndex:-1,...i,ref:p})}),g&&(0,s.jsx)(xs,{ref:c,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"backwards"}))}})]})});Qf.displayName=Jf;var Xf="ToastFocusProxy",xs=v.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=$i(Xf,a);return(0,s.jsx)(Av,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:l=>{var d;let o=l.relatedTarget;(d=i.viewport)!=null&&d.contains(o)||r()}})});xs.displayName=Xf;var bn="Toast",a4="toast.swipeStart",r4="toast.swipeMove",n4="toast.swipeCancel",i4="toast.swipeEnd",eg=v.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...l}=t,[o,d]=io({prop:r,defaultProp:n??!0,onChange:i,caller:bn});return(0,s.jsx)(Qn,{present:a||o,children:(0,s.jsx)(s4,{open:o,...l,ref:e,onClose:()=>d(!1),onPause:Ut(t.onPause),onResume:Ut(t.onResume),onSwipeStart:Ee(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(t.onSwipeMove,u=>{let{x:c,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:Ee(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(t.onSwipeEnd,u=>{let{x:c,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});eg.displayName=bn;var[l4,o4]=Yf(bn,{onClose(){}}),s4=v.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:l,onEscapeKeyDown:o,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:m,onSwipeCancel:p,onSwipeEnd:h,...g}=t,f=$i(bn,a),[x,b]=v.useState(null),w=St(e,R=>b(R)),D=v.useRef(null),j=v.useRef(null),S=n||f.duration,N=v.useRef(0),k=v.useRef(S),y=v.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=Ut(()=>{var R;x!=null&&x.contains(document.activeElement)&&((R=f.viewport)==null||R.focus()),l()}),T=v.useCallback(R=>{!R||R===1/0||(window.clearTimeout(y.current),N.current=new Date().getTime(),y.current=window.setTimeout(E,R))},[E]);v.useEffect(()=>{let R=f.viewport;if(R){let M=()=>{T(k.current),u==null||u()},I=()=>{let V=new Date().getTime()-N.current;k.current-=V,window.clearTimeout(y.current),d==null||d()};return R.addEventListener(fs,I),R.addEventListener(gs,M),()=>{R.removeEventListener(fs,I),R.removeEventListener(gs,M)}}},[f.viewport,S,d,u,T]),v.useEffect(()=>{i&&!f.isClosePausedRef.current&&T(S)},[i,S,f.isClosePausedRef,T]),v.useEffect(()=>(C(),()=>_()),[C,_]);let P=v.useMemo(()=>x?og(x):null,[x]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(d4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:P}),(0,s.jsx)(l4,{scope:a,onClose:E,children:J2.createPortal((0,s.jsx)(hs.ItemSlot,{scope:a,children:(0,s.jsx)(gA,{asChild:!0,onEscapeKeyDown:Ee(o,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(We.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ee(t.onKeyDown,R=>{R.key==="Escape"&&(o==null||o(R.nativeEvent),R.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:Ee(t.onPointerDown,R=>{R.button===0&&(D.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ee(t.onPointerMove,R=>{if(!D.current)return;let M=R.clientX-D.current.x,I=R.clientY-D.current.y,V=!!j.current,A=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,z=A?O(0,M):0,L=A?0:O(0,I),G=R.pointerType==="touch"?10:2,Q={x:z,y:L},ae={originalEvent:R,delta:Q};V?(j.current=Q,Li(r4,m,ae,{discrete:!1})):sg(Q,f.swipeDirection,G)?(j.current=Q,Li(a4,c,ae,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(M)>G||Math.abs(I)>G)&&(D.current=null)}),onPointerUp:Ee(t.onPointerUp,R=>{let M=j.current,I=R.target;if(I.hasPointerCapture(R.pointerId)&&I.releasePointerCapture(R.pointerId),j.current=null,D.current=null,M){let V=R.currentTarget,A={originalEvent:R,delta:M};sg(M,f.swipeDirection,f.swipeThreshold)?Li(i4,h,A,{discrete:!0}):Li(n4,p,A,{discrete:!0}),V.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),d4=t=>{let{__scopeToast:e,children:a,...r}=t,n=$i(bn,e),[i,l]=v.useState(!1),[o,d]=v.useState(!1);return m4(()=>l(!0)),v.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:(0,s.jsx)(fA,{asChild:!0,children:(0,s.jsx)(Av,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},u4="ToastTitle",tg=v.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(We.div,{...r,ref:e})});tg.displayName=u4;var c4="ToastDescription",ag=v.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(We.div,{...r,ref:e})});ag.displayName=c4;var rg="ToastAction",ng=v.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)(lg,{altText:a,asChild:!0,children:(0,s.jsx)(vs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${rg}\`. Expected non-empty \`string\`.`),null)});ng.displayName=rg;var ig="ToastClose",vs=v.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=o4(ig,a);return(0,s.jsx)(lg,{asChild:!0,children:(0,s.jsx)(We.button,{type:"button",...r,ref:e,onClick:Ee(t.onClick,n.onClose)})})});vs.displayName=ig;var lg=v.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function og(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),p4(a)){let r=a.ariaHidden||a.hidden||a.style.display==="none",n=a.dataset.radixToastAnnounceExclude==="";if(!r)if(n){let i=a.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...og(a))}}),e}function Li(t,e,a,{discrete:r}){let n=a.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});e&&n.addEventListener(t,e,{once:!0}),r?Hu(n,i):n.dispatchEvent(i)}var sg=(t,e,a=0)=>{let r=Math.abs(t.x),n=Math.abs(t.y),i=r>n;return e==="left"||e==="right"?i&&r>a:!i&&n>a};function m4(t=()=>{}){let e=Ut(t);no(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function p4(t){return t.nodeType===t.ELEMENT_NODE}function h4(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function ys(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}var f4=Gf,dg=Qf,ug=eg,cg=tg,mg=ag,pg=ng,hg=vs,jr=J(),g4=f4,fg=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(dg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});fg.displayName=dg.displayName;var x4=Ll("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",danger:"group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error"}},defaultVariants:{variant:"default"}}),gg=v.forwardRef((t,e)=>{let a=(0,jr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,variant:i,...n}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l=i||"default",o;a[4]!==r||a[5]!==l?(o=U(x4({variant:l}),"print:hidden",r),a[4]=r,a[5]=l,a[6]=o):o=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==o?(d=(0,s.jsx)(ug,{ref:e,className:o,...n}),a[7]=n,a[8]=e,a[9]=o,a[10]=d):d=a[10],d});gg.displayName=ug.displayName;var v4=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(pg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});v4.displayName=pg.displayName;var xg=v.forwardRef((t,e)=>{let a=(0,jr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Hr,{className:"h-4 w-4"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(hg,{ref:e,className:i,"toast-close":"",...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});xg.displayName=hg.displayName;var vg=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("text-sm font-semibold",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(cg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});vg.displayName=cg.displayName;var yg=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("text-sm opacity-90",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(mg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});yg.displayName=mg.displayName;var y4=J();const b4=()=>{let t=(0,y4.c)(5),{toasts:e}=hA(),a;t[0]===e?a=t[1]:(a=e.map(w4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(fg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(g4,{children:[a,r]}),t[3]=a,t[4]=n),n};function w4(t){let{id:e,title:a,description:r,action:n,...i}=t;return(0,s.jsxs)(gg,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[a&&(0,s.jsx)(vg,{children:a}),r&&(0,s.jsx)(yg,{children:r})]}),n,(0,s.jsx)(xg,{})]},e)}var D4=J();const bs=t=>{let e=(0,D4.c)(5),{children:a}=t,r=Il(V_),n;e[0]===r?n=e[1]:(n=j4(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)($A,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function j4(t){return t&&C4(t)?t:navigator.language}function C4(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var bg=J(),wg=ko(()=>yt(()=>import("./home-page-Dtcd7Trh.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125]),import.meta.url)),Dg=ko(()=>yt(()=>import("./run-page-DLppr0V5.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([126,127,128,4,129,13,130,131,132,133,27,3,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,108,134,135,72,136,106,76,75,81,80,82,83,84,85,86,73,74,70,71,87,137,138,139,95,99,68,140,141,142,143,144,145,146,147,79,88,148,149,91,150,90,92,151,93,94,152,114,115,116,153,118,120,154,155,156,98,157,158,159,160,161,162,163,164,165,166,167,100,168,78,89,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,96,97,277,278,279,280,281,282,283,284,285,286]),import.meta.url)),jg=ko(()=>yt(()=>import("./edit-page-CdRvNDWO.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([287,4,288,10,127,128,129,13,130,131,132,133,27,3,5,6,7,8,9,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,108,134,135,72,136,106,76,75,81,80,82,83,84,85,86,73,74,70,71,87,137,138,139,95,99,68,140,141,142,143,144,145,146,147,79,88,148,149,91,150,90,92,151,93,94,152,114,115,116,153,118,120,154,155,156,98,157,158,159,160,161,162,163,164,165,166,167,100,168,78,89,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,96,97,277,278,279,280,281,282,283,284,2,69,77,101,102,103,1,104,105,107,289,290,109,291,292,293,110,111,112,294,113,295,296,297,298,299,300,301,302,124,303,304,305,306,307,125,308,309,117,286,310,123,311,312,313,314,315,316,317,318,319,320,321,322,323,324]),import.meta.url));function S4(t){t==="home"?wg.preload():t==="read"?Dg.preload():jg.preload()}const Cg=(0,v.memo)(()=>{let t=(0,bg.c)(12),[e]=B_(),[a]=L_(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=k4(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=r);let n=r,i;t[2]!==a||t[3]!==e?(i=()=>{let c=SA();return c==="home"?(0,s.jsx)(wg.Component,{}):c==="read"?(0,s.jsx)(Dg.Component,{appConfig:a}):(0,s.jsx)(jg.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let l=i,o;t[5]===n?o=t[6]:(o={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=o);let d;t[7]===l?d=t[8]:(d=(0,s.jsx)(bs,{children:l()}),t[7]=l,t[8]=d);let u;return t[9]!==o||t[10]!==d?(u=(0,s.jsx)(Sg,{children:(0,s.jsx)(bb,{variables:o,children:d})}),t[9]=o,t[10]=d,t[11]=u):u=t[11],u});Cg.displayName="MarimoApp";var Sg=(0,v.memo)(t=>{let e=(0,bg.c)(5),{children:a}=t,r,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(b4,{}),n=(0,s.jsx)(yb,{}),i=(0,s.jsx)(Db,{}),e[0]=r,e[1]=n,e[2]=i):(r=e[0],n=e[1],i=e[2]);let l;return e[3]===a?l=e[4]:(l=(0,s.jsx)(Ol,{children:(0,s.jsx)(v.Suspense,{children:(0,s.jsx)(Nt,{children:(0,s.jsx)(H1,{controller:Un,children:(0,s.jsx)(bs,{children:(0,s.jsxs)(KA,{children:[a,r,n,i]})})})})})}),e[3]=a,e[4]=l),l});Sg.displayName="Providers";function k4(t){return`${t/16}rem`}function N4(){q_(t=>{t.delete(ju.accessToken)})}var E4={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsMarkdown:"startConnection",exportAsPDF:"startConnection",readCode:"startConnection",sendCopy:"throwError",sendFormat:"throwError",sendRestart:"throwError",sendSave:"waitForConnectionOpen",invokeAiTool:"waitForConnectionOpen",sendFunctionRequest:"waitForConnectionOpen",sendRename:"waitForConnectionOpen",autoExportAsHTML:"waitForConnectionOpen",autoExportAsMarkdown:"waitForConnectionOpen",autoExportAsIPYNB:"waitForConnectionOpen",updateCellOutputs:"waitForConnectionOpen",listSecretKeys:"throwError",writeSecret:"throwError",clearCache:"throwError",getCacheInfo:"throwError",saveUserConfig:"throwError",sendShutdown:"throwError",getPackageList:"throwError",getDependencyTree:"throwError",addPackage:"throwError",removePackage:"throwError",sendListFiles:"startConnection",sendSearchFiles:"startConnection",sendCreateFileOrFolder:"throwError",sendDeleteFileOrFolder:"throwError",sendRenameFileOrFolder:"throwError",sendUpdateFile:"throwError",sendFileDetails:"throwError",openFile:"throwError",getRecentFiles:"startConnection",getWorkspaceFiles:"startConnection",getRunningNotebooks:"startConnection",shutdownSession:"startConnection",openTutorial:"startConnection",getUsageStats:"waitForConnectionOpen",sendStdin:"waitForConnectionOpen",sendInterrupt:"waitForConnectionOpen",sendPdb:"waitForConnectionOpen",sendInstallMissingPackages:"waitForConnectionOpen",readSnippets:"waitForConnectionOpen",previewDatasetColumn:"waitForConnectionOpen",previewSQLTable:"waitForConnectionOpen",previewSQLTableList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function _4(t,e){let a=TR(async n=>{Oe.set(G1,{state:Z1.CONNECTING}),await n.init()});function r(n,i){let l=E4[i];return async(...o)=>{let d=e();if(!d.isLazy)return n(...o);switch(l){case"dropRequest":se.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Hv;case"waitForConnectionOpen":return await Ze(),await B1(),n(...o);case"startConnection":return await a(d),await Ze(),i!=="sendInstantiate"&&await B1(),n(...o);default:throw Error(`Unknown action for "${i}"`)}}}return Va.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:Ve,handleResponseReturnNull:we}=G_;function R4(){let t=ZE(()=>X_(Cu())),e=()=>Cu().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(we),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(we),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(we),syncCellIds:async r=>(await Ze(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(we)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(we),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(we),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(we),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then(Ve),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(we),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(we),sendRun:async r=>(await Ze(),t().POST("/api/kernel/run",{body:r,params:a()}).then(we)),sendRunScratchpad:async r=>(await Ze(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(we)),sendInstantiate:async r=>(await Ze(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(we)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(we),sendCodeCompletionRequest:async r=>(await Ze(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(we)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(we),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(we),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(we),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(we),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(we),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(we),readCode:async()=>(await Ze(),t().POST("/api/kernel/read_code",{params:a()}).then(Ve)),readSnippets:async()=>(await Ze(),t().GET("/api/documentation/snippets",{params:a()}).then(Ve)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(we),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(we),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(we),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(we),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(we),openFile:async r=>(await Ze(),await t().POST("/api/files/open",{body:r}).then(we),null),getUsageStats:async()=>(await Ze(),t().GET("/api/usage").then(Ve)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(we),sendListFiles:async r=>(await Ze(),t().POST("/api/files/list_files",{body:r}).then(Ve)),sendSearchFiles:async r=>(await Ze(),t().POST("/api/files/search",{body:r}).then(Ve)),sendCreateFileOrFolder:async r=>(await Ze(),t().POST("/api/files/create",{body:r}).then(Ve)),sendDeleteFileOrFolder:async r=>(await Ze(),t().POST("/api/files/delete",{body:r}).then(Ve)),sendRenameFileOrFolder:async r=>(await Ze(),t().POST("/api/files/move",{body:r}).then(Ve)),sendUpdateFile:async r=>(await Ze(),t().POST("/api/files/update",{body:r}).then(Ve)),sendFileDetails:async r=>(await Ze(),t().POST("/api/files/file_details",{body:r}).then(Ve)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then(Ve),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Ve),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then(Ve),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Ve),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then(Ve),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then(Ve),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then(Ve),exportAsPDF:async r=>t().POST("/api/export/pdf",{body:r,parseAs:"blob",params:a()}).then(Ve),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(we),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(we),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(we),updateCellOutputs:async r=>t().POST("/api/export/update_cell_outputs",{body:r,params:a()}).then(we),addPackage:r=>t().POST("/api/packages/add",{body:r}).then(Ve),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then(Ve),getPackageList:async()=>(await Ze(),t().GET("/api/packages/list").then(Ve)),getDependencyTree:async()=>(await Ze(),t().GET("/api/packages/tree").then(Ve)),listSecretKeys:async r=>(await Ze(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(we)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(we),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then(Ve),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(we),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(we)}}function T4(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(Wt({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(se.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(se.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(Wt({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Function requests are not supported in static mode"),null),sendRestart:t,syncCellIds:t,sendRun:t,sendRunScratchpad:t,sendRename:t,sendSave:t,sendCopy:t,sendInterrupt:t,sendShutdown:t,sendFormat:t,sendDeleteCell:t,sendCodeCompletionRequest:t,saveUserConfig:t,saveAppConfig:t,saveCellConfig:t,sendStdin:t,readCode:t,readSnippets:t,previewDatasetColumn:t,previewSQLTable:t,previewSQLTableList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsMarkdown:t,exportAsPDF:t,autoExportAsHTML:t,autoExportAsMarkdown:t,autoExportAsIPYNB:t,updateCellOutputs:t,addPackage:t,removePackage:t,getPackageList:t,getDependencyTree:t,listSecretKeys:t,writeSecret:t,invokeAiTool:t,clearCache:t,getCacheInfo:t}}var A4=J();function I4(t){let e={sendComponentValues:"Failed update value",sendModelValue:"Failed to update model value",sendInstantiate:"Failed to instantiate",sendFunctionRequest:"Failed to send function request",sendRestart:"Failed to restart",syncCellIds:"Failed to sync cell IDs",sendRun:"Failed to run",sendRunScratchpad:"Failed to run scratchpad",sendRename:"Failed to rename",sendSave:"Failed to save",sendCopy:"Failed to copy",sendInterrupt:"Failed to interrupt",sendShutdown:"Failed to shutdown",sendFormat:"Failed to format",sendDeleteCell:"Failed to delete cell",sendCodeCompletionRequest:"Failed to complete code",saveUserConfig:"Failed to save user config",saveAppConfig:"Failed to save app config",saveCellConfig:"Failed to save cell config",sendStdin:"Failed to send stdin",readCode:"Failed to read code",readSnippets:"Failed to fetch snippets",previewDatasetColumn:"Failed to fetch data sources",previewSQLTable:"Failed to fetch SQL table",previewSQLTableList:"Failed to fetch SQL table list",previewDataSourceConnection:"Failed to preview data source connection",validateSQL:"Failed to validate SQL",openFile:"Failed to open file",getUsageStats:"",sendListFiles:"Failed to list files",sendSearchFiles:"Failed to search files",sendPdb:"Failed to start debug session",sendCreateFileOrFolder:"Failed to create file or folder",sendDeleteFileOrFolder:"Failed to delete file or folder",sendRenameFileOrFolder:"Failed to rename file or folder",sendUpdateFile:"Failed to update file",sendFileDetails:"Failed to get file details",openTutorial:"Failed to open tutorial",sendInstallMissingPackages:"Failed to install missing packages",getRecentFiles:"Failed to get recent files",getWorkspaceFiles:"Failed to get workspace files",getRunningNotebooks:"Failed to get running notebooks",shutdownSession:"Failed to shutdown session",exportAsHTML:"Failed to export HTML",exportAsMarkdown:"Failed to export Markdown",exportAsPDF:"Failed to export PDF",autoExportAsHTML:"",autoExportAsMarkdown:"",autoExportAsIPYNB:"",updateCellOutputs:"",addPackage:"Failed to add package",removePackage:"Failed to remove package",getPackageList:"Failed to get package list",getDependencyTree:"Failed to get dependency tree",listSecretKeys:"Failed to fetch secrets",writeSecret:"Failed to write secret",invokeAiTool:"Failed to invoke AI tool",clearCache:"Failed to clear cache",getCacheInfo:""},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...l)=>{try{return await n(...l)}catch(o){if(o instanceof Hv){if(Oe.get(q1))return;let c=Wt({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(P4,{onConnect:()=>c.dismiss()})});throw se.error(`Failed to handle request: ${r}`,o),o}let d=e[i],u=Wv(o);throw d&&Wt({title:d,description:u,variant:"danger"}),se.error(`Failed to handle request: ${r}`,o),o}}}return a}const P4=t=>{let e=(0,A4.c)(9),{onConnect:a}=t,r=H_(),n=Il(q1),i;e[0]!==r||e[1]!==a?(i=()=>{r(),setTimeout(()=>{a()},800)},e[0]=r,e[1]=a,e[2]=i):i=e[2];let l;e[3]===n?l=e[4]:(l=n&&(0,s.jsx)(Yn,{size:"small",className:"mr-1"}),e[3]=n,e[4]=l);let o;return e[5]!==n||e[6]!==i||e[7]!==l?(o=(0,s.jsxs)(Ce,{size:"xs",onClick:i,disabled:n,children:[l,"Connect"]}),e[5]=n,e[6]=i,e[7]=l,e[8]=o):o=e[8],o};function M4(){let t;return t=U_()?b_.INSTANCE:Zn()?T4():_4(R4(),()=>Cu()),I4(t)}function F4(t=J1()){let e=window.fetch;return window.fetch=async(a,r)=>{let n=a instanceof Request?a.url:a.toString();if(n.startsWith("data:"))return e(a,r);try{let i=ws(n,t);if(i){let l=await(await e(i)).arrayBuffer();return new Response(l,{headers:{"Content-Type":V4(n)}})}return e(a,r)}catch(i){return se.error("Error parsing URL",i),e(a,r)}},()=>{window.fetch=e}}function V4(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}function z4(t,e=J1()){let a=t.http.bind(t),r=t.load.bind(t);return t.http=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await a(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},t.load=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await r(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},()=>{t.http=a,t.load=r}}function kg(t){return t.startsWith(".")?t.slice(1):t}function ws(t,e){let a=document.baseURI;a.startsWith("blob:")&&(a=a.replace("blob:",""));let r=new URL(t,a).pathname;if(t.startsWith("file://")){let n=t.indexOf("/@file/");n!==-1&&(t=t.slice(n))}return e[t]||e[kg(t)]||e[r]||e[kg(r)]}var O4=xa(Wn(),1),er="NavigationMenu",[Ds,Ng,$4]=lo(er),[js,L4,B4]=lo(er),[Cs,$6]=Bu(er,[$4,B4]),[H4,Rt]=Cs(er),[W4,U4]=Cs(er),Eg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:l=200,skipDelayDuration:o=300,orientation:d="horizontal",dir:u,...c}=t,[m,p]=v.useState(null),h=St(e,C=>p(C)),g=Pv(u),f=v.useRef(0),x=v.useRef(0),b=v.useRef(0),[w,D]=v.useState(!0),[j,S]=io({prop:r,onChange:C=>{let _=C!=="",E=o>0;_?(window.clearTimeout(b.current),E&&D(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>D(!0),o)),n==null||n(C)},defaultProp:i??"",caller:er}),N=v.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>S(""),150)},[S]),k=v.useCallback(C=>{window.clearTimeout(x.current),S(C)},[S]),y=v.useCallback(C=>{j===C?window.clearTimeout(x.current):f.current=window.setTimeout(()=>{window.clearTimeout(x.current),S(C)},l)},[j,S,l]);return v.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(x.current),window.clearTimeout(b.current)},[]),(0,s.jsx)(_g,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:m,onTriggerEnter:C=>{window.clearTimeout(f.current),w?y(C):k(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),N()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:N,onItemSelect:C=>{S(_=>_===C?"":C)},onItemDismiss:()=>S(""),children:(0,s.jsx)(We.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});Eg.displayName=er;var Ss="NavigationMenuSub",K4=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:l="horizontal",...o}=t,d=Rt(Ss,a),[u,c]=io({prop:r,onChange:n,defaultProp:i??"",caller:Ss});return(0,s.jsx)(_g,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:m=>c(m),onItemSelect:m=>c(m),onItemDismiss:()=>c(""),children:(0,s.jsx)(We.div,{"data-orientation":l,...o,ref:e})})});K4.displayName=Ss;var _g=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:l,value:o,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:m,onContentEnter:p,onContentLeave:h}=t,[g,f]=v.useState(null),[x,b]=v.useState(new Map),[w,D]=v.useState(null);return(0,s.jsx)(H4,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:o,previousValue:cv(o),baseId:Tv(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:w,onIndicatorTrackChange:D,onTriggerEnter:Ut(c),onTriggerLeave:Ut(m),onContentEnter:Ut(p),onContentLeave:Ut(h),onItemSelect:Ut(d),onItemDismiss:Ut(u),onViewportContentChange:v.useCallback((j,S)=>{b(N=>(N.set(j,S),new Map(N)))},[]),onViewportContentRemove:v.useCallback(j=>{b(S=>S.has(j)?(S.delete(j),new Map(S)):S)},[]),children:(0,s.jsx)(Ds.Provider,{scope:e,children:(0,s.jsx)(W4,{scope:e,items:x,children:l})})})},Rg="NavigationMenuList",Tg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Rt(Rg,a),i=(0,s.jsx)(We.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(We.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Ds.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(Bg,{asChild:!0,children:i}):i})})});Tg.displayName=Rg;var Ag="NavigationMenuItem",[Z4,Ig]=Cs(Ag),Pg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=Tv(),l=r||i||"LEGACY_REACT_AUTO_VALUE",o=v.useRef(null),d=v.useRef(null),u=v.useRef(null),c=v.useRef(()=>{}),m=v.useRef(!1),p=v.useCallback((g="start")=>{if(o.current){c.current();let f=_s(o.current);f.length&&Rs(g==="start"?f:f.reverse())}},[]),h=v.useCallback(()=>{if(o.current){let g=_s(o.current);g.length&&(c.current=eD(g))}},[]);return(0,s.jsx)(Z4,{scope:a,value:l,triggerRef:d,contentRef:o,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(We.li,{...n,ref:e})})});Pg.displayName=Ag;var ks="NavigationMenuTrigger",Mg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=Rt(ks,t.__scopeNavigationMenu),l=Ig(ks,t.__scopeNavigationMenu),o=v.useRef(null),d=St(o,l.triggerRef,e),u=Ug(i.baseId,l.value),c=Kg(i.baseId,l.value),m=v.useRef(!1),p=v.useRef(!1),h=l.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ds.ItemSlot,{scope:a,value:l.value,children:(0,s.jsx)(Wg,{asChild:!0,children:(0,s.jsx)(We.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":As(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:Ee(t.onPointerEnter,()=>{p.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:Ee(t.onPointerMove,Hi(()=>{r||p.current||l.wasEscapeCloseRef.current||m.current||(i.onTriggerEnter(l.value),m.current=!0)})),onPointerLeave:Ee(t.onPointerLeave,Hi(()=>{r||(i.onTriggerLeave(),m.current=!1)})),onClick:Ee(t.onClick,()=>{i.onItemSelect(l.value),p.current=h}),onKeyDown:Ee(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(l.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(DA,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:g=>{let f=l.contentRef.current,x=g.relatedTarget,b=x===o.current,w=f==null?void 0:f.contains(x);(b||!w)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});Mg.displayName=ks;var q4="NavigationMenuLink",Fg="navigationMenu.linkSelect",Vg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(Wg,{asChild:!0,children:(0,s.jsx)(We.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:Ee(t.onClick,l=>{let o=l.target,d=new CustomEvent(Fg,{bubbles:!0,cancelable:!0});o.addEventListener(Fg,u=>n==null?void 0:n(u),{once:!0}),Hu(o,d),!d.defaultPrevented&&!l.metaKey&&Hu(o,new CustomEvent(Bi,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Vg.displayName=q4;var Ns="NavigationMenuIndicator",zg=v.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=Rt(Ns,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?O4.createPortal((0,s.jsx)(Qn,{present:a||i,children:(0,s.jsx)(Y4,{...r,ref:e})}),n.indicatorTrack):null});zg.displayName=Ns;var Y4=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Rt(Ns,a),i=Ng(a),[l,o]=v.useState(null),[d,u]=v.useState(null),c=n.orientation==="horizontal",m=!!n.value;v.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&o(h)},[i,n.value]);let p=()=>{l&&u({size:c?l.offsetWidth:l.offsetHeight,offset:c?l.offsetLeft:l.offsetTop})};return Ts(l,p),Ts(n.indicatorTrack,p),d?(0,s.jsx)(We.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":n.orientation,...r,ref:e,style:{position:"absolute",...c?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),Cr="NavigationMenuContent",Og=v.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=Rt(Cr,t.__scopeNavigationMenu),i=Ig(Cr,t.__scopeNavigationMenu),l=St(i.contentRef,e),o=i.value===n.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return n.viewport?(0,s.jsx)(G4,{forceMount:a,...d,ref:l}):(0,s.jsx)(Qn,{present:a||o,children:(0,s.jsx)($g,{"data-state":As(o),...d,ref:l,onPointerEnter:Ee(t.onPointerEnter,n.onContentEnter),onPointerLeave:Ee(t.onPointerLeave,Hi(n.onContentLeave)),style:{pointerEvents:!o&&n.isRootMenu?"none":void 0,...d.style}})})});Og.displayName=Cr;var G4=v.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=Rt(Cr,t.__scopeNavigationMenu);return no(()=>{a(t.value,{ref:e,...t})},[t,e,a]),no(()=>()=>r(t.value),[t.value,r]),null}),Bi="navigationMenu.rootContentDismiss",$g=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:o,onContentFocusOutside:d,...u}=t,c=Rt(Cr,a),m=v.useRef(null),p=St(m,e),h=Ug(c.baseId,r),g=Kg(c.baseId,r),f=Ng(a),x=v.useRef(null),{onItemDismiss:b}=c;v.useEffect(()=>{let D=m.current;if(c.isRootMenu&&D){let j=()=>{var S;b(),o(),D.contains(document.activeElement)&&((S=n.current)==null||S.focus())};return D.addEventListener(Bi,j),()=>D.removeEventListener(Bi,j)}},[c.isRootMenu,t.value,n,b,o]);let w=v.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),S=D.indexOf(c.previousValue),N=r===c.value,k=S===D.indexOf(r);if(!N&&!k)return x.current;let y=(()=>{if(j!==S){if(N&&S!==-1)return j>S?"from-end":"from-start";if(k&&j!==-1)return j>S?"to-start":"to-end"}return null})();return x.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(Bg,{asChild:!0,children:(0,s.jsx)(vA,{id:g,"aria-labelledby":h,"data-motion":w,"data-orientation":c.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event(Bi,{bubbles:!0,cancelable:!0});(j=m.current)==null||j.dispatchEvent(D)},onFocusOutside:Ee(t.onFocusOutside,D=>{var S;d();let j=D.target;(S=c.rootNavigationMenu)!=null&&S.contains(j)&&D.preventDefault()}),onPointerDownOutside:Ee(t.onPointerDownOutside,D=>{var k;let j=D.target,S=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),N=c.isRootMenu&&((k=c.viewport)==null?void 0:k.contains(j));(S||N||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:Ee(t.onKeyDown,D=>{var S;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let N=_s(D.currentTarget),k=document.activeElement,y=N.findIndex(C=>C===k);Rs(D.shiftKey?N.slice(0,y).reverse():N.slice(y+1,N.length))?D.preventDefault():(S=i.current)==null||S.focus()}}),onEscapeKeyDown:Ee(t.onEscapeKeyDown,D=>{l.current=!0})})})}),Es="NavigationMenuViewport",Lg=v.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!Rt(Es,t.__scopeNavigationMenu).value;return(0,s.jsx)(Qn,{present:a||n,children:(0,s.jsx)(J4,{...r,ref:e})})});Lg.displayName=Es;var J4=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=Rt(Es,a),l=St(e,i.onViewportChange),o=U4(Cr,t.__scopeNavigationMenu),[d,u]=v.useState(null),[c,m]=v.useState(null),p=d?(d==null?void 0:d.width)+"px":void 0,h=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,f=g?i.value:i.previousValue;return Ts(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(We.div,{"data-state":As(g),"data-orientation":i.orientation,...n,ref:l,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:Ee(t.onPointerEnter,i.onContentEnter),onPointerLeave:Ee(t.onPointerLeave,Hi(i.onContentLeave)),children:Array.from(o.items).map(([x,{ref:b,forceMount:w,...D}])=>{let j=f===x;return(0,s.jsx)(Qn,{present:w||j,children:(0,s.jsx)($g,{...D,ref:nR(b,S=>{j&&S&&m(S)})})},x)})})}),Q4="FocusGroup",Bg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Rt(Q4,a);return(0,s.jsx)(js.Provider,{scope:a,children:(0,s.jsx)(js.Slot,{scope:a,children:(0,s.jsx)(We.div,{dir:n.dir,...r,ref:e})})})}),Hg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],X4="FocusGroupItem",Wg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=L4(a),i=Rt(X4,a);return(0,s.jsx)(js.ItemSlot,{scope:a,children:(0,s.jsx)(We.button,{...r,ref:e,onKeyDown:Ee(t.onKeyDown,l=>{if(["Home","End",...Hg].includes(l.key)){let o=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&o.reverse(),Hg.includes(l.key)){let d=o.indexOf(l.currentTarget);o=o.slice(d+1)}setTimeout(()=>Rs(o)),l.preventDefault()}})})})});function _s(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function Rs(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}function eD(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let a=e.dataset.tabindex;e.setAttribute("tabindex",a)})}}function Ts(t,e){let a=Ut(e);no(()=>{let r=0;if(t){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return n.observe(t),()=>{window.cancelAnimationFrame(r),n.unobserve(t)}}},[t,a])}function As(t){return t?"open":"closed"}function Ug(t,e){return`${t}-trigger-${e}`}function Kg(t,e){return`${t}-content-${e}`}function Hi(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Zg=Eg,qg=Tg,tD=Pg,Yg=Mg,aD=Vg,Gg=zg,Jg=Og,Qg=Lg,Sr=J(),Is=v.forwardRef((t,e)=>{let a=(0,Sr.c)(16),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,children:r,orientation:i,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==o||a[7]!==d?(u=U(o,d,"relative z-10",n),a[5]=n,a[6]=o,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(t0,{}),a[9]=c):c=a[9];let m;return a[10]!==r||a[11]!==i||a[12]!==l||a[13]!==e||a[14]!==u?(m=(0,s.jsxs)(Zg,{ref:e,className:u,orientation:i,...l,children:[r,c]}),a[10]=r,a[11]=i,a[12]=l,a[13]=e,a[14]=u,a[15]=m):m=a[15],m});Is.displayName=Zg.displayName;var rD=Ll("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Wi=v.forwardRef((t,e)=>{let a=(0,Sr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,orientation:n,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]!==r||a[5]!==n?(l=U(rD({orientation:n}),r),a[4]=r,a[5]=n,a[6]=l):l=a[6];let o;return a[7]!==i||a[8]!==e||a[9]!==l?(o=(0,s.jsx)(qg,{ref:e,className:l,...i}),a[7]=i,a[8]=e,a[9]=l,a[10]=o):o=a[10],o});Wi.displayName=qg.displayName;var Ps=tD,Ms=Ll("group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-(--slate-12) transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{orientation:{horizontal:"w-max items-center justify-center",vertical:"w-full"}},defaultVariants:{orientation:"horizontal"}}),Xg=v.forwardRef((t,e)=>{let a=(0,Sr.c)(12),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:n,children:r,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]===n?l=a[5]:(l=U(Ms(),"group",n),a[4]=n,a[5]=l);let o;a[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(vT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=o):o=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==l?(d=(0,s.jsxs)(Yg,{ref:e,className:l,...i,children:[r," ",o]}),a[7]=r,a[8]=i,a[9]=e,a[10]=l,a[11]=d):d=a[11],d});Xg.displayName=Yg.displayName;var e0=v.forwardRef((t,e)=>{let a=(0,Sr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(Jg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});e0.displayName=Jg.displayName;var Fs=aD,t0=v.forwardRef((t,e)=>{let a=(0,Sr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i=U("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let l;a[4]===r?l=a[5]:(l=U("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",r),a[4]=r,a[5]=l);let o;return a[6]!==n||a[7]!==e||a[8]!==l?(o=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Qg,{className:l,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=l,a[9]=o):o=a[9],o});t0.displayName=Qg.displayName;var nD=v.forwardRef((t,e)=>{let a=(0,Sr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(Gg,{ref:e,className:i,...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});nD.displayName=Gg.displayName;var a0=J(),iD=class{constructor(){q(this,"tagName","marimo-nav-menu");q(this,"menuItemValidator",$({label:F(),href:F(),description:F().nullish()}));q(this,"menuItemGroupValidator",$({label:F(),items:ee(this.menuItemValidator)}));q(this,"validator",$({items:ee(ke([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(Nt,{children:(0,s.jsx)(lD,{...t.data})})}},lD=t=>{let e=(0,a0.c)(13),{items:a,orientation:r}=t,n=oD,i=sD,l=dD,o;e[0]===r?o=e[1]:(o=p=>"items"in p?r==="horizontal"?(0,s.jsx)(Is,{orientation:"horizontal",children:(0,s.jsx)(Wi,{children:(0,s.jsxs)(Ps,{children:[(0,s.jsx)(Xg,{children:Me({html:p.label})}),(0,s.jsx)(e0,{children:(0,s.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:p.items.map(h=>(0,s.jsx)(r0,{label:h.label,href:l(h.href),target:i(h.href),children:h.description&&Me({html:h.description})},h.label))})})]})})},p.label):(0,s.jsxs)(Ps,{children:[(0,s.jsx)("div",{className:"inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",children:Me({html:p.label})}),(0,s.jsx)(Wi,{className:"ml-4 auto-collapse-nav",orientation:r,children:p.items.map(h=>(0,s.jsx)(v.Fragment,{children:n((0,s.jsx)(Fs,{href:l(h.href),target:i(h.href),className:Ms({orientation:r}),children:Me({html:h.label})},h.label),h.description)},h.label))})]},p.label):(0,s.jsx)(Ps,{children:(0,s.jsx)(Fs,{href:l(p.href),target:i(p.href),className:Ms({orientation:r}),children:Me({html:p.label})})},p.label),e[0]=r,e[1]=o);let d=o,u;if(e[2]!==a||e[3]!==d){let p;e[5]===d?p=e[6]:(p=h=>d(h),e[5]=d,e[6]=p),u=a.map(p),e[2]=a,e[3]=d,e[4]=u}else u=e[4];let c;e[7]!==r||e[8]!==u?(c=(0,s.jsx)(Wi,{className:"auto-collapse-nav",orientation:r,children:u}),e[7]=r,e[8]=u,e[9]=c):c=e[9];let m;return e[10]!==r||e[11]!==c?(m=(0,s.jsx)(Is,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=m):m=e[12],m},r0=v.forwardRef((t,e)=>{let a=(0,a0.c)(19),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,label:i,children:r,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o;a[5]===n?o=a[6]:(o=U("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",n),a[5]=n,a[6]=o);let d;a[7]===i?d=a[8]:(d=Me({html:i}),a[7]=i,a[8]=d);let u;a[9]===d?u=a[10]:(u=(0,s.jsx)("div",{className:"text-base font-medium leading-none",children:d}),a[9]=d,a[10]=u);let c;a[11]===r?c=a[12]:(c=r&&(0,s.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:r}),a[11]=r,a[12]=c);let m;return a[13]!==l||a[14]!==e||a[15]!==o||a[16]!==u||a[17]!==c?(m=(0,s.jsx)("li",{children:(0,s.jsx)(Fs,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:o,...l,children:[u,c]})})}),a[13]=l,a[14]=e,a[15]=o,a[16]=u,a[17]=c,a[18]=m):m=a[18],m});r0.displayName="ListItem";function oD(t,e){return e?(0,s.jsx)(Mt,{delayDuration:200,content:Me({html:e}),children:t}):t}function sD(t){return t.startsWith("http")?"_blank":"_self"}function dD(t){return K_({href:t,queryParams:new URL(globalThis.location.href).search,keys:[ju.filePath]})}function uD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?_R(t,e):typeof t=="object"&&typeof e=="object"?cD(t,e):!1}function cD(t,e){return Object.keys(t).length===Object.keys(e).length&&Va.keys(t).every(a=>t[a]===e[a])}function Vs(t,e){if(!(window!=null&&window.customElements)){se.warn("Custom elements not supported");return}if(window.customElements.get(t)){se.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var mD=J();const pD=t=>{let e=(0,mD.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof t_){let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Yu,{children:"Bad Data"}),e[0]=l):l=e[0];let o;e[1]===a.issues?o=e[2]:(o=a.issues.map(fD),e[1]=a.issues,e[2]=o);let d;e[3]===o?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:o})}),e[3]=o,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(YA,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=u):u=e[5];let c;e[6]===r?c=e[7]:(c=(0,s.jsx)(rv,{data:r}),e[6]=r,e[7]=c);let m;e[8]!==n||e[9]!==c?(m=(0,s.jsx)(GA,{type:"single",collapsible:!0,children:(0,s.jsxs)(qA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(JA,{className:"text-[0.84375rem]",children:(0,s.jsx)(av,{container:n,children:c})})]})}),e[8]=n,e[9]=c,e[10]=m):m=e[10];let p;return e[11]!==d||e[12]!==m?(p=(0,s.jsxs)(uo,{variant:"destructive",children:[l,d,m]}),e[11]=d,e[12]=m,e[13]=p):p=e[13],p}let i;return e[14]===a.message?i=e[15]:(i=(0,s.jsx)("div",{children:a.message}),e[14]=a.message,e[15]=i),i};function hD(t,e,a){return(0,s.jsx)(pD,{error:t,badData:e,shadowRoot:a})}function fD(t){let e=t.path.join(".");return(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function gD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,l]=(0,v.useState)(a),[o,d]=(0,v.useState)(r()),{theme:u}=qr(),[c,m]=(0,v.useState)(()=>e.validator.safeParse(hu(t)));(0,v.useImperativeHandle)(n,()=>({reset:()=>{d(r()),m(e.validator.safeParse(hu(t)))},setChildren:g=>{l(g)}})),$l(t,f_.TYPE,g=>{g.detail.element===t&&d(g.detail.value)}),(0,v.useEffect)(()=>{let g=new MutationObserver(f=>{f.some(x=>{var b;return x.type==="attributes"&&((b=x.attributeName)==null?void 0:b.startsWith("data-"))})&&m(e.validator.safeParse(hu(t)))});return g.observe(t,{attributes:!0}),()=>{g.disconnect()}},[t,e.validator]);let p=$e(g=>{d(f=>{let x=za.asUpdater(g)(f);return uD(x,f)||t.dispatchEvent(L1(x,t)),x})}),h=(0,v.useMemo)(()=>{if(!e.functions)return{};let g={};for(let[f,x]of Va.entries(e.functions)){let{input:b,output:w}=x;g[f]=async(...D)=>{var C;Br(D.length<=1,`Plugin functions only supports a single argument. Called ${f}`);let j=Os(t);Br(j,"Object ID should exist");let S=Zn(),N=(C=_1.findElementThroughShadowDOMs(t))==null?void 0:C.id,k=N?_1.parse(N):null;if(k&&!S){let _=Oe.get(T1),E=_.cellRuntime[k],T=_.cellData[k];if(LE({executionTime:E.runElapsedTimeMs??T.lastExecutionTime,status:E.status,errored:E.errored,interrupted:E.interrupted,stopped:E.stopped}))throw new ZA}else se.warn(`Cell ID ${k} cannot be found`);let y=await p_.request({args:s0(b,D[0]),functionName:f,namespace:j});if(y.status.code!=="ok")throw se.error(y.status),Error(y.status.message||"Unknown error");return s0(w,y.return_value)}}return g},[e.functions,t]);return c.success?(0,s.jsx)(bA,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(v.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:p,value:o,data:c.data,children:i,host:t,functions:h})})})}):hD(c.error,Va.mapValues(t.dataset,g=>typeof g=="string"?S1(g):g),t.shadowRoot)}var xD=v.forwardRef(gD),zs=new Map,n0="__custom_marimo_element__";function i0(t){let e=class extends HTMLElement{constructor(){super();q(this,"mounted",!1);q(this,"pluginRef",(0,v.createRef)());q(this,"__type__",n0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.mounted||(Br(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=py.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){var r;this.observer.disconnect(),(r=this.root)==null||r.unmount(),this.mounted&&(this.mounted=!1)}reset(){this.dispatchEvent(L1(S1(this.dataset.initialValue),this)),this.rerender()}rerender(){var r;(r=this.pluginRef.current)==null||r.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?Me({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(v.Fragment,{children:Me({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,Br(this.root,"Root must be defined"),this.root.render((0,s.jsx)(Tl,{store:Oe,children:(0,s.jsx)(bs,{children:(0,s.jsx)(xD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>GE(this,D_.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(Br(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let n=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:l0(i));for(let i of n){let l=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(l&&!zs.has(l)){let o=new CSSStyleSheet;try{o.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
6
+ }`,document.head.prepend(r);let n=d=>{if(!(d.touches.length===2||e)){if(!t||t===document.documentElement||t===document.body){d.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&d.preventDefault()}},i=d=>{var m,p;let u=d.target,c=d.relatedTarget;c&&Du(c)?(c.focus({preventScroll:!0}),Zm(c,Du(u))):c||((p=(m=u.parentElement)==null?void 0:m.closest("[tabindex]"))==null||p.focus({preventScroll:!0}))},l=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&Du(document.activeElement);l.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Zm(this,u)};let o=Fv(Qo(document,"touchstart",a,{passive:!1,capture:!0}),Qo(document,"touchmove",n,{passive:!1,capture:!0}),Qo(document,"blur",i,!0));return()=>{o(),r.remove(),HTMLElement.prototype.focus=l}}function Jo(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Qo(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Zm(t,e){e||!mn?qm(t):mn.addEventListener("resize",()=>qm(t),{once:!0})}function qm(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=Fl(a);if(r!==document.documentElement&&r!==document.body&&r!==a){let n=r.getBoundingClientRect(),i=a.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+a.clientHeight){let l=n.bottom;mn&&(l=Math.min(l,mn.offsetTop+mn.height));let o=i.top-n.top-((l-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+o)),behavior:"smooth"})}}a=r.parentElement}}var Bw=(0,v.createContext)({});function Hw(){return(0,v.useContext)(Bw)??{}}var Ym={};Ym={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Gm={};Gm={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Jm={};Jm={dismiss:"Odstranit"};var Qm={};Qm={dismiss:"Luk"};var Xm={};Xm={dismiss:"Schlie\xDFen"};var ep={};ep={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var tp={};tp={dismiss:"Dismiss"};var ap={};ap={dismiss:"Descartar"};var rp={};rp={dismiss:"L\xF5peta"};var np={};np={dismiss:"Hylk\xE4\xE4"};var ip={};ip={dismiss:"Rejeter"};var lp={};lp={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var op={};op={dismiss:"Odbaci"};var sp={};sp={dismiss:"Elutas\xEDt\xE1s"};var dp={};dp={dismiss:"Ignora"};var up={};up={dismiss:"\u9589\u3058\u308B"};var cp={};cp={dismiss:"\uBB34\uC2DC"};var mp={};mp={dismiss:"Atmesti"};var pp={};pp={dismiss:"Ner\u0101d\u012Bt"};var hp={};hp={dismiss:"Lukk"};var fp={};fp={dismiss:"Negeren"};var gp={};gp={dismiss:"Zignoruj"};var xp={};xp={dismiss:"Descartar"};var vp={};vp={dismiss:"Dispensar"};var yp={};yp={dismiss:"Revocare"};var bp={};bp={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var wp={};wp={dismiss:"Zru\u0161i\u0165"};var Dp={};Dp={dismiss:"Opusti"};var jp={};jp={dismiss:"Odbaci"};var Cp={};Cp={dismiss:"Avvisa"};var Sp={};Sp={dismiss:"Kapat"};var kp={};kp={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var Np={};Np={dismiss:"\u53D6\u6D88"};var Ep={};Ep={dismiss:"\u95DC\u9589"};var _p={};_p={"ar-AE":Ym,"bg-BG":Gm,"cs-CZ":Jm,"da-DK":Qm,"de-DE":Xm,"el-GR":ep,"en-US":tp,"es-ES":ap,"et-EE":rp,"fi-FI":np,"fr-FR":ip,"he-IL":lp,"hr-HR":op,"hu-HU":sp,"it-IT":dp,"ja-JP":up,"ko-KR":cp,"lt-LT":mp,"lv-LV":pp,"nb-NO":hp,"nl-NL":fp,"pl-PL":gp,"pt-BR":xp,"pt-PT":vp,"ro-RO":yp,"ru-RU":bp,"sk-SK":wp,"sl-SI":Dp,"sr-SP":jp,"sv-SE":Cp,"tr-TR":Sp,"uk-UA":kp,"zh-CN":Np,"zh-TW":Ep};function Ww(t){return t&&t.__esModule?t.default:t}function Rp(t){let{onDismiss:e,...a}=t,r=Xl(a,Ha(Ww(_p),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return v.createElement(Kn,null,v.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function Uw(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:m}=zw({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:o},n??r),{overlayProps:p,arrowProps:h,placement:g,triggerAnchorPoint:f}=Iw({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return Ow({isDisabled:i||!e.isOpen}),(0,v.useEffect)(()=>{if(e.isOpen&&r.current)return i?dT((n==null?void 0:n.current)??r.current):sT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:Xe(c,p),arrowProps:h,underlayProps:m,placement:g,triggerAnchorPoint:f}}var Kw=xa(Wn(),1),Tp=v.createContext(null);function Ap(t){let e=zA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,v.useState)(!1),l=(0,v.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:o}=Hw();if(!t.portalContainer&&o&&(a=o()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=v.createElement(__,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=v.createElement(Tp.Provider,{value:l},v.createElement(Fw,null,d)),Kw.createPortal(d,a)}function Zw(){var e;let t=(e=(0,v.useContext)(Tp))==null?void 0:e.setContain;Da(()=>{t==null||t(!0)},[t])}var Ip={};Ip={dateRange:t=>`${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,dateSelected:t=>`${t.date} \u0627\u0644\u0645\u062D\u062F\u062F`,finishRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0625\u0646\u0647\u0627\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",maximumDate:"\u0622\u062E\u0631 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",minimumDate:"\u0623\u0648\u0644 \u062A\u0627\u0631\u064A\u062E \u0645\u062A\u0627\u062D",next:"\u0627\u0644\u062A\u0627\u0644\u064A",previous:"\u0627\u0644\u0633\u0627\u0628\u0642",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.dateRange}`,startRangeSelectionPrompt:"\u0627\u0646\u0642\u0631 \u0644\u0628\u062F\u0621 \u0639\u0645\u0644\u064A\u0629 \u062A\u062D\u062F\u064A\u062F \u0646\u0637\u0627\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",todayDate:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date}`,todayDateSelected:t=>`\u0627\u0644\u064A\u0648\u0645\u060C ${t.date} \u0645\u062D\u062F\u062F`};var Pp={};Pp={dateRange:t=>`${t.startDate} \u0434\u043E ${t.endDate}`,dateSelected:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0435 ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u0434\u043E\u0432\u044A\u0440\u0448\u0438\u0442\u0435 \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u044A\u0440\u0432\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u043F\u0440\u0435\u0434",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043F\u0440\u0438\u0441\u0442\u044A\u043F\u0438\u0442\u0435 \u043A\u044A\u043C \u0438\u0437\u0431\u043E\u0440\u0430 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u0432\u0438 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B",todayDate:t=>`\u0414\u043D\u0435\u0441, ${t.date}`,todayDateSelected:t=>`\u0414\u043D\u0435\u0441, ${t.date} \u0441\u0430 \u0438\u0437\u0431\u0440\u0430\u043D\u0438`};var Mp={};Mp={dateRange:t=>`${t.startDate} a\u017E ${t.endDate}`,dateSelected:t=>`Vybr\xE1no ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDb\u011Br rozsahu dat",maximumDate:"Posledn\xED dostupn\xE9 datum",minimumDate:"Prvn\xED dostupn\xE9 datum",next:"Dal\u0161\xED",previous:"P\u0159edchoz\xED",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm zah\xE1j\xEDte v\xFDb\u011Br rozsahu dat",todayDate:t=>`Dnes, ${t.date}`,todayDateSelected:t=>`Dnes, vybr\xE1no ${t.date}`};var Fp={};Fp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldf\xF8re valg af datoomr\xE5de",maximumDate:"Sidste ledige dato",minimumDate:"F\xF8rste ledige dato",next:"N\xE6ste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Vp={};Vp={dateRange:t=>`${t.startDate} bis ${t.endDate}`,dateSelected:t=>`${t.date} ausgew\xE4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verf\xFCgbares Datum",minimumDate:"Erstes verf\xFCgbares Datum",next:"Weiter",previous:"Zur\xFCck",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:t=>`Heute, ${t.date}`,todayDateSelected:t=>`Heute, ${t.date} ausgew\xE4hlt`};var zp={};zp={dateRange:t=>`${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,dateSelected:t=>`\u0395\u03C0\u03B9\u03BB\u03AD\u03C7\u03B8\u03B7\u03BA\u03B5 ${t.date}`,finishRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BF\u03BB\u03BF\u03BA\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",maximumDate:"\u03A4\u03B5\u03BB\u03B5\u03C5\u03C4\u03B1\u03AF\u03B1 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",minimumDate:"\u03A0\u03C1\u03CE\u03C4\u03B7 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",next:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF",previous:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.dateRange}`,startRangeSelectionPrompt:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03CD\u03C1\u03BF\u03C5\u03C2 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03B9\u03CE\u03BD",todayDate:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, ${t.date}`,todayDateSelected:t=>`\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1, \u03B5\u03C0\u03B9\u03BB\u03AD\u03C7\u03C4\u03B7\u03BA\u03B5 ${t.date}`};var Op={};Op={previous:"Previous",next:"Next",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.dateRange}`,todayDate:t=>`Today, ${t.date}`,todayDateSelected:t=>`Today, ${t.date} selected`,dateSelected:t=>`${t.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:t=>`${t.startDate} to ${t.endDate}`};var $p={};$p={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"\xDAltima fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo seleccionado: ${t.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:t=>`Hoy, ${t.date}`,todayDateSelected:t=>`Hoy, ${t.date} seleccionado`};var Lp={};Lp={dateRange:t=>`${t.startDate} kuni ${t.endDate}`,dateSelected:t=>`${t.date} valitud`,finishRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimise l\xF5petamiseks",maximumDate:"Viimane saadaolev kuup\xE4ev",minimumDate:"Esimene saadaolev kuup\xE4ev",next:"J\xE4rgmine",previous:"Eelmine",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.dateRange}`,startRangeSelectionPrompt:"Kl\xF5psake kuup\xE4evavahemiku valimiseks",todayDate:t=>`T\xE4na, ${t.date}`,todayDateSelected:t=>`T\xE4na, ${t.date} valitud`};var Bp={};Bp={dateRange:t=>`${t.startDate} \u2013 ${t.endDate}`,dateSelected:t=>`${t.date} valittu`,finishRangeSelectionPrompt:"Lopeta p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",maximumDate:"Viimeinen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",minimumDate:"Ensimm\xE4inen varattavissa oleva p\xE4iv\xE4m\xE4\xE4r\xE4",next:"Seuraava",previous:"Edellinen",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.dateRange}`,startRangeSelectionPrompt:"Aloita p\xE4iv\xE4m\xE4\xE4r\xE4alueen valinta napsauttamalla t\xE4t\xE4.",todayDate:t=>`T\xE4n\xE4\xE4n, ${t.date}`,todayDateSelected:t=>`T\xE4n\xE4\xE4n, ${t.date} valittu`};var Hp={};Hp={dateRange:t=>`${t.startDate} \xE0 ${t.endDate}`,dateSelected:t=>`${t.date} s\xE9lectionn\xE9`,finishRangeSelectionPrompt:"Cliquer pour finir de s\xE9lectionner la plage de dates",maximumDate:"Derni\xE8re date disponible",minimumDate:"Premi\xE8re date disponible",next:"Suivant",previous:"Pr\xE9c\xE9dent",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer \xE0 s\xE9lectionner la plage de dates",todayDate:t=>`Aujourd'hui, ${t.date}`,todayDateSelected:t=>`Aujourd\u2019hui, ${t.date} s\xE9lectionn\xE9`};var Wp={};Wp={dateRange:t=>`${t.startDate} \u05E2\u05D3 ${t.endDate}`,dateSelected:t=>`${t.date} \u05E0\u05D1\u05D7\u05E8`,finishRangeSelectionPrompt:"\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",maximumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05D0\u05D7\u05E8\u05D5\u05DF",minimumDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E4\u05E0\u05D5\u05D9 \u05E8\u05D0\u05E9\u05D5\u05DF",next:"\u05D4\u05D1\u05D0",previous:"\u05D4\u05E7\u05D5\u05D3\u05DD",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.dateRange}`,startRangeSelectionPrompt:"\u05DC\u05D7\u05E5 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1\u05D1\u05D7\u05D9\u05E8\u05EA \u05D8\u05D5\u05D5\u05D7 \u05D4\u05EA\u05D0\u05E8\u05D9\u05DB\u05D9\u05DD",todayDate:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date}`,todayDateSelected:t=>`\u05D4\u05D9\u05D5\u05DD, ${t.date} \u05E0\u05D1\u05D7\u05E8`};var Up={};Up={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite raspon odabranih datuma",maximumDate:"Posljednji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Sljede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete raspon odabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, odabran ${t.date}`};var Kp={};Kp={dateRange:t=>`${t.startDate}\u2013${t.endDate}`,dateSelected:t=>`${t.date} kiv\xE1lasztva`,finishRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek befejez\xE9s\xE9hez",maximumDate:"Utols\xF3 el\xE9rhet\u0151 d\xE1tum",minimumDate:"Az els\u0151 el\xE9rhet\u0151 d\xE1tum",next:"K\xF6vetkez\u0151",previous:"El\u0151z\u0151",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.dateRange}`,startRangeSelectionPrompt:"Kattintson a d\xE1tumtartom\xE1ny kijel\xF6l\xE9s\xE9nek ind\xEDt\xE1s\xE1hoz",todayDate:t=>`Ma, ${t.date}`,todayDateSelected:t=>`Ma, ${t.date} kijel\xF6lve`};var Zp={};Zp={dateRange:t=>`Da ${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell\u2019intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: ${t.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l\u2019intervallo di date",todayDate:t=>`Oggi, ${t.date}`,todayDateSelected:t=>`Oggi, ${t.date} selezionata`};var qp={};qp={dateRange:t=>`${t.startDate} \u304B\u3089 ${t.endDate}`,dateSelected:t=>`${t.date} \u3092\u9078\u629E`,finishRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u7D42\u4E86",maximumDate:"\u6700\u7D42\u5229\u7528\u53EF\u80FD\u65E5",minimumDate:"\u6700\u521D\u306E\u5229\u7528\u53EF\u80FD\u65E5",next:"\u6B21\u3078",previous:"\u524D\u3078",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.dateRange}`,startRangeSelectionPrompt:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u65E5\u4ED8\u7BC4\u56F2\u306E\u9078\u629E\u3092\u958B\u59CB",todayDate:t=>`\u672C\u65E5\u3001${t.date}`,todayDateSelected:t=>`\u672C\u65E5\u3001${t.date} \u3092\u9078\u629E`};var Yp={};Yp={dateRange:t=>`${t.startDate} ~ ${t.endDate}`,dateSelected:t=>`${t.date} \uC120\uD0DD\uB428`,finishRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC644\uB8CC\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",maximumDate:"\uB9C8\uC9C0\uB9C9\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",minimumDate:"\uCC98\uC74C\uC73C\uB85C \uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC77C\uC790",next:"\uB2E4\uC74C",previous:"\uC774\uC804",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.dateRange}`,startRangeSelectionPrompt:"\uB0A0\uC9DC \uBC94\uC704 \uC120\uD0DD\uC744 \uC2DC\uC791\uD558\uB824\uBA74 \uD074\uB9AD\uD558\uC2ED\uC2DC\uC624.",todayDate:t=>`\uC624\uB298, ${t.date}`,todayDateSelected:t=>`\uC624\uB298, ${t.date} \uC120\uD0DD\uB428`};var Gp={};Gp={dateRange:t=>`Nuo ${t.startDate} iki ${t.endDate}`,dateSelected:t=>`Pasirinkta ${t.date}`,finishRangeSelectionPrompt:"Spustel\u0117kite, kad baigtum\u0117te pasirinkti dat\u0173 interval\u0105",maximumDate:"Paskutin\u0117 galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: ${t.dateRange}`,startRangeSelectionPrompt:"Spustel\u0117kite, kad prad\u0117tum\u0117te pasirinkti dat\u0173 interval\u0105",todayDate:t=>`\u0160iandien, ${t.date}`,todayDateSelected:t=>`\u0160iandien, pasirinkta ${t.date}`};var Jp={};Jp={dateRange:t=>`No ${t.startDate} l\u012Bdz ${t.endDate}`,dateSelected:t=>`Atlas\u012Bts: ${t.date}`,finishRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"P\u0113d\u0113jais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"T\u0101l\u0101k",previous:"Atpaka\u013C",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: ${t.dateRange}`,startRangeSelectionPrompt:"Noklik\u0161\u0137iniet, lai s\u0101ktu datumu diapazona atlasi",todayDate:t=>`\u0160odien, ${t.date}`,todayDateSelected:t=>`Atlas\u012Bta \u0161odiena, ${t.date}`};var Qp={};Qp={dateRange:t=>`${t.startDate} til ${t.endDate}`,dateSelected:t=>`${t.date} valgt`,finishRangeSelectionPrompt:"Klikk for \xE5 fullf\xF8re valg av datoomr\xE5de",maximumDate:"Siste tilgjengelige dato",minimumDate:"F\xF8rste tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.dateRange}`,startRangeSelectionPrompt:"Klikk for \xE5 starte valg av datoomr\xE5de",todayDate:t=>`I dag, ${t.date}`,todayDateSelected:t=>`I dag, ${t.date} valgt`};var Xp={};Xp={dateRange:t=>`${t.startDate} tot ${t.endDate}`,dateSelected:t=>`${t.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:t=>`Vandaag, ${t.date}`,todayDateSelected:t=>`Vandaag, ${t.date} geselecteerd`};var eh={};eh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`Wybrano ${t.date}`,finishRangeSelectionPrompt:"Kliknij, aby zako\u0144czy\u0107 wyb\xF3r zakresu dat",maximumDate:"Ostatnia dost\u0119pna data",minimumDate:"Pierwsza dost\u0119pna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocz\u0105\u0107 wyb\xF3r zakresu dat",todayDate:t=>`Dzisiaj, ${t.date}`,todayDateSelected:t=>`Dzisiaj wybrano ${t.date}`};var th={};th={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a sele\xE7\xE3o do intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a sele\xE7\xE3o do intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var ah={};ah={dateRange:t=>`${t.startDate} a ${t.endDate}`,dateSelected:t=>`${t.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"\xDAltima data dispon\xEDvel",minimumDate:"Primeira data dispon\xEDvel",next:"Pr\xF3ximo",previous:"Anterior",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.dateRange}`,startRangeSelectionPrompt:"Clique para come\xE7ar a selecionar o intervalo de datas",todayDate:t=>`Hoje, ${t.date}`,todayDateSelected:t=>`Hoje, ${t.date} selecionado`};var rh={};rh={dateRange:t=>`De la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,dateSelected:t=>`${t.date} selectat\u0103`,finishRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a finaliza selec\u0163ia razei pentru dat\u0103",maximumDate:"Ultima dat\u0103 disponibil\u0103",minimumDate:"Prima dat\u0103 disponibil\u0103",next:"Urm\u0103torul",previous:"\xCEnainte",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: ${t.dateRange}`,startRangeSelectionPrompt:"Ap\u0103sa\u0163i pentru a \xEEncepe selec\u0163ia razei pentru dat\u0103",todayDate:t=>`Ast\u0103zi, ${t.date}`,todayDateSelected:t=>`Azi, ${t.date} selectat\u0103`};var nh={};nh={dateRange:t=>`\u0421 ${t.startDate} \u043F\u043E ${t.endDate}`,dateSelected:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",maximumDate:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0432\u0430\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u0434\u0430\u0442\u0430",next:"\u0414\u0430\u043B\u0435\u0435",previous:"\u041D\u0430\u0437\u0430\u0434",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u0447\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0430 \u0434\u0430\u0442",todayDate:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, ${t.date}`,todayDateSelected:t=>`\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432\u044B\u0431\u0440\u0430\u043D\u043E ${t.date}`};var ih={};ih={dateRange:t=>`Od ${t.startDate} do ${t.endDate}`,dateSelected:t=>`Vybrat\xFD d\xE1tum ${t.date}`,finishRangeSelectionPrompt:"Kliknut\xEDm dokon\u010D\xEDte v\xFDber rozsahu d\xE1tumov",maximumDate:"Posledn\xFD dostupn\xFD d\xE1tum",minimumDate:"Prv\xFD dostupn\xFD d\xE1tum",next:"Nasleduj\xFAce",previous:"Predch\xE1dzaj\xFAce",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknut\xEDm spust\xEDte v\xFDber rozsahu d\xE1tumov",todayDate:t=>`Dnes ${t.date}`,todayDateSelected:t=>`Vybrat\xFD dne\u0161n\xFD d\xE1tum ${t.date}`};var lh={};lh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokon\u010Danje izbire datumskega obsega",maximumDate:"Zadnji razpolo\u017Eljivi datum",minimumDate:"Prvi razpolo\u017Eljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite za za\u010Detek izbire datumskega obsega",todayDate:t=>`Danes, ${t.date}`,todayDateSelected:t=>`Danes, ${t.date} izbrano`};var oh={};oh={dateRange:t=>`${t.startDate} do ${t.endDate}`,dateSelected:t=>`${t.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovr\u0161ite opseg izabranih datuma",maximumDate:"Zadnji raspolo\u017Eivi datum",minimumDate:"Prvi raspolo\u017Eivi datum",next:"Slede\u0107i",previous:"Prethodni",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani period: ${t.dateRange}`,startRangeSelectionPrompt:"Kliknite da zapo\u010Dnete opseg izabranih datuma",todayDate:t=>`Danas, ${t.date}`,todayDateSelected:t=>`Danas, izabran ${t.date}`};var sh={};sh={dateRange:t=>`${t.startDate} till ${t.endDate}`,dateSelected:t=>`${t.date} har valts`,finishRangeSelectionPrompt:"Klicka f\xF6r att avsluta val av datumintervall",maximumDate:"Sista tillg\xE4ngliga datum",minimumDate:"F\xF6rsta tillg\xE4ngliga datum",next:"N\xE4sta",previous:"F\xF6reg\xE5ende",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.dateRange}`,startRangeSelectionPrompt:"Klicka f\xF6r att v\xE4lja datumintervall",todayDate:t=>`Idag, ${t.date}`,todayDateSelected:t=>`Idag, ${t.date} har valts`};var dh={};dh={dateRange:t=>`${t.startDate} - ${t.endDate}`,dateSelected:t=>`${t.date} se\xE7ildi`,finishRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini tamamlamak i\xE7in t\u0131klay\u0131n",maximumDate:"Son m\xFCsait tarih",minimumDate:"\u0130lk m\xFCsait tarih",next:"Sonraki",previous:"\xD6nceki",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.dateRange}`,startRangeSelectionPrompt:"Tarih aral\u0131\u011F\u0131 se\xE7imini ba\u015Flatmak i\xE7in t\u0131klay\u0131n",todayDate:t=>`Bug\xFCn, ${t.date}`,todayDateSelected:t=>`Bug\xFCn, ${t.date} se\xE7ildi`};var uh={};uh={dateRange:t=>`${t.startDate} \u2014 ${t.endDate}`,dateSelected:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`,finishRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",maximumDate:"\u041E\u0441\u0442\u0430\u043D\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",minimumDate:"\u041F\u0435\u0440\u0448\u0430 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0434\u0430\u0442\u0430",next:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0438\u0439",previous:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u0456\u0439",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.dateRange}`,startRangeSelectionPrompt:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0432\u0438\u0431\u0456\u0440 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D\u0443 \u0434\u0430\u0442",todayDate:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, ${t.date}`,todayDateSelected:t=>`\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456, \u0432\u0438\u0431\u0440\u0430\u043D\u043E ${t.date}`};var ch={};ch={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9009\u62E9 ${t.date}`,finishRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5B8C\u6210\u9009\u62E9\u65E5\u671F\u8303\u56F4",maximumDate:"\u6700\u540E\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u4E2A\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9875",previous:"\u4E0A\u4E00\u9875",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u5355\u51FB\u4EE5\u5F00\u59CB\u9009\u62E9\u65E5\u671F\u8303\u56F4",todayDate:t=>`\u4ECA\u5929\uFF0C\u5373 ${t.date}`,todayDateSelected:t=>`\u5DF2\u9009\u62E9\u4ECA\u5929\uFF0C\u5373 ${t.date}`};var mh={};mh={dateRange:t=>`${t.startDate} \u81F3 ${t.endDate}`,dateSelected:t=>`\u5DF2\u9078\u53D6 ${t.date}`,finishRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u5B8C\u6210\u9078\u53D6\u65E5\u671F\u7BC4\u570D",maximumDate:"\u6700\u5F8C\u4E00\u500B\u53EF\u7528\u65E5\u671F",minimumDate:"\u7B2C\u4E00\u500B\u53EF\u7528\u65E5\u671F",next:"\u4E0B\u4E00\u9801",previous:"\u4E0A\u4E00\u9801",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.dateRange}`,startRangeSelectionPrompt:"\u6309\u4E00\u4E0B\u4EE5\u958B\u59CB\u9078\u53D6\u65E5\u671F\u7BC4\u570D",todayDate:t=>`\u4ECA\u5929\uFF0C${t.date}`,todayDateSelected:t=>`\u5DF2\u9078\u53D6\u4ECA\u5929\uFF0C${t.date}`};var pn={};pn={"ar-AE":Ip,"bg-BG":Pp,"cs-CZ":Mp,"da-DK":Fp,"de-DE":Vp,"el-GR":zp,"en-US":Op,"es-ES":$p,"et-EE":Lp,"fi-FI":Bp,"fr-FR":Hp,"he-IL":Wp,"hr-HR":Up,"hu-HU":Kp,"it-IT":Zp,"ja-JP":qp,"ko-KR":Yp,"lt-LT":Gp,"lv-LV":Jp,"nb-NO":Qp,"nl-NL":Xp,"pl-PL":eh,"pt-BR":th,"pt-PT":ah,"ro-RO":rh,"ru-RU":nh,"sk-SK":ih,"sl-SI":lh,"sr-SP":oh,"sv-SE":sh,"tr-TR":dh,"uk-UA":uh,"zh-CN":ch,"zh-TW":mh};function ph(t){return t&&t.__esModule?t.default:t}var Xo=new WeakMap;function hn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function qw(t){let e=Ha(ph(pn),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ia({weekday:"long",month:"long",year:"numeric",day:"numeric",era:hn(a)||hn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,v.useMemo)(()=>{if(!i&&a&&r)if(Ue(a,r)){let l=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:l})}else{let l=ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:l})}return""},[a,r,i,t.timeZone,e,n])}function es(t,e,a,r){let n=Ha(ph(pn),"@react-aria/calendar"),i=hn(t)||hn(e),l=ia({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),o=ia({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,v.useMemo)(()=>{if(Ue(t,Ya(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Ue(e,vi(t)))return l.format(d.toDate(a));if(Ue(e,vi(e)))return r?ts(l,n,d,u,a):l.formatRange(d.toDate(a),u.toDate(a))}return r?ts(o,n,t,e,a):o.formatRange(t.toDate(a),e.toDate(a))},[t,e,l,o,n,a,r])}function ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),l=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")l=u;else if(c.source==="endRange")break}let o="",d="";for(let u=0;u<i.length;u++)u<l?o+=i[u].value:u>l&&(d+=i[u].value);return e.format("dateRange",{startDate:o,endDate:d})}function Yw(t){return t&&t.__esModule?t.default:t}function hh(t,e){let a=Ha(Yw(pn),"@react-aria/calendar"),r=st(t),n=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=es(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);U1(()=>{e.isFocused||Sv(i)},[i]);let l=qw(e);U1(()=>{l&&Sv(l,"polite",4e3)},[l]);let o=Vv([!!t.errorMessage,t.isInvalid,t.validationState]);Xo.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:o,selectedDateDescription:l});let[d,u]=(0,v.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[m,p]=(0,v.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&m&&(p(!1),e.setFocused(!0)),{calendarProps:Xe(r,Xl({id:t.id,"aria-label":[t["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":t["aria-labelledby"]}),{role:"application","aria-details":t["aria-details"]||void 0,"aria-describedby":t["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>e.focusNextPage(),"aria-label":a.format("next"),isDisabled:c,onFocusChange:u},prevButtonProps:{onPress:()=>e.focusPreviousPage(),"aria-label":a.format("previous"),isDisabled:h,onFocusChange:p},errorMessageProps:{id:o},title:n}}function Gw(t,e){return hh(t,e)}function Jw(t,e,a){let r=hh(t,e),n=(0,v.useRef)(!1),i=(0,v.useRef)(typeof window<"u"?window:null);return Kr(i,"pointerdown",l=>{n.current=l.width===0&&l.height===0}),Kr(i,"pointerup",l=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let o=l.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(o)||!o.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=l=>{a.current&&(!l.relatedTarget||!a.current.contains(l.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},Kr(a,"touchmove",l=>{e.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function Qw(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=qe(),l=f=>{switch(f.key){case"Enter":case" ":f.preventDefault(),e.selectFocusedDate();break;case"PageUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousSection(f.shiftKey);break;case"PageDown":f.preventDefault(),f.stopPropagation(),e.focusNextSection(f.shiftKey);break;case"End":f.preventDefault(),f.stopPropagation(),e.focusSectionEnd();break;case"Home":f.preventDefault(),f.stopPropagation(),e.focusSectionStart();break;case"ArrowLeft":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusNextDay():e.focusPreviousDay();break;case"ArrowUp":f.preventDefault(),f.stopPropagation(),e.focusPreviousRow();break;case"ArrowRight":f.preventDefault(),f.stopPropagation(),i==="rtl"?e.focusPreviousDay():e.focusNextDay();break;case"ArrowDown":f.preventDefault(),f.stopPropagation(),e.focusNextRow();break;case"Escape":"setAnchorDate"in e&&(f.preventDefault(),e.setAnchorDate(null));break}},o=es(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=Xo.get(e),c=Xl({"aria-label":[d,o].filter(Boolean).join(", "),"aria-labelledby":u}),m=ia({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:p}=qe(),h=(0,v.useMemo)(()=>{let f=on(gi(e.timeZone),p,n);return[...Array(7).keys()].map(x=>{let b=f.add({days:x}).toDate(e.timeZone);return m.format(b)})},[p,e.timeZone,m,n]),g=Zb(a,p,n);return{gridProps:Xe(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:l,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function Xw(t){return t&&t.__esModule?t.default:t}function e2(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:l}=Xo.get(e),o=Ha(Xw(pn),"@react-aria/calendar"),d=ia({weekday:"long",day:"numeric",month:"long",year:"numeric",era:hn(r),timeZone:e.timeZone}),u=e.isSelected(r),c=e.isCellFocused(r)&&!t.isOutsideMonth;n||(n=e.isCellDisabled(r));let m=e.isCellUnavailable(r),p=!n&&!m,h=e.isValueInvalid&&!!("highlightedRange"in e?!e.anchorDate&&e.highlightedRange&&r.compare(e.highlightedRange.start)>=0&&r.compare(e.highlightedRange.end)<=0:e.value&&Ue(e.value,r));h&&(u=!0),r=OA(r,Ro);let g=(0,v.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Qc(r,e.timeZone),x=(0,v.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Ue(r,e.value.start)||Ue(r,e.value.end))&&(E=l+", "),E+=d.format(g),f?E=o.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=o.format("dateSelected",{date:E})),e.minValue&&Ue(r,e.minValue)?E+=", "+o.format("minimumDate"):e.maxValue&&Ue(r,e.maxValue)&&(E+=", "+o.format("maximumDate")),E},[d,g,o,u,f,r,e,l]),b="";"anchorDate"in e&&c&&!e.isReadOnly&&p&&(b=e.anchorDate?o.format("finishRangeSelectionPrompt"):o.format("startRangeSelectionPrompt"));let w=zl(b),D=(0,v.useRef)(!1),j=(0,v.useRef)(!1),S=(0,v.useRef)(void 0),{pressProps:N,isPressed:k}=Ov({shouldCancelOnPointerExit:"anchorDate"in e&&!!e.anchorDate,preventFocusOnPress:!0,isDisabled:!p||e.isReadOnly,onPressStart(E){if(e.isReadOnly){e.setFocusedDate(r);return}if("highlightedRange"in e&&!e.anchorDate&&(E.pointerType==="mouse"||E.pointerType==="touch")){if(e.highlightedRange&&!h){if(Ue(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Ue(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let T=()=>{e.setDragging(!0),S.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?S.current=setTimeout(T,200):T()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(S.current),S.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&S.current&&(e.selectDate(r),e.setFocusedDate(r)),"anchorDate"in e))if(j.current)e.setAnchorDate(r);else if(e.anchorDate&&!D.current)e.selectDate(r),e.setFocusedDate(r);else if(E.pointerType==="keyboard"&&!e.anchorDate){e.selectDate(r);let T=r.add({days:1});e.isInvalid(T)&&(T=r.subtract({days:1})),e.isInvalid(T)||e.setFocusedDate(T)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Ue(r,e.focusedDate)?0:-1),(0,v.useEffect)(()=>{c&&a.current&&(PA(a.current),zT()!=="pointer"&&document.activeElement===a.current&&K1(a.current,{containingElement:Fl(a.current)}))},[c,a]);let C=ia({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,v.useMemo)(()=>C.formatToParts(g).find(E=>E.type==="day").value,[C,g]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":u||void 0,"aria-invalid":h||void 0},buttonProps:Xe(N,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!p||void 0,"aria-label":x,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(E){"highlightDate"in e&&(E.pointerType!=="touch"||e.isDragging)&&p&&e.highlightDate(r)},onPointerDown(E){"releasePointerCapture"in E.target&&E.target.releasePointerCapture(E.pointerId)},onContextMenu(E){E.preventDefault()}}),isPressed:k,isFocused:c,isSelected:u,isDisabled:n,isUnavailable:m,isOutsideVisibleRange:r.compare(e.visibleRange.start)<0||r.compare(e.visibleRange.end)>0,isInvalid:h,formattedDate:_}}var fh={};fh={calendar:"\u0627\u0644\u062A\u0642\u0648\u064A\u0645",day:"\u064A\u0648\u0645",dayPeriod:"\u0635/\u0645",endDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",era:"\u0627\u0644\u0639\u0635\u0631",hour:"\u0627\u0644\u0633\u0627\u0639\u0627\u062A",minute:"\u0627\u0644\u062F\u0642\u0627\u0626\u0642",month:"\u0627\u0644\u0634\u0647\u0631",second:"\u0627\u0644\u062B\u0648\u0627\u0646\u064A",selectedDateDescription:t=>`\u062A\u0627\u0631\u064A\u062E \u0645\u062D\u062F\u062F: ${t.date}`,selectedRangeDescription:t=>`\u0627\u0644\u0645\u062F\u0649 \u0627\u0644\u0632\u0645\u0646\u064A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.startDate} \u0625\u0644\u0649 ${t.endDate}`,selectedTimeDescription:t=>`\u0627\u0644\u0648\u0642\u062A \u0627\u0644\u0645\u062D\u062F\u062F: ${t.time}`,startDate:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621",timeZoneName:"\u0627\u0644\u062A\u0648\u0642\u064A\u062A",weekday:"\u0627\u0644\u064A\u0648\u0645",year:"\u0627\u0644\u0633\u0646\u0629"};var gh={};gh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D",dayPeriod:"\u043F\u0440.\u043E\u0431./\u0441\u043B.\u043E\u0431.",endDate:"\u041A\u0440\u0430\u0439\u043D\u0430 \u0434\u0430\u0442\u0430",era:"\u0435\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u0434\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0418\u0437\u0431\u0440\u0430\u043D\u043E \u0432\u0440\u0435\u043C\u0435: ${t.time}`,startDate:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430 \u0434\u0430\u0442\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0435\u043D \u043E\u0442 \u0441\u0435\u0434\u043C\u0438\u0446\u0430\u0442\u0430",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var xh={};xh={calendar:"Kalend\xE1\u0159",day:"den",dayPeriod:"\u010D\xE1st dne",endDate:"Kone\u010Dn\xE9 datum",era:"letopo\u010Det",hour:"hodina",minute:"minuta",month:"m\u011Bs\xEDc",second:"sekunda",selectedDateDescription:t=>`Vybran\xE9 datum: ${t.date}`,selectedRangeDescription:t=>`Vybran\xE9 obdob\xED: ${t.startDate} a\u017E ${t.endDate}`,selectedTimeDescription:t=>`Vybran\xFD \u010Das: ${t.time}`,startDate:"Po\u010D\xE1te\u010Dn\xED datum",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"den v t\xFDdnu",year:"rok"};var vh={};vh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"\xE6ra",hour:"time",minute:"minut",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt interval: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tidspunkt: ${t.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"\xE5r"};var yh={};yh={calendar:"Kalender",day:"Tag",dayPeriod:"Tagesh\xE4lfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:t=>`Ausgew\xE4hltes Datum: ${t.date}`,selectedRangeDescription:t=>`Ausgew\xE4hlter Bereich: ${t.startDate} bis ${t.endDate}`,selectedTimeDescription:t=>`Ausgew\xE4hlte Zeit: ${t.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var bh={};bh={calendar:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BB\u03CC\u03B3\u03B9\u03BF",day:"\u03B7\u03BC\u03AD\u03C1\u03B1",dayPeriod:"\u03C0.\u03BC./\u03BC.\u03BC.",endDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2",era:"\u03C0\u03B5\u03C1\u03AF\u03BF\u03B4\u03BF\u03C2",hour:"\u03CE\u03C1\u03B1",minute:"\u03BB\u03B5\u03C0\u03C4\u03CC",month:"\u03BC\u03AE\u03BD\u03B1\u03C2",second:"\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF",selectedDateDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1: ${t.date}`,selectedRangeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B5\u03CD\u03C1\u03BF\u03C2: ${t.startDate} \u03AD\u03C9\u03C2 ${t.endDate}`,selectedTimeDescription:t=>`\u0395\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03CE\u03C1\u03B1: ${t.time}`,startDate:"\u0397\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2",timeZoneName:"\u03B6\u03CE\u03BD\u03B7 \u03CE\u03C1\u03B1\u03C2",weekday:"\u03BA\u03B1\u03B8\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE",year:"\u03AD\u03C4\u03BF\u03C2"};var wh={};wh={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:t=>`Selected Date: ${t.date}`,selectedRangeDescription:t=>`Selected Range: ${t.startDate} to ${t.endDate}`,selectedTimeDescription:t=>`Selected Time: ${t.time}`};var Dh={};Dh={calendar:"Calendario",day:"d\xEDa",dayPeriod:"a.\xA0m./p.\xA0m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:t=>`Fecha seleccionada: ${t.date}`,selectedRangeDescription:t=>`Rango seleccionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora seleccionada: ${t.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"d\xEDa de la semana",year:"a\xF1o"};var jh={};jh={calendar:"Kalender",day:"p\xE4ev",dayPeriod:"enne/p\xE4rast l\xF5unat",endDate:"L\xF5ppkuup\xE4ev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:t=>`Valitud kuup\xE4ev: ${t.date}`,selectedRangeDescription:t=>`Valitud vahemik: ${t.startDate} kuni ${t.endDate}`,selectedTimeDescription:t=>`Valitud aeg: ${t.time}`,startDate:"Alguskuup\xE4ev",timeZoneName:"ajav\xF6\xF6nd",weekday:"n\xE4dalap\xE4ev",year:"aasta"};var Ch={};Ch={calendar:"Kalenteri",day:"p\xE4iv\xE4",dayPeriod:"vuorokaudenaika",endDate:"P\xE4\xE4ttymisp\xE4iv\xE4",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:t=>`Valittu p\xE4iv\xE4m\xE4\xE4r\xE4: ${t.date}`,selectedRangeDescription:t=>`Valittu aikav\xE4li: ${t.startDate} \u2013 ${t.endDate}`,selectedTimeDescription:t=>`Valittu aika: ${t.time}`,startDate:"Alkamisp\xE4iv\xE4",timeZoneName:"aikavy\xF6hyke",weekday:"viikonp\xE4iv\xE4",year:"vuosi"};var Sh={};Sh={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"\xE8re",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:t=>`Date s\xE9lectionn\xE9e\xA0: ${t.date}`,selectedRangeDescription:t=>`Plage s\xE9lectionn\xE9e\xA0: ${t.startDate} au ${t.endDate}`,selectedTimeDescription:t=>`Heure choisie\xA0: ${t.time}`,startDate:"Date de d\xE9but",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"ann\xE9e"};var kh={};kh={calendar:"\u05DC\u05D5\u05D7 \u05E9\u05E0\u05D4",day:"\u05D9\u05D5\u05DD",dayPeriod:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6/\u05D0\u05D7\u05D4\u05F4\u05E6",endDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05E1\u05D9\u05D5\u05DD",era:"\u05EA\u05E7\u05D5\u05E4\u05D4",hour:"\u05E9\u05E2\u05D4",minute:"\u05D3\u05E7\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",second:"\u05E9\u05E0\u05D9\u05D9\u05D4",selectedDateDescription:t=>`\u05EA\u05D0\u05E8\u05D9\u05DA \u05E0\u05D1\u05D7\u05E8: ${t.date}`,selectedRangeDescription:t=>`\u05D8\u05D5\u05D5\u05D7 \u05E0\u05D1\u05D7\u05E8: ${t.startDate} \u05E2\u05D3 ${t.endDate}`,selectedTimeDescription:t=>`\u05D6\u05DE\u05DF \u05E0\u05D1\u05D7\u05E8: ${t.time}`,startDate:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05EA\u05D7\u05DC\u05D4",timeZoneName:"\u05D0\u05D6\u05D5\u05E8 \u05D6\u05DE\u05DF",weekday:"\u05D9\u05D5\u05DD \u05D1\u05E9\u05D1\u05D5\u05E2",year:"\u05E9\u05E0\u05D4"};var Nh={};Nh={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum zavr\u0161etka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:t=>`Odabrani datum: ${t.date}`,selectedRangeDescription:t=>`Odabrani raspon: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Odabrano vrijeme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var Eh={};Eh={calendar:"Napt\xE1r",day:"nap",dayPeriod:"napszak",endDate:"Befejez\u0151 d\xE1tum",era:"\xE9ra",hour:"\xF3ra",minute:"perc",month:"h\xF3nap",second:"m\xE1sodperc",selectedDateDescription:t=>`Kijel\xF6lt d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Kijel\xF6lt tartom\xE1ny: ${t.startDate}\u2013${t.endDate}`,selectedTimeDescription:t=>`Kijel\xF6lt id\u0151: ${t.time}`,startDate:"Kezd\u0151 d\xE1tum",timeZoneName:"id\u0151z\xF3na",weekday:"h\xE9t napja",year:"\xE9v"};var _h={};_h={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:t=>`Data selezionata: ${t.date}`,selectedRangeDescription:t=>`Intervallo selezionato: da ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Ora selezionata: ${t.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var Rh={};Rh={calendar:"\u30AB\u30EC\u30F3\u30C0\u30FC",day:"\u65E5",dayPeriod:"\u5348\u524D/\u5348\u5F8C",endDate:"\u7D42\u4E86\u65E5",era:"\u6642\u4EE3",hour:"\u6642",minute:"\u5206",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u629E\u3057\u305F\u65E5\u4ED8 : ${t.date}`,selectedRangeDescription:t=>`\u9078\u629E\u7BC4\u56F2 : ${t.startDate} \u304B\u3089 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u629E\u3057\u305F\u6642\u9593 : ${t.time}`,startDate:"\u958B\u59CB\u65E5",timeZoneName:"\u30BF\u30A4\u30E0\u30BE\u30FC\u30F3",weekday:"\u66DC\u65E5",year:"\u5E74"};var Th={};Th={calendar:"\uB2EC\uB825",day:"\uC77C",dayPeriod:"\uC624\uC804/\uC624\uD6C4",endDate:"\uC885\uB8CC\uC77C",era:"\uC5F0\uD638",hour:"\uC2DC",minute:"\uBD84",month:"\uC6D4",second:"\uCD08",selectedDateDescription:t=>`\uC120\uD0DD \uC77C\uC790: ${t.date}`,selectedRangeDescription:t=>`\uC120\uD0DD \uBC94\uC704: ${t.startDate} ~ ${t.endDate}`,selectedTimeDescription:t=>`\uC120\uD0DD \uC2DC\uAC04: ${t.time}`,startDate:"\uC2DC\uC791\uC77C",timeZoneName:"\uC2DC\uAC04\uB300",weekday:"\uC694\uC77C",year:"\uB144"};var Ah={};Ah={calendar:"Kalendorius",day:"diena",dayPeriod:"iki piet\u0173 / po piet\u0173",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minut\u0117",month:"m\u0117nuo",second:"sekund\u0117",selectedDateDescription:t=>`Pasirinkta data: ${t.date}`,selectedRangeDescription:t=>`Pasirinktas intervalas: nuo ${t.startDate} iki ${t.endDate}`,selectedTimeDescription:t=>`Pasirinktas laikas: ${t.time}`,startDate:"Prad\u017Eios data",timeZoneName:"laiko juosta",weekday:"savait\u0117s diena",year:"metai"};var Ih={};Ih={calendar:"Kalend\u0101rs",day:"diena",dayPeriod:"priek\u0161pusdien\u0101/p\u0113cpusdien\u0101",endDate:"Beigu datums",era:"\u0113ra",hour:"stundas",minute:"min\u016Btes",month:"m\u0113nesis",second:"sekundes",selectedDateDescription:t=>`Atlas\u012Btais datums: ${t.date}`,selectedRangeDescription:t=>`Atlas\u012Btais diapazons: no ${t.startDate} l\u012Bdz ${t.endDate}`,selectedTimeDescription:t=>`Atlas\u012Btais laiks: ${t.time}`,startDate:"S\u0101kuma datums",timeZoneName:"laika josla",weekday:"ned\u0113\u013Cas diena",year:"gads"};var Ph={};Ph={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"m\xE5ned",second:"sekund",selectedDateDescription:t=>`Valgt dato: ${t.date}`,selectedRangeDescription:t=>`Valgt omr\xE5de: ${t.startDate} til ${t.endDate}`,selectedTimeDescription:t=>`Valgt tid: ${t.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"\xE5r"};var Mh={};Mh={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:t=>`Geselecteerde datum: ${t.date}`,selectedRangeDescription:t=>`Geselecteerd bereik: ${t.startDate} tot ${t.endDate}`,selectedTimeDescription:t=>`Geselecteerde tijd: ${t.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var Fh={};Fh={calendar:"Kalendarz",day:"dzie\u0144",dayPeriod:"rano / po po\u0142udniu / wieczorem",endDate:"Data ko\u0144cowa",era:"era",hour:"godzina",minute:"minuta",month:"miesi\u0105c",second:"sekunda",selectedDateDescription:t=>`Wybrana data: ${t.date}`,selectedRangeDescription:t=>`Wybrany zakres: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Wybrany czas: ${t.time}`,startDate:"Data pocz\u0105tkowa",timeZoneName:"strefa czasowa",weekday:"dzie\u0144 tygodnia",year:"rok"};var Vh={};Vh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data inicial",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var zh={};zh={calendar:"Calend\xE1rio",day:"dia",dayPeriod:"am/pm",endDate:"Data de T\xE9rmino",era:"era",hour:"hora",minute:"minuto",month:"m\xEAs",second:"segundo",selectedDateDescription:t=>`Data selecionada: ${t.date}`,selectedRangeDescription:t=>`Intervalo selecionado: ${t.startDate} a ${t.endDate}`,selectedTimeDescription:t=>`Hora selecionada: ${t.time}`,startDate:"Data de In\xEDcio",timeZoneName:"fuso hor\xE1rio",weekday:"dia da semana",year:"ano"};var Oh={};Oh={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dat\u0103 final",era:"er\u0103",hour:"or\u0103",minute:"minut",month:"lun\u0103",second:"secund\u0103",selectedDateDescription:t=>`Dat\u0103 selectat\u0103: ${t.date}`,selectedRangeDescription:t=>`Interval selectat: de la ${t.startDate} p\xE2n\u0103 la ${t.endDate}`,selectedTimeDescription:t=>`Ora selectat\u0103: ${t.time}`,startDate:"Dat\u0103 \xEEnceput",timeZoneName:"fus orar",weekday:"ziua din s\u0103pt\u0103m\xE2n\u0103",year:"an"};var $h={};$h={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C",day:"\u0434\u0435\u043D\u044C",dayPeriod:"AM/PM",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",era:"\u044D\u0440\u0430",hour:"\u0447\u0430\u0441",minute:"\u043C\u0438\u043D\u0443\u0442\u0430",month:"\u043C\u0435\u0441\u044F\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D: \u0441 ${t.startDate} \u043F\u043E ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u043E\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u043D\u0435\u0434\u0435\u043B\u0438",year:"\u0433\u043E\u0434"};var Lh={};Lh={calendar:"Kalend\xE1r",day:"de\u0148",dayPeriod:"AM/PM",endDate:"D\xE1tum ukon\u010Denia",era:"letopo\u010Det",hour:"hodina",minute:"min\xFAta",month:"mesiac",second:"sekunda",selectedDateDescription:t=>`Vybrat\xFD d\xE1tum: ${t.date}`,selectedRangeDescription:t=>`Vybrat\xFD rozsah: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Vybrat\xFD \u010Das: ${t.time}`,startDate:"D\xE1tum za\u010Datia",timeZoneName:"\u010Dasov\xE9 p\xE1smo",weekday:"de\u0148 t\xFD\u017Ed\u0148a",year:"rok"};var Bh={};Bh={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:t=>`Izbrani datum: ${t.date}`,selectedRangeDescription:t=>`Izbrano obmo\u010Dje: ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izbrani \u010Das: ${t.time}`,startDate:"Datum za\u010Detka",timeZoneName:"\u010Dasovni pas",weekday:"dan v tednu",year:"leto"};var Hh={};Hh={calendar:"Kalendar",day:"\u0434\u0430\u043D",dayPeriod:"\u043F\u0440\u0435 \u043F\u043E\u0434\u043D\u0435/\u043F\u043E \u043F\u043E\u0434\u043D\u0435",endDate:"Datum zavr\u0161etka",era:"\u0435\u0440\u0430",hour:"\u0441\u0430\u0442",minute:"\u043C\u0438\u043D\u0443\u0442",month:"\u043C\u0435\u0441\u0435\u0446",second:"\u0441\u0435\u043A\u0443\u043D\u0434",selectedDateDescription:t=>`Izabrani datum: ${t.date}`,selectedRangeDescription:t=>`Izabrani opseg: od ${t.startDate} do ${t.endDate}`,selectedTimeDescription:t=>`Izabrano vreme: ${t.time}`,startDate:"Datum po\u010Detka",timeZoneName:"\u0432\u0440\u0435\u043C\u0435\u043D\u0441\u043A\u0430 \u0437\u043E\u043D\u0430",weekday:"\u0434\u0430\u043D \u0443 \u043D\u0435\u0434\u0435\u0459\u0438",year:"\u0433\u043E\u0434\u0438\u043D\u0430"};var Wh={};Wh={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"m\xE5nad",second:"sekund",selectedDateDescription:t=>`Valt datum: ${t.date}`,selectedRangeDescription:t=>`Valt intervall: ${t.startDate} till ${t.endDate}`,selectedTimeDescription:t=>`Vald tid: ${t.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"\xE5r"};var Uh={};Uh={calendar:"Takvim",day:"g\xFCn",dayPeriod:"\xD6\xD6/\xD6S",endDate:"Biti\u015F Tarihi",era:"\xE7a\u011F",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:t=>`Se\xE7ilen Tarih: ${t.date}`,selectedRangeDescription:t=>`Se\xE7ilen Aral\u0131k: ${t.startDate} - ${t.endDate}`,selectedTimeDescription:t=>`Se\xE7ilen Zaman: ${t.time}`,startDate:"Ba\u015Flang\u0131\xE7 Tarihi",timeZoneName:"saat dilimi",weekday:"haftan\u0131n g\xFCn\xFC",year:"y\u0131l"};var Kh={};Kh={calendar:"\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440",day:"\u0434\u0435\u043D\u044C",dayPeriod:"\u0434\u043F/\u043F\u043F",endDate:"\u0414\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F",era:"\u0435\u0440\u0430",hour:"\u0433\u043E\u0434\u0438\u043D\u0430",minute:"\u0445\u0432\u0438\u043B\u0438\u043D\u0430",month:"\u043C\u0456\u0441\u044F\u0446\u044C",second:"\u0441\u0435\u043A\u0443\u043D\u0434\u0430",selectedDateDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430: ${t.date}`,selectedRangeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D: ${t.startDate} \u2014 ${t.endDate}`,selectedTimeDescription:t=>`\u0412\u0438\u0431\u0440\u0430\u043D\u0438\u0439 \u0447\u0430\u0441: ${t.time}`,startDate:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443",timeZoneName:"\u0447\u0430\u0441\u043E\u0432\u0438\u0439 \u043F\u043E\u044F\u0441",weekday:"\u0434\u0435\u043D\u044C \u0442\u0438\u0436\u043D\u044F",year:"\u0440\u0456\u043A"};var Zh={};Zh={calendar:"\u65E5\u5386",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7ED3\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9009\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9009\u5B9A\u7684\u8303\u56F4\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9009\u5B9A\u7684\u65F6\u95F4\uFF1A${t.time}`,startDate:"\u5F00\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var qh={};qh={calendar:"\u65E5\u66C6",day:"\u65E5",dayPeriod:"\u4E0A\u5348/\u4E0B\u5348",endDate:"\u7D50\u675F\u65E5\u671F",era:"\u7EAA\u5143",hour:"\u5C0F\u65F6",minute:"\u5206\u949F",month:"\u6708",second:"\u79D2",selectedDateDescription:t=>`\u9078\u5B9A\u7684\u65E5\u671F\uFF1A${t.date}`,selectedRangeDescription:t=>`\u9078\u5B9A\u7684\u7BC4\u570D\uFF1A${t.startDate} \u81F3 ${t.endDate}`,selectedTimeDescription:t=>`\u9078\u5B9A\u7684\u6642\u9593\uFF1A${t.time}`,startDate:"\u958B\u59CB\u65E5\u671F",timeZoneName:"\u65F6\u533A",weekday:"\u5DE5\u4F5C\u65E5",year:"\u5E74"};var fn={};fn={"ar-AE":fh,"bg-BG":gh,"cs-CZ":xh,"da-DK":vh,"de-DE":yh,"el-GR":bh,"en-US":wh,"es-ES":Dh,"et-EE":jh,"fi-FI":Ch,"fr-FR":Sh,"he-IL":kh,"hr-HR":Nh,"hu-HU":Eh,"it-IT":_h,"ja-JP":Rh,"ko-KR":Th,"lt-LT":Ah,"lv-LV":Ih,"nb-NO":Ph,"nl-NL":Mh,"pl-PL":Fh,"pt-BR":Vh,"pt-PT":zh,"ro-RO":Oh,"ru-RU":$h,"sk-SK":Lh,"sl-SI":Bh,"sr-SP":Hh,"sv-SE":Wh,"tr-TR":Uh,"uk-UA":Kh,"zh-CN":Zh,"zh-TW":qh};function as(t,e,a){let{direction:r}=qe(),n=(0,v.useMemo)(()=>Ml(e),[e]),i=d=>{if(d.currentTarget.contains(d.target)&&(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in t&&(d.preventDefault(),d.stopPropagation(),t.setOpen(!0)),!a))switch(d.key){case"ArrowLeft":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=Yh(e.current,u.getBoundingClientRect().left,-1);c&&c.focus()}}else n.focusPrevious();break;case"ArrowRight":if(d.preventDefault(),d.stopPropagation(),r==="rtl"){if(e.current){let u=d.target,c=Yh(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},l=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=W1(e.current,{tabbable:!0});if(d&&(d=(u.currentNode=d,u.previousNode())),!d){let m;do m=u.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=u.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:o}=Ov({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&l()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&l()}});return Xe(o,{onKeyDown:i})}function Yh(t,e,a){let r=W1(t,{tabbable:!0}),n=r.nextNode(),i=null,l=1/0;for(;n;){let o=n.getBoundingClientRect().left-e,d=Math.abs(o);Math.sign(o)===a&&d<l&&(i=n,l=d),n=r.nextNode()}return i}function t2(t){return t&&t.__esModule?t.default:t}var Gh=new WeakMap,gn="__role_"+Date.now(),Jh="__focusManager_"+Date.now();function a2(t,e,a){var y;let{isInvalid:r,validationErrors:n,validationDetails:i}=e.displayValidation,{labelProps:l,fieldProps:o,descriptionProps:d,errorMessageProps:u}=Iu({...t,labelElementType:"span",isInvalid:r,errorMessage:t.errorMessage||n}),c=(0,v.useRef)(null),{focusWithinProps:m}=Yl({...t,onFocusWithin(C){var _;c.current=e.value,(_=t.onFocus)==null||_.call(t,C)},onBlurWithin:C=>{var _;e.confirmPlaceholder(),e.value!==c.current&&e.commitValidation(),(_=t.onBlur)==null||_.call(t,C)},onFocusWithinChange:t.onFocusChange}),p=Ha(t2(fn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=zl(e.value?p.format(h,{[g]:e.formatValue({month:"long"})}):""),x=t[gn]==="presentation"?o["aria-describedby"]:[f["aria-describedby"],o["aria-describedby"]].filter(Boolean).join(" ")||void 0,b=t[Jh],w=(0,v.useMemo)(()=>b||Ml(a),[b,a]),D=as(e,a,t[gn]==="presentation");Gh.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[l.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:x,focusManager:w});let j=(0,v.useRef)(t.autoFocus),S;S=t[gn]==="presentation"?{role:"presentation"}:Xe(o,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":x}),(0,v.useEffect)(()=>{j.current&&w.focusFirst(),j.current=!1},[w]),HT(t.inputRef,e.defaultValue,e.setValue),YT({...t,focus(){w.focusFirst()}},e,t.inputRef);let N={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(N.type="text",N.hidden=!0,N.required=t.isRequired,N.onChange=()=>{});let k=st(t);return{labelProps:{...l,onClick:()=>{w.focusFirst()}},fieldProps:Xe(k,S,D,m,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:N,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function r2(t){return t&&t.__esModule?t.default:t}function n2(t,e,a){let r=Yr(),n=Yr(),i=Yr(),l=Ha(r2(fn),"@react-aria/datepicker"),{isInvalid:o,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:m,descriptionProps:p,errorMessageProps:h}=Iu({...t,labelElementType:"span",isInvalid:o,errorMessage:t.errorMessage||d}),g=as(e,a),f=m["aria-labelledby"]||m.id,{locale:x}=qe(),b=e.formatValue(x,{month:"long"}),w=zl(b?l.format("selectedDateDescription",{date:b}):""),D=[w["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=st(t),S=(0,v.useMemo)(()=>Ml(a),[a]),N=(0,v.useRef)(!1),{focusWithinProps:k}=Yl({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;N.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!N.current){var C,_;N.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:Xe(j,g,m,w,k,{role:"group","aria-disabled":t.isDisabled||null,"aria-labelledby":f,"aria-describedby":D,onKeyDown(y){e.isOpen||t.onKeyDown&&t.onKeyDown(y)},onKeyUp(y){e.isOpen||t.onKeyUp&&t.onKeyUp(y)}}),labelProps:{...c,onClick:()=>{S.focusFirst()}},fieldProps:{...m,id:i,[gn]:"presentation","aria-describedby":D,value:e.value,defaultValue:e.defaultValue,onChange:e.setValue,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,granularity:t.granularity,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior,[Pu]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${r} ${f}`,"aria-describedby":D,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:n,"aria-labelledby":`${r} ${f}`},calendarProps:{autoFocus:!0,value:e.dateValue,onChange:e.setDateValue,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,defaultFocusedValue:e.dateValue?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:o,validationErrors:d,validationDetails:u}}function i2(t){return t&&t.__esModule?t.default:t}function l2(){let{locale:t}=qe(),e=OT(i2(fn),"@react-aria/datepicker");return(0,v.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new o2(t,e)}},[t,e])}var o2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function s2(t,e,a){let r=(0,v.useRef)(""),{locale:n,direction:i}=qe(),l=l2(),{ariaLabel:o,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Gh.get(e),m=t.isPlaceholder?"":t.text,p=(0,v.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ia({month:"long",timeZone:p.timeZone}),g=ia({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if(t.type==="month"&&!t.isPlaceholder){let A=h.format(e.dateValue);m=A===m?A:`${m} \u2013 ${A}`}else t.type==="hour"&&!t.isPlaceholder&&(m=g.format(e.dateValue));let{spinButtonProps:f}=$T({value:t.value,textValue:m,minValue:t.minValue,maxValue:t.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly||!t.isEditable,isRequired:e.isRequired,onIncrement:()=>{r.current="",e.increment(t.type)},onDecrement:()=>{r.current="",e.decrement(t.type)},onIncrementPage:()=>{r.current="",e.incrementPage(t.type)},onDecrementPage:()=>{r.current="",e.decrementPage(t.type)},onIncrementToMax:()=>{r.current="",t.maxValue!==void 0&&e.setSegment(t.type,t.maxValue)},onDecrementToMin:()=>{r.current="",t.minValue!==void 0&&e.setSegment(t.type,t.minValue)}}),x=(0,v.useMemo)(()=>new VT(n,{maximumFractionDigits:0}),[n]),b=()=>{if(t.text===t.placeholder&&c.focusPrevious(),x.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let A=t.text.slice(0,-1),O=x.parse(A);A=O===0?"":A,A.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=A}else t.type==="dayPeriod"&&e.clearSegment(t.type)},w=A=>{if(A.key==="a"&&(IA()?A.metaKey:A.ctrlKey)&&A.preventDefault(),!(A.ctrlKey||A.metaKey||A.shiftKey||A.altKey))switch(A.key){case"Backspace":case"Delete":A.preventDefault(),A.stopPropagation(),b();break}},{startsWith:D}=Aw({sensitivity:"base"}),j=ia({hour:"numeric",hour12:!0}),S=(0,v.useMemo)(()=>{let A=new Date;return A.setHours(0),j.formatToParts(A).find(O=>O.type==="dayPeriod").value},[j]),N=(0,v.useMemo)(()=>{let A=new Date;return A.setHours(12),j.formatToParts(A).find(O=>O.type==="dayPeriod").value},[j]),k=ia({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,v.useMemo)(()=>{if(t.type!=="era")return[];let A=Fe(new nt(1,1,1),e.calendar),O=e.calendar.getEras().map(L=>{let G=A.set({year:1,month:1,day:1,era:L}).toDate("UTC");return{era:L,formatted:k.formatToParts(G).find(Q=>Q.type==="era").value}}),z=d2(O.map(L=>L.formatted));if(z)for(let L of O)L.formatted=L.formatted.slice(z);return O},[k,e.calendar,t.type]),C=A=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+A;switch(t.type){case"dayPeriod":if(D(S,A))e.setSegment("dayPeriod",0);else if(D(N,A))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let z=y.find(L=>D(L.formatted,A));z&&(e.setSegment("era",z.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!x.isValidPartialNumber(O))return;let z=x.parse(O),L=z,G=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":z>11&&(L=x.parse(A));break;case"h12":G=!1,z>12&&(L=x.parse(A));break}t.value!==void 0&&t.value>=12&&z>1&&(z+=12)}else t.maxValue!==void 0&&z>t.maxValue&&(L=x.parse(A));if(isNaN(z))return;let Q=L!==0||G;Q&&e.setSegment(t.type,L),t.maxValue!==void 0&&(+(z+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",Q&&c.focusNext()):r.current=O;break}}},_=()=>{var A;r.current="",a.current&&K1(a.current,{containingElement:Fl(a.current)}),(A=window.getSelection())==null||A.collapse(a.current)};Kr((0,v.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let A=window.getSelection();A!=null&&A.anchorNode&&((O=a.current)!=null&&O.contains(A==null?void 0:A.anchorNode))&&A.collapse(a.current)});let E=(0,v.useRef)("");Kr(a,"beforeinput",A=>{if(a.current)switch(A.preventDefault(),A.inputType){case"deleteContentBackward":case"deleteContentForward":x.isValidPartialNumber(t.text)&&!e.isReadOnly&&b();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:A.data!=null&&C(A.data);break}}),Kr(a,"input",A=>{let{inputType:O,data:z}=A;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),z!=null&&(D(S,z)||D(N,z))&&C(z))}),Da(()=>{let A=a.current;return()=>{document.activeElement===A&&(c.focusPrevious()||c.focusNext())}},[a,c]);let T=Mv()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,v.useMemo)(()=>e.segments.find(A=>A.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let P=Yr(),R=!e.isDisabled&&!e.isReadOnly&&t.isEditable,M=t.type==="literal"?"":l.of(t.type),I=Xl({"aria-label":`${M}${o?`, ${o}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let V={caretColor:"transparent"};if(i==="rtl"){V.unicodeBidi="embed";let A=p[t.type];(A==="numeric"||A==="2-digit")&&(V.direction="ltr")}return{segmentProps:Xe(f,I,{id:P,...T,"aria-invalid":e.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":e.isReadOnly||!t.isEditable?"true":void 0,"data-placeholder":t.isPlaceholder||void 0,contentEditable:R,suppressContentEditableWarning:R,spellCheck:R?"false":void 0,autoCorrect:R?"off":void 0,enterKeyHint:R?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!R?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:w,onFocus:_,style:V,onPointerDown(A){A.stopPropagation()},onMouseDown(A){A.stopPropagation()}})}}function d2(t){t.sort();let e=t[0],a=t[t.length-1];for(let r=0;r<e.length;r++)if(e[r]!==a[r])return r;return 0}function u2(t){return t&&t.__esModule?t.default:t}function c2(t,e,a){var T,P,R,M,I;let r=Ha(u2(fn),"@react-aria/datepicker"),{isInvalid:n,validationErrors:i,validationDetails:l}=e.displayValidation,{labelProps:o,fieldProps:d,descriptionProps:u,errorMessageProps:c}=Iu({...t,labelElementType:"span",isInvalid:n,errorMessage:t.errorMessage||i}),m=d["aria-labelledby"]||d.id,{locale:p}=qe(),h=e.formatValue(p,{month:"long"}),g=zl(h?r.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),f={"aria-label":r.format("startDate"),"aria-labelledby":m},x={"aria-label":r.format("endDate"),"aria-labelledby":m},b=Yr(),w=Yr(),D=as(e,a),j=[g["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=(0,v.useMemo)(()=>Ml(a,{accept:V=>V.id!==b}),[a,b]),N={[Jh]:S,[gn]:"presentation","aria-describedby":j,placeholderValue:t.placeholderValue,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,granularity:t.granularity,shouldForceLeadingZeros:t.shouldForceLeadingZeros,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isRequired:t.isRequired,validationBehavior:t.validationBehavior},k=st(t),y=(0,v.useRef)(!1),{focusWithinProps:C}=Yl({...t,isDisabled:e.isOpen,onBlurWithin:V=>{var z;if(!((z=document.getElementById(w))!=null&&z.contains(V.relatedTarget))){var A,O;y.current=!1,(A=t.onBlur)==null||A.call(t,V),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:V=>{if(!y.current){var A,O;y.current=!0,(A=t.onFocus)==null||A.call(t,V),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,v.useRef)(bv),E=(0,v.useRef)(bv);return{groupProps:Xe(k,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(V){e.isOpen||t.onKeyDown&&t.onKeyDown(V)},onKeyUp(V){e.isOpen||t.onKeyUp&&t.onKeyUp(V)}}),labelProps:{...o,onClick:()=>{S.focusFirst()}},buttonProps:{...g,id:b,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${b} ${m}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:w,"aria-labelledby":`${b} ${m}`},startFieldProps:{...f,...N,value:((T=e.value)==null?void 0:T.start)??null,defaultValue:(P=e.defaultValue)==null?void 0:P.start,onChange:V=>e.setDateTime("start",V),autoFocus:t.autoFocus,name:t.startName,form:t.form,[Pu]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(V){_.current=V,e.updateValidation(Gl(V,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...x,...N,value:((R=e.value)==null?void 0:R.end)??null,defaultValue:(M=e.defaultValue)==null?void 0:M.end,onChange:V=>e.setDateTime("end",V),name:t.endName,form:t.form,[Pu]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(V){E.current=V,e.updateValidation(Gl(_.current,V))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(I=e.dateRange)!=null&&I.start&&e.dateRange.end?e.dateRange:null,onChange:e.setDateRange,minValue:t.minValue,maxValue:t.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly,isDateUnavailable:t.isDateUnavailable,allowsNonContiguousRanges:t.allowsNonContiguousRanges,defaultFocusedValue:e.dateRange?void 0:t.placeholderValue,isInvalid:e.isInvalid,errorMessage:typeof t.errorMessage=="function"?t.errorMessage(e.displayValidation):t.errorMessage||e.displayValidation.validationErrors.join(" "),firstDayOfWeek:t.firstDayOfWeek,pageBehavior:t.pageBehavior},isInvalid:n,validationErrors:i,validationDetails:l}}function m2(t,e){let{role:a="dialog"}=t,r=Vv();r=t["aria-label"]?void 0:r;let n=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){Mu(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),Mu(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),Zw(),{dialogProps:{...st(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function wr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function rs(t,e,a,r,n){let i={};for(let l in e)i[l]=Math.floor(e[l]/2),i[l]>0&&e[l]%2==0&&i[l]--;return xn(t,Qa(t,e,a).subtract(i),e,a,r,n)}function Qa(t,e,a,r,n){let i=t;return e.years?i=Lb(t):e.months?i=Ya(t):e.weeks&&(i=on(t,a)),xn(t,i,e,a,r,n)}function ns(t,e,a,r,n){let i={...e};return i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--,xn(t,Qa(t,e,a).subtract(i),e,a,r,n)}function xn(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let l=Po(e,Qa(mt(n),a,r));l&&(e=l)}if(i&&t.compare(i)<=0){let l=Io(e,ns(mt(i),a,r));l&&(e=l)}return e}function Ea(t,e,a){if(e){let r=Po(t,mt(e));r&&(t=r)}if(a){let r=Io(t,mt(a));r&&(t=r)}return t}function Qh(t,e,a){if(!a)return t;for(;t.compare(e)>=0&&a(t);)t=t.subtract({days:1});return t.compare(e)>=0?t:null}function Xh(t){let e=(0,v.useMemo)(()=>new Kt(t.locale),[t.locale]),a=(0,v.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:l,maxValue:o,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:m}=t,p=(0,v.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=ur(t.value,t.defaultValue??null,t.onChange),f=(0,v.useMemo)(()=>h?Fe(mt(h),p):null,[h,p]),x=(0,v.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[b,w]=ur((0,v.useMemo)(()=>t.focusedValue?Ea(Fe(mt(t.focusedValue),p),l,o):void 0,[t.focusedValue,p,l,o]),(0,v.useMemo)(()=>Ea(t.defaultFocusedValue?Fe(mt(t.defaultFocusedValue),p):f||Fe(gi(x),p),l,o),[t.defaultFocusedValue,f,x,p,l,o]),t.onFocusChange),[D,j]=(0,v.useState)(()=>{switch(d){case"start":return Qa(b,i,r,l,o);case"end":return ns(b,i,r,l,o);default:return rs(b,i,r,l,o)}}),[S,N]=(0,v.useState)(t.autoFocus||!1),k=(0,v.useMemo)(()=>{let I={...i};return I.days?I.days--:I.days=-1,D.add(I)},[D,i]),[y,C]=(0,v.useState)(p);if(!fi(p,y)){let I=Fe(b,p);j(rs(I,i,r,l,o)),w(I),C(p)}wr(b,l,o)?w(Ea(b,l,o)):b.compare(D)<0?j(ns(b,i,r,l,o)):b.compare(k)>0&&j(Qa(b,i,r,l,o));function _(I){I=Ea(I,l,o),w(I)}function E(I){if(!t.isDisabled&&!t.isReadOnly){let V=I;if(V===null){g(null);return}if(V=Ea(V,l,o),V=Qh(V,D,u),!V)return;V=Fe(V,(h==null?void 0:h.calendar)||new gt),h&&"hour"in h?g(h.set(V)):g(V)}}let T=(0,v.useMemo)(()=>f?u&&u(f)?!0:wr(f,l,o):!1,[f,u,l,o]),P=t.isInvalid||t.validationState==="invalid"||T,R=P?"invalid":null,M=(0,v.useMemo)(()=>c==="visible"?i:is(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:k},minValue:l,maxValue:o,focusedDate:b,timeZone:x,validationState:R,isValueInvalid:P,setFocusedDate(I){_(I),N(!0)},focusNextDay(){_(b.add({days:1}))},focusPreviousDay(){_(b.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(b.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(b.subtract({weeks:1}))},focusNextPage(){let I=D.add(M);w(Ea(b.add(M),l,o)),j(Qa(xn(b,I,M,r,l,o),M,r))},focusPreviousPage(){let I=D.subtract(M);w(Ea(b.subtract(M),l,o)),j(Qa(xn(b,I,M,r,l,o),M,r))},focusSectionStart(){i.days?_(D):i.weeks?_(on(b,r)):(i.months||i.years)&&_(Ya(b))},focusSectionEnd(){i.days?_(k):i.weeks?_(Wb(b,r)):(i.months||i.years)&&_(vi(b))},focusNextSection(I){if(!I&&!i.days){_(b.add(is(i)));return}i.days?this.focusNextPage():i.weeks?_(b.add({months:1})):(i.months||i.years)&&_(b.add({years:1}))},focusPreviousSection(I){if(!I&&!i.days){_(b.subtract(is(i)));return}i.days?this.focusPreviousPage():i.weeks?_(b.subtract({months:1})):(i.months||i.years)&&_(b.subtract({years:1}))},selectFocusedDate(){u&&u(b)||E(b)},selectDate(I){E(I)},isFocused:S,setFocused:N,isInvalid(I){return wr(I,l,o)},isSelected(I){return f!=null&&Ue(I,f)&&!this.isCellDisabled(I)&&!this.isCellUnavailable(I)},isCellFocused(I){return S&&b&&Ue(I,b)},isCellDisabled(I){return t.isDisabled||I.compare(D)<0||I.compare(k)>0||this.isInvalid(I)},isCellUnavailable(I){return t.isDateUnavailable?t.isDateUnavailable(I):!1},isPreviousVisibleRangeInvalid(){let I=D.subtract({days:1});return Ue(I,D)||this.isInvalid(I)},isNextVisibleRangeInvalid(){let I=k.add({days:1});return Ue(I,k)||this.isInvalid(I)},getDatesInWeek(I,V=D){let A=V.add({weeks:I}),O=[];A=on(A,r,m);let z=To(A,r,m);for(let L=0;L<z;L++)O.push(null);for(;O.length<7;){O.push(A);let L=A.add({days:1});if(Ue(A,L))break;A=L}for(;O.length<7;)O.push(null);return O}}}function is(t){let e={...t};for(let a in t)e[a]=1;return e}function p2(t){let{value:e,defaultValue:a,onChange:r,createCalendar:n,locale:i,visibleDuration:l={months:1},minValue:o,maxValue:d,...u}=t,[c,m]=ur(e,a||null,r),[p,h]=(0,v.useState)(null),g="center";if(c&&c.start&&c.end){let V=rs(mt(c.start),l,i,o,d).add(l).subtract({days:1});c.end.compare(V)>0&&(g="start")}let f=(0,v.useRef)(null),[x,b]=(0,v.useState)(null),w=(0,v.useMemo)(()=>Po(o,x==null?void 0:x.start),[o,x]),D=(0,v.useMemo)(()=>Io(d,x==null?void 0:x.end),[d,x]),j=Xh({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:l,minValue:w,maxValue:D,selectionAlignment:t.selectionAlignment||g}),S=V=>{V&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:tf(V,j,-1),end:tf(V,j,1)},b(f.current)):(f.current=null,b(null))},[N,k]=(0,v.useState)(j.visibleRange);(!Ro(j.visibleRange.start,N.start)||!Ro(j.visibleRange.end,N.end))&&(S(p),k(j.visibleRange));let y=V=>{V?(h(V),S(V)):(h(null),S(null))},C=p?ls(p,j.focusedDate):c&&ls(c.start,c.end),_=V=>{if(t.isReadOnly)return;let A=Qh(Ea(V,w,D),j.visibleRange.start,t.isDateUnavailable);if(A)if(!p)y(A);else{let O=ls(p,A);O&&m({start:ef(O.start,c==null?void 0:c.start),end:ef(O.end,c==null?void 0:c.end)}),y(null)}},[E,T]=(0,v.useState)(!1),{isDateUnavailable:P}=t,R=(0,v.useMemo)(()=>!c||p?!1:P&&(P(c.start)||P(c.end))?!0:wr(c.start,o,d)||wr(c.end,o,d),[P,c,p,o,d]),M=t.isInvalid||t.validationState==="invalid"||R;return{...j,value:c,setValue:m,anchorDate:p,setAnchorDate:y,highlightedRange:C,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(V){p&&j.setFocusedDate(V)},isSelected(V){return!!(C&&V.compare(C.start)>=0&&V.compare(C.end)<=0&&!j.isCellDisabled(V)&&!j.isCellUnavailable(V))},isInvalid(V){var A,O;return j.isInvalid(V)||wr(V,(A=f.current)==null?void 0:A.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:T}}function ls(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:mt(t),end:mt(e)})}function ef(t,e){return t=Fe(t,(e==null?void 0:e.calendar)||new gt),e&&"hour"in e?e.set(t):t}function tf(t,e,a){let r=t.add({days:a});for(;(a<0?r.compare(e.visibleRange.start)>=0:r.compare(e.visibleRange.end)<=0)&&!e.isCellUnavailable(r);)r=r.add({days:a});if(e.isCellUnavailable(r))return r.add({days:-a})}function os(t){let[e,a]=ur(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,v.useCallback)(()=>{a(!0)},[a]),close:(0,v.useCallback)(()=>{a(!1)},[a]),toggle:(0,v.useCallback)(()=>{a(!e)},[a,e])}}var af={};af={rangeOverflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.maxValue} \u0623\u0648 \u0642\u0628\u0644 \u0630\u0644\u0643.`,rangeReversed:"\u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0628\u062F\u0621 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0642\u0628\u0644 \u062A\u0627\u0631\u064A\u062E \u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621.",rangeUnderflow:t=>`\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0642\u064A\u0645\u0629 ${t.minValue} \u0623\u0648 \u0628\u0639\u062F \u0630\u0644\u0643.`,unavailableDate:"\u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629."};var rf={};rf={rangeOverflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.maxValue} \u0438\u043B\u0438 \u043F\u043E-\u0440\u0430\u043D\u043D\u0430.`,rangeReversed:"\u041D\u0430\u0447\u0430\u043B\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 \u043F\u0440\u0435\u0434\u0438 \u043A\u0440\u0430\u0439\u043D\u0430\u0442\u0430.",rangeUnderflow:t=>`\u0421\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0442\u0430 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0435 ${t.minValue} \u0438\u043B\u0438 \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.`,unavailableDate:"\u0418\u0437\u0431\u0440\u0430\u043D\u0430\u0442\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u043D\u0430."};var nf={};nf={rangeOverflow:t=>`Hodnota mus\xED b\xFDt ${t.maxValue} nebo d\u0159\xEDv\u011Bj\u0161\xED.`,rangeReversed:"Datum zah\xE1jen\xED mus\xED p\u0159edch\xE1zet datu ukon\u010Den\xED.",rangeUnderflow:t=>`Hodnota mus\xED b\xFDt ${t.minValue} nebo pozd\u011Bj\u0161\xED.`,unavailableDate:"Vybran\xE9 datum nen\xED k dispozici."};var lf={};lf={rangeOverflow:t=>`V\xE6rdien skal v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal v\xE6re f\xF8r slutdatoen.",rangeUnderflow:t=>`V\xE6rdien skal v\xE6re ${t.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilg\xE6ngelig."};var of={};of={rangeOverflow:t=>`Der Wert muss ${t.maxValue} oder fr\xFCher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:t=>`Der Wert muss ${t.minValue} oder sp\xE4ter sein.`,unavailableDate:"Das ausgew\xE4hlte Datum ist nicht verf\xFCgbar."};var sf={};sf={rangeOverflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.maxValue} \u03AE \u03C0\u03B1\u03BB\u03B1\u03B9\u03CC\u03C4\u03B5\u03C1\u03B7.`,rangeReversed:"\u0397 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7\u03C2 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BB\u03AE\u03BE\u03B7\u03C2.",rangeUnderflow:t=>`\u0397 \u03C4\u03B9\u03BC\u03AE \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${t.minValue} \u03AE \u03BC\u03B5\u03C4\u03B1\u03B3\u03B5\u03BD\u03AD\u03C3\u03C4\u03B5\u03C1\u03B7.`,unavailableDate:"\u0397 \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B7."};var df={};df={rangeUnderflow:t=>`Value must be ${t.minValue} or later.`,rangeOverflow:t=>`Value must be ${t.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var uf={};uf={rangeOverflow:t=>`El valor debe ser ${t.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalizaci\xF3n.",rangeUnderflow:t=>`El valor debe ser ${t.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var cf={};cf={rangeOverflow:t=>`V\xE4\xE4rtus peab olema ${t.maxValue} v\xF5i varasem.`,rangeReversed:"Alguskuup\xE4ev peab olema enne l\xF5ppkuup\xE4eva.",rangeUnderflow:t=>`V\xE4\xE4rtus peab olema ${t.minValue} v\xF5i hilisem.`,unavailableDate:"Valitud kuup\xE4ev pole saadaval."};var mf={};mf={rangeOverflow:t=>`Arvon on oltava ${t.maxValue} tai sit\xE4 aikaisempi.`,rangeReversed:"Aloitusp\xE4iv\xE4n on oltava ennen lopetusp\xE4iv\xE4\xE4.",rangeUnderflow:t=>`Arvon on oltava ${t.minValue} tai sit\xE4 my\xF6h\xE4isempi.`,unavailableDate:"Valittu p\xE4iv\xE4m\xE4\xE4r\xE4 ei ole k\xE4ytett\xE4viss\xE4."};var pf={};pf={rangeOverflow:t=>`La valeur doit \xEAtre ${t.maxValue} ou ant\xE9rieure.`,rangeReversed:"La date de d\xE9but doit \xEAtre ant\xE9rieure \xE0 la date de fin.",rangeUnderflow:t=>`La valeur doit \xEAtre ${t.minValue} ou ult\xE9rieure.`,unavailableDate:"La date s\xE9lectionn\xE9e n\u2019est pas disponible."};var hf={};hf={rangeOverflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.maxValue} \u05D0\u05D5 \u05DE\u05D5\u05E7\u05D3\u05DD \u05D9\u05D5\u05EA\u05E8.`,rangeReversed:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4 \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DC\u05E4\u05E0\u05D9 \u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E1\u05D9\u05D5\u05DD.",rangeUnderflow:t=>`\u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${t.minValue} \u05D0\u05D5 \u05DE\u05D0\u05D5\u05D7\u05E8 \u05D9\u05D5\u05EA\u05E8.`,unavailableDate:"\u05D4\u05EA\u05D0\u05E8\u05D9\u05DA \u05D4\u05E0\u05D1\u05D7\u05E8 \u05D0\u05D9\u05E0\u05D5 \u05D6\u05DE\u05D9\u05DF."};var ff={};ff={rangeOverflow:t=>`Vrijednost mora biti ${t.maxValue} ili ranije.`,rangeReversed:"Datum po\u010Detka mora biti prije datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrijednost mora biti ${t.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var gf={};gf={rangeOverflow:t=>`Az \xE9rt\xE9knek ${t.maxValue} vagy kor\xE1bbinak kell lennie.`,rangeReversed:"A kezd\u0151 d\xE1tumnak a befejez\u0151 d\xE1tumn\xE1l kor\xE1bbinak kell lennie.",rangeUnderflow:t=>`Az \xE9rt\xE9knek ${t.minValue} vagy k\xE9s\u0151bbinek kell lennie.`,unavailableDate:"A kiv\xE1lasztott d\xE1tum nem \xE9rhet\u0151 el."};var xf={};xf={rangeOverflow:t=>`Il valore deve essere ${t.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:t=>`Il valore deve essere ${t.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var vf={};vf={rangeOverflow:t=>`\u5024\u306F ${t.maxValue} \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u306F\u7D42\u4E86\u65E5\u3088\u308A\u524D\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",rangeUnderflow:t=>`\u5024\u306F ${t.minValue} \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002`,unavailableDate:"\u9078\u629E\u3057\u305F\u65E5\u4ED8\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002"};var yf={};yf={rangeOverflow:t=>`\uAC12\uC740 ${t.maxValue} \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,rangeReversed:"\uC2DC\uC791\uC77C\uC740 \uC885\uB8CC\uC77C \uC774\uC804\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.",rangeUnderflow:t=>`\uAC12\uC740 ${t.minValue} \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4.`,unavailableDate:"\uC120\uD0DD\uD55C \uB0A0\uC9DC\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."};var bf={};bf={rangeOverflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.maxValue} arba ankstesn\u0117.`,rangeReversed:"Prad\u017Eios data turi b\u016Bti ankstesn\u0117 nei pabaigos data.",rangeUnderflow:t=>`Reik\u0161m\u0117 turi b\u016Bti ${t.minValue} arba naujesn\u0117.`,unavailableDate:"Pasirinkta data nepasiekiama."};var wf={};wf={rangeOverflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.maxValue} vai agr\u0101kai.`,rangeReversed:"S\u0101kuma datumam ir j\u0101b\u016Bt pirms beigu datuma.",rangeUnderflow:t=>`V\u0113rt\u012Bbai ir j\u0101b\u016Bt ${t.minValue} vai v\u0113l\u0101kai.`,unavailableDate:"Atlas\u012Btais datums nav pieejams."};var Df={};Df={rangeOverflow:t=>`Verdien m\xE5 v\xE6re ${t.maxValue} eller tidligere.`,rangeReversed:"Startdatoen m\xE5 v\xE6re f\xF8r sluttdatoen.",rangeUnderflow:t=>`Verdien m\xE5 v\xE6re ${t.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var jf={};jf={rangeOverflow:t=>`Waarde moet ${t.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:t=>`Waarde moet ${t.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var Cf={};Cf={rangeOverflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.maxValue} lub wcze\u015Bniejsz\u0105.`,rangeReversed:"Data rozpocz\u0119cia musi by\u0107 wcze\u015Bniejsza ni\u017C data zako\u0144czenia.",rangeUnderflow:t=>`Warto\u015B\u0107 musi mie\u0107 warto\u015B\u0107 ${t.minValue} lub p\xF3\u017Aniejsz\u0105.`,unavailableDate:"Wybrana data jest niedost\u0119pna."};var Sf={};Sf={rangeOverflow:t=>`O valor deve ser ${t.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior \xE0 data final.",rangeUnderflow:t=>`O valor deve ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var kf={};kf={rangeOverflow:t=>`O valor tem de ser ${t.maxValue} ou anterior.`,rangeReversed:"A data de in\xEDcio deve ser anterior \xE0 data de fim.",rangeUnderflow:t=>`O valor tem de ser ${t.minValue} ou posterior.`,unavailableDate:"Data selecionada indispon\xEDvel."};var Nf={};Nf={rangeOverflow:t=>`Valoarea trebuie s\u0103 fie ${t.maxValue} sau anterioar\u0103.`,rangeReversed:"Data de \xEEnceput trebuie s\u0103 fie anterioar\u0103 datei de sf\xE2r\u0219it.",rangeUnderflow:t=>`Valoarea trebuie s\u0103 fie ${t.minValue} sau ulterioar\u0103.`,unavailableDate:"Data selectat\u0103 nu este disponibil\u0103."};var Ef={};Ef={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u043F\u043E\u0437\u0436\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0434\u043E\u043B\u0436\u043D\u0430 \u043F\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u0442\u0435 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043D\u0435 \u0440\u0430\u043D\u044C\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u0430\u044F \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var _f={};_f={rangeOverflow:t=>`Hodnota mus\xED by\u0165 ${t.maxValue} alebo skor\u0161ia.`,rangeReversed:"D\xE1tum za\u010Diatku mus\xED by\u0165 skor\u0161\xED ako d\xE1tum konca.",rangeUnderflow:t=>`Hodnota mus\xED by\u0165 ${t.minValue} alebo neskor\u0161ia.`,unavailableDate:"Vybrat\xFD d\xE1tum je nedostupn\xFD."};var Rf={};Rf={rangeOverflow:t=>`Vrednost mora biti ${t.maxValue} ali starej\u0161a.`,rangeReversed:"Za\u010Detni datum mora biti pred kon\u010Dnim datumom.",rangeUnderflow:t=>`Vrednost mora biti ${t.minValue} ali novej\u0161a.`,unavailableDate:"Izbrani datum ni na voljo."};var Tf={};Tf={rangeOverflow:t=>`Vrednost mora da bude ${t.maxValue} ili starija.`,rangeReversed:"Datum po\u010Detka mora biti pre datuma zavr\u0161etka.",rangeUnderflow:t=>`Vrednost mora da bude ${t.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Af={};Af={rangeOverflow:t=>`V\xE4rdet m\xE5ste vara ${t.maxValue} eller tidigare.`,rangeReversed:"Startdatumet m\xE5ste vara f\xF6re slutdatumet.",rangeUnderflow:t=>`V\xE4rdet m\xE5ste vara ${t.minValue} eller senare.`,unavailableDate:"Det valda datumet \xE4r inte tillg\xE4ngligt."};var If={};If={rangeOverflow:t=>`De\u011Fer, ${t.maxValue} veya \xF6ncesi olmal\u0131d\u0131r.`,rangeReversed:"Ba\u015Flang\u0131\xE7 tarihi biti\u015F tarihinden \xF6nce olmal\u0131d\u0131r.",rangeUnderflow:t=>`De\u011Fer, ${t.minValue} veya sonras\u0131 olmal\u0131d\u0131r.`,unavailableDate:"Se\xE7ilen tarih kullan\u0131lam\u0131yor."};var Pf={};Pf={rangeOverflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435 ${t.maxValue}.`,rangeReversed:"\u0414\u0430\u0442\u0430 \u043F\u043E\u0447\u0430\u0442\u043A\u0443 \u043C\u0430\u0454 \u043F\u0435\u0440\u0435\u0434\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u0442\u0456 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u044F.",rangeUnderflow:t=>`\u0417\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0435 \u0440\u0430\u043D\u0456\u0448\u0435 ${t.minValue}.`,unavailableDate:"\u0412\u0438\u0431\u0440\u0430\u043D\u0430 \u0434\u0430\u0442\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430."};var Mf={};Mf={rangeOverflow:t=>`\u503C\u5FC5\u987B\u662F ${t.maxValue} \u6216\u66F4\u65E9\u65E5\u671F\u3002`,rangeReversed:"\u5F00\u59CB\u65E5\u671F\u5FC5\u987B\u65E9\u4E8E\u7ED3\u675F\u65E5\u671F\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u987B\u662F ${t.minValue} \u6216\u66F4\u665A\u65E5\u671F\u3002`,unavailableDate:"\u6240\u9009\u65E5\u671F\u4E0D\u53EF\u7528\u3002"};var Ff={};Ff={rangeOverflow:t=>`\u503C\u5FC5\u9808\u662F ${t.maxValue} \u6216\u66F4\u65E9\u3002`,rangeReversed:"\u958B\u59CB\u65E5\u671F\u5FC5\u9808\u5728\u7D50\u675F\u65E5\u671F\u4E4B\u524D\u3002",rangeUnderflow:t=>`\u503C\u5FC5\u9808\u662F ${t.minValue} \u6216\u66F4\u665A\u3002`,unavailableDate:"\u6240\u9078\u65E5\u671F\u7121\u6CD5\u4F7F\u7528\u3002"};var Vf={};Vf={"ar-AE":af,"bg-BG":rf,"cs-CZ":nf,"da-DK":lf,"de-DE":of,"el-GR":sf,"en-US":df,"es-ES":uf,"et-EE":cf,"fi-FI":mf,"fr-FR":pf,"he-IL":hf,"hr-HR":ff,"hu-HU":gf,"it-IT":xf,"ja-JP":vf,"ko-KR":yf,"lt-LT":bf,"lv-LV":wf,"nb-NO":Df,"nl-NL":jf,"pl-PL":Cf,"pt-BR":Sf,"pt-PT":kf,"ro-RO":Nf,"ru-RU":Ef,"sk-SK":_f,"sl-SI":Rf,"sr-SP":Tf,"sv-SE":Af,"tr-TR":If,"uk-UA":Pf,"zh-CN":Mf,"zh-TW":Ff};function h2(t){return t&&t.__esModule?t.default:t}var zf=new Zl(h2(Vf));function Of(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function Ti(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,l=t!=null&&e!=null&&t.compare(e)<0,o=t!=null&&(r==null?void 0:r(t))||!1,d=i||l||o,u=[];if(d){let c=Of(),m=new FT(c,Zl.getGlobalDictionaryForPackage("@react-stately/datepicker")||zf),p=new Kt(c,pa({},n)),h=p.resolvedOptions().timeZone;l&&e!=null&&u.push(m.format("rangeUnderflow",{minValue:p.format(e.toDate(h))})),i&&a!=null&&u.push(m.format("rangeOverflow",{maxValue:p.format(a.toDate(h))})),o&&u.push(m.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:l,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function f2(t,e,a,r,n){let i=Gl(Ti((t==null?void 0:t.start)??null,e,a,r,n),Ti((t==null?void 0:t.end)??null,e,a,r,n));if((t==null?void 0:t.end)!=null&&t.start!=null&&t.end.compare(t.start)<0){let l=Zl.getGlobalDictionaryForPackage("@react-stately/datepicker")||zf;i=Gl(i,{isInvalid:!0,validationErrors:[l.getStringForLocale("rangeReversed",Of())],validationDetails:{...MT,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var g2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},x2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function pa(t,e){t={...e.shouldForceLeadingZeros?x2:g2,...t};let a=e.granularity||"minute",r=Object.keys(t),n=r.indexOf(e.maxGranularity??"year");n<0&&(n=0);let i=r.indexOf(a);if(i<0&&(i=2),n>i)throw Error("maxGranularity must be greater than granularity");let l=r.slice(n,i+1).reduce((o,d)=>(o[d]=t[d],o),{});return e.hourCycle!=null&&(l.hour12=e.hourCycle===12),l.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(l.timeZoneName="short"),e.showEra&&n===0&&(l.era="short"),l}function Dr(t){return t&&"hour"in t?t:new cw}function $f(t,e){if(t===null)return null;if(t)return Fe(t,e)}function vn(t,e,a,r){if(t)return $f(t,a);let n=Fe(Xc(r??xi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?mt(n):r?n:qt(n)}function ss(t,e){let a=t&&"timeZone"in t?t.timeZone:void 0,r=t&&"minute"in t?"minute":"day";if(t&&e&&!(e in t))throw Error("Invalid granularity "+e+" for value "+t.toString());let[n,i]=(0,v.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let l=t?a:n[1];return[e,l]}function v2(t){let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,v.useState)(a),i=a||t.placeholderValue||null,[l,o]=ss(i,t.granularity),d=a==null?null:a.toDate(o??"UTC"),u=l==="hour"||l==="minute"||l==="second",c=t.shouldCloseOnSelect??!0,[m,p]=(0,v.useState)(null),[h,g]=(0,v.useState)(null);if(a&&(m=a,"hour"in a&&(h=a)),i&&!(l in i))throw Error("Invalid granularity "+l+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",x=(0,v.useMemo)(()=>({granularity:l,timeZone:o,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[l,t.hourCycle,t.shouldForceLeadingZeros,o,t.hideTimeZone,f]),{minValue:b,maxValue:w,isDateUnavailable:D}=t,j=(0,v.useMemo)(()=>Ti(a,b,w,D,x),[a,b,w,D,x]),S=Fu({...t,value:a,builtinValidation:j}),N=S.displayValidation.isInvalid,k=t.validationState||(N?"invalid":null),y=(E,T)=>{r("timeZone"in T?T.set(mt(E)):qt(E,T)),p(null),g(null),S.commitValidation()},C=E=>{let T=typeof c=="function"?c():c;u?h||T?y(E,h||Dr(t.defaultValue||t.placeholderValue)):p(E):(r(E),S.commitValidation()),T&&e.setOpen(!1)},_=E=>{m&&E?y(m,E):g(E)};return{...S,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:m,timeValue:h,setDateValue:C,setTimeValue:_,granularity:l,hasTime:u,...e,setOpen(E){!E&&!a&&m&&u&&y(m,h||Dr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:k,isInvalid:N,formatValue(E,T){return d?new Kt(E,pa(T,x)).format(d):""},getDateFormatter(E,T){return new Kt(E,pa({},{...x,...T}))}}}var y2=new Zl({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"\u12D3\u12D3\u12D3\u12D3",month:"\u121A\u121C",day:"\u1240\u1240"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"\u0633\u0646\u0629",month:"\u0634\u0647\u0631",day:"\u064A\u0648\u0645"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bg:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},bn:{year:"yyyy",month:"\u09AE\u09BF\u09AE\u09BF",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"\u0633\u0627\u06B5",month:"\u0645\u0627\u0646\u06AF",day:"\u0695\u06C6\u0698"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"\u017A\u017A"},el:{year:"\u03B5\u03B5\u03B5\u03B5",month:"\u03BC\u03BC",day:"\u03B7\u03B7"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"\u0633\u0627\u0644",month:"\u0645\u0627\u0647",day:"\u0631\u0648\u0632"},ff:{year:"hhhh",month:"ll",day:"\xF1\xF1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"\u05E9\u05E0\u05D4",month:"\u05D7\u05D5\u05D3\u05E9",day:"\u05D9\u05D5\u05DD"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xE9\xE9\xE9\xE9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"\u5E74",month:"\u6708",day:"\u65E5"},ka:{year:"\u10EC\u10EC\u10EC\u10EC",month:"\u10D7\u10D7",day:"\u10E0\u10E0"},kk:{year:"\u0436\u0436\u0436\u0436",month:"\u0430\u0430",day:"\u043A\u043A"},kn:{year:"\u0CB5\u0CB5\u0CB5\u0CB5",month:"\u0CAE\u0CBF\u0CAE\u0CC0",day:"\u0CA6\u0CBF\u0CA6\u0CBF"},ko:{year:"\uC5F0\uB3C4",month:"\uC6D4",day:"\uC77C"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"\u0E9B\u0E9B\u0E9B\u0E9B",month:"\u0E94\u0E94",day:"\u0EA7\u0EA7"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"\u0D35\u0D7C\u0D37\u0D02",month:"\u0D2E\u0D3E\u0D38\u0D02",day:"\u0D24\u0D40\u0D2F\u0D24\u0D3F"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},no:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"\u0433\u0433\u0433\u0433",month:"\u043C\u043C",day:"\u0434\u0434"},sv:{year:"\xE5\xE5\xE5\xE5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"\u0441\u0441\u0441\u0441",month:"\u043C\u043C",day:"\u0440\u0440"},th:{year:"\u0E1B\u0E1B\u0E1B\u0E1B",month:"\u0E14\u0E14",day:"\u0E27\u0E27"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"\u0440\u0440\u0440\u0440",month:"\u043C\u043C",day:"\u0434\u0434"},"zh-CN":{year:"\u5E74",month:"\u6708",day:"\u65E5"},"zh-TW":{year:"\u5E74",month:"\u6708",day:"\u65E5"}},"en");function b2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?y2.getStringForLocale(t,a):"\u2013\u2013"}var Ai={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Lf={year:5,month:2,day:7,hour:2,minute:15,second:15},Bf={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function w2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:l=!1,minValue:o,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[m,p]=ss(c,t.granularity),h=p||"UTC";if(c&&!(m in c))throw Error("Invalid granularity "+m+" for value "+c.toString());let g=(0,v.useMemo)(()=>new Kt(e),[e]),f=(0,v.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[x,b]=ur(t.value,t.defaultValue??null,t.onChange),[w]=(0,v.useState)(x),D=(0,v.useMemo)(()=>$f(x,f)??null,[x,f]),[j,S]=(0,v.useState)(()=>vn(t.placeholderValue,m,f,p)),N=D||j,k=f.identifier==="gregory"&&N.era==="BC",y=(0,v.useMemo)(()=>({granularity:m,maxGranularity:t.maxGranularity??"year",timeZone:p,hideTimeZone:r,hourCycle:t.hourCycle,showEra:k,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,m,t.hourCycle,t.shouldForceLeadingZeros,p,r,k]),C=(0,v.useMemo)(()=>pa({},y),[y]),_=(0,v.useMemo)(()=>new Kt(e,C),[e,C]),E=(0,v.useMemo)(()=>_.resolvedOptions(),[_]),T=(0,v.useMemo)(()=>_.formatToParts(new Date).filter(Z=>Ai[Z.type]).reduce((Z,B)=>(Z[Bf[B.type]||B.type]=!0,Z),{}),[_]),[P,R]=(0,v.useState)(()=>t.value||t.defaultValue?{...T}:{}),M=(0,v.useRef)(null),I=(0,v.useRef)(f);(0,v.useEffect)(()=>{fi(f,I.current)||(I.current=f,S(Z=>Object.keys(P).length>0?Fe(Z,f):vn(t.placeholderValue,m,f,p)))},[f,m,P,p,t.placeholderValue]),x&&Object.keys(P).length<Object.keys(T).length&&(P={...T},R(P)),x==null&&Object.keys(P).length===Object.keys(T).length&&(P={},R(P),S(vn(t.placeholderValue,m,f,p)));let V=D&&Object.keys(P).length>=Object.keys(T).length?D:j,A=Z=>{if(t.isDisabled||t.isReadOnly)return;let B=Object.keys(P),re=Object.keys(T);Z==null?(b(null),S(vn(t.placeholderValue,m,f,p)),R({})):B.length===0&&M.current==null||B.length>=re.length||B.length===re.length-1&&T.dayPeriod&&!P.dayPeriod&&M.current!=="dayPeriod"?(B.length===0&&(P={...T},R(P)),Z=Fe(Z,(c==null?void 0:c.calendar)||new gt),b(Z)):S(Z),M.current=null},O=(0,v.useMemo)(()=>V.toDate(h),[V,h]),z=(0,v.useMemo)(()=>D2(O,P,_,E,V,f,e,m),[O,P,_,E,V,f,e,m]);T.era&&P.year&&!P.era?(P.era=!0,R({...P})):!T.era&&P.era&&(delete P.era,R({...P}));let L=Z=>{P[Z]=!0,Z==="year"&&T.era&&(P.era=!0),R({...P})},G=(Z,B)=>{if(P[Z])A(j2(V,Z,B,E));else{L(Z);let re=Object.keys(P),te=Object.keys(T);(re.length>=te.length||re.length===te.length-1&&T.dayPeriod&&!P.dayPeriod)&&A(V)}},Q=(0,v.useMemo)(()=>Ti(x,o,d,u,y),[x,o,d,u,y]),ae=Fu({...t,value:x,builtinValidation:Q}),ce=ae.displayValidation.isInvalid,le=t.validationState||(ce?"invalid":null);return{...ae,value:D,defaultValue:t.defaultValue??w,dateValue:O,calendar:f,setValue:A,segments:z,dateFormatter:_,validationState:le,isInvalid:ce,granularity:m,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:l,increment(Z){G(Z,1)},decrement(Z){G(Z,-1)},incrementPage(Z){G(Z,Lf[Z]||1)},decrementPage(Z){G(Z,-(Lf[Z]||1))},setSegment(Z,B){L(Z),A(C2(V,Z,B,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let Z=Object.keys(P),B=Object.keys(T);Z.length===B.length-1&&T.dayPeriod&&!P.dayPeriod&&(P={...T},R(P),A(V.copy()))},clearSegment(Z){delete P[Z],M.current=Z,R({...P});let B=vn(t.placeholderValue,m,f,p),re=V;if(Z==="dayPeriod"&&"hour"in V&&"hour"in B){let te=V.hour>=12,ie=B.hour>=12;te&&!ie?re=V.set({hour:V.hour-12}):!te&&ie&&(re=V.set({hour:V.hour+12}))}else Z==="hour"&&"hour"in V&&V.hour>=12&&P.dayPeriod?re=V.set({hour:B.hour+12}):Z in V&&(re=V.set({[Z]:B[Z]}));b(null),A(re)},formatValue(Z){return D?new Kt(e,pa(Z,y)).format(O):""},getDateFormatter(Z,B){return new Kt(Z,pa({},{...y,...B}))}}}function D2(t,e,a,r,n,i,l,o){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let m of u){let p=Bf[m.type]||m.type,h=Ai[p];p==="era"&&i.getEras().length===1&&(h=!1);let g=Ai[p]&&!e[p],f=Ai[p]?b2(p,m.value,l):null,x={type:p,text:g?f:m.value,...Ii(n,p,r),isPlaceholder:g,placeholder:f,isEditable:h};p==="hour"?(c.push({type:"literal",text:"\u2066",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(x),p===o&&c.push({type:"literal",text:"\u2069",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(p)&&p===o?(c.push(x),c.push({type:"literal",text:"\u2069",...Ii(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(x)}return c}function Ii(t,e,a){switch(e){case"era":{let r=t.calendar.getEras();return{value:r.indexOf(t.era),minValue:0,maxValue:r.length-1}}case"year":return{value:t.year,minValue:1,maxValue:t.calendar.getYearsInEra(t)};case"month":return{value:t.month,minValue:Bb(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:Hb(t),maxValue:t.calendar.getDaysInMonth(t)}}if("hour"in t)switch(e){case"dayPeriod":return{value:t.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(a.hour12){let r=t.hour>=12;return{value:t.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:t.hour,minValue:0,maxValue:23};case"minute":return{value:t.minute,minValue:0,maxValue:59};case"second":return{value:t.second,minValue:0,maxValue:59}}return{}}function j2(t,e,a,r){switch(e){case"era":case"year":case"month":case"day":return t.cycle(e,a,{round:e==="year"})}if("hour"in t)switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return t.set({hour:i?n-12:n+12})}case"hour":case"minute":case"second":return t.cycle(e,a,{round:e!=="hour",hourCycle:r.hour12?12:24})}throw Error("Unknown segment: "+e)}function C2(t,e,a,r){switch(e){case"day":case"month":case"year":case"era":return t.set({[e]:a})}if("hour"in t&&typeof a=="number")switch(e){case"dayPeriod":{let n=t.hour,i=n>=12;return a>=12===i?t:t.set({hour:i?n-12:n+12})}case"hour":if(r.hour12){let n=t.hour>=12;!n&&a===12&&(a=0),n&&a<12&&(a+=12)}case"minute":case"second":return t.set({[e]:a})}throw Error("Unknown segment: "+e)}function S2(t){var P,R;let e=os(t),[a,r]=ur(t.value,t.defaultValue||null,t.onChange),[n]=(0,v.useState)(a),[i,l]=(0,v.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},l(i));let o=a||i,d=M=>{o=M||{start:null,end:null},l(o),Xa(o)?r(o):r(null)},[u,c]=ss((o==null?void 0:o.start)||(o==null?void 0:o.end)||t.placeholderValue||null,t.granularity),m=u==="hour"||u==="minute"||u==="second",p=t.shouldCloseOnSelect??!0,[h,g]=(0,v.useState)(null),[f,x]=(0,v.useState)(null);o&&Xa(o)&&(h=o,"hour"in o.start&&(f=o));let b=(M,I)=>{d({start:"timeZone"in I.start?I.start.set(mt(M.start)):qt(M.start,I.start),end:"timeZone"in I.end?I.end.set(mt(M.end)):qt(M.end,I.end)}),g(null),x(null),_.commitValidation()},w=M=>{let I=typeof p=="function"?p():p;m?Xa(M)&&(I||f!=null&&f.start&&(f!=null&&f.end))?b(M,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}):g(M):Xa(M)?(d(M),_.commitValidation()):g(M),I&&e.setOpen(!1)},D=M=>{Xa(h)&&Xa(M)?b(h,M):x(M)},j=((P=o==null?void 0:o.start)==null?void 0:P.calendar.identifier)==="gregory"&&o.start.era==="BC"||((R=o==null?void 0:o.end)==null?void 0:R.calendar.identifier)==="gregory"&&o.end.era==="BC",S=(0,v.useMemo)(()=>({granularity:u,timeZone:c,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:j}),[u,t.hourCycle,t.shouldForceLeadingZeros,c,t.hideTimeZone,j]),{minValue:N,maxValue:k,isDateUnavailable:y}=t,C=(0,v.useMemo)(()=>f2(o,N,k,y,S),[o,N,k,y,S]),_=Fu({...t,value:a,name:(0,v.useMemo)(()=>[t.startName,t.endName].filter(M=>M!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,T=t.validationState||(E?"invalid":null);return{..._,value:o,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:m,setDate(M,I){w(M==="start"?{start:I,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:I})},setTime(M,I){D(M==="start"?{start:I,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:I})},setDateTime(M,I){d(M==="start"?{start:I,end:(o==null?void 0:o.end)??null}:{start:(o==null?void 0:o.start)??null,end:I})},setDateRange:w,setTimeRange:D,...e,setOpen(M){!M&&!(o!=null&&o.start&&(o!=null&&o.end))&&Xa(h)&&m&&b(h,{start:(f==null?void 0:f.start)||Dr(t.placeholderValue),end:(f==null?void 0:f.end)||Dr(t.placeholderValue)}),e.setOpen(M)},validationState:T,isInvalid:E,formatValue(M,I){if(!o||!o.start||!o.end)return null;let V="timeZone"in o.start?o.start.timeZone:void 0,A=t.granularity||(o.start&&"minute"in o.start?"minute":"day"),O="timeZone"in o.end?o.end.timeZone:void 0,z=t.granularity||(o.end&&"minute"in o.end?"minute":"day"),L=pa(I,{granularity:A,timeZone:V,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:o.start.calendar.identifier==="gregory"&&o.start.era==="BC"||o.end.calendar.identifier==="gregory"&&o.end.era==="BC"}),G=o.start.toDate(V||"UTC"),Q=o.end.toDate(O||"UTC"),ae=new Kt(M,L),ce;if(V===O&&A===z&&o.start.compare(o.end)!==0){try{let le=ae.formatRangeToParts(G,Q),Z=-1;for(let te=0;te<le.length;te++){let ie=le[te];if(ie.source==="shared"&&ie.type==="literal")Z=te;else if(ie.source==="endRange")break}let B="",re="";for(let te=0;te<le.length;te++)te<Z?B+=le[te].value:te>Z&&(re+=le[te].value);return{start:B,end:re}}catch{}ce=ae}else ce=new Kt(M,pa(I,{granularity:z,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ae.format(G),end:ce.format(Q)}},getDateFormatter(M,I){return new Kt(M,pa({},{...S,...I}))}}}function Xa(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var Pi=(0,v.createContext)(null),Mi=(0,v.createContext)(null),Fi=(0,v.createContext)(null),yn=(0,v.createContext)(null),k2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,Pi);let{locale:a}=qe(),r=Xh({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Gw(t,r),u=Wa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=st(t,{global:!0});return v.createElement("div",{...Xe(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},v.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[Vl,{"aria-hidden":!0,level:2,children:d}],[Fi,r],[Pi,t],[Gn,{slots:{errorMessage:o}}]]},v.createElement(Kn,null,v.createElement("h2",null,n["aria-label"])),u.children,v.createElement(Kn,null,v.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),N2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,Mi);let{locale:a}=qe(),r=p2({...t,locale:a,createCalendar:t.createCalendar||Go}),{calendarProps:n,prevButtonProps:i,nextButtonProps:l,errorMessageProps:o,title:d}=Jw(t,r,e),u=Wa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=st(t,{global:!0});return v.createElement("div",{...Xe(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},v.createElement(Ur,{values:[[Zr,{slots:{previous:i,next:l}}],[Vl,{"aria-hidden":!0,level:2,children:d}],[yn,r],[Mi,t],[Gn,{slots:{errorMessage:o}}]]},v.createElement(Kn,null,v.createElement("h2",null,n["aria-label"])),u.children,v.createElement(Kn,null,v.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),Vi=(0,v.createContext)(null),E2=(0,v.forwardRef)(function(t,e){let a=(0,v.useContext)(Fi),r=(0,v.useContext)(yn),n=eo(Pi),i=eo(Mi),l=a??r,o=l.visibleRange.start;t.offset&&(o=o.add(t.offset));let d=(n==null?void 0:n.firstDayOfWeek)??(i==null?void 0:i.firstDayOfWeek),{gridProps:u,headerProps:c,weekDays:m,weeksInMonth:p}=Qw({startDate:o,endDate:vi(o),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},l),h=st(t,{global:!0});return v.createElement(Vi.Provider,{value:{headerProps:c,weekDays:m,startDate:o,weeksInMonth:p}},v.createElement("table",{...Xe(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?v.createElement(v.Fragment,null,v.createElement(Hf,null,g=>v.createElement(Wf,null,g)),v.createElement(Uf,null,t.children)):t.children))});function _2(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:l}=(0,v.useContext)(Vi),o=st(t,{global:!0});return v.createElement("thead",{...Xe(o,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},v.createElement("tr",null,l.map((d,u)=>v.cloneElement(a(d),{key:u}))))}var Hf=(0,v.forwardRef)(_2);function R2(t,e){let{children:a,style:r,className:n}=t,i=st(t,{global:!0});return v.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Wf=(0,v.forwardRef)(R2);function T2(t,e){let{children:a,style:r,className:n}=t,i=(0,v.useContext)(Fi),l=(0,v.useContext)(yn),o=i??l,{startDate:d,weeksInMonth:u}=(0,v.useContext)(Vi),c=st(t,{global:!0});return v.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(m=>v.createElement("tr",{key:m},o.getDatesInWeek(m,d).map((p,h)=>p?v.cloneElement(a(p),{key:h}):v.createElement("td",{key:h})))))}var Uf=(0,v.forwardRef)(T2),A2=(0,v.forwardRef)(function({date:t,...e},a){let r=(0,v.useContext)(Fi),n=(0,v.useContext)(yn),i=r??n,{startDate:l}=(0,v.useContext)(Vi)??{startDate:i.visibleRange.start},o=!Ob(l,t),d=Qc(t,i.timeZone),u=(0,v.useRef)(null),{cellProps:c,buttonProps:m,...p}=e2({date:t,isOutsideMonth:o},i,u),{hoverProps:h,isHovered:g}=yv({...e,isDisabled:p.isDisabled}),{focusProps:f,isFocusVisible:x}=ql();x&&(x=p.isFocused);let b=!1,w=!1;"highlightedRange"in i&&i.highlightedRange&&(b=Ue(t,i.highlightedRange.start),w=Ue(t,i.highlightedRange.end));let D=Wa({...e,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:o,isFocusVisible:x,isSelectionStart:b,isSelectionEnd:w,isToday:d,...p}}),j={"data-focused":p.isFocused||void 0,"data-hovered":g||void 0,"data-pressed":p.isPressed||void 0,"data-unavailable":p.isUnavailable||void 0,"data-disabled":p.isDisabled||void 0,"data-focus-visible":x||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":o||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":b||void 0,"data-selection-end":w||void 0,"data-invalid":p.isInvalid||void 0,"data-today":d||void 0},S=st(e,{global:!0});return v.createElement("td",{...c,ref:a},v.createElement("div",{...Xe(S,m,f,h,j,D),ref:u}))}),I2=(0,v.createContext)({placement:"bottom"}),ds=(0,v.createContext)(null),Kf=(0,v.createContext)(null),P2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,ds);let a=(0,v.useContext)(zi),r=os(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=Nb(e,n.isOpen)||t.isExiting||!1,l=PT(),{direction:o}=qe();if(l){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),v.createElement(v.Fragment,null,d)}return n&&!n.isOpen&&!i?null:v.createElement(M2,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:o})});function M2({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,v.useRef)(null),l=(0,v.useRef)(null),o=(0,v.useContext)(Kf),d=o&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:m,placement:p,triggerAnchorPoint:h}=Uw({...n,offset:n.offset??8,arrowRef:i,groupRef:d?o:l},t),g=n.popoverRef,f=kb(g,!!p)||n.isEntering||!1,x=Wa({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:p,isEntering:f,isExiting:e}}),b=!n.isNonModal||n.trigger==="SubmenuTrigger",[w,D]=(0,v.useState)(!1);Da(()=>{g.current&&D(b&&!g.current.querySelector("[role=dialog]"))},[g,b]),(0,v.useEffect)(()=>{w&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&Mu(g.current)},[w,g,n.trigger]);let j=(0,v.useMemo)(()=>{let k=x.children;if(r)for(let y of r)k=v.createElement(y.Provider,{value:null},k);return k},[x.children,r]),S={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...x.style},N=v.createElement("div",{...Xe(st(n,{global:!0}),u),...x,role:w?"dialog":void 0,tabIndex:w?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:S,dir:n.dir,"data-trigger":n.trigger,"data-placement":p,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&v.createElement(Rp,{onDismiss:t.close}),v.createElement(I2.Provider,{value:{...m,placement:p,ref:i}},j),v.createElement(Rp,{onDismiss:t.close}));return d?v.createElement(Ap,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a??(o==null?void 0:o.current)??void 0},N):v.createElement(Ap,{...n,shouldContainFocus:w,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&v.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),v.createElement("div",{ref:l,style:{display:"contents"}},v.createElement(Kf.Provider,{value:l},N)))}var us=(0,v.createContext)(null),zi=(0,v.createContext)(null),F2=(0,v.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ua(t,e,us);let{dialogProps:r,titleProps:n}=m2({...t,"aria-labelledby":a},e),i=(0,v.useContext)(zi);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let l=Wa({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),o=st(t,{global:!0});return v.createElement("section",{...Xe(o,l,r),ref:e,slot:t.slot||void 0},v.createElement(Ur,{values:[[Vl,{slots:{[vv]:{},title:{...n,level:2}}}],[Zr,{slots:{[vv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},l.children))}),V2=["day","month","year"],z2={hour:1,minute:2,second:3};function O2(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=R_({style:{position:"fixed",top:0,left:0}}),l=60;e.granularity==="second"?l=1:e.granularity==="hour"&&(l=3600);let o=e.value==null?"":e.value.toString(),d=e.granularity==="day"?"date":"datetime-local",u=["hour","minute","second"],c=0;return u.includes(e.granularity)&&(c=z2[e.granularity],u=u.slice(0,c)),{containerProps:{...i,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{tabIndex:-1,autoComplete:a,disabled:r,type:d,form:"",name:n,step:l,value:o,onChange:m=>{let p=m.target.value.toString();if(p)try{let h=wi(p);if(e.granularity==="day"&&(h=ka(p)),"setSegment"in e)for(let g in h)V2.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function $2(t){let{state:e}=t,{containerProps:a,inputProps:r}=O2({...t},e);return v.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},v.createElement("input",r))}var cs=(0,v.createContext)(null),Oi=(0,v.createContext)(null),ms=(0,v.createContext)(null),L2=(0,v.forwardRef)(function(t,e){let a=(0,v.useContext)(Oi),r=(0,v.useContext)(ms);return a||r?v.createElement(Zf,{...t,ref:e}):v.createElement(B2,{...t,ref:e})}),B2=(0,v.forwardRef)((t,e)=>{let[a,r]=Ua({slot:t.slot},e,cs),{locale:n}=qe(),i=w2({...a,locale:n,createCalendar:Go}),l=(0,v.useRef)(null),{fieldProps:o,inputProps:d}=a2({...a,inputRef:l},i,r);return v.createElement(Ur,{values:[[Oi,i],[qT,{...d,ref:l}],[to,{...o,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},v.createElement(Zf,t))}),Zf=(0,v.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,v.useContext)(Oi),i=(0,v.useContext)(ms),l=n??i;return v.createElement(v.Fragment,null,v.createElement(WT,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((o,d)=>(0,v.cloneElement)(r(o),{key:d}))),v.createElement(LT,null))}),H2=(0,v.forwardRef)(function({segment:t,...e},a){let r=(0,v.useContext)(Oi),n=(0,v.useContext)(ms),i=r??n,l=ZT(a),{segmentProps:o}=s2(t,i,l),{focusProps:d,isFocused:u,isFocusVisible:c}=ql(),{hoverProps:m,isHovered:p}=yv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Wa({...e,values:{...t,isReadOnly:i.isReadOnly,isInvalid:i.isInvalid,isDisabled:i.isDisabled,isHovered:p,isFocused:u,isFocusVisible:c},defaultChildren:t.text,defaultClassName:"react-aria-DateSegment"});return v.createElement("span",{...Xe(st(e,{global:!0}),o,d,m),...h,style:o.style,ref:l,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":i.isInvalid||void 0,"data-readonly":i.isReadOnly||void 0,"data-disabled":i.isDisabled||void 0,"data-type":t.type,"data-hovered":p||void 0,"data-focused":u||void 0,"data-focus-visible":c||void 0})}),W2=(0,v.createContext)(null),U2=(0,v.createContext)(null),K2=(0,v.createContext)(null),Z2=(0,v.createContext)(null),qf=[to,Zr,Lu,Gn],q2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,W2);let{validationBehavior:a}=eo(Dv)||{},r=t.validationBehavior??a??"native",n=v2({...t,validationBehavior:r}),i=(0,v.useRef)(null),[l,o]=wv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:m,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:f,...x}=n2({...jv(t),label:o,validationBehavior:r},n,i),[b,w]=(0,v.useState)(null);ci({ref:i,onResize:(0,v.useCallback)(()=>{i.current&&w(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:S}=ql({within:!0}),N=Wa({...t,values:{state:n,isFocusWithin:j,isFocusVisible:S,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),k=st(t,{global:!0});return delete k.id,v.createElement(Ur,{values:[[K2,n],[to,{...d,ref:i,isInvalid:n.isInvalid}],[cs,c],[Zr,{...m,isPressed:n.isOpen}],[Lu,{...u,ref:l,elementType:"span"}],[Pi,h],[zi,n],[ds,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:qf}],[us,p],[Gn,{slots:{description:g,errorMessage:f}}],[Cv,x]]},v.createElement("div",{...Xe(k,N,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":S||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),v.createElement($2,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),Y2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,U2);let{validationBehavior:a}=eo(Dv)||{},r=t.validationBehavior??a??"native",n=S2({...t,validationBehavior:r}),i=(0,v.useRef)(null),[l,o]=wv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:m,buttonProps:p,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:x,...b}=c2({...jv(t),label:o,validationBehavior:r},n,i),[w,D]=(0,v.useState)(null);ci({ref:i,onResize:(0,v.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:S,isFocusVisible:N}=ql({within:!0}),k=Wa({...t,values:{state:n,isFocusWithin:S,isFocusVisible:N,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=st(t,{global:!0});return delete y.id,v.createElement(Ur,{values:[[Z2,n],[to,{...d,ref:i,isInvalid:n.isInvalid}],[Zr,{...p,isPressed:n.isOpen}],[Lu,{...u,ref:l,elementType:"span"}],[Mi,g],[zi,n],[ds,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:qf}],[us,h],[cs,{slots:{start:c,end:m}}],[Gn,{slots:{description:f,errorMessage:x}}],[Cv,b]]},v.createElement("div",{...Xe(y,k,j),ref:e,slot:t.slot||void 0,"data-focus-within":S||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":N||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}))}),G2=(0,v.forwardRef)(function(t,e){[t,e]=Ua(t,e,Vl);let{children:a,level:r=3,className:n,...i}=t,l=`h${r}`;return v.createElement(l,{...i,ref:e,className:n??"react-aria-Heading"},a)}),J2=xa(Wn(),1),ps="ToastProvider",[hs,Q2,X2]=lo("Toast"),[Yf,O6]=Bu("Toast",[X2]),[e4,$i]=Yf(ps),Gf=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:l}=t,[o,d]=v.useState(null),[u,c]=v.useState(0),m=v.useRef(!1),p=v.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${ps}\`. Expected non-empty \`string\`.`),(0,s.jsx)(hs.Provider,{scope:e,children:(0,s.jsx)(e4,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:o,onViewportChange:d,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:p,children:l})})};Gf.displayName=ps;var Jf="ToastViewport",t4=["F8"],fs="toast.viewportPause",gs="toast.viewportResume",Qf=v.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=t4,label:n="Notifications ({hotkey})",...i}=t,l=$i(Jf,a),o=Q2(a),d=v.useRef(null),u=v.useRef(null),c=v.useRef(null),m=v.useRef(null),p=St(e,m,l.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=l.toastCount>0;v.useEffect(()=>{let x=b=>{var w;r.length!==0&&r.every(D=>b[D]||b.code===D)&&((w=m.current)==null||w.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),v.useEffect(()=>{let x=d.current,b=m.current;if(g&&x&&b){let w=()=>{if(!l.isClosePausedRef.current){let N=new CustomEvent(fs);b.dispatchEvent(N),l.isClosePausedRef.current=!0}},D=()=>{if(l.isClosePausedRef.current){let N=new CustomEvent(gs);b.dispatchEvent(N),l.isClosePausedRef.current=!1}},j=N=>{x.contains(N.relatedTarget)||D()},S=()=>{x.contains(document.activeElement)||D()};return x.addEventListener("focusin",w),x.addEventListener("focusout",j),x.addEventListener("pointermove",w),x.addEventListener("pointerleave",S),window.addEventListener("blur",w),window.addEventListener("focus",D),()=>{x.removeEventListener("focusin",w),x.removeEventListener("focusout",j),x.removeEventListener("pointermove",w),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",w),window.removeEventListener("focus",D)}}},[g,l.isClosePausedRef]);let f=v.useCallback(({tabbingDirection:x})=>{let b=o().map(w=>{let D=w.ref.current,j=[D,...h4(D)];return x==="forwards"?j:j.reverse()});return(x==="forwards"?b.reverse():b).flat()},[o]);return v.useEffect(()=>{let x=m.current;if(x){let b=w=>{var j,S,N;let D=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!D){let k=document.activeElement,y=w.shiftKey;if(w.target===x&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===k);ys(C.slice(_+1))?w.preventDefault():y?(S=u.current)==null||S.focus():(N=c.current)==null||N.focus()}};return x.addEventListener("keydown",b),()=>x.removeEventListener("keydown",b)}},[o,f]),(0,s.jsxs)(yA,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(xs,{ref:u,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(hs.Slot,{scope:a,children:(0,s.jsx)(We.ol,{tabIndex:-1,...i,ref:p})}),g&&(0,s.jsx)(xs,{ref:c,onFocusFromOutsideViewport:()=>{ys(f({tabbingDirection:"backwards"}))}})]})});Qf.displayName=Jf;var Xf="ToastFocusProxy",xs=v.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=$i(Xf,a);return(0,s.jsx)(Av,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:l=>{var d;let o=l.relatedTarget;(d=i.viewport)!=null&&d.contains(o)||r()}})});xs.displayName=Xf;var bn="Toast",a4="toast.swipeStart",r4="toast.swipeMove",n4="toast.swipeCancel",i4="toast.swipeEnd",eg=v.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...l}=t,[o,d]=io({prop:r,defaultProp:n??!0,onChange:i,caller:bn});return(0,s.jsx)(Qn,{present:a||o,children:(0,s.jsx)(s4,{open:o,...l,ref:e,onClose:()=>d(!1),onPause:Ut(t.onPause),onResume:Ut(t.onResume),onSwipeStart:Ee(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(t.onSwipeMove,u=>{let{x:c,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:Ee(t.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(t.onSwipeEnd,u=>{let{x:c,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),d(!1)})})})});eg.displayName=bn;var[l4,o4]=Yf(bn,{onClose(){}}),s4=v.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:l,onEscapeKeyDown:o,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:m,onSwipeCancel:p,onSwipeEnd:h,...g}=t,f=$i(bn,a),[x,b]=v.useState(null),w=St(e,R=>b(R)),D=v.useRef(null),j=v.useRef(null),S=n||f.duration,N=v.useRef(0),k=v.useRef(S),y=v.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=Ut(()=>{var R;x!=null&&x.contains(document.activeElement)&&((R=f.viewport)==null||R.focus()),l()}),T=v.useCallback(R=>{!R||R===1/0||(window.clearTimeout(y.current),N.current=new Date().getTime(),y.current=window.setTimeout(E,R))},[E]);v.useEffect(()=>{let R=f.viewport;if(R){let M=()=>{T(k.current),u==null||u()},I=()=>{let V=new Date().getTime()-N.current;k.current-=V,window.clearTimeout(y.current),d==null||d()};return R.addEventListener(fs,I),R.addEventListener(gs,M),()=>{R.removeEventListener(fs,I),R.removeEventListener(gs,M)}}},[f.viewport,S,d,u,T]),v.useEffect(()=>{i&&!f.isClosePausedRef.current&&T(S)},[i,S,f.isClosePausedRef,T]),v.useEffect(()=>(C(),()=>_()),[C,_]);let P=v.useMemo(()=>x?og(x):null,[x]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[P&&(0,s.jsx)(d4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:P}),(0,s.jsx)(l4,{scope:a,onClose:E,children:J2.createPortal((0,s.jsx)(hs.ItemSlot,{scope:a,children:(0,s.jsx)(gA,{asChild:!0,onEscapeKeyDown:Ee(o,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(We.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:w,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ee(t.onKeyDown,R=>{R.key==="Escape"&&(o==null||o(R.nativeEvent),R.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:Ee(t.onPointerDown,R=>{R.button===0&&(D.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ee(t.onPointerMove,R=>{if(!D.current)return;let M=R.clientX-D.current.x,I=R.clientY-D.current.y,V=!!j.current,A=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,z=A?O(0,M):0,L=A?0:O(0,I),G=R.pointerType==="touch"?10:2,Q={x:z,y:L},ae={originalEvent:R,delta:Q};V?(j.current=Q,Li(r4,m,ae,{discrete:!1})):sg(Q,f.swipeDirection,G)?(j.current=Q,Li(a4,c,ae,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(M)>G||Math.abs(I)>G)&&(D.current=null)}),onPointerUp:Ee(t.onPointerUp,R=>{let M=j.current,I=R.target;if(I.hasPointerCapture(R.pointerId)&&I.releasePointerCapture(R.pointerId),j.current=null,D.current=null,M){let V=R.currentTarget,A={originalEvent:R,delta:M};sg(M,f.swipeDirection,f.swipeThreshold)?Li(i4,h,A,{discrete:!0}):Li(n4,p,A,{discrete:!0}),V.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),d4=t=>{let{__scopeToast:e,children:a,...r}=t,n=$i(bn,e),[i,l]=v.useState(!1),[o,d]=v.useState(!1);return m4(()=>l(!0)),v.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:(0,s.jsx)(fA,{asChild:!0,children:(0,s.jsx)(Av,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},u4="ToastTitle",tg=v.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(We.div,{...r,ref:e})});tg.displayName=u4;var c4="ToastDescription",ag=v.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(We.div,{...r,ref:e})});ag.displayName=c4;var rg="ToastAction",ng=v.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)(lg,{altText:a,asChild:!0,children:(0,s.jsx)(vs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${rg}\`. Expected non-empty \`string\`.`),null)});ng.displayName=rg;var ig="ToastClose",vs=v.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=o4(ig,a);return(0,s.jsx)(lg,{asChild:!0,children:(0,s.jsx)(We.button,{type:"button",...r,ref:e,onClick:Ee(t.onClick,n.onClose)})})});vs.displayName=ig;var lg=v.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function og(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),p4(a)){let r=a.ariaHidden||a.hidden||a.style.display==="none",n=a.dataset.radixToastAnnounceExclude==="";if(!r)if(n){let i=a.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...og(a))}}),e}function Li(t,e,a,{discrete:r}){let n=a.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});e&&n.addEventListener(t,e,{once:!0}),r?Hu(n,i):n.dispatchEvent(i)}var sg=(t,e,a=0)=>{let r=Math.abs(t.x),n=Math.abs(t.y),i=r>n;return e==="left"||e==="right"?i&&r>a:!i&&n>a};function m4(t=()=>{}){let e=Ut(t);no(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function p4(t){return t.nodeType===t.ELEMENT_NODE}function h4(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function ys(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}var f4=Gf,dg=Qf,ug=eg,cg=tg,mg=ag,pg=ng,hg=vs,jr=J(),g4=f4,fg=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(dg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});fg.displayName=dg.displayName;var x4=Ll("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background border",danger:"group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error"}},defaultVariants:{variant:"default"}}),gg=v.forwardRef((t,e)=>{let a=(0,jr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,variant:i,...n}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l=i||"default",o;a[4]!==r||a[5]!==l?(o=U(x4({variant:l}),"print:hidden",r),a[4]=r,a[5]=l,a[6]=o):o=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==o?(d=(0,s.jsx)(ug,{ref:e,className:o,...n}),a[7]=n,a[8]=e,a[9]=o,a[10]=d):d=a[10],d});gg.displayName=ug.displayName;var v4=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(pg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});v4.displayName=pg.displayName;var xg=v.forwardRef((t,e)=>{let a=(0,jr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Hr,{className:"h-4 w-4"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(hg,{ref:e,className:i,"toast-close":"",...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});xg.displayName=hg.displayName;var vg=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("text-sm font-semibold",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(cg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});vg.displayName=cg.displayName;var yg=v.forwardRef((t,e)=>{let a=(0,jr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("text-sm opacity-90",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(mg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});yg.displayName=mg.displayName;var y4=J();const b4=()=>{let t=(0,y4.c)(5),{toasts:e}=hA(),a;t[0]===e?a=t[1]:(a=e.map(w4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(fg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(g4,{children:[a,r]}),t[3]=a,t[4]=n),n};function w4(t){let{id:e,title:a,description:r,action:n,...i}=t;return(0,s.jsxs)(gg,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[a&&(0,s.jsx)(vg,{children:a}),r&&(0,s.jsx)(yg,{children:r})]}),n,(0,s.jsx)(xg,{})]},e)}var D4=J();const bs=t=>{let e=(0,D4.c)(5),{children:a}=t,r=Il(V_),n;e[0]===r?n=e[1]:(n=j4(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)($A,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function j4(t){return t&&C4(t)?t:navigator.language}function C4(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var bg=J(),wg=ko(()=>yt(()=>import("./home-page-Dtcd7Trh.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125]),import.meta.url)),Dg=ko(()=>yt(()=>import("./run-page-6DKviU71.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([126,127,128,4,129,13,130,131,132,133,27,3,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,108,134,135,72,136,106,76,75,81,80,82,83,84,85,86,73,74,70,71,87,137,138,139,95,99,68,140,141,142,143,144,145,146,147,79,88,148,149,91,150,90,92,151,93,94,152,114,115,116,153,118,120,154,155,156,98,157,158,159,160,161,162,163,164,165,166,167,100,168,78,89,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,96,97,277,278,279,280,281,282,283,284,285,286]),import.meta.url)),jg=ko(()=>yt(()=>import("./edit-page-cuNCsDIq.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([287,4,288,10,127,128,129,13,130,131,132,133,27,3,5,6,7,8,9,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,108,134,135,72,136,106,76,75,81,80,82,83,84,85,86,73,74,70,71,87,137,138,139,95,99,68,140,141,142,143,144,145,146,147,79,88,148,149,91,150,90,92,151,93,94,152,114,115,116,153,118,120,154,155,156,98,157,158,159,160,161,162,163,164,165,166,167,100,168,78,89,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,96,97,277,278,279,280,281,282,283,284,2,69,77,101,102,103,1,104,105,107,289,290,109,291,292,293,110,111,112,294,113,295,296,297,298,299,300,301,302,124,303,304,305,306,307,125,308,309,117,286,310,123,311,312,313,314,315,316,317,318,319,320,321,322,323,324]),import.meta.url));function S4(t){t==="home"?wg.preload():t==="read"?Dg.preload():jg.preload()}const Cg=(0,v.memo)(()=>{let t=(0,bg.c)(12),[e]=B_(),[a]=L_(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=k4(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=r);let n=r,i;t[2]!==a||t[3]!==e?(i=()=>{let c=SA();return c==="home"?(0,s.jsx)(wg.Component,{}):c==="read"?(0,s.jsx)(Dg.Component,{appConfig:a}):(0,s.jsx)(jg.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let l=i,o;t[5]===n?o=t[6]:(o={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=o);let d;t[7]===l?d=t[8]:(d=(0,s.jsx)(bs,{children:l()}),t[7]=l,t[8]=d);let u;return t[9]!==o||t[10]!==d?(u=(0,s.jsx)(Sg,{children:(0,s.jsx)(bb,{variables:o,children:d})}),t[9]=o,t[10]=d,t[11]=u):u=t[11],u});Cg.displayName="MarimoApp";var Sg=(0,v.memo)(t=>{let e=(0,bg.c)(5),{children:a}=t,r,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(b4,{}),n=(0,s.jsx)(yb,{}),i=(0,s.jsx)(Db,{}),e[0]=r,e[1]=n,e[2]=i):(r=e[0],n=e[1],i=e[2]);let l;return e[3]===a?l=e[4]:(l=(0,s.jsx)(Ol,{children:(0,s.jsx)(v.Suspense,{children:(0,s.jsx)(Nt,{children:(0,s.jsx)(H1,{controller:Un,children:(0,s.jsx)(bs,{children:(0,s.jsxs)(KA,{children:[a,r,n,i]})})})})})}),e[3]=a,e[4]=l),l});Sg.displayName="Providers";function k4(t){return`${t/16}rem`}function N4(){q_(t=>{t.delete(ju.accessToken)})}var E4={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsMarkdown:"startConnection",exportAsPDF:"startConnection",readCode:"startConnection",sendCopy:"throwError",sendFormat:"throwError",sendRestart:"throwError",sendSave:"waitForConnectionOpen",invokeAiTool:"waitForConnectionOpen",sendFunctionRequest:"waitForConnectionOpen",sendRename:"waitForConnectionOpen",autoExportAsHTML:"waitForConnectionOpen",autoExportAsMarkdown:"waitForConnectionOpen",autoExportAsIPYNB:"waitForConnectionOpen",updateCellOutputs:"waitForConnectionOpen",listSecretKeys:"throwError",writeSecret:"throwError",clearCache:"throwError",getCacheInfo:"throwError",saveUserConfig:"throwError",sendShutdown:"throwError",getPackageList:"throwError",getDependencyTree:"throwError",addPackage:"throwError",removePackage:"throwError",sendListFiles:"startConnection",sendSearchFiles:"startConnection",sendCreateFileOrFolder:"throwError",sendDeleteFileOrFolder:"throwError",sendRenameFileOrFolder:"throwError",sendUpdateFile:"throwError",sendFileDetails:"throwError",openFile:"throwError",getRecentFiles:"startConnection",getWorkspaceFiles:"startConnection",getRunningNotebooks:"startConnection",shutdownSession:"startConnection",openTutorial:"startConnection",getUsageStats:"waitForConnectionOpen",sendStdin:"waitForConnectionOpen",sendInterrupt:"waitForConnectionOpen",sendPdb:"waitForConnectionOpen",sendInstallMissingPackages:"waitForConnectionOpen",readSnippets:"waitForConnectionOpen",previewDatasetColumn:"waitForConnectionOpen",previewSQLTable:"waitForConnectionOpen",previewSQLTableList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function _4(t,e){let a=TR(async n=>{Oe.set(G1,{state:Z1.CONNECTING}),await n.init()});function r(n,i){let l=E4[i];return async(...o)=>{let d=e();if(!d.isLazy)return n(...o);switch(l){case"dropRequest":se.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Hv;case"waitForConnectionOpen":return await Ze(),await B1(),n(...o);case"startConnection":return await a(d),await Ze(),i!=="sendInstantiate"&&await B1(),n(...o);default:throw Error(`Unknown action for "${i}"`)}}}return Va.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:Ve,handleResponseReturnNull:we}=G_;function R4(){let t=ZE(()=>X_(Cu())),e=()=>Cu().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(we),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(we),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(we),syncCellIds:async r=>(await Ze(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(we)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(we),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(we),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(we),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then(Ve),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(we),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(we),sendRun:async r=>(await Ze(),t().POST("/api/kernel/run",{body:r,params:a()}).then(we)),sendRunScratchpad:async r=>(await Ze(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(we)),sendInstantiate:async r=>(await Ze(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(we)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(we),sendCodeCompletionRequest:async r=>(await Ze(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(we)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(we),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(we),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(we),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(we),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(we),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(we),readCode:async()=>(await Ze(),t().POST("/api/kernel/read_code",{params:a()}).then(Ve)),readSnippets:async()=>(await Ze(),t().GET("/api/documentation/snippets",{params:a()}).then(Ve)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(we),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(we),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(we),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(we),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(we),openFile:async r=>(await Ze(),await t().POST("/api/files/open",{body:r}).then(we),null),getUsageStats:async()=>(await Ze(),t().GET("/api/usage").then(Ve)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(we),sendListFiles:async r=>(await Ze(),t().POST("/api/files/list_files",{body:r}).then(Ve)),sendSearchFiles:async r=>(await Ze(),t().POST("/api/files/search",{body:r}).then(Ve)),sendCreateFileOrFolder:async r=>(await Ze(),t().POST("/api/files/create",{body:r}).then(Ve)),sendDeleteFileOrFolder:async r=>(await Ze(),t().POST("/api/files/delete",{body:r}).then(Ve)),sendRenameFileOrFolder:async r=>(await Ze(),t().POST("/api/files/move",{body:r}).then(Ve)),sendUpdateFile:async r=>(await Ze(),t().POST("/api/files/update",{body:r}).then(Ve)),sendFileDetails:async r=>(await Ze(),t().POST("/api/files/file_details",{body:r}).then(Ve)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then(Ve),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Ve),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then(Ve),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Ve),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then(Ve),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then(Ve),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then(Ve),exportAsPDF:async r=>t().POST("/api/export/pdf",{body:r,parseAs:"blob",params:a()}).then(Ve),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(we),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(we),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(we),updateCellOutputs:async r=>t().POST("/api/export/update_cell_outputs",{body:r,params:a()}).then(we),addPackage:r=>t().POST("/api/packages/add",{body:r}).then(Ve),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then(Ve),getPackageList:async()=>(await Ze(),t().GET("/api/packages/list").then(Ve)),getDependencyTree:async()=>(await Ze(),t().GET("/api/packages/tree").then(Ve)),listSecretKeys:async r=>(await Ze(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(we)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(we),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then(Ve),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(we),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(we)}}function T4(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(Wt({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(se.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(se.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(Wt({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),se.log("Function requests are not supported in static mode"),null),sendRestart:t,syncCellIds:t,sendRun:t,sendRunScratchpad:t,sendRename:t,sendSave:t,sendCopy:t,sendInterrupt:t,sendShutdown:t,sendFormat:t,sendDeleteCell:t,sendCodeCompletionRequest:t,saveUserConfig:t,saveAppConfig:t,saveCellConfig:t,sendStdin:t,readCode:t,readSnippets:t,previewDatasetColumn:t,previewSQLTable:t,previewSQLTableList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsMarkdown:t,exportAsPDF:t,autoExportAsHTML:t,autoExportAsMarkdown:t,autoExportAsIPYNB:t,updateCellOutputs:t,addPackage:t,removePackage:t,getPackageList:t,getDependencyTree:t,listSecretKeys:t,writeSecret:t,invokeAiTool:t,clearCache:t,getCacheInfo:t}}var A4=J();function I4(t){let e={sendComponentValues:"Failed update value",sendModelValue:"Failed to update model value",sendInstantiate:"Failed to instantiate",sendFunctionRequest:"Failed to send function request",sendRestart:"Failed to restart",syncCellIds:"Failed to sync cell IDs",sendRun:"Failed to run",sendRunScratchpad:"Failed to run scratchpad",sendRename:"Failed to rename",sendSave:"Failed to save",sendCopy:"Failed to copy",sendInterrupt:"Failed to interrupt",sendShutdown:"Failed to shutdown",sendFormat:"Failed to format",sendDeleteCell:"Failed to delete cell",sendCodeCompletionRequest:"Failed to complete code",saveUserConfig:"Failed to save user config",saveAppConfig:"Failed to save app config",saveCellConfig:"Failed to save cell config",sendStdin:"Failed to send stdin",readCode:"Failed to read code",readSnippets:"Failed to fetch snippets",previewDatasetColumn:"Failed to fetch data sources",previewSQLTable:"Failed to fetch SQL table",previewSQLTableList:"Failed to fetch SQL table list",previewDataSourceConnection:"Failed to preview data source connection",validateSQL:"Failed to validate SQL",openFile:"Failed to open file",getUsageStats:"",sendListFiles:"Failed to list files",sendSearchFiles:"Failed to search files",sendPdb:"Failed to start debug session",sendCreateFileOrFolder:"Failed to create file or folder",sendDeleteFileOrFolder:"Failed to delete file or folder",sendRenameFileOrFolder:"Failed to rename file or folder",sendUpdateFile:"Failed to update file",sendFileDetails:"Failed to get file details",openTutorial:"Failed to open tutorial",sendInstallMissingPackages:"Failed to install missing packages",getRecentFiles:"Failed to get recent files",getWorkspaceFiles:"Failed to get workspace files",getRunningNotebooks:"Failed to get running notebooks",shutdownSession:"Failed to shutdown session",exportAsHTML:"Failed to export HTML",exportAsMarkdown:"Failed to export Markdown",exportAsPDF:"Failed to export PDF",autoExportAsHTML:"",autoExportAsMarkdown:"",autoExportAsIPYNB:"",updateCellOutputs:"",addPackage:"Failed to add package",removePackage:"Failed to remove package",getPackageList:"Failed to get package list",getDependencyTree:"Failed to get dependency tree",listSecretKeys:"Failed to fetch secrets",writeSecret:"Failed to write secret",invokeAiTool:"Failed to invoke AI tool",clearCache:"Failed to clear cache",getCacheInfo:""},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...l)=>{try{return await n(...l)}catch(o){if(o instanceof Hv){if(Oe.get(q1))return;let c=Wt({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(P4,{onConnect:()=>c.dismiss()})});throw se.error(`Failed to handle request: ${r}`,o),o}let d=e[i],u=Wv(o);throw d&&Wt({title:d,description:u,variant:"danger"}),se.error(`Failed to handle request: ${r}`,o),o}}}return a}const P4=t=>{let e=(0,A4.c)(9),{onConnect:a}=t,r=H_(),n=Il(q1),i;e[0]!==r||e[1]!==a?(i=()=>{r(),setTimeout(()=>{a()},800)},e[0]=r,e[1]=a,e[2]=i):i=e[2];let l;e[3]===n?l=e[4]:(l=n&&(0,s.jsx)(Yn,{size:"small",className:"mr-1"}),e[3]=n,e[4]=l);let o;return e[5]!==n||e[6]!==i||e[7]!==l?(o=(0,s.jsxs)(Ce,{size:"xs",onClick:i,disabled:n,children:[l,"Connect"]}),e[5]=n,e[6]=i,e[7]=l,e[8]=o):o=e[8],o};function M4(){let t;return t=U_()?b_.INSTANCE:Zn()?T4():_4(R4(),()=>Cu()),I4(t)}function F4(t=J1()){let e=window.fetch;return window.fetch=async(a,r)=>{let n=a instanceof Request?a.url:a.toString();if(n.startsWith("data:"))return e(a,r);try{let i=ws(n,t);if(i){let l=await(await e(i)).arrayBuffer();return new Response(l,{headers:{"Content-Type":V4(n)}})}return e(a,r)}catch(i){return se.error("Error parsing URL",i),e(a,r)}},()=>{window.fetch=e}}function V4(t){return t.endsWith(".csv")?"text/csv":t.endsWith(".json")?"application/json":t.endsWith(".txt")?"text/plain":"application/octet-stream"}function z4(t,e=J1()){let a=t.http.bind(t),r=t.load.bind(t);return t.http=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await a(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},t.load=async n=>{let i=ws(n,e);if(i)return await window.fetch(i).then(l=>l.text());try{return await r(n)}catch(l){if(n.startsWith("data:"))return await window.fetch(n).then(o=>o.text());throw l}},()=>{t.http=a,t.load=r}}function kg(t){return t.startsWith(".")?t.slice(1):t}function ws(t,e){let a=document.baseURI;a.startsWith("blob:")&&(a=a.replace("blob:",""));let r=new URL(t,a).pathname;if(t.startsWith("file://")){let n=t.indexOf("/@file/");n!==-1&&(t=t.slice(n))}return e[t]||e[kg(t)]||e[r]||e[kg(r)]}var O4=xa(Wn(),1),er="NavigationMenu",[Ds,Ng,$4]=lo(er),[js,L4,B4]=lo(er),[Cs,$6]=Bu(er,[$4,B4]),[H4,Rt]=Cs(er),[W4,U4]=Cs(er),Eg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:l=200,skipDelayDuration:o=300,orientation:d="horizontal",dir:u,...c}=t,[m,p]=v.useState(null),h=St(e,C=>p(C)),g=Pv(u),f=v.useRef(0),x=v.useRef(0),b=v.useRef(0),[w,D]=v.useState(!0),[j,S]=io({prop:r,onChange:C=>{let _=C!=="",E=o>0;_?(window.clearTimeout(b.current),E&&D(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>D(!0),o)),n==null||n(C)},defaultProp:i??"",caller:er}),N=v.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>S(""),150)},[S]),k=v.useCallback(C=>{window.clearTimeout(x.current),S(C)},[S]),y=v.useCallback(C=>{j===C?window.clearTimeout(x.current):f.current=window.setTimeout(()=>{window.clearTimeout(x.current),S(C)},l)},[j,S,l]);return v.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(x.current),window.clearTimeout(b.current)},[]),(0,s.jsx)(_g,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:m,onTriggerEnter:C=>{window.clearTimeout(f.current),w?y(C):k(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),N()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:N,onItemSelect:C=>{S(_=>_===C?"":C)},onItemDismiss:()=>S(""),children:(0,s.jsx)(We.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});Eg.displayName=er;var Ss="NavigationMenuSub",K4=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:l="horizontal",...o}=t,d=Rt(Ss,a),[u,c]=io({prop:r,onChange:n,defaultProp:i??"",caller:Ss});return(0,s.jsx)(_g,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:m=>c(m),onItemSelect:m=>c(m),onItemDismiss:()=>c(""),children:(0,s.jsx)(We.div,{"data-orientation":l,...o,ref:e})})});K4.displayName=Ss;var _g=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:l,value:o,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:m,onContentEnter:p,onContentLeave:h}=t,[g,f]=v.useState(null),[x,b]=v.useState(new Map),[w,D]=v.useState(null);return(0,s.jsx)(H4,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:o,previousValue:cv(o),baseId:Tv(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:w,onIndicatorTrackChange:D,onTriggerEnter:Ut(c),onTriggerLeave:Ut(m),onContentEnter:Ut(p),onContentLeave:Ut(h),onItemSelect:Ut(d),onItemDismiss:Ut(u),onViewportContentChange:v.useCallback((j,S)=>{b(N=>(N.set(j,S),new Map(N)))},[]),onViewportContentRemove:v.useCallback(j=>{b(S=>S.has(j)?(S.delete(j),new Map(S)):S)},[]),children:(0,s.jsx)(Ds.Provider,{scope:e,children:(0,s.jsx)(W4,{scope:e,items:x,children:l})})})},Rg="NavigationMenuList",Tg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Rt(Rg,a),i=(0,s.jsx)(We.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(We.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Ds.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(Bg,{asChild:!0,children:i}):i})})});Tg.displayName=Rg;var Ag="NavigationMenuItem",[Z4,Ig]=Cs(Ag),Pg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=Tv(),l=r||i||"LEGACY_REACT_AUTO_VALUE",o=v.useRef(null),d=v.useRef(null),u=v.useRef(null),c=v.useRef(()=>{}),m=v.useRef(!1),p=v.useCallback((g="start")=>{if(o.current){c.current();let f=_s(o.current);f.length&&Rs(g==="start"?f:f.reverse())}},[]),h=v.useCallback(()=>{if(o.current){let g=_s(o.current);g.length&&(c.current=eD(g))}},[]);return(0,s.jsx)(Z4,{scope:a,value:l,triggerRef:d,contentRef:o,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(We.li,{...n,ref:e})})});Pg.displayName=Ag;var ks="NavigationMenuTrigger",Mg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=Rt(ks,t.__scopeNavigationMenu),l=Ig(ks,t.__scopeNavigationMenu),o=v.useRef(null),d=St(o,l.triggerRef,e),u=Ug(i.baseId,l.value),c=Kg(i.baseId,l.value),m=v.useRef(!1),p=v.useRef(!1),h=l.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ds.ItemSlot,{scope:a,value:l.value,children:(0,s.jsx)(Wg,{asChild:!0,children:(0,s.jsx)(We.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":As(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:Ee(t.onPointerEnter,()=>{p.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:Ee(t.onPointerMove,Hi(()=>{r||p.current||l.wasEscapeCloseRef.current||m.current||(i.onTriggerEnter(l.value),m.current=!0)})),onPointerLeave:Ee(t.onPointerLeave,Hi(()=>{r||(i.onTriggerLeave(),m.current=!1)})),onClick:Ee(t.onClick,()=>{i.onItemSelect(l.value),p.current=h}),onKeyDown:Ee(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(l.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(DA,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:g=>{let f=l.contentRef.current,x=g.relatedTarget,b=x===o.current,w=f==null?void 0:f.contains(x);(b||!w)&&l.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});Mg.displayName=ks;var q4="NavigationMenuLink",Fg="navigationMenu.linkSelect",Vg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(Wg,{asChild:!0,children:(0,s.jsx)(We.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:Ee(t.onClick,l=>{let o=l.target,d=new CustomEvent(Fg,{bubbles:!0,cancelable:!0});o.addEventListener(Fg,u=>n==null?void 0:n(u),{once:!0}),Hu(o,d),!d.defaultPrevented&&!l.metaKey&&Hu(o,new CustomEvent(Bi,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Vg.displayName=q4;var Ns="NavigationMenuIndicator",zg=v.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=Rt(Ns,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?O4.createPortal((0,s.jsx)(Qn,{present:a||i,children:(0,s.jsx)(Y4,{...r,ref:e})}),n.indicatorTrack):null});zg.displayName=Ns;var Y4=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Rt(Ns,a),i=Ng(a),[l,o]=v.useState(null),[d,u]=v.useState(null),c=n.orientation==="horizontal",m=!!n.value;v.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&o(h)},[i,n.value]);let p=()=>{l&&u({size:c?l.offsetWidth:l.offsetHeight,offset:c?l.offsetLeft:l.offsetTop})};return Ts(l,p),Ts(n.indicatorTrack,p),d?(0,s.jsx)(We.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":n.orientation,...r,ref:e,style:{position:"absolute",...c?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...r.style}}):null}),Cr="NavigationMenuContent",Og=v.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=Rt(Cr,t.__scopeNavigationMenu),i=Ig(Cr,t.__scopeNavigationMenu),l=St(i.contentRef,e),o=i.value===n.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return n.viewport?(0,s.jsx)(G4,{forceMount:a,...d,ref:l}):(0,s.jsx)(Qn,{present:a||o,children:(0,s.jsx)($g,{"data-state":As(o),...d,ref:l,onPointerEnter:Ee(t.onPointerEnter,n.onContentEnter),onPointerLeave:Ee(t.onPointerLeave,Hi(n.onContentLeave)),style:{pointerEvents:!o&&n.isRootMenu?"none":void 0,...d.style}})})});Og.displayName=Cr;var G4=v.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=Rt(Cr,t.__scopeNavigationMenu);return no(()=>{a(t.value,{ref:e,...t})},[t,e,a]),no(()=>()=>r(t.value),[t.value,r]),null}),Bi="navigationMenu.rootContentDismiss",$g=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:l,onRootContentClose:o,onContentFocusOutside:d,...u}=t,c=Rt(Cr,a),m=v.useRef(null),p=St(m,e),h=Ug(c.baseId,r),g=Kg(c.baseId,r),f=Ng(a),x=v.useRef(null),{onItemDismiss:b}=c;v.useEffect(()=>{let D=m.current;if(c.isRootMenu&&D){let j=()=>{var S;b(),o(),D.contains(document.activeElement)&&((S=n.current)==null||S.focus())};return D.addEventListener(Bi,j),()=>D.removeEventListener(Bi,j)}},[c.isRootMenu,t.value,n,b,o]);let w=v.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),S=D.indexOf(c.previousValue),N=r===c.value,k=S===D.indexOf(r);if(!N&&!k)return x.current;let y=(()=>{if(j!==S){if(N&&S!==-1)return j>S?"from-end":"from-start";if(k&&j!==-1)return j>S?"to-start":"to-end"}return null})();return x.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(Bg,{asChild:!0,children:(0,s.jsx)(vA,{id:g,"aria-labelledby":h,"data-motion":w,"data-orientation":c.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event(Bi,{bubbles:!0,cancelable:!0});(j=m.current)==null||j.dispatchEvent(D)},onFocusOutside:Ee(t.onFocusOutside,D=>{var S;d();let j=D.target;(S=c.rootNavigationMenu)!=null&&S.contains(j)&&D.preventDefault()}),onPointerDownOutside:Ee(t.onPointerDownOutside,D=>{var k;let j=D.target,S=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),N=c.isRootMenu&&((k=c.viewport)==null?void 0:k.contains(j));(S||N||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:Ee(t.onKeyDown,D=>{var S;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let N=_s(D.currentTarget),k=document.activeElement,y=N.findIndex(C=>C===k);Rs(D.shiftKey?N.slice(0,y).reverse():N.slice(y+1,N.length))?D.preventDefault():(S=i.current)==null||S.focus()}}),onEscapeKeyDown:Ee(t.onEscapeKeyDown,D=>{l.current=!0})})})}),Es="NavigationMenuViewport",Lg=v.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!Rt(Es,t.__scopeNavigationMenu).value;return(0,s.jsx)(Qn,{present:a||n,children:(0,s.jsx)(J4,{...r,ref:e})})});Lg.displayName=Es;var J4=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=Rt(Es,a),l=St(e,i.onViewportChange),o=U4(Cr,t.__scopeNavigationMenu),[d,u]=v.useState(null),[c,m]=v.useState(null),p=d?(d==null?void 0:d.width)+"px":void 0,h=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,f=g?i.value:i.previousValue;return Ts(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(We.div,{"data-state":As(g),"data-orientation":i.orientation,...n,ref:l,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:Ee(t.onPointerEnter,i.onContentEnter),onPointerLeave:Ee(t.onPointerLeave,Hi(i.onContentLeave)),children:Array.from(o.items).map(([x,{ref:b,forceMount:w,...D}])=>{let j=f===x;return(0,s.jsx)(Qn,{present:w||j,children:(0,s.jsx)($g,{...D,ref:nR(b,S=>{j&&S&&m(S)})})},x)})})}),Q4="FocusGroup",Bg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=Rt(Q4,a);return(0,s.jsx)(js.Provider,{scope:a,children:(0,s.jsx)(js.Slot,{scope:a,children:(0,s.jsx)(We.div,{dir:n.dir,...r,ref:e})})})}),Hg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],X4="FocusGroupItem",Wg=v.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=L4(a),i=Rt(X4,a);return(0,s.jsx)(js.ItemSlot,{scope:a,children:(0,s.jsx)(We.button,{...r,ref:e,onKeyDown:Ee(t.onKeyDown,l=>{if(["Home","End",...Hg].includes(l.key)){let o=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(l.key)&&o.reverse(),Hg.includes(l.key)){let d=o.indexOf(l.currentTarget);o=o.slice(d+1)}setTimeout(()=>Rs(o)),l.preventDefault()}})})})});function _s(t){let e=[],a=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{let n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)e.push(a.currentNode);return e}function Rs(t){let e=document.activeElement;return t.some(a=>a===e?!0:(a.focus(),document.activeElement!==e))}function eD(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let a=e.dataset.tabindex;e.setAttribute("tabindex",a)})}}function Ts(t,e){let a=Ut(e);no(()=>{let r=0;if(t){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(a)});return n.observe(t),()=>{window.cancelAnimationFrame(r),n.unobserve(t)}}},[t,a])}function As(t){return t?"open":"closed"}function Ug(t,e){return`${t}-trigger-${e}`}function Kg(t,e){return`${t}-content-${e}`}function Hi(t){return e=>e.pointerType==="mouse"?t(e):void 0}var Zg=Eg,qg=Tg,tD=Pg,Yg=Mg,aD=Vg,Gg=zg,Jg=Og,Qg=Lg,Sr=J(),Is=v.forwardRef((t,e)=>{let a=(0,Sr.c)(16),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,children:r,orientation:i,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==o||a[7]!==d?(u=U(o,d,"relative z-10",n),a[5]=n,a[6]=o,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(t0,{}),a[9]=c):c=a[9];let m;return a[10]!==r||a[11]!==i||a[12]!==l||a[13]!==e||a[14]!==u?(m=(0,s.jsxs)(Zg,{ref:e,className:u,orientation:i,...l,children:[r,c]}),a[10]=r,a[11]=i,a[12]=l,a[13]=e,a[14]=u,a[15]=m):m=a[15],m});Is.displayName=Zg.displayName;var rD=Ll("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Wi=v.forwardRef((t,e)=>{let a=(0,Sr.c)(11),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:r,orientation:n,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]!==r||a[5]!==n?(l=U(rD({orientation:n}),r),a[4]=r,a[5]=n,a[6]=l):l=a[6];let o;return a[7]!==i||a[8]!==e||a[9]!==l?(o=(0,s.jsx)(qg,{ref:e,className:l,...i}),a[7]=i,a[8]=e,a[9]=l,a[10]=o):o=a[10],o});Wi.displayName=qg.displayName;var Ps=tD,Ms=Ll("group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-(--slate-12) transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{orientation:{horizontal:"w-max items-center justify-center",vertical:"w-full"}},defaultVariants:{orientation:"horizontal"}}),Xg=v.forwardRef((t,e)=>{let a=(0,Sr.c)(12),r,n,i;a[0]===t?(r=a[1],n=a[2],i=a[3]):({className:n,children:r,...i}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i);let l;a[4]===n?l=a[5]:(l=U(Ms(),"group",n),a[4]=n,a[5]=l);let o;a[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(vT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=o):o=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==l?(d=(0,s.jsxs)(Yg,{ref:e,className:l,...i,children:[r," ",o]}),a[7]=r,a[8]=i,a[9]=e,a[10]=l,a[11]=d):d=a[11],d});Xg.displayName=Yg.displayName;var e0=v.forwardRef((t,e)=>{let a=(0,Sr.c)(9),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",r),a[3]=r,a[4]=i);let l;return a[5]!==n||a[6]!==e||a[7]!==i?(l=(0,s.jsx)(Jg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=l):l=a[8],l});e0.displayName=Jg.displayName;var Fs=aD,t0=v.forwardRef((t,e)=>{let a=(0,Sr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===Symbol.for("react.memo_cache_sentinel")?(i=U("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let l;a[4]===r?l=a[5]:(l=U("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",r),a[4]=r,a[5]=l);let o;return a[6]!==n||a[7]!==e||a[8]!==l?(o=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Qg,{className:l,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=l,a[9]=o):o=a[9],o});t0.displayName=Qg.displayName;var nD=v.forwardRef((t,e)=>{let a=(0,Sr.c)(10),r,n;a[0]===t?(r=a[1],n=a[2]):({className:r,...n}=t,a[0]=t,a[1]=r,a[2]=n);let i;a[3]===r?i=a[4]:(i=U("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",r),a[3]=r,a[4]=i);let l;a[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=l):l=a[5];let o;return a[6]!==n||a[7]!==e||a[8]!==i?(o=(0,s.jsx)(Gg,{ref:e,className:i,...n,children:l}),a[6]=n,a[7]=e,a[8]=i,a[9]=o):o=a[9],o});nD.displayName=Gg.displayName;var a0=J(),iD=class{constructor(){q(this,"tagName","marimo-nav-menu");q(this,"menuItemValidator",$({label:F(),href:F(),description:F().nullish()}));q(this,"menuItemGroupValidator",$({label:F(),items:ee(this.menuItemValidator)}));q(this,"validator",$({items:ee(ke([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(Nt,{children:(0,s.jsx)(lD,{...t.data})})}},lD=t=>{let e=(0,a0.c)(13),{items:a,orientation:r}=t,n=oD,i=sD,l=dD,o;e[0]===r?o=e[1]:(o=p=>"items"in p?r==="horizontal"?(0,s.jsx)(Is,{orientation:"horizontal",children:(0,s.jsx)(Wi,{children:(0,s.jsxs)(Ps,{children:[(0,s.jsx)(Xg,{children:Me({html:p.label})}),(0,s.jsx)(e0,{children:(0,s.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:p.items.map(h=>(0,s.jsx)(r0,{label:h.label,href:l(h.href),target:i(h.href),children:h.description&&Me({html:h.description})},h.label))})})]})})},p.label):(0,s.jsxs)(Ps,{children:[(0,s.jsx)("div",{className:"inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",children:Me({html:p.label})}),(0,s.jsx)(Wi,{className:"ml-4 auto-collapse-nav",orientation:r,children:p.items.map(h=>(0,s.jsx)(v.Fragment,{children:n((0,s.jsx)(Fs,{href:l(h.href),target:i(h.href),className:Ms({orientation:r}),children:Me({html:h.label})},h.label),h.description)},h.label))})]},p.label):(0,s.jsx)(Ps,{children:(0,s.jsx)(Fs,{href:l(p.href),target:i(p.href),className:Ms({orientation:r}),children:Me({html:p.label})})},p.label),e[0]=r,e[1]=o);let d=o,u;if(e[2]!==a||e[3]!==d){let p;e[5]===d?p=e[6]:(p=h=>d(h),e[5]=d,e[6]=p),u=a.map(p),e[2]=a,e[3]=d,e[4]=u}else u=e[4];let c;e[7]!==r||e[8]!==u?(c=(0,s.jsx)(Wi,{className:"auto-collapse-nav",orientation:r,children:u}),e[7]=r,e[8]=u,e[9]=c):c=e[9];let m;return e[10]!==r||e[11]!==c?(m=(0,s.jsx)(Is,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=m):m=e[12],m},r0=v.forwardRef((t,e)=>{let a=(0,a0.c)(19),r,n,i,l;a[0]===t?(r=a[1],n=a[2],i=a[3],l=a[4]):({className:n,label:i,children:r,...l}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=l);let o;a[5]===n?o=a[6]:(o=U("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",n),a[5]=n,a[6]=o);let d;a[7]===i?d=a[8]:(d=Me({html:i}),a[7]=i,a[8]=d);let u;a[9]===d?u=a[10]:(u=(0,s.jsx)("div",{className:"text-base font-medium leading-none",children:d}),a[9]=d,a[10]=u);let c;a[11]===r?c=a[12]:(c=r&&(0,s.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:r}),a[11]=r,a[12]=c);let m;return a[13]!==l||a[14]!==e||a[15]!==o||a[16]!==u||a[17]!==c?(m=(0,s.jsx)("li",{children:(0,s.jsx)(Fs,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:o,...l,children:[u,c]})})}),a[13]=l,a[14]=e,a[15]=o,a[16]=u,a[17]=c,a[18]=m):m=a[18],m});r0.displayName="ListItem";function oD(t,e){return e?(0,s.jsx)(Mt,{delayDuration:200,content:Me({html:e}),children:t}):t}function sD(t){return t.startsWith("http")?"_blank":"_self"}function dD(t){return K_({href:t,queryParams:new URL(globalThis.location.href).search,keys:[ju.filePath]})}function uD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?_R(t,e):typeof t=="object"&&typeof e=="object"?cD(t,e):!1}function cD(t,e){return Object.keys(t).length===Object.keys(e).length&&Va.keys(t).every(a=>t[a]===e[a])}function Vs(t,e){if(!(window!=null&&window.customElements)){se.warn("Custom elements not supported");return}if(window.customElements.get(t)){se.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var mD=J();const pD=t=>{let e=(0,mD.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof t_){let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(Yu,{children:"Bad Data"}),e[0]=l):l=e[0];let o;e[1]===a.issues?o=e[2]:(o=a.issues.map(fD),e[1]=a.issues,e[2]=o);let d;e[3]===o?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:o})}),e[3]=o,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(YA,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=u):u=e[5];let c;e[6]===r?c=e[7]:(c=(0,s.jsx)(rv,{data:r}),e[6]=r,e[7]=c);let m;e[8]!==n||e[9]!==c?(m=(0,s.jsx)(GA,{type:"single",collapsible:!0,children:(0,s.jsxs)(qA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(JA,{className:"text-[0.84375rem]",children:(0,s.jsx)(av,{container:n,children:c})})]})}),e[8]=n,e[9]=c,e[10]=m):m=e[10];let p;return e[11]!==d||e[12]!==m?(p=(0,s.jsxs)(uo,{variant:"destructive",children:[l,d,m]}),e[11]=d,e[12]=m,e[13]=p):p=e[13],p}let i;return e[14]===a.message?i=e[15]:(i=(0,s.jsx)("div",{children:a.message}),e[14]=a.message,e[15]=i),i};function hD(t,e,a){return(0,s.jsx)(pD,{error:t,badData:e,shadowRoot:a})}function fD(t){let e=t.path.join(".");return(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function gD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,l]=(0,v.useState)(a),[o,d]=(0,v.useState)(r()),{theme:u}=qr(),[c,m]=(0,v.useState)(()=>e.validator.safeParse(hu(t)));(0,v.useImperativeHandle)(n,()=>({reset:()=>{d(r()),m(e.validator.safeParse(hu(t)))},setChildren:g=>{l(g)}})),$l(t,f_.TYPE,g=>{g.detail.element===t&&d(g.detail.value)}),(0,v.useEffect)(()=>{let g=new MutationObserver(f=>{f.some(x=>{var b;return x.type==="attributes"&&((b=x.attributeName)==null?void 0:b.startsWith("data-"))})&&m(e.validator.safeParse(hu(t)))});return g.observe(t,{attributes:!0}),()=>{g.disconnect()}},[t,e.validator]);let p=$e(g=>{d(f=>{let x=za.asUpdater(g)(f);return uD(x,f)||t.dispatchEvent(L1(x,t)),x})}),h=(0,v.useMemo)(()=>{if(!e.functions)return{};let g={};for(let[f,x]of Va.entries(e.functions)){let{input:b,output:w}=x;g[f]=async(...D)=>{var C;Br(D.length<=1,`Plugin functions only supports a single argument. Called ${f}`);let j=Os(t);Br(j,"Object ID should exist");let S=Zn(),N=(C=_1.findElementThroughShadowDOMs(t))==null?void 0:C.id,k=N?_1.parse(N):null;if(k&&!S){let _=Oe.get(T1),E=_.cellRuntime[k],T=_.cellData[k];if(LE({executionTime:E.runElapsedTimeMs??T.lastExecutionTime,status:E.status,errored:E.errored,interrupted:E.interrupted,stopped:E.stopped}))throw new ZA}else se.warn(`Cell ID ${k} cannot be found`);let y=await p_.request({args:s0(b,D[0]),functionName:f,namespace:j});if(y.status.code!=="ok")throw se.error(y.status),Error(y.status.message||"Unknown error");return s0(w,y.return_value)}}return g},[e.functions,t]);return c.success?(0,s.jsx)(bA,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(v.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:p,value:o,data:c.data,children:i,host:t,functions:h})})})}):hD(c.error,Va.mapValues(t.dataset,g=>typeof g=="string"?S1(g):g),t.shadowRoot)}var xD=v.forwardRef(gD),zs=new Map,n0="__custom_marimo_element__";function i0(t){let e=class extends HTMLElement{constructor(){super();q(this,"mounted",!1);q(this,"pluginRef",(0,v.createRef)());q(this,"__type__",n0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.mounted||(Br(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=py.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){var r;this.observer.disconnect(),(r=this.root)==null||r.unmount(),this.mounted&&(this.mounted=!1)}reset(){this.dispatchEvent(L1(S1(this.dataset.initialValue),this)),this.rerender()}rerender(){var r;(r=this.pluginRef.current)==null||r.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?Me({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(v.Fragment,{children:Me({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,Br(this.root,"Root must be defined"),this.root.render((0,s.jsx)(Tl,{store:Oe,children:(0,s.jsx)(bs,{children:(0,s.jsx)(xD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>GE(this,D_.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(Br(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let n=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:l0(i));for(let i of n){let l=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(l&&!zs.has(l)){let o=new CSSStyleSheet;try{o.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
7
7
  `))}catch{}zs.set(l,o)}}if(r.adoptedStyleSheets=[...zs.values()],t.cssStyles){let i=new CSSStyleSheet;i.replaceSync(t.cssStyles.join(`
8
8
  `)),r.adoptedStyleSheets=[...r.adoptedStyleSheets,i]}}copyStylesFallback(){let r=this.shadowRoot;Br(r,"Shadow root should exist"),se.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser.");let n=Array.from(document.styleSheets).flatMap(i=>{if(!l0(i))return[];let l=document.createElement("style");try{l.textContent=Array.from(i.cssRules).map(o=>o.cssText).join(`
9
9
  `)}catch{return[]}return[l]});if(r.append(...n),t.cssStyles){let i=document.createElement("style");i.textContent=t.cssStyles.join(`